:root{font-family:DM Sans,Noto Sans Arabic,system-ui,sans-serif;color:#142742;background:#f3f6fa;font-synthesis:none}*{box-sizing:border-box}body{margin:0;min-width:320px}button,input,select{font:inherit}button{cursor:pointer}button:disabled{cursor:not-allowed}button:focus-visible,input:focus-visible,select:focus-visible{outline:3px solid #69a9db;outline-offset:2px}html[data-theme=dark]{color-scheme:dark;--surface:#15243b;--surface2:#1d304b;--background:#0d192a;--text:#eaf2fb;--muted:#a8bbd1;--line:#344861;--nav:#12243d;--subtle:#253b55}html[data-theme=light]{color-scheme:light;--surface:#fff;--surface2:#f4f7fb;--background:#f3f6fa;--text:#142742;--muted:#6c7e92;--line:#e0e7f0;--nav:#fff;--subtle:#eef3f8}body{background:var(--background);color:var(--text)}.app-shell{max-width:1220px;min-height:100vh;margin:auto;padding-bottom:calc(95px + env(safe-area-inset-bottom))}.app-header{height:78px;display:flex;align-items:center;gap:14px;background:#0b2a58;color:#fff;padding:9px max(20px,env(safe-area-inset-left));box-shadow:0 5px 20px #0b2a5820}.app-header img{width:52px;height:52px;object-fit:contain;border-radius:50%}.app-header div{min-width:0;flex:1;display:flex;flex-direction:column;gap:2px}.app-header strong{font-size:19px;letter-spacing:.1px}.app-header small{font-size:12px;color:#d5e2f5;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.header-shift{min-width:42px;max-width:130px;text-align:center;padding:9px 12px;border-radius:12px;font-weight:800;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.app-shell main{padding:25px 22px 35px;max-width:1140px;margin:auto}.page-heading{display:flex;justify-content:space-between;align-items:center;gap:10px;margin-bottom:20px}.page-heading h1{font-size:clamp(27px,4vw,37px);margin:2px 0;font-weight:800}.eyebrow{font-size:12px;font-weight:800;text-transform:uppercase;letter-spacing:.13em;color:#3975a9;margin:0}.page-heading svg{color:#5b7999}.subtle{border:0;background:var(--subtle);color:var(--text);border-radius:11px;padding:10px 17px;font-weight:700}.toolbar{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:16px}.segmented{display:flex;border:1px solid var(--line);background:var(--surface2);padding:4px;border-radius:13px;gap:3px}.segmented button{flex:1;border:0;background:transparent;color:var(--muted);padding:10px 18px;border-radius:9px;font-weight:800;min-height:43px;white-space:nowrap}.segmented button.active{background:#0b2a58;color:#fff;box-shadow:0 3px 8px #0b2a5820}.segmented.small button{padding:8px 13px;font-size:13px;min-height:39px}.nav-arrows{display:flex;gap:8px}.nav-arrows button,.icon-action{width:42px;height:42px;display:grid;place-items:center;background:var(--surface);border:1px solid var(--line);border-radius:11px;color:var(--text)}.nav-arrows svg{width:19px}.month{background:var(--surface);border:1px solid var(--line);border-radius:20px;padding:16px;box-shadow:0 6px 25px #0b2a5809}.weekdays,.day-grid{display:grid;grid-template-columns:repeat(7,minmax(0,1fr));gap:6px}.weekdays{padding:0 0 11px}.weekdays span{text-align:center;font-size:12px;color:var(--muted);font-weight:800;overflow:hidden;white-space:nowrap}.day{position:relative;min-width:0;min-height:90px;border:1px solid transparent;border-radius:12px;padding:10px 5px;display:flex;align-items:flex-start;flex-direction:column;gap:7px;background:var(--day-color);color:var(--day-text);text-align:start;overflow:hidden}.day.outside{opacity:.28}.day.selected{border-color:#0b2a58;box-shadow:0 0 0 2px #0b2a58;z-index:1}.date-number{font-size:21px;font-weight:800;line-height:1.1;position:relative;z-index:1;min-width:29px;text-align:center}.day-label{font-size:12px;font-weight:800;line-height:1.15;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;max-width:100%;position:relative;z-index:1}.today-marker.circle .date-number{background:var(--marker-color);color:var(--marker-text);border-radius:50%;width:31px;height:31px;display:grid;place-items:center;margin:-5px 0 -4px -2px}.today-marker.outline .date-number{outline:3px solid var(--marker-color);outline-offset:2px;border-radius:50%}.today-marker.star .date-number:after{content:"★";position:absolute;font-size:12px;color:var(--marker-color);top:-7px;right:-12px}.holiday-dot{position:absolute;top:10px;right:9px;width:9px;height:9px;border-radius:50%;background:var(--holiday-color);box-shadow:0 0 0 2px #fff}.legend{display:flex;flex-wrap:wrap;gap:10px 16px;margin:17px 2px 24px}.legend span{display:inline-flex;align-items:center;gap:6px;font-size:12px;font-weight:700;color:var(--muted)}.legend i{display:block;width:12px;height:12px;border-radius:4px}.legend i.dot{border-radius:50%}.info-card,.settings-card{background:var(--surface);border:1px solid var(--line);border-radius:18px;padding:19px 22px;margin-bottom:17px;box-shadow:0 5px 20px #0b2a5808}.info-card h2,.settings-card h2{font-size:19px;margin:5px 0 16px}.info-card h3,.settings-card h3{font-size:16px;margin:0 0 12px}.info-row{display:flex;justify-content:space-between;gap:15px;padding:11px 0;border-top:1px solid var(--line);font-size:14px}.info-row span{color:var(--muted)}.info-row strong{text-align:end}.detail-badge{display:inline-block;border-radius:9px;padding:8px 12px;font-size:13px;font-weight:800;margin:2px 0 14px}.holiday-line{display:flex;gap:8px;align-items:center;font-weight:700;margin:12px 0 0}.holiday-line span{width:10px;height:10px;border-radius:50%}.holiday-line em{font-size:11px;color:var(--muted)}.export-row{display:flex;gap:10px;margin-top:8px}.export-row button,.secondary,.action-list button{display:inline-flex;align-items:center;justify-content:center;gap:9px;background:var(--surface);color:var(--text);border:1px solid var(--line);border-radius:11px;padding:11px 14px;font-weight:800;min-height:45px}.export-row button{flex:1}.annual-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px}.month.compact{padding:11px;border-radius:15px}.month.compact h3{text-align:center;font-size:15px;margin:2px 0 14px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.month.compact .weekdays,.month.compact .day-grid{gap:2px}.month.compact .weekdays span{font-size:9px}.month.compact .day{min-height:43px;padding:4px 3px;border-radius:5px;gap:1px}.month.compact .date-number{font-size:11px;min-width:17px}.month.compact .day-label{font-size:8px}.month.compact .holiday-dot{width:5px;height:5px;top:3px;right:3px;box-shadow:none}.month.compact .today-marker.circle .date-number{width:18px;height:18px;margin:-3px 0 -2px -2px}.month.compact .today-marker.star .date-number:after{font-size:8px;top:-4px;right:-5px}.status-hero{background:#0b2a58;color:#fff;border-radius:23px;padding:30px;text-align:center;position:relative;margin-bottom:18px;overflow:hidden}.status-hero.working{background:#096b77}.status-hero p{margin:0 0 4px;opacity:.75;font-size:14px}.status-hero h2{font-size:29px;margin:0 0 24px}.status-pulse{position:absolute;top:26px;right:26px;width:12px;height:12px;border-radius:50%;background:#90aacc}.working .status-pulse{background:#74e5ba;box-shadow:0 0 0 5px #74e5ba35}.countdown-label{font-size:13px;opacity:.75}.countdown{font-size:clamp(34px,8vw,58px);font-weight:800;font-variant-numeric:tabular-nums;letter-spacing:.05em}.hint{font-size:13px;line-height:1.6;color:var(--muted);margin:8px 0 14px}.error{font-size:13px;color:#d63b51}.settings-card label,.setup-card label,.modal label{display:flex;flex-direction:column;gap:7px;font-size:13px;font-weight:800;margin:14px 0;color:var(--text)}input:not([type=color]):not([type=checkbox]),select{width:100%;height:45px;border:1px solid var(--line);border-radius:10px;background:var(--surface2);color:var(--text);padding:8px 12px;min-width:0}input[type=color]{width:44px;height:40px;border:1px solid var(--line);border-radius:9px;background:var(--surface);padding:3px;cursor:pointer}.name-color{display:flex;align-items:end;gap:12px}.name-color label{flex:1;margin:8px 0}.name-color input[type=color]{margin-bottom:3px}.color-field{flex-direction:row!important;align-items:center;justify-content:space-between}.color-field span{display:flex;align-items:center;gap:8px}.color-field code{color:var(--muted);font-size:12px}.text-action{display:inline-flex;align-items:center;gap:7px;border:0;background:none;color:#2b6a9e;font-weight:800;padding:10px 0}.section-heading{display:flex;align-items:center;justify-content:space-between}.section-heading h2{margin:0}.schedule-item{display:flex;align-items:center;gap:8px;padding:11px 0;border-top:1px solid var(--line)}.schedule-item div{flex:1;min-width:0}.schedule-item strong,.schedule-item small{display:block;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.schedule-item small{font-size:12px;color:var(--muted);margin-top:4px}.schedule-item button{width:35px;height:35px;border:0;background:var(--subtle);color:var(--text);border-radius:9px;display:grid;place-items:center}.toggle-line{flex-direction:row!important;justify-content:space-between;align-items:center}.toggle-line input{width:21px;height:21px;accent-color:#0b2a58}.action-list{display:grid;grid-template-columns:repeat(2,1fr);gap:9px}.action-list button{justify-content:flex-start;text-align:start}.danger{display:flex;gap:8px;align-items:center;border:1px solid #e5aab2;color:#b62b40;background:transparent;border-radius:10px;padding:11px 14px;font-weight:800}.wide{width:100%;justify-content:center}.primary{display:inline-flex;align-items:center;justify-content:center;gap:8px;background:#0b2a58;color:#fff;border:1px solid #0b2a58;border-radius:11px;padding:12px 18px;font-weight:800;min-height:47px}.link{background:none;border:0;color:#276b9d;padding:12px;font-weight:800}.setup-shell{min-height:100vh;display:grid;place-items:center;padding:24px;background:linear-gradient(145deg,#0b2a58,#22659a 55%,#f3f6fa 55%)}.setup-card{width:min(100%,470px);background:var(--surface);padding:32px;border-radius:24px;box-shadow:0 25px 70px #071c3c43}.setup-logo{display:block;width:100px;height:100px;object-fit:contain;margin:0 auto 15px}.setup-card h1{text-align:center;font-size:28px;margin:0;color:var(--text)}.setup-card h2{text-align:center;font-size:19px;margin:8px 0}.setup-card p{text-align:center;color:var(--muted);font-size:14px;line-height:1.6}.setup-card .segmented{margin-top:2px}.bottom-nav{position:fixed;bottom:0;left:0;right:0;z-index:10;background:var(--nav);border-top:1px solid var(--line);display:flex;justify-content:center;padding:7px max(8px,env(safe-area-inset-right)) calc(7px + env(safe-area-inset-bottom));box-shadow:0 -6px 20px #0b2a580b}.bottom-nav button{background:none;border:0;color:var(--muted);display:flex;flex-direction:column;align-items:center;justify-content:center;gap:3px;min-height:56px;min-width:72px;max-width:130px;flex:1;font-weight:800;font-size:11px;border-radius:11px}.bottom-nav button.active{color:#0b5a98;background:var(--subtle)}.bottom-nav svg{width:22px;height:22px}.toast{position:fixed;z-index:30;bottom:calc(88px + env(safe-area-inset-bottom));left:50%;transform:translate(-50%);background:#0b2a58;color:#fff;padding:11px 16px;border-radius:10px;box-shadow:0 8px 30px #0003;font-size:13px;max-width:calc(100vw - 30px);text-align:center}.modal-backdrop{position:fixed;inset:0;background:#06182b9c;z-index:20;display:grid;place-items:center;padding:15px}.modal{background:var(--surface);color:var(--text);border-radius:20px;padding:23px;width:min(100%,520px);max-height:calc(100dvh - 30px);overflow:auto;box-shadow:0 20px 60px #0004}.modal .section-heading{margin-bottom:14px}.modal-actions{display:flex;justify-content:flex-end;gap:9px;margin-top:15px}.modal-actions button:not(.primary){background:var(--subtle);border:0;border-radius:10px;color:var(--text);font-weight:800;padding:10px 17px}.two-col{display:grid;grid-template-columns:1fr 1fr;gap:10px}.preview-list{background:var(--surface2);padding:5px 15px;border-radius:10px}.preview-list p{display:flex;justify-content:space-between;gap:15px;font-size:13px}.preview-list strong{text-align:end}@media(max-width:800px){.annual-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.app-shell main{padding:22px 15px 30px}}@media(max-width:530px){.app-header{height:71px;padding-inline:14px}.app-header img{width:46px;height:46px}.app-header strong{font-size:17px}.app-shell main{padding:21px 13px 28px}.month{padding:8px;border-radius:15px}.weekdays,.day-grid{gap:3px}.day{min-height:70px;padding:7px 3px;border-radius:8px;gap:5px}.date-number{font-size:17px;min-width:23px}.day-label{font-size:9px}.holiday-dot{width:7px;height:7px;top:6px;right:5px}.today-marker.circle .date-number{width:26px;height:26px;margin:-4px 0 -3px -2px}.annual-grid{gap:8px}.month.compact{padding:5px}.month.compact .day{min-height:35px;padding:2px;gap:0}.month.compact .date-number{font-size:10px}.month.compact .day-label{font-size:7px}.month.compact h3{font-size:13px}.month.compact .weekdays span{font-size:7px}.action-list{grid-template-columns:1fr}.info-row{font-size:12px}.status-hero{padding:28px 18px}.settings-card,.info-card{padding:17px}.two-col{gap:7px}}@media(max-width:370px){.day{min-height:62px}.day-label{font-size:8px}.segmented.small button{font-size:11px;padding:7px 9px}.bottom-nav button{min-width:0;font-size:10px}.month.compact .day-label{display:none}.month.compact .day{min-height:26px}}@media print{body{background:#fff!important;color:#000!important}.app-header,.bottom-nav,.toolbar,.export-row,.subtle,.page-heading svg,.settings-card,.status-hero,.hint,.toast{display:none!important}.app-shell{padding:0;max-width:none}.app-shell main{padding:5mm}.month{box-shadow:none;border:0;break-inside:avoid}.annual-grid{grid-template-columns:repeat(3,1fr);gap:5mm}.info-card{break-inside:avoid}button.day{print-color-adjust:exact;-webkit-print-color-adjust:exact}.page-heading{margin:0 0 5mm}h1{font-size:20pt!important}}.print-header{display:none}@media print{.print-header{display:flex;align-items:center;gap:6mm;margin-bottom:5mm;border-bottom:1px solid #dce5ef;padding-bottom:4mm}.print-header img{width:22mm;height:22mm;object-fit:contain}.print-header h1{margin:0!important;font-size:19pt!important}.print-header p{margin:1mm 0;font-size:9pt}.print-header p:last-child{color:#526273}}
