@charset "UTF-8";
:root{--ink:#17233e;--muted:#68738a;--blue:#2949db;--line:#e0e5ee;--paper:#fff;--wash:#f5f7fc;--orange:#fd7546;font-family:Inter,-apple-system,BlinkMacSystemFont,"PingFang SC","Microsoft YaHei",sans-serif;color:var(--ink);background:var(--wash);font-synthesis:none}*{box-sizing:border-box}body{margin:0}button,input,textarea,select{font:inherit}button,a,select{touch-action:manipulation}button{cursor:pointer}button:disabled{opacity:.5;cursor:wait}button:focus-visible,a:focus-visible,select:focus-visible{outline:3px solid #fa9870;outline-offset:4px}a{color:inherit;text-decoration:none}.topbar{height:84px;padding:0 max(5%,calc((100vw - 1320px)/2));display:flex;justify-content:space-between;align-items:center;background:white;border-bottom:1px solid var(--line)}.brand{display:flex;align-items:center;gap:12px}.brand b{font-size:24px}.mark{display:grid;place-items:center;background:var(--blue);color:white;width:38px;height:38px;border-radius:12px;font-size:24px;font-weight:700}.brand-en{font-size:12px;letter-spacing:2px;padding-left:12px;border-left:1px solid var(--line);font-weight:600}.top-actions{display:flex;align-items:center;gap:24px}.local-tag{font-size:12px;border:1px solid var(--line);border-radius:20px;padding:5px 11px;color:var(--muted)}.plain,.text-button{background:none;border:0;color:var(--ink);padding:8px 0;font-size:14px}.text-button{color:var(--blue);font-weight:600}main{max-width:1320px;margin:auto;padding:48px 32px 0}.intro{display:flex;justify-content:space-between;align-items:flex-end;margin-bottom:32px}.eyebrow{font-size:12px;letter-spacing:2px;color:var(--blue);font-weight:700}h1{font-size:42px;line-height:1.3;letter-spacing:-1px;margin:15px 0}p{line-height:1.7} .intro p{margin:0;color:var(--muted);font-size:16px}.flow{display:flex;gap:16px;padding-bottom:10px;font-size:14px;color:var(--muted);align-items:center}.flow span{display:flex;flex-direction:column;gap:10px}.flow b{font-size:21px;font-weight:400;color:var(--ink)}.flow i{font-style:normal;color:#c4ccdc}.bank-strip{background:#ebeffe;border:1px solid #dce3ff;padding:13px 20px;display:flex;align-items:center;justify-content:space-between;border-radius:10px;margin-bottom:24px;font-size:14px}.bank-strip b{font-weight:600;margin-right:16px}.bank-strip #bank-meta{color:#58647e}.workspace{display:grid;grid-template-columns:1fr 1.13fr;background:white;border:1px solid var(--line);border-radius:20px;overflow:hidden;box-shadow:0 12px 40px #17233e04}.story-panel,.matches-panel{padding:30px}.story-panel{border-right:1px solid var(--line)}.section-head{display:flex;align-items:center;gap:12px}.step{font-size:12px;font-weight:700;color:var(--blue);background:#eef1ff;width:29px;height:29px;display:grid;place-items:center;border-radius:8px}h2{font-size:20px;margin:0;letter-spacing:-.3px}.muted{font-size:14px;color:var(--muted);margin:10px 0 23px}label{display:block;font-size:14px;font-weight:600;margin-bottom:10px}label span{font-weight:400;color:var(--muted);margin-left:8px;font-size:12px}textarea{resize:vertical;display:block;width:100%;min-height:202px;background:#fafbfe;border:1px solid #dce2ef;border-radius:12px;padding:17px;line-height:1.85;font-size:16px;color:var(--ink);transition:.15s}textarea:focus{outline:0;border-color:var(--blue);box-shadow:0 0 0 3px #2949db12}textarea::placeholder{color:#949daf}.under-input{display:flex;justify-content:space-between;gap:10px;color:var(--muted);font-size:12px;line-height:1.6;margin-top:9px}.under-input span:last-child{white-space:nowrap}.example-button{border:1px solid var(--line);padding:8px 12px;border-radius:7px;background:white;font-size:13px;color:#56617c;margin:16px 0 24px}.filter-line{display:flex;align-items:center;justify-content:space-between;margin-bottom:20px;gap:12px}.filter-line label{margin:0}.filter-line select{max-width:65%;border:1px solid var(--line);border-radius:7px;padding:9px;background:white;color:var(--ink);font-size:14px}.primary{display:flex;justify-content:space-between;align-items:center;border:0;border-radius:10px;background:var(--blue);color:#fff;width:100%;padding:16px 20px;font-size:16px;font-weight:600}.primary:hover{background:#203dc1}.primary span{font-size:22px}.fine{font-size:12px;color:var(--muted);line-height:1.7}.story-tip{border-top:1px dashed var(--line);margin-top:22px;padding-top:20px}.story-tip>span{font-size:12px;font-weight:700;color:#b7572f}.story-tip p{font-size:14px;color:var(--muted);margin:8px 0 0}.count{margin-left:auto;font-size:12px;color:var(--muted);white-space:nowrap}.matches{display:grid;gap:12px}.empty{text-align:center;min-height:365px;display:flex;flex-direction:column;align-items:center;justify-content:center;padding:30px 10px;background:linear-gradient(180deg,#f8faff,white);border-radius:14px}.empty-symbol{font-family:Georgia,serif;font-size:94px;line-height:1;color:#b7c4fb;height:80px}.empty h3{font-size:18px;font-weight:500}.empty p{color:var(--muted);font-size:14px;line-height:1.9}.match-card{display:block;text-align:left;padding:18px 19px;border:1px solid var(--line);border-radius:12px;background:white;width:100%;color:var(--ink)}.match-card:hover,.match-card.selected{border-color:var(--blue);background:#f8f9ff}.card-meta{display:flex;justify-content:space-between;align-items:center;font-size:12px;color:var(--muted);margin-bottom:10px}.part-tag{font-weight:700;color:var(--blue);letter-spacing:1px}.fit{background:#eef1ff;border-radius:4px;padding:3px 7px;color:#4e61a0}.match-card h3{font-size:17px;margin:0 0 6px;font-weight:600;line-height:1.5}.match-card .en-title{font-size:14px;margin:0 0 12px;color:#58647b;line-height:1.5}.match-card .reason,.match-card .gap{font-size:13px;margin:5px 0;line-height:1.65}.reason{color:#4e5f7d}.gap{color:#996140}.answer-section{margin-top:26px;background:white;border:1px solid var(--line);padding:30px;border-radius:20px}.answer-top{display:flex;align-items:center;justify-content:space-between;gap:30px;margin:24px 0 16px}.answer-top h3{font-size:23px;margin:8px 0;font-family:Georgia,serif;font-weight:400;line-height:1.5}#cue-points{padding-left:20px;color:var(--muted);font-size:14px;line-height:1.7;margin-bottom:0}.small{width:auto;white-space:nowrap;font-size:14px;padding:13px 18px}.score-note{font-size:12px;color:var(--muted);padding:12px 14px;background:#f7f8fb;border-radius:7px}.bands{display:flex;border-bottom:1px solid var(--line);gap:12px;margin-top:24px}.bands button{border:0;border-bottom:3px solid transparent;background:white;color:var(--muted);padding:14px 24px;font-size:22px}.bands button span{font-size:13px;margin-left:8px}.bands button.active{color:var(--blue);border-color:var(--blue)}.answer-content{padding:22px 4px 4px;max-width:950px}.answer-text{font-family:Georgia,"Times New Roman",serif;font-size:21px;line-height:1.95;white-space:pre-wrap;margin-top:0}.answer-notes{display:grid;grid-template-columns:1fr 1fr;gap:25px;border-top:1px solid var(--line);padding-top:20px}.answer-notes h4{font-size:14px;margin:0 0 8px}.answer-notes p{font-size:14px;color:var(--muted);margin:0}.secondary{padding:10px 15px;background:#fff;border:1px solid var(--line);color:var(--ink);border-radius:7px;font-size:14px}#status,#import-status{font-size:14px;color:#a95020;white-space:pre-wrap}footer{display:flex;justify-content:space-between;gap:20px;padding:30px 0;font-size:12px;color:var(--muted)}dialog{border:1px solid var(--line);border-radius:18px;max-width:580px;width:calc(100% - 32px);padding:28px;color:var(--ink)}dialog::backdrop{background:#17233e66;backdrop-filter:blur(3px)}dialog p{font-size:14px;color:var(--muted)}.dialog-head{display:flex;align-items:center;justify-content:space-between}.bank-detail{background:var(--wash);padding:15px;border-radius:9px;font-size:14px;line-height:1.9;white-space:pre-wrap;overflow-wrap:anywhere}.upload{display:block;padding:14px;background:var(--blue);color:white;border-radius:8px;text-align:center;margin-top:20px;cursor:pointer}.upload input{display:block;width:100%;margin-top:12px;font-size:12px}.dialog-actions{display:flex;justify-content:space-between;gap:15px;margin-top:20px}[hidden]{display:none!important}@media(max-width:950px){.flow{display:none}main{padding:32px 20px 0}.story-panel,.matches-panel{padding:23px}h1{font-size:36px}.workspace{grid-template-columns:1fr 1fr}.brand-en{display:none}}@media(max-width:700px){.topbar{height:70px;padding:0 20px}.top-actions{gap:14px}.workspace{grid-template-columns:1fr}.story-panel{border-right:0;border-bottom:1px solid var(--line)}h1{font-size:32px}.intro{margin-bottom:24px}.bank-strip{align-items:flex-start;padding:12px 14px;gap:10px}.bank-strip>span{display:flex;flex-direction:column;gap:5px}.bank-strip button{white-space:nowrap}.answer-section{padding:22px}.answer-top{flex-direction:column;align-items:flex-start;gap:15px}.bands{gap:0}.bands button{padding:12px 14px;flex:1}.bands button span{display:block;margin:5px 0 0;font-size:12px}.answer-notes{grid-template-columns:1fr}.answer-text{font-size:19px}.count{white-space:normal;font-size:12px}.section-head{gap:8px}h2{font-size:18px}footer{flex-direction:column;gap:10px}.under-input{flex-wrap:wrap}}

.guided-note{font-size:14px;background:#f0f3ff;color:#4e61a0;padding:12px 14px;border-radius:9px;margin:0 0 20px;line-height:1.7}.guided-grid{display:grid;grid-template-columns:1fr 1fr;gap:14px}.story-panel input[data-story-field]{display:block;width:100%;padding:12px 14px;font-size:16px;color:var(--ink);border:1px solid #dce2ef;border-radius:9px;background:#fafbfe;margin-bottom:20px;line-height:1.6}.story-panel input:focus{outline:0;border-color:var(--blue);box-shadow:0 0 0 3px #2949db12}.story-panel input::placeholder{color:#949daf}.story-panel textarea[data-story-field]{min-height:116px;margin-bottom:20px;padding:12px 14px}.field-hint{font-size:13px;line-height:1.7;color:var(--muted);margin:-3px 0 10px}.story-preview{border:1px solid var(--line);border-radius:9px;padding:12px 14px;margin-top:6px}.story-preview summary{font-size:14px;cursor:pointer;color:#58647e}.story-preview summary span{float:right;font-size:12px;color:var(--muted)}.story-preview label{margin-top:14px;font-weight:400}.story-preview textarea{min-height:150px;font-size:14px;background:#f8f9fc}.story-panel .muted{margin-bottom:14px}@media(max-width:420px){.guided-grid{grid-template-columns:1fr;gap:0}}

#txt-stage{border-top:1px solid var(--line);margin-top:22px;padding-top:14px}#txt-stage input:not([type=checkbox]),#txt-stage select{width:100%;padding:10px;border:1px solid var(--line);border-radius:7px;font-size:16px;margin-bottom:14px;color:var(--ink);background:white}#txt-preview{max-height:55vh;overflow:auto;margin:15px 0;border:1px solid var(--line);border-radius:9px;padding:14px}.txt-file+ .txt-file{border-top:2px solid var(--line);margin-top:20px}.txt-file h4{margin:10px 0}.txt-file pre{white-space:pre-wrap;overflow-wrap:anywhere;font-size:13px;line-height:1.6;background:var(--wash);padding:12px}.txt-file summary{font-size:14px;cursor:pointer}.txt-row{padding:16px 0;border-top:1px dashed var(--line);margin-top:14px}.txt-row textarea{min-height:86px;font-size:15px;margin-bottom:15px}.txt-row input[type=checkbox]{margin-right:9px;width:16px;height:16px}.import-warning{color:#a35a20!important;background:#fff5eb;padding:10px;border-radius:6px;font-size:13px!important}

body.managing main> :not(#manager){display:none!important}.manager-head{display:flex;justify-content:space-between;align-items:center;gap:15px}.manager-head h1{font-size:34px}.manager-head p{color:var(--muted);font-size:14px}.manager-actions{display:flex;gap:12px;flex-wrap:wrap;margin:24px 0}.manager-filters{display:grid;grid-template-columns:2fr 1fr 1.5fr 1fr;gap:15px;background:white;padding:20px;border-radius:12px;border:1px solid var(--line)}.manager-filters input,.manager-filters select,#question-editor input,#question-editor select{display:block;width:100%;margin:10px 0;padding:10px;border:1px solid var(--line);border-radius:7px;background:white;color:var(--ink);font-size:16px}.library-card{display:flex;justify-content:space-between;gap:20px;background:white;border:1px solid var(--line);border-radius:12px;padding:20px;margin:12px 0}.library-card h3{font-size:18px;line-height:1.65;margin:10px 0;overflow-wrap:anywhere}.library-card ul{color:var(--muted);font-size:14px;line-height:1.8;padding-left:20px}.library-card .part-tag{font-size:13px}.library-actions{display:flex;flex-direction:column;gap:10px;min-width:100px}.library-card .fine{overflow-wrap:anywhere}#question-editor textarea{min-height:90px;margin-bottom:16px;font-size:16px}#question-editor form{margin-top:20px}#edit-error,#manager-status{color:#9a572e;font-size:14px}#q-pages{margin:24px 0}@media(max-width:700px){.manager-filters{grid-template-columns:1fr 1fr}.manager-filters label:first-child{grid-column:1/-1}.library-card{flex-direction:column}.library-actions{flex-direction:row;align-items:center}.manager-head{align-items:flex-start}}

#history-dialog{max-width:900px;max-height:90vh;overflow:auto}#history-search{width:100%;padding:12px;border:1px solid var(--line);border-radius:8px;font-size:16px}#history-detail{border-top:2px solid var(--line);margin-top:24px;padding-top:20px;overflow-wrap:anywhere}.history-story{white-space:pre-wrap;background:var(--wash);padding:16px;border-radius:8px}.history-answer{border:1px solid var(--line);border-radius:10px;margin:16px 0;padding:16px}.history-answer summary{cursor:pointer;font-weight:600}.history-answer .answer-text{margin-top:18px}#history-save-status{font-size:14px;color:var(--blue)}@media(max-width:480px){.topbar{padding:0 12px}.top-actions{gap:12px}.local-tag{display:none}.brand{gap:7px}.top-actions button{font-size:14px}}

.voice-entry{margin:0 0 20px;color:var(--blue)}#voice-dialog select{display:block;width:100%;padding:10px;border:1px solid var(--line);border-radius:8px;background:white;font-size:16px;margin-bottom:18px}#voice-text{min-height:150px;margin-bottom:18px}#voice-status{font-size:14px;color:var(--blue)}#voice-interim{overflow-wrap:anywhere}#voice-dialog .fine{font-size:14px}

.brand-en{font-size:16px;letter-spacing:0;font-weight:600}@media(max-width:950px){.brand-en{display:inline}}@media(max-width:480px){.topbar{height:auto;min-height:70px;flex-wrap:wrap;gap:10px;padding:14px 12px}.brand-en{font-size:14px;padding-left:8px}.top-actions{margin-left:auto}}

/* StoryInto learning hub */
:root{--blue:#087ead;--wash:#fff;--ink:#273443;--muted:#748292;--line:#e5ebef}body{background:#fff}.site-sidebar{position:fixed;inset:0 auto 0 0;width:252px;border-right:2px solid var(--line);background:#fff;padding:30px 18px;display:flex;flex-direction:column;z-index:10}.portal-brand{display:flex;gap:12px;align-items:center;font-size:27px;font-weight:800;letter-spacing:-1px;padding:0 7px 42px}.portal-brand small{display:block;font-size:12px;letter-spacing:1px;font-weight:500;color:var(--muted);margin-top:7px}.brand-symbol{font-size:42px;color:#edac3b}.nav-item{width:100%;display:grid;grid-template-columns:40px 1fr;text-align:left;align-items:center;border:2px solid transparent;background:white;border-radius:14px;padding:14px 12px;margin:7px 0;color:#697b90;font-weight:700;font-size:16px}.nav-item>span{grid-row:1/3;font-size:28px}.nav-item small{font-size:10px;letter-spacing:1px;margin-top:4px;font-weight:600}.nav-item.active{background:#e5f5fd;border-color:#85d6f7;color:#078abb}.nav-item:hover{background:#f3f9fc}.sidebar-bottom{margin-top:auto}.sidebar-bottom p{font-size:13px;color:#95a0ac;padding:10px 14px}.sidebar-bottom .local-tag{font-size:11px}.topbar{margin-left:252px;height:78px;padding:0 44px;border:0;color:#8793a0;font-size:13px}.preview-pill{font-size:12px;color:#7391a0;background:#f5fafb;border-radius:30px;padding:9px 14px}main{margin-left:252px;max-width:none;padding:25px 5% 0}.home-view main>:not(#portal){display:none!important}body:not(.home-view) #portal{display:none}#portal{max-width:1120px;margin:auto}.portal-heading{display:flex;justify-content:space-between;align-items:center;margin:5px 0 44px}.portal-kicker{font-size:11px;letter-spacing:2px;font-weight:700;color:#b18b4b}.portal-heading h1{font-size:32px;letter-spacing:.2px;margin:13px 0}.portal-heading p:last-child{font-size:15px;color:#80909e}.hello-stamp{color:#b69d79;font-family:Georgia,serif;font-style:italic;font-size:23px;line-height:1.25;transform:rotate(8deg);border:1px dashed #dccbb0;border-radius:50%;padding:22px;text-align:center}.category-heading{display:flex;align-items:baseline;gap:18px;margin-bottom:20px}.category-heading h2{color:#166584;font-size:20px}.category-heading>span{font-size:13px;color:#96a0aa}.course-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:20px}.course-card{font:inherit;display:flex;flex-direction:column;align-items:center;text-align:center;border:2px solid transparent;background:#fff;border-radius:20px;padding:22px 12px;color:var(--ink);transition:transform .15s,border-color .15s;min-width:0}.course-card:hover{transform:translateY(-4px);border-color:#d9eaf0;background:#fbfdff}.course-card.live{background:#f3fbff;border-color:#a6dff5;box-shadow:0 5px 0 #e3f1f8}.course-icon{font-size:58px;height:87px;display:flex;align-items:center;justify-content:center;filter:saturate(.7)}.course-name{font-size:18px;font-weight:750;margin-top:10px;line-height:1.5}.course-en{font-size:13px;color:#7d8a96;margin:6px 0 15px}.course-desc{font-size:13px;color:#8995a1;line-height:1.7;max-width:180px;min-height:45px}.course-status{font-size:12px;color:#99a4ad;background:#f3f5f7;border-radius:20px;padding:5px 12px;margin-top:19px}.live .course-status{background:#dff3fd;color:#067fab;font-weight:700}.second{margin-top:40px}.growth-grid{grid-template-columns:repeat(4,minmax(0,1fr))}.portal-note{margin-top:32px;display:flex;align-items:center;gap:18px;background:#fcfaf4;border-radius:14px;padding:20px 25px;color:#87734e}.portal-note>span{font-size:30px;color:#d4ac61}.portal-note b{font-size:14px}.portal-note p{font-size:13px;margin:6px 0 0;color:#a09279}#portal footer{font-size:11px;color:#a3aeb7;padding-top:25px}.intro h1{font-size:30px}.primary{background:#087ead}.primary:hover{background:#07678f}
@media(min-width:1500px){main{padding-left:7%;padding-right:7%}.course-card{padding-top:28px;padding-bottom:28px}}
@media(max-width:1100px){.site-sidebar{width:210px;padding:25px 12px}.portal-brand{font-size:23px}.topbar,main{margin-left:210px}.course-grid,.growth-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.portal-heading h1{font-size:27px}.hello-stamp{display:none}.preview-pill{display:none}}
@media(max-width:700px){.site-sidebar{position:static;width:100%;padding:15px;border-right:0;border-bottom:1px solid var(--line)}.portal-brand{padding:0 0 14px}.site-sidebar nav{display:flex;gap:5px;overflow-x:auto}.nav-item{min-width:116px;width:auto;padding:9px 7px;font-size:13px;grid-template-columns:27px 1fr;margin:0}.nav-item>span{font-size:21px}.nav-item small{font-size:8px}.sidebar-bottom{display:none}.topbar{margin-left:0;height:42px;padding:0 20px}main{margin-left:0;padding:12px 18px 0}.portal-heading{margin:0 0 28px}.portal-heading h1{font-size:25px}.portal-heading p:last-child{font-size:14px}.category-heading{gap:9px;flex-wrap:wrap}.category-heading>span{font-size:12px}.course-grid{gap:10px}.course-card{padding:14px 8px}.course-name{font-size:16px}.course-icon{font-size:47px;height:65px}.course-desc{font-size:12px}.portal-note{padding:16px}.portal-note p{font-size:12px}}
@media(max-width:700px){.sidebar-bottom{display:block;margin-top:8px}.sidebar-bottom p,.sidebar-bottom .local-tag{display:none}.sidebar-bottom .nav-item{padding:5px 8px;display:flex;gap:9px}.sidebar-bottom .nav-item small{margin-left:4px}}
/* Story workbook */
body:not(.home-view):not(.managing) main{background:#fcfdfd;padding-top:18px}.intro{align-items:center;gap:24px;margin-bottom:25px}.intro .eyebrow{font-size:11px;letter-spacing:2px;color:#b17630}.intro h1{font-size:29px;line-height:1.5;margin:10px 0 8px}.intro p{font-size:14px;max-width:540px;line-height:1.8}.flow{gap:9px;flex-shrink:0}.flow span{align-items:center;padding:12px 13px;border:1px solid #e1ebed;border-radius:16px;background:#fff;font-size:12px;gap:6px;box-shadow:0 3px 0 #eaf0f1}.flow b{color:#1488a4;font-size:24px}.bank-strip{background:#eff8f7;border:1px dashed #b5d6d3;border-radius:13px;padding:12px 17px;font-size:13px}.bank-strip #bank-meta{font-size:12px;color:#78918e}.workspace{grid-template-columns:1.04fr 1fr;gap:24px;border:0;background:transparent;box-shadow:none;overflow:visible;border-radius:0;align-items:start}.story-panel{border:1.5px solid #d9e5e8;border-radius:23px;background:#fff;padding:26px;box-shadow:0 5px 0 #eaf0f1}.matches-panel{border:1.5px solid #e2e8ee;border-radius:23px;background:#f6faff;padding:26px;position:sticky;top:20px;min-height:480px}.section-head .step{width:33px;height:33px;border:1px solid #b9dde7;background:#e7f7fc;border-radius:11px;box-shadow:0 3px 0 #d5ebf1;font-size:13px}.matches-panel .step{background:#fff2d1;color:#a67725;border-color:#edd9aa;box-shadow:0 3px 0 #f0e7cd}.story-panel h2,.matches-panel h2{font-size:19px}.guided-note{background:#fff7dc;border:1px solid #f0dfa5;color:#957035;border-radius:5px 12px 12px 5px;padding:12px 14px;transform:rotate(-.6deg);font-size:14px;margin:18px 0}.voice-entry{border:1.5px solid #bbdce5;border-radius:20px;background:#f3fbfd;color:#397586;padding:9px 15px;font-size:14px;box-shadow:0 3px 0 #e1f0f4;margin:0 0 24px}.story-panel label{font-size:14px;color:#425a64}.story-panel input[data-story-field],.story-panel textarea[data-story-field]{background:#fbfdfd;border:1.5px solid #dce8e9;border-radius:12px;font-size:16px;padding:12px 14px}.story-panel input[data-story-field]:focus,.story-panel textarea[data-story-field]:focus{border-color:#54adbf;box-shadow:0 0 0 4px #edf8fa;background:white}.story-panel .example-button{background:#fff9ed;border-color:#ecd9b6;color:#947238;border-radius:16px;font-size:14px}.story-panel .primary{border-radius:14px;background:#148ca9;border:1px solid #08718e;box-shadow:0 4px 0 #086b83;padding:15px 17px}.story-panel .primary:hover{background:#11809b;transform:translateY(-1px)}.story-panel .primary:active{transform:translateY(3px);box-shadow:0 1px 0 #086b83}.story-preview{background:#f8fafb;border-style:dashed}.matches-panel .empty{min-height:355px;background:#fff;border:1.5px dashed #d0dce7;border-radius:18px;padding:30px 15px}.matches-panel .empty-symbol{font-family:inherit;font-size:58px;height:auto;line-height:1.3;margin-bottom:18px;transform:rotate(-8deg);color:#71a8bb}.empty h3{font-size:19px;font-weight:600;color:#52697a;margin:17px 0 5px}.empty p{font-size:14px;color:#738695}.match-card{border:1.5px solid #dae4eb;border-radius:15px;box-shadow:0 3px 0 #e5edf3}.match-card:hover,.match-card.selected{border-color:#57aabd;background:#fff}.answer-section{border:1.5px solid #dce6e9;box-shadow:0 5px 0 #eaf0f1;border-radius:23px}.score-note{background:#fff9e9;color:#8a7954}
@media(max-width:1200px){.intro .flow{display:none}.workspace{gap:16px}.story-panel,.matches-panel{padding:21px}.section-head{flex-wrap:wrap}}
@media(max-width:900px){.workspace{grid-template-columns:1fr}.matches-panel{position:static;min-height:0}.intro h1{font-size:27px}.bank-strip>span{display:flex;flex-direction:column;gap:5px}.bank-strip button{white-space:nowrap}.matches-panel .empty{min-height:275px}}

/* Compact category cards */
#portal .course-grid{gap:14px}#portal .course-card{padding:16px 10px;border-radius:17px}#portal .course-icon{font-size:46px;height:65px}#portal .course-name{font-size:16px;margin-top:7px}#portal .course-en{font-size:12px;margin:5px 0 10px}#portal .course-desc{font-size:13px;min-height:42px;line-height:1.6}#portal .course-status{margin-top:12px;padding:4px 11px}#portal .category-heading.second{margin-top:30px}
@media(max-width:700px){#portal .course-grid{gap:10px}#portal .course-card{padding:12px 8px}#portal .course-icon{font-size:40px;height:54px}#portal .course-name{font-size:15px}}

/* Part 3 opinion notebook */
.p3-guide{margin:22px 0;padding:24px;border:1px solid #d9e7df;border-radius:20px;background:#f4faf5}
.p3-guide h3{margin:8px 0}.p3-guide label{display:block;margin:18px 0 8px;font-weight:650}
.p3-guide textarea{display:block;width:100%;box-sizing:border-box;background:white;padding:14px;border:1px solid #cbded2;border-radius:12px;font:inherit;resize:vertical}
.p3-guide details{margin-top:18px;color:#476754}.p3-guide summary{cursor:pointer}
#p3-status{color:#9a4d25}

#supplement-dialog{width:min(640px,calc(100vw - 32px));max-height:85vh;overflow-y:auto;box-sizing:border-box}
#supplement-dialog .p3-guide{padding:18px;margin:18px 0}
#supplement-facts label{display:block;margin:20px 0 10px;font-weight:600;line-height:1.7}
#supplement-text{width:100%;box-sizing:border-box;font:inherit;padding:14px;border:1px solid #cbded2;border-radius:12px;resize:vertical}
#supplement-status{color:#9a4d25}

#confirm-dialog{width:min(680px,calc(100vw - 32px));max-height:85vh;overflow-y:auto;box-sizing:border-box}
.confirm-summary{white-space:pre-wrap;overflow-wrap:anywhere;background:#f4faf5;border:1px solid #d9e7df;border-radius:16px;padding:20px;line-height:1.85;margin:18px 0}
.confirm-notice{background:#fff8e7;border-radius:12px;padding:14px;font-size:14px;line-height:1.7}
#confirm-status{color:#9a4d25}

.answer-metrics{padding:14px 18px;background:#edf7fa;border:1px solid #d6e9ef;border-radius:14px;margin:16px 0}
.answer-metrics-line{display:flex;flex-wrap:wrap;align-items:center;gap:12px 24px;color:#276074}
.answer-metrics-line label{display:flex;align-items:center;gap:8px;font-size:14px;margin:0}
.answer-metrics-line select{width:auto;margin:0;padding:6px 10px;background:white}
.answer-metrics .fine{margin:10px 0 0;line-height:1.6}

.history-edit-form,.history-draft{margin:20px 0;padding:18px;border-radius:14px;background:#f2f8f5}
.history-edit-form textarea,.history-draft textarea{display:block;box-sizing:border-box;width:100%;margin:12px 0;padding:12px;font:inherit;line-height:1.7;border:1px solid #ccdcd6;border-radius:10px}
.history-answer button{margin:8px 8px 0 0}

/* A quieter collection view with the question as the focal point. */
#history-dialog{max-width:860px;padding:30px 34px;background:#f8fafb;border:0;border-radius:24px;box-shadow:0 24px 90px #142d4133}
#history-dialog::backdrop{background:#1c304856;backdrop-filter:blur(5px)}
#history-dialog .history-heading{align-items:flex-start}
#history-dialog .history-heading .eyebrow{font-size:10px;letter-spacing:2.5px;margin:0 0 8px;color:#42808c}
#history-dialog .history-heading h2{font-size:28px;letter-spacing:-.7px;color:#203947}
#history-dialog .history-subtitle{font-size:14px;margin:8px 0 0;color:#71828c}
#history-close{display:grid;place-items:center;width:34px;height:34px;padding:0;border:1px solid #e0e8eb;border-radius:50%;background:white;color:#5d717c}
#history-dialog>.dialog-head+p{font-size:12px;margin:16px 0 24px;color:#89969e}
#history-dialog .history-search-label{font-size:12px;color:#647985;margin-bottom:8px}
#history-search{background:white;border:1px solid #dce5e9;border-radius:12px;padding:12px 15px;font-size:14px}
#history-search:focus{outline:2px solid #9cd4e0;outline-offset:2px}
#history-count{font-size:12px;margin:16px 0 12px;color:#7c8e98}
#history-list .library-card{position:relative;align-items:center;gap:20px;padding:20px 22px;margin:10px 0;border:1px solid #e1e9ec;border-radius:16px;box-shadow:0 2px 5px #243d4b03;transition:border-color .15s,box-shadow .15s}
#history-list .library-card:hover{border-color:#9cc9d2;box-shadow:0 5px 18px #23445208}
.history-card-content{min-width:0;flex:1}
.history-card-meta{display:flex;align-items:center;gap:10px;font-size:11px;flex-wrap:wrap}
.history-part{font-weight:750;letter-spacing:.8px;color:#19768a;background:#eaf5f7;padding:4px 7px;border-radius:5px}
.history-kind{color:#82939b}
.history-date{margin-left:auto;color:#92a0a8;font-variant-numeric:tabular-nums}
#history-list .library-card h3{font-size:17px;line-height:1.5;font-weight:650;color:#203846;margin:12px 0 8px}
#history-list .history-snippet{font-size:13px;line-height:1.6;color:#7b8b94;margin:0;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
.history-card-foot{display:flex;gap:10px;margin-top:12px;font-size:11px;color:#85959d}
.history-draft-tag{color:#a87a37}
#history-list .library-actions{min-width:auto}
#history-list .library-actions button{font-size:12px;font-weight:650;white-space:nowrap;background:#edf6f8;color:#16758a;border:0;border-radius:9px;padding:11px 13px}
#history-list .library-actions button:hover{background:#dceff3}
#history-pages{align-items:center;font-size:12px;color:#8b99a2;margin-top:18px}
#history-pages button{font-size:12px;padding:8px 12px}
#history-dialog .history-local-note{font-size:11px;color:#99a5ad;border-top:1px solid #e3e9ec;padding-top:16px;margin-top:20px}
#history-detail{border-top:1px solid #dbe5e9}
@media(max-width:600px){#history-dialog{padding:22px 18px;border-radius:18px}#history-list .library-card{padding:17px;gap:14px;align-items:stretch}#history-list .library-actions{align-self:flex-end}.history-date{margin-left:0}#history-list .library-card h3{font-size:16px}}

.study-outline{background:#f1f7f5;padding:18px;border-radius:16px;margin:18px 0}
.study-outline summary,.study-expressions summary{cursor:pointer;font-size:14px;font-weight:650;color:#37685d}
.study-route{list-style:none;padding:0 0 0 14px;margin:20px 0 0;border-left:2px solid #b6d4c7;display:grid;gap:14px}
.study-route li{display:flex;flex-direction:column;gap:4px;position:relative;padding-left:10px}
.study-route li:before{content:'';position:absolute;left:-20px;top:6px;width:10px;height:10px;border-radius:50%;background:#72a792;border:2px solid #f1f7f5}
.study-route strong{font-size:13px;color:#437463}.study-route span{font-size:15px;color:#243f37}
.study-controls{display:flex;flex-wrap:wrap;gap:8px;margin-bottom:18px}
.study-row{display:grid;grid-template-columns:1.2fr 1fr;gap:26px;border-bottom:1px solid #edf0f1;padding:16px 0}
.study-row .answer-text{margin:0;font-size:19px;line-height:1.85}
.study-translation{margin:0!important;font-size:15px!important;line-height:1.9;color:#73818a}
.study-answer mark{background:#fff0be;color:inherit;border-radius:3px;padding:1px 2px;cursor:help}
.hide-translation .study-translation{display:none}.hide-translation .study-row{grid-template-columns:1fr}
.study-expressions{margin:20px 0;padding:16px;border:1px solid #ece3c9;border-radius:12px}
.study-expressions>div{padding:14px 0;border-bottom:1px solid #f1ede3}.study-expressions p{margin:4px 0}
@media(max-width:650px){.study-row{grid-template-columns:1fr;gap:10px}.study-translation{padding-left:12px;border-left:2px solid #dae6e1}}

.input-modes{display:flex;gap:7px;margin:20px 0 12px}
.input-modes button{flex:1;padding:12px 6px;border:1px solid #dce7e9;border-radius:11px;background:white;color:#70828a;font-size:14px}
.input-modes button[aria-pressed=true]{background:#e5f3f5;border-color:#74b6c4;color:#146c80;font-weight:650;box-shadow:0 2px 0 #badde4}
#input-mode-note{line-height:1.8;margin-bottom:18px}
#input-extras{margin:18px 0;padding:16px;background:#f6f9f8;border-radius:12px}
#input-extras summary{cursor:pointer;color:#538075;font-size:14px}
#input-extras[open] summary{margin-bottom:20px}
#input-extras textarea{min-height:110px}

/* Keep close accessible throughout the collection scroll area. */
#history-dialog .history-close-bar{position:sticky;top:0;z-index:10;height:0;display:flex;justify-content:flex-end;pointer-events:none}
#history-dialog .history-close-bar #history-close{pointer-events:auto;flex-shrink:0;width:40px;height:40px;background:#fff;box-shadow:0 3px 14px #20394720}
#history-dialog .history-heading{padding-right:54px}

body.home-view main>.cloud-preview-bar,body.managing main>.cloud-preview-bar{display:flex!important}
.cloud-preview-bar{display:flex;align-items:center;justify-content:space-between;gap:16px;padding:12px 16px;margin-bottom:20px;background:#fff4d9;border-radius:12px;font-size:12px}
@media(max-width:600px){.cloud-preview-bar{flex-direction:column;align-items:stretch}}

.target-settings{display:flex;gap:16px;margin:18px 0}.target-settings label{flex:1}.target-settings select{display:block;width:100%;margin-top:8px;padding:10px;border:1px solid #cddfe3;border-radius:10px;background:white}

#account-dialog input{display:block;width:100%;padding:12px;margin:10px 0 18px;border:1px solid #cbdde1;border-radius:10px}#account-dialog button{margin-bottom:14px}#account-message{color:#386d7a}

.account-tabs{display:flex;gap:8px;flex-wrap:wrap;margin:20px 0}.account-tabs [aria-pressed="true"]{background:#16778a;color:white}.account-remember{display:flex;align-items:center;gap:8px;margin:18px 0}.account-remember input{width:auto}#account-dialog input[type="password"]{width:100%;padding:14px;border:1px solid #cbdadd;border-radius:12px;box-sizing:border-box}

body.business-view main>:not(#business-dashboard){display:none!important}body.business-view main>#business-dashboard{display:block!important}.business-heading{display:flex;align-items:center;justify-content:space-between;gap:20px;flex-wrap:wrap}.business-heading h1{font-size:34px;margin:8px 0}.business-cards{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:16px;margin:24px 0}.business-card,.business-panel{border:1px solid #dbe8e9;border-radius:20px;background:#fff;padding:24px}.business-card{display:flex;flex-direction:column;gap:12px}.business-card strong{font-size:30px;color:#16778a}.business-card small{color:#627981}.business-panel{margin:20px 0}.business-table{overflow:auto}.business-table table{width:100%;border-collapse:collapse;font-size:14px;text-align:left}.business-table th,.business-table td{padding:13px 14px;border-bottom:1px solid #e5eeee;white-space:nowrap}.business-table th{color:#52737c;background:#f3f8f8}.business-heading form{display:flex;gap:8px}.business-heading input{padding:10px;border:1px solid #dbe8e9;border-radius:10px}@media(max-width:1000px){.business-cards{grid-template-columns:repeat(2,minmax(0,1fr))}}@media(max-width:560px){.business-cards{grid-template-columns:1fr}.business-panel{padding:14px}.business-heading form{flex-wrap:wrap}}

.site-policy-links{display:flex;flex-wrap:wrap;justify-content:center;gap:12px 24px;padding:24px;font-size:13px;color:#66818a}.site-policy-links a{color:inherit;text-underline-offset:4px}

.pricing-nav{text-decoration:none}
