/* ext-adbench (4 Nov, from ext-adbrief.css, after it): Inkspector as the owner reworked it on
   1 Nov: the calendar, the reply box folded under the chat, an artist's sessions, the left column
   and its windows, tags changed where they are read, and the proof bench (the day list, the chat,
   the panel, the dock, what to do, the editor). app.css tokens only. */
/* 1 Nov (the owner: dull, hard to read, no Slots): the calendar in solid colours a glance can
   tell apart, the same in both themes; Closeouts and Slots as tables with named columns */
.ada-calendar { --cal-booked: #3f73c4; --cal-pending: #7a5bc7; --cal-blocked: #c8463d; --cal-ask: #e0a030; --cal-free: #24824f; }
.ada-cal-day.is-booked, .ada-key.is-booked::before { background: var(--cal-booked); }
.ada-cal-day.is-pending, .ada-key.is-pending::before { background: var(--cal-pending); }
.ada-cal-day.is-blocked, .ada-key.is-blocked::before { background: var(--cal-blocked); }
.ada-cal-day.is-needs_confirmation, .ada-key.is-needs_confirmation::before { background: var(--cal-ask); }
.ada-cal-day.is-available, .ada-key.is-available::before { background: var(--cal-free); }
.ada-cal-day:is(.is-booked, .is-pending, .is-blocked, .is-available) { color: #fff; }
.ada-cal-day.is-needs_confirmation { color: #1a1205; }
.ada-cal-day.is-off { background: repeating-linear-gradient(135deg, var(--bg2) 0 5px, transparent 5px 10px); box-shadow: inset 0 0 0 1px var(--rule2); color: var(--muted); }
.ada-cal-day.is-past { opacity: .4; }
.ada-cal-day.is-today .ada-cal-num { text-decoration: underline; text-underline-offset: 3px; }
.ada-cal-day.is-appointment { outline: 3px solid var(--ink); outline-offset: 1px; z-index: 1; }
.ada-cal-num { font-size: 14px; }
.ada-cal-count { position: absolute; top: 3px; right: 5px; font: 700 10px/1 var(--text); color: inherit; }
.ada-key { display: inline-flex; align-items: center; gap: 6px; }
.ada-key::before { content: ""; width: 14px; height: 14px; border-radius: 3px; }
.ada-key.is-off::before { background: repeating-linear-gradient(135deg, var(--bg2) 0 3px, transparent 3px 6px); box-shadow: inset 0 0 0 1px var(--rule2); }
.ada-key.is-appointment::before { background: transparent; box-shadow: inset 0 0 0 2px var(--ink); }

.ad-workspace #ad-artist-filter-tools:empty { display: none; }
.ad-workspace #ad-artist-filter-tools { display: flex; align-items: flex-start; }
.ada-filter-board { min-width: 0; max-width: 100%; }
.ada-filter-board:empty { display: none; }
.ada-filter-board:has(details[open]) { flex: 1 1 100%; }
.ada-board-open { min-width: 0; max-width: 100%; background: var(--accent2); border-color: var(--gold-line); color: var(--ink); font-weight: 600; }
.ada-board-open span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ada-filter-board .ada-board-edit summary { padding: 4px 0; color: var(--gold); font-size: 12.5px; font-weight: 600; }

.adc-dialog { width: min(860px, 96vw); max-height: 88vh; padding: 0 20px 18px; overflow-y: auto; }
.adc-head { position: sticky; top: 0; z-index: 2; display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; padding: 16px 0 10px; background: var(--paper); border-bottom: 1px solid var(--rule); }
.adc-body { display: grid; gap: 8px; margin-top: 12px; font-size: 13.5px; }
.adc-summary { margin: 0; font-size: 18px; color: var(--ink); }
.adc-body > .side-note { margin: 0; color: var(--soft); }
.adc-cols, .adc-row { display: grid; grid-template-columns: minmax(0, 1.5fr) 7.5rem minmax(0, 1fr) 5.5rem minmax(0, 11.5rem) 16px; align-items: center; gap: 12px; }
.adc-cols { padding: 6px 10px 0; font: 600 12px/1.3 var(--text); color: var(--soft); }
.adc-cols-amount { text-align: right; }
.adc-groups { display: grid; gap: 14px; }
.adc-group-h { display: flex; justify-content: space-between; gap: 8px; margin: 0 0 2px; padding: 7px 10px; border-radius: var(--r-sm); background: var(--paper2); font: 700 13px/1.3 var(--text); color: var(--ink); }
.adc-group-h .side-note { margin: 0; font-weight: 600; color: var(--ink2); }
.adc-list { display: grid; gap: 0; margin: 0; padding: 0; list-style: none; }
.adc-list > li + li { border-top: 1px solid var(--rule); }
.adc-row { width: 100%; min-height: 42px; padding: 7px 10px; border: 0; border-radius: var(--r-sm); background: transparent; color: var(--ink); font: inherit; text-align: left; cursor: pointer; }
.adc-row .icon { width: 14px; height: 14px; color: var(--muted); }
.adc-row:hover .icon, .adc-row:focus-visible .icon { color: var(--ink); }
.adc-client, .adc-when, .adc-who { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.adc-when, .adc-who { color: var(--ink2); }
.adc-status { display: inline-block; padding: 2px 8px; border-radius: 999px; font-size: 12px; font-weight: 600; white-space: nowrap; }
.adc-status.is-started { background: color-mix(in srgb, var(--warn) 16%, transparent); color: var(--warn); }
@media (max-width: 700px) {
  .adc-cols { display: none; }
  .adc-row { grid-template-columns: minmax(0, 1fr) auto; gap: 2px 10px; }
  .adc-who { grid-column: 1; }
  .adc-state { grid-column: 1 / -1; }
  .adc-row > .icon { display: none; }
}

.ads-dialog { width: min(1120px, 96vw); max-height: 88vh; padding: 0 20px 18px; overflow-y: auto; }
.ads-head { position: sticky; top: 0; z-index: 2; display: flex; flex-wrap: wrap; align-items: flex-end; gap: 8px 12px; padding: 16px 0 12px; background: var(--paper); border-bottom: 1px solid var(--rule); }
.ads-head > strong { flex: 1 1 auto; align-self: center; font-size: 18px; }
.ads-pick { display: grid; gap: 3px; min-width: 0; font-size: 12px; color: var(--soft); }
.ads-pick :is(select, input) { width: 11rem; max-width: 100%; height: 34px; padding: 0 8px; border: 1px solid var(--rule2); border-radius: var(--r-sm); background: var(--paper2); color: var(--ink); font: 500 13px/1 var(--text); }
.ads-head .adc-close { align-self: center; height: 34px; }
.ads-scroll { overflow-x: auto; }
.ads-table { width: 100%; border-collapse: collapse; font-size: 13.5px; }
.ads-table th { padding: 10px 10px 6px; font: 600 12px/1.3 var(--text); color: var(--soft); text-align: left; white-space: nowrap; }
.ads-table td { padding: 9px 10px; border-top: 1px solid var(--rule); color: var(--ink2); vertical-align: middle; }
.ads-row { cursor: pointer; }
.ads-row:hover td { background: var(--accent2); }
.ads-at { width: 2rem; color: var(--muted); font-variant-numeric: tabular-nums; }
.ads-table td.ads-at { color: var(--muted); }
.ads-when { white-space: nowrap; }
.ads-client button { padding: 0; border: 0; background: none; color: var(--ink); font: 700 13.5px/1.3 var(--text); text-align: left; cursor: pointer; transform: none; }
.ads-client button:hover { background: none; text-decoration: underline; transform: none; }
.ads-design { max-width: 15rem; overflow-wrap: anywhere; }
.ads-artist { display: inline-flex; align-items: center; gap: 4px; color: var(--gold); font-weight: 600; text-decoration: underline; text-underline-offset: 2px; }
.ads-artist .icon { flex: none; width: 13px; height: 13px; }
@media (max-width: 560px) {
  .ads-dialog { padding: 0 12px 12px; }
  .ads-when { white-space: normal; }
  .ads-pick { flex: 1 1 40%; }
  .ads-pick :is(select, input) { width: 100%; }
}
.ads-dialog, .adc-dialog { background: var(--paper); }

/* 30 Oct (Alice): room for the messages, in every layout: the reply box under the chat folded to
   one line, the Note button beside it; the rest is as it was */
body.ad-workspace #ad-reply-open { display: inline-flex; }
body.ad-workspace :is(.shadow-toggle, .shadow-voice, .shadow-write-all) { display: none; }
#ad-reply-open { display: none; }
body.ad-workspace:not(.ad-reply-open) #side-reply:not([hidden]) { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 6px 16px; }
body.ad-workspace:not(.ad-reply-open) #side-reply > :not(#ad-reply-open, .side-reply-actions) { display: none; }
body.ad-workspace:not(.ad-reply-open) #side-reply > .side-reply-actions > :not(.note-fab) { display: none; }
body.ad-workspace #side-reply #ad-reply-open { justify-self: start; font-size: 13px; }
.adb-board-title-wrap { display: grid; gap: 3px; }
.adb-board-title-note { margin: 0; font-size: 12px; color: var(--ink2); }
.adb-board-title-note .side-note { display: block; margin: 2px 0 0; }
.adb-board-photo-wrap { display: grid; gap: 4px; justify-items: start; }
.adb-arrange { font-size: 11.5px; }
.adb-board-photos.is-arranging { gap: 8px; }
.adb-photo-cell { display: grid; justify-items: center; gap: 2px; cursor: grab; }
.adb-board-photos.is-arranging .adb-thumb { width: 52px; height: 58px; }
.adb-photo-ref { font-size: 11px; color: var(--ink2); }
.adb-photo-move { display: inline-flex; gap: 2px; }
.adb-photo-move button { width: 24px; height: 24px; padding: 0; border: 1px solid var(--rule2); border-radius: var(--r-sm); background: var(--paper); color: var(--ink); font-size: 14px; line-height: 1; }
.adb-photo-move button:disabled { opacity: .35; }
.adb-gate-photos { display: grid; gap: 6px; flex-basis: 100%; }
.adb-gate-photo-all { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 6px; }
.adb-gate-photo-all select { min-width: 0; flex: 1 1 140px; padding: 6px; border: 1px solid var(--rule2); border-radius: var(--r-sm); background: var(--paper); color: var(--ink); font: inherit; }
.ads-control { display: grid; gap: 8px; margin-top: 8px; padding: 10px; border: 1px solid var(--rule); border-radius: var(--r-sm); }
.ads-control[hidden] { display: none; }
.ads-control .side-note { margin: 0; }
.ads-control .ads-pick input { width: 100%; }
.ads-chat { display: grid; gap: 8px; margin: 8px 12px; }
.ads-chat[hidden] { display: none; }
.ads-chat-row { display: grid; gap: 6px; padding: 10px 12px; border: 1px solid var(--rule2); border-left: 3px solid var(--gold); border-radius: var(--r-sm); background: var(--paper); }
.ads-chat-row.is-held { border-left-color: var(--warn); }
.ads-chat-row p { margin: 0; }
.ads-chat-when { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 6px; font-size: 13px; }
.ads-chat-row .ads-body { color: var(--soft); font-size: 12.5px; overflow-wrap: anywhere; }
.ads-when { display: grid; gap: 2px; padding: 12px 14px; border: 1px solid var(--gold-line); border-radius: var(--r); background: var(--gold-soft); }
.ads-when-label, .ads-when-zone { font-size: 12px; color: var(--soft); }
.ads-when-time { font-size: 17px; font-weight: 600; line-height: 1.3; color: var(--ink); }
.ads-confirm { justify-content: center; width: 100%; min-height: 40px; }
.ads-change > summary { padding: 4px 0; font-size: 13px; color: var(--soft); cursor: pointer; }
.ads-change[open] > summary { margin-bottom: 8px; }
.ads-picker { display: grid; gap: 14px; }
.ads-month-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 6px; font-size: 14px; }
.ads-month-go { display: grid; place-items: center; width: 32px; height: 32px; padding: 0; border: 1px solid var(--rule2); border-radius: var(--r-sm); background: none; color: var(--ink); cursor: pointer; }
.ads-month-go:disabled { opacity: .3; cursor: default; }
.ads-month-go svg { width: 15px; height: 15px; }
.ads-week, .ads-days { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 3px; text-align: center; }
.ads-week { margin-bottom: 3px; font-size: 11px; color: var(--muted); }
.ads-day { min-width: 0; height: 34px; padding: 0; border: 1px solid transparent; border-radius: var(--r-sm); background: none; color: var(--ink); font: inherit; font-size: 13px; font-variant-numeric: tabular-nums; cursor: pointer; }
.ads-day:hover:not(:disabled) { background: var(--gold-soft); }
.ads-day:disabled { color: var(--muted); opacity: .45; cursor: default; }
.ads-day.is-today { border-color: var(--rule2); }
.ads-day.is-on, .ads-day.is-on:hover:not(:disabled) { background: var(--gold); border-color: var(--gold); color: var(--on-accent); font-weight: 600; }
.ads-times { display: grid; gap: 8px; }
.ads-times-label { font-size: 12px; color: var(--soft); }
.ads-hours { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 4px; }
.ads-minutes { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 4px; }
.ads-chip { min-width: 0; height: 34px; padding: 0 4px; border: 1px solid var(--rule2); border-radius: var(--r-sm); background: none; color: var(--ink); font: inherit; font-size: 12.5px; white-space: nowrap; font-variant-numeric: tabular-nums; cursor: pointer; }
.ads-chip:hover:not(:disabled) { border-color: var(--gold-line); background: var(--gold-soft); }
.ads-chip:disabled { opacity: .35; cursor: default; }
.ads-chip.is-on, .ads-chip.is-on:hover:not(:disabled) { background: var(--gold); border-color: var(--gold); color: var(--on-accent); font-weight: 600; }
.ads-day:focus-visible, .ads-chip:focus-visible, .ads-month-go:focus-visible { outline: 2px solid var(--gold); outline-offset: 1px; }
.ads-items { display: grid; gap: 10px; margin: 0; padding: 0; list-style: none; }
.ads-item { display: grid; gap: 5px; padding: 10px 12px; border: 1px solid var(--rule); border-radius: var(--r-sm); }
.ads-item-top { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 12px; }
.ads-state { margin-left: auto; font-size: 12px; font-weight: 600; color: var(--ink2); }
.ads-state.is-held, .ads-state.is-failed { color: var(--stop); }
.ads-state.is-sent { color: var(--ok); }
.ads-body { margin: 0; color: var(--ink); overflow-wrap: anywhere; }
.ads-actions { display: flex; gap: 6px; }
.ads-actions:empty { display: none; }
.adc-count.is-quiet { background: var(--bg2); color: var(--ink2); }

/* 1 Nov: an artist's sessions, from Mini App's artist page API */
.ada-sessions-slot:empty { display: none; }
.ada-sessions { width: min(860px, 96vw); }
.ada-s-card { display: grid; gap: 6px; margin-top: 8px; padding: 10px 12px; border: 1px solid var(--rule); border-radius: var(--r-sm); }
.ada-s-top { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 12px; }
.ada-s-time { font-variant-numeric: tabular-nums; color: var(--ink2); }
.ada-s-client { margin-left: auto; color: var(--ink2); }
.ada-s-tags { display: flex; flex-wrap: wrap; gap: 4px; }
.ada-key-tag { padding: 1px 8px; border-radius: 999px; background: var(--paper2); color: var(--ink2); font-size: 12px; }
.ada-s-photos { display: flex; flex-wrap: wrap; gap: 6px; }
.ada-s-photos img { display: block; width: 72px; height: 72px; object-fit: cover; border-radius: var(--r-sm); }
.ada-s-facts { margin: 0; color: var(--ink2); }
.ada-s-facts:empty { display: none; }
.ada-s-more summary { cursor: pointer; color: var(--soft); }
.ada-s-details { margin-top: 6px; overflow-wrap: anywhere; }
.ada-s-details p, .ada-s-details ul { margin: 0 0 6px; }
.ada-s-details ul { padding-left: 18px; }

/* 1 Nov: the left column for the clients, the windows as one set. The theme's own tokens; the one
   bold thing is the status rail down each row, repeated in the day's bar above the list */
.ad-workspace .ad-desk-controls { padding: 8px 10px; gap: 6px; }
.ad-workspace .ad-desk-heading { display: block; }
.ad-workspace .ad-desk-heading > div:first-child { display: none; }
/* 6 Nov (the owner: six squeezed into one row ran their labels together): two rows of three, each
   an icon, its word and its count side by side, so every label reads whole */
.ad-workspace .ad-desk-links { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 4px; }
.ad-workspace .ad-desk-links :is(.adc-open, .ad-desk-more > summary) { position: relative; display: flex; flex-direction: row; align-items: center; justify-content: flex-start; gap: 6px; width: 100%; height: 30px; padding: 0 8px; border: 1px solid var(--rule); border-radius: var(--r-sm); background: transparent; color: var(--ink2); font: 500 12px/1 var(--text); white-space: nowrap; cursor: pointer; list-style: none; }
.ad-workspace .ad-desk-links :is(.adc-open, .ad-desk-more > summary) > span:not(.adc-count) { min-width: 0; overflow: hidden; text-overflow: ellipsis; }
.ad-workspace .ad-desk-links .ad-desk-more > summary::-webkit-details-marker { display: none; }
.ad-workspace .ad-desk-links :is(.adc-open, .ad-desk-more > summary):hover { background: var(--paper2); color: var(--ink); border-color: var(--rule2); }
/* the words carry it at this width: an icon beside each cut "Closeouts" to "Cl…" */
.ad-workspace .ad-desk-links .adc-open .icon { display: none; }
.ad-workspace .ad-desk-more > summary .icon { flex: none; width: 12px; height: 12px; }
.ad-workspace .ad-desk-links :is(.adc-open, .ad-desk-more > summary) { justify-content: center; padding: 0 6px; }
/* the count on the corner, so the word keeps the whole width */
.ad-workspace .ad-desk-links .adc-count { position: absolute; top: -6px; right: -4px; min-width: 16px; padding: 0 4px; font-size: 10px; line-height: 16px; text-align: center; }
.ad-desk-more { position: relative; min-width: 0; }
.ad-desk-more > summary::before, .ad-desk-more > summary::after { content: none !important; display: none !important; }
.ad-desk-more[open] > summary .icon { transform: rotate(90deg); }
.ad-desk-more-menu { position: absolute; z-index: 5; top: calc(100% + 4px); right: 0; display: grid; min-width: 150px; padding: 4px; border: 1px solid var(--rule2); border-radius: var(--r-sm); background: var(--paper); box-shadow: 0 8px 24px color-mix(in srgb, var(--ink) 18%, transparent); }
.ad-desk-more-menu .link { padding: 8px 10px; text-align: left; font-size: 13px; }
.ad-workspace .ad-desk-controls > .ad-filter-pair > label, .ad-workspace .ad-desk-controls > label:not(#ad-date-control) { font-size: 0; gap: 0; }
.ad-workspace .ad-filter-pair { gap: 4px; }
.ad-workspace .ad-desk-controls :is(select, input) { height: 30px; padding-block: 3px; }
.ad-workspace #ad-desk-status { font-size: 10.5px; color: var(--muted); }
.ad-day-summary { display: flex; align-items: center; gap: 8px; }
.ad-day-summary .side-note { flex: none; margin: 0; font-size: 11px; color: var(--ink2); }
.ad-day-bar { display: flex; flex: 1; gap: 2px; height: 5px; min-width: 0; }
.ad-day-bar span { min-width: 3px; border-radius: 3px; background: var(--rule2); }
.ad-day-bar .is-ready { background: var(--ok); }
.ad-day-bar .is-attention { background: var(--warn); }
.ad-workspace .side-list-head { padding: 5px 10px; }
.ad-workspace #side-threads .side-thread { display: block; padding: 8px 10px 8px 13px; }
.ad-workspace #side-threads .side-thread > .avatar { display: none; }
.ad-workspace #side-threads .side-thread::after { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 3px; background: var(--rule2); }
.ad-workspace #side-threads .side-thread:is(.is-ready, .is-saved)::after { background: var(--ok); }
.ad-workspace #side-threads .side-thread:is(.is-attention, .is-link)::after { background: var(--warn); }
.ad-workspace #side-threads .side-thread.on::after { width: 5px; background: var(--gold); }
.ad-workspace #side-threads .side-thread-body { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 1px 8px; }
.ad-workspace #side-threads .side-thread-body > strong { grid-column: 1; grid-row: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ad-workspace #side-threads .side-thread-body > .ad-row-status { grid-column: 2; grid-row: 1; padding: 0 5px; font-size: 10.5px; line-height: 16px; max-width: 110px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; display: block; }
.ad-workspace #side-threads .side-thread-body > :is(.side-note, .side-thread-preview, .ad-row-reason) { grid-column: 1 / -1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ad-workspace #side-threads .side-thread-body > .ad-row-reason { display: none; }
.ad-workspace #side-threads .side-thread.on .side-thread-body > .ad-row-reason { display: block; }
@media (max-width: 999px) {
  .ad-workspace .ad-desk-links :is(.adc-open, .ad-desk-more > summary) { height: 40px; font-size: 13px; }
  .ad-workspace .ad-desk-controls :is(select, input) { height: 40px; }
  .ad-workspace #side-threads .side-thread { padding-block: 11px; }
}
/* the windows: one heading, one way to close, the same rail on a slot */
.ads-row td:first-child { box-shadow: inset 3px 0 var(--rule2); }
.ads-row.is-ready td:first-child, .ads-row.is-saved td:first-child { box-shadow: inset 3px 0 var(--ok); }
.ads-row.is-attention td:first-child, .ads-row.is-link td:first-child { box-shadow: inset 3px 0 var(--warn); }
.adc-head > strong, .ads-head > strong, .ada-cal-head > strong { font: 700 16px/1.25 var(--text); }
.note-dialog.ada-calendar { background: var(--paper); }
.ads-head .ads-pick { grid-auto-flow: column; align-items: center; gap: 6px; }
@media (max-width: 560px) { .ads-head .ads-pick { grid-auto-flow: row; gap: 3px; } }

/* 1 Nov: the tags can be changed where they are read */
.adb-board .adb-board-title-note { color: #606060; }
.adb-board .adb-board-title-note strong { color: #303438; }
.adb-board .adb-board-title-note .side-note { color: #606060; }
.adb-board .adb-jump { color: #4d5562; }
.adb-board .adb-photo-ref { color: #606060; }
.adb-board-photo-wrap .adb-arrange { color: #4d5562; }
.ad-workspace .adb-board .adb-admin-add { width: auto; min-height: 0; height: 24px; padding: 0 4px; font-size: 12px; }
.adb-admin-x { margin-left: 6px; padding: 0 2px; border: 0; background: transparent; color: inherit; font: 700 13px/1 Arial, sans-serif; opacity: .8; cursor: pointer; transform: none; }
.adb-admin-x:hover { opacity: 1; background: transparent; transform: none; }
button.adb-admin-pill.is-suggest { cursor: pointer; }
button.adb-admin-pill.is-suggest:hover { border-style: solid; background: #f1f1f3; transform: none; }
.adb-admin-add { max-width: 130px; height: 24px; padding: 0 4px; border: 1px solid #c9ccd1; border-radius: 4px; background: #fff; color: #4d5562; font: 12px Arial, sans-serif; }
.adb-board-photo-wrap small { color: #606060; }
.adb-photos-set { margin-top: 8px; }
.adb-photos-set summary { cursor: pointer; font-size: 13px; color: var(--ink2); }
.adb-photos-set .adb-gate-photos { margin-top: 8px; }

/* 1 Nov: the proof bench. The artist's card is the one bright thing on the bench; every other part
   of Inkspector gives way to it. No new colours or faces: the theme's own, used more quietly */
/* the book: time first, the rail says who needs her, only exceptions speak */
.ad-workspace #side-threads .side-thread-body { grid-template-columns: 56px minmax(0, 1fr) auto; column-gap: 6px; row-gap: 0; }
.ad-workspace #side-threads .side-thread-body > .adr-time { grid-column: 1; grid-row: 1 / span 3; align-self: start; padding-top: 1px; font: 600 11px/1.45 var(--text); font-variant-numeric: tabular-nums; white-space: nowrap; color: var(--ink2); }
.ad-workspace #side-threads .side-thread-body > strong { grid-column: 2; grid-row: 1; font-size: 13.5px; line-height: 1.3; }
.ad-workspace #side-threads .side-thread-body > .ad-row-status { grid-column: 3; grid-row: 1; }
.ad-workspace #side-threads .side-thread-body > .ad-row-status.is-usual { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); padding: 0; }
.ad-workspace #side-threads .side-thread-body > :is(.side-note, .side-thread-preview, .ad-row-reason) { grid-column: 2 / -1; line-height: 1.35; }
.ad-workspace #side-threads .side-thread-body > .side-thread-preview { color: var(--ink2); }
.ad-workspace #side-threads .side-thread-body > .side-note { color: var(--muted); font-size: 11px; }
.ad-workspace #side-threads .side-thread { padding-block: 7px; border-bottom-color: color-mix(in srgb, var(--rule) 60%, transparent); }
.ad-workspace #side-threads .side-thread.on { background: var(--paper2); box-shadow: none; }
.ad-workspace #side-threads .side-thread.on .adr-time { color: var(--ink); }
.ad-workspace #side-threads .side-thread-body > .adr-time { display: grid; min-width: 0; }
.ad-workspace #side-threads .side-thread.has-day .side-thread-body { grid-template-columns: 66px minmax(0, 1fr) auto; }
.ad-workspace #side-threads .side-thread.has-day .adr-time > span:last-child { font-weight: 500; color: var(--soft); }
.ad-workspace #side-threads .side-thread.on.has-day .adr-time > span:last-child { color: var(--ink2); }
.ad-workspace #side-threads .side-thread::after { transition: width .14s ease; }
.ad-start { margin: 18px auto 0; min-height: 40px; padding-inline: 18px; }
.ad-workspace #side-messages > .empty { max-width: 420px; margin: 18vh auto 0; border: 0; background: transparent; box-shadow: none; }
.ad-workspace #side-messages > .empty::before { display: none; }

/* the chat: her reading, not the furniture */
.ad-workspace .side-chat { background: var(--bg); }
.ad-workspace .side-chat-head { padding: 10px 18px; gap: 10px; background: var(--paper); border-bottom: 1px solid var(--rule); }
.ad-workspace .side-chat-head .avatar { display: none; }
.ad-workspace .side-chat-head strong { font-size: 20px; }
.ad-workspace #ad-artist-panel { padding: 5px 18px; border-bottom: 1px solid var(--rule); background: var(--paper); }
.ad-workspace .side-messages { gap: 8px; padding: 18px clamp(16px, 2.4vw, 32px); }
.ad-workspace .bubble { max-width: min(80%, 620px); padding: 9px 13px; border: 0; border-radius: 12px; background: var(--paper2); box-shadow: none; font-size: 14px; line-height: 1.45; }
.ad-workspace .bubble.inbound { border-bottom-left-radius: 4px; }
.ad-workspace .bubble.outbound { background: color-mix(in srgb, var(--gold) 16%, var(--paper2)); color: var(--ink); border-bottom-right-radius: 4px; }
.ad-workspace .bubble.outbound :is(.bubble-meta, .bubble-who) { color: var(--soft); }
.ad-workspace .bubble.auto, .ad-workspace .bubble.blast { padding: 10px 14px; background: var(--paper2); color: var(--ink2); font-size: 13px; line-height: 1.5; opacity: 1; border: 1px solid var(--rule); box-shadow: none; }
.ad-workspace .bubble.auto:not(.is-open) > p { display: -webkit-box; -webkit-line-clamp: 7; -webkit-box-orient: vertical; overflow: hidden; }
.ad-workspace .bubble-more { display: inline-block; margin-top: 4px; font-size: 12px; }
.bubble-more { display: none; }
.ad-workspace .bubble-more { display: inline-block; }
.ad-workspace .bubble-meta { margin-top: 3px; font-size: 10.5px; color: var(--muted); }
.ad-workspace #side-reply:not([hidden]) { background: var(--paper); border-top: 1px solid var(--rule); backdrop-filter: none; -webkit-backdrop-filter: none; }

/* the panel: flat, in one column, parts told apart by space and a hairline */
.ad-workspace .side-panel { padding: 0; background: var(--bg); }
.ad-workspace #panel-ad-brief { position: relative; display: block; margin: 0; padding: 0; border: 0; border-radius: 0; background: transparent; box-shadow: none; }
.ad-workspace #panel-ad-brief > * { margin: 0; padding: 12px 16px; border: 0; border-bottom: 1px solid var(--rule); border-radius: 0; background: transparent; box-shadow: none; }
.ad-workspace #panel-ad-brief > .adb-supervisor { padding-top: 10px; background: var(--paper); border-top: 3px solid var(--rule2); }
.ad-workspace #panel-ad-brief > .adb-supervisor [data-ad-reasons] { font-size: 12px; line-height: 1.4; }
.ad-workspace #side-panel > .side-note { padding: 14px 16px; }
.ad-workspace #panel-ad-brief > .adb-piece > summary { display: flex; align-items: center; gap: 8px; }
.ad-workspace #panel-ad-brief > .adb-piece > summary .adb-piece-change { margin-left: auto; }
.ad-workspace #panel-ad-brief > .adb-supervisor:has([data-ad-readiness="Ready"]) { border-top-color: var(--ok); }
.ad-workspace #panel-ad-brief > .adb-supervisor:has([data-ad-readiness="Needs a person"]) { border-top-color: var(--warn); }
.ad-workspace #panel-ad-brief > .adb-send-box { background: var(--paper); }
.ad-workspace #panel-ad-brief > .adb-piece { padding-block: 8px; }
.ad-workspace #panel-ad-brief > .adb-board { margin: 14px 12px; padding: 16px; border: 0; border-radius: 3px; background: #fff; box-shadow: 0 1px 2px rgb(0 0 0 / .28), 0 14px 34px rgb(0 0 0 / .24); }
.ad-workspace #panel-ad-brief > :is(details, section):empty { display: none; }
/* the dock */
.ad-workspace #panel-ad-brief > .adb-dock { position: sticky; bottom: 0; z-index: 3; display: flex; align-items: center; gap: 8px; padding: 8px 12px; background: var(--paper); border-top: 1px solid var(--rule2); border-bottom: 0; box-shadow: 0 -8px 18px color-mix(in srgb, var(--ink) 7%, transparent); }
.adb-dock .adb-queue-nav { display: flex; flex: 0 1 auto; align-items: center; gap: 4px; min-width: 0; padding: 0; border: 0; }
.adb-dock .adb-queue-nav .side-note { order: 2; margin: 0; white-space: nowrap; font-size: 11.5px; font-variant-numeric: tabular-nums; }
.adb-dock .adb-queue-nav .side-note::after { content: ""; }
.adb-dock .adb-queue-nav button:nth-of-type(2) { order: 3; }
.adb-dock .adb-queue-nav button:nth-of-type(1) { order: 1; }
.adb-dock .adb-queue-nav .adb-btn { min-height: 34px; padding: 0 10px; font-size: 12.5px; }
.adb-dock .adb-push-button { flex: 1 1 auto; justify-content: center; min-height: 38px; white-space: nowrap; }
.win .booked-fresh { font-size: 12px; color: var(--muted); }
.adb-board-now { margin: 8px 12px; }
.adb-board-now-t { width: 100%; border-collapse: collapse; font-size: 12.5px; table-layout: fixed; }
.adb-board-now-t th, .adb-board-now-t td { padding: 5px 6px; border-bottom: 1px solid var(--rule); text-align: left; vertical-align: top; overflow-wrap: anywhere; }
.adb-board-now-t tr.is-changing td:last-child { color: var(--gold); font-weight: 600; }
.adb-first textarea { width: 100%; margin: 8px 0; resize: vertical; }
.adb-change-line { margin: 2px 0 0; color: var(--soft); font-size: 12.5px; }
.ad-search-row { display: flex; gap: 6px; align-items: stretch; }
.ad-search-row #ad-desk-search { flex: 1 1 auto; min-width: 0; }
.ad-search-row .adb-btn.ad-by-artist { flex: 0 0 auto; height: 30px; min-height: 30px; padding: 0 9px; white-space: nowrap; font-size: 12px; }
.ad-by-artist[aria-pressed="true"] { border-color: var(--gold-line); background: var(--gold-soft); }
.adc-open.is-due .adc-count { background: var(--gold); color: var(--on-accent); }
.new-separator { display: flex; align-items: center; gap: 10px; margin: 12px 0; color: var(--gold); font-size: 12px; font-weight: 600; }
.new-separator::before, .new-separator::after { content: ""; flex: 1; height: 1px; background: var(--gold-line); }
.note-dialog.ada-calendar:not(:modal) { position: fixed; top: 128px; right: 16px; left: auto; z-index: 40; margin: 0; box-shadow: 0 18px 50px color-mix(in srgb, var(--ink) 28%, transparent); }
.ad-workspace #panel-ad-brief > .adb-dock:has(.adb-dock-why) { flex-wrap: wrap; }
.adb-dock-why { display: block; flex: 1 1 100%; order: 9; min-width: 0; padding: 2px 0 0; overflow: hidden; border: 0; background: none; color: var(--soft); font: inherit; font-size: 12px; text-align: left; text-overflow: ellipsis; white-space: nowrap; cursor: pointer; }
.adb-dock-why:hover { text-decoration: underline; }
@media (max-width: 999px) {
  .adb-dock { flex-wrap: wrap; }
  .adb-dock .adb-push-button { flex-basis: 100%; }
}
@media (prefers-reduced-motion: reduce) { .ad-workspace #side-threads .side-thread::after { transition: none; } }

/* 1 Nov: the chat's head readable for every client, whatever the suggested piece behind it */
.ad-workspace .head-art { display: none; }
.ad-workspace .side-chat-head .side-note { color: var(--ink2); }
.ad-workspace .side-chat-head :is(.lane-badge, .order-toggle) { opacity: 1; }
/* what to do: one heading per person, each thing a row to press */
.ad-workspace #panel-ad-brief > .adb-asks { padding: 14px 16px; background: var(--paper); }
.ad-workspace #panel-ad-brief > .adb-asks[hidden] { display: none; }
.adb-asks .adb-asks-h { margin: 0 0 10px; font: 600 18px/1.2 var(--display); letter-spacing: 0; text-transform: none; color: var(--ink); }
.adb-ask-group + .adb-ask-group { margin-top: 12px; }
.adb-ask-group h5 { margin: 0 0 4px; font: 600 12.5px/1.3 var(--text); color: var(--soft); }
.adb-asks ul { display: grid; gap: 0; margin: 0; padding: 0; list-style: none; border-top: 1px solid var(--rule); }
.adb-ask { border-bottom: 1px solid var(--rule); }
.adb-asks .adb-ask-go { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: baseline; gap: 12px; width: 100%; min-height: 36px; padding: 8px 2px; border: 0; border-radius: 0; background: none; box-shadow: none; color: var(--ink); font: 400 13px/1.4 var(--text); text-align: left; transform: none; }
.adb-asks .adb-ask-go:hover { background: var(--accent2); transform: none; }
.adb-ask-flag { min-width: 0; overflow-wrap: anywhere; }
.adb-ask-flag::first-letter { text-transform: uppercase; }
.adb-ask-verb { flex: none; font-size: 12px; font-weight: 500; color: var(--gold); white-space: nowrap; }
/* the brief's facts: words, not black boxes */
.ad-workspace .adb-supervisor-tags { gap: 4px 6px; }
.ad-workspace .adb-supervisor-tag, .adb-supervisor-tag { padding: 2px 8px; border: 1px solid var(--rule); border-radius: 999px; background: transparent; color: var(--ink2); font-size: 12px; box-shadow: none; }
.ad-workspace .adb-supervisor-tag.is-pending { color: var(--warn); border-color: color-mix(in srgb, var(--warn) 45%, transparent); background: transparent; box-shadow: none; }
.ad-workspace .adb-supervisor-tag.is-ready { color: var(--ok); border-color: color-mix(in srgb, var(--ok) 40%, transparent); background: transparent; }
/* other messages */
.adb-template-menu > summary { cursor: pointer; font-size: 13px; color: var(--ink2); }
.adb-template-groups { display: grid; gap: 10px; margin-top: 8px; }
.adb-template-group h5 { margin: 0 0 5px; font: 600 12px/1.3 var(--text); color: var(--soft); }
.adb-template-chips { display: flex; flex-wrap: wrap; gap: 5px; }
.adb-template-chip { min-height: 30px; padding: 4px 10px; border: 1px solid var(--rule2); border-radius: 999px; background: transparent; color: var(--ink); font: 500 12px/1.2 var(--text); cursor: pointer; transform: none; }
.adb-template-chip:hover { border-color: var(--gold-line); background: var(--accent2); transform: none; }
/* the brief's editor */
.adb-corrections > summary { padding: 4px 0; font: 700 14px/1.3 var(--text); cursor: pointer; color: var(--ink); }
.adb-corrections[open] { padding-bottom: 0; }
.adb-edit-fields { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; align-items: start; margin-top: 10px; }
#panel-ad-brief .adb-corrections :is(label, input, select, textarea) { margin: 0; }
.adb-edit-photo .adb-jump { width: auto; white-space: nowrap; }
.adb-edit-field { display: grid; gap: 3px; min-width: 0; margin: 0; font-size: 12px; color: var(--soft); }
.adb-corrections :is(.adb-edit-field, .adb-edit-line) > :is(input, select, textarea) { margin: 0; min-height: 34px; }
.adb-edit-field.is-tatto, .adb-edit-field.is-additional_detail { grid-column: 1 / -1; }
.adb-corrections :is(input[type=text], select, textarea) { box-sizing: border-box; width: 100%; min-width: 0; padding: 7px 9px; border: 1px solid var(--rule2); border-radius: var(--r-sm); background: var(--paper2); color: var(--ink); font: 13px/1.45 var(--text); resize: vertical; }
.adb-corrections :is(input[type=text], select, textarea):focus { border-color: var(--gold-line); outline: none; box-shadow: 0 0 0 2px var(--accent2); }
.adb-corrections label.is-changed :is(input, select, textarea) { border-color: var(--gold); }
.adb-edit-section { display: grid; gap: 6px; margin-top: 14px; }
.adb-edit-section h5 { margin: 0; font: 700 12.5px/1.3 var(--text); color: var(--ink); }
.adb-edit-line { display: grid; gap: 3px; margin: 0; font-size: 11.5px; color: var(--soft); }
.adb-edit-photo { display: grid; grid-template-columns: 40px auto minmax(0, 1fr) auto; align-items: center; gap: 6px 8px; }
.adb-edit-photo .adb-thumb { width: 40px; height: 40px; }
.adb-edit-photo textarea { grid-column: 3 / -1; }
.adb-edit-gone { margin-top: 12px; padding: 8px 10px; border-left: 2px solid var(--warn); font-size: 12.5px; color: var(--ink2); }
.adb-edit-gone p { margin: 4px 0 0; color: var(--ink); overflow-wrap: anywhere; }
.adb-edit-check { display: flex; align-items: center; gap: 8px; font-size: 12.5px; color: var(--ink2); }
.adb-corrections > textarea { margin-top: 14px; }
.adb-edit-foot { position: sticky; bottom: 54px; z-index: 2; display: flex; align-items: center; justify-content: flex-end; gap: 8px; margin: 10px -16px 0; padding: 8px 16px; background: var(--paper); border-top: 1px solid var(--rule); }
@media (max-width: 999px) { .adb-edit-foot { bottom: 100px; } }
.adb-edit-status { margin-right: auto; font-size: 12px; color: var(--ink2); }
.adb-arrange-more { display: grid; gap: 3px; justify-items: start; }
