/* unei-BOAT v2.45.0 — shared design tokens and component contract (white / blue theme).
   All page styles consume these tokens; sheet and calendar layout lives here.
   Runtime result/tag colors and image-generation overlays are intentionally preserved. */
:root{
 color-scheme:light;
 --ds-bg:#f3f7fc;--ds-header:#edf3fa;--ds-surface:#ffffff;--ds-surface-alt:#f6f9fd;--ds-surface-raised:#e9f1fa;
 --ds-topbar:#1b5fb8;--ds-topbar-line:#164f9b;--ds-input-bg:#ffffff;
 --ds-text:#17283d;--ds-muted:#5b6c82;--ds-line:#d3dfec;
 --ds-blue-solid:#1f6fd0;--ds-blue-text:#1557a8;--ds-blue-soft:#e3eefb;--ds-blue-line:#8fb6e6;
 --ds-green-solid:#1f8a5c;--ds-green-text:#176a46;--ds-green-soft:#e3f4ea;--ds-green-line:#8fcfae;
 --ds-amber-solid:#f5b942;--ds-amber-text:#7a5200;--ds-amber-soft:#fff3d6;--ds-amber-line:#e5c27a;
 --ds-red-solid:#c9384a;--ds-red-text:#a1283a;--ds-red-soft:#fbe6ea;--ds-red-line:#e8a3ad;
 --ds-purple-solid:#6f4fa8;--ds-purple-text:#5b3f8a;--ds-purple-soft:#efe8f8;--ds-purple-line:#bfa6df;
 --navy:var(--ds-topbar);--navy2:var(--ds-surface);--bg:var(--ds-bg);--card:var(--ds-surface);--text:var(--ds-text);--muted:var(--ds-muted);--line:var(--ds-line);
 --blue:var(--ds-blue-solid);--blue2:#1a5fb4;--green:var(--ds-green-solid);--red:var(--ds-red-solid);--amber:var(--ds-amber-text);--radius:8px;--shadow:none;
 --ui-bg:var(--ds-bg);--ui-surface:var(--ds-surface);--ui-surface-soft:var(--ds-surface-alt);--ui-ink:var(--ds-text);--ui-muted:var(--ds-muted);
 --ui-border:var(--ds-line);--ui-border-strong:var(--ds-line);--ui-line:var(--ds-line);--ui-line-strong:var(--ds-blue-line);
 --ui-blue:var(--ds-blue-solid);--ui-blue-dark:var(--ds-blue-text);--ui-blue-soft:var(--ds-blue-soft);--ui-primary:var(--ds-blue-solid);--ui-primary-deep:var(--ds-blue-text);--ui-primary-soft:var(--ds-blue-soft);
 --ui-green-soft:var(--ds-green-soft);--ui-orange-soft:var(--ds-amber-soft);--ui-night-soft:var(--ds-blue-soft);--ui-special-soft:var(--ds-amber-soft);--ui-top-soft:var(--ds-purple-soft);
 --ui-shadow:none;--ui-shadow-soft:0 1px 3px rgba(23,40,61,.06);--ui-shadow-lift:0 6px 18px rgba(23,40,61,.08);
}
/* Dark mode: toggled from the header button, saved in localStorage (unei-theme). Default is light. */
:root[data-theme="dark"]{
 color-scheme:dark;
 --ds-bg:#101c29;--ds-header:#0e1b2a;--ds-surface:#192b3c;--ds-surface-alt:#1c3043;--ds-surface-raised:#263f55;
 --ds-topbar:#0e1b2a;--ds-topbar-line:#34455e;--ds-input-bg:#0e1b2a;
 --ds-text:#e7eef6;--ds-muted:#b5c3d3;--ds-line:#3a4d62;
 --ds-blue-solid:#2168ba;--ds-blue-text:#8ebeff;--ds-blue-soft:#263f5d;--ds-blue-line:#527fb0;
 --ds-green-solid:#1e684d;--ds-green-text:#8fdfad;--ds-green-soft:#203d36;--ds-green-line:#427e62;
 --ds-amber-solid:#765d24;--ds-amber-text:#efca78;--ds-amber-soft:#3d3828;--ds-amber-line:#8c7546;
 --ds-red-solid:#a33346;--ds-red-text:#ffadbb;--ds-red-soft:#422c38;--ds-red-line:#a55a6b;
 --ds-purple-solid:#634b8a;--ds-purple-text:#d7b3fa;--ds-purple-soft:#342e49;--ds-purple-line:#82669d;
 --blue2:#287ad1;--ui-shadow-soft:none;--ui-shadow-lift:none;
}
:root[data-theme="dark"] body.ui-refreshed .btn:hover{filter:brightness(1.14)}
:root[data-theme="dark"] body.ui-refreshed dialog::backdrop{background:#05101dc9}
:root[data-theme="dark"] body.ui-refreshed input::placeholder,:root[data-theme="dark"] body.ui-refreshed textarea::placeholder{color:#94a7ba}
/* Theme toggle in the header */
.theme-toggle{border:1px solid rgba(255,255,255,.45);border-radius:999px;background:rgba(255,255,255,.12);color:#fff;padding:5px 11px;font-size:12px;font-weight:650;line-height:1.4;min-height:30px;cursor:pointer;white-space:nowrap}
.theme-toggle:hover{background:rgba(255,255,255,.22)}
.login-page .theme-toggle{position:fixed;top:12px;right:12px;background:var(--ds-surface);color:var(--ds-blue-text);border-color:var(--ds-blue-line);z-index:5}
/* Breathing room at both edges of the content area (sidebar layout) */
body.ui-refreshed.bwo-nav-enabled .page-shell{padding-left:22px;padding-right:22px;box-sizing:border-box}
@media(max-width:760px){body.ui-refreshed.bwo-nav-enabled .page-shell{padding-left:12px;padding-right:12px}}
/* Per-page usage help (closed by default) */
.page-help{margin:0 0 14px;border:1px solid var(--ds-line);border-radius:8px;background:var(--ds-surface)}
.page-help>summary{cursor:pointer;padding:10px 14px;font-weight:650;color:var(--ds-blue-text);list-style:none;display:flex;gap:10px;align-items:center;flex-wrap:wrap}
.page-help>summary::-webkit-details-marker{display:none}
.page-help>summary::before{content:'▸';font-size:12px}
.page-help[open]>summary::before{content:'▾'}
.page-help>summary:focus-visible{outline:2px solid var(--ds-blue-text);outline-offset:2px;border-radius:8px}
.page-help-hint{font-size:11px;font-weight:500;color:var(--ds-muted)}
.page-help-body{padding:0 16px 14px;font-size:13px;line-height:1.75;color:var(--ds-text);border-top:1px solid var(--ds-line)}
.page-help-body p{margin:10px 0 4px}
.page-help-body h3{font-size:13px;margin:10px 0 4px;color:var(--ds-muted);font-weight:650}
.page-help-body ol,.page-help-body ul{margin:0 0 6px 20px;padding:0}
.page-help-body li{margin:2px 0}
html,body{background:var(--ds-bg);color:var(--ds-text)}
body.ui-refreshed{font-size:13px;background:var(--ds-bg);--radius:8px;--shadow:none}
body.ui-refreshed .page-shell{width:calc(100% - 32px);max-width:1800px;margin:18px auto 40px;min-width:0}
body.ui-refreshed .topbar{background:var(--ds-topbar);color:#fff;border-bottom:1px solid var(--ds-topbar-line);box-shadow:0 1px 4px rgba(23,40,61,.18);min-height:56px;padding:8px 16px;gap:14px}
body.ui-refreshed .topbar .brand-mark,body.ui-refreshed .topbar .top-user{color:#fff}
body.ui-refreshed .topbar .btn-danger{background:#fff;color:#a1283a;border:1px solid #fff}
body.ui-refreshed .nav-btn:hover{background:var(--ds-blue-soft);color:var(--ds-blue-text)}
body.ui-refreshed .brand-mark{font-size:16px;font-weight:750;border:0;box-shadow:none}
body.ui-refreshed .page-title{font-size:23px;line-height:1.4;font-weight:700;color:var(--ds-text)}
body.ui-refreshed .page-sub{font-size:12px;margin-top:4px;color:var(--ds-muted)}
body.ui-refreshed .page-head{margin-bottom:14px;gap:12px}
body.ui-refreshed .section-title{font-size:15px;line-height:1.5;font-weight:650;margin-bottom:10px}
body.ui-refreshed .card{background:var(--ds-surface);border:1px solid var(--ds-line);border-radius:8px;box-shadow:none;padding:14px;min-width:0}
body.ui-refreshed .card+.card{margin-top:12px}
body.ui-refreshed .grid{gap:12px}
body.ui-refreshed .btn{border-radius:6px;box-shadow:none;min-height:34px;padding:6px 10px;font-size:12px;font-weight:650;line-height:1.4;white-space:nowrap;transform:none}
body.ui-refreshed .btn-primary{background:var(--ds-blue-solid);color:#fff;border:1px solid var(--ds-blue-line)}
body.ui-refreshed .btn-secondary,body.ui-refreshed .btn-ghost{background:var(--ds-surface);color:var(--ds-text);border:1px solid var(--ds-line)}
body.ui-refreshed .btn-danger{background:var(--ds-red-solid);color:#fff}
body.ui-refreshed .btn-success{background:var(--ds-green-solid);color:#fff}
body.ui-refreshed .btn:hover{filter:brightness(.96);transform:none}
body.ui-refreshed .btn-sm{min-height:30px;padding:4px 8px;font-size:11px}
body.ui-refreshed .input,body.ui-refreshed .select,body.ui-refreshed .textarea{background:var(--ds-input-bg);color:var(--ds-text);border:1px solid var(--ds-line);border-radius:6px;min-width:0;min-height:34px;padding:7px 9px;font-size:13px;box-shadow:none}
body.ui-refreshed input::placeholder,body.ui-refreshed textarea::placeholder{color:#8a9bb0;opacity:1}
body.ui-refreshed input:disabled,body.ui-refreshed select:disabled{opacity:.65}
body.ui-refreshed .field label,body.ui-refreshed .toolbar label{font-size:12px;font-weight:600}
body.ui-refreshed .form-grid{gap:10px}
body.ui-refreshed .table-wrap{border:1px solid var(--ds-line);border-radius:6px;max-width:100%;overflow:auto}
body.ui-refreshed .table{font-size:12px}
body.ui-refreshed .table th,body.ui-refreshed .table td{padding:9px 10px;line-height:1.5;border-color:var(--ds-line)}
body.ui-refreshed .table th{background:var(--ds-header);color:var(--ds-muted);font-weight:650}
body.ui-refreshed .table td{color:var(--ds-text)}
body.ui-refreshed .table .num{font-variant-numeric:tabular-nums;white-space:nowrap}
body.ui-refreshed .table tbody tr:hover td{background-color:var(--ds-surface-raised)}
body.ui-refreshed .subtab,body.ui-refreshed .tab,body.ui-refreshed .site-switch a,body.ui-refreshed .sheet-view-switch-btn{border-radius:6px;padding:7px 11px;font-size:12px;line-height:1.4;box-shadow:none;font-weight:650}
body.ui-refreshed .site-switch a.active,body.ui-refreshed .subtab.active,body.ui-refreshed .tab.active{background:var(--ds-blue-soft);color:var(--ds-blue-text);border-color:var(--ds-blue-line)}
body.ui-refreshed .mainnav .nav-btn{font-size:12px;padding:8px 10px;font-weight:650}
body.ui-refreshed .nav-btn.active{background:var(--ds-blue-soft);color:var(--ds-text);box-shadow:inset 0 -2px var(--ds-blue-text)}
body.ui-refreshed .modal-card,body.ui-refreshed dialog{background:var(--ds-surface);color:var(--ds-text);border:1px solid var(--ds-line);border-radius:8px;padding:18px;max-width:calc(100vw - 24px);max-height:calc(100dvh - 32px);overflow:auto}
body.ui-refreshed dialog::backdrop{background:#0f2a4a80}
body.ui-refreshed [hidden]{display:none!important}
body.ui-refreshed :is(button,a,input,select,textarea):focus-visible{outline:2px solid var(--ds-blue-text);outline-offset:2px}
body.ui-refreshed .empty{padding:20px;background:var(--ds-header);border-color:var(--ds-line)}
/* Single calendar contract: fixed readable columns, scrolling inside the sheet. */
body.ui-refreshed .achievement-sheet-page .sheet-matrix-wrap{max-width:100%;overflow:auto;border:1px solid var(--ds-line);border-radius:8px;background:var(--ds-surface);scrollbar-color:#9db5d0 var(--ds-surface-alt)}
body.ui-refreshed .achievement-sheet-page .sheet-matrix{width:max-content;min-width:100%;table-layout:fixed;border-collapse:separate;border-spacing:0;background:var(--ds-surface)}
body.ui-refreshed .achievement-sheet-page .sheet-matrix th,body.ui-refreshed .achievement-sheet-page .sheet-matrix td{border-right:1px solid var(--ds-line);border-bottom:1px solid var(--ds-line);vertical-align:top;color:var(--ds-text)}
body.ui-refreshed .achievement-sheet-page .sheet-matrix :is(.sheet-left,.sheet-left-head){position:sticky;left:0;width:160px;min-width:160px;max-width:160px;z-index:3;background:var(--ds-surface)!important;text-align:left;padding:11px;border-left:3px solid var(--category,var(--ds-line))}
body.ui-refreshed .achievement-sheet-page .sheet-matrix .sheet-left-head{background:var(--ds-header)!important;vertical-align:middle;font-size:13px;z-index:4}
body.ui-refreshed .achievement-sheet-page .sheet-matrix :is(.sheet-date-head,.sheet-slot){width:164px;min-width:164px;max-width:164px}
body.ui-refreshed .achievement-sheet-page .sheet-matrix .sheet-date-head{padding:9px 4px;height:60px;background:var(--ds-header);text-align:center;position:static}
body.ui-refreshed .achievement-sheet-page .sheet-date-head span{font-size:14px;font-weight:650;color:inherit}
body.ui-refreshed .achievement-sheet-page .sheet-date-head small{display:block;font-size:11px;color:var(--ds-muted);margin-top:2px}
body.ui-refreshed .achievement-sheet-page .sheet-date-head.is-today{background:var(--ds-blue-solid)!important;color:#fff!important;box-shadow:none}
body.ui-refreshed .achievement-sheet-page .sheet-date-head.is-today small{color:#fff}
body.ui-refreshed .achievement-sheet-page .sheet-date-head.is-today:after{content:none!important}
body.ui-refreshed .achievement-sheet-page .today-chip{font-size:9px;margin-top:3px;padding:1px 5px;border-radius:4px;background:#fff;color:#1557a8}
body.ui-refreshed .achievement-sheet-page .sheet-matrix tbody .sheet-slot{position:relative;padding:7px;height:110px;min-height:110px;background:var(--ds-surface)!important;background-image:none!important}
body.ui-refreshed .achievement-sheet-page .sheet-matrix tbody .sheet-slot.is-today{background:var(--ds-blue-soft)!important;box-shadow:inset 1px 0 var(--ds-blue-line),inset -1px 0 var(--ds-blue-line)}
body.ui-refreshed .achievement-sheet-page .sheet-left.plan-label{height:auto;min-height:110px}
body.ui-refreshed .achievement-sheet-page .sheet-left.plan-label>strong{display:block;margin:0;color:var(--ds-text);font-size:13px;line-height:1.5;font-weight:650;max-width:100%;text-align:left;overflow-wrap:anywhere}
body.ui-refreshed .achievement-sheet-page .sheet-plan-config{display:grid;gap:3px;font-size:11px;margin-top:8px;padding:0;border:0;width:100%;max-width:none}
body.ui-refreshed .achievement-sheet-page .sheet-plan-config span{display:grid;grid-template-columns:28px minmax(0,1fr);gap:5px}
body.ui-refreshed .achievement-sheet-page .sheet-plan-config small{color:var(--ds-muted);font-size:10px;text-align:left}
body.ui-refreshed .achievement-sheet-page .sheet-plan-config b{color:var(--ds-text);font-size:11px;font-weight:600;text-align:right;overflow-wrap:anywhere}
body.ui-refreshed .achievement-sheet-page .sheet-achievement-card{width:100%;max-width:178px;min-width:0;margin:0 auto 5px;padding:7px;border:1px solid var(--ds-line);border-radius:6px;background:var(--ds-header);color:var(--ds-text);box-shadow:none}
body.ui-refreshed .achievement-sheet-page .sheet-card-plan{font-size:12px;line-height:1.4;padding:0;margin:0 0 5px;font-weight:650;color:var(--ds-text);text-align:left;overflow-wrap:anywhere}
body.ui-refreshed .achievement-sheet-page .sheet-card-tags{padding:0;margin:0 0 5px}
body.ui-refreshed .achievement-sheet-page .sheet-card-statuses{display:grid;grid-template-columns:1fr;gap:4px;padding:0;margin:0 0 5px;background:transparent;border:0}
body.ui-refreshed .achievement-sheet-page .sheet-strip{font-size:10px;line-height:1.4;font-weight:650;padding:4px 2px;border-radius:3px;min-width:0}
body.ui-refreshed .achievement-sheet-page .sheet-strip.participant{background:transparent;border:0;color:var(--ds-muted);padding:0;text-align:left}
body.ui-refreshed .achievement-sheet-page .sheet-strip.participant.yes{color:var(--ds-green-text)}
body.ui-refreshed .achievement-sheet-page .sheet-strip.participant.yes:before{content:'●';font-size:8px;margin-right:4px}
body.ui-refreshed .achievement-sheet-page .sheet-card-payout{padding:4px 0 6px;display:flex;justify-content:space-between;align-items:baseline;gap:3px;color:var(--ds-muted);font-size:9px}
body.ui-refreshed .achievement-sheet-page .sheet-card-payout strong{color:var(--ds-text);font-size:13px;font-weight:750;line-height:1.4;white-space:nowrap;font-variant-numeric:tabular-nums}
body.ui-refreshed .achievement-sheet-page .sheet-card-actions{display:grid;grid-template-columns:1fr 1fr;gap:4px;padding:0}
body.ui-refreshed .achievement-sheet-page .sheet-card-actions .btn{min-height:28px;min-width:0;width:100%;font-size:10px;padding:4px 2px;white-space:nowrap;background:var(--ds-surface);color:var(--ds-text);border:1px solid var(--ds-line)}
body.ui-refreshed .achievement-sheet-page .sheet-request-control{position:absolute;top:3px;right:3px;z-index:1;min-height:0;margin:0}
body.ui-refreshed .achievement-sheet-page .sheet-request-toggle{width:28px;height:28px;min-height:28px;border:0;background:transparent;color:var(--ds-muted);font-size:19px;padding:0;border-radius:4px;box-shadow:none}
body.ui-refreshed .achievement-sheet-page .sheet-request-toggle.is-requested{color:var(--ds-red-text);background:var(--ds-red-soft)}
body.ui-refreshed .achievement-sheet-page .sheet-slot-create:not(:has(.sheet-achievement-card)){height:110px;cursor:pointer}
body.ui-refreshed .achievement-sheet-page .sheet-slot-create:not(:has(.sheet-achievement-card)):after{content:'＋ 登録';position:absolute;inset:36px 5px 12px;display:flex;align-items:center;justify-content:center;pointer-events:none;color:var(--ds-muted);font-size:12px}
body.ui-refreshed .achievement-sheet-page .sheet-slot-create:has(.sheet-achievement-card):after{content:none}
.achievement-sheet-page .sheet-row-free{--category:#6ed7a7}.achievement-sheet-page .sheet-row-regular-day{--category:#efb45f}.achievement-sheet-page .sheet-row-regular-night{--category:#69a7e4}.achievement-sheet-page .sheet-row-special{--category:#e5c74e}.achievement-sheet-page .sheet-row-top{--category:#b28bd7}
body.ui-refreshed .achievement-sheet-page .sheet-toolbar{padding:10px 12px;min-height:0;margin:12px 0}
body.ui-refreshed .sheet-workspace-nav{background:transparent;border:0;padding:0;gap:6px;margin:12px 0}
body.ui-refreshed .sheet-scroll-hint{font-size:11px;color:var(--ds-muted);margin:8px 0}
/* Schedule: same paper/grid rules, readable events even on tablet. */
body.ui-refreshed .schedule-management-page .calendar-card{padding:0;overflow:auto!important;max-width:100%;border-radius:8px}
body.ui-refreshed .schedule-management-page .calendar{display:grid;width:100%;min-width:980px!important;grid-template-columns:repeat(7,minmax(140px,1fr))!important;gap:0!important}
body.ui-refreshed .schedule-management-page .calendar :is(.calendar-head,.day-cell){width:auto!important;min-width:0!important;border-radius:0}
body.ui-refreshed .schedule-management-page .calendar-head{background:var(--ds-header);color:var(--ds-muted);font-size:11px;padding:8px}
body.ui-refreshed .schedule-management-page .day-cell{background:var(--ds-surface);padding:7px!important;min-height:130px!important;border-color:var(--ds-line);font-size:12px}
body.ui-refreshed .schedule-management-page .day-cell.today{background:var(--ds-blue-soft);box-shadow:inset 0 2px var(--ds-blue-text)}
body.ui-refreshed .schedule-management-page .day-num{font-size:12px;display:flex;justify-content:space-between;align-items:center;gap:4px}
body.ui-refreshed .schedule-management-page .event-mini-grid{grid-template-columns:1fr!important}
body.ui-refreshed .schedule-management-page .schedule-card{font-size:11px;padding:6px;border-radius:5px}
body.ui-refreshed .schedule-management-page .calendar-scroll-hint{display:block;font-size:11px;color:var(--ds-muted)}
body.ui-refreshed .schedule-management-page .official-refresh-box{margin:10px 0;gap:8px}
/* Tables stay tables at intermediate and phone widths. */
body.ui-refreshed .achievement-list-page .list-table-wrap{overflow:auto!important}
body.ui-refreshed .achievement-list-page .list-table{min-width:780px!important;table-layout:auto!important}
body.ui-refreshed .achievement-list-page .list-table tr{display:table-row}
body.ui-refreshed .achievement-list-page .list-table th,body.ui-refreshed .achievement-list-page .list-table td{padding:9px 10px!important;font-size:12px}
body.ui-refreshed #salesOperations .sales-table-wrap{overflow:auto}
body.ui-refreshed #salesOperations .sales-metric-table{min-width:900px!important;table-layout:auto}
body.ui-refreshed #salesOperations .sales-metric-table :is(th,td){font-size:12px;padding:9px 10px;white-space:nowrap}
body.ui-refreshed #salesOperations .sales-metric-table :is(th,td):first-child{background:var(--ds-surface);min-width:135px}
body.ui-refreshed #salesOperations .sales-metric-table thead .sales-group-head th:first-child{color:var(--ds-text)!important} /* light bg under the sticky corner cell */
body.ui-refreshed #salesOperations .sales-metric-table thead th:first-child{background:var(--ds-header)}
body.ui-refreshed .user-management-page .user-list-table{overflow:auto}
body.ui-refreshed .user-management-page .user-list-table .table{min-width:680px}
body.ui-refreshed .administration-dialog .user-permission-scroll{overflow:auto}
body.ui-refreshed .administration-dialog .user-permission-table{min-width:620px}
body.ui-refreshed .tag-admin-row{border-color:var(--ds-line);background:var(--ds-surface);gap:8px;padding:10px}
body.ui-refreshed .tag-color-input{background:var(--ds-header);border-color:var(--ds-line);border-radius:5px}
body.ui-refreshed .login-card{background:var(--ds-surface)}
@media(max-width:960px){
 body.ui-refreshed .topbar{position:relative;flex-wrap:wrap}
 body.ui-refreshed .mainnav{flex-basis:100%;order:3}
 body.ui-refreshed .page-shell{width:calc(100% - 24px);margin-top:14px}
}
@media(max-width:620px){
 body.ui-refreshed .page-shell{width:calc(100% - 20px);margin-top:12px}
 body.ui-refreshed .page-title{font-size:20px}
 body.ui-refreshed .card{padding:12px}
 body.ui-refreshed :is(.btn,.input,.select){min-height:40px}
 body.ui-refreshed :is(.input,.select,.textarea){font-size:16px}
 body.ui-refreshed .btn-sm{min-height:34px}
 body.ui-refreshed .achievement-sheet-page .sheet-matrix :is(.sheet-left,.sheet-left-head){width:128px;min-width:128px;max-width:128px;padding:8px}
 body.ui-refreshed .achievement-sheet-page .sheet-left.plan-label>strong{font-size:12px}
 body.ui-refreshed .achievement-sheet-page .sheet-plan-config b{font-size:10px}
 body.ui-refreshed .achievement-sheet-page .sheet-card-actions .btn{min-height:36px}
 body.ui-refreshed .achievement-sheet-page .sheet-request-toggle{width:34px;height:34px}
 body.ui-refreshed .tag-admin-row{display:flex;flex-wrap:wrap}
 body.ui-refreshed .tag-admin-row>.input{flex:1 1 150px}
 body.ui-refreshed dialog,body.ui-refreshed .modal-card{padding:14px;max-height:calc(100dvh - 24px)}
}
/* Printed reports remain paper-friendly. */
@media print{
 :root,:root[data-theme="dark"]{color-scheme:light;--ds-bg:#fff;--ds-header:#edf1f5;--ds-surface:#fff;--ds-surface-alt:#f4f6f8;--ds-surface-raised:#edf1f5;--ds-text:#152033;--ds-muted:#40536a;--ds-line:#b6c4d2;--ds-blue-text:#164c8c;--ds-blue-soft:#e6eff8;--ds-green-text:#166344;--ds-green-soft:#e4f1e9;--ds-red-text:#962b3a;--ds-red-soft:#f8e6eb;--ds-amber-text:#745400;--ds-amber-soft:#faf0cf;--ds-purple-text:#603f81;--ds-purple-soft:#eee5f6}
 html,body{background:#fff!important;color:#152033!important}
 .topbar,.no-print{display:none!important}
}
