/* Shared day/night palette and compact phone workspaces. */
:root{color-scheme:light;--bg:#f0f4fa;--panel:#fff;--ink:#172b45;--text:var(--ink);--muted:#526780;--line:#d8e2ef;--accent:#245b96;--accent2:#e4eefb;--accent-ink:#fff;--soft:#e9eff6;--danger:#ab3239;--warn:#845600;--header:#193450;--header-ink:#f2f7ff;--progress-bg:#d9f0ec;--progress-ink:#09675c;--planned-bg:#fff0cf;--planned-ink:#845600;--done-bg:#e3efdc;--done-ink:#43652a;--danger-bg:#ffeaec;--shadow:0 4px 18px rgba(24,46,75,.06)}
:root[data-theme=dark]{color-scheme:dark;--bg:#111b2a;--panel:#1c293b;--ink:#eff5ff;--text:var(--ink);--muted:#b1c2d8;--line:#374c65;--accent:#8cbeff;--accent2:#283f5e;--accent-ink:#102743;--soft:#203247;--danger:#ffadb5;--warn:#ffd888;--header:#14263d;--header-ink:#f2f7ff;--progress-bg:#193f3c;--progress-ink:#8fe0d1;--planned-bg:#493817;--planned-ink:#ffd888;--done-bg:#2a3e24;--done-ink:#b1d898;--danger-bg:#49252c;--shadow:0 4px 18px rgba(0,0,0,.14)}
:root[data-theme] body,:root[data-theme] .login-shell{background:var(--bg);color:var(--ink)}
:root[data-theme] :is(.panel,.login-card,.kpi,.case-card,.mobile-card,.field-job-card,.modal,.ghost,.team-note,.sak-card,.sak-work,.sak-section,.eq-card,.contact-card,input,select,textarea){background:var(--panel);color:var(--ink);border-color:var(--line)}
:root[data-theme] .primary,:root[data-theme] .sak-workspace button.primary,:root[data-theme] .field-action-wide{background:var(--accent);color:var(--accent-ink);border-color:transparent}
:root[data-theme] .secondary{background:var(--accent2);color:var(--accent);border-color:var(--line)}
:root[data-theme] .danger{background:var(--danger-bg);color:var(--danger);border-color:var(--danger)}
:root[data-theme] :is(.column,.planning-column,.ops-column,.phone-board-column,.timer-box,.service-rule,.demo-note){background:var(--soft);border-color:var(--line)}
:root[data-theme] :is(.sak-workspace,.sak-card small,.contacts-workspace,.eq-workspace){color:var(--ink)}
:root[data-theme] :is(.sak-card small,.case-no,.case-meta,.muted,.pw-muted,.planned-date){color:var(--muted)}
:root[data-theme] :is(.tag.in_progress,.tag.available,.sync-status.synced){background:var(--progress-bg);color:var(--progress-ink);border-color:var(--progress-ink)}
:root[data-theme] :is(.tag.upcoming,.tag.todo,.tag.waiting,.tag.review,.tag.ready_review,.tag.urgent,.sync-status.offline){background:var(--planned-bg);color:var(--planned-ink);border-color:var(--planned-ink)}
:root[data-theme] :is(.tag.invoiced,.tag.closed,.tag.completed){background:var(--done-bg);color:var(--done-ink)}
:root[data-theme] :is(.tag.emergency,.sync-status.error){background:var(--danger-bg);color:var(--danger)}
:root[data-theme] :is(.tag.to_invoice,.sync-status.syncing){background:var(--accent2);color:var(--accent)}
:root[data-theme] .topbar{background:var(--header);color:var(--header-ink);border-color:var(--line)}
:root[data-theme] .topbar :is(.ghost,.navbtn){background:transparent;color:var(--header-ink);border-color:transparent}
:root[data-theme] .topbar .navbtn.active{background:#285581;color:#fff}
:root[data-theme] .topbar :is(.brand small,.brand b){color:var(--header-ink)}
:root[data-theme] .topbar .brand-mark{background:#285581;color:#fff}
:root[data-theme] .topbar .sync-status{background:var(--panel);color:var(--ink)}
:root[data-theme] :is(.sak-tabs button[aria-pressed=true],.sak-actions button[aria-pressed=true],.sak-list-switch button[aria-pressed=true],.phone-work-filters button[aria-pressed=true]){background:var(--accent);color:var(--accent-ink);border-color:transparent}
:root[data-theme] .sak-workspace button:not(.primary):not([aria-pressed=true]){background:var(--panel);color:var(--ink);border-color:var(--line)}
:root[data-theme] :is(.sak-card,.sak-work,.sak-section,.sak-sale-line){border-color:var(--line)}
:root[data-theme] .case-cover0212,:root[data-theme] .ops-card-cover{background:var(--soft);border-color:var(--line)}
:root[data-theme] .case-cover-placeholder0212{color:var(--muted);background:transparent}
:root[data-theme] .case-cover-placeholder0212 i{background:var(--panel)}
:root[data-theme] .mobile-bottom-nav016{background:var(--panel);border-color:var(--line)}
:root[data-theme] .mobile-bottom-nav016 button{color:var(--muted);background:transparent}
:root[data-theme] .mobile-bottom-nav016 button.active{color:var(--accent);background:var(--accent2)}
#phonePageTitle,#phonePageAction,#phoneBrandMenu{display:none}
.phone-work-filters{display:flex;flex-wrap:wrap;gap:6px;margin:0 0 12px}
.phone-work-filters button{min-height:44px;padding:9px 11px;font-size:14px;font-weight:600}
.phone-work-filters button[data-work-status="TODO"]{border-color:#64748b}.phone-work-filters button[data-work-status="UPCOMING"]{border-color:#2563eb}.phone-work-filters button[data-work-status="IN_PROGRESS"]{border-color:#0f766e}.phone-work-filters button[data-work-status="WAITING"]{border-color:#b45309}.phone-work-filters button[data-work-status="DONE"]{border-color:#15803d}
.phone-work-list .mobile-jobs{max-width:none}
.phone-menu select{width:100%;min-width:0}
.phone-work-reminders{margin:0 0 12px;padding:10px 12px;border-radius:var(--radius-control);background:var(--planned-bg);color:var(--planned-ink)}
.phone-work-reminders summary{cursor:pointer;font-weight:600;min-height:24px}
.phone-work-reminders .attention-list{margin-top:10px}
/* Explicit preview mode follows the same geometry as a physical phone. */
:root[data-theme].compact-phone-menu .topbar{display:grid!important;grid-template-columns:44px minmax(0,1fr) 88px!important;gap:4px!important;padding:6px 12px!important;min-height:56px!important;height:auto!important;align-items:center}
:root[data-theme].compact-phone-menu .topbar>.brand{display:none!important}
:root[data-theme].compact-phone-menu #phoneBrandMenu{display:none!important}
:root[data-theme].compact-phone-menu #phoneMenuButton{display:grid!important;grid-column:1;grid-row:1;width:44px;min-width:44px;min-height:44px;padding:8px;font-size:18px}
:root[data-theme].compact-phone-menu #phonePageTitle{display:block;grid-column:2;grid-row:1;font-size:18px;line-height:1.25;font-weight:600;text-align:center;margin:0;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
:root[data-theme].compact-phone-menu .topbar>.top-actions{grid-column:3;grid-row:1;display:flex!important;gap:0;max-width:none;overflow:visible;margin:0;justify-content:flex-end}
:root[data-theme].compact-phone-menu .top-actions :is(#notificationBell,#phonePageAction){width:44px;min-width:44px;min-height:44px;padding:8px;font-size:18px}
:root[data-theme].compact-phone-menu #phonePageAction:not([hidden]){display:block}
:root[data-theme].compact-phone-menu #main [data-shell-primary]{display:none!important}
:root[data-theme].compact-phone-menu #main{padding:10px 12px 92px;min-width:0}
:root[data-theme].compact-phone-menu :is(.sak-workspace,.team-notes,.pw-workspace){padding:0;max-width:100%}
:root[data-theme].compact-phone-menu :is(.field-home-head,.field-offline-note,.sak-list-header,.sak-list-title){display:none!important}
:root[data-theme].compact-phone-menu .team-notes>header>div:not(:has(.note-open-equipment)){display:none}
:root[data-theme].compact-phone-menu .team-notes>header{margin:0 0 8px;justify-content:flex-end}
:root[data-theme].compact-phone-menu .pw-header>div:not(.pc-actions){display:none}
:root[data-theme].compact-phone-menu .pw-header{margin:0;padding:0;min-height:0}
:root[data-theme].compact-phone-menu .sak-list-switch{margin:0 0 12px;gap:6px}
:root[data-theme].compact-phone-menu .sak-list-switch button{flex:1;min-height:44px;font-size:14px;padding:10px 8px}
:root[data-theme].compact-phone-menu .sak-cards{margin:0;gap:12px}
:root[data-theme].compact-phone-menu .sak-card{padding:12px;border-radius:var(--radius-surface);box-shadow:none}
:root[data-theme].compact-phone-menu .sak-card h2{font-size:17px;margin:5px 0 8px}
:root[data-theme].compact-phone-menu .mobile-field-home{max-width:none;padding:0}
:root[data-theme].compact-phone-menu .phone-work-list .field-job-card{display:grid!important;grid-template-columns:minmax(0,1fr) 78px!important;align-items:center;gap:12px;padding:12px!important;border-radius:var(--radius-surface);min-height:96px;box-shadow:none;position:relative}
:root[data-theme].compact-phone-menu .phone-work-list .field-job-card>.case-cover0212.field-job-thumb{grid-column:2;grid-row:1;width:78px;min-width:78px;height:78px;min-height:78px;aspect-ratio:1;border:0;border-radius:var(--radius-control)}
:root[data-theme].compact-phone-menu .phone-work-list .field-job-body{grid-column:1;grid-row:1;padding:0;min-height:0;overflow-wrap:anywhere}
:root[data-theme].compact-phone-menu .phone-work-list .field-job-body h3{font-size:16px;line-height:1.35;font-weight:650;margin:4px 0 6px}
:root[data-theme].compact-phone-menu .phone-work-list .field-job-body>.muted{font-size:12px}
:root[data-theme].compact-phone-menu .phone-work-list .field-job-footer{font-size:12px;flex-wrap:wrap;gap:6px}
:root[data-theme].compact-phone-menu .phone-work-list .field-job-footer .tag{border-radius:var(--radius-control);font-size:11px;font-weight:600}
:root[data-theme].compact-phone-menu .phone-work-list .case-move0230{grid-column:1/-1}
:root[data-theme].compact-phone-menu .pw-outlay-summary{padding:12px 0;border:0;border-radius:0;background:transparent;margin:0 0 8px}
:root[data-theme].compact-phone-menu .pw-outlay-summary h2{display:none}
:root[data-theme].compact-phone-menu .pw-staff-outlay-summary h2{display:block}
:root[data-theme].compact-phone-menu .pw-outlay-summary dl{display:grid;grid-template-columns:1fr 1fr;gap:12px}
:root[data-theme].compact-phone-menu .pw-outlay-summary dl>div:first-child{grid-column:1/-1}
:root[data-theme].compact-phone-menu .pw-outlay-summary dl>div:first-child dd{font-size:25px}
:root[data-theme].compact-phone-menu .pw-outlay-summary dd{font-size:17px}
@media(min-width:601px){:root[data-theme].compact-phone-menu .pw-staff-outlay-summary dl{grid-template-columns:repeat(4,minmax(0,1fr))}:root[data-theme].compact-phone-menu .pw-staff-outlay-summary dl>div:first-child{grid-column:auto}}
:root[data-theme].compact-phone-menu .pw-phone-filters{display:flex;gap:5px;flex-wrap:wrap;margin:8px 0 12px}
:root[data-theme].compact-phone-menu .pw-phone-filters button{flex:1;min-height:44px;font-size:13px;padding:9px 7px;border:0;border-radius:var(--radius-control);background:transparent;color:var(--ink)}
:root[data-theme].compact-phone-menu .pw-phone-filters button[aria-pressed=true]{background:var(--accent);color:var(--accent-ink)}
:root[data-theme].compact-phone-menu .pw-row{border:1px solid var(--line);border-radius:var(--radius-surface);padding:16px;margin-bottom:10px;background:var(--panel);color:var(--ink)}
:root[data-theme].compact-phone-menu .note-categories{margin:0 0 10px}
:root[data-theme].compact-phone-menu .phone-notes-board{padding-top:0}
:root[data-theme].compact-phone-menu .phone-notes-board>.phone-board-column{background:var(--soft);border:0}
:root[data-theme].compact-phone-menu .team-note{border:0;border-radius:var(--radius-surface);padding:16px}
:root[data-theme].compact-phone-menu .team-note h2{font-size:17px;line-height:1.35}
:root[data-theme].compact-phone-menu .note-list-heading{margin-top:8px}
@media(prefers-reduced-motion:reduce){:root[data-theme] *{scroll-behavior:auto!important}}
:root[data-theme] :is(.pw-workspace,.pw-modal,.pw-case-receipt){--pw-ink:var(--ink);--pw-muted:var(--muted);--pw-line:var(--line);--pw-accent:var(--accent);--pw-link:var(--accent);--pw-canvas:var(--bg);--pw-surface:var(--panel);--pw-selected:var(--accent2);--pw-document:var(--soft);--pw-field:var(--panel);--pw-warning:var(--warn);--pw-warning-bg:var(--planned-bg);--pw-error:var(--danger);--pw-focus:var(--accent)}
:root[data-theme] :is(.pw-workspace,.pw-modal) .primary{color:var(--accent-ink)}
:root[data-theme] .pw-sections button.active{background:var(--accent2);color:var(--accent)}
:root[data-theme]{--border:var(--line);--card:var(--panel)}
:root[data-theme].compact-phone-menu .phone-work-list .case-move{display:none}
:root[data-theme].compact-phone-menu .pw-outlay-summary dl>div{display:block}
:root[data-theme].compact-phone-menu .pw-outlay-summary dd{text-align:left}
:root[data-theme].compact-phone-menu .pw-list{border:0;background:transparent;padding:0;max-height:none;overflow:visible}
:root[data-theme].compact-phone-menu .sak-card:has(.sak-card-cover){position:relative;padding-right:100px;min-height:130px}
:root[data-theme] .sak-card-cover{width:68px;height:68px;position:absolute;right:16px;top:50%;transform:translateY(-50%);border-radius:var(--radius-surface);border:0}
:root[data-theme]:not(.compact-phone-menu) .sak-card:has(.sak-card-cover){position:relative;padding-right:100px}
:root[data-theme].compact-phone-menu :is(.eq-page-head h1,.contacts-workspace>.page-head h1,.sak-workspace>h1){display:none}
:root[data-theme].compact-phone-menu .eq-page-head{margin:0 0 10px;gap:8px;flex-wrap:wrap}
:root[data-theme].compact-phone-menu .eq-page-head>div:first-child{display:none}
:root[data-theme].compact-phone-menu .contacts-workspace>.page-head{margin:0 0 10px}
:root[data-theme].compact-phone-menu .sak-date-controls{margin-top:0}
:root[data-theme].compact-phone-menu .eq-customer-home>.eq-register{min-height:0}
/* Phone work detail: expose the work and keep the existing action handlers. */
:root[data-theme] .phone-work-surface{background:var(--panel);border:1px solid var(--line);border-radius:var(--radius-surface);padding:12px;gap:0;color:var(--ink)}
:root[data-theme] .phone-work-surface .field-case-top{margin:0 0 12px;padding:0;flex-wrap:wrap}
:root[data-theme] .phone-work-surface .field-hero018{display:grid!important;grid-template-columns:minmax(0,1fr) 64px;align-items:center;gap:12px;background:transparent;color:var(--ink);border:0;border-radius:0;min-height:0;overflow:visible;margin:0;padding:0;box-shadow:none}
:root[data-theme] .phone-work-surface .field-hero018>.field-hero-body018{grid-column:1;grid-row:1;padding:0;width:auto;min-width:0;background:transparent}
:root[data-theme] .phone-work-surface .field-hero018>.field-hero-cover0212{grid-column:2;grid-row:1;width:64px;min-width:64px;height:64px;min-height:64px;border:0;border-radius:var(--radius-control);padding:0}
:root[data-theme] .phone-work-surface .field-hero018 h1{color:var(--ink);font-size:20px;margin:5px 0 8px;line-height:1.3;overflow-wrap:anywhere}
:root[data-theme] .phone-work-surface .field-hero018 .case-no{color:var(--muted)}
:root[data-theme] .phone-work-surface .phone-work-context{display:grid;grid-template-columns:auto minmax(0,1fr);gap:4px 10px;margin:14px 0;font-size:13px}
:root[data-theme] .phone-work-surface .phone-work-context dt{color:var(--muted)}
:root[data-theme] .phone-work-surface .phone-work-context dd{margin:0;overflow-wrap:anywhere}
:root[data-theme] .phone-work-surface .phone-case-description029{background:transparent;border:0;border-left:3px solid var(--accent);border-radius:0;padding:0 0 0 10px;margin:0 0 16px}
:root[data-theme] .phone-work-surface .phone-case-description029 h2{font-size:13px;margin:0 0 4px;color:var(--muted)}
:root[data-theme] .phone-work-surface .phone-case-description029 p{font-size:14px;margin:0;white-space:pre-wrap;overflow-wrap:anywhere}
:root[data-theme] .phone-work-surface .primary-actions018{grid-template-columns:repeat(4,minmax(0,1fr));gap:6px;margin:0 0 16px;padding:0;overflow:visible}
:root[data-theme] .phone-work-surface .primary-actions018 button{min-height:44px;padding:8px 3px;border-radius:var(--radius-control);box-shadow:none;gap:4px;grid-column:auto;white-space:normal}
:root[data-theme] .phone-work-surface .primary-actions018 b{font-size:12px;overflow-wrap:anywhere}
:root[data-theme] .phone-work-surface .primary-actions018 span{font-size:18px}
:root[data-theme] .phone-work-surface #hoursAction0212{grid-column:1/-1;display:flex;align-items:center;justify-content:center;min-height:44px;gap:8px;background:var(--accent);color:var(--accent-ink)}
:root[data-theme] .phone-work-surface #hoursAction0212 b{font-size:15px}
:root[data-theme] .phone-work-surface :is(#hoursPanel018,.field-details){background:transparent;border:0;border-top:1px solid var(--line);border-radius:0;box-shadow:none;margin:0;padding:14px 0}
:root[data-theme] .phone-work-surface .field-details>summary{padding:0;min-height:36px;font-size:15px}
:root[data-theme] .phone-work-surface .field-detail-body{padding:8px 0 0}
:root[data-theme] .phone-work-surface .phone-case-time-card0237{box-shadow:none;background:var(--panel);border-color:var(--line)}
:root[data-theme] .phone-work-surface #caseInfo025{background:transparent;color:var(--ink);border:0;border-top:1px solid var(--line);border-radius:0;margin:0 0 12px}
:root[data-theme] .phone-work-surface #caseInfo025>summary{padding:12px 0;min-height:44px}
:root[data-theme] .phone-work-surface #caseInfo025>summary>span{color:var(--ink);font-size:14px}
:root[data-theme] .phone-work-surface #caseInfo025>summary>b{display:none}
:root[data-theme] .phone-work-surface .phone-case-info-body025{border-color:var(--line);padding:0}
:root[data-theme] .phone-work-surface .phone-case-info-body025 :is(dt,small){color:var(--muted)}
:root[data-theme] .phone-work-surface .phone-case-info-body025 button{background:var(--panel);color:var(--ink);border-color:var(--line)}
:root[data-theme] .phone-work-surface #finishWork0212{margin:8px 0 0}
/* Sak detail keeps work selection next to the primary action. */
:root[data-theme] .sak-work-filters{display:flex;flex-wrap:wrap;gap:6px;margin:12px 0}
:root[data-theme] .sak-work-filters button{font-size:12px;padding:6px 9px;min-height:44px}
:root[data-theme] .sak-work-filters [aria-pressed=true]{background:var(--soft);color:var(--accent);border-color:var(--accent)}
:root[data-theme] .sak-work[hidden]{display:none}
:root[data-theme] .sak-work-cover{width:48px;height:48px;min-width:48px;border-radius:var(--radius-control);margin-left:auto}
:root[data-theme] .sak-work-heading{display:flex;justify-content:space-between;align-items:center;gap:10px;flex-wrap:wrap}
:root[data-theme] .sak-detail-surface{max-width:760px;background:var(--panel);border:1px solid var(--line);border-radius:var(--radius-surface);padding:14px}
:root[data-theme] .sak-detail-surface #sak-all{margin:0 0 12px}
:root[data-theme] .sak-detail-surface .sak-detail-header{display:flex;flex-direction:row;align-items:center;margin:0 0 12px;gap:10px}
:root[data-theme] .sak-detail-surface .sak-detail-header h1{font-size:21px;line-height:1.3;margin:0 0 5px}
:root[data-theme] .sak-detail-surface .sak-detail-header p{font-size:13px;color:var(--muted);margin:0}
:root[data-theme] .sak-detail-status{font-size:12px;border-radius:var(--radius-control);padding:4px 8px;background:var(--soft);color:var(--accent);white-space:nowrap}
:root[data-theme] .sak-detail-surface .sak-description{font-size:14px;border-left:3px solid var(--accent);padding-left:10px;margin:16px 0;white-space:pre-wrap}
:root[data-theme] .sak-detail-surface .contact-context{padding:0;border:0;box-shadow:none;background:transparent;margin:16px 0}
:root[data-theme] .sak-detail-surface .contact-context .page-head{gap:8px;align-items:center}
:root[data-theme] .sak-detail-surface .contact-context h3{font-size:14px;margin:0}
:root[data-theme] .sak-detail-surface .contact-context button{font-size:12px;padding:7px}
:root[data-theme] .sak-detail-surface #sak-work-list{border-top:1px solid var(--line);padding-top:16px}
:root[data-theme] .sak-detail-surface .sak-work-heading h2{font-size:15px;margin:0}
:root[data-theme] .sak-detail-surface #sak-add-work{font-size:13px;padding:8px 10px}
:root[data-theme] .sak-detail-surface .sak-work{border:0;border-bottom:1px solid var(--line);border-radius:0;padding:14px 0;margin:0;display:grid;grid-template-columns:minmax(0,1fr) auto;gap:6px 10px;align-items:center}
:root[data-theme] .sak-detail-surface .sak-work>div:not(.sak-work-cover){grid-column:1;grid-row:1}
:root[data-theme] .sak-detail-surface .sak-work>.sak-work-cover{grid-column:2;grid-row:1}
:root[data-theme] .sak-detail-surface .sak-open-work{background:transparent;border:0;padding:0;font-size:15px;min-height:44px;width:100%}
:root[data-theme] .sak-detail-surface .sak-work p,:root[data-theme] .sak-detail-surface .sak-work small{font-size:12px;margin:3px 0;color:var(--muted)}
:root[data-theme] .sak-detail-surface [data-plan-work]{grid-column:2;padding:6px 8px;font-size:12px}
:root[data-theme] .sak-admin-panel{margin-top:20px;border-top:1px solid var(--line);padding:12px 0}
:root[data-theme] .sak-admin-panel>summary{min-height:44px;padding:10px 0;cursor:pointer;font-weight:600}
:root[data-theme].compact-phone-menu .sak-detail-surface{padding:14px}
:root[data-theme] .sak-detail-surface .contact-context .page-head{display:flex;flex-direction:row;flex-wrap:wrap;justify-content:space-between}
:root[data-theme] .sak-detail-surface .contact-context .page-head button{width:auto}
:root[data-theme] .sak-detail-surface>section:not(#sak-work-list),:root[data-theme] .sak-detail-surface>.sak-section{background:transparent;border:0;border-top:1px solid var(--line);border-radius:0;box-shadow:none;padding:16px 0;margin:16px 0}
:root[data-theme] .sak-detail-surface h2{font-size:16px;line-height:1.4}
:root[data-theme] .sak-detail-surface .sak-work[hidden]{display:none}
/* Daily phone workspaces: direct actions, readable rows and stable list headings. */
:root[data-theme] .pw-phone-actions{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;margin:0 0 18px}
:root[data-theme] .pw-phone-actions .pw-new{grid-column:1/-1;min-height:46px;display:block!important}
:root[data-theme] .pw-phone-actions button{min-height:44px;font-size:14px;white-space:normal}
:root[data-theme].compact-phone-menu .pw-daily-surface .pw-outlay-summary{background:var(--soft);padding:14px;border-radius:var(--radius-control)}
:root[data-theme].compact-phone-menu .pw-daily-surface .pw-outlay-summary h2{display:block;font-size:15px;margin:0 0 10px}
:root[data-theme].compact-phone-menu .pw-daily-surface .pw-outlay-summary dl{display:block;margin:0}
:root[data-theme].compact-phone-menu .pw-daily-surface .pw-outlay-summary dl>div{display:flex;justify-content:space-between;gap:12px;margin:7px 0}
:root[data-theme].compact-phone-menu .pw-daily-surface .pw-outlay-summary dd{font-size:16px;text-align:right}
:root[data-theme].compact-phone-menu .pw-daily-surface .pw-outlay-summary dt{font-size:13px}
:root[data-theme].compact-phone-menu .pw-daily-surface .pw-row{border:0;border-bottom:1px solid var(--line);border-radius:0;padding:14px 0;margin:0}
:root[data-theme].compact-phone-menu .pw-daily-surface .pw-row.selected{background:var(--soft);padding-inline:10px;border-radius:var(--radius-control)}
:root[data-theme].compact-phone-menu .pw-daily-surface .pw-row-heading{align-items:flex-start;gap:12px}
:root[data-theme].compact-phone-menu .pw-daily-surface .pw-row-heading b{font-size:15px}
:root[data-theme].compact-phone-menu .pw-daily-surface .pw-row-heading strong{font-size:14px;white-space:nowrap}
:root[data-theme].compact-phone-menu .pw-daily-surface .pw-toolbar{padding:10px 0;gap:8px}
:root[data-theme].compact-phone-menu .pw-daily-surface .pw-phone-scopes{gap:6px}
:root[data-theme].compact-phone-menu .pw-daily-surface .pw-phone-scopes button{font-size:12px;padding:8px;min-height:44px;white-space:normal}
:root[data-theme] .sak-week-strip{display:grid;grid-template-columns:repeat(7,minmax(0,1fr));gap:4px;margin:14px 0}
:root[data-theme] .sak-week-strip button{display:grid;justify-items:center;gap:4px;padding:8px 2px;min-height:64px;border-radius:var(--radius-control);font-size:12px}
:root[data-theme] .sak-week-strip button b{font-size:17px}
:root[data-theme] .sak-week-strip button small{font-size:11px;color:var(--muted)}
:root[data-theme] .sak-week-strip [aria-pressed=true]{background:var(--accent);color:var(--accent-ink);border-color:var(--accent)}
:root[data-theme] .sak-week-strip [aria-pressed=true] small{color:inherit}
:root[data-theme] .sak-calendar-surface .sak-agenda>section>h2{font-size:16px;padding:12px 0;border-bottom:1px solid var(--line);margin:0}
:root[data-theme] .sak-calendar-surface .sak-agenda .sak-work{border:0;border-bottom:1px solid var(--line);border-radius:0;margin:0;padding:12px 0;gap:10px}
:root[data-theme] .sak-calendar-surface .sak-open-work{padding:4px 0;border:0;background:transparent;text-align:left}
:root[data-theme] .sak-calendar-surface .sak-work p,:root[data-theme] .sak-calendar-surface .sak-work small{font-size:12px;color:var(--muted)}
:root[data-theme].compact-phone-menu .sak-calendar-surface{padding:14px;border:1px solid var(--line);border-radius:var(--radius-surface);background:var(--panel)}
:root[data-theme].compact-phone-menu .sak-calendar-surface .sak-date-controls{display:grid;grid-template-columns:44px minmax(0,1fr) 44px;gap:6px;margin:0 0 12px}
:root[data-theme].compact-phone-menu .sak-calendar-surface #sak-today{grid-column:1/-1;justify-self:center;padding:6px 20px}
:root[data-theme].compact-phone-menu .sak-calendar-surface .sak-mode-controls{margin:12px 0;gap:6px}
:root[data-theme].compact-phone-menu .sak-calendar-surface .sak-actions button{font-size:13px;padding:8px}
:root[data-theme].compact-phone-menu .sak-calendar-surface .sak-actions select{width:100%;min-width:0}
:root[data-theme].compact-phone-menu .sak-calendar-surface .sak-work{display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:center}
:root[data-theme].compact-phone-menu .eq-simple .eq-toolbar{border:0;background:transparent;padding:0;gap:8px;box-shadow:none}
:root[data-theme].compact-phone-menu .eq-simple .eq-search{width:100%;min-width:0}
:root[data-theme].compact-phone-menu .eq-simple .eq-card-list{display:grid;grid-template-columns:minmax(0,1fr);gap:0}
:root[data-theme].compact-phone-menu .eq-simple .eq-card{border:0;border-bottom:1px solid var(--line);border-radius:0;box-shadow:none;margin:0;padding:0;background:var(--panel)}
:root[data-theme].compact-phone-menu .eq-simple .eq-card-open{display:grid;grid-template-columns:minmax(0,1fr) 56px;gap:6px 10px;padding:14px 10px;min-height:106px}
:root[data-theme].compact-phone-menu .eq-simple .eq-machine-thumb{grid-column:2;grid-row:1/3;width:56px;height:56px;min-width:56px;border-radius:var(--radius-control)}
:root[data-theme].compact-phone-menu .eq-simple .eq-card-title{grid-column:1;grid-row:1}
:root[data-theme].compact-phone-menu .eq-simple .eq-card-title b{font-size:15px}
:root[data-theme].compact-phone-menu .eq-simple .eq-card-meta{grid-column:1;grid-row:2;font-size:12px}
:root[data-theme].compact-phone-menu .eq-simple .eq-card-foot{grid-column:1/-1;gap:5px}
:root[data-theme].compact-phone-menu .eq-simple .eq-identity{display:grid;grid-template-columns:minmax(0,1fr) 64px;gap:12px}
:root[data-theme].compact-phone-menu .eq-simple .eq-identity>.eq-photo{grid-column:2;grid-row:1;width:64px;height:64px;min-width:64px;border-radius:var(--radius-control)}
:root[data-theme].compact-phone-menu .eq-simple .eq-identity>div:not(.eq-photo){grid-column:1;grid-row:1}
:root[data-theme].compact-phone-menu .eq-simple #equipmentHeading{font-size:20px;line-height:1.3}
:root[data-theme] .eq-simple .eq-header-metrics{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;margin:14px 0}
:root[data-theme] .eq-simple .eq-header-metrics>div{background:var(--soft);border:0;border-radius:var(--radius-control);padding:10px}
:root[data-theme] .eq-simple .eq-header-metrics small{color:var(--muted);font-size:12px}
:root[data-theme] .eq-simple .eq-header-metrics b{font-size:15px}
:root[data-theme].compact-phone-menu .eq-simple .eq-primary-actions{display:flex;flex-wrap:wrap;gap:6px}
:root[data-theme].compact-phone-menu .eq-simple .eq-primary-actions>button{flex:1 1 44%;font-size:13px;min-height:44px;padding:8px}
:root[data-theme].compact-phone-menu .eq-simple .eq-header-metrics>div:nth-child(n+3){display:none}
:root[data-theme].compact-phone-menu .eq-simple .eq-detail-header{padding:10px 4px 8px;border:0}
:root[data-theme].compact-phone-menu .eq-simple .eq-section{padding:8px 4px 14px}
:root[data-theme].compact-phone-menu .eq-simple .eq-extra-details{border-top:1px solid var(--line);padding-top:12px}
:root[data-theme].compact-phone-menu .eq-simple .eq-tabs{display:flex;flex-wrap:wrap;gap:5px}
:root[data-theme].compact-phone-menu .eq-simple .eq-tabs button{flex:1 1 auto;min-height:44px;font-size:12px;padding:8px}
:root[data-theme] .note-card-context{display:flex;flex-wrap:wrap;gap:6px}
:root[data-theme] .note-card-date{color:var(--accent)}
:root[data-theme] .note-board-position{color:var(--muted);font-size:12px;font-variant-numeric:tabular-nums}
:root[data-theme].compact-phone-menu .phone-notes-board>.phone-board-column{padding:10px;border-radius:var(--radius-surface);background:var(--soft)}
:root[data-theme].compact-phone-menu .phone-notes-board .note-list-heading{position:sticky;top:0;z-index:2;display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:center;gap:8px;margin:0;padding:8px 0 12px;background:var(--soft)}
:root[data-theme].compact-phone-menu .phone-notes-board .note-list-heading h2{flex:1 1 100%;font-size:16px;line-height:1.4;margin:0}
:root[data-theme].compact-phone-menu .phone-notes-board .note-list-heading button{min-height:44px;font-size:12px;padding:8px}
:root[data-theme].compact-phone-menu .phone-notes-board .note-board-position{margin-left:auto}
:root[data-theme].compact-phone-menu .phone-notes-board .note-card-list-name{display:none}
:root[data-theme].compact-phone-menu .phone-notes-board .team-note{padding:12px;margin:0;border:1px solid var(--line);border-radius:var(--radius-control);background:var(--panel)}
:root[data-theme].compact-phone-menu .phone-notes-board .team-note h2{font-size:16px;margin:6px 0}
:root[data-theme].compact-phone-menu .phone-notes-board .team-note .note-body{font-size:14px;line-height:1.5;margin:8px 0}
:root[data-theme].compact-phone-menu .phone-notes-board .team-note .actions{gap:6px;flex-wrap:wrap;margin-top:10px}
:root[data-theme].compact-phone-menu .phone-notes-board .team-note .actions button{min-height:44px;font-size:12px;padding:8px}

:root[data-theme].compact-phone-menu .pw-daily-surface .pw-outlay-summary dl>div:first-child dd{font-size:16px}
:root[data-theme].compact-phone-menu .pw-daily-surface .pw-no-selection{display:none}

:root[data-theme].compact-phone-menu .phone-notes-board .note-list-heading>div:first-child,:root[data-theme].compact-phone-menu .phone-notes-board .note-list-heading>h2{grid-column:1/-1;text-align:left}
:root[data-theme].compact-phone-menu .phone-notes-board .note-list-heading .note-audience{margin:5px 0;font-size:12px}
:root[data-theme] .feedback-workspace{max-width:980px;margin:0 auto;padding:24px}:root[data-theme] .feedback-tabs{display:flex;gap:8px;margin:18px 0}:root[data-theme] .feedback-tabs button.active{background:var(--accent);color:var(--accent-ink)}:root[data-theme] #feedback-list{display:grid;gap:12px}:root[data-theme] .feedback-card{padding:18px;border:1px solid var(--line);border-radius:var(--radius-surface);background:var(--panel)}:root[data-theme] .feedback-card header,:root[data-theme] .feedback-card footer{display:flex;align-items:center;justify-content:space-between;gap:12px}:root[data-theme] .feedback-card h2{margin:12px 0 8px;font-size:19px}:root[data-theme] .feedback-card p{white-space:pre-wrap;line-height:1.55}:root[data-theme] .feedback-card time{color:var(--muted);font-size:12px}:root[data-theme] .feedback-submit{display:grid;gap:10px}:root[data-theme] .feedback-submit form{display:grid;gap:14px}:root[data-theme] .feedback-submit textarea{resize:vertical}:root[data-theme] .feedback-error{color:var(--danger)}
@media(max-width:700px){:root[data-theme] .feedback-workspace{padding:14px}:root[data-theme] .feedback-card footer{align-items:flex-start;flex-direction:column}:root[data-theme] .feedback-card footer button{width:100%}}

/* Desktop workspaces use the viewport; forms retain their own readable widths. */
@media screen and (min-width:601px){
 :root[data-theme] #main{width:100%;max-width:none;margin-inline:0}
 :root[data-theme] .finance-hub-nav{max-width:none}
 :root[data-theme] :is(.accounting-home024,.contacts-workspace,.bp,.wt-workspace,.sak-workspace,.team-notes,.hb-workspace,.feedback-workspace,.manual-workspace,.search-page019){max-width:none}
 :root[data-theme] :is(.pw-review,.feedback-submit form,.team-note-editor){max-width:850px}
 :root[data-theme] :is(.manual-workspace>section,.hb-procedure-body,.feedback-card p,.team-note .note-body){max-width:80ch}
}
@media(max-width:600px){
 :root[data-theme] .finance-workspace .economics-invoice-tabs024{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:6px}
 :root[data-theme] .finance-workspace .economics-invoice-tabs024>button{min-width:0;white-space:normal;min-height:44px}
 :root[data-theme] .finance-workspace .economics-invoice-tabs024>details{grid-column:1/-1}
}
:root[data-theme].compact-phone-menu #nav{display:none!important}
:root[data-theme].compact-phone-menu .sak-tabs,:root[data-theme].compact-phone-menu .pw-home-capture{display:none}
@media(min-width:601px){
 :root[data-theme].compact-phone-menu .topbar{padding-inline:24px!important}
 :root[data-theme].compact-phone-menu #main{width:100%;max-width:none;margin-inline:0;padding:24px 24px 48px}
 :root[data-theme].compact-phone-menu .phone-work-list .mobile-jobs{display:grid;grid-template-columns:minmax(0,1fr);gap:16px}
 :root[data-theme].compact-phone-menu .phone-work-list .field-job-card{margin:0!important;height:100%}
 :root[data-theme].compact-phone-menu .phone-board-workflow029{margin-bottom:20px}
 :root[data-theme].compact-phone-menu .phone-work-surface{width:100%;max-width:none;margin-inline:0;padding:18px}
 :root[data-theme].compact-phone-menu .phone-work-surface form{max-width:960px}
 :root[data-theme].compact-phone-menu .phone-work-surface .phone-job-actions029{grid-template-columns:repeat(2,minmax(0,1fr))}
 :root[data-theme].compact-phone-menu .phone-work-surface .field-hero018 h1{max-width:none;font-size:24px}
 :root[data-theme].compact-phone-menu .case-workflow-step028 b{font-size:13px}
 :root[data-theme].compact-phone-menu .sak-cards{display:grid;grid-template-columns:minmax(0,1fr);gap:16px}
 :root[data-theme].compact-phone-menu .sak-list-switch{max-width:560px}
 :root[data-theme].compact-phone-menu .eq-simple .eq-card-list{grid-template-columns:minmax(0,1fr);gap:0}
 :root[data-theme].compact-phone-menu .eq-simple .eq-search{max-width:480px}
 :root[data-theme].compact-phone-menu .note-list{display:grid;grid-template-columns:minmax(0,1fr);gap:16px}
 :root[data-theme].compact-phone-menu .note-list-heading{flex-direction:row;align-items:center}
 :root[data-theme].compact-phone-menu .note-list-heading .actions{width:auto}
 :root[data-theme].compact-phone-menu .pw-phone-actions{grid-template-columns:repeat(3,minmax(0,1fr))}
 :root[data-theme].compact-phone-menu .pw-phone-actions .pw-new{grid-column:auto}
}
