/* Ads accounts (public/ads-roster.js). Same panel, table and phone-card language as the other Ads tables. */
.ar-page{max-width:1340px}
.ar-stale{margin:0 0 16px;padding:10px 14px;background:var(--warn-wash);border:1px solid var(--warn-line);border-left:3px solid var(--warn);border-radius:var(--r-action);font-size:13px;color:var(--ink-2)}
.ar-toolbar{display:flex;align-items:center;justify-content:space-between;gap:16px;margin:0 0 16px}
.ar-search{width:260px}
.ar-page>.form-err{margin:0 0 14px}
.ar-retry{margin-top:12px}
.ar-table-wrap{background:var(--panel);border:1px solid var(--line);border-radius:var(--r-panel);overflow:hidden}
.ar-table{border-collapse:collapse;width:100%;text-align:left;font-size:13px}
.ar-table th{padding:10px 14px;background:var(--panel-2);font-size:11px;font-weight:600;color:var(--muted);border-bottom:1px solid var(--line);white-space:nowrap}
.ar-table td{padding:10px 14px;border-bottom:1px solid var(--line);vertical-align:middle}
.ar-table tr:last-child td{border-bottom:0}
@media (hover:hover) and (pointer:fine){.ar-table tbody tr:hover{background:var(--panel-2)}}
.ar-name{font-weight:650;color:var(--ink);overflow-wrap:anywhere}
.ar-main-table .ar-name{width:44%}
.ar-more-table .ar-name{width:40%}
.ar-id{white-space:nowrap;font-variant-numeric:tabular-nums;color:var(--ink-2)}
.ar-ch{white-space:nowrap}
.ar-act{width:1%;text-align:right;white-space:nowrap}
.ar-run{display:inline-flex;align-items:center;gap:6px;font-size:12.5px;font-weight:600;color:var(--ok);white-space:nowrap}
.ar-run::before{content:"";width:7px;height:7px;border-radius:50%;background:currentColor;flex:none}
.ar-run.is-new{color:var(--info)}
.ar-none{margin:16px 0 0;font-size:13px;color:var(--muted)}
.ar-sub{display:block;margin-top:3px;font-size:12px;font-weight:400;color:var(--muted);white-space:normal;overflow-wrap:anywhere}
.ar-more{margin-top:20px}
.ar-more>summary{display:inline-flex;align-items:center;gap:8px;min-height:32px;padding-right:4px;cursor:pointer;font-size:13px;font-weight:600;color:var(--ink-2);border-radius:4px;list-style:none}
.ar-more>summary::-webkit-details-marker{display:none}
.ar-more>summary::before{content:"";width:0;height:0;border-left:6px solid currentColor;border-top:4.5px solid transparent;border-bottom:4.5px solid transparent;transition:transform .15s ease-out}
.ar-more[open]>summary::before{transform:rotate(90deg)}
@media (prefers-reduced-motion:reduce){.ar-more>summary::before{transition:none}}
@media (hover:hover) and (pointer:fine){.ar-more>summary:hover{color:var(--ink)}}
.ar-more[open]>summary{margin-bottom:10px}
.ar-form{display:grid;gap:14px}
.ar-form .st-meta{margin:0}
.ar-channels{display:flex;flex-wrap:wrap;gap:8px 20px;margin:0;padding:0;border:0;min-width:0}
.ar-channels .check{min-height:24px}

/* Phones: each account is a card. Name and ID on the left, the button on the right, then only the channels that run. */
@media (max-width:780px){
  .ar-toolbar{flex-direction:column;align-items:stretch;gap:10px}
  .ar-filter{display:flex;width:100%;max-width:none}
  .ar-filter button{flex:1 1 0;justify-content:center;min-height:40px}
  .ar-search{width:100%}
  .ar-table,.ar-table tbody,.ar-table tr,.ar-table td{display:block;width:auto}
  .ar-table thead{display:none}
  /* Two equal halves for the channels; the button sits at the right of the name and ID lines, which leave room for it. */
  .ar-table tr{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));column-gap:12px;padding:12px 14px;border-bottom:1px solid var(--line)}
  .ar-table tr:last-child{border-bottom:0}
  .ar-table td{padding:0;border:0;min-width:0}
  .ar-table .ar-name{width:auto;grid-column:1/-1;grid-row:1;padding-right:96px;font-size:15px;line-height:1.35}
  .ar-table .ar-id{grid-column:1/-1;grid-row:2;padding-right:96px;margin-top:2px;font-size:13px;color:var(--muted)}
  .ar-table tr:has(.ar-act:empty) .ar-name,.ar-table tr:has(.ar-act:empty) .ar-id{padding-right:0}
  .ar-table .ar-act{grid-column:2;grid-row:1/3;justify-self:end;align-self:center;width:auto}
  .ar-table .ar-act:empty{display:none}
  /* Each channel on one line, its name then its state, so a card is three short lines. */
  .ar-table .ar-ch{grid-row:3;margin-top:8px;display:flex;flex-wrap:wrap;align-items:baseline;gap:2px 7px;white-space:normal}
  .ar-table .ar-ch:empty{display:none}
  .ar-table .ar-ch[data-label]::before{content:attr(data-label);font-size:12px;font-weight:600;color:var(--muted)}
  .ar-table .ar-ch .ar-sub{flex-basis:100%;margin-top:0}
  .ar-run{font-size:14px}
  .ar-more>summary{min-height:44px;font-size:15px}
  .ar-stale,.ar-none{font-size:15px}
  .ar-form .btn.primary{min-height:44px;padding:0 18px}
}

/* Weekly checks (public/ads-weekly-checks.js): the switch beside the heading; above the list, a step that needs a person,
   last week's unfinished check, notes for Max and Cody, this week's checks and the test buttons. */
.aw-switch{display:flex;align-items:center;gap:10px;font-size:13px;font-weight:600;color:var(--ink-2)}
.aw-switch .ab-seg{margin:0}
.aw{display:grid;gap:10px;margin:0 0 18px}
.aw-problems{list-style:none;margin:0;padding:0;display:grid;gap:10px}
.aw-problem{padding:12px 14px;border-radius:var(--r-panel);background:var(--red-wash);border:1px solid var(--line);font-size:13.5px;color:var(--ink)}
.aw-problem p{margin:4px 0 0}
.aw-problem .aw-next{color:var(--ink-2)}
.aw-failed{margin:6px 0 0;padding-left:18px}
.aw-failed li{overflow-wrap:anywhere}
.aw-act{display:flex;flex-wrap:wrap;align-items:center;gap:8px;margin-top:10px}
.aw-note-field{flex:1 1 220px;min-width:0}
.aw-note-field input{font-size:16px;min-height:32px}
.aw-problem>.form-err{margin:8px 0 0}
.aw-warn{margin:0;padding:10px 14px;background:var(--warn-wash);border:1px solid var(--warn-line);border-left:3px solid var(--warn);border-radius:var(--r-action);font-size:13px;color:var(--ink-2)}
.aw-note{margin:0;padding:10px 12px;border-radius:var(--r-action);background:var(--panel-2);font-size:13px;color:var(--ink-2)}
.aw>.form-err{margin:0}
.aw-weeks{list-style:none;margin:0;padding:0;display:flex;flex-wrap:wrap;gap:6px 28px;font-size:13px}
.aw-ch{font-weight:600;color:var(--muted);margin-right:4px}
.aw a{display:inline-flex;align-items:center;min-height:24px;color:var(--ink);font-weight:600;text-decoration:underline;text-decoration-color:var(--line-3);text-underline-offset:3px}
@media (hover:hover) and (pointer:fine){.aw a:hover{text-decoration-color:currentColor}}
.aw-test{display:flex;flex-wrap:wrap;align-items:center;gap:8px}
@media (max-width:780px){
  .aw-switch{width:100%;justify-content:space-between}
  .aw-switch .ab-seg{display:flex;flex:1;max-width:260px}
  .aw-switch .ab-seg button{flex:1 1 0;min-height:44px}
  .aw .btn{min-height:44px;padding:0 16px}
  .aw-note-field{flex-basis:100%}
  .aw-note-field input{min-height:44px}
  .aw-weeks{flex-direction:column}
  .aw a{min-height:32px}
  .aw-warn,.aw-note,.aw-problem,.aw-weeks{font-size:15px}
}
