
:root{--ink:#172339;--muted:#66758d;--line:#dae2ed;--bg:#f4f7fc;--panel:#fff;--green:#226b52;--green2:#e6f5ec;--blue:#3777cc;--orange:#ec8534;--yellow:#e9ff62;--shadow:0 12px 35px rgba(28,45,70,.07)}
*{box-sizing:border-box}body{margin:0;background:var(--bg);color:var(--ink);font-family:Pretendard,"Apple SD Gothic Neo","Malgun Gothic",system-ui,-apple-system,sans-serif;font-size:14px;line-height:1.53}button,input,select,textarea{font:inherit}button{cursor:pointer}button:disabled{opacity:.45;cursor:not-allowed}button:focus-visible,input:focus-visible,select:focus-visible,textarea:focus-visible{outline:3px solid #80c6a4;outline-offset:2px}h1,h2,h3,p{margin:0}h1{font-size:23px;letter-spacing:-1px}h2{font-size:20px;letter-spacing:-.7px}h3{font-size:15px}.muted{color:var(--muted)}.sm{font-size:12px}.tiny{font-size:11px}.bold{font-weight:800}.wrap{max-width:1320px;margin:0 auto;padding:0 20px 50px}.app-header{background:#14243a;color:white;position:relative}.head-inner{max-width:1320px;margin:auto;padding:20px;display:flex;align-items:center;gap:16px;justify-content:space-between;flex-wrap:wrap}.brand{display:flex;gap:12px;align-items:center}.brandmark{display:grid;place-items:center;background:#a7f1c0;color:#123e31;border-radius:14px;width:46px;height:46px;font-size:24px;box-shadow:0 0 0 4px #ffffff14}.brand h1{line-height:1.15;letter-spacing:.3px}.brand .tagline{font-size:11px;color:#b9cbe0}.account-box{display:flex;gap:9px;align-items:center;flex-wrap:wrap}.account-box select{min-width:190px;max-width:250px;background:#263b56;color:white;border:1px solid #4c6580;border-radius:10px;padding:9px 10px}.demo-pill{color:#172d38;background:#b5f1d1;border-radius:100px;font-size:11px;font-weight:900;padding:6px 9px}.banner{background:#e6f5eb;color:#275843;padding:11px 14px;border-radius:12px;border:1px solid #bddbc8;margin:22px 0 16px}.banner strong{margin-right:6px}.topnav{display:flex;gap:7px;flex-wrap:wrap;margin-bottom:20px}.topnav button{border:1px solid transparent;border-radius:12px;padding:11px 16px;background:#e7edf5;color:#4c5a70;font-weight:800}.topnav button.active{background:#193955;color:#fff}.page-title{display:flex;align-items:center;justify-content:space-between;gap:10px;flex-wrap:wrap;margin:0 0 16px}.page-title p{color:var(--muted);margin-top:3px}.two{display:grid;grid-template-columns:1fr 1fr;gap:16px}.three{display:grid;grid-template-columns:repeat(3,1fr);gap:14px}.card{background:var(--panel);border-radius:17px;border:1px solid #e4eaf3;box-shadow:var(--shadow);padding:19px;min-width:0}.card h3{margin-bottom:9px}.card + .card{margin-top:0}.stack{display:flex;flex-direction:column;gap:13px}.between{display:flex;justify-content:space-between;align-items:center;gap:10px;flex-wrap:wrap}.flex{display:flex;gap:9px;align-items:center;flex-wrap:wrap}.divider{border:0;border-top:1px solid var(--line);margin:15px 0}.btn{padding:9px 13px;border-radius:10px;border:1px solid transparent;font-weight:850;background:#e8eef5;color:#304259;min-height:39px}.btn.primary{background:#186e51;color:#fff}.btn.dark{background:#193955;color:#fff}.btn.danger{background:#fff0ef;color:#ba3d3d;border-color:#f4d2d0}.btn.warn{background:#fff0d8;color:#a35b00}.btn.outline{background:#fff;border-color:#cdd9e5;color:#31516b}.btn.small{font-size:12px;min-height:30px;padding:5px 9px}.btn.block{width:100%}.badge{display:inline-flex;align-items:center;border-radius:40px;padding:3px 8px;font-size:11px;font-weight:850;background:#eef2f6;color:#55647d}.badge.good{background:#e0f5e8;color:#17623c}.badge.wait{background:#fff0c9;color:#8e6011}.badge.bad{background:#ffe6e4;color:#9a3535}.badge.blue{background:#e4efff;color:#1e56a4}.field{display:flex;flex-direction:column;gap:6px}.field label{font-weight:800;font-size:12px}.field input,.field select,.field textarea{width:100%;padding:10px 11px;min-height:42px;border:1px solid #cfd9e6;background:#fff;border-radius:10px;color:#24344a}.field textarea{min-height:90px;resize:vertical}.note{background:#f3f7fa;border:1px solid #e5ebf3;padding:12px;border-radius:10px;color:#56657a}.empty{padding:32px 15px;text-align:center;border:1px dashed #d2dce7;border-radius:12px;color:#8190a1}.stat{background:white;border-radius:15px;border:1px solid #e0e8f1;padding:17px}.stat b{font-size:27px;display:block;letter-spacing:-1px}.stat span{color:#7b8ba0;font-size:12px;font-weight:700}.myshift{background:#f6f9fe;border:1px solid #e0e8f1;padding:10px 11px;border-radius:10px;display:flex;justify-content:space-between;gap:8px;align-items:center;flex-wrap:wrap}.myshift .date{font-size:12px;color:#677d9a}.myshift strong{display:block}.req{border:1px solid #e0e7f0;border-radius:13px;padding:14px;background:white}.req-head{display:flex;justify-content:space-between;align-items:flex-start;gap:8px;flex-wrap:wrap}.req-info{font-size:12px;color:#687b91;line-height:1.8;margin-top:6px}.req .actions{display:flex;flex-wrap:wrap;gap:7px;margin-top:11px}.queue{display:flex;flex-direction:column;gap:6px;margin-top:12px}.queue-line{padding:9px 11px;background:#f3f7fa;border-radius:9px;display:flex;align-items:center;justify-content:space-between;gap:10px}.queue-line.first{background:#e8f8ee;border:1px solid #b6e0c5}.queue-line .num{background:#dee7ef;color:#294c65;font-weight:800;padding:3px 8px;border-radius:8px;margin-right:7px}.flash{animation:pop .3s ease}@keyframes pop{from{transform:translateY(6px);opacity:.7}to{transform:none;opacity:1}}.filter-row{display:flex;gap:7px;flex-wrap:wrap}.filter-row button{padding:7px 11px;border-radius:20px;border:1px solid #dbe4ec;background:white;font-size:12px;font-weight:800;color:#5a6b82}.filter-row button.active{background:#193955;color:white}.schedule-shell{background:white;border:1px solid #e0e6ef;border-radius:16px;padding:14px;box-shadow:var(--shadow);margin-top:13px}.table-scroll{overflow-x:auto;border-radius:10px;border:1px solid #d7e3ef}.roster{width:100%;border-collapse:collapse;table-layout:fixed;min-width:1020px;font-size:12px}.roster th,.roster td{border:1px solid #d3e0ef;text-align:center;padding:7px 4px;vertical-align:middle}.roster thead th{color:white;font-size:12px;position:sticky;top:0;z-index:1}.roster.open thead th{background:#4779c4}.roster.close thead th{background:#ec8234}.roster th.area{width:90px}.roster th.duty{width:175px}.roster td.area{background:#d2edfb;font-weight:900;white-space:nowrap}.roster.close td.area{background:#ffe0ce}.roster td.duty{background:#f2f6fa;font-weight:850;font-size:11px}.roster td.staff{background:#dff1d9;font-weight:800;height:37px}.roster td.staff.blank{background:#fafbfc;color:#9aabc1}.roster td.staff.changed{background:#deecff}.roster td.staff.sub{background:#dfff55;color:#223317;box-shadow:inset 0 0 0 2px #99bc1f}.roster td.staff.clickable:hover,.roster .clickrow:hover{filter:brightness(.92);cursor:pointer}.roster .subtext{font-size:9px;display:block;letter-spacing:-.1px}.table-section-title{display:flex;align-items:center;justify-content:space-between;gap:10px;margin:8px 0}.table-section-title h3{display:flex;gap:8px;align-items:center}.square{width:11px;height:11px;border-radius:3px;display:inline-block}.square.open{background:#4779c4}.square.close{background:#ed8235}.table-foot{color:#6d7b8f;font-size:11px;margin:8px 0 2px}.modal-wrap{position:fixed;inset:0;background:#0c1827a8;display:flex;align-items:center;justify-content:center;z-index:100;padding:18px;overflow-y:auto}.modal{width:min(460px,100%);max-height:95vh;overflow-y:auto;background:white;border-radius:19px;box-shadow:0 30px 80px #0004;padding:23px}.modal header{display:flex;justify-content:space-between;align-items:center;margin-bottom:17px}.modal form{display:flex;flex-direction:column;gap:13px}.modal .end{display:flex;justify-content:flex-end;gap:9px}.toast-wrap{position:fixed;z-index:200;bottom:22px;right:20px;left:20px;display:flex;align-items:flex-end;flex-direction:column;gap:8px;pointer-events:none}.toast{background:#183d35;color:#fff;padding:12px 16px;border-radius:12px;box-shadow:0 10px 30px #0003;max-width:420px;font-weight:700;font-size:13px;animation:pop .2s}.toast.bad{background:#9b3c3b}.source-note{font-size:11px;color:#7a89a0;margin-top:8px}.timeline{display:flex;flex-direction:column;gap:9px}.timeline .item{padding:11px 12px;border-left:3px solid #bad8c4;background:#f6f9fb;border-radius:4px 9px 9px 4px}.step{display:flex;gap:10px;align-items:flex-start}.step b{flex-shrink:0;border-radius:50%;background:#e6f5ee;color:#176344;padding:2px 8px}.auth-panel{max-width:670px;margin:44px auto 0}.hero{background:linear-gradient(115deg,#1d493e,#173148);color:#fff;padding:28px;border-radius:17px;margin-bottom:16px}.hero h2{font-size:26px;line-height:1.3}.hero p{color:#d8efdf;margin-top:9px}.right{margin-left:auto}.weekswitch{display:flex;align-items:center;gap:8px;flex-wrap:wrap}.weekswitch input{border:1px solid #cfd9e6;padding:9px;border-radius:10px}.saves{display:flex;gap:5px;flex-wrap:wrap}.hint-title{background:#f0f8f2;border-radius:12px;padding:13px 15px;border:1px solid #d6eddd}.subhint{color:#486347;font-size:12px}.foot{border-top:1px solid #dbe2eb;padding-top:16px;margin-top:25px;color:#8a97a7;text-align:center;font-size:11px}.listrow{padding:11px 0;border-bottom:1px solid #e7edf4;display:flex;justify-content:space-between;align-items:center;gap:9px;flex-wrap:wrap}.listrow:last-child{border:0}.preset{color:#49775d;font-size:12px}.mini-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(210px,1fr));gap:10px}.modal-tip{font-size:12px;color:#677890}.snackbar{position:relative}
@media(max-width:850px){.two,.three{grid-template-columns:1fr}.wrap{padding:0 12px 38px}.head-inner{padding:16px 12px}.page-title{align-items:flex-start}.card{padding:15px}.account-box{width:100%}.account-box select{flex:1;max-width:none}.topnav{flex-wrap:nowrap;overflow-x:auto;padding-bottom:3px}.topnav button{white-space:nowrap;padding:9px 12px}.roster{min-width:940px}.auth-panel{margin:12px auto}.hero{padding:22px}.head-inner{gap:13px}}
/* MAPLE FIX additions — original MAPLE SHIFT tokens and components retained */
:root{--green:#186e51}.brandmark{font-size:19px;font-weight:900}.head-inner{padding:22px 24px}.wrap{padding-top:24px;max-width:1260px}.topnav{position:sticky;top:0;z-index:3;padding:10px 0;background:var(--bg)}.topnav button{white-space:nowrap}.dashboard-stats{display:grid;grid-template-columns:repeat(4,1fr);gap:12px;margin-bottom:18px}.stat{cursor:pointer;text-align:left;transition:transform .15s}.stat:hover{transform:translateY(-2px)}.stat b{color:var(--ink)}.stat small{display:block;color:var(--green);margin-top:6px}.stat.urgent{border-top:3px solid #da6755}.hero{background:#193955;color:#fff;border-radius:18px;padding:24px;margin-bottom:20px;display:flex;justify-content:space-between;gap:20px;align-items:center}.hero p{color:#bed0dd;margin:6px 0 13px}.hero .btn{background:#a7f1c0;color:#124331}.hero-label{color:#a7f1c0;letter-spacing:2px;font-size:11px;font-weight:800;margin-bottom:8px}.section-gap{margin-top:20px}.issue-card{width:100%;text-align:left;display:block;border:1px solid #e1e8ef;background:white;border-radius:14px;padding:17px;color:var(--ink)}.issue-card:hover{border-color:#98b8aa;background:#fbfefc}.issue-card h3{font-size:15px;margin:9px 0 6px}.issue-card p{white-space:pre-wrap;overflow-wrap:anywhere}.issue-card .preview-text{display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}.issue-meta{font-size:12px;color:var(--muted);margin-top:10px}.dot{display:inline-block;width:7px;height:7px;border-radius:50%;background:currentColor;margin-right:5px}.status-0{background:#ffe9e4;color:#a63d2f}.status-1{background:#e5efff;color:#2b60ad}.status-2{background:#fff1d3;color:#956510}.status-3{background:#eee7fb;color:#7950a5}.status-4{background:#e2f3e9;color:#216c48}.issue-list{display:flex;flex-direction:column;gap:10px}.filters{display:grid;grid-template-columns:2fr repeat(3,1fr);gap:10px}.filter-more{display:grid;grid-template-columns:repeat(3,1fr);gap:10px;margin-top:10px}.filter-summary{margin-top:12px;display:flex;justify-content:space-between;align-items:center}.theme-grid{display:grid;grid-template-columns:repeat(5,1fr);gap:12px}.theme-tile{text-align:left;cursor:pointer}.theme-tile .theme-index{font-size:11px;color:#99a7b7;letter-spacing:2px;margin-bottom:18px}.theme-tile b{font-size:24px}.theme-tile h3{font-size:14px}.theme-tile p{font-size:12px;color:var(--muted);margin-top:4px}.theme-tile:first-child{border-top:3px solid #52987d}.row{display:flex;justify-content:space-between;gap:12px;padding:13px 0;border-bottom:1px solid var(--line);align-items:center}.row:last-child{border-bottom:0}.row .rank{background:var(--green2);color:var(--green);padding:6px 10px;border-radius:8px}.bar-track{height:7px;background:#edf1f5;border-radius:8px;margin:8px 0}.bar-fill{height:100%;background:#42896b;border-radius:8px}.mini-bars{display:flex;height:100px;align-items:end;gap:10px;margin-top:18px}.mini-bar{flex:1;display:flex;flex-direction:column;justify-content:end;text-align:center;gap:4px;font-size:11px;color:var(--muted)}.mini-bar i{display:block;background:#4b9577;border-radius:5px 5px 0 0;min-height:2px}.notice{background:#fff4db;border:1px solid #efdab0;border-radius:12px;padding:13px;color:#886329;margin-bottom:18px}.auth{max-width:460px;margin:25px auto}.auth .card{padding:26px}.auth .field{margin-top:14px}.auth h2{margin:6px 0}.auth .btn.block{margin-top:18px}.auth-switch{display:flex;gap:6px;margin-bottom:18px}.auth-switch button{flex:1}.setup{max-width:840px;margin:30px auto}.setup-grid{display:grid;grid-template-columns:1fr 1fr;gap:15px}.steps{counter-reset:step}.steps p{padding:14px 0;border-bottom:1px solid var(--line)}.steps p:before{counter-increment:step;content:counter(step);display:inline-grid;place-items:center;background:#e3f3ea;color:var(--green);width:24px;height:24px;border-radius:50%;margin-right:10px}.preview-pill{border:1px solid #819482;border-radius:25px;padding:5px 10px;font-size:11px;color:#d9eddf}.modal-content{padding:22px}.modal-content>header{display:flex;justify-content:space-between;align-items:center;margin-bottom:20px;gap:12px}dialog{border:0;padding:0;border-radius:19px;width:min(760px,calc(100% - 24px));max-height:92dvh;color:var(--ink);background:white;box-shadow:0 24px 90px #0d223746;overflow-y:auto}dialog::backdrop{background:#14243a99;backdrop-filter:blur(3px)}dialog.large{width:min(1020px,calc(100% - 24px))}.form-grid{display:grid;grid-template-columns:1fr 1fr;gap:15px}.full{grid-column:1/-1}.form-actions{display:flex;justify-content:flex-end;gap:10px;margin-top:20px}.form-actions .primary{min-width:135px}.required{color:#aa4735}.suggestions{display:flex;flex-wrap:wrap;gap:6px}.suggestions button{background:#edf5f0;border:1px solid #d1e5d9;border-radius:8px;padding:6px 10px;font-size:12px}.selected-device{background:#e1f4e9;border-radius:9px;padding:10px}.upload-box{border:1px dashed #b3c8bd;border-radius:12px;padding:14px;background:#fafdfb}.photo-preview{display:flex;flex-wrap:wrap;gap:10px;margin-top:10px}.photo-item{position:relative;width:105px}.photo-item img{width:105px;height:85px;object-fit:cover;border-radius:10px}.photo-item button{position:absolute;right:3px;top:3px;background:#14243add;color:white;border:0;border-radius:50%;width:25px;height:25px}.photo-item progress{width:100%}.photo-item .retry{position:static;border-radius:8px;width:100%;height:auto;font-size:11px;padding:5px}.photo-wall{display:flex;gap:8px;flex-wrap:wrap;margin:12px 0}.photo-wall .photo-wrap{display:flex;flex-direction:column;gap:4px;width:115px}.photo-wall img{height:95px;width:115px;object-fit:cover;border-radius:10px;cursor:zoom-in}.photo-wall .load-photo{height:95px;font-size:12px}.timeline{border-left:2px solid #deeadf;margin:10px 0 15px 5px;padding-left:18px}.timeline-entry{position:relative;padding:0 0 19px}.timeline-entry:before{content:'';position:absolute;left:-24px;top:5px;width:10px;height:10px;background:#4a8a6d;border-radius:50%;border:2px solid white}.timeline-entry p{white-space:pre-wrap;overflow-wrap:anywhere;margin-top:6px}.detail-summary{padding:16px;background:#f5f8fb;border-radius:12px;margin:13px 0}.detail-summary p{white-space:pre-wrap;overflow-wrap:anywhere}.text-link{border:0;background:none;color:var(--green);padding:0;font-weight:750;text-decoration:underline}.audit-entry{padding:12px 0;border-bottom:1px solid var(--line)}pre{white-space:pre-wrap;overflow-wrap:anywhere;font-size:11px;background:#f1f5f8;padding:12px;border-radius:10px}#toast{position:fixed;bottom:28px;left:50%;transform:translateX(-50%);max-width:calc(100% - 30px);background:#14243a;color:white;border-radius:12px;padding:12px 18px;z-index:50;display:none}#toast.show{display:block}.field small{color:var(--muted);font-size:11px}input[type=checkbox]{width:18px;min-height:18px;accent-color:var(--green)}.pager{display:flex;justify-content:center;gap:12px;margin:18px}.footer{color:var(--muted);font-size:11px;text-align:center;margin-top:30px}.mobile-add{display:none}.busy{opacity:.6;pointer-events:none}.auth-note{font-size:12px;color:var(--muted);margin-top:14px}.inline-error{color:#a63d2f;background:#fff0eb;border-radius:8px;padding:10px;margin:12px 0;white-space:pre-wrap}.sync{font-size:11px;color:#adc5b5}.unread{border-left:3px solid #288767}.lightbox{width:100%;max-height:75dvh;object-fit:contain}.connection{padding:7px 10px;background:#263b56;border-radius:20px}.check-row{display:flex;gap:8px;align-items:center;font-size:12px}.header-tools{display:flex;gap:10px;align-items:center;flex-wrap:wrap}.heading-eyebrow{color:var(--green);font-size:11px;font-weight:800;letter-spacing:1px;margin-bottom:6px}.settings-grid{display:grid;grid-template-columns:1fr 1fr;gap:16px}.tip{font-size:12px;color:var(--muted);margin:8px 0}.count{font-variant-numeric:tabular-nums}.bar-label{display:flex;justify-content:space-between;font-size:12px}.muted-header{color:#b9cbe0}.hero-count{text-align:right;min-width:100px}.hero-count strong{font-size:42px;display:block;line-height:1.2}.hero-count span{font-size:11px;color:#bed0dd}
@media(max-width:950px){.theme-grid{grid-template-columns:repeat(3,1fr)}.filters{grid-template-columns:1fr 1fr}.dashboard-stats{grid-template-columns:repeat(3,1fr)}}
@media(max-width:600px){.head-inner{padding:18px 16px}.brand h1{font-size:22px}.brandmark{width:40px;height:40px}.wrap{padding:14px 12px 90px}.header-tools{width:100%;justify-content:space-between}.header-tools .btn{min-height:32px;font-size:12px;padding:5px 8px}.dashboard-stats{grid-template-columns:1fr 1fr;gap:9px}.stat{padding:13px}.stat b{font-size:24px}.hero{padding:18px;align-items:start}.hero h2{font-size:20px}.hero-count strong{font-size:32px}.hero-count{min-width:55px}.theme-grid{grid-template-columns:1fr 1fr;gap:9px}.theme-tile{padding:14px}.theme-tile .theme-index{margin-bottom:10px}.topnav{overflow-x:auto;flex-wrap:nowrap;scrollbar-width:none;margin-bottom:15px}.topnav button{padding:10px 12px;flex-shrink:0}.form-grid,.setup-grid,.settings-grid{grid-template-columns:1fr}.filter-more{grid-template-columns:1fr 1fr}.full{grid-column:auto}.modal-content{padding:18px}.modal-content>header h2{font-size:19px}.mobile-add{display:block;position:fixed;bottom:calc(16px + env(safe-area-inset-bottom));right:16px;z-index:4;box-shadow:0 6px 18px #163e3540;border-radius:30px;padding:13px 22px}.auth{margin:10px auto}.issue-card{padding:14px}.filter-summary{align-items:start;gap:10px}.form-actions .btn{flex:1}.mini-bars{gap:5px}.notice{font-size:12px}input,select,textarea{font-size:16px!important}#toast{bottom:90px}.hero .btn{font-size:13px}}
@media(prefers-reduced-motion:reduce){*{animation:none!important;transition:none!important}}
.bar-button{display:block;width:100%;border:0;background:none;padding:7px 0;text-align:left;color:var(--ink)}.summary-table{width:100%;min-width:650px;border-collapse:collapse;text-align:left;font-size:12px}.summary-table th,.summary-table td{padding:14px;border-bottom:1px solid var(--line)}.summary-table thead{background:#f2f6fa}.image-overlay{position:fixed;inset:0;z-index:100;background:#101c2bf5;display:flex;flex-direction:column;align-items:center;justify-content:center;padding:16px;gap:15px}.image-overlay img{max-width:100%;max-height:85dvh;object-fit:contain}.image-overlay button{align-self:flex-end}
h1,h2,h3,p,.tip,.hero-count span{word-break:keep-all;overflow-wrap:anywhere}.hero-count{min-width:72px}.hero>div:first-child{min-width:0}@media(max-width:600px){.btn{min-height:44px}.btn.small{min-height:36px}.hero{gap:12px}.hero h2{font-size:18px}.hero-count{min-width:64px}}
