/* Reference: SeolhaStudents/StudentDesign.swift and the native student screens. */
:root{color-scheme:light dark;--canvas:#f2f2f7;--paper:#fff;--ink:#242923;--muted:#6c6f6f;--sage:#405c4f;--soft:#e3ebde;--line:#00000014;--student:#386497;--student-soft:#e0edfa;--danger:#c93830;--glass:#ffffffb8;--selection:#78828620;--shadow:0 10px 36px #18221e14;font-family:-apple-system,BlinkMacSystemFont,"Apple SD Gothic Neo","Noto Sans KR",sans-serif;font-size:17px;color:var(--ink);background:var(--canvas)}*{box-sizing:border-box}body{margin:0;background:var(--canvas);color:var(--ink)}button,input,textarea,select{font:inherit;color:inherit}button{cursor:pointer;border:0;background:none;padding:0;text-align:inherit;touch-action:manipulation;transition:opacity .18s,background-color .18s,transform .18s}button:active{opacity:.7}button:disabled{opacity:.45;cursor:default}a{color:var(--sage)}button,a,input,textarea,select{-webkit-tap-highlight-color:transparent}button:focus-visible,a:focus-visible,input:focus-visible,textarea:focus-visible,select:focus-visible{outline:3px solid var(--sage);outline-offset:3px}svg{width:24px;height:24px;flex-shrink:0;display:block}h1,h2,h3,p{margin:0}h1,h2,h3{word-break:keep-all;overflow-wrap:anywhere}h1{font-size:34px;font-weight:650;letter-spacing:-1.2px;line-height:1.24}h2{font-size:20px;font-weight:700;line-height:1.4}h3{font-size:17px;font-weight:600;line-height:1.5}p{line-height:1.65}small{font-size:12px;color:var(--muted)}[hidden]{display:none!important}.muted,.hint{color:var(--muted)}.hint{font-size:12px;line-height:1.75;margin:12px 0}.eyebrow{display:block;font-size:10px;font-weight:600;letter-spacing:2px;color:var(--sage);line-height:1.4}.sage{color:var(--sage)}.app-heading{display:flex;align-items:flex-start;justify-content:space-between;gap:10px;padding:5px 0;margin-bottom:26px}.app-heading .eyebrow{margin-bottom:10px}.app-heading h1{white-space:pre-line}.app-heading p{font-size:15px;color:var(--muted);line-height:1.6;margin-top:10px}.app-heading>.icon-button{width:44px;height:44px;flex-shrink:0}.app-heading>.icon-button svg{width:26px;height:26px}.app-brand{display:inline-flex;gap:7px;align-items:center;text-decoration:none;color:var(--ink);font-size:28px;font-weight:700;letter-spacing:-.7px}.app-brand>span{width:7px;height:7px;border-radius:50%;background:var(--sage)}.icon-button{display:inline-flex;align-items:center;justify-content:center;min-width:44px;height:44px;color:var(--sage);border-radius:50%}.primary{display:inline-flex;align-items:center;justify-content:center;gap:8px;background:var(--sage);color:#fff;border-radius:15px;font-size:17px;font-weight:600;padding:16px 20px;min-height:52px}.primary:active{background:#60786b}.primary svg{width:20px;height:20px}.wide{width:100%}.text-button{font-size:12px;font-weight:600;min-height:44px;color:var(--sage);padding:8px}.danger{color:var(--danger)!important}.actions{display:flex;align-items:center;justify-content:flex-end;flex-wrap:wrap;gap:12px;margin-top:22px}.actions button:not(.primary){min-height:44px;padding:10px 16px;color:var(--sage);border-radius:12px;background:var(--paper)}.error{font-size:13px;color:var(--danger);margin:16px 0;white-space:pre-line}.error:empty{display:none}.loading{min-height:220px;display:grid;place-content:center;text-align:center;color:var(--muted);font-size:15px;gap:20px}.loading button{min-height:44px;color:var(--sage)}#boot{min-height:100dvh}.skip-link{position:fixed;top:-80px;left:20px;z-index:100;padding:12px;background:var(--paper);border-radius:12px}.skip-link:focus{top:10px}.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}
/* Login follows the single-column StudentLogin composition. */
#login{min-height:100dvh;padding:22px}.login-form{max-width:440px;margin:0 auto;padding:24px 0;display:flex;flex-direction:column;gap:28px}.login-form .app-heading{display:block;margin:0}.login-form .error,.login-form .hint{margin:0}.login-inputs{display:grid;gap:12px}input:not([type=checkbox]),textarea,select{display:block;width:100%;border:0;background:var(--paper);border-radius:14px;padding:16px;min-width:0}input::placeholder,textarea::placeholder{color:var(--muted)}textarea{resize:vertical;line-height:1.65;min-height:110px}.study-art{height:190px;background:#e3e0d1;border-radius:26px;position:relative;overflow:hidden}.study-art i{position:absolute;width:64%;aspect-ratio:1;border-radius:50%;background:#a6b094;left:42%;top:-30%}.study-art b{position:absolute;width:26%;height:72%;background:#546b61;left:18%;top:34%;transform:rotate(-24deg);border-radius:3px}.study-art em{position:absolute;width:75%;aspect-ratio:1;border-radius:50%;border:1px solid #fffc;left:-2%;top:-36%}.study-art small{position:absolute;bottom:18px;left:18px;font:9px ui-monospace,monospace;letter-spacing:3px;color:#0007}
/* Native compact tabs / regular-width split view. No staff-site layout. */
#shell{min-height:100dvh}.student-sidebar>.app-brand,.sidebar-foot{display:none}#navigation{position:fixed;z-index:5;bottom:max(18px,env(safe-area-inset-bottom));left:22px;right:22px;display:flex;align-items:center;padding:4px;border:1px solid #ffffff80;border-radius:40px;background:var(--glass);backdrop-filter:blur(24px) saturate(1.5);box-shadow:var(--shadow)}#navigation button{flex:1;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:3px;min-height:54px;padding:6px 4px;font-size:10px;font-weight:500;border-radius:32px;color:var(--ink)}#navigation button.active{background:var(--selection);color:var(--sage);font-weight:650}#navigation svg{width:27px;height:27px}#navigation button.active svg{stroke-width:2.3}.workspace{min-width:0;padding-bottom:110px}.student-topbar{height:54px;display:flex;align-items:center;justify-content:center;position:relative;padding:0 22px;max-width:1080px;margin:auto}.student-topbar>strong{font-size:17px;font-weight:650}.student-topbar>.icon-button{position:absolute;right:16px;top:5px;background:var(--paper)}#mobile-account{display:none!important}#shell:not([data-page=community]) #new-post{display:none}#shell[data-page=home] .student-topbar{display:none}#main{max-width:1080px;margin:0 auto;padding:22px;outline:none}#shell[data-page=home] #main{padding-top:8px}#shell[data-page=home] .app-heading{margin-bottom:18px}#main:focus-visible{outline:2px solid var(--sage)}.quick-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;margin:18px 0}.quick{padding:16px;border-radius:19px;background:var(--paper);min-height:112px;display:flex;align-items:flex-start;flex-direction:column;justify-content:center}.quick>svg{width:21px;height:21px;color:var(--sage);margin-bottom:10px}.quick strong{font-size:17px;font-weight:600;line-height:1.4}.quick small{font-size:11px;margin-top:5px;line-height:1.4;word-break:keep-all;overflow-wrap:anywhere}.next-event{display:flex;gap:14px;align-items:center;padding:18px;border-radius:20px;background:var(--paper);width:100%;margin:18px 0}.event-day{display:flex;flex-direction:column;align-items:center;width:46px;flex-shrink:0;color:var(--sage);gap:3px}.event-day small{color:var(--sage);font-size:11px}.event-day strong{font-size:22px;white-space:nowrap}.event-copy{display:flex;flex-direction:column;gap:5px;flex:1;min-width:0}.event-copy strong{font-size:15px;font-weight:600}.event-copy small{font-size:12px}.next-event>svg{color:var(--muted);width:13px;height:13px}.section-head{display:flex;align-items:center;justify-content:space-between;gap:14px;margin:26px 0 18px}.section-head h2{font-size:20px}.section-head p{font-size:13px;color:var(--muted);margin-top:8px}.section-head>small{font-size:12px}.grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(270px,100%),1fr));gap:22px 18px}.card{display:block;width:100%;text-align:left;background:var(--paper);border-radius:22px;overflow:hidden}.card>img{display:block;width:100%;height:220px;object-fit:cover;background:var(--soft)}.card-body{padding:19px}.card h3{font-size:20px;font-weight:600;margin:9px 0}.card small{font-size:12px}.card p{font-size:15px;color:var(--muted);line-height:1.55;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}.spotlight{border-radius:24px}.spotlight>img{height:230px}.spotlight .card-body{padding:21px}.spotlight .media-unavailable{display:block;padding:16px 21px 0;font-size:13px;line-height:1.5;color:var(--muted)}.spotlight h2{font-size:22px;font-weight:600;letter-spacing:-.7px;margin:9px 0}.home-contact{display:flex;gap:12px;margin-top:18px;background:var(--paper);border-radius:16px}.home-contact button{flex:1;display:flex;gap:7px;align-items:center;justify-content:center;min-height:50px;font-size:15px;color:var(--sage)}.home-contact svg{width:18px;height:18px}
/* App chips and adaptive artwork grid. */
.chips{display:flex;gap:8px;overflow-x:auto;flex-wrap:nowrap;scrollbar-width:none;margin:26px 0;max-width:100%;padding:1px 0}.chips::-webkit-scrollbar{display:none}.chips button{white-space:nowrap;min-height:44px;padding:0 17px;font-size:15px;background:var(--paper);border-radius:24px;flex-shrink:0}.chips button.active{background:var(--selection);color:var(--ink);font-weight:650;box-shadow:inset 0 0 0 1px color-mix(in srgb,var(--sage) 25%,transparent)}.filters{display:flex;align-items:center;justify-content:space-between;gap:18px;margin:26px 0}.filters label{min-width:0}.filters select{font-size:15px;padding:6px 10px;background:none;min-height:44px;border-radius:10px}.filters label:last-child select{color:var(--muted)}.post-meta{display:flex;justify-content:space-between;align-items:center;gap:12px;font-size:12px;color:var(--muted)}.post-meta time{white-space:nowrap}.search{display:flex;align-items:center;gap:10px;padding:10px 14px;background:var(--paper);border-radius:24px;margin:0 0 26px}.search>svg{color:var(--ink);width:21px;height:21px}.search input{padding:5px 0;background:none;border-radius:0;font-size:17px;flex:1}.search button{font-size:13px;color:var(--sage);min-height:30px;flex-shrink:0}.community-heading{display:flex;align-items:flex-end;justify-content:space-between;gap:24px}.community-heading .app-heading{flex:1;min-width:0;margin:0}.community-heading .community-search{flex:0 0 280px;width:280px;max-width:100%;margin:0;box-shadow:none;border:1px solid var(--line);border-radius:14px}@media(max-width:767px){.community-heading{display:block}.community-heading .app-heading{margin-bottom:20px}.community-heading .community-search{width:100%}}.post-list{display:grid;gap:12px}.post-card{display:block;width:100%;background:var(--paper);border-radius:22px;padding:20px}.post-card h3{margin:12px 0;font-size:17px}.post-card>p{font-size:15px;color:var(--muted);line-height:1.6;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}.post-card>img{width:100%;height:170px;object-fit:cover;border-radius:12px;margin:12px 0 0}.post-comments{display:flex;align-items:center;gap:6px;color:var(--sage);font-size:12px;margin-top:12px}.post-comments svg{width:15px;height:15px}#more-posts,#more-terms{min-height:44px;color:var(--sage);margin-top:16px}.empty{padding:46px 20px;text-align:center;color:var(--muted);line-height:1.8;font-size:15px}.empty h3{color:var(--ink);font-size:20px;margin:16px 0 8px}.empty p{font-size:15px}.empty>svg{width:42px;height:42px;margin:0 auto 16px}.group-title{font-size:17px;font-weight:600;margin:26px 0 18px}.menu-panel{padding:13px 20px;background:var(--paper);border-radius:22px;margin:0 0 26px}.menu-row{width:100%;display:flex;align-items:center;gap:15px;padding:14px 0;min-height:65px;text-align:left}.menu-panel .menu-row+.menu-row{border-top:1px solid var(--line)}.menu-icon{display:flex;align-items:center;justify-content:center;width:45px;height:45px;flex-shrink:0;border-radius:14px;background:var(--soft);color:var(--sage)}.menu-icon svg{width:21px;height:21px}.menu-copy{display:flex;flex-direction:column;gap:5px;flex:1;min-width:0}.menu-copy strong{font-size:17px;font-weight:600}.menu-copy small{font-size:12px;line-height:1.4;word-break:keep-all;overflow-wrap:anywhere}.menu-row>svg:last-child{width:12px;height:12px;color:var(--muted);margin-left:auto}.account-menu{padding:7px 0}.panel{padding:20px;background:var(--paper);border-radius:22px;margin:18px 0}.panel.muted{font-size:15px;line-height:1.6}.request-list{display:grid;gap:14px}.request-card{display:flex;align-items:center;gap:16px;width:100%;padding:20px;background:var(--paper);border-radius:22px;text-align:left}.request-card>img{width:72px;height:80px;border-radius:12px;object-fit:cover}.request-card>div{flex:1;min-width:0}.request-card h3{font-size:17px;margin-bottom:9px}.request-card p{font-size:12px;color:var(--muted);margin-bottom:7px}.request-card small{font-size:11px}.request-card>svg{width:12px;height:12px;color:var(--muted)}.faq{padding:18px;background:var(--paper);border-radius:18px;margin:12px 0;font-size:15px}.faq summary{cursor:pointer}.faq p{white-space:pre-wrap;line-height:1.75;padding-top:10px}.badge{display:inline-block;font-size:12px;line-height:1.5;color:var(--sage);background:var(--soft);padding:4px 8px;border-radius:8px}.badge.blue{color:var(--student);background:var(--student-soft)}
/* Native navigation sheets and grouped forms. */
dialog{padding:0;border:0;border-radius:26px;background:var(--canvas);color:var(--ink);width:min(760px,calc(100% - 24px));max-width:calc(100% - 24px);max-height:calc(100dvh - 28px);box-shadow:0 20px 70px #0003;overscroll-behavior:contain}dialog::backdrop{background:#0003;backdrop-filter:blur(4px)}body:has(dialog[open]){overflow:hidden}.sheet-handle{width:36px;height:5px;border-radius:8px;background:#9c9ca180;margin:8px auto 3px}.sheet-head{display:flex;align-items:center;justify-content:center;gap:8px;position:sticky;top:0;z-index:3;padding:5px 10px;min-height:54px;background:var(--canvas)}.sheet-head h2{font-size:17px;text-align:center;font-weight:650;line-height:1.35;flex:1}.sheet-head .icon-button{flex-shrink:0}.sheet-head #sheet-close{color:var(--muted)}#sheet-body{padding:22px}#sheet-body .app-heading{margin-bottom:26px}#sheet-body>h3{margin-top:22px}#sheet-body>p.muted{font-size:15px;margin-bottom:22px}.read-body{white-space:pre-wrap;overflow-wrap:anywhere;font-size:17px;line-height:1.85;margin:22px 0}.panel .read-body{font-size:15px;line-height:1.75;margin-bottom:0;margin-top:10px}.detail-image{display:block;max-width:100%;max-height:620px;border-radius:22px;margin:0 auto 26px}.image-wrap{margin-bottom:26px}.sheet-head+#sheet-body{padding-top:22px}#sheet-body label{display:block;font-size:13px;font-weight:500;color:var(--muted);margin:22px 0 10px}#sheet-body label:first-child{margin-top:0}#sheet-body input:not([type=checkbox]),#sheet-body textarea,#sheet-body select{font-size:17px;color:var(--ink);margin-top:9px}#sheet-body textarea{min-height:130px}#sheet-body .check{display:flex;align-items:center;gap:10px;font-size:15px;color:var(--ink);line-height:1.6}input[type=checkbox]{width:18px;height:18px;accent-color:var(--sage);flex-shrink:0}.note{font-size:13px;line-height:1.8;padding:18px 20px;background:var(--paper);border-radius:18px;color:var(--muted);margin:20px 0}.row{display:flex;align-items:center;justify-content:space-between;gap:14px;width:100%;padding:18px 0;border-bottom:1px solid var(--line)}.row:last-child{border-bottom:0}.row p{font-size:13px;color:var(--muted)}.row small{font-size:12px}.row button{color:var(--sage);min-height:44px}.avatar{width:38px;height:38px;border-radius:50%;display:inline-flex;align-items:center;justify-content:center;color:var(--sage);background:var(--soft);object-fit:cover}.avatar.large{width:60px;height:60px}.avatar.large svg{width:44px;height:44px}.account-panel{display:flex;align-items:center;gap:14px}.account-panel h3{font-size:17px}.account-panel p{font-size:12px;color:var(--muted);margin-top:5px}.privacy-note{font-size:13px;line-height:1.7;color:var(--muted);margin:24px 4px}.comments{margin:24px 0}.comment{padding:18px;background:var(--paper);border-radius:18px;margin:12px 0;overflow:hidden}.comment strong{font-size:13px}.comment p{font-size:15px;line-height:1.75;margin-top:9px;white-space:pre-wrap;overflow-wrap:anywhere}.comment small{font-size:11px}.comment .text-button{float:right}.comment>button:not(.text-button){font-size:13px;color:var(--sage);padding:8px 0}.feedback{padding:20px;background:var(--paper);border-radius:22px;margin:18px 0}.feedback strong{color:var(--sage);font-size:15px}.feedback p{font-size:15px;line-height:1.75;white-space:pre-wrap;margin-top:12px}.annotation-toolbar{display:flex;align-items:center;justify-content:space-between;gap:14px;margin:12px 0}.annotation-toolbar label.check{margin:0!important;font-size:12px!important}.annotation-toolbar button{display:flex;gap:6px;align-items:center;color:var(--sage);min-height:44px;font-size:12px;font-weight:600}.annotation-toolbar svg{width:16px;height:16px}.legend{display:flex;gap:18px;font-size:11px;color:var(--student);margin:12px 0}.legend .teacher{color:var(--sage)}.annotation{position:relative;width:fit-content;max-width:100%;margin:auto}.annotation img{max-width:100%;display:block;max-height:620px;border-radius:18px;margin:0}.pin{position:absolute;padding:0;width:28px;height:28px;transform:translate(-50%,-50%);border-radius:50%;border:2px solid white;background:var(--student);color:white;box-shadow:0 2px 8px #0003;font-size:12px;text-align:center}.pin.teacher{background:var(--sage)}.pin.active{outline:3px solid #c8bb8b;z-index:2}.selected-note{font-size:15px;line-height:1.65;white-space:pre-wrap;padding:18px;border-radius:18px;background:var(--student-soft);margin:16px 0}.selected-note.teacher{background:var(--soft)}.selected-note strong{font-size:12px;color:var(--sage)}.placement{cursor:crosshair;outline:2px dashed var(--sage);outline-offset:2px}.calendar{display:grid;grid-template-columns:repeat(7,minmax(0,1fr));gap:5px;margin:20px 0}.calendar>div{min-height:64px;padding:7px 4px;background:var(--paper);border-radius:10px;font-size:12px;overflow-wrap:anywhere}.calendar .weekday{min-height:25px;background:none;text-align:center;color:var(--muted)}.calendar .pad{background:none}.calendar small{display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2;overflow:hidden;color:var(--sage);font-size:10px;line-height:1.3;max-height:2.6em;margin-top:4px}.month-control{display:flex;justify-content:space-between;align-items:center;margin:16px 0}.month-control button{width:44px;height:44px;color:var(--sage);font-size:24px}.month-control strong{font-size:20px}.date-box{width:46px;flex-shrink:0;font-size:11px;color:var(--sage);text-align:center}.date-box strong{display:block;font-size:22px}.event-text{flex:1;min-width:0;overflow-wrap:anywhere}.event-text h3{font-size:15px}.event-text p{font-size:12px;color:var(--muted)}audio{width:100%;margin:12px 0}.preview{max-width:100%;max-height:240px;display:block;margin:12px auto}#confirm{width:min(430px,calc(100% - 40px));padding:24px}#confirm h2{font-size:20px;margin-bottom:12px}#confirm p{font-size:15px;color:var(--muted)}#toast{position:fixed;left:50%;bottom:100px;transform:translateX(-50%);z-index:20;max-width:calc(100% - 32px);padding:14px 22px;border-radius:24px;background:var(--ink);color:var(--paper);box-shadow:var(--shadow);font-size:14px;text-align:center}
/* Embedded modules retain the student's existing dictionary/counsel identity. */
#sheet[data-context=dictionary]{--canvas:#fefdfa;--paper:#fefdfa;--ink:#1f211f;--muted:#6d716b;--sage:#8f6630;--soft:#f6f5f1;--line:#d5d6cf}#sheet[data-context=counsel]{--canvas:#f5f5f0;--paper:#fefdfa;--ink:#242923;--muted:#73796e;--sage:#405c4f;--soft:#e8ecdf;--line:#dcded5}.dictionary-intro{margin:12px 0 22px}.module-tools{display:flex;align-items:center;gap:12px;color:var(--sage);margin-bottom:12px}.module-tools>svg{width:25px;height:25px}.module-tools>span{margin-left:auto;display:flex;gap:5px;align-items:center;font-size:12px;color:var(--sage)}.module-tools>span svg{width:15px;height:15px}.dictionary-intro h1{font-size:29px;font-weight:700;line-height:1.45;letter-spacing:-1px}.dictionary-intro p{font-size:13px;color:var(--muted);margin-top:12px}.dictionary-intro+.search{background:var(--soft);border-radius:12px;padding:14px}.dictionary-intro+.search input{font-size:15px}.term-card{display:block;text-align:left;width:100%;padding:20px;border:1px solid var(--line);border-radius:14px;background:var(--paper);margin:14px 0}.term-card h2{font:27px ui-serif,"AppleMyungjo",serif;display:flex;align-items:center;justify-content:space-between;gap:20px}.term-card h2 span{font:15px -apple-system,sans-serif;color:var(--sage)}.term-card>p{font-size:13px;color:var(--muted);line-height:1.8;margin:16px 0}.term-card .post-meta{font-size:11px}.term-card>small{display:block;margin-top:14px;color:var(--sage)}.dictionary-empty{min-height:300px;display:flex;flex-direction:column;align-items:center;justify-content:center}.dictionary-empty>svg{width:32px;height:32px;margin:0}.dictionary-empty h3{font-size:20px}.dictionary-empty p{font-size:13px}.counsel-content{padding-bottom:20px}#sheet[data-context=counsel] .app-heading h1{font-size:29px;font-weight:700}#sheet[data-context=counsel] .app-heading .eyebrow{color:var(--muted);font-size:11px}#sheet[data-context=counsel] .app-heading p{font-size:14px}#sheet[data-context=counsel] .primary{background:var(--ink);font-size:15px;border-radius:13px}.session-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(270px,100%),1fr));gap:18px}.session-card{display:block;width:100%;background:var(--paper);border:1px solid var(--line);border-radius:18px;padding:22px}.session-card small{font-size:12px}.session-card h3{font-size:17px;margin:14px 0}.session-card p{font-size:13px;color:var(--muted);margin-bottom:14px}.privacy-panel{padding:22px;display:flex;gap:13px;border:1px solid var(--line);border-radius:18px;background:var(--paper);margin-top:25px}.privacy-panel>svg{color:#8f6630;width:21px;height:21px}.privacy-panel strong{font-size:15px;font-weight:600}.privacy-panel p{font-size:13px;line-height:1.8;color:var(--muted);margin-top:8px}.module-nav{position:sticky;bottom:0;margin:20px -10px -10px;z-index:3;display:flex;padding:6px;border:1px solid #fff6;background:var(--glass);border-radius:40px;backdrop-filter:blur(20px);box-shadow:var(--shadow)}.module-nav button{flex:1;min-width:0;min-height:52px;display:flex;align-items:center;justify-content:center;flex-direction:column;gap:4px;border-radius:32px;color:var(--muted);padding:5px 1px;font-size:10px;white-space:nowrap}.module-nav button.active{background:var(--soft);color:var(--ink);font-weight:600}.module-nav svg{width:21px;height:21px}
@media(min-width:768px){#main>.app-heading h1,#main>.community-heading .app-heading h1{font-size:30px}#shell{display:grid;grid-template-columns:230px minmax(0,1fr)}.student-sidebar{height:100dvh;position:sticky;top:0;padding:26px 14px;background:var(--canvas);border-right:1px solid var(--line)}.student-sidebar>.app-brand{display:flex;padding:8px 10px;font-size:34px;margin-bottom:22px}#navigation{position:static;display:flex;flex-direction:column;padding:0;border:0;border-radius:0;background:none;backdrop-filter:none;box-shadow:none;gap:5px}#navigation button{width:100%;flex-direction:row;justify-content:flex-start;gap:12px;min-height:52px;border-radius:12px;font-size:15px;padding:12px}#navigation button.active{background:var(--soft)}#navigation svg{width:22px;height:22px}.workspace{padding-bottom:30px}#main{padding:22px}#shell[data-page=home] #main{padding-top:8px}.quick-grid{gap:10px}.student-topbar{height:54px}dialog{max-height:calc(100dvh - 60px)}#toast{bottom:30px}#sheet[data-context=counsel]{width:min(1000px,calc(100% - 60px))}.counsel-content{min-height:400px}.module-nav{max-width:650px;margin-left:auto;margin-right:auto}}
@media(min-width:1100px){#shell[data-page=home] .quick-grid{grid-template-columns:repeat(4,minmax(0,1fr))}}
@media(max-width:380px){h1{font-size:31px}.quick strong{font-size:16px}.quick small{font-size:11px}.menu-copy strong{font-size:16px}.menu-copy small{font-size:11px}.menu-row{gap:12px}.menu-panel{padding-left:17px;padding-right:17px}.module-nav button{font-size:9px}}
@media(prefers-color-scheme:dark){:root{--canvas:#000;--paper:#1c1c1e;--ink:#fff;--muted:#98989f;--line:#ffffff14;--glass:#242426c7;--selection:#ffffff20;--shadow:0 10px 36px #0005;--student-soft:#1b314a}.app-heading .eyebrow,.sage,.text-button,.post-comments,.event-day,.event-day small{color:#9fbcaa}.selected-note.teacher{background:#23382d}.feedback strong{color:#9fbcaa}#sheet[data-context=dictionary]{--canvas:#151713;--paper:#151713;--ink:#f0f0e9;--muted:#a3aaa0;--sage:#d8b57c;--soft:#232720;--line:#393d37}#sheet[data-context=counsel]{--canvas:#11140f;--paper:#191d16;--ink:#ecefe5;--muted:#a3ad9b;--sage:#a0b599;--soft:#2c3524;--line:#353d2e}#sheet[data-context=counsel] .primary{color:#192014}}
@media(prefers-reduced-motion:reduce){*{transition:none!important;animation:none!important;scroll-behavior:auto!important}}
/* Same bundled typeface as the native dictionary. Existing public asset. */
@font-face{font-family:SeolhaMyeongjo;src:url('/counsel/assets/NanumMyeongjo-Regular.ttf') format('truetype');font-weight:400;font-display:swap}.term-card h2{font-family:SeolhaMyeongjo,ui-serif,serif}

.teacher-return{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:12px 22px;font-size:12px;color:var(--muted);border-bottom:1px solid var(--line)}.teacher-return a{color:inherit;text-decoration:none;font-weight:600}.teacher-return a:hover{text-decoration:underline}@media(max-width:480px){.teacher-return{padding:12px 18px}.teacher-return span{max-width:120px}}

/* Published counseling summaries use the shared document schema in the student theme. */
.read-body [data-note-readonly] .note-document{padding:0;min-height:0;outline:0;font-size:16px;line-height:1.8;overflow-wrap:anywhere;white-space:pre-wrap}
.read-body .note-document h2{font-size:20px;line-height:1.5;margin:22px 0 10px}.read-body .note-document h3{font-size:17px;margin:18px 0 8px}.read-body .note-document h2:first-child,.read-body .note-document h3:first-child{margin-top:0}.read-body .note-document p{margin:0 0 10px}.read-body .note-document strong{font-weight:700}
.read-body .note-document ul,.read-body .note-document ol{padding-left:24px;margin:8px 0 16px}.read-body .note-document li{margin:5px 0}.read-body .note-document li p{margin:0}.read-body .note-document ul[data-type=taskList]{list-style:none;padding-left:0}.read-body .note-document ul[data-type=taskList]>li{display:flex;align-items:flex-start;gap:10px}.read-body .note-document li>div{min-width:0;flex:1}.read-body .note-document li>label{display:flex;padding-top:7px}.read-body .note-document input[type=checkbox]{width:17px;height:17px;margin:0;opacity:1;accent-color:var(--sage)}.read-body .note-document li[data-checked=true]>div{text-decoration:line-through;color:var(--muted)}
.read-body .note-document .tableWrapper{overflow-x:auto;margin:16px 0;border:1px solid var(--line);border-radius:8px}.read-body .note-document table{border-collapse:collapse;width:100%;font-size:14px}.read-body .note-document th,.read-body .note-document td{border:1px solid var(--line);padding:9px 12px;text-align:left;min-width:70px;vertical-align:top}.read-body .note-document th{background:var(--soft)}.read-body .note-document table p{margin:0}
/* One mobile tab surface; content cards must not show through its selected tab. */
@media(max-width:767px){
 .student-sidebar::before{content:"";position:fixed;inset:auto 0 0;height:calc(140px + env(safe-area-inset-bottom,0px));background:linear-gradient(transparent,var(--canvas) 30%);pointer-events:none;z-index:4}
 #navigation{left:16px;right:16px;bottom:max(12px,env(safe-area-inset-bottom,0px));display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:4px;height:66px;padding:6px;border:1px solid var(--line);border-radius:23px;background:var(--paper);backdrop-filter:none;-webkit-backdrop-filter:none;box-shadow:0 6px 24px #26332c12;isolation:isolate;overflow:hidden}
 #navigation button{width:100%;height:52px;min-height:52px;min-width:0;padding:5px 2px;gap:3px;border-radius:17px;line-height:13px;letter-spacing:-.15px;background:transparent}
 #navigation button.active{background:var(--selection);color:var(--sage)}
 #navigation .nav-icon{height:25px;display:grid;place-items:center}
 #navigation svg{width:25px;height:25px}
 #navigation .nav-label{font-size:10px;line-height:13px;white-space:nowrap}
 .workspace{padding-bottom:calc(110px + env(safe-area-inset-bottom,0px))}
}

.student-first-answers{margin:26px 0;padding:14px 18px;border:1px solid var(--line);border-radius:14px}.student-first-answers summary{cursor:pointer;font-size:14px}.student-second-questions{margin:22px 0}.student-second-questions>.primary{margin:12px 0 20px}
/* Counsel sheets have one vertical scrolling axis, including nested native date fields. */
#sheet[data-context=counsel]:has(#sheet-form){overflow-x:hidden;overflow-y:auto;overscroll-behavior-x:none}
#sheet[data-context=counsel]:has(#sheet-form) #sheet-body,#sheet[data-context=counsel]:has(#sheet-form) #sheet-form,#sheet[data-context=counsel]:has(#sheet-form) #case-questions{min-width:0;max-width:100%;box-sizing:border-box;overflow-wrap:anywhere}
#sheet[data-context=counsel]:has(#sheet-form) :is(input,textarea,select){min-width:0;max-width:100%;box-sizing:border-box}
#sheet[data-context=counsel]:has(#sheet-form) input:is([type=date],[type=datetime-local],[type=time]){width:100%;min-inline-size:0}
#sheet[data-context=counsel]:has(#sheet-form) .sheet-head h2{min-width:0;overflow-wrap:anywhere}
/* Student account information is always available in My Learning. */
.student-learning-profile{background:var(--paper);border:1px solid var(--line);border-radius:18px;padding:20px;margin-bottom:24px}.student-profile-identity{display:flex;align-items:center;gap:14px;padding-bottom:18px}.student-profile-identity>img,.student-profile-avatar{width:54px;height:54px;border-radius:50%;object-fit:cover;flex-shrink:0}.student-profile-avatar{display:grid;place-items:center;background:var(--soft);color:var(--sage);font-size:17px;font-weight:650}.student-profile-identity h1{font-size:23px;font-weight:650;line-height:1.4;letter-spacing:-.6px}.student-profile-identity p{font-size:12px;color:var(--muted);margin-top:4px}.student-profile-settings{border-top:1px solid var(--line);display:grid;grid-template-columns:repeat(2,minmax(0,1fr));padding-top:10px;gap:2px 12px}.student-profile-settings button{display:flex;align-items:center;gap:9px;min-height:43px;font-size:13px;padding:9px 3px;color:var(--sage);border-radius:8px}.student-profile-settings button:hover{background:var(--soft)}.student-profile-settings button>svg{width:18px;height:18px}.student-profile-settings button>svg:last-child{margin-left:auto;width:15px;height:15px}.student-profile-settings button[data-learning-account=logout]{color:var(--muted)}
@media(max-width:767px){body.sah-student{--sc-height:0px;--sc-top:0px;padding-top:env(safe-area-inset-top,0px)!important}body.sah-student #seolha-topbar{display:none!important}.sc-ready.sah-student #main,.sc-ready.sah-student #shell[data-page=home] #main{padding-top:14px}.sah-student .student-sidebar::before{display:none!important}.sah-student #navigation{background:var(--paper);backdrop-filter:none;-webkit-backdrop-filter:none;box-shadow:0 5px 24px #20302719;transition:transform .25s cubic-bezier(.22,.68,.2,1),opacity .2s ease;will-change:transform;transform:translateY(0);opacity:1}.sah-student.student-dock-hidden #navigation{transform:translateY(calc(100% + 24px + env(safe-area-inset-bottom,0px)));opacity:0;pointer-events:none}.sah-student #navigation:has(button:focus-visible){transform:translateY(0);opacity:1;pointer-events:auto}.student-learning-profile{padding:16px;border-radius:15px;margin-bottom:20px}.student-profile-settings{gap:0 10px}.student-profile-settings button{font-size:12px}.student-profile-identity h1{font-size:22px}}

.login-form .signup-toggle{float:none;align-self:center;margin:-12px 0 0}
#signup-form .signup-toggle{margin:-16px 0 0}
