/* Android Theme.kt: body Inter opsz 14, display Inter opsz 24. */
@font-face{font-family:Inter;src:url('assets/inter_variable.ttf') format('truetype');font-weight:100 900;font-style:normal;font-display:block}
@font-face{font-family:'Patrick Hand';src:url('assets/patrick_hand_regular.ttf') format('truetype');font-weight:400;font-style:normal;font-display:block}
:root{--ground:#fbf6eb;--side:#f4e9d6;--surface:#fffcf7;--jacket:var(--surface);--jacket-ink:#49423a;--strong:#edddbf;--ink:#423c32;--muted:#70695d;--edge:#ded6c7;--accent:#88663f;font:400 17px/24px Inter,sans-serif;font-optical-sizing:none;font-variation-settings:"opsz" 14;font-synthesis:none;background:var(--ground);color:var(--ink)}
button,input,textarea,select{font-family:inherit;font-optical-sizing:inherit;font-variation-settings:inherit;font-synthesis:none}
h1,h2,h3,strong{font-weight:500}.library{grid-template-columns:256px minmax(0,1fr);background:var(--ground)}
.rail{background:var(--side);padding:22px 14px 16px;gap:0}.brand{margin:0 0 24px 8px;gap:8px}.brand img:first-child{width:28px;height:28px}.brand img:last-child{width:125px;height:18px}
.rail button{min-height:54px;margin:3px 0;gap:14px;padding:7px 12px;border-radius:10px;font:400 18.5px/26px Inter,sans-serif}.rail button img{width:36px;height:36px}.rail .active{background:var(--strong);font-weight:500;box-shadow:none}
.shelf{padding:24px 30px 40px}.heading{margin:24px 0 12px}.heading h1{font:500 28px/36px Inter,sans-serif;letter-spacing:-.4px;font-variation-settings:"opsz" 24}.heading .row{gap:8px}.shelf-search{display:flex;gap:12px;margin:10px 0 18px;align-items:center}.shelf-search input{flex:1;min-width:0;font-size:18px;height:40px}.shelf-search select{max-width:42%;font-size:17px}
.hero{container-type:inline-size;position:relative;border-radius:22px;min-height:0;background-color:var(--surface);border:1px solid var(--edge);padding:12px 24px 12px 32px;color:var(--jacket-ink);justify-content:space-between;gap:12px}
.hero-copy{width:56%;min-width:min(350px,90%)}.hero h2{font:500 30px/36px Inter,sans-serif;font-variation-settings:"opsz" 24;letter-spacing:-.4px}.hero p{font:400 15px/21px Inter,sans-serif;max-width:100%;margin:6px 0 18px}
.hero .primary{font:500 18px/25px Inter,sans-serif;padding:10px 18px;background:var(--strong);color:var(--ink);border:0;border-radius:0;box-shadow:4px 4px var(--surface),5px 5px 0 1px var(--accent);margin:0 5px 5px 0}
.hero-controls{margin-top:12px;display:flex;gap:6px;align-items:center;flex-wrap:wrap}.hero-controls button{font:400 16px/22px Inter,sans-serif;min-height:42px;padding:8px 10px;border-radius:12px}
.hero-controls button[aria-pressed]{background:var(--surface);border:1px solid var(--edge);color:var(--ink);padding:10px 13px}.hero-controls button[aria-pressed=true]{background:var(--strong)}
.hero-controls img{width:20px;height:20px}.hide-hero{position:absolute;top:6px;right:6px;width:32px;min-height:32px;border-radius:50%;background:var(--jacket);font-size:23px}.hero canvas{width:min(260px,34%);height:auto}.theme[aria-label="NoteMallow cổ điển"]{background-size:contain;background-repeat:no-repeat;background-color:var(--surface)}
.grid{grid-template-columns:repeat(auto-fill,minmax(min(212px,100%),1fr));gap:18px}.tile{background:var(--surface);border-radius:14px;padding:13px 14px 4px;box-shadow:0 1px 4px #3b41702b}.tile-open{display:flex;flex-direction:column}.tile strong{order:-1;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;font:400 21px/28px Inter,sans-serif;height:56px;margin:0 0 10px}.tile-open .cover{width:100%;height:auto;aspect-ratio:1.5;box-shadow:none;border-radius:6px;container-type:inline-size}.cover-title{font:400 17px/1.24 Inter,sans-serif;font-variation-settings:"opsz" 24;text-align:center;top:17%;left:16%;right:12%;width:auto}.tile-info small{font-size:15.5px;line-height:22px}.grid.as-list{grid-template-columns:1fr}.as-list .tile-open{flex-direction:row-reverse;justify-content:flex-end;align-items:center;gap:16px}.as-list .cover{width:92px}.as-list strong{height:auto}.cover.text-preview{background-color:#fff9ee;background-size:40% 100%;background-repeat:no-repeat;background-position:right}.text-preview span{display:block;width:60%;padding:10px;text-align:left;font:400 12px/15px Inter,sans-serif;overflow:hidden}
.dialog-top h2,.section-head h2,.focus-card h2{font:500 22px/28px Inter,sans-serif;font-variation-settings:"opsz" 24}.workspace-head h1{font:500 19px/27px Inter,sans-serif}.soft,.plain,.primary{font:400 17px/24px Inter,sans-serif}
.review-card h2{font:400 28px/40px Inter,sans-serif;min-height:110px}.review-card p{font:400 23px/35px Inter,sans-serif}.review-card small,.review-source,.foot small,.status{font:400 16px/22px Inter,sans-serif}.review-card{background:var(--surface)}.review-answer{border-radius:16px;background:#eaf0df;padding:20px;margin-bottom:12px}.review-answer strong{font:500 17px/24px Inter,sans-serif}.textpaper{font:400 18px/29px Inter,sans-serif}.focus-card output{font:400 48px/56px Inter,sans-serif;font-variation-settings:"opsz" 24}
@container (max-width:559px){.hero-copy{width:92%;min-width:0}.hero h2{font-size:21px;line-height:26px}.hero p{font-size:13px;line-height:18px;margin-bottom:12px}.hero canvas{width:140px}.hero-controls{gap:4px}}
@media(max-width:950px){.library{grid-template-columns:78px minmax(0,1fr)}.rail button span,.brand img:last-child{display:none}.rail button{padding:6px;justify-content:center}.rail{padding-left:6px;padding-right:6px}.brand{justify-content:center;margin-left:0}.shelf{padding-left:20px;padding-right:20px}}
@media(max-width:600px){.library{grid-template-columns:minmax(0,1fr)}.rail{padding:4px 8px;gap:4px}.brand{margin:0 auto 0 0}.rail button{margin:0;min-height:44px}.rail button img{width:27px;height:27px}.shelf{padding:14px 12px}.hero{padding-left:18px}.heading{flex-wrap:wrap}.heading h1{font-size:24px}.grid{grid-template-columns:repeat(2,minmax(0,1fr))}.review-card h2{font-size:23px;line-height:34px}.review-card p{font-size:20px;line-height:30px}}
.review-screen{height:100dvh;display:flex;flex-direction:column;color:#37332f;background:#fcf7ed}.review-screen header{display:flex;align-items:center;gap:10px;padding:12px 24px}.review-screen h1{font:500 26px/34px Inter,sans-serif;margin:0}.review-screen header select{font:400 16px/22px Inter,sans-serif;background:transparent;color:#756d63;border:0;padding:0;min-height:24px}.review-body{flex:1;overflow:auto;padding:20px 32px}.review-card,.review-progress{background:#fffefc;border:1px solid #e6ded2;border-radius:16px;width:min(960px,100%);max-width:960px;margin:0 auto 18px;box-shadow:none;padding:28px}.review-progress{padding:14px 20px;font-size:16px}.review-progress span{float:right}.review-progress progress{display:block;width:100%;height:6px;accent-color:#e5aa73;margin:10px 0 6px}.question{display:inline-block;background:#fbe6c9;color:#996236;padding:7px 14px;border-radius:30px;font-size:17px!important}.review-card h2{min-height:120px;margin:24px 0;font-weight:400}.review-answer{background:#edf2e7}.review-answer p{margin-top:12px}.review-footer{text-align:center;border-top:1px solid #e6ded2;padding:12px 16px;font-size:18px}.review-footer .primary{background:#996236;font-size:20px;border-radius:16px;width:min(100%,480px);min-height:56px}.grade-grid{display:grid;grid-template-columns:repeat(4,1fr);max-width:960px;gap:12px;margin:12px auto 0}.grade-grid button{display:grid;justify-items:center;gap:4px;background:#fbe4df;border-radius:17px;padding:14px 10px;border:1px solid #e6ded2;font-size:20px}.grade-grid button:nth-child(2){background:#faecd6}.grade-grid button:nth-child(3){background:#e2eef3}.grade-grid button:nth-child(4){background:#e7efdd}.grade-grid small{font-size:16px}.grade-art{display:block;width:40px;height:40px;background:url(assets/review_icons_v1.png) no-repeat;background-size:300% 200%}.cards-art{background-position:50% 100%}@media(max-width:600px){.grade-grid{grid-template-columns:repeat(2,1fr)}.review-body{padding:12px}.review-card{padding:20px}.review-screen h1{font-size:22px}}
@font-face{font-family:Lora;src:url(assets/font_lora.ttf);font-weight:400 700}
@font-face{font-family:Nunito;src:url(assets/font_nunito.ttf);font-weight:200 900}
@font-face{font-family:"JetBrains Mono";src:url(assets/font_jetbrains.ttf);font-weight:100 800}
@font-face{font-family:"Be Vietnam Pro";src:url(assets/font_bevietnam.ttf);font-weight:400}
@font-face{font-family:"Be Vietnam Pro";src:url(assets/font_bevietnam_bold.ttf);font-weight:700}
.textpaper{white-space:pre-wrap;overflow-wrap:anywhere;outline:none}.textpaper:empty:before{content:"Bắt đầu viết…";color:var(--muted);pointer-events:none}
/* CSS font shorthands reset variation settings. Pin opsz after role styles as in Android uiFace(). */
body,body *{font-optical-sizing:none}
:where(body) :is(p,span,small,strong,div,label,input,textarea,select,button,h1,h2,h3,output){font-variation-settings:"opsz" 14}
.hero p,.tile strong,.rail button,.review-card h2,.review-card p,.textpaper,.hero-controls button,.hero .primary{font-optical-sizing:none;font-variation-settings:"opsz" 14}
.heading h1,.hero h2,.cover-title,.dialog-top h2,.section-head h2,.focus-card h2{font-optical-sizing:none;font-variation-settings:"opsz" 24}
.rail .nav-count{margin-left:auto;color:var(--muted);font-size:17px}
.rail-folder span,.rail button span{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.rail .rail-folder{min-height:40px;padding-block:4px;margin:0}
.rail .rail-folder img{width:22px;height:22px}
.cover.page-preview,.cover.locked-preview{background:white;border:0}
.cover.page-preview:before,.cover.locked-preview:before,.cover.text-preview:before{display:none}
.cover.page-preview svg{display:block;width:100%;height:100%;position:absolute;inset:0;pointer-events:none}
.cover.locked-preview{display:grid;place-items:center;font-size:16px}
.review-screen [data-act="deleteReview"]{background:var(--review-paper);color:var(--accent);border-color:var(--edge)}

:where(:root[data-tone="light"]) .review-screen .question {color:color-mix(in srgb,var(--accent) 89%,#37332f)}
.text-preview span{padding:0;margin:5px 0 0 10px;width:calc(60% - 20px);display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;font:400 10px/13px Inter,sans-serif}
.text-preview span:first-child{margin-top:10px;font-size:12px;line-height:15px}
@container(max-width:139px){.text-preview span{display:none}}
.as-list .cover.text-preview{background-size:cover}
@media(max-width:950px){.rail .nav-count,.rail .rail-folder{display:none}}
@media(max-width:600px){.library .rail{display:flex;flex-flow:row nowrap;overflow-x:auto;max-width:100vw}.rail button,.rail .brand{flex:none}}



.review-origin { display:flex;align-items:center;gap:10px;margin:12px auto;width:min(960px,100%);border-radius:14px;border:1px solid var(--edge);background:var(--review-paper);padding:8px 18px; }
.review-origin img { width:30px;height:30px; } .review-origin span,.review-screen header>div { flex:1;min-width:0; }
.review-origin button { background:transparent;border:0; } .review-card[role=button] { cursor:pointer; }
