/* Production bindings for the approved Dawnline layout. */
:root[data-theme] .compact-profile{position:relative;gap:14px;padding:20px;overflow:visible}
:root[data-theme] .compact-profile .account-fields{grid-template-columns:minmax(0,1.35fr) minmax(0,1fr);gap:18px}
:root[data-theme] .compact-profile .account-stats{align-items:center;justify-content:flex-start;flex-wrap:wrap;gap:12px}
:root[data-theme] .compact-profile .grade-stat{margin-left:auto;display:flex;gap:5px;padding:0;background:none;max-width:100%}
:root[data-theme] .compact-profile .grade-copy small{display:none}
:root[data-theme] .compact-profile .grade-copy b{font-size:11px!important}
.release-menu{position:relative;margin-left:2px;flex:none}
.release-menu>summary{display:grid;place-items:center;width:34px;height:34px;list-style:none;cursor:pointer;background:var(--card-alt);border-radius:50%;padding:0}
.release-menu>summary::-webkit-details-marker{display:none}
.release-menu-body{position:absolute;right:0;top:42px;width:min(350px,calc(100vw - 65px));z-index:30;padding:12px;border:1px solid var(--border);background:var(--card);border-radius:18px;box-shadow:0 14px 35px #0005}
.release-menu-body .refresh-row{display:flex;flex-wrap:wrap;position:static;margin:0 0 8px;width:auto}
.release-menu-body .account-details summary{font-size:12px}
:root[data-theme] .compact-profile .account-details>summary{display:flex;gap:8px;align-items:center;font-size:12px;min-height:42px;padding:10px 0}
:root[data-theme] .compact-profile .account-details>summary>.detail-count{margin-left:auto}
:root[data-theme] .compact-profile .account-details>summary::after{margin-left:0;width:16px;height:16px}
:root[data-theme] .page-tabs a.active::after{display:none}
.shift-calendar-controls{display:flex;gap:12px}
[data-action="shift-today"]{display:none}
:root[data-theme] .release-wizard{position:fixed;inset:0;margin:auto;width:min(480px,calc(100% - 24px));height:auto;max-height:calc(100dvh - 24px);padding:24px;border-radius:26px;overflow:auto;background:var(--card)}
:root[data-theme] .release-wizard form{display:block;height:auto;max-height:none}
:root[data-theme] .release-wizard .drawer-header{padding:0;margin-bottom:20px;border:0;align-items:center}
.release-wizard .drawer-header .eyebrow{display:none}
.release-wizard .drawer-header h2{font-size:14px;font-weight:400;color:var(--muted)}
:root[data-theme] .release-wizard .drawer-body{padding:0;overflow:visible;max-height:none}
.release-step[hidden]{display:none!important}
.release-step{min-width:0}
.release-step h3{font-size:21px;line-height:1.3;font-weight:500;margin:22px 0 16px}
.release-wizard .field{font-size:12px;margin:16px 0}
.release-wizard .wizard-progress{display:flex;align-items:center;justify-content:space-between;gap:12px;min-height:28px}
.release-wizard .wizard-progress>span{display:flex;align-items:center;gap:0;white-space:nowrap;flex:0 0 auto}
.release-wizard .wizard-progress>span.current{gap:8px}
.release-wizard .wizard-progress i{display:grid;place-items:center;width:24px;height:24px;border-radius:50%;font-style:normal;background:var(--card-alt);font-size:11px;color:var(--muted)}
.release-wizard .wizard-progress .current i{background:var(--accent);color:white}
.release-wizard .wizard-progress .done i{color:var(--ok)}
.release-account-field,.release-context-only{display:none!important}
.release-account-caption{margin-bottom:16px}
:root[data-theme] .release-wizard .drawer-footer{display:flex;justify-content:space-between;align-items:center;gap:10px;padding:18px 0 0;margin-top:20px;border-top:1px solid var(--border)}
.release-wizard .drawer-footer .button{min-height:42px;min-width:0;padding:10px 14px;font-size:12px}
.release-wizard .calendar{gap:4px}.release-wizard .calendar-day{min-height:34px;height:34px;padding:0;font-size:12px}
.release-wizard .hours-grid{grid-template-columns:repeat(6,minmax(0,1fr));gap:5px}
.release-wizard .hours-grid .hour-chip{min-height:36px}
.release-wizard .drawer-header>.icon-button{width:40px;height:40px;display:grid;place-items:center;padding:0}
:root[data-scope="account"] .dawnline-dashboard{max-width:630px;margin:auto;padding-top:24px}
:root[data-scope="account"] .page-tabs,:root[data-scope="account"] #summary,:root[data-scope="account"] .accounts-title,:root[data-scope="account"] .filter-bar,:root[data-scope="account"] .title-lockup,:root[data-scope="account"] #logoutBtn,:root[data-scope="account"] #notificationsButton{display:none!important}
:root[data-scope="account"] .page-header{display:flex!important;justify-content:flex-end}
:root[data-scope="account"] .compact-profile{gap:18px;padding:24px}
:root[data-scope="account"] .compact-profile .account-actions .button{min-height:44px;font-size:12px}
:root[data-theme] .metrics{grid-template-columns:repeat(6,minmax(0,1fr))}
@media(max-width:740px){:root[data-theme] .account-list{grid-template-columns:1fr}:root[data-theme] .metrics{grid-template-columns:repeat(3,minmax(0,1fr))}.page-tabs{overflow:auto}.release-wizard .field input,.release-wizard .themed-trigger{font-size:16px;min-height:44px}}
@media(max-width:520px){:root[data-theme] .compact-profile .account-fields{grid-template-columns:1fr;gap:16px}:root[data-theme] .release-wizard{padding:20px 16px}.release-wizard .wizard-progress{gap:8px}.release-wizard .quick-dates{flex-wrap:wrap}.release-wizard .drawer-footer .button{flex:none}:root[data-scope="account"] .compact-profile{padding:20px 18px}}
@media(max-width:380px){:root[data-theme] .compact-profile .account-actions{grid-template-columns:1fr}.release-wizard .wizard-progress>span{font-size:11px}}
:root[data-theme] .release-wizard{inset:50% 0 auto;translate:0 -50%;height:fit-content}:root[data-theme] .release-wizard .drawer-body{flex:none;min-height:0}:root[data-theme] .release-wizard .drawer-header{min-height:40px}:root[data-theme] .compact-profile>*{flex-shrink:0}

html[data-scope="account"] #view-system,html[data-scope="account"] #view-activity,html[data-scope="account"] #systemTab,html[data-scope="account"] #activityTab{display:none!important}
[hidden]{display:none!important}

/* A compact range editor; the full hour filters stay available on demand. */
.time-presets{display:grid;grid-template-columns:1fr 1fr 1fr;gap:8px;margin:0 0 16px}
.time-preset{display:flex;align-items:center;justify-content:center;gap:7px;min-height:62px;padding:10px 8px;border:1px solid transparent;border-radius:16px;background:var(--card-alt);color:var(--text);font:inherit;font-size:12px;cursor:pointer}
.time-preset .icon{width:17px;height:17px;flex:none}.time-preset span{display:flex;flex-direction:column;gap:4px}.time-preset small{color:var(--muted);font-size:10px}
.time-preset.selected{border-color:var(--accent);background:var(--accent-soft);color:var(--accent)}.time-preset.selected small{color:inherit}
.compact-time-selects{display:grid;grid-template-columns:minmax(0,1fr) 16px minmax(0,1fr);align-items:center;gap:8px}
.release-wizard .compact-time-selects .field{margin:0;font-size:12px}.time-range-arrow{color:var(--muted);text-align:center;margin-top:20px}
.simple-time-summary{margin:12px 0 18px;color:var(--muted);font-size:12px;line-height:1.5;min-height:18px}
.time-advanced{margin-top:6px;border-top:1px solid var(--border);padding-top:12px}
.time-advanced>summary{display:flex;align-items:center;gap:8px;justify-content:space-between;list-style:none;cursor:pointer;color:var(--muted);font-size:12px;min-height:36px}
.time-advanced>summary::-webkit-details-marker{display:none}.time-advanced>summary::after{content:'+';font-size:20px}.time-advanced[open]>summary::after{content:'−'}
.time-advanced-body{padding-top:14px;font-size:12px}.time-advanced-body #timeFilterGroup{margin-top:10px}.time-advanced-body .hours-block{margin-top:16px}
:root[data-theme] .compact-profile .priority-row{display:flex;align-items:flex-start;flex-wrap:wrap;gap:12px;padding:14px 0}
.priority-description{flex:1 1 240px;min-width:0}.priority-description p{font-size:11px;line-height:1.6;margin-top:5px;overflow-wrap:anywhere}.priority-actions{display:flex;flex-wrap:wrap;gap:7px;align-items:center}.priority-actions .button{min-height:36px}
@media(max-width:520px){.time-presets{gap:6px}.time-preset{min-height:64px;padding:9px 5px;font-size:11px}.time-preset .icon{display:none}.time-preset small{font-size:9px}.release-wizard .compact-time-selects .themed-trigger{font-size:16px;min-height:48px}.priority-actions{width:100%}.priority-actions .button{flex:1}.compact-time-selects{gap:6px;grid-template-columns:minmax(0,1fr) 12px minmax(0,1fr)}}

/* Admin-only visibility: status is visible without opening account details. */
html[data-scope="account"] .admin-bot-monitor{display:none!important}
.bot-runtime-strip{display:flex;align-items:center;justify-content:space-between;gap:18px;padding:17px 20px;margin:0 0 22px;border:1px solid var(--border);border-radius:20px;background:var(--card)}
.bot-runtime-state{display:flex;align-items:center;gap:12px;min-width:0}.bot-runtime-state>i{width:9px;height:9px;flex:none;border-radius:50%;background:var(--ok,#30d158)}
.bot-runtime-state strong{display:block;font-size:14px;font-weight:550;line-height:1.5}.bot-runtime-state span{display:block;margin-top:4px;font-size:11px;line-height:1.5;color:var(--muted)}
.bot-runtime-strip[data-tone="off"] .bot-runtime-state>i,.bot-runtime-strip[data-tone="waiting"] .bot-runtime-state>i{background:var(--muted)}
.bot-runtime-strip[data-tone="warn"] .bot-runtime-state>i{background:var(--amber,#ffb74d)}.bot-runtime-strip[data-tone="bad"] .bot-runtime-state>i{background:var(--red,#ff6666)}
.bot-runtime-facts{display:flex;align-items:center;flex-wrap:wrap;gap:14px 24px;margin:0}.bot-runtime-facts dt{font-size:10px;color:var(--muted);margin-bottom:5px}.bot-runtime-facts dd{font-size:12px;line-height:1.4;margin:0;font-variant-numeric:tabular-nums}
.bot-runtime-strip>.button{flex:none;font-size:11px;min-height:36px;padding:8px 12px}
:root[data-theme] .bot-live-panel{padding:20px;margin-top:24px;border-radius:22px}
.bot-live-head{display:flex;justify-content:space-between;align-items:center;gap:14px;margin-bottom:14px}.bot-live-head h3{font-size:15px;font-weight:500}.bot-live-head p{font-size:11px;line-height:1.5;color:var(--muted);margin-top:5px}
.bot-feed-state{font-size:10px;color:var(--muted);white-space:nowrap}.bot-feed-state[data-tone="bad"]{color:var(--red)}
.bot-live-log{height:210px;min-height:130px;padding:12px 14px;margin:0;border:0;border-radius:14px;overflow:auto;background:var(--bg);font-size:11px;line-height:1.7;scrollbar-width:thin;scrollbar-color:var(--knob) transparent;overflow-wrap:anywhere;white-space:pre-wrap}.bot-live-log>div{padding:3px 0}
@media(max-width:1000px){.bot-runtime-strip{flex-wrap:wrap}.bot-runtime-state{flex:1}.bot-runtime-facts{order:3;flex-basis:100%;gap:14px 24px}}
@media(max-width:520px){.bot-runtime-strip{padding:16px;gap:14px}.bot-runtime-state strong{font-size:13px}.bot-runtime-facts{display:grid;grid-template-columns:1fr 1fr;gap:14px}.bot-runtime-facts>div:last-child{grid-column:1/-1}.bot-runtime-strip>.button{font-size:10px;padding:8px}.bot-live-head{align-items:flex-start;flex-direction:column;gap:8px}:root[data-theme] .bot-live-panel{padding:16px}.bot-live-log{font-size:10px}}

/* Calendar occupancy is shown by colour; every date keeps the same alignment. */
:root[data-theme] .shift-calendar-day{display:grid;place-items:center;align-content:center;justify-content:center;gap:0}
:root[data-theme] .shift-calendar-day .shift-day-number{display:block;position:static;margin:0;padding:0;line-height:1;text-align:center}
:root[data-theme] .shift-calendar-day .shift-day-mark{display:none!important}
/* Keep the account calendar on the same neutral surfaces as its card. */
:root[data-theme] .account-details .shift-calendar.compact{background:var(--card)}
:root[data-theme] .account-details .shift-calendar-day{background:var(--card-alt);color:var(--text)}
:root[data-theme] .account-details .shift-calendar-day.has-shifts{background:var(--ok-soft);color:var(--ok)}
:root[data-theme] .account-details .shift-calendar-day.has-cancelled:not(.has-active){background:var(--bad-soft);color:var(--red)}
:root[data-theme] .account-details .shift-calendar-day.selected{background:var(--card-alt);color:var(--text);box-shadow:inset 0 0 0 2px var(--text)}
:root[data-theme] .account-details .shift-calendar-day.selected.has-shifts{background:var(--ok-soft);color:var(--ok)}
:root[data-theme] .account-details .shift-calendar-day.selected.has-cancelled:not(.has-active){background:var(--bad-soft);color:var(--red)}
:root[data-theme] .account-details .shift-calendar-day.today:not(.selected){box-shadow:inset 0 0 0 1px var(--muted)}

/* On phones the header has two grid rows. Its desktop fixed height clipped the
   second row, so the navigation overlapped the bot state card. */
@media(max-width:600px){
  :root[data-theme] .wrap .dawnline-dashboard .page-header{
    height:auto;min-height:0;grid-template-rows:auto auto;row-gap:14px;
    margin-bottom:18px;align-items:center;
  }
  :root[data-theme] .wrap .dawnline-dashboard .page-tabs{
    grid-column:1/-1;grid-row:2;justify-self:stretch;
    width:100%;min-width:0;margin:0;
  }
}
.shift-deadline-field{margin-top:18px;padding-top:4px;border-top:1px solid var(--border)}
.scope-members{display:block;font-size:11px;line-height:1.6;margin-top:8px}

/* The date picker belongs to the dialog surface in either theme. */
:root[data-theme] .release-wizard .editor-calendar{background:transparent;border:0}
:root[data-theme] .release-wizard .calendar-day{background:color-mix(in srgb,var(--text) 5%,var(--card));color:var(--text)}
:root[data-theme] .release-wizard .calendar-day.selected{background:var(--accent);color:var(--on-accent);border-color:var(--accent)}
:root[data-theme] .release-wizard .calendar-day:disabled{color:var(--muted)}

/* Selected motion: horizontal goal steps and a light wave on clicked dates. */
.release-wizard .release-step{overflow-wrap:anywhere}
:root[data-theme] .release-wizard .calendar-day{transition:background-color 1000ms cubic-bezier(.22,1,.36,1),color 850ms!important}
@media(prefers-reduced-motion:reduce){:root[data-theme] .release-wizard .calendar-day{transition:none!important}}
