/* SNM 2.7.6: selected dashboard models. CSS only; no theme image downloads. */
body[data-theme="model01"]{--header:#087e87;--header2:#19a9ad;--bg:#f0fafa;--card:#ffffff;--ink:#153e49;--muted:#526174;--line:#e4f6f6;--accent:#087e87;--tint:#e4f6f6;--shadow:rgba(30,55,70,.08);--model-radius:18px;--model-duty:#e5f4ee;--model-on:#e5f0fc;--model-request:#fae8ea;--model-assignment:#eee8fb}
body[data-theme="model02"]{--header:#102d4b;--header2:#234567;--bg:#f2f5fa;--card:#ffffff;--ink:#18344e;--muted:#526174;--line:#e8eff8;--accent:#102d4b;--tint:#e8eff8;--shadow:rgba(30,55,70,.08);--model-radius:18px;--model-duty:#e5f4ee;--model-on:#e5f0fc;--model-request:#fae8ea;--model-assignment:#eee8fb}
body[data-theme="model04"]{--header:#42674e;--header2:#799479;--bg:#f7f7ee;--card:#ffffff;--ink:#263e31;--muted:#526174;--line:#eaf0e4;--accent:#42674e;--tint:#eaf0e4;--shadow:rgba(30,55,70,.08);--model-radius:18px;--model-duty:#e5f4ee;--model-on:#e5f0fc;--model-request:#fae8ea;--model-assignment:#eee8fb}
body[data-theme="model05"]{--header:#6952a2;--header2:#aa8ed6;--bg:#f7f3fd;--card:#ffffff;--ink:#40325f;--muted:#526174;--line:#eee7fa;--accent:#6952a2;--tint:#eee7fa;--shadow:rgba(30,55,70,.08);--model-radius:18px;--model-duty:#e5f4ee;--model-on:#e5f0fc;--model-request:#fae8ea;--model-assignment:#eee8fb}
body[data-theme="model07"]{--header:#08765e;--header2:#54bca6;--bg:#f3fbf8;--card:#ffffff;--ink:#174638;--muted:#526174;--line:#e1f5ed;--accent:#08765e;--tint:#e1f5ed;--shadow:rgba(30,55,70,.08);--model-radius:18px;--model-duty:#e5f4ee;--model-on:#e5f0fc;--model-request:#fae8ea;--model-assignment:#eee8fb}
body[data-theme="model08"]{--header:#2865a2;--header2:#79bee5;--bg:#eaf5ff;--card:#ffffff;--ink:#163956;--muted:#526174;--line:#dcefff;--accent:#2865a2;--tint:#dcefff;--shadow:rgba(30,55,70,.08);--model-radius:18px;--model-duty:#e5f4ee;--model-on:#e5f0fc;--model-request:#fae8ea;--model-assignment:#eee8fb}
body[data-theme="model09"]{--header:#96592d;--header2:#c8986e;--bg:#faf4e9;--card:#ffffff;--ink:#543b2b;--muted:#526174;--line:#f4e7d4;--accent:#96592d;--tint:#f4e7d4;--shadow:rgba(30,55,70,.08);--model-radius:18px;--model-duty:#e5f4ee;--model-on:#e5f0fc;--model-request:#fae8ea;--model-assignment:#eee8fb}
body[data-theme="model10"]{--header:#0752b8;--header2:#287bdb;--bg:#eff5ff;--card:#ffffff;--ink:#17365a;--muted:#526174;--line:#e3edff;--accent:#0752b8;--tint:#e3edff;--shadow:rgba(30,55,70,.08);--model-radius:18px;--model-duty:#e5f4ee;--model-on:#e5f0fc;--model-request:#fae8ea;--model-assignment:#eee8fb}
body[data-theme="model11"]{--header:#0766e4;--header2:#3495f5;--bg:#f3f8ff;--card:#ffffff;--ink:#15365c;--muted:#526174;--line:#e2efff;--accent:#0766e4;--tint:#e2efff;--shadow:rgba(30,55,70,.08);--model-radius:18px;--model-duty:#e5f4ee;--model-on:#e5f0fc;--model-request:#fae8ea;--model-assignment:#eee8fb}
body[data-theme="model12"]{--header:#087d85;--header2:#62c2c2;--bg:#f0faf9;--card:#ffffff;--ink:#193f43;--muted:#526174;--line:#dff5f3;--accent:#087d85;--tint:#dff5f3;--shadow:rgba(30,55,70,.08);--model-radius:18px;--model-duty:#e5f4ee;--model-on:#e5f0fc;--model-request:#fae8ea;--model-assignment:#eee8fb}
body[data-theme="model14"]{--header:#172e4b;--header2:#294666;--bg:#f9fafc;--card:#ffffff;--ink:#192d45;--muted:#526174;--line:#e9edf3;--accent:#172e4b;--tint:#e9edf3;--shadow:rgba(30,55,70,.08);--model-radius:18px;--model-duty:#e5f4ee;--model-on:#e5f0fc;--model-request:#fae8ea;--model-assignment:#eee8fb}
body[data-theme="model15"]{--header:#a94238;--header2:#cc7868;--bg:#fcf8f1;--card:#ffffff;--ink:#2e4540;--muted:#526174;--line:#f5e5df;--accent:#a94238;--tint:#f5e5df;--shadow:rgba(30,55,70,.08);--model-radius:18px;--model-duty:#e5f4ee;--model-on:#e5f0fc;--model-request:#fae8ea;--model-assignment:#eee8fb}
body[data-theme="model16"]{--header:#3e668a;--header2:#94b5d0;--bg:#f0f6fb;--card:#ffffff;--ink:#223e59;--muted:#526174;--line:#e0ebf4;--accent:#3e668a;--tint:#e0ebf4;--shadow:rgba(30,55,70,.08);--model-radius:18px;--model-duty:#e5f4ee;--model-on:#e5f0fc;--model-request:#fae8ea;--model-assignment:#eee8fb}
body[data-theme="model17"]{--header:#293d7c;--header2:#6879b5;--bg:#f5f5fa;--card:#ffffff;--ink:#252d55;--muted:#526174;--line:#e8eafa;--accent:#293d7c;--tint:#e8eafa;--shadow:rgba(30,55,70,.08);--model-radius:18px;--model-duty:#e5f4ee;--model-on:#e5f0fc;--model-request:#fae8ea;--model-assignment:#eee8fb}
body[data-theme="model18"]{--header:#075d48;--header2:#267d65;--bg:#f2f8f5;--card:#ffffff;--ink:#163f34;--muted:#526174;--line:#e0f1e9;--accent:#075d48;--tint:#e0f1e9;--shadow:rgba(30,55,70,.08);--model-radius:18px;--model-duty:#e5f4ee;--model-on:#e5f0fc;--model-request:#fae8ea;--model-assignment:#eee8fb}
body[data-theme="model20"]{--header:#075f9d;--header2:#45b7bd;--bg:#eef9fc;--card:#ffffff;--ink:#163c56;--muted:#526174;--line:#def2f8;--accent:#075f9d;--tint:#def2f8;--shadow:rgba(30,55,70,.08);--model-radius:18px;--model-duty:#e5f4ee;--model-on:#e5f0fc;--model-request:#fae8ea;--model-assignment:#eee8fb}

body[data-theme^="model"] .hero{padding:18px clamp(12px,3vw,30px) 29px;background:linear-gradient(120deg,var(--header),var(--header2));color:#fff}
body[data-theme^="model"] .hero:after{opacity:.4}
body[data-theme^="model"] .hero-title{font-size:clamp(22px,3vw,30px);margin:4px 0}
body[data-theme^="model"] .hero-meta{margin-top:14px;gap:14px}
body[data-theme^="model"] .avatar{width:64px;height:64px;border-radius:20px}
body[data-theme^="model"] .hero-meta strong{font-size:clamp(20px,2.4vw,26px);line-height:1.25}
body[data-theme^="model"] .hero-meta small{font-size:12px;margin-top:5px}
body[data-theme^="model"] .content{margin-top:-10px;gap:12px}
body[data-theme^="model"] .summary-grid{grid-template-columns:repeat(4,minmax(0,1fr));gap:10px}
body[data-theme^="model"] .summary-grid .summary-card{background:var(--model-duty);color:var(--ink);border:1px solid var(--line);border-radius:var(--model-radius);min-height:88px;padding:12px;gap:10px;box-shadow:0 3px 12px var(--shadow);height:100%;min-width:0}
body[data-theme^="model"] .summary-grid .summary-on{background:var(--model-on)}
body[data-theme^="model"] .summary-grid .summary-request{background:var(--model-request)}
body[data-theme^="model"] .summary-grid .summary-assignment{background:var(--model-assignment)}
body[data-theme^="model"] .summary-card:after{display:none}
body[data-theme^="model"] .summary-grid .summary-card>span:last-child{min-width:0}
body[data-theme^="model"] .summary-card small{color:var(--ink);opacity:1;line-height:1.3}
body[data-theme^="model"] .summary-card small:last-child{font-size:11px;margin-top:4px}
body[data-theme^="model"] .summary-card strong{font-size:28px;line-height:1.1;margin:3px 0}
body[data-theme^="model"] .summary-grid .summary-on strong{font-size:36px}
body[data-theme^="model"] .summary-symbol{color:var(--accent);background:#ffffffa6;border:1px solid #ffffff8c;width:36px;height:36px;flex:none}
body[data-theme^="model"] .dashboard-shortcuts{grid-template-columns:repeat(4,minmax(0,1fr));gap:10px}
body[data-theme^="model"] .dashboard-shortcuts .action-tile{min-height:58px;padding:10px;border:1px solid var(--line);border-radius:var(--model-radius);gap:8px;background:var(--card);color:var(--ink);box-shadow:0 2px 10px var(--shadow)}
body[data-theme^="model"] .dashboard-shortcuts .action-tile>svg{display:none}
body[data-theme^="model"] .dashboard-shortcuts .tile-icon{background:var(--tint);color:var(--accent);width:32px;height:32px;flex:none}
body[data-theme^="model"] .dashboard-shortcuts small{font-size:12px;font-weight:750;line-height:1.25}
body[data-theme^="model"] .calendar-card{border-radius:var(--model-radius);padding:16px;overflow:hidden}
body[data-theme^="model"] .day-grid{gap:5px}
body[data-theme^="model"] .date-cell{min-width:0;min-height:66px;border:1px solid var(--line);border-radius:10px;background:var(--card);color:var(--ink);padding:5px 2px}
body[data-theme^="model"] .date-cell.empty{border-color:transparent;background:transparent}
body[data-theme^="model"] .date-cell.active{border-color:var(--accent);box-shadow:inset 0 0 0 1px var(--accent);background:var(--tint)}
body[data-theme^="model"] .date-cell.today{border-color:var(--accent)}
body[data-theme^="model"] .date-cell .date{font-size:14px;font-weight:750}
body[data-theme^="model"] .date-cell .duty{padding:2px 5px;font-size:12px;min-width:26px;max-width:100%;line-height:1.4}
body[data-theme^="model"] .weekday{font-size:12px;color:var(--muted)}
body[data-theme^="model"] .bottom-nav{background:var(--card);border-color:var(--line)}
body[data-theme^="model"] .bottom-nav button{color:var(--muted)}
body[data-theme^="model"] .bottom-nav button.active{color:var(--accent);background:var(--tint)}
/* Small, independent theme previews are code-rendered; duty data never enters the picker. */
.model-list{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px}
.theme-dialog{width:min(820px,calc(100vw - 20px));max-height:85dvh;overflow:auto;background:var(--card);color:var(--ink);border:1px solid var(--line);border-radius:22px;padding:20px}
.theme-dialog>.section-top{position:sticky;top:-20px;background:var(--card);z-index:1;padding:10px 0}
.model-list .model-option{display:flex;flex-direction:column;align-items:stretch;gap:8px;width:100%;min-width:0;padding:10px;background:var(--card);color:var(--ink);border:2px solid var(--line);border-radius:14px;text-align:left;min-height:150px}
.model-list .model-option.active{border-color:var(--accent);box-shadow:0 0 0 2px var(--tint)}
.model-option-title{font-weight:750;font-size:13px;line-height:1.4}
.model-option-title small{display:inline-block;background:var(--tint);color:var(--accent);border-radius:8px;padding:2px 6px;margin-left:5px;font-size:10px}
.model-preview{height:94px;display:flex;flex-direction:column;gap:5px;padding:7px;border:1px solid var(--line);border-radius:9px;background:#fafcfe;overflow:hidden;pointer-events:none}
.model-preview>i{height:14px;background:var(--preview-color);border-radius:4px}
.model-preview>span{display:grid;grid-template-columns:repeat(4,1fr);gap:3px;height:19px}
.model-preview b{display:block;border-radius:3px;background:#e0ebf7}
.model-preview b:first-child{background:var(--preview-color)}
.model-preview b:nth-child(3){background:#f2dce4}.model-preview b:nth-child(4){background:#e4def3}
.model-preview>em{height:7px;background:var(--preview-color);opacity:.3;border-radius:3px}
.model-preview>strong{flex:1;min-height:22px;border-radius:3px;background:repeating-linear-gradient(90deg,transparent 0,transparent calc(14.285% - 1px),#d8e0ea calc(14.285% - 1px),#d8e0ea 14.285%),repeating-linear-gradient(0deg,#fff 0,#fff 6px,#d8e0ea 6px,#d8e0ea 7px)}
.model-preview-1>span,.model-preview-4>span,.model-preview-8>span,.model-preview-10>span,.model-preview-12>span,.model-preview-17>span,.model-preview-18>span,.model-preview-20>span{grid-template-columns:repeat(2,1fr);height:27px}
.model-preview-5>span,.model-preview-11>span{grid-template-columns:2fr 1fr;height:27px}
.model-preview-15>span{grid-template-columns:2fr 1fr 1fr;height:27px}.model-preview-15 b:last-child{grid-column:1/-1;height:7px}
/* Individual silhouettes and surfaces from the approved concepts. */
body[data-theme="model01"]{--model-radius:19px}
body[data-theme="model01"] .summary-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
body[data-theme="model02"]{--model-radius:12px}
body[data-theme="model02"] .summary-grid .summary-card small:last-child,body[data-theme="model07"] .summary-grid .summary-card small:last-child,body[data-theme="model14"] .summary-grid .summary-card small:last-child,body[data-theme="model16"] .summary-grid .summary-card small:last-child{display:none}
body[data-theme="model02"] .dashboard-shortcuts .action-tile{background:var(--header);color:#fff;flex-direction:column}
body[data-theme="model02"] .dashboard-shortcuts .tile-icon{background:transparent;color:#fff}
body[data-theme="model04"]{--model-radius:13px;--model-duty:#fffef7;--model-on:#fffef7;--model-request:#fffef7;--model-assignment:#fffef7}
body[data-theme="model04"] .summary-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
body[data-theme="model04"] .summary-grid .summary-card{border-left:5px solid var(--accent)}
body[data-theme="model04"] .dashboard-shortcuts .action-tile{border:0;box-shadow:none;background:transparent;flex-direction:column}
body[data-theme="model04"] .dashboard-shortcuts .tile-icon{border-radius:50%;width:40px;height:40px}
body[data-theme="model05"]{--model-radius:24px}
body[data-theme="model05"] .summary-grid,body[data-theme="model11"] .summary-grid{grid-template-columns:repeat(3,minmax(0,1fr))}
body[data-theme="model05"] .summary-grid .summary-duty,body[data-theme="model11"] .summary-grid .summary-duty{grid-column:span 2}
body[data-theme="model05"] .summary-grid .summary-assignment,body[data-theme="model11"] .summary-grid .summary-assignment{grid-column:span 2}
body[data-theme="model05"] .dashboard-shortcuts .action-tile{border-radius:99px}
body[data-theme="model07"]{--model-radius:15px}
body[data-theme="model07"] .summary-grid .summary-card{flex-direction:column;align-items:flex-start;gap:4px}
body[data-theme="model07"] .calendar-card{box-shadow:none}
body[data-theme="model08"]{--model-radius:20px;--card:#f5fbff;--model-duty:#eefaff;--model-on:#dfedff;--model-request:#f3eafe;--model-assignment:#e4f9f5}
body[data-theme="model08"] .summary-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
body[data-theme="model08"] .card,body[data-theme="model08"] .dashboard-shortcuts .action-tile{border:1px solid #fff;box-shadow:0 5px 16px #2865a216}
body[data-theme="model09"]{--model-radius:15px;--model-duty:#fffaf2;--model-on:#fffaf2;--model-request:#fffaf2;--model-assignment:#fffaf2}
body[data-theme="model09"] .summary-grid .summary-symbol{border-radius:50%;background:var(--tint)}
body[data-theme="model09"] .summary-grid .summary-card{border-color:#ddc4a8}
body[data-theme="model10"]{--model-radius:14px}
body[data-theme="model10"] .summary-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
body[data-theme="model10"] .dashboard-shortcuts{gap:0;border:1px solid var(--accent);border-radius:14px;overflow:hidden}
body[data-theme="model10"] .dashboard-shortcuts .action-tile{border:0;border-right:1px solid var(--line);border-radius:0;box-shadow:none;flex-direction:column}
body[data-theme="model11"]{--model-radius:21px}
body[data-theme="model11"] .summary-grid .summary-duty{background:linear-gradient(110deg,#0766e4,#3495f5);color:#fff}
body[data-theme="model11"] .summary-grid .summary-duty small{color:#fff}
body[data-theme="model12"]{--model-radius:26px}
body[data-theme="model12"] .summary-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
body[data-theme="model12"] .summary-grid .summary-card{box-shadow:0 5px 15px #087d8518;flex-direction:column;align-items:flex-start}
body[data-theme="model12"] .dashboard-shortcuts .action-tile{border:0;background:transparent;box-shadow:none;flex-direction:column}
body[data-theme="model12"] .tile-icon{border-radius:50%;width:42px;height:42px}
body[data-theme="model14"]{--model-radius:6px;--model-duty:#edf3fc;--model-on:#eaf4ef;--model-request:#fbeced;--model-assignment:#f1edfb}
body[data-theme="model14"] .calendar-card{box-shadow:none}
body[data-theme="model14"] .date-cell{border-radius:0}
body[data-theme="model14"] .day-grid{gap:0}
body[data-theme="model14"] .dashboard-shortcuts{gap:0;border:1px solid var(--line);border-radius:6px}
body[data-theme="model14"] .dashboard-shortcuts .action-tile{border:0;border-radius:0;box-shadow:none}
body[data-theme="model15"]{--model-radius:20px;--model-duty:#f5d9d2;--model-on:#e2ebdd;--model-request:#f9e2d4;--model-assignment:#e9eddf}
body[data-theme="model15"] .hero{background:linear-gradient(120deg,#f9ebe3,#eef0e5);color:var(--ink)}
body[data-theme="model15"] .hero:after{display:none}
body[data-theme="model15"] .icon-btn{background:#ffffffb8;color:var(--ink);border-color:#e4d8ce}
body[data-theme="model15"] .notification-bell{color:#986300}
body[data-theme="model15"] .summary-grid{grid-template-columns:repeat(12,minmax(0,1fr))}
body[data-theme="model15"] .summary-grid .summary-duty{grid-column:span 6}
body[data-theme="model15"] .summary-grid .summary-on,body[data-theme="model15"] .summary-grid .summary-request{grid-column:span 3}
body[data-theme="model15"] .summary-grid .summary-assignment{grid-column:1/-1;min-height:52px;max-height:64px;padding:8px 12px}
body[data-theme="model15"] .summary-grid .summary-assignment>span:last-child{display:flex;align-items:center;gap:12px;flex-wrap:wrap}
body[data-theme="model15"] .summary-grid .summary-assignment small:last-child,body[data-theme="model15"] .summary-grid .summary-card:not(.summary-duty) small:last-child{display:none}
body[data-theme="model15"] .summary-grid .summary-assignment strong{font-size:17px!important;margin:0}
body[data-theme="model15"] .summary-grid .summary-assignment .summary-symbol{width:28px;height:28px}
body[data-theme="model15"] .dashboard-shortcuts .action-tile{background:#f5ebe2;box-shadow:none}
body[data-theme="model16"]{--model-radius:16px;--card:#f8fbfe;--model-duty:#edf3f8;--model-on:#e6f1fb;--model-request:#f5edf6;--model-assignment:#e9f4ee}
body[data-theme="model16"] .card{border-color:#fff}
body[data-theme="model16"] .date-cell{background:#edf3f8;border-color:#dbe6f0;border-radius:13px}
body[data-theme="model17"]{--model-radius:17px}
body[data-theme="model17"] .summary-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
body[data-theme="model17"] .dashboard-shortcuts{gap:0;border:1px solid var(--accent);border-radius:14px;overflow:hidden}
body[data-theme="model17"] .dashboard-shortcuts .action-tile{border:0;border-right:1px solid var(--line);border-radius:0;box-shadow:none;flex-direction:column}
body[data-theme="model17"] .date-cell.today .date{display:grid;place-items:center;background:var(--accent);color:#fff;border-radius:50%;width:25px;height:25px}
body[data-theme="model18"]{--model-radius:17px;--header:#07513f;--header2:#176e57}
body[data-theme="model18"] .summary-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
body[data-theme="model18"] .dashboard-shortcuts .action-tile{flex-direction:column}
body[data-theme="model18"] .icon-btn{border-color:#c9ad77}
body[data-theme="model20"]{--model-radius:24px}
body[data-theme="model20"] .hero{background:radial-gradient(ellipse at right top,#76d7cc 0,transparent 60%),linear-gradient(125deg,#075f9d,#1798ae)}
body[data-theme="model20"] .hero:after{width:450px;height:160px;border:0;background:#ffffff1a;transform:rotate(-15deg);border-radius:50%;top:-40px}
body[data-theme="model20"] .summary-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
body[data-theme="model20"] .dashboard-shortcuts .action-tile{border-radius:99px;background:var(--tint)}
@media(max-width:1000px){
 body[data-theme^="model"] .summary-symbol{width:30px;height:30px}
 body[data-theme^="model"] .summary-grid .summary-card{gap:7px;padding:10px}
}
@media(max-width:600px){
 body[data-theme^="model"] .hero{padding:14px 12px 22px}
 body[data-theme^="model"] .hero-heading{font-size:9px;letter-spacing:.5px}
 body[data-theme^="model"] .hero-sub{font-size:10px}
 body[data-theme^="model"] .hero-upper{gap:6px;flex-wrap:wrap}
 body[data-theme^="model"] .hero-upper>div:first-child{min-width:120px;flex:1}
 body[data-theme^="model"] .top-actions{gap:5px}
 body[data-theme^="model"] .icon-btn{width:40px;height:40px;min-width:40px;padding:9px;border-radius:12px}
 body[data-theme^="model"] .hero-meta{margin-top:10px}
 body[data-theme^="model"] .avatar{width:58px;height:58px;border-radius:18px}
 body[data-theme^="model"] .hero-meta strong{font-size:21px}
 body[data-theme^="model"] .hero-meta small{font-size:11px}
 body[data-theme^="model"] .content{margin-left:10px;margin-right:10px;gap:10px}
 body[data-theme^="model"] .summary-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:7px}
 body[data-theme^="model"] .summary-grid .summary-card{min-height:83px;padding:9px;gap:7px;flex-direction:row}
 body[data-theme^="model"] .summary-card strong{font-size:25px}
 body[data-theme^="model"] .summary-card small{font-size:11px}
 body[data-theme^="model"] .summary-grid .summary-on strong{font-size:31px}
 body[data-theme^="model"] .summary-grid .summary-assignment strong{font-size:15px!important}
 body[data-theme^="model"] .dashboard-shortcuts{gap:6px}
 body[data-theme^="model"] .dashboard-shortcuts .action-tile{padding:7px 3px;gap:4px;min-height:59px;flex-direction:column;justify-content:center;text-align:center}
 body[data-theme^="model"] .dashboard-shortcuts .tile-icon{width:27px;height:27px}
 body[data-theme^="model"] .dashboard-shortcuts small{font-size:10px}
 body[data-theme^="model"] .calendar-card{padding:11px}
 body[data-theme^="model"] .date-cell{min-height:55px;padding:4px 1px;border-radius:8px}
 body[data-theme^="model"] .date-cell .date{font-size:13px}
 body[data-theme^="model"] .day-grid{gap:3px}
 body[data-theme^="model"] .weekday{font-size:10px}
 body[data-theme^="model"] .calendar-card .filter-row{gap:6px}
 body[data-theme^="model"] .calendar-card .filter-row .form-field{min-width:0;flex:1 1 140px}
 body[data-theme^="model"] .summary-card>span:last-child{overflow-wrap:anywhere}
 body[data-theme="model05"] .summary-grid,body[data-theme="model11"] .summary-grid{grid-template-columns:repeat(3,minmax(0,1fr))}
 body[data-theme="model07"] .summary-grid .summary-card{flex-direction:column;align-items:flex-start}
 body[data-theme="model15"] .summary-grid{grid-template-columns:repeat(12,minmax(0,1fr))}
 body[data-theme="model15"] .summary-grid .summary-on .summary-symbol,body[data-theme="model15"] .summary-grid .summary-request .summary-symbol{display:none}
 body[data-theme="model15"] .summary-grid .summary-assignment{min-height:47px}
 body[data-theme="model15"] .summary-grid .summary-assignment>span:last-child{gap:7px}
 body[data-theme="model15"] .summary-grid .summary-card small:last-child{display:none}
 body[data-theme="model15"] .summary-grid .summary-duty .summary-symbol{width:27px;height:27px}
 body[data-theme="model14"] .day-grid{gap:0}
 body[data-theme="model14"] .date-cell{border-radius:0}
 .model-list{grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}
 .model-list .model-option{padding:8px;min-height:145px}
 .theme-dialog{padding:14px}
 .theme-dialog>.section-top{top:-14px}
}
@media(max-width:340px){body[data-theme^="model"] .hero-upper>div:first-child{flex-basis:100%}body[data-theme^="model"] .top-actions{margin-left:auto}body[data-theme^="model"] .summary-symbol{width:24px;height:24px}body[data-theme^="model"] .summary-grid .summary-card{padding:7px}body[data-theme^="model"] .date-cell .duty{font-size:10px;padding:2px 3px;min-width:22px}}
@media(prefers-reduced-motion:reduce){body[data-theme^="model"] *,body[data-theme^="model"] *:before,body[data-theme^="model"] *:after{scroll-behavior:auto!important;animation:none!important;transition:none!important}}
@media print{body[data-theme^="model"] .hero,body[data-theme^="model"] .summary-grid,body[data-theme^="model"] .dashboard-shortcuts{display:none}body[data-theme^="model"] .content{margin:0}body[data-theme^="model"] .card{box-shadow:none;border-color:#999}body[data-theme^="model"] .date-cell{background:#fff;color:#000}}

.floor-change-button{min-height:40px;white-space:nowrap;margin-left:auto}.floor-deployment{scroll-margin:20px}.floor-deployment .notice{grid-column:1/-1}@media(max-width:600px){.floor-change-button{font-size:11px;padding:6px 9px}.staff-detail summary{flex-wrap:wrap}.staff-detail summary>strong{flex:1;min-width:120px}}

/* Mobile Ward Roster: day-first, optional seven-day window and full month. */
.mobile-roster{display:none}
@media(max-width:700px){
 .roster-sheet .roster-month-table:not(.mobile-month-visible){display:none}
 .mobile-roster{display:block;margin-top:14px}
 .mobile-roster-tabs{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:5px}
 .mobile-roster-tabs .btn{padding:9px 5px;min-height:44px;font-size:12px}
 .mobile-roster-dates{display:flex;align-items:center;justify-content:space-between;gap:7px;margin:12px 0}
 .mobile-roster-dates .btn{min-width:44px;min-height:44px;padding:5px 12px;font-size:24px}
 .mobile-roster-dates strong{font-size:15px;text-align:center}
 .mobile-day-groups{display:grid;gap:12px}
 .mobile-shift-group{border:1px solid var(--line);border-radius:14px;overflow:hidden;padding:12px;background:var(--card)}
 .mobile-shift-group .section-top{margin-bottom:6px}.mobile-shift-group h3{font-size:15px;margin:0}
 .mobile-duty-person{display:flex;align-items:center;justify-content:space-between;gap:10px;padding:10px 0;border-top:1px solid var(--line)}
 .mobile-duty-person>div{min-width:0;flex:1}.mobile-duty-person strong{display:block;font-size:16px;line-height:1.35;overflow-wrap:anywhere}
 .mobile-duty-person small,.mobile-week-table th small{display:block;font-size:11px;line-height:1.3;color:var(--muted);margin-top:4px}
 .mobile-duty-person>.duty{font-size:15px;min-width:42px;text-align:center;padding:6px}
 .mobile-duty-person .cell-select{width:76px;min-height:44px;flex:none;font-size:15px}
 .mobile-week-scroll{overflow:auto;max-width:100%;max-height:65dvh;overscroll-behavior:contain;touch-action:pan-x pan-y;border:1px solid var(--line);border-radius:10px;-webkit-overflow-scrolling:touch}
 .mobile-week-table{border-collapse:separate;border-spacing:0;min-width:630px;width:100%;font-size:13px;background:var(--card)}
 .mobile-week-table th,.mobile-week-table td{padding:8px 4px;border-bottom:1px solid var(--line);border-right:1px solid var(--line);text-align:center;min-width:62px}
 .mobile-week-table thead th{position:sticky;top:0;z-index:2;background:var(--tint);color:var(--ink)}
 .mobile-week-table th:first-child{position:sticky;left:0;z-index:1;background:var(--card);min-width:165px;width:165px;max-width:165px;text-align:left;padding:10px}
 .mobile-week-table thead th:first-child{z-index:3;background:var(--tint)}
 .mobile-week-table tbody th strong{font-size:14px;line-height:1.3;display:block;overflow-wrap:anywhere}
 .mobile-week-table .cell-select{min-height:44px;width:60px;min-width:0;font-size:13px;padding:4px}
 .mobile-week-table th[aria-current=date]{background:var(--accent);color:white}
 .roster-month-table{max-height:68dvh;overscroll-behavior:contain;-webkit-overflow-scrolling:touch}
}
@media print{.mobile-roster{display:none!important}.roster-sheet .roster-month-table{display:block!important}}
