/* Panel-only additions to the Admin UI kit (admin-ui/admin-ui.css). Kit tokens only: no hex, no ad-hoc pixels.
   Everything else on the page is a kit component. */

/* Primary-colour swatches under Appearance. The colour itself is the swatch's inline background (data). */
.swatch-btn{width:var(--sp-8);height:var(--sp-8);border-radius:999px;border:2px solid var(--surface);box-shadow:0 0 0 1px var(--border-strong);cursor:pointer;}
.swatch-btn:hover{box-shadow:0 0 0 2px var(--border-strong);}
.swatch-btn[aria-pressed="true"]{box-shadow:0 0 0 2px var(--surface),0 0 0 4px var(--accent);}
.swatch-btn:focus-visible{outline:2px solid var(--focus);outline-offset:var(--sp-1);}

/* What a caller hears or reads: a quoted line under a setting. */
.say{border-left:var(--sp-1) solid var(--accent);padding:var(--sp-1) var(--sp-3);margin:var(--sp-2) 0 0;color:var(--text);font-style:italic;}

/* The before → after of a change, in the confirm dialog. */
.effect{background:var(--accent-soft);border-radius:var(--r-control);padding:var(--sp-3) var(--sp-4);font-weight:550;}

/* The big value on a home panel ("Open", "Kevin, then Dana"). */
.headline{font-size:var(--fs-2xl);font-weight:680;line-height:1.2;}
.headline.status{color:var(--text);gap:var(--sp-3);}

/* Home's open/closed switch: three choices in a narrow panel, so a label may wrap onto two lines. */
.panel .segmented-block > button{white-space:normal;height:auto;min-height:calc(var(--control-h) - var(--sp-2));padding:var(--sp-1) var(--sp-2);line-height:1.2;text-align:center;}

/* Rows of .list that hold a setting and its action on the right. */
.list > li > .grow{min-width:0;}
.list .row-actions{margin-left:auto;display:flex;gap:var(--sp-2);flex:none;}

/* The current rotation period in the calendar table. */
.table tr[aria-current] td{background:var(--accent-soft);}

/* Phones: tables become label/value cards (the kit scrolls them sideways otherwise). */
@media (max-width:640px){
  .table-stack thead{display:none;}
  .table-stack tr{display:grid;padding:var(--sp-2) 0;border-bottom:1px solid var(--border);}
  .table-stack td{display:flex;justify-content:space-between;gap:var(--sp-3);border:0;padding:var(--sp-1) var(--pad);height:auto;}
  .table-stack td[data-l]::before{content:attr(data-l);color:var(--text-3);font-size:var(--fs-xs);}
  .table-stack td.col-actions{justify-content:flex-end;width:auto;}
}
