/*! tailwindcss v4.2.1 | MIT License | https://tailwindcss.com */
@layer properties{@supports (((-webkit-hyphens:none)) and (not (margin-trim:inline))) or ((-moz-orient:inline) and (not (color:rgb(from red r g b)))){*,:before,:after,::backdrop{--tw-blur:initial;--tw-brightness:initial;--tw-contrast:initial;--tw-grayscale:initial;--tw-hue-rotate:initial;--tw-invert:initial;--tw-opacity:initial;--tw-saturate:initial;--tw-sepia:initial;--tw-drop-shadow:initial;--tw-drop-shadow-color:initial;--tw-drop-shadow-alpha:100%;--tw-drop-shadow-size:initial}}}@layer theme{:root,:host{--font-sans:ui-sans-serif, system-ui, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji";--font-mono:ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;--spacing:.25rem;--default-font-family:var(--font-sans);--default-mono-font-family:var(--font-mono)}}@layer base{*,:after,:before,::backdrop{box-sizing:border-box;border:0 solid;margin:0;padding:0}::file-selector-button{box-sizing:border-box;border:0 solid;margin:0;padding:0}html,:host{-webkit-text-size-adjust:100%;tab-size:4;line-height:1.5;font-family:var(--default-font-family,ui-sans-serif, system-ui, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji");font-feature-settings:var(--default-font-feature-settings,normal);font-variation-settings:var(--default-font-variation-settings,normal);-webkit-tap-highlight-color:transparent}hr{height:0;color:inherit;border-top-width:1px}abbr:where([title]){-webkit-text-decoration:underline dotted;text-decoration:underline dotted}h1,h2,h3,h4,h5,h6{font-size:inherit;font-weight:inherit}a{color:inherit;-webkit-text-decoration:inherit;-webkit-text-decoration:inherit;-webkit-text-decoration:inherit;-webkit-text-decoration:inherit;text-decoration:inherit}b,strong{font-weight:bolder}code,kbd,samp,pre{font-family:var(--default-mono-font-family,ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace);font-feature-settings:var(--default-mono-font-feature-settings,normal);font-variation-settings:var(--default-mono-font-variation-settings,normal);font-size:1em}small{font-size:80%}sub,sup{vertical-align:baseline;font-size:75%;line-height:0;position:relative}sub{bottom:-.25em}sup{top:-.5em}table{text-indent:0;border-color:inherit;border-collapse:collapse}:-moz-focusring{outline:auto}progress{vertical-align:baseline}summary{display:list-item}ol,ul,menu{list-style:none}img,svg,video,canvas,audio,iframe,embed,object{vertical-align:middle;display:block}img,video{max-width:100%;height:auto}button,input,select,optgroup,textarea{font:inherit;font-feature-settings:inherit;font-variation-settings:inherit;letter-spacing:inherit;color:inherit;opacity:1;background-color:#0000;border-radius:0}::file-selector-button{font:inherit;font-feature-settings:inherit;font-variation-settings:inherit;letter-spacing:inherit;color:inherit;opacity:1;background-color:#0000;border-radius:0}:where(select:is([multiple],[size])) optgroup{font-weight:bolder}:where(select:is([multiple],[size])) optgroup option{padding-inline-start:20px}::file-selector-button{margin-inline-end:4px}::placeholder{opacity:1}@supports (not ((-webkit-appearance:-apple-pay-button))) or (contain-intrinsic-size:1px){::placeholder{color:currentColor}@supports (color:color-mix(in lab, red, red)){::placeholder{color:color-mix(in oklab, currentcolor 50%, transparent)}}}textarea{resize:vertical}::-webkit-search-decoration{-webkit-appearance:none}::-webkit-date-and-time-value{min-height:1lh;text-align:inherit}::-webkit-datetime-edit{display:inline-flex}::-webkit-datetime-edit-fields-wrapper{padding:0}::-webkit-datetime-edit{padding-block:0}::-webkit-datetime-edit-year-field{padding-block:0}::-webkit-datetime-edit-month-field{padding-block:0}::-webkit-datetime-edit-day-field{padding-block:0}::-webkit-datetime-edit-hour-field{padding-block:0}::-webkit-datetime-edit-minute-field{padding-block:0}::-webkit-datetime-edit-second-field{padding-block:0}::-webkit-datetime-edit-millisecond-field{padding-block:0}::-webkit-datetime-edit-meridiem-field{padding-block:0}::-webkit-calendar-picker-indicator{line-height:1}:-moz-ui-invalid{box-shadow:none}button,input:where([type=button],[type=reset],[type=submit]){appearance:button}::file-selector-button{appearance:button}::-webkit-inner-spin-button{height:auto}::-webkit-outer-spin-button{height:auto}[hidden]:where(:not([hidden=until-found])){display:none!important}}@layer components;@layer utilities{.visible{visibility:visible}.relative{position:relative}.start{inset-inline-start:var(--spacing)}.isolate{isolation:isolate}.table{display:table}.filter{filter:var(--tw-blur,) var(--tw-brightness,) var(--tw-contrast,) var(--tw-grayscale,) var(--tw-hue-rotate,) var(--tw-invert,) var(--tw-saturate,) var(--tw-sepia,) var(--tw-drop-shadow,)}}:root{--ink:#11221a;--muted:#64736b;--paper:#f4f1e8;--surface:#fffdf8;--green:#0e4a35;--green-2:#1f6f4d;--mint:#dcebdc;--lime:#dff36a;--orange:#e47143;--line:#d6ddd5;--shadow:0 18px 50px #14372717}*{box-sizing:border-box}html{background:var(--paper)}body{color:var(--ink);background:radial-gradient(circle at 80% -10%, #dff36a59, transparent 30rem), var(--paper);font-family:var(--font-geist-sans), "PingFang SC", "Microsoft YaHei", sans-serif;margin:0}button,input,textarea,select{font:inherit}button{color:inherit}.app-shell{width:min(1440px,100%);min-height:100vh;margin:0 auto;padding:0 42px}.topbar{border-bottom:1px solid #0e4a352e;justify-content:space-between;align-items:center;min-height:94px;display:flex}.brand,.brand>div,.top-stats,.top-stats>div{align-items:center;display:flex}.brand{gap:14px}.brand-mark{background:var(--green);width:42px;height:42px;color:var(--lime);font-family:var(--font-geist-mono);letter-spacing:-.08em;border-radius:12px 4px;place-items:center;font-weight:800;display:grid}.brand>div{flex-direction:column;align-items:flex-start;gap:3px}.brand strong{font-size:17px}.brand span:last-child{color:var(--muted);font-size:12px}.top-stats{gap:28px}.top-stats>div{flex-direction:column;align-items:flex-end}.top-stats strong{color:var(--green);font-family:var(--font-geist-mono);font-size:17px}.top-stats span{color:var(--muted);font-size:11px}.tabs{gap:6px;padding:22px 0 26px;display:flex}.tabs button{color:var(--muted);cursor:pointer;background:0 0;border:0;border-radius:999px;padding:10px 18px}.tabs button:hover,.tabs button.active{background:var(--green);color:#fff}.today-layout{grid-template-columns:minmax(0,1fr) 340px;gap:22px;display:grid}.hero-card,.session-panel{box-shadow:var(--shadow);background:#fffdf8eb;border:1px solid #0e4a351f}.hero-card{border-radius:30px 10px;min-width:0;padding:34px}.eyebrow,.card-topline,.prompt-label,.pdf-card-head,.source-table-heading,.expression-meta{justify-content:space-between;align-items:center;display:flex}.eyebrow>span,.eyebrow-text,.panel-kicker{color:var(--green-2);font-family:var(--font-geist-mono);letter-spacing:.13em;text-transform:uppercase;font-size:11px;font-weight:700}.text-button{color:var(--green-2);cursor:pointer;background:0 0;border:0}.hero-heading{justify-content:space-between;align-items:center;gap:24px;padding:25px 0 28px;display:flex}.scenario-id{color:var(--orange);font-family:var(--font-geist-mono);margin-bottom:10px;font-weight:700;display:inline-block}h1,h2,h3,p{margin-top:0}.hero-heading h1{letter-spacing:-.055em;margin-bottom:10px;font-size:clamp(36px,5vw,68px);line-height:.98}.hero-heading p{max-width:700px;color:var(--muted);margin-bottom:0;font-size:16px;line-height:1.7}.difficulty-orb{border:1px solid var(--green);width:88px;height:88px;color:var(--green);background:var(--lime);font-family:var(--font-geist-mono);border-radius:50%;flex:none;place-items:center;font-size:24px;font-weight:800;display:grid;transform:rotate(7deg)}.role-grid{border:1px solid var(--line);background:var(--line);border-radius:16px;grid-template-columns:1fr 1fr;gap:1px;display:grid;overflow:hidden}.role-grid>div{background:var(--surface);min-height:92px;padding:18px 20px}.role-grid .wide{grid-column:1/-1}.role-grid span,.mini-expression span{color:var(--muted);margin-bottom:8px;font-size:11px;display:block}.role-grid strong{line-height:1.55}.control-row{justify-content:space-between;align-items:center;gap:20px;padding:24px 0 18px;display:flex}.segmented{background:#e9ece5;border-radius:12px;gap:5px;padding:4px;display:flex}.segmented button{cursor:pointer;background:0 0;border:0;border-radius:9px;padding:9px 14px}.segmented button.selected{color:var(--green);background:#fff;font-weight:700;box-shadow:0 2px 9px #162f221a}.difficulty-select{color:var(--muted);align-items:center;gap:10px;font-size:12px;display:flex}.difficulty-select select{border:1px solid var(--line);background:#fff;border-radius:9px;padding:8px 10px}.prompt-box{color:#dce8df;background:#13291f;border-radius:18px;overflow:hidden}.prompt-label{color:#a8c7b6;border-bottom:1px solid #ffffff1f;padding:13px 16px;font-size:12px}.prompt-label button{color:#fff;cursor:pointer;background:#ffffff14;border:1px solid #ffffff2e;border-radius:7px;padding:5px 10px}.prompt-box pre{white-space:pre-wrap;max-height:270px;font-family:var(--font-geist-mono);margin:0;padding:18px;font-size:12px;line-height:1.7;overflow:auto}.primary-actions{align-items:center;gap:14px;padding-top:18px;display:flex}.primary-button,.complete-button{background:var(--orange);color:#fff;cursor:pointer;border:0;border-radius:12px;padding:13px 20px;font-weight:700;box-shadow:0 8px 20px #e4714338}.primary-actions span{color:var(--muted);font-size:12px}.session-panel{border-radius:10px 28px;padding:28px}.session-panel h2{letter-spacing:-.04em;margin:10px 0 8px;font-size:25px}.session-panel>p{color:var(--muted);font-size:13px;line-height:1.6}.note-field{color:var(--muted);margin:24px 0 20px;font-size:12px;display:block}.note-field textarea{resize:vertical;border:1px solid var(--line);width:100%;min-height:104px;color:var(--ink);background:#fafbf7;border-radius:12px;outline:none;margin-top:8px;padding:12px}.note-field textarea:focus,.search-input:focus{border-color:var(--green-2);box-shadow:0 0 0 3px #1f6f4d1a}.score-row{grid-template-columns:50px 1fr 20px;align-items:center;gap:10px;margin:13px 0;font-size:12px;display:grid}.score-row input{accent-color:var(--green)}.complete-button{background:var(--green);width:100%;box-shadow:none;margin-top:12px}.recent-log{border-top:1px solid var(--line);margin-top:28px;padding-top:22px}.recent-log h3{margin-bottom:12px;font-size:13px}.empty,.log-item span,.log-item p{color:var(--muted);font-size:11px}.log-item{border-bottom:1px dashed var(--line);padding:10px 0}.log-item strong,.log-item span{display:block}.log-item p{margin:5px 0 0;line-height:1.45}.library-section{min-height:660px}.section-heading{justify-content:space-between;align-items:flex-end;gap:30px;padding:16px 0 30px;display:flex}.section-heading h1{letter-spacing:-.055em;margin:8px 0 10px;font-size:clamp(36px,4vw,58px)}.section-heading p{color:var(--muted);margin-bottom:0}.search-input{border:1px solid var(--line);background:#ffffffbf;border-radius:999px;outline:none;width:min(340px,100%);padding:12px 18px}.card-grid{grid-template-columns:repeat(3,minmax(0,1fr));gap:16px;display:grid}.scenario-card{background:var(--surface);border:1px solid #0e4a3521;border-radius:24px 8px;flex-direction:column;min-height:310px;padding:22px;transition:transform .16s,box-shadow .16s;display:flex}.scenario-card:hover,.pdf-card:hover{box-shadow:var(--shadow);transform:translateY(-3px)}.card-topline{color:var(--green-2);font-family:var(--font-geist-mono);font-size:12px;font-weight:700}.status{background:var(--mint);border-radius:999px;padding:4px 8px}.status.done{background:var(--lime)}.scenario-card h2,.pdf-card h2{letter-spacing:-.035em;margin:22px 0 10px;font-size:23px}.scenario-card>p,.pdf-card>p{color:var(--muted);font-size:13px;line-height:1.65}.scenario-card dl{gap:8px;margin:8px 0 20px;display:grid}.scenario-card dl div{grid-template-columns:36px 1fr;font-size:12px;display:grid}.scenario-card dt{color:var(--green-2);font-weight:700}.scenario-card dd{color:var(--muted);margin:0}.scenario-card button,.pdf-card button{color:var(--green);text-align:left;cursor:pointer;background:0 0;border:0;margin-top:auto;padding:8px 0;font-weight:700}.expression-list{gap:10px;display:grid}.expression-card{background:var(--surface);border:1px solid #0e4a351f;border-radius:15px;grid-template-columns:64px minmax(0,1fr) 120px;align-items:center;gap:18px;padding:18px 20px;display:grid}.expression-index{color:var(--orange);font-family:var(--font-geist-mono);font-size:13px;font-weight:700}.expression-meta{color:var(--muted);justify-content:flex-start;gap:12px;margin-bottom:7px;font-size:11px}.expression-main h2{letter-spacing:-.02em;margin-bottom:5px;font-size:18px}.expression-main p{color:var(--muted);margin-bottom:0;font-size:12px}.used-button{border:1px solid var(--line);cursor:pointer;background:#fff;border-radius:9px;padding:9px 12px}.used-button.used{border-color:var(--green);background:var(--mint);color:var(--green);font-weight:700}.vocabulary-toolbar{flex-wrap:wrap;gap:7px;margin:-8px 0 22px;display:flex}.vocabulary-toolbar button{border:1px solid var(--line);color:var(--muted);cursor:pointer;background:#ffffff9e;border-radius:999px;padding:8px 13px}.vocabulary-toolbar button:hover,.vocabulary-toolbar button.active{border-color:var(--green);background:var(--green);color:#fff}.voice-control{color:var(--muted);align-items:center;gap:8px;margin-left:auto;font-size:11px;display:flex}.voice-control select{border:1px solid var(--line);max-width:240px;color:var(--ink);background:#ffffffbf;border-radius:999px;padding:8px 12px}.flashcard{background:radial-gradient(circle at 85% 10%, #dff36a61, transparent 18rem), var(--green);color:#fff;box-shadow:var(--shadow);border-radius:28px 8px;margin-bottom:22px;padding:28px 30px}.flashcard-count,.flashcard-body,.flashcard-actions{justify-content:space-between;align-items:center;gap:22px;display:flex}.flashcard-count{color:#b9d7c5;font-family:var(--font-geist-mono);letter-spacing:.08em;font-size:11px}.flashcard-body{align-items:flex-end;padding:28px 0}.flashcard-body>div:first-child{min-width:38%}.flashcard h2{color:var(--lime);letter-spacing:-.055em;margin-bottom:8px;font-size:clamp(38px,5vw,66px)}.flashcard-body>div:first-child p{color:#d6e5dc;margin:0;font-size:16px}.flashcard-ipa{color:#b9d7c5;font-family:var(--font-geist-mono);margin:-2px 0 12px;font-size:14px}.flashcard-example{border-left:1px solid #fff3;max-width:600px;padding-left:22px}.flashcard-example span{color:#9fc2ae;text-transform:uppercase;letter-spacing:.1em;margin:12px 0 5px;font-size:10px;display:block}.flashcard-example strong,.flashcard-example p{line-height:1.6}.flashcard-example p{color:#edf4ef;margin:0}.flashcard-actions{justify-content:flex-start}.study-start,.study-summary{flex-direction:column;justify-content:center;min-height:310px;display:flex}.study-start>span,.study-summary>span{color:#b9d7c5;font-family:var(--font-geist-mono);letter-spacing:.08em;font-size:11px}.study-start h2,.study-summary h2{max-width:760px;color:var(--lime);letter-spacing:-.05em;margin:18px 0 10px;font-size:clamp(34px,5vw,60px)}.study-start>p{color:#d6e5dc;max-width:650px;margin-bottom:24px;line-height:1.65}.study-progress{background:#ffffff21;border-radius:999px;height:4px;margin-top:14px;overflow:hidden}.study-progress span{border-radius:inherit;background:var(--lime);height:100%;transition:width .18s;display:block}.listen-button,.reveal-button{color:#fff;cursor:pointer;background:#ffffff17;border:1px solid #ffffff47;border-radius:9px;padding:9px 13px}.reveal-button{background:var(--lime);min-width:180px;color:var(--green);align-self:center;font-weight:800}.flashcard-example.revealed{min-width:min(520px,54%)}.study-rating-actions{border-top:1px solid #ffffff24;grid-template-columns:repeat(3,minmax(0,1fr));gap:9px;padding-top:18px;display:grid}.study-rating-actions button{color:#fff;cursor:pointer;border:1px solid #ffffff3d;border-radius:11px;padding:12px;font-weight:700}.rating-again{background:#e4714370}.rating-hard{background:#ffffff1a}.rating-know,.flashcard-actions .study-primary{border-color:var(--lime);background:var(--lime);color:var(--green)}.study-result-grid{grid-template-columns:repeat(3,minmax(0,140px));gap:10px;margin:10px 0 24px;display:grid}.study-result-grid>div{border:1px solid #ffffff29;border-radius:12px;flex-direction:column;padding:13px;display:flex}.study-result-grid strong{color:var(--lime);font-family:var(--font-geist-mono);font-size:24px}.study-result-grid span{color:#b9d7c5;font-size:11px}.flashcard-actions button,.master-button{color:#fff;cursor:pointer;background:#ffffff17;border:1px solid #ffffff47;border-radius:9px;padding:9px 13px}.flashcard-actions button:hover{background:#ffffff29;border-color:#ffffff9e}.flashcard-actions button.mastered{border-color:var(--lime);background:var(--lime);color:var(--green);font-weight:700}.vocabulary-list{grid-template-columns:repeat(3,minmax(0,1fr));gap:13px;display:grid}.vocabulary-card{background:var(--surface);border:1px solid #0e4a351f;border-radius:18px 6px;flex-direction:column;min-height:290px;padding:20px;display:flex}.vocabulary-meta{color:var(--green-2);font-family:var(--font-geist-mono);justify-content:space-between;font-size:10px;display:flex}.vocabulary-card h2{letter-spacing:-.035em;margin:20px 0 3px;font-size:25px}.vocabulary-ipa{color:var(--green-2);font-family:var(--font-geist-mono);margin-bottom:6px;font-size:11px}.vocabulary-chinese{color:var(--muted);font-size:12px}.vocabulary-collocation{border-left:3px solid var(--lime);color:var(--green);background:#f3f7e4;margin:8px 0 12px;padding:9px 11px;font-size:12px;font-weight:700}.vocabulary-example{color:var(--muted);font-size:12px;line-height:1.6}.master-button{border-color:var(--line);width:max-content;color:var(--muted);background:#fff;margin-top:auto}.pronunciation-actions{gap:7px;margin:auto 0 10px;display:flex}.pronunciation-actions button{border:1px solid var(--line);color:var(--green);cursor:pointer;background:#f7f8f3;border-radius:8px;padding:7px 10px;font-size:11px;font-weight:700}.pronunciation-actions button:hover{border-color:var(--green);background:var(--mint)}.master-button.mastered{border-color:var(--green);background:var(--mint);color:var(--green);font-weight:700}.pdf-card-grid{grid-template-columns:repeat(4,minmax(0,1fr));gap:14px;display:grid}.pdf-card{background:var(--surface);border:1px solid #0e4a351f;border-radius:20px 7px;flex-direction:column;min-height:300px;padding:19px;transition:transform .16s,box-shadow .16s;display:flex}.pdf-card-head{color:var(--green-2);font-family:var(--font-geist-mono);font-size:11px}.mini-expression{border-left:3px solid var(--lime);background:#f4f7e7;margin:10px 0 18px;padding:12px}.mini-expression strong{font-size:12px;line-height:1.5}.source-table-wrap{background:var(--surface);border:1px solid #0e4a351f;border-radius:22px;margin-top:28px;padding:24px}.source-table-heading h2{margin:0}.source-table-heading span{color:var(--muted);font-size:12px}.source-table{margin-top:18px}.source-row{border-top:1px solid var(--line);grid-template-columns:38px 260px 1fr 72px;align-items:center;gap:16px;min-height:48px;font-size:12px;display:grid}.source-row>span:not(.priority),.source-row small{color:var(--muted)}.priority{border-radius:7px;place-items:center;width:26px;height:26px;font-weight:800;display:grid}.priority-A{background:var(--lime);color:var(--green)}.priority-B{background:var(--mint);color:var(--green)}.toast{z-index:10;background:var(--ink);color:#fff;box-shadow:var(--shadow);border-radius:10px;padding:12px 18px;font-size:13px;position:fixed;bottom:28px;right:28px}footer{color:var(--muted);justify-content:space-between;gap:20px;padding:35px 0;font-size:11px;display:flex}@media (width<=1060px){.today-layout{grid-template-columns:1fr}.session-panel{grid-template-columns:1fr 1fr;gap:0 24px;display:grid}.session-panel .complete-button,.session-panel .recent-log{grid-column:1/-1}.card-grid,.pdf-card-grid,.vocabulary-list{grid-template-columns:repeat(2,minmax(0,1fr))}}@media (width<=720px){.app-shell{padding:0 16px}.topbar{min-height:76px}.top-stats{gap:10px}.top-stats>div:nth-child(2){display:none}.tabs{padding:14px 0 18px;overflow-x:auto}.tabs button{flex:none;padding:8px 13px}.hero-card{padding:22px}.hero-heading{align-items:flex-start}.difficulty-orb{width:58px;height:58px;font-size:17px}.role-grid{grid-template-columns:1fr}.role-grid .wide{grid-column:auto}.control-row,.primary-actions,.section-heading{flex-direction:column;align-items:stretch}.segmented{overflow-x:auto}.session-panel{display:block}.card-grid,.pdf-card-grid,.vocabulary-list{grid-template-columns:1fr}.flashcard-body{flex-direction:column;align-items:flex-start}.flashcard-example{border-top:1px solid #fff3;border-left:0;padding:18px 0 0}.flashcard-actions{flex-wrap:wrap}.study-start,.study-summary{min-height:360px}.flashcard-example.revealed{min-width:0}.study-rating-actions{grid-template-columns:1fr}.voice-control{width:100%;margin-left:0}.voice-control select{flex:1;min-width:0}.expression-card{grid-template-columns:48px 1fr}.used-button{grid-column:2;width:max-content}.source-row{grid-template-columns:34px 1fr 60px;padding:10px 0}.source-row>span:not(.priority){grid-column:2/-1}footer{flex-direction:column}}@media (prefers-reduced-motion:reduce){*{scroll-behavior:auto!important;transition:none!important}}@property --tw-blur{syntax:"*";inherits:false}@property --tw-brightness{syntax:"*";inherits:false}@property --tw-contrast{syntax:"*";inherits:false}@property --tw-grayscale{syntax:"*";inherits:false}@property --tw-hue-rotate{syntax:"*";inherits:false}@property --tw-invert{syntax:"*";inherits:false}@property --tw-opacity{syntax:"*";inherits:false}@property --tw-saturate{syntax:"*";inherits:false}@property --tw-sepia{syntax:"*";inherits:false}@property --tw-drop-shadow{syntax:"*";inherits:false}@property --tw-drop-shadow-color{syntax:"*";inherits:false}@property --tw-drop-shadow-alpha{syntax:"<percentage>";inherits:false;initial-value:100%}@property --tw-drop-shadow-size{syntax:"*";inherits:false}
