:root{color-scheme:light;--navy:#101d2a;--navy2:#182b3b;--blue:#1c7194;--blue-light:#e9f4f8;--ice:#dceef4;--ink:#172838;--muted:#66798a;--line:#dce4ea;--paper:#f3f6f8;--white:#fff;--green:#198754;--green-bg:#e9f7ef;--amber:#9a6515;--amber-bg:#fff5df;--red:#a94442;--shadow:0 12px 30px rgba(20,40,58,.07)}*{box-sizing:border-box}html{font-family:Inter,ui-sans-serif,system-ui,-apple-system,"Segoe UI",sans-serif;background:var(--paper);color:var(--ink)}body{margin:0;min-width:320px}button,input,select{font:inherit}button{touch-action:manipulation}.hidden{display:none!important}.login-screen{min-height:100svh;display:grid;place-items:center;padding:24px;background:radial-gradient(circle at 20% 5%,#244760 0,transparent 35%),linear-gradient(145deg,#0d1822,#182f40 60%,#0d1b27)}.login-card{width:min(100%,430px);padding:36px 34px 30px;background:#fff;border:1px solid rgba(255,255,255,.25);border-radius:24px;box-shadow:0 25px 70px rgba(0,0,0,.24)}.brand-mark{width:53px;height:53px;display:grid;place-items:center;border-radius:16px;background:var(--navy);color:#fff;font-size:18px;font-weight:900;letter-spacing:-1px;margin-bottom:27px}.brand-mark span{color:#8ed6ed}.eyebrow{font-size:10px;font-weight:800;letter-spacing:.16em;color:#a6c5d5;margin:0 0 9px}.eyebrow.blue{color:var(--blue)}.login-card h1{font-size:31px;letter-spacing:-1.1px;margin:0 0 8px;color:var(--navy)}.login-copy{font-size:14px;line-height:1.55;color:var(--muted);margin:0 0 25px}.login-card form,.password-form{display:grid;gap:10px}.login-card label,.password-form label,.create-user-form label{font-size:12px;font-weight:750;color:#354b5d;display:grid;gap:6px}.login-card input,.password-form input,.create-user-form input,.create-user-form select{min-width:0;width:100%;height:46px;font-size:16px;border:1px solid #ccd7df;border-radius:10px;padding:0 12px;background:#fff;color:var(--ink);outline:none}.login-card input:focus,.password-form input:focus,.create-user-form input:focus,.create-user-form select:focus{border-color:#3e9bc1;box-shadow:0 0 0 3px #3e9bc11c}.login-button{height:48px;margin-top:8px}.login-foot{border-top:1px solid var(--line);margin:22px 0 0;padding-top:16px;color:#7a8a97;font-size:11px}.message{min-height:18px;color:var(--red);font-size:12px;margin-top:10px}.message.success{color:var(--green)}.hero{background:linear-gradient(112deg,#0f1d29,#1c3b51 66%,#15526d);padding:23px max(22px,calc((100vw - 1200px)/2)) 27px;color:#fff;position:relative}.hero-top,.hero-main{max-width:1200px;margin:0 auto}.hero-top{display:flex;align-items:center;justify-content:space-between;gap:14px}.hero-main{display:flex;align-items:flex-end;justify-content:space-between;gap:24px;margin-top:19px}.hero h1{font-size:clamp(25px,4vw,36px);line-height:1.1;letter-spacing:-1.4px;margin:0;font-weight:850}.hero h1 span{display:block;color:#a9d8e9;font-size:.55em;letter-spacing:.01em;margin-top:7px}.hero-main p{margin:13px 0 0;color:#d0e0e9;font-size:13px}.connection{display:flex;gap:8px;align-items:center;border:1px solid #ffffff30;background:#ffffff12;padding:7px 10px;border-radius:30px;font-size:11px;color:#d5e5ec;white-space:nowrap}.connection-dot{width:7px;height:7px;border-radius:50%;background:#dfa644;box-shadow:0 0 0 4px #dfa64420}.connection.live .connection-dot{background:#5ad394;box-shadow:0 0 0 4px #5ad39420}.connection.offline .connection-dot{background:#e17b76;box-shadow:0 0 0 4px #e17b7620}.account-box{display:flex;align-items:center;gap:10px;position:relative;flex-shrink:0}.account-text{text-align:right;display:grid;gap:3px}.account-text strong{font-size:12px}.account-text small{color:#a9c5d3;font-size:10px;text-transform:uppercase;letter-spacing:.1em}.icon-button{width:37px;height:37px;border:1px solid #ffffff50;border-radius:11px;background:#ffffff12;color:white;font-size:22px;cursor:pointer}.account-menu{position:absolute;z-index:30;right:0;top:calc(100% + 8px);background:white;color:var(--ink);box-shadow:var(--shadow);border:1px solid var(--line);border-radius:12px;padding:6px;min-width:195px}.account-menu button{display:block;width:100%;padding:11px 12px;text-align:left;border:0;background:white;border-radius:8px;font-size:12px;color:var(--ink);cursor:pointer}.account-menu button:hover{background:#f0f5f8}.main-wrap{max-width:1200px;margin:0 auto;padding:24px 22px 48px}.metrics{display:grid;grid-template-columns:1.35fr 1fr 1fr 1fr;gap:12px}.metric-card{background:white;border:1px solid var(--line);border-radius:15px;padding:15px 17px;box-shadow:0 2px 6px #152b3c05;min-height:115px;display:flex;flex-direction:column;align-items:flex-start}.metric-card strong{font-size:29px;letter-spacing:-1.2px;margin:3px 0 1px}.metric-label{color:#6b7c8a;font-size:9px;font-weight:850;letter-spacing:.12em}.metric-card small{color:#83919b;font-size:10px}.metric-primary{background:linear-gradient(135deg,#fff,#f1f8fb);border-color:#cfe1e8}.progress-track{width:100%;height:6px;background:#dce8ed;border-radius:10px;overflow:hidden;margin:5px 0 6px}.progress-fill{height:100%;width:0;background:linear-gradient(90deg,#1d7194,#75c5d9);border-radius:10px;transition:width .25s}.toolbar{display:flex;align-items:center;gap:9px;margin:21px 0 14px;flex-wrap:wrap}.search-wrap{flex:1 1 270px;display:flex;align-items:center;gap:9px;background:white;border:1px solid var(--line);border-radius:10px;padding:0 12px;height:42px;color:#81909b}.search-wrap span{font-size:22px}.search-wrap input{border:0;outline:0;min-width:0;width:100%;background:transparent;font-size:13px;color:var(--ink)}.toolbar select{height:42px;border:1px solid var(--line);border-radius:10px;background:white;padding:0 11px;color:#33495a;font-size:12px}.export-group{display:flex;gap:7px;flex-wrap:wrap}.button{border:1px solid var(--line);background:white;color:#31495c;padding:10px 13px;border-radius:10px;font-size:11px;font-weight:750;cursor:pointer;min-height:40px}.button:hover{border-color:#9bb8c7;background:#f7fbfd}.button.primary{background:var(--blue);border-color:var(--blue);color:#fff}.button.primary:hover{background:#155c7b}.button.secondary{background:#f8fafb}.export-button{background:#eaf4f8;border-color:#c8dfe8;color:#175d7b}.tabs{display:flex;gap:5px;align-items:center;border-bottom:1px solid var(--line);overflow-x:auto;scrollbar-width:none}.tabs::-webkit-scrollbar{display:none}.tab{padding:13px 15px 12px;border:0;border-bottom:3px solid transparent;background:transparent;color:#738493;font-weight:750;font-size:12px;white-space:nowrap;cursor:pointer}.tab.active{color:#155f80;border-bottom-color:#2b8aaf}.tab span{background:#eaf1f4;border-radius:20px;padding:3px 6px;font-size:9px;margin-left:4px}.panel{display:none;padding-top:24px}.panel.active{display:block}.section-heading{display:flex;justify-content:space-between;align-items:flex-end;gap:20px;margin-bottom:17px}.section-heading h2,.admin-heading h2{font-size:22px;letter-spacing:-.7px;margin:0;color:#162d40}.section-heading p:not(.eyebrow),.admin-heading p:not(.eyebrow){font-size:12px;color:var(--muted);margin:7px 0 0;line-height:1.5}.section-count{font-size:10px;font-weight:800;color:#668092;background:#e6eff3;padding:7px 10px;border-radius:30px;white-space:nowrap}.notice{font-size:11px;line-height:1.5;color:#516b7b;background:#edf5f8;border-left:3px solid #7bb6cd;padding:10px 12px;border-radius:0 8px 8px 0;margin-bottom:17px}.task-groups{display:grid;gap:17px}.task-group{background:white;border:1px solid var(--line);border-radius:14px;overflow:hidden;box-shadow:0 2px 5px #152b3c05}.group-heading{display:flex;justify-content:space-between;align-items:center;padding:12px 15px;background:#f7fafb;border-bottom:1px solid #e8eef2}.group-heading h3{margin:0;font-size:12px;color:#3b5a6e;letter-spacing:.02em}.group-heading span{font-size:10px;color:#8293a0}.task-row{display:grid;grid-template-columns:48px minmax(0,1fr) auto;gap:12px;align-items:start;padding:13px 15px;border-bottom:1px solid #edf1f3}.task-row:last-child{border-bottom:0}.task-row.done .task-title{text-decoration:line-through;color:#81909b}.task-toggle{width:44px;height:44px;border:1.5px solid #c9d6df;border-radius:12px;background:white;display:grid;place-items:center;color:white;cursor:pointer;transition:background .15s,border-color .15s;flex-shrink:0}.task-toggle:before{content:"";width:10px;height:6px;border-left:2px solid currentColor;border-bottom:2px solid currentColor;transform:rotate(-45deg) translate(1px,-1px);opacity:0}.task-toggle[aria-pressed="true"]{background:#20855b;border-color:#20855b}.task-toggle[aria-pressed="true"]:before{opacity:1}.task-body{min-width:0}.task-title{font-size:13px;font-weight:780;line-height:1.4;color:#203849;margin:0 0 4px}.task-detail{font-size:11px;line-height:1.55;color:#667988;margin:0;white-space:pre-line}.task-meta{display:flex;gap:6px 12px;flex-wrap:wrap;margin-top:8px;color:#8795a0;font-size:10px}.task-meta b{color:#536b7d;font-weight:750}.status-pill{align-self:start;white-space:nowrap;border-radius:30px;padding:6px 9px;font-size:9px;font-weight:800;background:#eff3f5;color:#71818d}.status-pill.todo{background:#eff3f5;color:#687b89}.status-pill.confirm{background:var(--amber-bg);color:var(--amber)}.status-pill.done{background:var(--green-bg);color:#18774b}.empty-state{text-align:center;padding:35px 20px;color:#82919d;font-size:12px}.artist-tables{display:grid;gap:17px}.artist-table-card{background:white;border:1px solid var(--line);border-radius:14px;padding:15px;box-shadow:0 2px 5px #152b3c05}.artist-table-card h3{font-size:14px;margin:0 0 13px;color:#24465b}.artist-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.artist-item{border:1px solid #e9eef1;border-radius:10px;padding:11px;min-width:0}.artist-item h4{font-size:12px;margin:0 0 9px;color:#1c506b}.artist-field{margin:0 0 8px}.artist-field:last-child{margin-bottom:0}.artist-field b{display:block;text-transform:uppercase;letter-spacing:.09em;font-size:8px;color:#8495a0;margin-bottom:3px}.artist-field span{font-size:11px;line-height:1.5;color:#506473;white-space:pre-line}.notes-list{display:grid;gap:8px;margin-top:14px}.note-card{padding:11px 13px;background:#fff8e9;border:1px solid #f1e0bb;border-radius:10px;font-size:11px;color:#745b2f;line-height:1.5}.cue-list{display:grid;gap:9px}.cue-card{background:white;border:1px solid var(--line);border-radius:13px;overflow:hidden}.cue-top{display:flex;align-items:center;gap:12px;padding:11px 14px;background:#edf5f8;border-bottom:1px solid var(--line)}.cue-time{font-variant-numeric:tabular-nums;font-weight:850;color:#176887;min-width:76px;font-size:13px}.cue-title{font-size:12px;font-weight:800;color:#25475c}.cue-body{display:grid;grid-template-columns:1fr 1fr;gap:15px;padding:12px 14px}.cue-body h4{margin:0 0 4px;color:#7e909d;font-size:8px;text-transform:uppercase;letter-spacing:.11em}.cue-body p{margin:0;font-size:11px;line-height:1.5;color:#506575;white-space:pre-line}.ceremony-notes{display:grid;gap:7px;margin-bottom:13px}.ceremony-note{background:#edf5f8;border-radius:9px;padding:9px 11px;font-size:10px;line-height:1.5;color:#4f6b7a}.source-note{font-size:10px;color:#82929c;margin-top:13px}.admin-panel{margin-top:25px;padding:18px;background:white;border:1px solid #bfd4de;border-radius:16px;box-shadow:var(--shadow)}.admin-heading{display:flex;align-items:flex-start;justify-content:space-between;gap:18px;margin-bottom:15px}.admin-heading h2{font-size:19px}.create-user-form{display:grid;grid-template-columns:1fr 1.4fr .7fr auto;align-items:end;gap:9px;padding:14px;background:#f4f8fa;border-radius:11px}.create-user-form button{white-space:nowrap}.users-list{margin-top:13px}.user-row{display:flex;justify-content:space-between;align-items:center;gap:12px;padding:11px 3px;border-bottom:1px solid #edf1f4}.user-info{display:grid;gap:4px;min-width:0}.user-info strong{font-size:12px}.user-info small{color:#7d8d98;font-size:10px}.user-actions{display:flex;gap:6px;flex-wrap:wrap;justify-content:flex-end}.user-actions .button{padding:7px 9px;min-height:32px;font-size:10px}.credential-box{background:#e9f7ef;border:1px solid #b9e3ca;border-radius:10px;margin-top:12px;padding:13px;color:#17643e;font-size:12px;line-height:1.7;overflow-wrap:anywhere}.credential-box code{font-size:13px;font-weight:800}.password-form{grid-template-columns:repeat(3,minmax(0,1fr));align-items:end}.password-form button{grid-column:1/-1;justify-self:start}.footer{display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap;margin-top:27px;padding-top:15px;border-top:1px solid var(--line);font-size:10px;color:#84929c}.text-button{border:0;background:transparent;color:#a34c49;font-size:10px;font-weight:750;cursor:pointer;padding:7px}.toast{position:fixed;left:50%;bottom:22px;transform:translate(-50%,20px);padding:11px 15px;border-radius:11px;background:#162d40;color:white;box-shadow:0 7px 25px #0e233344;font-size:11px;opacity:0;pointer-events:none;transition:opacity .2s,transform .2s;z-index:100;max-width:min(90vw,520px);text-align:center}.toast.show{opacity:1;transform:translate(-50%,0)}.toast.error{background:#8c3834}
@media(max-width:850px){.hero{padding-left:18px;padding-right:18px}.main-wrap{padding-left:17px;padding-right:17px}.metrics{grid-template-columns:repeat(2,minmax(0,1fr))}.metric-primary{grid-column:span 2}.create-user-form{grid-template-columns:repeat(2,minmax(0,1fr))}.create-user-form button{grid-column:1/-1}}
@media(max-width:580px){.hero{padding:16px 14px 20px}.hero-top{align-items:flex-start}.hero-top .eyebrow{max-width:210px;line-height:1.5}.hero-main{align-items:flex-start;margin-top:18px;gap:8px}.hero-main p{font-size:11px;max-width:260px;line-height:1.5}.account-text strong{max-width:105px;overflow:hidden;text-overflow:ellipsis}.hero h1{font-size:25px}.hero h1 span{font-size:.52em}.main-wrap{padding:15px 12px 35px}.metrics{gap:8px}.metric-card{min-height:97px;padding:12px}.metric-card strong{font-size:25px}.metric-label{font-size:8px}.metric-card small{font-size:9px}.toolbar{gap:7px;margin:14px 0 10px}.search-wrap{flex-basis:100%}.toolbar select{flex:1}.export-group{width:100%}.export-group .button{flex:1;padding:9px 6px;font-size:10px}.tabs{margin-right:-12px}.tab{padding:12px 11px 10px;font-size:11px}.panel{padding-top:18px}.section-heading{align-items:flex-start}.section-heading h2{font-size:20px}.section-heading p:not(.eyebrow){font-size:11px}.section-count{font-size:9px}.task-row{grid-template-columns:43px minmax(0,1fr);gap:10px;padding:12px 10px}.task-toggle{width:44px;height:44px}.task-title{font-size:12px}.task-detail{font-size:10px}.task-row .status-pill{grid-column:2;justify-self:start;margin-top:-3px}.group-heading{padding:10px 12px}.group-heading h3{font-size:11px}.artist-grid{grid-template-columns:1fr}.artist-table-card{padding:12px}.cue-body{grid-template-columns:1fr;gap:10px}.cue-time{min-width:68px;font-size:12px}.cue-top{padding:10px 11px}.cue-body{padding:10px 12px}.admin-panel{padding:13px;margin-top:18px}.admin-heading{gap:8px}.create-user-form{grid-template-columns:1fr}.create-user-form button{grid-column:auto}.password-form{grid-template-columns:1fr}.password-form button{grid-column:auto}.user-row{align-items:flex-start}.user-actions{flex-direction:column}.footer{font-size:9px}.login-card{padding:29px 23px 24px}.login-card input,.password-form input,.create-user-form input,.search-wrap input,.toolbar select{font-size:16px}}
@media(prefers-reduced-motion:reduce){*{scroll-behavior:auto!important;transition:none!important}}

/* Arctic Pulse 2 theme system: dark is the default, with a persistent light-mode option. */
:root { color-scheme: dark; }
html[data-theme="dark"] {
  color-scheme: dark;
  --navy:#0b1520; --navy2:#122333; --blue:#3194b8; --blue-light:#173847; --ice:#1c3948;
  --ink:#e4edf4; --muted:#a0afbd; --line:#2a3b4b; --paper:#0b1118; --white:#14202c;
  --green:#58d39a; --green-bg:#17392c; --amber:#f0c16a; --amber-bg:#3a301e; --red:#ff918a;
  --shadow:0 14px 36px rgba(0,0,0,.34);
}
html[data-theme="light"] { color-scheme: light; }
html[data-theme="dark"] body { background:var(--paper); color:var(--ink); }
html[data-theme="dark"] .login-card,
html[data-theme="dark"] .metric-card,
html[data-theme="dark"] .task-group,
html[data-theme="dark"] .artist-table-card,
html[data-theme="dark"] .cue-card,
html[data-theme="dark"] .admin-panel { background:var(--white); border-color:var(--line); color:var(--ink); }
html[data-theme="dark"] .login-card h1,
html[data-theme="dark"] .section-heading h2,
html[data-theme="dark"] .admin-heading h2,
html[data-theme="dark"] .task-title,
html[data-theme="dark"] .artist-table-card h3,
html[data-theme="dark"] .artist-item h4,
html[data-theme="dark"] .cue-title,
html[data-theme="dark"] .metric-card strong,
html[data-theme="dark"] .user-info strong { color:var(--ink); }
html[data-theme="dark"] .login-card label,
html[data-theme="dark"] .password-form label,
html[data-theme="dark"] .create-user-form label { color:#c6d3dd; }
html[data-theme="dark"] .login-card input,
html[data-theme="dark"] .password-form input,
html[data-theme="dark"] .create-user-form input,
html[data-theme="dark"] .create-user-form select,
html[data-theme="dark"] .toolbar select,
html[data-theme="dark"] .search-wrap { background:#0d1823; color:var(--ink); border-color:#34495b; }
html[data-theme="dark"] input::placeholder { color:#7f91a0; }
html[data-theme="dark"] .login-foot,
html[data-theme="dark"] .footer { border-color:var(--line); color:#91a2b1; }
html[data-theme="dark"] .account-menu { background:#142230; color:var(--ink); border-color:#34495b; }
html[data-theme="dark"] .account-menu button { background:transparent; color:var(--ink); }
html[data-theme="dark"] .account-menu button:hover { background:#223647; }
html[data-theme="dark"] .metric-primary { background:linear-gradient(135deg,#142b3a,#172736); border-color:#315365; }
html[data-theme="dark"] .metric-label { color:#9cb0bf; }
html[data-theme="dark"] .metric-card small { color:#91a2b1; }
html[data-theme="dark"] .progress-track { background:#2b3c49; }
html[data-theme="dark"] .button { background:#1b2b39; color:#dce7ef; border-color:#3a4d5e; }
html[data-theme="dark"] .button:hover { background:#253a4b; border-color:#58758b; }
html[data-theme="dark"] .button.primary { background:#1e789b; color:#fff; border-color:#2b91b6; }
html[data-theme="dark"] .button.primary:hover { background:#258bb1; }
html[data-theme="dark"] .button.secondary { background:#1a2936; color:#dce7ef; }
html[data-theme="dark"] .export-button { background:#173646; border-color:#2b5b70; color:#a9e3f3; }
html[data-theme="dark"] .tab { color:#92a4b3; }
html[data-theme="dark"] .tab.active { color:#8edcf3; border-bottom-color:#39a7cd; }
html[data-theme="dark"] .tab span,
html[data-theme="dark"] .section-count { background:#1d3443; color:#a9c5d4; }
html[data-theme="dark"] .section-heading p:not(.eyebrow),
html[data-theme="dark"] .admin-heading p:not(.eyebrow) { color:#9baebb; }
html[data-theme="dark"] .notice,
html[data-theme="dark"] .ceremony-note { background:#172d3a; color:#bad0dc; border-left-color:#3a91ad; }
html[data-theme="dark"] .group-heading { background:#192936; border-color:var(--line); }
html[data-theme="dark"] .group-heading h3 { color:#b5d5e2; }
html[data-theme="dark"] .group-heading span { color:#8fa3b1; }
html[data-theme="dark"] .task-row { border-color:#263746; }
html[data-theme="dark"] .task-toggle { background:#0e1924; border-color:#526777; color:#fff; }
html[data-theme="dark"] .task-toggle[aria-pressed="true"] { background:#168456; border-color:#37b67e; }
html[data-theme="dark"] .task-row.done .task-title { color:#8395a3; }
html[data-theme="dark"] .task-detail,
html[data-theme="dark"] .artist-field span,
html[data-theme="dark"] .cue-body p { color:#a8b7c3; }
html[data-theme="dark"] .task-meta { color:#8195a5; }
html[data-theme="dark"] .task-meta b { color:#b2c4d0; }
html[data-theme="dark"] .status-pill.todo { background:#263440; color:#bdcad3; }
html[data-theme="dark"] .status-pill.confirm { background:#44371f; color:#f1ca78; }
html[data-theme="dark"] .status-pill.done { background:#173c2e; color:#79dfad; }
html[data-theme="dark"] .artist-item { background:#101c27; border-color:#2a3e4e; }
html[data-theme="dark"] .artist-field b,
html[data-theme="dark"] .cue-body h4 { color:#8fa3b1; }
html[data-theme="dark"] .note-card { background:#352b1b; border-color:#66502d; color:#e7ca91; }
html[data-theme="dark"] .cue-top { background:#192f3d; border-color:var(--line); }
html[data-theme="dark"] .cue-time { color:#82d5ef; }
html[data-theme="dark"] .source-note { color:#8fa0ad; }
html[data-theme="dark"] .create-user-form { background:#101c27; }
html[data-theme="dark"] .user-row { border-color:#293b4b; }
html[data-theme="dark"] .user-info small { color:#91a2b1; }
html[data-theme="dark"] .credential-box { background:#17392c; border-color:#286b4d; color:#9ce3bb; }
html[data-theme="dark"] .message.success { color:#69d99e; }
html[data-theme="dark"] .theme-toggle { background:#20394a; border-color:#567184; color:#d9f3fb; }
html[data-theme="dark"] .theme-toggle:hover { background:#2a4b60; }
html[data-theme="light"] .theme-toggle { background:#ffffff18; border-color:#ffffff55; color:#fff; }
.hero-actions { display:flex; align-items:center; justify-content:flex-end; gap:8px; flex-wrap:wrap; }
.theme-toggle { min-height:34px; display:inline-flex; align-items:center; justify-content:center; gap:7px; padding:7px 11px; border:1px solid #ffffff50; border-radius:999px; background:#ffffff12; color:#fff; font-size:11px; font-weight:750; cursor:pointer; white-space:nowrap; }
.theme-toggle:hover { background:#ffffff22; }
.theme-toggle:focus-visible { outline:3px solid #8edcf3; outline-offset:2px; }
@media(max-width:580px) {
  .hero-actions { gap:6px; }
  .theme-toggle { min-height:32px; padding:6px 9px; font-size:10px; }
  .hero-top .eyebrow { max-width:175px; }
}
@media(max-width:580px) {
  .hero-top { flex-wrap:wrap; }
  .hero-top .eyebrow { max-width:none; }
  .hero-actions { width:100%; justify-content:space-between; }
}

/* Typography/readability pass v1.1.3: larger supporting text across desktop and mobile. */
html { font-size: 16px; }
.eyebrow { font-size: 11px; }
.hero-main p { font-size: 15px; line-height: 1.55; }
.connection { font-size: 12px; }
.account-text strong { font-size: 14px; }
.account-text small { font-size: 11px; }
.metric-card { padding: 17px 18px; }
.metric-card strong { font-size: 32px; }
.metric-label { font-size: 11px; letter-spacing: .10em; }
.metric-card small { font-size: 12.5px; line-height: 1.4; }
.search-wrap input { font-size: 15px; }
.toolbar select { font-size: 14px; }
.button { font-size: 13px; }
.tab { font-size: 14px; }
.tab span { font-size: 11px; }
.section-heading h2, .admin-heading h2 { font-size: 25px; }
.section-heading p:not(.eyebrow), .admin-heading p:not(.eyebrow) { font-size: 14px; line-height: 1.6; }
.section-count { font-size: 12px; }
.notice { font-size: 13px; line-height: 1.65; }
.group-heading { padding: 14px 17px; }
.group-heading h3 { font-size: 15px; }
.group-heading span { font-size: 12px; }
.task-row { padding: 16px 17px; }
.task-title { font-size: 16px; line-height: 1.45; margin-bottom: 5px; }
.task-detail { font-size: 14px; line-height: 1.65; }
.task-meta { font-size: 12.5px; line-height: 1.5; gap: 7px 14px; margin-top: 9px; }
.status-pill { font-size: 11.5px; padding: 7px 10px; }
.artist-table-card h3 { font-size: 16px; }
.artist-item { padding: 13px; }
.empty-state { font-size: 14px; }
.footer { font-size: 12px; }
.account-menu { min-width: 220px; }
.account-menu button { font-size: 14px; padding: 12px 13px; }

@media(max-width:850px) {
  .metric-card { padding: 15px; }
  .section-heading h2, .admin-heading h2 { font-size: 23px; }
}
@media(max-width:580px) {
  .hero-main p { font-size: 13px; }
  .connection { font-size: 11px; }
  .account-text strong { font-size: 13px; }
  .account-text small { font-size: 10px; }
  .metric-card { min-height: 102px; padding: 13px; }
  .metric-card strong { font-size: 27px; }
  .metric-label { font-size: 10px; letter-spacing: .08em; }
  .metric-card small { font-size: 11.5px; }
  .search-wrap input { font-size: 16px; }
  .toolbar select { font-size: 14px; }
  .export-group .button { font-size: 12px; }
  .tab { font-size: 13px; }
  .tab span { font-size: 10px; }
  .section-heading h2 { font-size: 22px; }
  .section-heading p:not(.eyebrow) { font-size: 13px; }
  .section-count { font-size: 11px; }
  .notice { font-size: 12.5px; }
  .group-heading { padding: 12px 13px; }
  .group-heading h3 { font-size: 14px; }
  .group-heading span { font-size: 11px; }
  .task-row { padding: 14px 11px; gap: 10px; }
  .task-title { font-size: 15px; line-height: 1.45; }
  .task-detail { font-size: 13px; line-height: 1.6; }
  .task-meta { font-size: 11.5px; gap: 6px 10px; }
  .status-pill { font-size: 11px; }
  .artist-table-card h3 { font-size: 15px; }
  .empty-state { font-size: 13px; }
  .footer { font-size: 11px; }
  .account-menu button { font-size: 14px; }
}


/* Accessibility/readability v1.2.0: large, high-contrast type by default. */
html {
  --read-title: 20px;
  --read-detail: 18px;
  --read-meta: 15px;
  --read-status: 14px;
  --read-group: 18px;
  --read-small: 14px;
}
/* Stronger contrast and larger text on the primary task list. */
.eyebrow { font-size:13px; }
.hero-main p { font-size:17px; line-height:1.6; }
.connection { font-size:14px; padding:9px 12px; }
.account-text strong { font-size:16px; }
.account-text small { font-size:13px; }
.icon-button { width:42px; height:42px; }
.metric-card { min-height:126px; padding:19px 20px; }
.metric-card strong { font-size:38px; }
.metric-label { font-size:13px; letter-spacing:.09em; }
.metric-card small { font-size:15px; line-height:1.45; color:#b9c8d3; }
.search-wrap { min-height:50px; }
.search-wrap input { font-size:17px; }
.toolbar select { min-height:50px; font-size:16px; }
.button { min-height:46px; font-size:15px; padding:11px 15px; }
.tab { font-size:16px; padding:15px 17px 13px; }
.tab span { font-size:13px; }
.section-heading h2, .admin-heading h2 { font-size:29px; }
.section-heading p:not(.eyebrow), .admin-heading p:not(.eyebrow) { font-size:16px; line-height:1.65; }
.section-count { font-size:14px; }
.notice { font-size:16px; line-height:1.7; padding:13px 15px; }
.group-heading { padding:16px 19px; }
.group-heading h3 { font-size:var(--read-group); }
.group-heading span { font-size:var(--read-small); color:#c2d0da; }
.task-row { grid-template-columns:60px minmax(0,1fr) auto; gap:15px; padding:20px 19px; }
.task-toggle { width:54px; height:54px; border-radius:14px; }
.task-toggle:before { width:13px; height:8px; border-width:0 0 3px 3px; }
.task-title { font-size:var(--read-title); line-height:1.45; margin-bottom:7px; }
.task-detail { font-size:var(--read-detail); line-height:1.7; color:#d5e0e8; }
.task-meta { font-size:var(--read-meta); line-height:1.6; gap:8px 18px; margin-top:11px; color:#bdccd7; }
.task-meta b { color:#f0f6fa; }
.status-pill { font-size:var(--read-status); padding:8px 12px; }
.status-pill.todo { background:#293b49; color:#e0eaf1; }
.status-pill.confirm { background:#49391e; color:#ffe09a; }
.status-pill.done { background:#174431; color:#a0f0c4; }
.task-row.done .task-title { color:#b0bec9; }
.artist-table-card h3 { font-size:19px; }
.artist-item h4 { font-size:17px; }
.artist-field b, .cue-body h4 { font-size:13px; letter-spacing:.08em; }
.artist-field span, .cue-body p { font-size:16px; line-height:1.7; color:#d2dee7; }
.note-card, .ceremony-note { font-size:15px; line-height:1.7; }
.cue-time { font-size:17px; }
.cue-title { font-size:17px; }
.source-note, .footer { font-size:13px; }
.admin-heading h2 { font-size:27px; }
.create-user-form label, .password-form label, .login-card label { font-size:15px; }
.login-copy { font-size:16px; line-height:1.7; }
.login-foot { font-size:13px; }
.login-card input, .password-form input, .create-user-form input, .create-user-form select { min-height:50px; font-size:17px; }
.account-menu { min-width:250px; }
.account-menu button { font-size:16px; padding:14px 15px; }
.user-info strong { font-size:16px; }
.user-info small { font-size:14px; }
.user-actions .button { font-size:14px; min-height:42px; }
.credential-box { font-size:15px; }
.credential-box code { font-size:16px; }
.toast { font-size:15px; padding:14px 18px; }

html[data-theme="dark"] .task-detail,
html[data-theme="dark"] .artist-field span,
html[data-theme="dark"] .cue-body p { color:#d5e0e8; }
html[data-theme="dark"] .task-meta { color:#bdccd7; }
html[data-theme="dark"] .task-meta b { color:#f0f6fa; }
html[data-theme="dark"] .metric-label { color:#c4d2dc; }
html[data-theme="dark"] .metric-card small { color:#bdccd7; }
html[data-theme="dark"] .group-heading span { color:#c2d0da; }
html[data-theme="dark"] .tab { color:#bac9d5; }
html[data-theme="dark"] .tab.active { color:#a5e8fb; }
html[data-theme="dark"] .section-heading p:not(.eyebrow),
html[data-theme="dark"] .admin-heading p:not(.eyebrow) { color:#c3d0da; }
html[data-theme="dark"] .footer,
html[data-theme="dark"] .source-note { color:#b6c5d0; }
html[data-theme="dark"] .task-row.done .task-title { color:#b0bec9; }

@media (max-width:850px) {
  .hero-main p { font-size:16px; }
  .metric-card { min-height:118px; }
  .task-row { grid-template-columns:58px minmax(0,1fr) auto; }
  .task-toggle { width:52px; height:52px; }
}
@media (max-width:580px) {
  .hero-actions { gap:7px; }
  .connection { font-size:12px; padding:8px 10px; }
  .metric-card { min-height:112px; padding:13px; }
  .metric-card strong { font-size:31px; }
  .metric-label { font-size:11px; letter-spacing:.07em; }
  .metric-card small { font-size:13px; }
  .search-wrap { min-height:48px; }
  .search-wrap input { font-size:16px; }
  .toolbar select { min-height:48px; font-size:15px; }
  .export-group .button { font-size:13px; padding:10px 7px; }
  .tab { font-size:14px; padding:13px 12px 11px; }
  .tab span { font-size:12px; }
  .section-heading h2 { font-size:24px; }
  .section-heading p:not(.eyebrow) { font-size:15px; }
  .section-count { font-size:12px; }
  .notice { font-size:14px; }
  .group-heading { padding:14px 13px; }
  .group-heading h3 { font-size:17px; }
  .group-heading span { font-size:13px; }
  .task-row { grid-template-columns:52px minmax(0,1fr); gap:11px; padding:16px 12px; }
  .task-toggle { width:48px; height:48px; }
  .task-title { font-size:18px; line-height:1.45; }
  .task-detail { font-size:16px; line-height:1.7; }
  .task-meta { font-size:14px; line-height:1.65; gap:7px 12px; }
  .status-pill { font-size:13px; padding:7px 10px; }
  .task-row .status-pill { grid-column:2; justify-self:start; margin-top:0; }
  .artist-table-card h3 { font-size:17px; }
  .artist-item h4 { font-size:16px; }
  .artist-field b, .cue-body h4 { font-size:12px; }
  .artist-field span, .cue-body p { font-size:15px; }
  .cue-title { font-size:15px; }
  .cue-time { font-size:15px; }
  .note-card, .ceremony-note { font-size:14px; }
  .account-menu button { font-size:15px; }
  .login-copy { font-size:15px; }
  .login-card label { font-size:14px; }
  .login-card input { font-size:16px; }
  .footer { font-size:12px; }
  html[data-text-size="extra"] .task-title { font-size:20px; }
  html[data-text-size="extra"] .task-detail { font-size:18px; }
  html[data-text-size="extra"] .task-meta { font-size:15.5px; }
  html[data-text-size="extra"] .status-pill { font-size:14px; }
  html[data-text-size="max"] .task-title { font-size:22px; }
  html[data-text-size="max"] .task-detail { font-size:20px; }
  html[data-text-size="max"] .task-meta { font-size:17px; }
  html[data-text-size="max"] .status-pill { font-size:15px; }
}


/* Typography clarity v1.2.1: use platform UI fonts with firmer, readable strokes. */
/* Avoid the thin/narrow Inter fallback: native system UI fonts render more consistently
   across Windows, macOS, Android and iOS, with no external font download. */
html {
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
}
body {
  font-family: inherit;
  font-size: 16px;
  font-weight: 500;
  letter-spacing: 0;
}
button, input, select, textarea {
  font-family: inherit;
}

/* Match the clearer, medium-weight reading style of the reference screenshot. */
.hero-main p,
.section-heading p:not(.eyebrow),
.admin-heading p:not(.eyebrow),
.notice,
.task-detail,
.artist-field span,
.cue-body p,
.note-card,
.ceremony-note,
.login-copy,
.metric-card small,
.group-heading span,
.empty-state,
.footer,
.source-note,
.user-info small {
  font-weight: 500;
}

html[data-theme="dark"] .hero-main p,
html[data-theme="dark"] .section-heading p:not(.eyebrow),
html[data-theme="dark"] .admin-heading p:not(.eyebrow),
html[data-theme="dark"] .notice,
html[data-theme="dark"] .task-detail,
html[data-theme="dark"] .artist-field span,
html[data-theme="dark"] .cue-body p,
html[data-theme="dark"] .metric-card small {
  color: #e0e8ee;
}

.task-title { font-weight: 750; }
.task-detail { font-size: 18px; line-height: 1.72; letter-spacing: 0; }
.task-meta { font-size: 15px; font-weight: 550; line-height: 1.65; color: #d0dbe4; }
.task-meta b { font-weight: 700; color: #f3f7fa; }
.status-pill { font-weight: 750; }
.group-heading h3 { font-weight: 750; }
.group-heading span { font-weight: 550; }
.metric-label { font-weight: 800; }
.metric-card small { font-size: 15px; }
.tab { font-weight: 700; }
.button { font-weight: 700; }

html[data-theme="dark"] .task-detail,
html[data-theme="dark"] .artist-field span,
html[data-theme="dark"] .cue-body p { color: #e0e8ee; }
html[data-theme="dark"] .task-meta { color: #d0dbe4; }
html[data-theme="dark"] .task-meta b { color: #f3f7fa; }
html[data-theme="dark"] .group-heading span { color: #d0dbe4; }
html[data-theme="dark"] .source-note,
html[data-theme="dark"] .footer { color: #c5d1da; }

@media (max-width: 580px) {
  body { font-size: 16px; }
  .task-title { font-size: 18px; font-weight: 750; }
  .task-detail { font-size: 16px; line-height: 1.72; }
  .task-meta { font-size: 14px; line-height: 1.65; }
  .status-pill { font-size: 13px; font-weight: 750; }
  .group-heading h3 { font-size: 17px; }
  .group-heading span { font-size: 13px; }
  .metric-card small { font-size: 13px; }
}

/* Venue map shortcut v1.2.3 */
.hero-location-block {
  display: grid;
  justify-items: start;
  gap: 5px;
  min-width: 0;
}
.venue-map-link {
  display: inline-flex;
  align-items: center;
  width: max-content;
  max-width: 100%;
  color: #c6eaf5;
  font-size: 14px;
  font-weight: 650;
  line-height: 1.4;
  text-decoration: underline;
  text-decoration-color: #8bcadd;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
  border-radius: 3px;
}
.venue-map-link:hover { color: #ffffff; text-decoration-color: #ffffff; }
.venue-map-link:focus-visible { outline: 2px solid #bceafa; outline-offset: 4px; }
@media (max-width: 580px) {
  .hero-location-block { gap: 7px; }
  .venue-map-link { font-size: 15px; min-height: 28px; }
}


/* Self-registration and administrator approval queue v1.3.0 */
.login-register-toggle { display:block; width:100%; margin-top:14px; padding:10px 12px; border:1px solid #cbd9e2; border-radius:10px; background:#f3f8fb; color:#155f80; font-size:15px; font-weight:750; cursor:pointer; }
.login-register-toggle:hover { background:#e9f4f8; }
.register-form { display:grid; gap:10px; margin-top:12px; }
.register-form h2 { margin:0; color:var(--navy); font-size:23px; }
.register-help { margin:0 0 5px; color:#526a7a; font-size:14px; line-height:1.55; }
.register-form label { font-size:15px; font-weight:700; color:#354b5d; display:grid; gap:6px; }
.register-form input { width:100%; min-height:50px; border:1px solid #ccd7df; border-radius:10px; padding:0 12px; font-size:17px; color:var(--ink); background:#fff; }
.register-form input:focus { outline:2px solid #3e9bc1; outline-offset:1px; }
.register-form .message { min-height:0; line-height:1.55; }
.trap-field { position:absolute!important; left:-10000px!important; top:auto!important; width:1px!important; height:1px!important; overflow:hidden!important; }
.admin-subheading { display:flex; align-items:center; justify-content:space-between; gap:12px; margin:18px 0 6px; }
.admin-subheading h3 { margin:0; color:var(--ink); font-size:18px; }
.create-account-heading { margin-top:25px; }
.approval-queue { padding:13px 15px; border:1px solid #38586b; border-radius:12px; background:#102332; }
.approval-queue .admin-subheading { margin-top:0; }
.user-role-select { min-height:42px; max-width:175px; padding:7px 10px; border:1px solid #415a6c; border-radius:9px; background:#0d1823; color:#e4edf4; font-size:14px; }
.button.danger { border-color:#854c50; background:#44252a; color:#ffd9d9; }
.button.danger:hover { background:#5a2c32; }
.approval-actions { align-items:center; }
.pending-user-row { border-color:#38586b; }
html[data-theme="dark"] .login-register-toggle { background:#173648; border-color:#3c647a; color:#bfeafa; }
html[data-theme="dark"] .login-register-toggle:hover { background:#20475c; }
html[data-theme="dark"] .register-form h2 { color:#e4edf4; }
html[data-theme="dark"] .register-help { color:#cad7e0; }
html[data-theme="dark"] .register-form label { color:#d5e0e8; }
html[data-theme="dark"] .register-form input { background:#0d1823; border-color:#34495b; color:#e4edf4; }
html[data-theme="dark"] .admin-subheading h3 { color:#e4edf4; }
html[data-theme="dark"] .approval-queue { background:#101e2a; border-color:#36566a; }
html[data-theme="dark"] .user-role-select { background:#0d1823; border-color:#415a6c; color:#e4edf4; }
html[data-theme="light"] .approval-queue { background:#f2f7fa; border-color:#d0dce4; }
html[data-theme="light"] .user-role-select { background:#fff; color:#233b4b; border-color:#cbd7df; }
@media (max-width:760px) {
  .user-row { flex-direction:column; align-items:stretch; }
  .approval-actions { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); justify-content:stretch; }
  .approval-actions .user-role-select { max-width:none; width:100%; grid-column:1/-1; }
  .approval-actions .button { width:100%; }
}


/* v1.3.2: compact self-registration view; keep full branding on sign-in. */
.login-card.register-mode { padding-top: 28px; }
.login-card.register-mode > .brand-mark,
.login-card.register-mode > .eyebrow,
.login-card.register-mode > h1,
.login-card.register-mode > .login-copy,
.login-card.register-mode > .login-foot { display: none !important; }
.login-card.register-mode .register-form { margin-top: 0; }
.login-card.register-mode .register-form h2 { margin-top: 0; }
@media (max-width: 580px) {
  .login-card.register-mode { padding-top: 23px; }
}


/* Four distinct admin exports: untouched originals above, live work exports below. */
.export-panel {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 9px;
  flex: 0 1 auto;
}
.export-row {
  display: flex;
  align-items: center;
  gap: 10px;
}
.export-row-label {
  flex: 0 0 106px;
  color: #a9c5d3;
  font-size: 11px;
  font-weight: 850;
  letter-spacing: .10em;
  white-space: nowrap;
}
.export-row-buttons {
  display: flex;
  align-items: center;
  gap: 7px;
  flex-wrap: wrap;
}
.export-row-buttons .button {
  min-height: 43px;
  padding: 10px 13px;
  font-size: 13px;
  white-space: nowrap;
}
@media (max-width: 900px) {
  .toolbar .export-panel { flex: 1 0 100%; width: 100%; }
  .export-row { align-items: flex-start; flex-direction: column; gap: 5px; }
  .export-row-buttons { width: 100%; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .export-row-buttons .button { width: 100%; min-width: 0; white-space: normal; }
}
@media (max-width: 420px) {
  .export-row-buttons { grid-template-columns: 1fr; }
}


/* Multi-project workspace, workbook preview and in-browser editing. */
.project-bar{display:flex;align-items:end;justify-content:space-between;gap:14px;padding:13px 15px;margin-bottom:15px;background:var(--white);border:1px solid var(--line);border-radius:13px}
.project-select-wrap{display:grid;gap:5px;min-width:min(100%,260px);color:var(--muted);font-size:11px;font-weight:800;letter-spacing:.1em}
.project-select-wrap select{width:100%;height:42px;padding:0 12px;border:1px solid var(--line);border-radius:9px;background:var(--paper);color:var(--ink);font-size:15px;font-weight:650}
.project-bar-actions{display:flex;gap:8px;flex-wrap:wrap}
.generic-panels{padding-top:22px}
.generic-sheet-panel{display:none;padding-top:22px}
.generic-sheet-panel.active{display:block}
.generic-task-row .task-body{min-width:0}
.generic-row-fields{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:7px 16px;margin-top:10px}
.generic-row-fields p{display:grid;gap:3px;margin:0;min-width:0}
.generic-row-fields b{font-size:12px;color:var(--muted);font-weight:750}
.generic-row-fields span{font-size:15px;line-height:1.55;color:var(--ink);white-space:pre-line;overflow-wrap:anywhere}
.generic-row-marker{width:44px;min-height:44px;display:grid;place-items:center;color:var(--blue);font-size:25px;font-weight:800}
.assignee-list{display:flex;gap:6px;flex-wrap:wrap;margin-top:10px}
.assignee-chip{display:inline-flex;align-items:center;padding:5px 9px;border-radius:20px;background:#dff0f6;color:#185e79;font-size:12px;font-weight:750}
html[data-theme="dark"] .assignee-chip{background:#173f50;color:#b9e8f7}
.item-admin-actions{display:flex;gap:6px;flex-wrap:wrap;align-items:center}
.item-admin-button{min-height:32px;padding:6px 10px;border:1px solid var(--line);border-radius:8px;background:var(--white);color:var(--ink);font-size:12px;font-weight:700;cursor:pointer}
.item-admin-button:hover{border-color:var(--blue);background:var(--blue-light)}
html[data-theme="dark"] .item-admin-button:hover{background:#203c4d}
.danger-text{color:#d66f68;border-color:#70403d}
.item-admin-actions .item-admin-button{white-space:nowrap}
.project-manage-panel,.admin-panel{scroll-margin-top:16px}
.admin-subheading{display:flex;align-items:center;justify-content:space-between;gap:12px;margin:22px 0 10px;padding-bottom:8px;border-bottom:1px solid var(--line)}
.admin-subheading h3{margin:0;color:var(--ink);font-size:17px}
.project-details-form{display:grid;grid-template-columns:1fr 1.5fr auto auto;gap:10px;align-items:end}
.project-details-form label,.project-import-form label,.task-editor-form label,.assignment-form label{display:grid;gap:6px;color:var(--muted);font-size:13px;font-weight:750}
.project-details-form input,.project-details-form textarea,.project-import-form input,.project-import-form textarea,.task-editor-form input,.task-editor-form textarea,.task-editor-form select{width:100%;min-width:0;border:1px solid var(--line);border-radius:9px;padding:10px 12px;background:var(--paper);color:var(--ink);font-size:16px;line-height:1.45}
.project-details-form textarea,.project-import-form textarea,.task-editor-form textarea{resize:vertical}
.project-structure-toolbar{display:flex;justify-content:flex-end;margin-bottom:10px}
.project-structure-admin{display:grid;gap:12px}
.manage-sheet-card{min-width:0;padding:14px;border:1px solid var(--line);border-radius:12px;background:var(--paper)}
.manage-sheet-heading{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:10px;flex-wrap:wrap}
.manage-sheet-heading h3{margin:0;color:var(--ink);font-size:18px}
.manage-row-list{display:grid;gap:0}
.manage-row{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:10px 3px;border-top:1px solid var(--line)}
.manage-row>span{display:grid;gap:3px;min-width:0;overflow-wrap:anywhere}
.manage-row b{color:var(--ink);font-size:14px;line-height:1.4}
.manage-row small{color:var(--muted);font-size:12px}
.project-archive-list,.project-revision-list{display:grid;gap:0}
.project-import-form{display:grid;grid-template-columns:1fr 1.5fr 1.4fr auto;gap:10px;align-items:end}
.import-preview{margin-top:20px;padding:16px;background:var(--paper);border:1px solid var(--line);border-radius:13px}
.preview-heading{display:flex;align-items:flex-start;justify-content:space-between;gap:12px;margin-bottom:12px;flex-wrap:wrap}
.preview-heading h3{margin:0 0 5px;color:var(--ink);font-size:21px}
.preview-warning{color:#e4b85e;font-size:12px;font-weight:850;letter-spacing:.06em}
.preview-summary{display:flex;gap:7px;flex-wrap:wrap}
.preview-summary span{padding:7px 10px;border:1px solid var(--line);border-radius:20px;background:var(--white);color:var(--ink);font-size:12px;font-weight:750}
.preview-tabs{margin:10px 0 4px}
.preview-content{padding-top:14px}
.preview-project-heading{display:flex;justify-content:space-between;align-items:flex-end;gap:15px;margin-bottom:20px}
.preview-project-heading h2{margin:0;color:var(--ink);font-size:26px}
.preview-project-heading p:not(.eyebrow){margin:7px 0 0;color:var(--muted);font-size:15px;line-height:1.55}
.preview-checkbox{width:44px;height:44px;display:block;border:2px solid #72899a;border-radius:12px;background:transparent}
.preview-actions{display:flex;justify-content:flex-end;gap:9px;flex-wrap:wrap;margin-top:18px;padding-top:14px;border-top:1px solid var(--line)}
.task-editor-form{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}
.task-editor-form label:has(textarea){grid-column:1/-1}
.editor-form-actions{grid-column:1/-1;display:flex;justify-content:flex-end;gap:8px}
.assignment-choices{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}
.assignment-choice{display:flex!important;align-items:center;gap:10px;padding:10px;border:1px solid var(--line);border-radius:9px;background:var(--paper)}
.assignment-choice input{width:20px;height:20px;accent-color:var(--blue)}
.assignment-choice span{display:grid;gap:3px}
.assignment-choice b{color:var(--ink);font-size:14px}
.assignment-choice small{color:var(--muted);font-size:12px}
html[data-theme="dark"] .project-bar,html[data-theme="dark"] .import-preview{background:#14202c;border-color:var(--line)}
html[data-theme="dark"] .project-select-wrap select,html[data-theme="dark"] .project-details-form input,html[data-theme="dark"] .project-details-form textarea,html[data-theme="dark"] .project-import-form input,html[data-theme="dark"] .project-import-form textarea,html[data-theme="dark"] .task-editor-form input,html[data-theme="dark"] .task-editor-form textarea,html[data-theme="dark"] .task-editor-form select{background:#0d1823;color:var(--ink);border-color:#34495b}
html[data-theme="dark"] .manage-sheet-card,html[data-theme="dark"] .assignment-choice{background:#101c27;border-color:var(--line)}
html[data-theme="dark"] .preview-summary span{background:#172633;border-color:var(--line);color:var(--ink)}
html[data-theme="dark"] .generic-row-fields b{color:#afc0cc}
@media(max-width:850px){.project-details-form{grid-template-columns:1fr 1fr}.project-import-form{grid-template-columns:1fr 1fr}.project-import-form label:nth-child(3){grid-column:1/-1}}
@media(max-width:580px){.project-bar{align-items:stretch;flex-direction:column}.project-select-wrap{min-width:0}.project-bar-actions{display:grid;grid-template-columns:1fr 1fr}.project-bar-actions .button{width:100%}.project-details-form,.project-import-form,.task-editor-form,.assignment-choices{grid-template-columns:1fr}.project-details-form label,.project-import-form label,.task-editor-form label{grid-column:1/-1}.manage-sheet-heading{align-items:flex-start}.manage-sheet-heading .item-admin-actions{width:100%}.manage-row{align-items:flex-start;flex-direction:column}.manage-row .item-admin-actions{width:100%}.generic-row-fields{grid-template-columns:1fr}.preview-project-heading{align-items:flex-start;flex-direction:column}.preview-project-heading h2{font-size:22px}.preview-checkbox,.generic-row-marker{width:38px;min-height:38px}.task-editor-form label:has(textarea){grid-column:1/-1}}


/* v1.4.0 — compact, two-level collapsible lists */
body.modal-open{overflow:hidden}
.group-heading-toggle{width:100%;display:flex;align-items:center;gap:12px;padding:13px 17px;border:0;border-bottom:1px solid var(--line);background:transparent;color:var(--ink);text-align:left;cursor:pointer;min-height:54px}
.group-heading-toggle:hover{background:rgba(95,155,185,.08)}
.group-heading-name{font-size:18px;font-weight:800;flex:1;min-width:0}
.group-heading-progress{font-size:13px;font-weight:700;color:var(--muted);white-space:nowrap}
.group-heading-chevron,.task-detail-chevron{font-size:20px;line-height:1;color:#8fb2c4;flex:0 0 auto}
.task-group-items{display:block}
.task-group-items.hidden{display:none!important}
.compact-task-row{align-items:flex-start;gap:14px;padding:13px 15px;min-height:0}
.compact-task-row .task-toggle{flex:0 0 42px;width:42px;height:42px;margin-top:1px}
.compact-task-row .task-body{flex:1;min-width:0}
.task-summary-line{display:flex;align-items:flex-start;min-width:0}
.task-title-toggle{width:100%;display:flex;align-items:flex-start;justify-content:space-between;gap:10px;padding:1px 0;border:0;background:transparent;color:var(--ink);text-align:left;cursor:pointer;font:inherit;min-width:0}
.task-number-title{font-size:18px;line-height:1.45;font-weight:750;overflow-wrap:anywhere;min-width:0}
.task-number{font-variant-numeric:tabular-nums;font-weight:850;color:var(--ink)}
.task-title-toggle:hover .task-number-title{text-decoration:underline;text-decoration-color:#6e9fb7;text-underline-offset:3px}
.task-details{padding:7px 25px 3px 0}
.task-details.hidden{display:none!important}
.task-details .task-detail{margin:3px 0 11px;font-size:17px;line-height:1.6;font-weight:500;overflow-wrap:anywhere}
.task-details .task-meta{display:flex;gap:10px 18px;flex-wrap:wrap;margin:8px 0;font-size:14px;line-height:1.5;color:var(--muted)}
.task-details .task-meta b{color:var(--ink);font-weight:800}
.assignee-label{font-size:13px;font-weight:800;color:var(--muted);align-self:center}
.compact-task-row .status-pill{flex:0 0 auto;margin-left:4px}
.compact-task-row.done .task-number-title{text-decoration:line-through;text-decoration-thickness:1px;text-decoration-color:#7292a1}
.generic-task-row .task-body{min-width:0}
.generic-task-row .task-title-toggle{min-height:36px}
.preview-title{cursor:default}
.compact-artist-item{padding:0;overflow:hidden}
.artist-title-toggle{width:100%;display:flex;justify-content:space-between;align-items:center;gap:12px;padding:13px 15px;border:0;background:transparent;color:var(--ink);font:inherit;font-weight:800;font-size:17px;text-align:left;cursor:pointer}
.artist-title-toggle:hover{background:rgba(95,155,185,.08)}
.artist-item-details{padding:0 15px 13px}
.artist-item-details.hidden{display:none!important}
.cue-summary-toggle{width:100%;display:grid;grid-template-columns:minmax(90px,130px) 1fr auto;align-items:center;gap:12px;padding:13px 15px;border:0;background:transparent;color:var(--ink);font:inherit;text-align:left;cursor:pointer}
.cue-summary-toggle:hover{background:rgba(95,155,185,.08)}
.cue-summary-toggle .cue-title{font-size:17px;line-height:1.45;font-weight:800}
.cue-body.hidden{display:none!important}

/* Dedicated Manage users control and accessible top-centred modal. */
.admin-access-control{flex:1 0 100%;display:flex;justify-content:flex-end;margin-top:2px}
.manage-users-button{min-width:160px;min-height:42px;font-size:14px}
.modal-overlay{position:fixed;inset:0;z-index:3000;display:flex;align-items:flex-start;justify-content:center;padding:clamp(10px,3.5vh,32px) 16px;background:rgba(2,8,14,.78);overflow:auto;overscroll-behavior:contain}
.modal-overlay.hidden{display:none!important}
.modal-dialog{width:min(1120px,100%);max-height:calc(100dvh - clamp(20px,7vh,64px));overflow:auto;margin:0;background:var(--white);border:1px solid var(--line);border-radius:18px;padding:20px;box-shadow:0 28px 90px rgba(0,0,0,.48);overscroll-behavior:contain}
html[data-theme="dark"] .modal-dialog{background:#15222e;border-color:#344b5c;color:#e5edf3}
.modal-dialog .admin-heading{position:sticky;top:-20px;z-index:2;margin:-20px -20px 16px;padding:17px 20px;background:inherit;border-bottom:1px solid var(--line);border-radius:18px 18px 0 0}
.modal-dialog .admin-heading h2{color:var(--ink);font-size:24px}
html[data-theme="dark"] .modal-dialog .admin-heading h2{color:#e5edf3}
.modal-dialog .admin-heading p:not(.eyebrow){color:var(--muted)}
.modal-dialog .approval-queue{margin-bottom:18px}
.modal-dialog .users-list{display:grid;gap:0}
.modal-dialog .create-user-form{display:grid;grid-template-columns:1fr 1.35fr 1fr auto;gap:9px;align-items:end}
.modal-dialog .create-user-form label{min-width:0}
.modal-dialog .create-user-form button{white-space:nowrap}
.modal-dialog .user-row{gap:12px}
.modal-dialog .user-actions{display:flex;gap:7px;align-items:center;flex-wrap:wrap}
@media(max-width:760px){
  .group-heading-toggle{min-height:52px;padding:12px}
  .group-heading-name{font-size:17px}
  .group-heading-progress{font-size:12px}
  .compact-task-row{gap:10px;padding:12px 10px}
  .compact-task-row .task-toggle{width:38px;height:38px;flex-basis:38px}
  .task-number-title{font-size:17px;line-height:1.48}
  .task-details{padding-right:0}
  .task-details .task-detail{font-size:16px;line-height:1.6}
  .task-details .task-meta{font-size:14px}
  .compact-task-row .status-pill{font-size:12px;padding:6px 8px}
  .cue-summary-toggle{grid-template-columns:84px 1fr auto;gap:8px;padding:12px 10px}
  .cue-summary-toggle .cue-title{font-size:16px}
  .admin-access-control{justify-content:stretch}
  .manage-users-button{width:100%}
  .modal-overlay{padding:6px;align-items:flex-start}
  .modal-dialog{width:100%;max-height:calc(100dvh - 12px);padding:13px;border-radius:13px}
  .modal-dialog .admin-heading{top:-13px;margin:-13px -13px 13px;padding:13px;border-radius:13px 13px 0 0;align-items:flex-start}
  .modal-dialog .admin-heading h2{font-size:21px}
  .modal-dialog .create-user-form{grid-template-columns:1fr 1fr}
  .modal-dialog .create-user-form label:nth-child(2){grid-column:1/-1}
  .modal-dialog .create-user-form button{grid-column:1/-1;width:100%}
  .modal-dialog .user-row{align-items:flex-start;flex-direction:column}
  .modal-dialog .user-actions{width:100%;display:grid;grid-template-columns:1fr 1fr}
  .modal-dialog .user-actions select{grid-column:1/-1;width:100%}
  .modal-dialog .user-actions .button{width:100%}
}
@media(max-width:420px){
  .compact-task-row{display:grid;grid-template-columns:36px minmax(0,1fr);}
  .compact-task-row .task-toggle{grid-column:1;grid-row:1;width:36px;height:36px}
  .compact-task-row .task-body{grid-column:2;grid-row:1;min-width:0}
  .compact-task-row .status-pill{grid-column:2;justify-self:start;margin:5px 0 0}
  .task-number-title{font-size:16px}
  .modal-dialog .create-user-form{grid-template-columns:1fr}
  .modal-dialog .create-user-form label:nth-child(2){grid-column:auto}
}


/* v1.5.0 integrated modal, admin toolbar and compact checklist refinements */
body.modal-open { overflow:hidden; }
.admin-toolbar-stack { flex:1 1 100%; display:grid; gap:9px; }
.export-group { display:grid; grid-template-columns:1fr; gap:7px; width:100%; }
.export-row { display:flex; flex-wrap:wrap; align-items:center; gap:7px 14px; padding:8px 10px; border:1px solid var(--line); border-radius:12px; background:rgba(22,42,57,.22); }
.export-row-label { flex:0 0 125px; color:#a9c5d3; font-size:12px; font-weight:850; letter-spacing:.12em; }
.export-row-buttons { display:flex; flex:1 1 auto; flex-wrap:wrap; gap:8px; }
.export-row-buttons .button { min-width:190px; }
.manage-users-button { width:100%; min-height:48px; font-size:15px; justify-content:center; }
.modal-dialog.wide-dialog { width:min(1120px,100%); }
.modal-dialog { max-height:calc(100dvh - clamp(20px,7vh,64px)); overflow:auto; overscroll-behavior:contain; }
.project-header-settings,.project-section-settings { margin:20px 0; padding:15px; border:1px solid var(--line); border-radius:14px; background:rgba(12,25,36,.22); }
.settings-grid { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:12px; }
.settings-grid label,.section-meta-card label { display:grid; gap:6px; min-width:0; color:var(--ink); font-weight:750; font-size:14px; }
.settings-grid input,.settings-grid textarea,.section-meta-card input,.section-meta-card textarea,.task-editor-form input,.task-editor-form textarea,.task-editor-form select { width:100%; min-width:0; padding:11px 12px; border-radius:10px; border:1px solid var(--line); background:#0d1823; color:#e7f0f5; font:inherit; }
.settings-grid textarea,.section-meta-card textarea { resize:vertical; }
.section-meta-card { padding:14px; margin:12px 0; border:1px solid var(--line); border-radius:12px; background:rgba(12,25,36,.18); }
.section-meta-card h4 { margin:0 0 12px; color:var(--ice); font-size:17px; }
.section-meta-card .settings-grid { margin-bottom:10px; }
.admin-panel.modal-dialog { width:min(980px,100%); margin:0; }
.project-manager-dialog { width:min(1180px,100%); }
.task-editor-form { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:12px; }
.task-editor-form label { display:grid; gap:6px; min-width:0; font-size:14px; font-weight:750; }
.task-editor-form .editor-form-actions { grid-column:1/-1; }
.confirm-dialog { width:min(460px,100%); padding:22px; border-radius:16px; }
.confirm-dialog .admin-heading { margin:0 0 12px; padding:0; position:static; border:0; }
.confirm-dialog p { line-height:1.6; }
.group-heading-toggle { width:100%; display:flex; justify-content:space-between; align-items:center; gap:10px; padding:16px 19px; border:0; background:#192936; color:#d5e8f1; cursor:pointer; text-align:left; }
.group-heading-toggle:hover { background:#203747; }
.group-heading-name { font-size:18px; font-weight:850; }
.group-heading-progress { margin-left:auto; font-size:14px; color:#c2d0da; }
.group-heading-chevron { font-size:18px; color:#85d5ee; }
.task-summary-line { display:flex; align-items:center; min-width:0; }
.task-title-toggle { width:100%; display:flex; align-items:center; justify-content:space-between; gap:10px; border:0; background:transparent; color:inherit; text-align:left; padding:0; font:inherit; cursor:pointer; }
.task-number-title { font-size:20px; font-weight:650; line-height:1.4; }
.task-detail-chevron { flex:0 0 auto; color:#9cc5d5; font-size:18px; }
.generic-row-fields p { margin:8px 0; }
.generic-row-fields b { display:block; font-size:13px; letter-spacing:.04em; color:#9fc4d5; }
.generic-row-fields span { display:block; white-space:pre-line; line-height:1.6; }
.artist-table-card .manage-sheet-heading { display:flex; justify-content:space-between; align-items:center; gap:12px; }
.item-admin-actions { display:flex; gap:7px; flex-wrap:wrap; margin-top:8px; }
.artist-item .item-admin-actions { margin:8px 0; }
.cue-card .item-admin-actions { padding:0 14px 10px; }
@media (max-width:760px) {
  .export-row { display:grid; grid-template-columns:1fr; }
  .export-row-label { flex:auto; }
  .export-row-buttons { display:grid; grid-template-columns:1fr; }
  .export-row-buttons .button { width:100%; min-width:0; }
  .settings-grid,.task-editor-form { grid-template-columns:1fr; }
  .admin-panel.modal-dialog,.modal-dialog.wide-dialog { width:100%; }
  .modal-overlay { padding:6px; }
  .task-row { grid-template-columns:50px minmax(0,1fr); }
  .task-row .status-pill { grid-column:2; justify-self:start; }
  .task-toggle { width:46px; height:46px; }
  .task-number-title { font-size:18px; }
  .group-heading-toggle { padding:14px 13px; }
  .group-heading-name { font-size:16px; }
  .group-heading-progress { font-size:12px; }
  .section-meta-card { padding:11px; }
}


/* v1.5.0 import preview visualizes the same compact group/task hierarchy as the live view */
.preview-project-header { padding:18px 20px; margin:0 0 16px; border-radius:14px; border:1px solid var(--line); background:linear-gradient(115deg,rgba(26,54,71,.95),rgba(17,37,52,.95)); }
.preview-project-header .eyebrow { margin:0 0 8px; }
.preview-project-header h2 { margin:0 0 5px; font-size:clamp(23px,3vw,32px); }
.preview-project-header p { margin:5px 0 0; color:var(--muted); line-height:1.55; }
.preview-sheet-heading { margin:12px 0 15px; }
.preview-sheet-heading h3 { margin:4px 0; font-size:21px; }
.preview-sheet-heading p { margin:5px 0; line-height:1.5; }
.preview-task-details { margin-top:8px; }
@media (max-width:760px) { .preview-project-header { padding:14px; } .preview-sheet-heading h3 { font-size:18px; } }

/* v1.5.0 preview header and sheet metadata */
.preview-project-header .preview-venue{margin:4px 0;color:#c5dce7;font-weight:650}
.preview-sheet-heading h3{margin:4px 0;font-size:23px;color:var(--ink)}
.preview-sheet-heading p{margin:5px 0;line-height:1.55;color:var(--muted)}
.preview-task-group{margin:10px 0}
.preview-task-row{padding-top:12px;padding-bottom:12px}
.preview-title{min-height:36px}
@media(max-width:760px){.preview-project-header{padding:14px}.preview-sheet-heading h3{font-size:19px}}
