:root{font-family:Inter,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;color:#24343d;background:#f4f6f7;font-synthesis:none;--ink:#1d333d;--muted:#74828a;--border:#e3e8eb;--teal:#1e6269;--navy:#173b44;--paper:#fff;--soft:#edf5f4}

*{box-sizing:border-box}
body{margin:0}
button,input,textarea,select{font:inherit}
button,a,input,textarea,select{-webkit-tap-highlight-color:transparent}
button{cursor:pointer}
button:disabled{cursor:not-allowed}
button,a,input,textarea,select{outline-offset:3px}
button:focus-visible,a:focus-visible{outline:3px solid #56a8ad}
input:focus,textarea:focus,select:focus{outline:none;border-color:#508e94;box-shadow:0 0 0 3px #dfeff0}
button{border:0;background:none}
a{color:inherit}
svg{flex-shrink:0}
p{line-height:1.55}
h1,h2,h3,p{margin-top:0}
h1{font-size:29px;letter-spacing:-1px;font-weight:650;line-height:1.2;margin-bottom:10px}
h2{font-size:16px;letter-spacing:-.25px;font-weight:650;margin:0 0 5px}
h3{font-size:16px;margin-bottom:8px}
[hidden]{display:none!important}
.muted{color:var(--muted)}
.small{font-size:12px}
.eyebrow{font-size:10px;font-weight:700;letter-spacing:1.5px;color:#72858c;margin-bottom:10px}
.brand-mark{background:var(--navy);height:38px;width:38px;border-radius:10px;color:#fff;display:flex;align-items:center;justify-content:center;font-size:19px;font-weight:700;letter-spacing:-1.2px;flex-shrink:0;position:relative}
.brand-mark span{font-size:11px;margin-left:1px;margin-top:-12px;color:#8fc1bc}
.workspace{display:grid;grid-template-columns:222px minmax(0,1fr);min-height:100vh}
.sidebar{background:#fff;position:sticky;top:0;height:100vh;border-right:1px solid var(--border);padding:31px 20px 22px;display:flex;flex-direction:column}
.brand{display:flex;gap:11px;align-items:center;text-decoration:none;margin:0 3px 52px}
.brand strong{font-size:16px;letter-spacing:-.5px}
.brand>div:last-child>span{display:block;font-size:10px;color:var(--muted);margin-top:5px;letter-spacing:.2px}
.nav-caption{font-size:9px;letter-spacing:1.6px;font-weight:700;color:#9aa5aa;margin-left:12px;margin-bottom:13px}
nav{display:grid;gap:7px}
.nav-button{display:flex;align-items:center;gap:10px;width:100%;text-align:left;padding:12px;border-radius:7px;color:#77858c;font-size:12px;font-weight:550}
.nav-button svg{width:17px;height:17px}
.nav-button:hover{background:#f5f8f8;color:#274d55}
.nav-button.active{color:#225760;background:#edf4f4}
.nav-count{margin-left:auto;background:#fff;border:1px solid #e5eded;font-size:10px;min-width:20px;padding:2px 5px;border-radius:5px;text-align:center}
.sidebar-note{margin-top:auto;padding:24px 11px}
.sidebar-note strong{font-size:11px;font-weight:600;color:#4a616a}
.sidebar-note p{font-size:11px;color:#92a0a6;margin:8px 0 0;line-height:1.7}
.tiny-dot{display:inline-block;width:5px;height:5px;border-radius:50%;background:#539b92;margin-right:7px;vertical-align:2px}
.sidebar-footer{border-top:1px solid var(--border);padding-top:21px;display:flex;gap:9px;align-items:center}
.avatar{height:28px;width:28px;flex-shrink:0;display:grid;place-items:center;border-radius:50%;background:#eee6d6;color:#867549;font-size:12px;font-weight:600}
.sidebar-footer strong{display:block;font-size:10px;font-weight:600}
.sidebar-footer span{font-size:9px;display:block;color:#839198;margin-top:4px}
.main-shell{min-width:0}
.topbar{height:72px;background:#ffffffb3;border-bottom:1px solid var(--border);display:flex;align-items:center;justify-content:space-between;padding:0 38px;color:#76868e;font-size:11px}
.topbar-divider{margin:0 12px;color:#b9c2c7}
.text-button{color:var(--teal);padding:3px 0;font-size:11px;font-weight:600;white-space:nowrap}
.text-button:hover{color:#123e43;text-decoration:underline}
.text-button:disabled{color:#a5b1b6;text-decoration:none}
.topbar .text-button{color:#7d8c94;font-weight:500}
main{max-width:1380px;margin:0 auto;padding:33px 38px 30px}
.page-heading{display:flex;align-items:center;justify-content:space-between;gap:20px;margin:3px 0 27px}
.page-heading .muted{font-size:12px;margin-bottom:0}
.badge{font-size:9px;letter-spacing:.8px;font-weight:700;padding:6px 9px;border-radius:5px;white-space:nowrap;align-self:center}
.badge.neutral{background:#edf1f3;color:#788b95;border:1px solid #e0e7eb}
.badge.amber{background:#f6ead0;color:#956b25}
.badge.success{background:#eaf4ed;color:#3a7752}
.compose-grid{display:grid;grid-template-columns:minmax(270px, .86fr) minmax(380px,1.6fr);gap:22px;align-items:start}
.panel{background:var(--paper);border:1px solid var(--border);border-radius:10px;box-shadow:0 2px 3px #1f344003;overflow:hidden}
.panel-heading{display:flex;gap:12px;align-items:center;padding:22px 22px 20px;border-bottom:1px solid #edf0f2}
.panel-heading p{font-size:10px;color:#8a969d;margin:0}
.step-number{font-size:10px;letter-spacing:.8px;color:#52818a;background:#edf5f4;border:1px solid #dfebeb;border-radius:6px;height:30px;width:30px;display:grid;place-items:center;flex-shrink:0}
.count-pill{margin-left:auto;color:#6a828b;background:#f1f5f7;font-size:11px;border:1px solid #e5ebee;border-radius:5px;padding:4px 7px}
.student-controls{padding:19px 18px 0}
.search-field{display:flex;align-items:center;border:1px solid var(--border);border-radius:6px;height:38px;background:#fbfcfd;gap:8px;padding:0 10px}
.search-field:focus-within{border-color:#508e94;box-shadow:0 0 0 3px #dfeff0}
.search-field svg{height:15px;width:15px;color:#96a3aa}
.search-field input{border:0;outline:0;box-shadow:none;background:transparent;width:100%;padding:0;font-size:11px;height:100%;min-width:0}
.search-field input:focus{box-shadow:none}
.search-field input::placeholder{color:#9aa5ac}
.select-row{display:flex;align-items:center;justify-content:space-between;padding:16px 0 14px;border-bottom:1px solid #eef1f3;gap:8px}
.check-label{margin-bottom:0;display:flex;align-items:center;gap:9px;cursor:pointer;font-size:11px;color:#7e8e96}
.check-label input{margin:0;width:14px;height:14px;accent-color:var(--teal);flex-shrink:0;cursor:pointer}
.student-list{min-height:290px;height:410px;overflow-y:auto;padding:6px 10px;scrollbar-width:thin;scrollbar-color:#dbe5e8 transparent}
.student-row{display:flex;align-items:center;gap:11px;padding:12px 10px;border-radius:6px;cursor:pointer;transition:background .12s;margin:2px 0}
.student-row:hover{background:#f5f8f9}
.student-row.selected{background:#f0f6f6}
.student-row input{height:15px;width:15px;margin:0;accent-color:var(--teal);cursor:pointer;flex-shrink:0}
.student-avatar{height:32px;width:32px;border-radius:50%;background:#eef1f4;color:#7b8b98;font-size:11px;letter-spacing:.3px;display:grid;place-items:center;flex-shrink:0}
.student-row.selected .student-avatar{background:#dfeded;color:#457780}
.student-details{min-width:0}
.student-details strong{display:block;font-size:12px;font-weight:550;color:#425661;overflow-wrap:anywhere}
.student-details span{display:block;font-size:9px;color:#99a6ad;margin-top:4px;letter-spacing:.35px}
.student-check{font-size:11px;color:#538d8d;margin-left:auto;visibility:hidden}
.student-row.selected .student-check{visibility:visible}
.student-panel-footer{border-top:1px solid var(--border);padding:16px 19px;background:#fdfefe}
.selection-summary{display:flex;justify-content:space-between;align-items:center;gap:7px;padding-bottom:12px}
.selection-summary strong{font-size:11px;font-weight:600;color:#3d646e}
.selection-summary>span{color:#9aa7ae;font-size:10px}
.sync-row{display:flex;justify-content:space-between;gap:8px;font-size:9px;color:#96a3aa;align-items:center}
.sync-row>div{display:flex;align-items:center;gap:5px}
.sync-row .text-button{font-size:10px}
.status-dot{width:5px;height:5px;border-radius:50%;background:#bdc8cb;flex-shrink:0}
.status-dot.good{background:#6ca38f}
.sync-detail{font-size:10px;color:#9b7851;margin:9px 0 0}
.message-column{display:grid;gap:20px}
.panel-body{padding:21px 23px 22px}
label,.field-label{display:block;font-size:11px;color:#52666f;font-weight:550;margin-bottom:8px}
input[type=text],input[type=password],select,textarea{border:1px solid #dfe5e9;border-radius:6px;width:100%;color:#304852;background:#fff;padding:11px 12px;font-size:12px;transition:border-color .15s}
input::placeholder,textarea::placeholder{color:#a2adb3}
select{appearance:none;background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23849198' stroke-width='1.5'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");background-repeat:no-repeat;background-position:right 12px center;padding-right:35px;cursor:pointer}
textarea{resize:vertical;min-height:145px;line-height:1.8;font-size:12px}
.template-chips{display:flex;flex-wrap:wrap;gap:6px;margin:10px 0 22px}
.template-chip{padding:6px 9px;font-size:10px;color:#85959d;background:#f7f9fa;border:1px solid #e9eef0;border-radius:5px}
.template-chip:hover{border-color:#b9d1d3;color:#3c747b}
.template-chip.active{background:#edf5f4;color:#3d7379;border-color:#cfe2e2}
.label-row{display:flex;justify-content:space-between;align-items:center;gap:10px}
.label-row>span{font-size:9px;color:#9cabb2}
.required{color:#8b9ba2;font-size:10px;margin-left:3px}
.field-hint{font-size:10px;color:#96a4ac;line-height:1.6;margin:8px 0 20px}
.author-row{display:flex;gap:24px;align-items:center}
.author-row>div:first-child{max-width:250px;flex:1}
.translation-note{display:flex;gap:9px;align-items:center;color:#9aa7ae;font-size:10px;line-height:1.65}
.translation-note svg{height:18px;width:18px;color:#72a0a5}
.button{display:inline-flex;align-items:center;justify-content:center;gap:14px;font-weight:550;font-size:11px;padding:12px 16px;border-radius:6px;min-height:39px;white-space:nowrap}
.button.primary{background:var(--navy);color:#fff;box-shadow:0 1px 2px #18333d14}
.button.primary:hover{background:#25545d}
.button.primary:disabled{background:#edf1f3;color:#9caab2;box-shadow:none}
.button>span{font-size:15px;font-weight:400}
.notice-names{font-size:11px;font-weight:550;line-height:1.7;color:#506b76;margin-bottom:16px;overflow-wrap:anywhere}
.send-row{display:flex;align-items:center;justify-content:space-between;gap:15px;border-top:1px solid #edf0f2;padding-top:18px}
.delivery-address span{display:block;font-size:8px;font-weight:600;letter-spacing:1px;color:#9cabb1;margin-bottom:6px}
.delivery-address strong{display:block;color:#637b86;font-size:10px;font-weight:500;overflow-wrap:anywhere}
.workspace-footnote{text-align:center;font-size:9px;line-height:1.6;color:#a0acb4;margin-top:24px}
.banner{border-radius:7px;display:flex;gap:11px;align-items:flex-start;margin:0 0 24px;padding:14px 16px;font-size:11px;border:1px solid #d9e7e7;background:#edf6f4;color:#446c6a}
.banner strong{display:block;font-size:11px;font-weight:600;line-height:1.5}
.banner p{font-size:10px;margin:4px 0 0;line-height:1.6}
.banner .badge{margin-left:auto;font-size:8px}
.banner-icon{border:1px solid currentColor;border-radius:50%;width:15px;height:15px;line-height:13px;text-align:center;font-family:Georgia,serif;font-size:10px;margin-top:1px;flex-shrink:0}
.demo-banner,.setup-banner{background:#fffaf0;border-color:#eee2c8;color:#8c753f}
.banner.error{background:#fff4f1;border-color:#efdcd6;color:#a36251}
.inline-error{font-size:11px;color:#a44c40;line-height:1.6;border-left:2px solid #d3a497;padding-left:9px;margin:15px 0 0}
.empty-state{padding:36px 20px;text-align:center;color:#84969f;font-size:11px;line-height:1.7}
.empty-state strong{display:block;color:#607782;font-size:12px;margin-bottom:6px}
.history-list{display:grid;gap:14px}
.history-card{border:1px solid var(--border);background:#fff;border-radius:9px;padding:22px 24px}
.history-topline{display:flex;align-items:center;justify-content:space-between;gap:16px;margin-bottom:15px}
.history-topline h3{font-size:13px;margin:0}
.history-info{font-size:10px;color:#8798a1;line-height:1.7;margin-bottom:12px}
.history-card details{border-top:1px solid #edf0f2;padding-top:13px;margin-top:14px}
.history-card summary{font-size:11px;color:#4a7580;cursor:pointer}
.history-english{white-space:pre-wrap;font-size:11px;color:#7d9099;line-height:1.7;overflow-wrap:anywhere}
.center-screen{min-height:100vh;display:flex;flex-direction:column;justify-content:center;align-items:center;padding:24px;gap:18px}
.center-screen>p{font-size:13px;color:#8c9da5}
.login-card{background:#fff;border:1px solid var(--border);border-radius:12px;max-width:430px;padding:36px;width:100%;box-shadow:0 12px 45px #1e3b4510}
.login-card .brand-mark{margin-bottom:28px}
.login-card h1{font-size:24px;line-height:1.3}
.login-card>.muted{font-size:12px;line-height:1.7;margin-bottom:24px}
.login-card .button{width:100%;margin-top:16px}
.login-card .small{font-size:10px;margin:18px 0 0;text-align:center}
.toast{position:fixed;bottom:25px;left:50%;transform:translateX(-50%);background:#193d44;color:#fff;border-radius:7px;font-size:12px;padding:13px 20px;max-width:calc(100vw - 40px);box-shadow:0 5px 25px #1e3b452e;z-index:10;text-align:center}
.loading-label{opacity:.65}
input:disabled,textarea:disabled,select:disabled{background:#f7f9fa;color:#8f9ea6}
.student-row:has(input:disabled){cursor:default}

@media(min-width:1500px){main{padding-top:40px}
.compose-grid{grid-template-columns:350px minmax(0,1fr)}
.student-list{height:440px}
}

@media(max-width:1100px){.workspace{grid-template-columns:185px minmax(0,1fr)}
.sidebar{padding:26px 13px 18px}
.brand{gap:8px}
.brand strong{font-size:14px}
.brand-mark{height:34px;width:34px;font-size:18px}
.sidebar-footer span{font-size:8px}
.topbar{padding:0 25px}
main{padding:26px 25px}
.compose-grid{grid-template-columns:minmax(235px,.85fr) minmax(340px,1.5fr);gap:16px}
.panel-heading{padding:18px 16px;gap:10px}
.panel-body{padding:19px 18px}
.panel-heading p{font-size:9px}
.panel-heading h2{font-size:14px}
.translation-note{display:none}
.button{padding:11px 13px;gap:10px;font-size:10px}
.student-controls{padding:17px 15px 0}
.student-panel-footer{padding:15px}
.student-avatar{width:27px;height:27px}
.student-row{gap:8px}
.student-details strong{font-size:11px}
.send-row{gap:10px}
.delivery-address strong{font-size:9px}
}

@media(max-width:880px){.workspace{grid-template-columns:1fr}
.sidebar{height:auto;position:static;display:flex;flex-direction:row;align-items:center;padding:17px 24px;border-right:0;border-bottom:1px solid var(--border);gap:25px}
.brand{margin:0;margin-right:auto}
.nav-caption,.sidebar-note,.sidebar-footer{display:none}
.sidebar nav{display:flex;gap:6px}
.nav-button{padding:10px;font-size:11px;white-space:nowrap;gap:7px}
.nav-button svg{width:15px;height:15px}
.nav-count{display:none}
.topbar{height:43px;font-size:10px}
.compose-grid{grid-template-columns:minmax(230px,.85fr) minmax(330px,1.5fr)}
main{padding:28px 24px}
.page-heading h1{font-size:27px}
.page-heading .muted{font-size:11px}
.student-list{height:407px}
}

@media(max-width:680px){.sidebar{padding:16px;gap:12px}
.brand strong{font-size:14px}
.brand>div:last-child>span{font-size:9px}
.brand-mark{width:32px;height:32px;font-size:17px}
.nav-button{font-size:10px;padding:9px 8px;gap:5px}
.nav-button svg{display:none}
.topbar{padding:0 18px;font-size:9px}
.topbar-divider{margin:0 7px}
.topbar .text-button{font-size:10px}
main{padding:24px 16px}
.page-heading{margin-bottom:22px;gap:12px;align-items:flex-start}
.page-heading h1{font-size:25px;letter-spacing:-.7px}
.page-heading .muted{font-size:11px;max-width:300px;line-height:1.7}
.page-heading>.badge{font-size:8px;padding:5px 7px}
.eyebrow{font-size:8px;letter-spacing:1.2px}
.compose-grid{grid-template-columns:1fr;gap:18px}
.student-list{height:245px;min-height:100px}
.student-row{padding:10px 12px;gap:12px}
.student-avatar{width:30px;height:30px}
.student-details strong{font-size:12px}
.student-controls{padding:16px 18px 0}
.student-panel-footer{padding:15px 19px}
.panel-heading{padding:19px 19px;gap:12px}
.panel-heading h2{font-size:15px}
.panel-heading p{font-size:10px}
.panel-body{padding:20px}
.message-column{gap:18px}
.button{font-size:11px;padding:12px 14px}
.template-chip{font-size:10px}
.banner{padding:13px;gap:9px;margin-bottom:23px}
.banner p{font-size:10px}
.banner .badge{display:none}
.history-card{padding:19px}
.history-topline{gap:10px;align-items:flex-start}
.history-topline h3{line-height:1.6}
.history-card .badge{font-size:8px}
.workspace-footnote{font-size:9px;margin:20px 15px 0}
.login-card{padding:28px}
.send-row{flex-wrap:wrap}
.delivery-address strong{font-size:10px}
.toast{bottom:18px;font-size:11px}
}

@media(prefers-reduced-motion:reduce){*{transition:none!important;scroll-behavior:auto!important}
}

.send-hint{margin:22px 0 14px;line-height:1.7}
