:root{font-family:Inter,'Segoe UI',system-ui,sans-serif;color-scheme:light;--bg:#f5f7fb;--surface:#fff;--surface2:#f8f9fc;--text:#182230;--muted:#7b8496;--line:#e7eaf1;--brand:#5b5ce2;--brand-soft:#efefff;--teal:#129e8b;--teal-soft:#e7f8f4;--amber:#b97711;--amber-soft:#fff5df;--red:#c44e5b;--shadow:0 12px 34px rgba(25,35,70,.055);--radius:18px}*{box-sizing:border-box}html{font-size:14px}body{margin:0;background:var(--bg);color:var(--text);min-height:100vh}html[data-theme=dark]{color-scheme:dark;--bg:#11141d;--surface:#191e2a;--surface2:#202635;--text:#eef1f8;--muted:#a0a9bb;--line:#2c3445;--brand:#9a9bff;--brand-soft:#292b4c;--teal:#5bd6bf;--teal-soft:#183b39;--amber:#f1c46b;--amber-soft:#3c3020;--red:#ff8995;--shadow:0 12px 34px rgba(0,0,0,.22)}@media(prefers-color-scheme:dark){html[data-theme=system]{color-scheme:dark;--bg:#11141d;--surface:#191e2a;--surface2:#202635;--text:#eef1f8;--muted:#a0a9bb;--line:#2c3445;--brand:#9a9bff;--brand-soft:#292b4c;--teal:#5bd6bf;--teal-soft:#183b39;--amber:#f1c46b;--amber-soft:#3c3020;--red:#ff8995;--shadow:0 12px 34px rgba(0,0,0,.22)}}a{color:var(--brand);text-decoration:none}button,input,select,textarea{font:inherit}button,a{touch-action:manipulation}.app-shell{display:flex;min-height:100vh}.sidebar{width:248px;position:fixed;inset:0 auto 0 0;background:var(--surface);border-right:1px solid var(--line);padding:23px 15px;display:flex;flex-direction:column;z-index:20}.brand{display:flex;align-items:center;gap:11px;color:var(--text);padding:0 7px 26px}.brand-icon{display:grid;place-items:center;width:40px;height:40px;border-radius:14px;color:white;background:linear-gradient(140deg,#7778f5,#5152d2);font-size:23px;box-shadow:0 7px 18px #5b5ce233}.brand b,.brand small,.mini-profile b,.mini-profile small{display:block}.brand b{font:800 15px Inter,'Segoe UI',sans-serif;letter-spacing:-.35px}.brand small{font-size:11px;color:var(--muted);margin-top:3px}.side-caption{font-size:10px;font-weight:800;letter-spacing:1.35px;color:var(--muted);padding:11px 12px 8px}.sidebar nav{display:grid;gap:4px;margin-bottom:15px}.sidebar nav a{display:flex;align-items:center;gap:12px;padding:11px 12px;border-radius:12px;color:var(--muted);font-weight:600;min-height:44px;transition:background .16s,color .16s}.sidebar nav a span{font-size:18px;width:20px;text-align:center}.sidebar nav a:hover{background:var(--surface2);color:var(--text)}.sidebar nav a.active{background:var(--brand-soft);color:var(--brand);font-weight:750}.sidebar nav kbd{margin-left:auto;font-size:10px;color:var(--muted);font-weight:500}.sidebar-bottom{margin-top:auto}.mini-profile{display:flex;align-items:center;gap:10px;border-top:1px solid var(--line);padding:16px 4px 10px}.avatar,.top-avatar{display:grid;place-items:center;width:36px;height:36px;border-radius:12px;background:var(--brand-soft);color:var(--brand);font-weight:800}.mini-profile b{font-size:12px}.mini-profile small{font-size:11px;color:var(--muted);margin-top:3px}.dots{margin-left:auto;color:var(--muted);font-size:18px}.side-foot{font-size:10px;color:var(--muted);padding:8px 4px}.main-area{margin-left:248px;min-width:0;width:calc(100% - 248px);display:flex;flex-direction:column;min-height:100vh}.topbar{height:70px;background:color-mix(in srgb,var(--surface) 90%,transparent);border-bottom:1px solid var(--line);display:flex;align-items:center;gap:14px;padding:0 32px;position:sticky;top:0;z-index:10;backdrop-filter:blur(18px)}.crumb{display:flex;gap:10px;align-items:center;color:var(--muted);font-size:12px}.crumb b{color:var(--line)}.crumb strong{font-size:13px;color:var(--text)}.top-actions{margin-left:auto;display:flex;gap:12px;align-items:center}.session-pill{display:flex;align-items:center;gap:8px;padding:8px 12px;border:1px solid var(--line);border-radius:999px;background:var(--surface);font-size:11px;font-weight:700}.live-dot{width:7px;height:7px;background:var(--teal);border-radius:50%}.icon-button{width:40px;height:40px;display:grid;place-items:center;border:1px solid var(--line);border-radius:12px;background:var(--surface);color:var(--text);cursor:pointer;font-size:17px}.icon-button:hover{border-color:var(--brand);color:var(--brand)}.top-avatar{border-radius:50%;width:36px;height:36px}.mobile-menu{display:none}.page-content{width:100%;max-width:1500px;margin:0 auto;padding:30px 32px 36px;flex:1}.app-footer{padding:13px 24px;text-align:center;border-top:1px solid var(--line);color:var(--muted);font-size:11px}.app-footer a{font-weight:800}.notice{padding:12px 15px;border-radius:12px;margin-bottom:18px;background:var(--teal-soft);color:var(--teal);font-weight:650}.notice.error{background:var(--amber-soft);color:var(--amber)}.eyebrow{font-size:11px;text-transform:uppercase;letter-spacing:1.2px;color:var(--brand);font-weight:800}.page-heading{display:flex;justify-content:space-between;align-items:flex-start;gap:18px;margin-bottom:25px}.page-heading h1{font:800 clamp(24px,3vw,34px) Inter,'Segoe UI',sans-serif;letter-spacing:-1.1px;margin:6px 0 7px}.page-heading p{margin:0;color:var(--muted);font-size:13px;line-height:1.6}.heading-actions{display:flex;gap:9px;flex-wrap:wrap}.btn{display:inline-flex;align-items:center;justify-content:center;gap:8px;min-height:42px;padding:0 15px;border:1px solid var(--line);border-radius:12px;background:var(--surface);color:var(--text);font-weight:750;cursor:pointer;white-space:nowrap}.btn:hover{transform:translateY(-1px);box-shadow:var(--shadow)}.btn.primary{background:var(--brand);border-color:var(--brand);color:#fff}.btn.soft{background:var(--brand-soft);color:var(--brand);border-color:transparent}.btn.small{min-height:34px;padding:0 11px;font-size:12px}.grid{display:grid;gap:16px}.stats-grid{grid-template-columns:repeat(4,minmax(0,1fr));margin-bottom:20px}.stat-card,.panel,.hero-card,.action-card{background:var(--surface);border:1px solid var(--line);border-radius:var(--radius);box-shadow:var(--shadow)}.stat-card{padding:19px;min-width:0}.stat-top{display:flex;align-items:center;justify-content:space-between;color:var(--muted);font-size:12px;font-weight:650}.stat-icon{width:34px;height:34px;border-radius:11px;display:grid;place-items:center;background:var(--brand-soft);color:var(--brand);font-size:16px}.stat-value{font:800 27px Inter,'Segoe UI',sans-serif;letter-spacing:-1px;margin-top:13px}.stat-foot{font-size:11px;color:var(--muted);margin-top:5px}.dashboard-grid{grid-template-columns:minmax(0,1.55fr) minmax(280px,.85fr);align-items:start}.panel{padding:21px;min-width:0}.panel-head{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:17px}.panel-head h2{font:800 16px Inter,'Segoe UI',sans-serif;margin:0;letter-spacing:-.3px}.panel-head p{font-size:11px;color:var(--muted);margin:5px 0 0}.text-link{font-size:12px;font-weight:750}.hero-card{padding:26px;background:linear-gradient(120deg,var(--surface) 10%,var(--brand-soft));position:relative;overflow:hidden;margin-bottom:20px}.hero-card:after{content:'✦';position:absolute;right:5%;top:-35px;font-size:170px;color:var(--brand);opacity:.07;pointer-events:none}.hero-card h2{font:800 clamp(22px,2.8vw,30px) Inter,'Segoe UI',sans-serif;letter-spacing:-.9px;margin:8px 0}.hero-card p{color:var(--muted);font-size:13px;line-height:1.65;max-width:560px;margin:0 0 18px}.hero-actions{display:flex;gap:9px;flex-wrap:wrap}.period-list,.task-list,.activity-list{display:grid;gap:9px}.period-item{display:grid;grid-template-columns:58px 1fr auto;align-items:center;gap:12px;padding:12px;border:1px solid var(--line);border-radius:14px}.period-time{font-size:11px;color:var(--muted);line-height:1.5}.period-time b{display:block;color:var(--text);font-size:12px}.period-mark{width:3px;height:37px;background:var(--brand);border-radius:5px;position:absolute;left:0}.period-info{min-width:0}.period-info b,.period-info small{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.period-info b{font-size:13px}.period-info small{font-size:11px;color:var(--muted);margin-top:4px}.tag{display:inline-flex;align-items:center;gap:5px;padding:5px 8px;border-radius:999px;background:var(--surface2);color:var(--muted);font-size:10px;font-weight:800;white-space:nowrap}.tag.green{background:var(--teal-soft);color:var(--teal)}.tag.purple{background:var(--brand-soft);color:var(--brand)}.tag.amber{background:var(--amber-soft);color:var(--amber)}.quick-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.action-card{padding:15px;display:flex;gap:12px;align-items:center;color:var(--text);transition:transform .16s,border-color .16s}.action-card:hover{transform:translateY(-2px);border-color:var(--brand)}.action-icon{width:39px;height:39px;display:grid;place-items:center;border-radius:13px;background:var(--brand-soft);color:var(--brand);font-size:17px;flex-shrink:0}.action-card b,.action-card small{display:block}.action-card b{font-size:12px}.action-card small{color:var(--muted);font-size:10px;margin-top:4px;line-height:1.45}.task-item{display:flex;gap:10px;align-items:flex-start;padding:12px 0;border-bottom:1px solid var(--line)}.task-item:last-child{border:0;padding-bottom:0}.task-dot{width:9px;height:9px;border-radius:50%;background:var(--amber);margin-top:5px;flex-shrink:0}.task-item b{font-size:12px;display:block}.task-item small{font-size:11px;line-height:1.5;color:var(--muted);display:block;margin-top:4px}.empty-state{text-align:center;padding:26px 14px;color:var(--muted)}.empty-state .empty-icon{font-size:27px;margin-bottom:8px}.empty-state b{display:block;color:var(--text);margin-bottom:5px}.empty-state p{font-size:12px;line-height:1.6;margin:0 auto 14px;max-width:320px}.section-gap{margin-top:20px}.form-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:15px}.field{display:grid;gap:7px;min-width:0}.field.full{grid-column:1/-1}.field label{font-size:12px;font-weight:750}.field input,.field select,.field textarea{width:100%;min-height:45px;padding:11px 12px;border:1px solid var(--line);border-radius:11px;background:var(--surface);color:var(--text);outline:none}.field textarea{min-height:92px;resize:vertical}.field input:focus,.field select:focus,.field textarea:focus{border-color:var(--brand);box-shadow:0 0 0 3px color-mix(in srgb,var(--brand) 15%,transparent)}.field .hint{font-size:11px;color:var(--muted);line-height:1.5}.form-actions{display:flex;gap:8px;justify-content:flex-end;margin-top:18px;flex-wrap:wrap}.table-wrap{overflow:auto;border:1px solid var(--line);border-radius:14px}table{border-collapse:collapse;width:100%;min-width:640px}th,td{text-align:left;padding:13px 14px;border-bottom:1px solid var(--line);font-size:12px}th{font-size:10px;letter-spacing:.7px;text-transform:uppercase;color:var(--muted);background:var(--surface2)}tr:last-child td{border-bottom:0}.subtle{color:var(--muted)}.toolbar{display:flex;gap:10px;flex-wrap:wrap;align-items:center;margin-bottom:15px}.toolbar input,.toolbar select{min-height:40px;padding:9px 12px;border:1px solid var(--line);border-radius:10px;background:var(--surface);color:var(--text)}.toolbar input{flex:1;min-width:180px}.two-col{display:grid;grid-template-columns:minmax(0,1.2fr) minmax(280px,.8fr);gap:16px}.progress{height:7px;border-radius:99px;background:var(--surface2);overflow:hidden}.progress span{display:block;height:100%;background:var(--brand);border-radius:99px}.mobile-nav-scrim{display:none}@media(max-width:1100px){.stats-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.dashboard-grid{grid-template-columns:minmax(0,1.2fr) minmax(250px,.8fr)}.page-content{padding:25px 22px}}@media(max-width:820px){.sidebar{transform:translateX(-100%);transition:transform .2s;box-shadow:var(--shadow)}body.nav-open .sidebar{transform:translateX(0)}body.nav-open:after{content:'';position:fixed;inset:0;background:#0c102055;z-index:15}.main-area{margin-left:0;width:100%}.mobile-menu{display:grid}.topbar{padding:0 18px}.dashboard-grid,.two-col{grid-template-columns:1fr}.page-content{padding:22px 18px}.sidebar{width:270px}}@media(max-width:540px){.topbar{height:62px;padding:0 12px;gap:9px}.crumb span,.crumb b{display:none}.crumb strong{font-size:12px}.top-actions{gap:7px}.session-pill{font-size:10px;padding:7px 9px;max-width:125px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.top-avatar{display:none}.page-content{padding:20px 13px 26px}.page-heading{display:block}.page-heading h1{font-size:26px}.heading-actions{margin-top:15px}.stats-grid{gap:10px}.stat-card{padding:14px}.stat-value{font-size:23px}.stat-top{font-size:11px;gap:6px}.stat-icon{width:29px;height:29px}.panel{padding:16px}.hero-card{padding:21px 18px}.quick-grid{grid-template-columns:1fr 1fr;gap:9px}.action-card{padding:12px;display:block}.action-icon{margin-bottom:10px}.action-card b{font-size:11px}.action-card small{font-size:10px}.form-grid{grid-template-columns:1fr}.field.full{grid-column:auto}.period-item{grid-template-columns:48px 1fr;gap:9px}.period-item>.tag{grid-column:2;justify-self:start}.btn{min-height:44px}.form-actions .btn{flex:1}.app-footer{font-size:10px;padding:12px}.panel-head{align-items:flex-start}.table-wrap{margin-left:-2px;margin-right:-2px}}@media(prefers-reduced-motion:reduce){*,*:before,*:after{transition:none!important;scroll-behavior:auto!important}}
/* Smart timetable grid */
.timetable-panel{padding:20px;overflow:hidden}.timetable-titlebar{align-items:center}.timetable-toolbar{display:flex;align-items:center;gap:14px;flex-wrap:wrap;margin:0 0 15px}.segmented{display:inline-flex;gap:3px;padding:4px;background:var(--surface2);border:1px solid var(--line);border-radius:12px}.segmented button{border:0;border-radius:9px;background:transparent;color:var(--muted);padding:8px 15px;cursor:pointer;font-weight:750}.segmented button.active{background:var(--brand);color:#fff;box-shadow:0 2px 8px color-mix(in srgb,var(--brand) 25%,transparent)}.day-picker{display:none;align-items:center;gap:8px;font-size:12px;color:var(--muted)}.day-picker select{padding:8px 10px;border:1px solid var(--line);border-radius:9px;background:var(--surface);color:var(--text)}.timetable-hint{display:flex;align-items:center;gap:6px;margin-left:auto;color:var(--muted);font-size:11px}.legend-dot{width:8px;height:8px;border-radius:50%;display:inline-block;margin-left:6px}.legend-dot.theory{background:#4b83ef}.legend-dot.practical{background:#9a5de8}.legend-dot.free{background:#12b78b}.timetable-scroll{overflow:auto;border:1px solid var(--line);border-radius:14px;background:var(--surface)}.timetable-grid{display:grid;grid-template-columns:72px repeat(7,minmax(115px,1fr));min-width:940px;gap:0}.tt-corner,.tt-day{position:sticky;top:0;z-index:2;background:var(--surface2);border-bottom:1px solid var(--line);padding:13px 8px;text-align:center;font-size:11px;font-weight:800;color:var(--muted)}.tt-corner{left:0;z-index:3}.tt-day small{display:block;font-weight:500;font-size:10px;margin-top:4px}.tt-period{position:sticky;left:0;z-index:1;background:var(--surface2);border-right:1px solid var(--line);border-bottom:1px solid var(--line);min-height:86px;display:flex;flex-direction:column;justify-content:center;align-items:center;gap:4px}.tt-period b{font-size:13px;color:var(--text)}.tt-period small{font-size:9px;color:var(--muted)}.tt-cell{position:relative;min-width:0;min-height:86px;padding:5px;border:0;border-right:1px solid var(--line);border-bottom:1px solid var(--line);background:var(--surface);display:flex;flex-direction:column;gap:4px;cursor:pointer;text-align:left;transition:background .15s}.tt-cell:hover{background:var(--brand-soft)}.tt-cell.is-empty .tt-add{margin:auto;display:grid;place-items:center;width:28px;height:28px;border-radius:9px;border:1px dashed var(--line);color:var(--muted);font-size:17px;opacity:.55}.tt-cell.is-empty:hover .tt-add{opacity:1;color:var(--brand);border-color:var(--brand)}.tt-event{display:flex;flex-direction:column;gap:3px;padding:8px;border-radius:8px;color:#fff;min-height:68px;box-shadow:0 2px 4px #1018280a}.tt-event b{font-size:10px;line-height:1.25;font-weight:800}.tt-event span{font-size:10px;line-height:1.25;opacity:.96}.tt-event small{font-size:9px;opacity:.85;margin-top:auto}.tt-event.type-theory{background:#4381ed}.tt-event.type-practical{background:#9558e8}.tt-event.type-free{background:#10b98a}.tt-event.type-other{background:#e4a11b;color:#35250a}.tt-empty{text-align:center;padding:20px;color:var(--muted)}.tt-empty b{display:block;color:var(--text);margin-bottom:5px}.tt-empty p{font-size:12px;margin:0 0 12px}.tt-modal-backdrop{display:none;position:fixed;inset:0;z-index:100;background:rgba(16,20,35,.52);backdrop-filter:blur(5px);align-items:center;justify-content:center;padding:18px;overflow:auto}.tt-editor{width:min(680px,100%);max-height:calc(100vh - 36px);overflow:auto;box-shadow:0 24px 80px #0003}.tt-free-note{display:none;background:var(--teal-soft);color:var(--teal);padding:10px 12px;border-radius:10px;font-size:12px;margin:14px 0 0}.modal-open{overflow:hidden}.timetable-grid.day-view{grid-template-columns:72px minmax(220px,1fr);min-width:300px}.timetable-grid.day-view .tt-day{display:none}.timetable-grid.day-view .tt-day[style*="display: "]{display:none!important}@media(max-width:700px){.timetable-panel{padding:13px}.timetable-titlebar{align-items:flex-start;flex-direction:column}.timetable-titlebar>.btn{width:100%}.timetable-toolbar{gap:9px}.timetable-hint{width:100%;margin-left:0}.timetable-grid{grid-template-columns:58px repeat(7,minmax(104px,1fr));min-width:790px}.tt-period,.tt-cell{min-height:78px}.tt-event{padding:6px;min-height:65px}.tt-event b,.tt-event span{font-size:9px}.tt-modal-backdrop{padding:8px;align-items:flex-end}.tt-editor{max-height:92vh;border-radius:20px 20px 12px 12px}.tt-editor .form-grid{grid-template-columns:1fr 1fr}.tt-editor .form-actions{position:sticky;bottom:-1px;background:var(--surface);padding-top:12px}}

/* GUIUX 2 Ver 1.1 — unified auth and responsive surface system */
.auth-page{min-height:100vh;padding:22px 22px 58px;background:radial-gradient(ellipse at 12% 8%,color-mix(in srgb,var(--brand) 11%,transparent),transparent 34%),var(--bg)}
.auth-shell{width:min(1180px,100%);min-height:min(790px,calc(100vh - 110px));margin:0 auto;display:grid;grid-template-columns:minmax(0,1fr) minmax(420px,.86fr);gap:clamp(18px,3vw,34px);align-items:stretch}
.auth-story{position:relative;overflow:hidden;min-height:640px;border:1px solid color-mix(in srgb,var(--brand) 13%,var(--line));border-radius:30px;padding:clamp(28px,4vw,56px);display:flex;flex-direction:column;justify-content:space-between;background:linear-gradient(145deg,var(--surface),var(--brand-soft));box-shadow:0 24px 70px rgba(35,42,88,.10),inset 0 1px 0 rgba(255,255,255,.65)}
.auth-story:after{content:'';position:absolute;width:340px;height:340px;border-radius:50%;right:-120px;bottom:-130px;border:1px solid color-mix(in srgb,var(--brand) 20%,transparent);box-shadow:0 0 0 32px color-mix(in srgb,var(--brand) 4%,transparent),0 0 0 68px color-mix(in srgb,var(--brand) 3%,transparent);pointer-events:none}
.auth-story .brand{position:relative;z-index:1}.brand-icon{box-shadow:0 6px 18px color-mix(in srgb,var(--brand) 25%,transparent)}.story-copy{position:relative;z-index:1;max-width:600px;margin:48px 0}.story-copy h1{font-size:clamp(36px,4.1vw,60px);line-height:1.04;letter-spacing:-2.5px;font-weight:850;margin:16px 0 20px;color:var(--text)}.story-copy h1 em{font-style:normal;color:var(--brand)}.story-copy p{max-width:460px;font-size:15px;line-height:1.8;color:var(--muted)}.feature-pills{display:flex;flex-wrap:wrap;gap:9px;margin-top:26px}.feature-pills span{padding:10px 13px;border:1px solid color-mix(in srgb,var(--brand) 15%,var(--line));background:color-mix(in srgb,var(--surface) 78%,transparent);border-radius:999px;font-size:11px;font-weight:750;box-shadow:0 4px 12px rgba(20,30,60,.035)}.story-foot{position:relative;z-index:1;color:var(--muted);font-size:12px}.auth-main{display:grid;place-items:center;padding:10px;min-width:0}.auth-card{width:min(100%,500px);padding:clamp(24px,3vw,40px);border:1px solid var(--line);border-radius:26px;background:var(--surface);box-shadow:0 22px 60px rgba(25,35,70,.10),0 3px 9px rgba(25,35,70,.035);position:relative;overflow:hidden}.auth-card:before{content:'';position:absolute;inset:0 0 auto;height:4px;background:linear-gradient(90deg,var(--brand),#b4a4ff,#b9e9d8)}.card-kicker{font-size:10px;letter-spacing:1.5px;font-weight:850;color:var(--brand);margin:5px 0 10px}.auth-card h2{font-size:clamp(25px,2.4vw,32px);line-height:1.15;letter-spacing:-1.1px;margin:0 0 10px;font-weight:820}.auth-card .intro{line-height:1.7;margin:0 0 26px;font-size:13px}.login-symbol,.success-mark{width:48px;height:48px;display:grid;place-items:center;border-radius:16px;background:var(--brand-soft);color:var(--brand);font-size:22px;margin-bottom:20px;box-shadow:inset 0 1px 0 #ffffff8c}.success-mark{background:var(--teal-soft);color:var(--teal)}.login-form{display:grid;gap:18px}.label-row{display:flex;justify-content:space-between;gap:12px;align-items:center}.label-row a{font-size:11px;font-weight:750}.password-wrap{position:relative;display:flex;align-items:center}.password-wrap input{padding-right:76px!important}.password-toggle{position:absolute;right:7px;top:50%;transform:translateY(-50%);border:0;background:var(--surface2);color:var(--brand);border-radius:8px;padding:7px 10px;min-width:54px;font-size:11px;font-weight:800;cursor:pointer}.password-toggle:hover{background:var(--brand-soft)}.block-btn{width:100%;min-height:48px;display:flex;align-items:center;justify-content:center;gap:10px;border-radius:13px;margin-top:5px;box-shadow:0 8px 18px color-mix(in srgb,var(--brand) 22%,transparent)}.block-btn span{font-size:17px;transition:transform .15s}.block-btn:hover span{transform:translateX(3px)}.login-help{border-top:1px solid var(--line);padding-top:18px;margin-top:24px;text-align:center;font-size:11px;color:var(--muted)}.login-help a{font-weight:800}.setup-shell{grid-template-columns:minmax(280px,.68fr) minmax(0,1.32fr);max-width:1240px}.setup-story{min-height:100%;}.setup-card{width:100%;max-width:760px}.setup-form{display:grid;gap:22px}.form-section{padding-top:18px;border-top:1px solid var(--line)}.section-heading{display:flex;align-items:center;gap:12px;margin-bottom:16px}.section-heading>span{display:grid;place-items:center;width:32px;height:32px;border-radius:11px;background:var(--brand-soft);color:var(--brand);font-weight:850;font-size:11px}.section-heading b,.section-heading small{display:block}.section-heading b{font-size:13px}.section-heading small{font-size:11px;color:var(--muted);margin-top:3px}.optional-label{font-size:9px;color:var(--teal);background:var(--teal-soft);padding:4px 7px;border-radius:999px;margin-left:5px}.smtp-details{border:1px solid var(--line);border-radius:15px;padding:13px;background:var(--surface2)}.smtp-details summary{cursor:pointer;font-size:12px;font-weight:800;padding:4px 2px 12px}.smtp-grid{margin-top:8px}.field-hint{font-size:11px;color:var(--muted);line-height:1.6;display:block;margin-top:8px}.submit-setup{min-height:52px}.privacy-note{font-size:10px;line-height:1.6;color:var(--muted);display:flex;gap:8px;align-items:flex-start}.global-sticky-footer{position:fixed;z-index:30;left:0;right:0;bottom:0;min-height:34px;padding:8px 14px;display:flex;align-items:center;justify-content:center;gap:4px;background:color-mix(in srgb,var(--surface) 94%,transparent);backdrop-filter:blur(14px);border-top:1px solid var(--line);color:var(--muted);font-size:10px;text-align:center}.global-sticky-footer a{font-weight:850}.recovery-page{display:grid;place-items:center}.recovery-wrap{width:min(520px,100%)}.recovery-wrap>.brand{margin:0 0 24px 4px}.recovery-card{width:100%}.recovery-steps{display:grid;gap:12px;margin:22px 0}.recovery-steps>div{padding:13px;border-radius:13px;background:var(--surface2);border:1px solid var(--line)}.recovery-steps b,.recovery-steps small{display:block}.recovery-steps b{font-size:12px}.recovery-steps small{font-size:11px;line-height:1.6;color:var(--muted);margin-top:5px}
@media(max-width:900px){.auth-page{padding:14px 14px 60px}.auth-shell,.setup-shell{grid-template-columns:1fr;gap:14px;min-height:0}.auth-story{min-height:0;padding:24px;border-radius:23px}.story-copy{margin:32px 0 20px}.story-copy h1{font-size:clamp(30px,6vw,46px);letter-spacing:-1.5px}.story-copy p{font-size:13px;margin-bottom:0}.story-foot{display:none}.feature-pills{margin-top:17px}.auth-main{padding:0}.auth-card{max-width:600px}.setup-story{display:none}.setup-card{max-width:760px}.login-shell .login-story{min-height:280px}.login-shell .story-copy{margin:26px 0 8px}.login-shell .story-copy h1{font-size:clamp(29px,5.5vw,42px)}.login-shell .feature-pills span{padding:7px 10px}}
@media(max-width:560px){.auth-page{padding:10px 10px 58px;background:var(--bg)}.auth-shell{gap:10px}.auth-story{padding:19px;border-radius:20px}.login-shell .login-story{min-height:0}.login-story .brand-icon{width:36px;height:36px}.login-shell .story-copy{margin:22px 0 2px}.login-shell .story-copy h1{font-size:clamp(27px,8vw,36px);line-height:1.06;letter-spacing:-1.3px;margin:10px 0}.login-shell .story-copy p{font-size:12px;line-height:1.6}.login-shell .feature-pills{gap:6px;margin-top:13px}.login-shell .feature-pills span{font-size:9px;padding:7px 8px}.auth-card{padding:23px 19px;border-radius:21px}.auth-card h2{font-size:25px}.auth-card .intro{margin-bottom:20px}.login-symbol{width:40px;height:40px;margin-bottom:14px}.login-form{gap:15px}.field input,.field select,.field textarea{min-height:47px}.global-sticky-footer{font-size:9px;min-height:32px;padding:7px 5px}.form-grid{grid-template-columns:1fr}.field.full{grid-column:auto}.setup-card{padding:21px 16px}.smtp-grid{grid-template-columns:1fr 1fr}.smtp-grid .field.full{grid-column:1/-1}.recovery-card{padding:24px 18px}}
@media(prefers-reduced-motion:reduce){.auth-story,.auth-card,.btn,.password-toggle{transition:none!important}}

/* GUIUX 2 Ver 1.1 — global layout enforcement layer */
html,body{width:100%;max-width:100%;overflow-x:hidden}body{font-family:Inter,'Segoe UI',system-ui,-apple-system,sans-serif;line-height:1.5}button,input,select,textarea{font-family:inherit}.auth-page{display:block!important;min-height:100vh;padding:24px 24px 52px!important}.auth-shell{display:grid!important;grid-template-columns:minmax(0,1fr) minmax(380px,.9fr)!important;gap:clamp(20px,3vw,42px)!important;align-items:stretch!important;width:min(1240px,100%)!important;min-height:calc(100vh - 100px)!important;margin-inline:auto!important}.auth-shell.setup-shell{grid-template-columns:minmax(260px,.72fr) minmax(0,1.28fr)!important;width:min(1320px,100%)!important;gap:clamp(18px,2.5vw,34px)!important}.auth-story{display:flex!important;flex-direction:column!important;justify-content:space-between!important;min-width:0!important;padding:clamp(24px,3vw,42px)!important;border:1px solid var(--line)!important;border-radius:28px!important;background:linear-gradient(145deg,var(--surface),var(--brand-soft))!important;box-shadow:0 20px 55px rgba(25,35,70,.08),inset 0 1px 0 rgba(255,255,255,.7)!important;overflow:hidden!important}.setup-story{display:flex!important}.story-copy{margin:clamp(28px,5vh,62px) 0!important;max-width:560px!important}.story-copy h1{font-size:clamp(34px,3.4vw,56px)!important;line-height:1.08!important;overflow-wrap:anywhere}.auth-main{display:flex!important;align-items:center!important;justify-content:center!important;min-width:0!important;padding:0!important}.auth-card{width:100%!important;max-width:760px!important;padding:clamp(22px,2.6vw,38px)!important;border:1px solid var(--line)!important;border-radius:26px!important;background:var(--surface)!important;box-shadow:0 24px 65px rgba(25,35,70,.12),0 3px 12px rgba(25,35,70,.04),inset 0 1px 0 rgba(255,255,255,.8)!important;min-width:0!important}.setup-card{max-width:none!important}.setup-form{gap:20px!important}.form-section{padding:18px!important;border:1px solid var(--line)!important;border-radius:18px!important;background:linear-gradient(180deg,var(--surface),var(--surface2))!important;box-shadow:0 7px 20px rgba(25,35,70,.035)!important;min-width:0!important}.section-heading{margin-bottom:17px!important}.form-grid{grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:14px!important}.field{min-width:0!important}.field input,.field select,.field textarea{max-width:100%!important;min-width:0!important;border-radius:12px!important;background:var(--surface)!important;box-shadow:inset 0 1px 2px rgba(20,30,60,.025)!important}.password-wrap{width:100%;min-width:0}.password-wrap input{min-width:0}.smtp-details{background:var(--surface2)!important;border-radius:14px!important}.btn{transition:transform .18s ease,box-shadow .18s ease,border-color .18s ease!important}.btn.primary{box-shadow:0 9px 20px color-mix(in srgb,var(--brand) 24%,transparent)!important}.global-sticky-footer{min-height:34px!important}.app-shell,.main-area,.page-content{min-width:0;max-width:100%}.panel,.stat-card,.hero-card,.action-card,.table-wrap,.content-card{box-shadow:var(--shadow)}
@media(min-width:901px){.setup-shell .setup-story{display:flex!important}.setup-shell .auth-main{padding:0!important}.setup-shell .setup-card{width:100%!important}.setup-shell .story-copy{margin-block:clamp(24px,4vh,48px)!important}}
@media(max-width:900px){.auth-page{padding:14px 14px 54px!important}.auth-shell,.auth-shell.setup-shell{grid-template-columns:minmax(0,1fr)!important;gap:14px!important;width:min(700px,100%)!important;min-height:0!important}.auth-story,.setup-shell .setup-story{display:flex!important;min-height:0!important;padding:22px!important;border-radius:22px!important}.setup-shell .setup-story{display:none!important}.story-copy{margin:22px 0 10px!important}.story-copy h1{font-size:clamp(30px,6vw,44px)!important;letter-spacing:-1.3px!important}.story-copy p{font-size:13px!important}.story-foot{display:none!important}.auth-main{padding:0!important}.auth-card,.setup-card{width:100%!important;max-width:700px!important;margin-inline:auto!important;padding:clamp(20px,4vw,30px)!important}.setup-shell .setup-card{max-width:760px!important}.global-sticky-footer{position:fixed!important}}
@media(max-width:560px){.auth-page{padding:10px 10px 52px!important}.auth-shell,.auth-shell.setup-shell{gap:10px!important}.auth-shell .auth-story{padding:18px!important}.auth-shell .story-copy{margin:17px 0 4px!important}.auth-shell .story-copy h1{font-size:clamp(28px,8vw,36px)!important;line-height:1.08!important;letter-spacing:-1px!important}.auth-shell .feature-pills{gap:6px!important}.auth-shell .feature-pills span{font-size:10px!important;padding:7px 9px!important}.auth-card,.setup-card{padding:20px 15px!important;border-radius:20px!important}.form-grid,.smtp-grid{grid-template-columns:minmax(0,1fr)!important}.form-grid .field.full,.smtp-grid .field.full{grid-column:auto!important}.form-section{padding:14px!important}.section-heading{align-items:flex-start!important}.section-heading small{line-height:1.45}.field input,.field select,.field textarea{font-size:16px!important;min-height:46px!important}.password-toggle{min-height:32px}.submit-setup{width:100%;white-space:normal}.privacy-note{font-size:10px}.global-sticky-footer{font-size:9px!important;padding-inline:5px!important}}

/* v9.3 GUIUX2 global interaction layer */
.profile-menu-wrap{position:relative}.profile-trigger{border:0;cursor:pointer;font:inherit}.profile-menu{position:absolute;right:0;top:calc(100% + 10px);width:min(280px,calc(100vw - 28px));padding:8px;background:var(--surface);border:1px solid var(--line);border-radius:16px;box-shadow:0 18px 50px rgba(20,25,50,.18);z-index:80}.profile-menu[hidden]{display:none}.profile-menu-head{padding:11px 12px 13px;border-bottom:1px solid var(--line);margin-bottom:5px}.profile-menu-head b,.profile-menu-head small{display:block}.profile-menu-head b{font-size:13px}.profile-menu-head small{font-size:11px;color:var(--muted);margin-top:4px}.profile-menu a,.profile-menu button{display:flex;width:100%;align-items:center;min-height:39px;padding:9px 12px;border:0;border-radius:10px;background:transparent;color:var(--text);text-align:left;font-size:12px;font-weight:600;cursor:pointer}.profile-menu a:hover,.profile-menu button:hover{background:var(--surface2);color:var(--brand)}.profile-menu .profile-logout{color:var(--red);border-top:1px solid var(--line);margin-top:5px}.smart-notice-strip{display:flex;align-items:center;gap:13px;padding:10px 13px;margin:0 0 20px;background:var(--surface);border:1px solid var(--line);border-radius:15px;box-shadow:var(--shadow);min-width:0}.smart-notice-label{display:flex;align-items:center;gap:7px;font-size:9px;font-weight:850;letter-spacing:1px;color:var(--brand);white-space:nowrap}.notice-pulse{width:7px;height:7px;border-radius:50%;background:var(--teal);box-shadow:0 0 0 4px var(--teal-soft)}.smart-notice-items{flex:1;min-width:0}.smart-notice-item{display:flex;align-items:center;gap:10px;color:var(--text);min-width:0}.smart-notice-item[hidden]{display:none}.smart-notice-icon{width:32px;height:32px;border-radius:10px;display:grid;place-items:center;background:var(--brand-soft);color:var(--brand);flex-shrink:0}.smart-notice-item>span:nth-child(2){min-width:0}.smart-notice-item b,.smart-notice-item small{display:block;overflow:hidden;text-overflow:ellipsis}.smart-notice-item b{font-size:11px}.smart-notice-item small{font-size:10px;color:var(--muted);white-space:nowrap;margin-top:3px}.smart-notice-arrow{margin-left:auto;color:var(--brand);font-size:17px}.notice-controls{display:flex;align-items:center;gap:6px;color:var(--muted);font-size:10px;white-space:nowrap}.notice-controls button{width:27px;height:27px;border:1px solid var(--line);border-radius:8px;background:var(--surface2);color:var(--text);cursor:pointer}
@media(max-width:900px){.smart-notice-strip{gap:9px;padding:9px}.smart-notice-item small{white-space:normal;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical}.notice-controls{gap:3px}.notice-controls button{width:25px;height:25px}}
@media(max-width:760px){.topbar{padding:0 14px;gap:9px}.top-actions{gap:7px}.session-pill{max-width:120px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;padding:7px 9px}.mobile-menu{display:grid;order:-1}.sidebar{transform:translateX(-105%);transition:transform .22s ease;box-shadow:none;max-width:calc(100vw - 42px)}body.nav-open .sidebar{transform:translateX(0);box-shadow:18px 0 40px rgba(0,0,0,.18)}body.nav-open:after{content:"";position:fixed;inset:0;background:rgba(12,16,28,.42);z-index:15}body.nav-open .topbar{z-index:16}.smart-notice-strip{align-items:flex-start;flex-wrap:wrap}.smart-notice-label{padding-top:7px}.smart-notice-items{flex-basis:calc(100% - 95px)}.notice-controls{margin-left:auto}.top-avatar{flex-shrink:0}}
@media(prefers-reduced-motion:reduce){.sidebar{transition:none!important}}

/* v9.3.2 auth theme control */
.auth-card{position:relative}.auth-theme-toggle{position:absolute;right:18px;top:16px;z-index:2}.auth-card .card-kicker{padding-right:48px}
