:root{--ink:#202b36;--muted:#687584;--line:#dce2e8;--wash:#f5f7f9;--navy:#344b68;--navy2:#263c59;--green:#247657;--amber:#98661e;--red:#a64646}
    .image-export-pages .current-row{margin-bottom:8px}.image-export-pages .current-row strong{font-size:14px;font-weight:500}.image-export-pages .btn{min-height:44px}
    *{box-sizing:border-box}body{margin:0;background:var(--wash);color:var(--ink);font:13px Inter,Arial,sans-serif}button,input{font:inherit}button{cursor:pointer}button:disabled{opacity:.55;cursor:wait}button:focus-visible,input:focus-visible,[tabindex]:focus-visible{outline:2px solid #597ab0;outline-offset:2px}
    .shell{max-width:1680px;margin:auto;padding:27px 28px 36px}.top{display:flex;align-items:flex-start;justify-content:space-between;gap:20px;margin-bottom:23px}.eyebrow{margin:0 0 5px;color:var(--muted);font-size:11px;font-weight:700;letter-spacing:.1em;text-transform:uppercase}.top h1{margin:0;font-size:25px;letter-spacing:-.04em;font-weight:700}.top-right{display:flex;align-items:center;gap:10px;padding-top:7px}.status{display:flex;align-items:center;gap:7px;color:var(--muted);font-size:12px;white-space:nowrap}.status:before{content:'';width:7px;height:7px;border-radius:50%;background:#a5b0bb}.status.saved:before{background:var(--green)}.status.error:before{background:var(--red)}
    .panel{background:#fff;border:1px solid var(--line);border-radius:9px}.controls{display:flex;align-items:center;justify-content:space-between;gap:15px;padding:15px 18px;margin-bottom:17px}.week-controls,.actions{display:flex;align-items:center;gap:8px}.week-label{min-width:190px;text-align:center;font-size:14px;font-weight:700;letter-spacing:-.02em}.week-date{width:130px;margin-left:4px}.btn{min-height:35px;padding:0 13px;border:1px solid var(--line);border-radius:6px;background:#fff;color:#344252;font-weight:600;white-space:nowrap}.btn:hover{background:#f6f8fa;border-color:#bcc7d2}.btn.primary{background:var(--navy);border-color:var(--navy);color:#fff}.btn.primary:hover{background:var(--navy2)}.btn.quiet{border-color:transparent;background:transparent;color:var(--muted)}.btn.danger{color:var(--red)}.btn.small{min-height:30px;padding:0 9px;font-size:11px}input[type=date],input[type=text],input[type=time]{min-height:36px;padding:7px 10px;border:1px solid #cbd4de;border-radius:6px;background:#fff;color:var(--ink)}
    .grid-head{display:flex;justify-content:space-between;align-items:center;padding:14px 18px;border-bottom:1px solid var(--line)}.grid-head h2{font-size:13px;margin:0}.grid-head span{color:var(--muted);font-size:11px}.grid-scroll{overflow:auto;max-height:calc(100vh - 248px);min-height:430px;scrollbar-color:#b7c2cc #f5f7f9}.schedule{border-collapse:separate;border-spacing:0;table-layout:fixed;min-width:1790px;width:100%}.schedule th,.schedule td{border-right:1px solid var(--line);border-bottom:1px solid var(--line)}.schedule thead th{position:sticky;top:0;z-index:3;height:47px;padding:9px 11px;background:#f6f8fa;color:#253243;text-align:left;font-size:15px;font-weight:700;white-space:nowrap}.schedule thead th:first-child{left:0;z-index:5;width:89px;background:#DDE7F0;font-size:11px;font-weight:700}.schedule tbody th{position:sticky;left:0;z-index:2;width:89px;background:#EAF1F7;color:#253243;vertical-align:top;text-align:left;padding:15px 10px}.day{display:block;font-size:12px;font-weight:700}.day-date{display:block;margin-top:4px;color:#5F6C7B;font-size:10px;font-weight:500}.schedule td{width:113px;height:92px;padding:7px 8px;vertical-align:top;background:#fff;cursor:pointer}.schedule td:hover{background:#f5f8fc}.schedule td.selected{background:#f0f5fb;box-shadow:inset 0 0 0 2px #6e8aae}.schedule td:focus-visible{outline:-2px solid var(--navy)}.cell-content{display:flex;flex-direction:column;gap:5px}.assignment-line{display:flex;align-items:baseline;justify-content:space-between;gap:5px;padding-bottom:4px;border-bottom:1px solid #edf0f3}.assignment-line:last-child{border-bottom:0}.assignment-name{font-size:13px;font-weight:600;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.assignment-shift{font-size:12px;color:#5F6C7B;white-space:nowrap}.add-hint{color:#9aa6b3;font-size:11px;font-weight:600;opacity:.3}.schedule td:hover .add-hint,.schedule td:focus-visible .add-hint{opacity:1;color:var(--navy)}
    .scrim{position:fixed;inset:0;background:rgba(25,37,50,.32);z-index:20;display:flex;align-items:center;justify-content:center;padding:20px}.hidden{display:none!important}.dialog{width:min(438px,100%);max-height:min(92vh,760px);overflow:auto;background:#fff;border:1px solid #d6dee6;border-radius:10px;box-shadow:0 20px 60px rgba(22,34,49,.18)}.dialog-head{display:flex;justify-content:space-between;gap:10px;padding:18px 20px 15px;border-bottom:1px solid var(--line)}.dialog-head h2{margin:0;font-size:16px;letter-spacing:-.025em}.dialog-head p{margin:5px 0 0;color:var(--muted);font-size:11px}.icon-btn{border:0;background:transparent;color:var(--muted);font-size:22px;line-height:1;padding:0 2px;align-self:flex-start}.dialog-body{padding:18px 20px}.section-label{margin:0 0 10px;font-size:11px;font-weight:700;letter-spacing:.05em;text-transform:uppercase;color:#566677}.current-list{display:flex;flex-direction:column;gap:6px}.current-row{display:flex;align-items:center;justify-content:space-between;gap:10px;padding:8px 10px;background:#f8fafb;border:1px solid #e7ecf0;border-radius:6px}.current-row strong{font-size:11px}.current-row span{color:var(--muted);font-size:11px;margin-left:7px}.current-actions{display:flex;gap:4px}.text-btn{border:0;background:transparent;color:var(--navy);padding:5px 3px;font-weight:600;font-size:11px}.text-btn.danger{color:var(--red)}.empty-list{color:var(--muted);padding:9px 0;font-size:12px}.form-divider{height:1px;background:var(--line);margin:19px 0}.field-label{display:block;margin:0 0 7px;font-size:11px;font-weight:700}.employee-wrap{position:relative}.employee-wrap input{width:100%}.suggestions{position:absolute;top:calc(100% + 3px);left:0;right:0;z-index:3;max-height:170px;overflow:auto;background:#fff;border:1px solid #cbd4de;border-radius:6px;box-shadow:0 8px 20px rgba(20,35,50,.12)}.suggestion{display:block;width:100%;padding:9px 10px;text-align:left;background:#fff;border:0;font-size:12px}.suggestion:hover,.suggestion:focus-visible{background:#eef3f9}.suggestion small{color:var(--muted);float:right}.field-help{color:var(--muted);font-size:11px;line-height:1.4;margin:6px 0 0}.shift-label{margin-top:17px}.shift-options{display:flex;flex-wrap:wrap;gap:6px}.shift-btn{min-height:33px;padding:0 11px;background:#fff;color:#35485d;border:1px solid #ccd5df;border-radius:6px;font-size:11px;font-weight:700}.shift-btn.active{background:#eaf0f8;border-color:#6f88a9;color:var(--navy2)}.time-row{display:flex;gap:10px;margin-top:12px}.time-row>div{flex:1}.time-row input{width:100%}.form-actions{display:flex;gap:8px;margin-top:19px}.form-actions .btn.primary{flex:1}.inline-error{margin:11px 0 0;color:var(--red);font-size:11px;line-height:1.4}
    .confirm-dialog{width:min(390px,100%);padding:21px}.confirm-dialog h2{margin:0 0 9px;font-size:16px}.confirm-dialog p{margin:0;color:#536273;line-height:1.5;white-space:pre-line}.confirm-actions{display:flex;justify-content:flex-end;gap:8px;margin-top:20px}.notice{position:fixed;bottom:22px;left:50%;transform:translateX(-50%);max-width:min(460px,90vw);z-index:50;padding:10px 14px;background:#2b3d52;color:#fff;border-radius:6px;box-shadow:0 10px 28px #1e2e3c30;font-size:12px}.notice.error{background:#8f4141}
    .issues{position:fixed;right:0;top:0;bottom:0;z-index:25;width:min(410px,100vw);background:#fff;border-left:1px solid var(--line);box-shadow:-15px 0 45px #23324525;display:flex;flex-direction:column}.issues-head{display:flex;justify-content:space-between;gap:12px;padding:20px;border-bottom:1px solid var(--line)}.issues-head h2{font-size:17px;margin:0}.issues-head p{margin:5px 0 0;color:var(--muted);font-size:12px}.issues-list{overflow:auto;padding:10px}.issue{display:block;width:100%;text-align:left;padding:11px 12px;border:1px solid var(--line);border-radius:6px;background:#fff;margin-bottom:7px;color:var(--ink)}.issue:hover{background:#f6f8fa}.issue strong{display:block;font-size:11px}.issue span{display:block;margin-top:5px;color:var(--muted);font-size:11px;line-height:1.4}.issue.empty{border-left:3px solid #c9a568}.issue.overlap,.issue.duplicate,.issue.invalid_time{border-left:3px solid #bb6b6b}.doc-success{display:flex;align-items:center;gap:8px;color:var(--green);font-weight:600}.doc-success a{color:var(--navy);text-decoration:underline}
    @media(max-width:1300px){.controls{align-items:stretch;flex-direction:column}.week-controls,.actions{flex-wrap:wrap}.grid-scroll{max-height:calc(100vh - 290px)}}
    @media(max-width:900px){.shell{padding:18px 12px}.top{margin-bottom:15px}.top h1{font-size:21px}.week-label{min-width:170px}}
    .dialog{width:min(590px,100%);max-height:min(94vh,800px)}.scrim{padding:14px}.dialog-body{padding:15px 20px}.employee-wrap input{min-height:40px;width:100%}.employee-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(104px,1fr));gap:7px;max-height:190px;overflow:auto;padding:2px 3px 2px 1px}.employee-choice{display:flex;align-items:center;justify-content:center;min-height:52px;padding:8px 9px;background:#fff;color:#344252;border:1px solid #cbd4de;border-radius:6px;font-size:16px;font-weight:700;line-height:1.15;text-align:center;white-space:normal;overflow-wrap:anywhere;touch-action:manipulation}.employee-choice:hover{background:#f6f8fa;border-color:#9caec1}.employee-choice.selected{background:#eaf0f8;border-color:#607e9f;color:var(--navy2);box-shadow:inset 0 0 0 1px #607e9f}.employee-toolbar{display:flex;gap:8px;align-items:center;margin:8px 0}.employee-toolbar input{flex:1;min-width:0}.employee-choice:focus-visible,.shift-btn:focus-visible{outline:2px solid #597ab0;outline-offset:2px}.shift-btn{min-height:44px;min-width:63px;font-size:12px;touch-action:manipulation}.shift-options{gap:7px}.new-employee-panel{display:flex;gap:8px;margin:8px 0;align-items:center}.new-employee-panel input{flex:1;min-width:0}.new-employee-panel button{min-height:40px}.field-help{margin:5px 0 0}.form-divider{margin:14px 0}
    .dialog-footer{position:sticky;bottom:0;padding:12px 20px;background:#fff;border-top:1px solid var(--line);display:flex;justify-content:flex-end}.dialog-footer .btn{min-height:44px;min-width:105px}.btn.loading:before{content:'';display:inline-block;width:12px;height:12px;margin-right:7px;border:2px solid currentColor;border-right-color:transparent;border-radius:50%;vertical-align:-2px;animation:spin .7s linear infinite}@keyframes spin{to{transform:rotate(360deg)}}
    .auth-gate{position:fixed;inset:0;z-index:100;background:var(--wash);display:flex;align-items:center;justify-content:center;padding:20px}.auth-card{width:min(390px,100%);padding:28px;background:#fff;border:1px solid var(--line);border-radius:9px}.auth-card h1{margin:0 0 10px;font-size:24px}.auth-card p:not(.eyebrow){color:var(--muted);line-height:1.5}.auth-card .btn{min-height:44px}
    .auth-spinner{width:22px;height:22px;margin:14px 0;border:2px solid #d9e1e9;border-top-color:#526b86;border-radius:50%;animation:spin .8s linear infinite}.auth-spinner.hidden{display:none}.auth-identity{font-size:12px;overflow-wrap:anywhere}.auth-card .hidden{display:none!important}
    @media(max-width:600px){.auth-gate{padding:16px}.auth-card{padding:22px 20px}.auth-card h1{font-size:22px}}
    .top-right{flex-wrap:wrap;justify-content:flex-end}.weekly-hours{display:grid;grid-template-columns:1fr auto;gap:3px 14px;margin-top:13px;padding:9px 11px;background:#f8fafb;border:1px solid #e7ecf0;border-radius:6px;font-size:11px;color:#536273}.weekly-hours>strong{grid-column:1/-1;margin-bottom:2px;color:#344252;font-size:11px}.weekly-hours>div{display:contents}.weekly-hours .projected{font-weight:700;color:#344252}.weekly-hours span:last-child{text-align:right;font-variant-numeric:tabular-nums}.shift-btn{min-height:38px;min-width:62px;padding:0 13px}.shift-options{gap:8px}.dialog-footer{flex:0 0 auto}.dialog-footer .btn{min-height:46px;min-width:112px}#editorScrim .dialog{display:flex;flex-direction:column;overflow:hidden}#editorScrim .dialog-head{flex:0 0 auto}#editorScrim .dialog-body{flex:1 1 auto;min-height:0;overflow-y:auto}#editorScrim .dialog-footer{position:relative;z-index:1;box-shadow:0 -4px 12px rgba(25,37,50,.04)}#editorScrim .current-count{margin-bottom:9px}@media(max-width:900px),(pointer:coarse){.shift-btn{min-height:48px;min-width:70px;padding:0 17px;font-size:13px}.shift-options{gap:10px}.dialog-footer .btn{min-height:48px}}

    .mobile-day-view{display:none}
    .week-nav-mobile{display:none}
    @media(max-width:600px){
      .shell{padding:13px 10px calc(24px + env(safe-area-inset-bottom))}
      .top{align-items:center;gap:8px;margin-bottom:12px}
      .top h1{font-size:20px}
      .top-right{padding-top:0;gap:5px}
      .status{font-size:10px}
      .controls{gap:10px;padding:10px;margin-bottom:12px}
      .week-controls{display:grid;grid-template-columns:42px minmax(0,1fr) 42px;gap:6px;width:100%;max-width:100%;min-width:0}
      .week-controls .btn{width:42px;min-width:42px;min-height:42px;padding:0;font-size:20px}
      .week-nav-desktop{display:none}
      .week-nav-mobile{display:inline}
      .week-label{width:100%;max-width:100%;min-width:0;font-size:14px;white-space:nowrap}
      .week-date{display:none}
      .actions{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:6px}
      .actions .btn{width:100%;min-width:0;min-height:42px;padding:0 7px;font-size:11px}
      .actions #doc{grid-column:1/-1}
      .grid-head{padding:11px 12px}
      .grid-head h2{font-size:13px}
      .grid-head span{display:none}
      .grid-scroll{display:none}
      .mobile-day-view{display:block;padding:10px 9px 12px}
      .mobile-day-tabs{display:grid;grid-template-columns:repeat(7,minmax(0,1fr));gap:4px;margin-bottom:12px}
      .mobile-day-tab{display:flex;min-width:0;min-height:48px;flex-direction:column;align-items:center;justify-content:center;gap:2px;padding:4px 1px;border:1px solid var(--line);border-radius:7px;background:#fff;color:#465666;font-size:10px;font-weight:700;touch-action:manipulation}
      .mobile-day-tab small{color:var(--muted);font-size:8px;font-weight:500;white-space:nowrap}
      .mobile-day-tab.selected{border-color:#607e9f;background:#eaf0f8;color:var(--navy2);box-shadow:inset 0 0 0 1px #607e9f}
      .mobile-day-heading{margin:0 2px 8px;font-size:13px;letter-spacing:.01em}
      .mobile-store-list{display:flex;flex-direction:column;gap:6px}
      .mobile-store-card{display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:stretch;gap:7px;padding:7px 8px;border:1px solid #e1e6eb;border-radius:7px;background:#fff}
      .mobile-store-main{display:flex;min-width:0;flex-direction:column;align-items:stretch;gap:4px;padding:0;border:0;background:transparent;color:var(--ink);text-align:left;touch-action:manipulation}
      .mobile-store-name{font-size:15px;font-weight:700;line-height:1.2;color:#253243}
      .mobile-store-assignments{display:flex;flex-direction:column;gap:2px}
      .mobile-assignment{display:flex;min-width:0;align-items:baseline;justify-content:space-between;gap:8px;font-size:11px;line-height:1.35}
      .mobile-assignment-name{overflow:hidden;font-size:13px;font-weight:600;text-overflow:ellipsis;white-space:nowrap}
      .mobile-assignment-shift{flex:0 0 auto;color:#5F6C7B;font-size:12px;white-space:nowrap}
      .mobile-empty{color:#8b98a6;font-size:10px}
      .mobile-add-btn{align-self:center;min-height:42px;padding:0 10px;border:1px solid #d3dce5;border-radius:6px;background:#f9fbfd;color:var(--navy);font-size:11px;font-weight:700;touch-action:manipulation}
      #editorScrim{align-items:flex-end;padding:0;background:rgba(25,37,50,.42)}
      #editorScrim .dialog{width:100%;max-width:none;max-height:min(92dvh,800px);border:0;border-radius:16px 16px 0 0;padding-bottom:env(safe-area-inset-bottom);box-shadow:0 -12px 36px rgba(22,34,49,.2);animation:mobile-sheet-in .2s ease-out}
      #editorScrim .dialog-head{padding:14px 16px 12px}
      #editorScrim .dialog-head h2{font-size:15px}
      #editorScrim .dialog-body{padding:12px 15px}
      #editorScrim .form-divider{margin:11px 0}
      #editorScrim .employee-grid{grid-template-columns:repeat(3,minmax(0,1fr));max-height:min(25dvh,190px);gap:6px}
      #editorScrim .employee-choice{min-width:0;min-height:60px;padding:7px 3px;font-size:18px;font-weight:700}
      #editorScrim .employee-toolbar{gap:6px}
      #editorScrim .employee-toolbar .btn{min-height:42px;padding:0 9px;font-size:11px}
      #editorScrim .shift-options{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:7px}
      #editorScrim .shift-btn{width:100%;min-width:0;min-height:46px;padding:0 8px;font-size:13px}
      #editorScrim .shift-btn:last-child{grid-column:1/-1}
      #editorScrim .dialog-footer{padding:9px 15px 11px;box-shadow:0 -4px 12px rgba(25,37,50,.07)}
      #editorScrim .dialog-footer .btn{width:100%;min-height:46px}
      #editorScrim .current-row{padding:7px 8px}
      #editorScrim .current-actions{gap:8px}
      #editorScrim .text-btn{min-width:40px;min-height:36px;font-size:11px}
      #editorScrim .form-actions{margin-top:13px}
      #editorScrim .form-actions .btn{min-height:44px}
      #editorScrim .weekly-hours{margin-top:9px}
      .notice{bottom:calc(12px + env(safe-area-inset-bottom));max-width:calc(100vw - 24px)}
    }
    @keyframes mobile-sheet-in{from{transform:translateY(18px);opacity:.9}to{transform:translateY(0);opacity:1}}
    .current-manager{max-width:250px;color:#536273;font-size:11px;line-height:1.35;text-align:right}.actions{position:relative}.settings-menu{position:absolute;right:0;top:calc(100% + 5px);z-index:12;display:flex;flex-direction:column;gap:5px;min-width:190px;padding:8px;background:#fff;border:1px solid var(--line);border-radius:8px;box-shadow:0 8px 24px #23324520}.settings-menu .btn{text-align:left;min-height:44px}.admin-panel{padding:17px}.admin-head{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:10px}.admin-head h2{margin:0;font-size:17px}.admin-head .eyebrow{margin-bottom:3px}.admin-head>.btn{min-height:44px}.admin-help{margin:0 0 14px;color:var(--muted);font-size:12px;line-height:1.45}.manager-add-form{display:grid;grid-template-columns:minmax(190px,1.5fr) minmax(160px,1fr) auto;align-items:end;gap:9px;padding:12px;margin-bottom:13px;background:#f8fafb;border:1px solid #e7ecf0;border-radius:7px}.manager-add-form label{display:flex;flex-direction:column;gap:5px;color:#475565;font-size:11px;font-weight:700}.manager-add-form input,.manager-add-form select,.manager-role-select{width:100%;min-width:0;min-height:44px;padding:7px 9px;border:1px solid #cbd4de;border-radius:6px;background:#fff;color:var(--ink)}.manager-add-form .btn{min-height:44px}.manager-list,.history-list{display:flex;flex-direction:column;gap:7px}.manager-row{display:grid;grid-template-columns:minmax(170px,1.6fr) minmax(155px,1fr) minmax(78px,.55fr) auto;align-items:center;gap:9px;padding:10px 11px;border:1px solid var(--line);border-radius:7px;background:#fff}.manager-email{min-width:0;overflow-wrap:anywhere;color:#253243;font-size:13px;font-weight:600}.manager-role-label{display:block;margin-bottom:4px;color:var(--muted);font-size:10px}.manager-status{font-size:12px;font-weight:600}.manager-status.active{color:#247657}.manager-status.inactive{color:#8a5360}.manager-actions{display:flex;align-items:center;justify-content:flex-end;gap:5px;flex-wrap:wrap}.manager-actions .btn{min-height:44px;padding:0 9px;font-size:11px}.manager-actions .manager-role-select{width:150px;min-height:44px;font-size:11px}.history-row{display:grid;grid-template-columns:minmax(130px,.8fr) minmax(180px,1fr) minmax(0,2fr);gap:6px 12px;padding:10px 11px;border:1px solid var(--line);border-radius:7px;background:#fff;font-size:12px}.history-time{color:var(--muted);font-size:11px}.history-actor{color:#253243;font-weight:600;overflow-wrap:anywhere}.history-action{font-weight:700;color:#344b68}.history-detail{grid-column:2/-1;color:#536273;line-height:1.4;overflow-wrap:anywhere}.admin-empty{padding:14px;color:var(--muted);font-size:12px}
    @media(max-width:900px){.manager-row{grid-template-columns:minmax(150px,1.4fr) minmax(150px,1fr) minmax(74px,.6fr)}.manager-actions{grid-column:1/-1;justify-content:flex-start}.manager-actions .manager-role-select{width:170px}.history-row{grid-template-columns:minmax(120px,.8fr) minmax(170px,1fr) minmax(0,1.5fr)}}
    .settings-menu.hidden{display:none}
    @media(max-width:600px){.current-manager{max-width:145px;font-size:9px}.admin-panel{padding:12px}.admin-head{align-items:flex-start}.admin-head h2{font-size:16px}.admin-head .btn{min-height:44px;padding:0 9px;font-size:11px}.manager-add-form{grid-template-columns:1fr;gap:8px;padding:10px}.manager-add-form .btn{width:100%}.manager-row{display:flex;flex-direction:column;align-items:stretch;gap:8px;padding:10px}.manager-email{font-size:13px}.manager-actions{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:6px}.manager-actions .btn,.manager-actions .manager-role-select{width:100%;min-width:0;min-height:44px;padding:0 7px;font-size:11px}.history-row{display:flex;flex-direction:column;gap:4px;padding:10px}.history-detail{margin-top:2px}.settings-menu{right:0;min-width:180px}}
    /* Scheduling and assignment editor typography */
    .grid-head h2{font-size:18px;font-weight:700}.schedule thead th:not(:first-child){font-size:17px}.schedule thead th:first-child,.day{font-size:17px}.day-date{font-size:14px}.assignment-name{font-size:15px;font-weight:600}.assignment-shift{font-size:14px}.dialog-head h2{font-size:21px;font-weight:700}.section-label{font-size:17px}.current-row strong{font-size:18px}.current-row span{font-size:16px}.text-btn{font-size:16px}.employee-choice{font-size:18px}.shift-btn{min-height:52px;font-size:18px}.dialog-footer .btn{min-height:52px;font-size:18px;font-weight:700}
    @media(max-width:600px){
      .grid-head h2{font-size:18px}
      .mobile-day-heading{font-size:18px}
      .mobile-store-name{font-size:20px;font-weight:700}
      .mobile-assignment-name{font-size:20px;font-weight:700}
      .mobile-assignment-shift{font-size:17px}
      .day-date{font-size:16px}
      #editorScrim .dialog-head h2{font-size:24px}
      #editorScrim .section-label{font-size:18px}
      #editorScrim .current-row strong{font-size:19px}
      #editorScrim .current-row span{font-size:17px}
      #editorScrim .text-btn{font-size:17px}
      #editorScrim .employee-choice{min-height:60px;font-size:20px;line-height:1.15}
      #editorScrim .shift-btn{min-height:60px;font-size:20px;font-weight:700}
      #editorScrim .dialog-footer .btn{min-height:60px;font-size:20px;font-weight:700}
    }
    /* Balanced scheduling typography: retain scale, soften weight, lift small controls. */
    .top .status,.current-manager{font-size:14px;font-weight:500}
    .week-controls .week-label{font-size:16px;font-weight:600}
    .controls .week-controls .btn,.controls .actions .btn,.settings-menu .btn{font-size:15px;font-weight:500}
    .controls .week-date{font-size:15px}
    .grid-head h2,.mobile-day-heading{font-weight:600}
    .schedule thead th:not(:first-child){font-weight:600}
    .schedule thead th:first-child,.day{font-weight:600}
    .day-date,.assignment-shift{font-weight:400}
    .assignment-name,.mobile-store-name,.mobile-assignment-name{font-weight:600}
    .mobile-assignment-shift{font-weight:400}
    .mobile-day-tab{font-size:13px;font-weight:600}
    .mobile-day-tab small{font-size:12px;font-weight:400}
    .mobile-add-btn,.add-hint{font-size:14px;font-weight:500}
    #editorScrim .dialog-head h2{font-weight:600}
    #editorScrim .section-label{font-weight:600}
    #editorScrim .current-row strong{font-weight:600}
    #editorScrim .text-btn{font-weight:500}
    #editorScrim .employee-choice{font-weight:600}
    #editorScrim .shift-btn,#editorScrim .dialog-footer .btn{font-weight:600}
    #editorScrim .field-label{font-size:14px;font-weight:600}
    #editorScrim .field-help,#editorScrim .empty-list,#editorScrim .inline-error{font-size:14px}
    @media(max-width:600px){
      .top .status{font-size:13px}
      .current-manager{font-size:12px}
      .controls .week-controls .btn,.controls .actions .btn,.settings-menu .btn{font-size:14px}
      .controls .week-controls .week-label{font-size:14px}
      .controls .week-date{font-size:14px}
      .mobile-day-tab{font-size:13px}
      .mobile-day-tab small{font-size:13px}
      .current-manager{font-size:13px}
      .mobile-add-btn{font-size:14px}
      .mobile-store-name,.mobile-assignment-name{font-weight:600}
      #editorScrim .field-help,#editorScrim .empty-list,#editorScrim .inline-error{font-size:14px}
    }
    /* Exact schedule text weights; font sizes and layout remain unchanged. */
    .schedule thead th:not(:first-child),.mobile-store-name{font-weight:550}
    .assignment-name,.mobile-assignment-name,#editorScrim .current-row strong{font-weight:400}
    .assignment-shift,.mobile-assignment-shift,#editorScrim .current-row span,#editorScrim .shift-btn{font-weight:400}
    .add-hint,.mobile-add-btn{font-weight:500}
    @media(max-width:600px){
      .mobile-store-card{grid-template-columns:minmax(0,1fr) auto;gap:0;padding:0;overflow:hidden;background:#fff}
      .mobile-store-header{grid-column:1/-1;display:block;width:100%;min-width:0;padding:9px 12px;border:0;border-bottom:1px solid #CBD5E1;border-radius:0;background:#E2E8F0;color:var(--ink);text-align:left;touch-action:manipulation}
      .mobile-store-name{display:block;font-weight:550}
      .mobile-store-main{grid-column:1;grid-row:2;min-height:46px;padding:7px 9px;background:#fff}
      .mobile-store-assignments{background:#fff}
      .mobile-assignment-name{font-weight:400}
      .mobile-assignment-shift{font-weight:400}
      .mobile-add-btn{grid-column:2;grid-row:2;align-self:center;min-height:42px;margin:0 8px 0 0;background:#fff;font-weight:500}
    }
    .version-week{margin:0 0 12px;color:var(--muted);font-weight:600}
    .version-list{display:flex;min-width:0;flex-direction:column;gap:7px}
    .version-row{display:grid;grid-template-columns:minmax(115px,.9fr) minmax(145px,1fr) minmax(150px,1.2fr) minmax(90px,.7fr) auto;align-items:center;gap:8px;min-width:0;padding:10px;border:1px solid var(--line);border-radius:7px;background:#fff}
    .version-row>*{min-width:0;overflow-wrap:anywhere}
    .version-time{font-size:13px;font-weight:600}
    .version-reason{color:#344b68;font-weight:600}
    .version-manager,.version-count{color:var(--muted)}
    .version-restore{min-width:78px;min-height:44px}
    .version-empty{padding:12px 0;color:var(--muted)}
    .operation-dialog{display:flex;flex-direction:column;align-items:center;text-align:center}
    .operation-dialog .auth-spinner{margin:4px 0 12px}
    .operation-dialog p{margin:0;font-weight:600}
    @media(max-width:600px){
      .version-row{display:flex;flex-direction:column;align-items:stretch;gap:5px;padding:12px}
      .version-restore{width:100%;min-height:48px;margin-top:4px}
    }
    #doc.btn.primary{min-height:44px;background:#2563EB;border-color:#2563EB;color:#fff}
    #doc.btn.primary:hover,#doc.btn.primary:active{background:#1D4ED8;border-color:#1D4ED8}
    @media(max-width:900px),(pointer:coarse){#doc.btn.primary{min-height:50px}}
    @media(max-width:600px){.actions #doc{grid-column:1/-1;min-height:48px;padding-inline:10px;font-size:13px}}
    .btn.staff-portal-link{display:inline-flex;align-items:center;justify-content:center;gap:10px;min-height:48px;padding:10px 16px;line-height:1.2;text-decoration:none;border:1px solid #f8f5ff;border-radius:14px;background:linear-gradient(145deg,#faf7ff,#e3daef);color:#594573;font-size:15px;font-weight:650;box-shadow:inset 0 1px 1px #fff,0 3px 7px #59457322}
    .btn.staff-portal-link:hover{background:#eaf0f8;border-color:#aebfd4}
    .btn.staff-portal-link:focus-visible{outline:3px solid #b6cdeb;outline-offset:3px}
    .auth-card .staff-portal-link{margin-bottom:18px!important}
    .top-right .staff-portal-link{margin-bottom:0!important}
    .weekly-output-dialog{width:min(470px,100%);padding:0}
    .weekly-output-dialog .dialog-head{align-items:flex-start}
    .weekly-output-dialog .dialog-head h2{font-size:18px;font-weight:600}
    .weekly-output-dialog .dialog-head p{font-size:13px;line-height:1.4}
    .weekly-output-stages{display:flex;flex-direction:column;gap:11px;margin:0;padding:20px 24px 22px;list-style:none}
    .weekly-output-stages li{display:flex;align-items:center;gap:10px;color:#7b8793;font-size:14px;line-height:1.35}
    .weekly-output-stages li:before{content:'○';width:18px;flex:0 0 18px;color:#98a3ae;font-size:16px}
    .weekly-output-stages li.active{color:#253243;font-weight:600}
    .weekly-output-stages li.active:before{content:'';height:14px;border:2px solid #355179;border-right-color:transparent;border-radius:50%;animation:spin .8s linear infinite}
    .weekly-output-stages li.complete{color:#247657}
    .weekly-output-stages li.complete:before{content:'✓';color:#247657;font-weight:700}
    .weekly-output-stages li.failed{color:#a64646;font-weight:600}
    .weekly-output-stages li.failed:before{content:'!';color:#a64646;font-weight:700}
    .weekly-output-actions{display:flex;flex-wrap:wrap;gap:8px;padding:0 20px 20px}
    .weekly-output-actions .btn{min-height:44px;flex:1 1 auto}
    @media(max-width:600px){.weekly-output-dialog .dialog-head{padding:16px}.weekly-output-stages{padding:17px 18px 20px}.weekly-output-actions{padding:0 16px 16px}.weekly-output-actions .btn{min-height:46px}}

    #operationScrim{z-index:60}
    #operationScrim .operation-dialog{padding:28px;gap:10px}

.sheet-sync-status{position:fixed;bottom:12px;left:16px;z-index:15;padding:9px 13px;border:1px solid #d6dee6;border-radius:8px;background:#fff;font-size:13px;box-shadow:0 2px 8px #24333d15}.sheet-sync-status.error{color:#a32d38;border-color:#d98989}

#confirmScrim{z-index:55}

    #check.btn{background:#fff0dc;border-color:#edc692;color:#7a4712}#check.btn:hover{background:#ffe5bf;border-color:#dfa85f}

    #editorScrim .dialog-footer{gap:10px}#editorScrim .dialog-footer .btn{width:auto;min-width:0;flex:1}#editorScrim .form-actions:has(>.hidden:first-child):has(>.hidden:last-child){display:none}

    #editorScrim #cancelEdit{margin-left:10px;min-height:52px;padding:0 16px;background:#fff0dc;border-color:#edc692;color:#7a4712;font-size:18px;font-weight:600}#editorScrim #cancelEdit:hover{background:#ffe5bf;border-color:#dfa85f}
