:root{--bg:#f7f8fc;--ink:#24243b;--muted:#898ca1;--border:#eaebf3;--purple:#5546b7;--purple-dark:#403297;--violet-bg:#eceafb;--white:#fff;--shadow:0 5px 26px rgba(38,32,81,.035);font-family:-apple-system,BlinkMacSystemFont,"Segoe UI",Inter,Arial,sans-serif;color:var(--ink);background:var(--bg);font-synthesis:none}
*{box-sizing:border-box}html{scroll-behavior:smooth}body{margin:0;min-height:100vh;background:var(--bg)}button,input,textarea,select{font:inherit}button{cursor:pointer}button:disabled{opacity:.6;cursor:wait}a{color:var(--purple);text-decoration:none}a:hover{text-decoration:underline}.ico{flex-shrink:0}.muted{color:var(--muted)}.small{font-size:12px}.app-shell{min-height:100vh}.sidebar{position:fixed;left:0;top:0;bottom:0;width:260px;background:#fff;border-right:1px solid var(--border);padding:31px 18px 20px;display:flex;flex-direction:column;z-index:5}.brand{display:flex;gap:12px;align-items:center;padding-left:15px;margin-bottom:57px}.brand-symbol{height:43px;width:43px;display:grid;place-items:center;border-radius:14px;color:#f4d6aa;background:var(--purple);font-size:34px;font-weight:700}.brand-name{font-weight:800;font-size:23px;letter-spacing:-.9px;line-height:1}.brand-name span,.accent-dot{color:#a18ef7}.brand-sub{margin-top:4px;color:#a4a0bd;font-size:10px;font-weight:800;letter-spacing:2px}.side-caption{font-size:10px;letter-spacing:1.9px;color:#a9aabc;font-weight:800;margin:0 0 15px 15px}.nav-list{display:flex;flex-direction:column;gap:5px}.nav-item{display:flex;align-items:center;gap:14px;border:0;background:transparent;color:#77788e;border-radius:12px;min-height:47px;width:100%;text-align:left;padding:0 15px;font-size:13px;font-weight:650;transition:background .15s}.nav-item:hover{background:#f5f4fb;color:var(--purple)}.nav-item.active{background:#efedfc;color:#5745b8;font-weight:750}.tiny-circle{width:6px;height:6px;border-radius:50%;background:#d6c7fd;margin-left:auto}.sidebar-bottom{margin-top:auto}.device-mini{background:#f5f5fc;border-radius:15px;padding:13px 10px;display:flex;gap:10px;align-items:center}.device-mini-icon{height:34px;width:34px;display:grid;place-items:center;color:#7068b3;border-radius:10px;background:#e7e4fa}.device-mini strong{display:block;font-size:11px}.device-mini span{display:block;margin-top:4px;font-size:10px;color:#9694a8}.private-note{display:flex;align-items:center;gap:8px;font-size:11px;color:#b4b3c3;margin:20px 11px 0}.content-area{margin-left:260px;min-height:100vh;display:flex;flex-direction:column}.desktop-topbar{height:81px;padding:0 clamp(22px,4vw,54px);display:flex;align-items:center;justify-content:space-between;border-bottom:1px solid #eeeff4;background:rgba(255,255,255,.52)}.breadcrumb{font-size:12px;color:#a3a3b6;font-weight:650}.breadcrumb span{padding:0 12px;color:#cdccda}.topbar-right{display:flex;gap:16px;align-items:center}.lock-badge{color:#8e8ca7;display:flex;gap:5px;align-items:center;font-size:11px;font-weight:600}.avatar{display:grid;place-items:center;height:35px;width:35px;background:#e9e5fb;color:#6054af;border-radius:50%;font-weight:750;font-size:13px}.page-container{padding:45px clamp(20px,4vw,54px) 32px;max-width:1520px;width:100%;margin:0 auto;flex:1}.heading{display:flex;gap:16px;justify-content:space-between;align-items:center;margin-bottom:28px}.heading h1{font-size:clamp(25px,2.5vw,35px);letter-spacing:-1.35px;line-height:1.15;margin:8px 0 8px;font-weight:780}.heading p{color:#8b8ba0;margin:0;font-size:13px;line-height:1.65}.eyebrow{font-size:10px;color:#8b78cf;font-weight:850;letter-spacing:2px}.btn{display:inline-flex;align-items:center;justify-content:center;gap:9px;border-radius:11px;padding:12px 16px;border:1px solid transparent;font-size:12px;font-weight:770;white-space:nowrap;min-height:42px;box-shadow:none}.btn.primary,.primary-button{background:var(--purple);color:#fff;border-color:var(--purple)}.btn.primary:hover,.primary-button:hover{background:var(--purple-dark);text-decoration:none}.btn.outline{background:white;border-color:#e4e1f0;color:#63579f}.btn.outline:hover{background:#f8f7fd}.btn.full{width:100%}.stats-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:16px;margin-bottom:21px}.stat-card{min-height:188px;padding:21px 22px 16px;border-radius:17px;overflow:hidden;display:flex;flex-direction:column}.stat-card.violet{background:#ebe8fa}.stat-card.peach{background:#fcf0e8}.stat-card.mint{background:#e8f5f1}.stat-card.blue{background:#e8eef9}.stat-top{display:flex;align-items:center;gap:9px;font-size:12px;font-weight:800;color:#62569c}.peach .stat-top{color:#ab7952}.mint .stat-top{color:#4d9280}.blue .stat-top{color:#5e7ba7}.stat-value{font-size:clamp(26px,3vw,39px);letter-spacing:-1.6px;font-weight:800;margin:22px 0 0;color:#32324d;line-height:1.1}.stat-value span{font-size:15px;color:#9290a1;font-weight:600;letter-spacing:-.2px}.stat-value.small-value{font-size:18px;letter-spacing:-.3px;margin-top:28px}.stat-card p{font-size:11px;color:#78788f;margin:7px 0 0}.stat-foot{margin-top:auto;padding-top:17px;font-size:10px;color:#9192a6}.two-column{display:grid;grid-template-columns:1fr 1fr;gap:20px;margin-bottom:20px}.surface-card{background:#fff;border:1px solid #ececf3;border-radius:18px;box-shadow:var(--shadow);padding:23px 25px;min-width:0}.section-heading{display:flex;justify-content:space-between;gap:12px;align-items:start;margin-bottom:20px}.section-heading h2,.surface-card h2{font-size:16px;margin:0 0 6px;letter-spacing:-.35px;font-weight:780}.section-heading p{font-size:11px;color:#a2a1b1;margin:0;line-height:1.55}.text-button{border:0;display:inline-flex;align-items:center;gap:4px;background:transparent;color:var(--purple);font-size:11px;font-weight:800;white-space:nowrap;padding:3px}.text-button:hover{text-decoration:underline}.task-list{display:flex;flex-direction:column}.task-item{display:flex;align-items:center;gap:12px;border-bottom:1px solid #f0f0f5;padding:14px 0;min-height:63px}.task-item:first-child{padding-top:6px}.task-item:last-child{border-bottom:0}.task-check{height:20px;width:20px;flex:0 0 20px;border-radius:6px;border:1.5px solid #ceccdf;background:#fff;display:grid;place-items:center;color:white;padding:0}.task-check.checked{background:#7868ca;border-color:#7868ca}.task-description{min-width:0;flex:1}.task-title{font-size:12px;color:#3c3b52;font-weight:700;overflow-wrap:anywhere}.task-done .task-title{text-decoration:line-through;color:#adabbc}.task-meta{font-size:10px;color:#aaa9ba;margin-top:5px}.icon-button{border:0;background:transparent;color:#9b98af;padding:6px;display:grid;place-items:center;border-radius:8px}.icon-button:hover{background:#f5f3fc;color:var(--purple)}.task-delete{opacity:.7}.subtle-button{display:inline-flex;align-items:center;gap:8px;border:1px dashed #d9d4eb;background:#fbfaff;color:#6253ab;border-radius:10px;width:100%;justify-content:center;padding:12px 8px;margin-top:16px;font-size:12px;font-weight:750}.subtle-button:hover{background:#efedfa}.timeline{padding:1px 0 8px;min-height:160px}.timeline-item{display:grid;grid-template-columns:43px 11px 1fr;align-items:start;gap:13px;position:relative;min-height:56px}.timeline-time{font-size:11px;color:#9995ac;padding-top:5px;font-weight:650}.timeline-dot{background:#9a8add;height:10px;width:10px;border-radius:50%;margin-top:6px;position:relative;z-index:1}.timeline-item:not(:last-child) .timeline-dot:after{content:"";position:absolute;top:12px;left:4px;height:42px;width:1px;background:#e3def7}.timeline-body strong{display:block;font-size:12px;color:#393950}.timeline-body span{display:block;font-size:10px;color:#aaa9b9;margin-top:5px}.accent-card{background:#f1eefc;display:flex;gap:17px;align-items:start}.accent-card .accent-icon{background:#ded8fa;color:#6f5abf;padding:12px;border-radius:13px}.accent-card p{font-size:12px;color:#76708b;line-height:1.65;margin:5px 0 13px}.accent-card h2{font-size:16px;margin-top:3px}.hint{padding:13px;display:flex;gap:10px;align-items:flex-start;background:#f7f6fc;border-radius:11px;color:#88859f;font-size:11px;line-height:1.7}.hint .ico{color:#8f86ca}.pill{display:inline-flex;align-items:center;gap:5px;font-size:10px;font-weight:750;padding:7px 10px;border-radius:20px;white-space:nowrap;background:#f1f1f8;color:#827d9a}.pill.warning{background:#fff2e7;color:#b87949}.long-card{max-width:960px}.days-tabs{display:flex;gap:7px;border-bottom:1px solid var(--border);padding-bottom:17px;margin-bottom:14px;overflow-x:auto}.day-tab{background:#f6f5fa;border:0;padding:10px 12px;border-radius:9px;white-space:nowrap;font-size:11px;color:#79778e;font-weight:750}.day-tab.active{color:#fff;background:var(--purple)}.lesson-row{display:flex;gap:14px;align-items:center;padding:17px 6px;border-bottom:1px solid var(--border)}.lesson-index{height:27px;width:27px;border-radius:9px;background:#eeebfa;color:var(--purple);display:grid;place-items:center;font-size:11px;font-weight:800}.lesson-time{color:#9694a8;font-size:12px;min-width:53px}.lesson-name{flex:1;display:flex;flex-direction:column;gap:6px}.lesson-name strong{font-size:13px}.lesson-name span{font-size:11px;color:#a3a1b2}.empty-state{font-size:12px;color:#9c99ae;text-align:center;padding:45px 14px}.empty-state.larger{display:flex;align-items:center;flex-direction:column;gap:9px}.empty-state h3{margin:3px 0 0;color:#4b4964;font-size:15px}.empty-state p{margin:0;color:#a09caf}.form-stack{display:flex;flex-direction:column;gap:19px}.field{display:flex;flex-direction:column;gap:9px;color:#55536e;font-size:12px;font-weight:720}.field span{display:flex;align-items:center;gap:5px}.field input,.field textarea,.field select,.setup-form input{background:#fff;border:1px solid #dfdeec;outline:0;border-radius:10px;min-height:43px;padding:11px 13px;font-size:13px;color:#35334f;width:100%;transition:border .15s}.field input:focus,.field textarea:focus,.field select:focus,.setup-form input:focus{border-color:#907cd4;box-shadow:0 0 0 3px #eee9fa}.field input[type=range]{padding:8px 0;border:0;accent-color:var(--purple)}.field textarea{resize:vertical}.form-two{display:grid;grid-template-columns:1fr 1fr;gap:14px}.switch-row{display:flex;align-items:center;justify-content:space-between;gap:15px;padding:0 0 17px;border-bottom:1px solid var(--border)}.switch-row strong{display:block;font-size:12px}.switch-row small{display:block;margin-top:6px;color:#9996aa;font-size:11px;line-height:1.5}.switch-row input{appearance:none;position:relative;background:#d8d6e3;width:38px;height:23px;border-radius:20px;flex:0 0 38px;outline:0;cursor:pointer;transition:background .15s}.switch-row input:after{content:"";position:absolute;top:3px;left:3px;height:17px;width:17px;border-radius:50%;background:#fff;box-shadow:0 2px 5px #3332;transition:left .15s}.switch-row input:checked{background:#7161c8}.switch-row input:checked:after{left:18px}.weekday-pickers{display:flex;gap:7px}.weekday-pick{cursor:pointer}.weekday-pick input{position:absolute;opacity:0;pointer-events:none}.weekday-pick span{display:grid;place-items:center;border:1px solid #e8e5f0;border-radius:10px;width:35px;height:35px;font-size:11px;color:#918ca7;background:#fff;font-weight:700}.weekday-pick input:checked+span{background:#e8e3fa;color:var(--purple);border-color:#c3b7f0}.weekday-pick input:focus-visible+span{outline:2px solid var(--purple);outline-offset:2px}.morning-steps{display:flex;flex-direction:column;gap:23px;margin:30px 0}.morning-step{display:flex;align-items:flex-start;gap:16px}.morning-step>span{font-size:12px;color:#7767c2;background:#eeeafa;border-radius:10px;padding:9px;font-weight:800}.morning-step strong{font-size:12px}.morning-step p{font-size:11px;color:#9d9baf;margin:7px 0 0}.speech-box{padding:10px 0 25px;display:flex;flex-direction:column;gap:13px}.speech{max-width:85%;padding:15px 17px;border-radius:16px;font-size:12px;line-height:1.7}.speech.user{align-self:flex-end;background:#ebe8fa;color:#4e418f;border-bottom-right-radius:3px}.speech.agent{align-self:flex-start;background:#f2f3f7;color:#66647a;border-bottom-left-radius:3px}.safety-box{display:flex;gap:12px;background:#f0f8f4;border-radius:12px;color:#58957a;padding:16px}.safety-box strong{font-size:12px}.safety-box p{color:#789184;font-size:11px;line-height:1.7;margin:6px 0 0}.settings-info{display:flex;justify-content:space-between;gap:12px;padding:15px 0;border-bottom:1px solid var(--border);font-size:11px;color:#9693a8}.settings-info strong{color:#49475f}.logout-row{margin-top:20px}.demo-banner{background:#fff7e7;border:1px solid #f3e6bd;color:#8e6d35;border-radius:12px;display:flex;align-items:center;gap:4px;font-size:11px;padding:12px 15px;margin-bottom:20px;flex-wrap:wrap}.demo-banner svg{margin-right:4px}.mobile-topbar,.mobile-bottom{display:none}.main-footer{font-size:10px;color:#bebccd;text-align:center;padding:0 20px 20px}.modal-overlay{position:fixed;inset:0;z-index:50;background:#15112482;display:flex;align-items:center;justify-content:center;padding:16px}.modal-card{max-width:480px;width:100%;background:#fff;border-radius:22px;box-shadow:0 20px 90px #1115;padding:28px}.modal-heading{display:flex;justify-content:space-between;align-items:start;margin-bottom:24px}.modal-heading h2{margin:9px 0 0;font-size:23px}.modal-actions{display:flex;gap:10px;justify-content:flex-end;margin-top:9px}.toast{position:fixed;bottom:23px;right:24px;z-index:70;background:#322b62;color:white;font-size:12px;border-radius:12px;padding:13px 19px;box-shadow:0 10px 40px #26205b28;opacity:0;transform:translateY(15px);pointer-events:none;transition:all .2s}.toast.show{opacity:1;transform:translateY(0)}.toast.toast-error{background:#a34348}.initial-loader{display:grid;place-items:center;gap:12px;color:var(--purple);height:80vh;font-size:34px}.initial-loader span{font-size:12px;color:var(--muted)}.error-full{max-width:460px;margin:15vh auto;padding:30px;text-align:center;color:#6c6489}.error-full h2{color:#373150}.error-full p{line-height:1.7}.login-layout{display:grid;grid-template-columns:1fr 1fr;min-height:100vh}.login-panel{background:var(--purple);color:white;display:flex;flex-direction:column;align-items:flex-start;justify-content:center;padding:10vw}.login-logo{font-size:50px;color:#fbdc9f;margin-bottom:55px}.login-panel .eyebrow{color:#c1b9ff}.login-panel h1{font-size:clamp(38px,5vw,75px);letter-spacing:-3px;line-height:1.02;margin:15px 0}.login-panel p{font-size:15px;color:#dfdafa;line-height:1.9;max-width:370px}.login-detail{display:flex;align-items:center;gap:10px;font-size:11px;color:#cfc8fb;margin-top:70px}.login-form-panel{display:grid;place-items:center;padding:24px}.login-box{max-width:375px;width:100%}.login-box h2{font-size:32px;margin:9px 0 3px}.login-box p{font-size:13px;margin:8px 0 30px}.login-box .btn{margin-top:22px}.login-note{color:#9996ac;text-align:center;font-size:11px!important}.setup-body{display:grid;place-items:center;min-height:100vh;padding:30px}.setup-card{width:min(100%,480px);background:#fff;padding:35px;border:1px solid var(--border);border-radius:22px;box-shadow:var(--shadow)}.setup-card h1{font-size:30px;margin:12px 0 0}.setup-card>.muted{font-size:13px;margin-bottom:25px;line-height:1.5}.setup-card .brand-mark{display:grid;place-items:center;background:var(--purple);color:#ffda9d;border-radius:14px;font-size:29px;height:45px;width:45px}.setup-form{display:flex;flex-direction:column;gap:16px}.setup-form label{display:flex;flex-direction:column;gap:7px;font-size:12px;font-weight:700}.setup-form small{color:var(--muted);font-size:11px;font-weight:400}.primary-button{display:inline-flex;align-items:center;justify-content:center;text-align:center;border:0;border-radius:11px;padding:13px 17px;font-weight:700;cursor:pointer}.notice{padding:14px;font-size:12px;line-height:1.6;border-radius:10px;margin:20px 0}.notice.good{background:#ebf8f1;color:#317758}.notice.danger{background:#fff1ee;color:#a43e3e}
@media(max-width:1240px){.stats-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.stat-card{min-height:165px}.stat-value{margin-top:15px}.two-column{gap:15px}.surface-card{padding:20px}}
@media(max-width:880px){.sidebar{width:215px}.content-area{margin-left:215px}.page-container{padding:28px 23px}.desktop-topbar{padding:0 23px}.two-column{grid-template-columns:1fr}.stats-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.login-panel{padding:6vw}}
@media(max-width:690px){.sidebar,.desktop-topbar{display:none}.content-area{margin-left:0}.mobile-topbar{height:66px;background:#fff;display:flex;justify-content:space-between;align-items:center;padding:0 19px;border-bottom:1px solid var(--border)}.mobile-brand{font-weight:850;font-size:19px;letter-spacing:-.7px}.mobile-brand>span:first-child{color:var(--purple);font-size:28px;margin-right:9px;vertical-align:middle}.page-container{padding:25px 17px 110px}.heading{align-items:flex-start}.heading h1{font-size:27px;letter-spacing:-.7px}.heading p{font-size:12px}.heading .btn{padding:10px;min-height:38px;font-size:11px}.heading .btn .ico{width:15px}.stats-grid{gap:10px;margin-bottom:12px}.stat-card{min-height:155px;padding:17px}.stat-top{font-size:11px;gap:5px}.stat-top .ico{width:17px}.stat-value{font-size:30px;margin-top:19px}.stat-value.small-value{font-size:15px}.stat-card p,.stat-foot{font-size:10px}.two-column{gap:12px}.surface-card{padding:19px}.mobile-bottom{display:flex;position:fixed;bottom:0;left:0;right:0;height:calc(68px + env(safe-area-inset-bottom));padding-bottom:env(safe-area-inset-bottom);background:#fff;border-top:1px solid var(--border);z-index:20;justify-content:space-around;box-shadow:0 -7px 30px #15152b08}.mobile-nav-item{display:flex;flex-direction:column;gap:4px;align-items:center;justify-content:center;background:none;border:0;color:#a6a3b5;font-size:9px;font-weight:700;min-width:55px}.mobile-nav-item.active{color:var(--purple)}.main-footer{display:none}.modal-card{padding:22px;border-radius:18px}.login-layout{grid-template-columns:1fr}.login-panel{min-height:230px;padding:30px}.login-logo{font-size:32px;margin-bottom:10px}.login-panel h1{font-size:37px;letter-spacing:-1.2px}.login-panel p{font-size:12px;margin:5px 0}.login-detail{display:none}.login-form-panel{padding:45px 25px}.login-box h2{font-size:26px}.toast{bottom:85px;left:15px;right:15px;text-align:center}.form-two{gap:9px}}
@media(max-width:380px){.heading{flex-wrap:wrap}.heading .btn{margin-left:auto}.stat-card{padding:13px}.stat-top{font-size:10px}.stats-grid{gap:8px}.day-tab{padding:8px}.weekday-pickers{gap:4px}.weekday-pick span{width:32px;height:33px}}

/* 0.2 — tabela lekcji, jednorazowe nakładki i edytor dzwonków */
.schedule-switch{display:flex;gap:7px;background:#eeedf6;padding:6px;border-radius:13px;margin:8px 0 16px;width:fit-content;max-width:100%;flex-wrap:wrap}
.schedule-switch button{display:flex;gap:7px;align-items:center;border:0;background:transparent;padding:11px 15px;color:#706c87;border-radius:10px;font-size:12px;font-weight:750;white-space:nowrap}
.schedule-switch button.chosen{background:#fff;color:#5546b7;box-shadow:0 3px 14px #312a6315}
.schedule-table-clip{width:100%;overflow-x:auto;-webkit-overflow-scrolling:touch;margin:18px 0}
.schedule-table{width:100%;min-width:530px;border-collapse:collapse;font-size:12px;text-align:left}
.schedule-table th{background:#f7f7fb;color:#9593a5;padding:12px 10px;font-size:10px;text-transform:uppercase;letter-spacing:.05em}
.schedule-table th:first-child{border-radius:8px 0 0 8px}.schedule-table th:last-child{border-radius:0 8px 8px 0}
.schedule-table td{padding:14px 10px;border-bottom:1px solid #eeedf5;vertical-align:middle;color:#5c5870}
.schedule-num{font-weight:850;color:#5f4fba!important;width:46px}.schedule-hours{font-variant-numeric:tabular-nums;white-space:nowrap;color:#7e7892!important}
.schedule-subject strong{color:#342f50;font-size:12px}.schedule-subject small{display:block;color:#998cae;margin-top:7px;font-size:10px;line-height:1.5}
.schedule-changed{background:#f8f4ff}.schedule-changed td{border-bottom-color:#eae2fa}.change-tag,.baseline-tag{display:inline-block;border-radius:14px;padding:5px 8px;font-size:10px;font-weight:750;white-space:nowrap}
.change-tag{background:#e9dcff;color:#5945aa}.baseline-tag{background:#f0f1f5;color:#a2a0ae}
.mini-btn{padding:7px 9px!important;min-height:30px!important;gap:5px!important;font-size:10px!important}
.date-field{max-width:300px;margin:18px 0}.date-context{display:flex;gap:6px;flex-direction:column;padding:14px 17px;background:#f1effb;border-radius:10px;color:#514690;font-size:13px}
.date-context span{color:#8a81a7;font-size:11px}.danger-outline{color:#9e5172!important;border-color:#e7cfdc!important;margin-top:10px}
.bell-card{margin-top:16px}.bell-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(195px,1fr));gap:10px;margin:20px 0}
.bell-edit{border:1px solid #eeedf4;border-radius:12px;padding:12px;display:flex;flex-direction:column;gap:9px}
.bell-edit strong{font-size:12px;color:#594f81}.bell-edit label{display:flex;gap:8px;align-items:center;font-size:11px;color:#938ea6}
.bell-edit input{margin-left:auto;border:1px solid #dedbea;border-radius:7px;padding:7px;font-size:12px;max-width:120px}
.bell-summary{display:flex;flex-wrap:wrap;gap:8px;margin-top:14px}.bell-summary span{font-size:11px;background:#f7f6fa;color:#77728f;padding:8px 11px;border-radius:8px}
.light-heading{font-size:13px;color:#88809e;font-weight:500;white-space:nowrap}.modal-muted{font-size:12px;color:#726b8d;line-height:1.8;margin-top:-10px;margin-bottom:16px}
@media(max-width:690px){.schedule-switch{width:100%;display:grid;grid-template-columns:1fr 1fr}.schedule-switch button{font-size:11px;padding:11px 8px;justify-content:center;white-space:normal;text-align:center}.schedule-switch svg{flex:0 0 auto}.bell-grid{grid-template-columns:1fr 1fr;gap:7px}.bell-edit{padding:9px}.bell-edit label{flex-wrap:wrap}.bell-edit input{max-width:100%}.date-field{max-width:100%}}
@media(max-width:390px){.bell-grid{grid-template-columns:1fr}}

/* Tygodniowa tabela — domyślny widok na MacBooku */
.week-overview{margin:18px 0 24px;border-bottom:1px solid #eeedf4;padding-bottom:20px}.week-overview .section-heading{margin-bottom:12px}
.week-scroll{overflow-x:auto;-webkit-overflow-scrolling:touch}.week-grid{border-collapse:separate;border-spacing:0;width:100%;min-width:680px;table-layout:fixed;font-size:11px}
.week-grid th{background:#f4f2f9;padding:11px 8px;color:#807c9a;font-weight:800}.week-grid thead th:first-child{width:116px;border-radius:9px 0 0 0}
.week-grid tbody th{text-align:left;border-bottom:1px solid #ecebf3;padding:11px 8px;background:#faf9fc;font-size:11px;color:#5546b7;white-space:nowrap}
.week-grid tbody th strong{display:block;font-size:13px}.week-grid tbody th span{display:block;color:#9a97a8;margin-top:5px;font-size:10px;font-weight:500}
.week-grid td{border-right:1px solid #f3f1f8;border-bottom:1px solid #f0eef6;padding:3px;vertical-align:stretch}
.week-grid .week-active-head{background:#eae5fb;color:#5546b7}.week-grid .week-active-col{background:#faf8ff}
.week-cell{border:1px solid transparent;border-radius:8px;background:transparent;width:100%;height:100%;min-height:49px;display:flex;flex-direction:column;justify-content:center;align-items:flex-start;text-align:left;padding:7px 8px;color:#aaa6b5;font-weight:600;font-size:11px}
.week-cell.filled{background:#f0edfa;color:#4e419d}.week-cell strong{overflow-wrap:anywhere}.week-cell small{display:block;margin-top:4px;font-size:9px;font-weight:500;color:#9489ae}.week-cell:hover,.week-cell:focus-visible{border-color:#9787d8;outline:0;background:#e9e4fa}
.day-editor-label h3{font-size:15px;margin:0 0 6px}.day-editor-label p{font-size:11px;color:#9995a8;margin:0 0 14px}.mobile-room{display:none!important}
@media(max-width:690px){.week-overview{display:none}.schedule-table{min-width:315px}.schedule-table th:nth-child(4),.schedule-table td:nth-child(4){display:none}.schedule-table td,.schedule-table th{padding:10px 5px}.schedule-table td:first-child{padding-left:7px}.schedule-table th:nth-child(2){min-width:92px}.schedule-hours{font-size:11px}.schedule-subject strong{font-size:11px}.schedule-table .mini-btn{padding:7px!important}.schedule-table .mini-btn svg{display:none}.mobile-room{display:block!important;color:#a39ab5!important}.day-editor-label{margin-top:12px}}

/* v0.4 — przedmioty i oznaczenia książek */
.schedule-switch{width:100%}.schedule-switch button{flex:1;justify-content:center}
.pack-legend{display:flex;align-items:center;gap:9px;font-size:11px;color:#8b6b26;padding:7px 0 4px}
.pack-legend-swatch{width:16px;height:16px;border-radius:5px;background:#fff0cd;border:1px solid #f0d297;display:inline-block}
.schedule-table tr.needs-books td{background:#fffaed;border-bottom-color:#f4dfaa}
.schedule-table tr.needs-books .schedule-subject strong{color:#855508}
.schedule-table tr.schedule-changed.needs-books td{background:#fff6e5}
.pack-tag{display:inline-flex!important;align-items:center;gap:5px;margin-top:7px!important;color:#98620c!important;font-size:10px!important;font-weight:750}
.week-cell.filled.needs-books{background:#fff0cd;color:#855508;border-color:#f4dba1}
.week-cell.filled.needs-books small{color:#996c26}
.timeline-books .timeline-body{background:#fff7e7;border-left:3px solid #edc36e;border-radius:6px;padding:5px 9px}
.subject-catalog{display:grid;gap:10px;margin:18px 0}
.subject-row{padding:14px 16px;border:1px solid #e9e6f0;border-radius:12px;display:flex;align-items:center;justify-content:space-between;gap:10px;background:#fff}
.subject-row.subject-row-books{background:#fff9ea;border-color:#f1dbad}
.subject-row strong{font-size:13px;color:#403c56}.subject-row small{display:block;font-size:11px;margin-top:6px;color:#9994aa}.subject-row-books small{color:#936a24}
.subject-buttons{display:flex;gap:6px;align-items:center}.subject-buttons .btn{white-space:nowrap}
@media(max-width:690px){.schedule-switch{display:flex;flex-wrap:wrap}.schedule-switch button{flex:1 1 32%;min-width:0;font-size:10px;gap:4px;padding:10px 5px}.schedule-switch svg{width:14px;height:14px}.subject-row{align-items:flex-start}.subject-buttons{flex-direction:column}.subject-buttons .btn{width:100%}.schedule-table tr.needs-books td{background:#fffaed}}

/* v0.5 — pastelowy roz i ikonki książek bez napisu */
.pack-legend{color:#925772}
.pack-legend-swatch{background:#ffe6ef;border-color:#edb6ca}
.schedule-table tr.needs-books td{background:#fff0f6;border-bottom-color:#f7d5e1}
.schedule-table tr.needs-books .schedule-subject strong{color:#874667}
.schedule-table tr.schedule-changed.needs-books td{background:#ffeaf3}
.pack-tag{font-size:15px!important;color:#955976!important;margin-top:5px!important;line-height:1.1}
.week-cell.filled.needs-books{background:#ffe6ef;color:#874667;border-color:#f0bfd1}
.week-cell.filled.needs-books small{color:#965c77;font-size:14px;line-height:1.1}
.timeline-books .timeline-body{background:#fff0f6;border-left-color:#e9a9c2}
.subject-row.subject-row-books{background:#fff0f6;border-color:#f4cad9}
.subject-row-books small{color:#995676;font-size:17px;line-height:1.1}
.book-icon{font-size:14px!important;line-height:1!important;display:inline-block!important;width:auto!important}
/* v0.5 — nawigacja wsteczna dla podstron, mobilnie i na komputerze */
.page-back-row{margin:-16px 0 22px;display:flex;justify-content:flex-start}
.page-back-btn{display:inline-flex;gap:9px;align-items:center;border:1px solid #e4dff0;border-radius:10px;background:#fff;color:#5c51a1;padding:10px 14px;font-size:12px;font-weight:750;min-height:42px;transition:background .15s,border-color .15s}
.page-back-btn:hover{background:#f2eefd;border-color:#b3a5df}
.page-back-btn:focus-visible{outline:3px solid #a79cdb;outline-offset:2px}
@media(max-width:690px){.schedule-table tr.needs-books td{background:#fff0f6}.page-back-row{margin:-17px 0 17px}.page-back-btn{min-height:44px}}
