/* A quiet public page, with grade illustrations as small accents. */
.marketing-home{max-width:1180px}.landing-hero{gap:64px;padding:62px 0 54px;grid-template-columns:1.1fr .9fr}.landing-hero h1{max-width:660px;font-size:clamp(36px,4.2vw,60px);letter-spacing:-1.8px;line-height:1.12}.landing-lead{max-width:530px;font-size:17px;line-height:1.8}.landing-hero figure{background:#eaf2e9;border-radius:120px 24px 100px 24px;padding:24px 24px 30px;position:relative}.landing-hero img{max-height:320px}.landing-hero figcaption{color:#385d4d}.landing-section{padding:48px 0}.landing-section-heading{max-width:750px;margin-bottom:24px}.landing-section-heading h2{font-size:34px}.education-group{margin:24px 0 30px}.education-heading{padding-bottom:12px;margin-bottom:14px}.education-heading h3{font-size:21px}.education-group .grade-grid{grid-template-columns:repeat(5,minmax(0,1fr));gap:12px}.education-group .grade-card{padding:18px;border-radius:14px}.grade-mascot{width:76px;height:76px;margin:-4px 0 8px}.education-group .grade-card .eyebrow{font-size:18px;margin:0 0 8px;color:#233f35}.grade-card h4{font-size:15px;line-height:1.4;margin-bottom:8px}.education-group .grade-card>p:not(.eyebrow){font-size:13px;line-height:1.6}.education-group .grade-card .grade-ideas{display:none}.grade-card .btn{margin-top:18px;padding:9px 7px;font-size:12px;gap:3px;min-height:44px}.education-group.education-group-wide .grade-grid{grid-template-columns:1fr}.education-group.education-group-wide .grade-card{max-width:none;display:grid;grid-template-columns:90px 1fr auto;column-gap:18px;background:#f0f3ed;align-items:center}.education-group.education-group-wide .grade-card .grade-mascot{grid-row:1/4;margin:0}.education-group.education-group-wide .grade-card .btn{grid-column:3;grid-row:1/4;margin:0}.education-group.education-group-wide .grade-card h4,.education-group.education-group-wide .grade-card p{grid-column:2}.landing-faq{padding-bottom:48px}.marketing-page .footnote{border-top:1px solid var(--line);padding-top:22px;padding-bottom:28px}
.manager-layout{display:grid;grid-template-columns:210px minmax(0,1fr);gap:36px;max-width:1360px;margin:auto;padding:24px 12px}.manager-sidebar{border-right:1px solid var(--line);padding-right:22px}.manager-sidebar .eyebrow{font-size:11px;letter-spacing:1px}.manager-sidebar nav{display:grid;gap:6px}.manager-sidebar .btn{justify-content:flex-start;background:transparent;border-color:transparent;white-space:normal;text-align:left}.manager-sidebar [aria-current=page]{background:#e5f1ea;border-color:#c8e0d2;color:#146b58}.manager-note{font-size:13px;line-height:1.7;color:#61746b;margin:24px 0}.manager-content{min-width:0}.manager-heading{display:flex;align-items:center;justify-content:space-between;gap:20px;margin:0 0 28px}.manager-heading h1{font-size:32px;line-height:1.25;margin:8px 0 10px}.manager-heading p{color:#607368}.manager-heading .eyebrow{font-size:11px;color:var(--teal)}.manager-content .landing-library{border:0;padding:0}.manager-content .search{max-width:480px;margin-bottom:24px;display:block}.manager-content .cards{grid-template-columns:repeat(3,minmax(0,1fr))}.manager-empty{grid-column:1/-1;text-align:center;padding:44px 24px;border:1px dashed #bfd0c3;border-radius:18px;background:#fbfcf8}.manager-empty img{object-fit:contain}.manager-empty h2{font-size:23px;margin:16px 0 8px}.manager-empty p{color:#63766b;margin-bottom:22px}.document-list article{display:flex;justify-content:space-between;gap:18px;padding:18px;background:white;border:1px solid var(--line);border-radius:12px;margin-bottom:12px;align-items:center}.document-list article div{min-width:0;overflow-wrap:anywhere}.document-list p{color:#65766d;font-size:13px;margin:6px 0}.account-summary{padding:28px;background:white;border:1px solid var(--line);border-radius:16px;max-width:680px}.account-summary p{line-height:1.8}.manager-stats{display:grid;grid-template-columns:repeat(4,1fr);gap:16px}.manager-stats>div{padding:22px;background:white;border:1px solid var(--line);border-radius:14px}.manager-stats strong{display:block;font-size:30px}.manager-stats span{font-size:13px;color:#65766d}.admin-table-wrap{overflow:auto;border:1px solid var(--line);border-radius:12px;background:white}.admin-table{border-collapse:collapse;width:100%;min-width:600px;text-align:left}.admin-table th,.admin-table td{padding:14px;border-bottom:1px solid var(--line)}.admin-table th{font-size:13px;background:#f1f5ee}.admin-table small{display:block;color:#63766b}.manager-pagination{display:flex;gap:16px;align-items:center;margin:18px 0 32px}.audit-list{padding:0;list-style:none}.audit-list li{padding:14px 0;border-bottom:1px solid var(--line)}
@media(max-width:1100px){.education-group .grade-grid{grid-template-columns:repeat(3,minmax(0,1fr))}.manager-layout{grid-template-columns:175px 1fr;gap:22px}.manager-content .cards{grid-template-columns:repeat(2,minmax(0,1fr))}.manager-stats{grid-template-columns:repeat(2,1fr)}}
@media(max-width:700px){.landing-hero{display:flex;padding:28px 0 32px;gap:24px}.landing-hero h1{font-size:38px;letter-spacing:-1px}.landing-hero figure{width:100%;max-width:420px;padding:14px;border-radius:64px 18px}.landing-hero img{max-height:190px}.landing-section{padding:32px 0}.landing-section-heading h2{font-size:28px}.education-heading p{font-size:12px}.education-group .grade-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.education-group .grade-card{padding:14px}.grade-card h4{font-size:14px}.education-group.education-group-wide .grade-card{display:flex;align-items:flex-start}.education-group.education-group-wide .grade-card .btn{margin-top:16px}.manager-layout{display:block;padding:10px 0}.manager-sidebar{border:0;padding:0}.manager-sidebar>.eyebrow,.manager-sidebar>.manager-note{display:none}.manager-sidebar nav{display:flex;gap:4px;overflow:auto;padding-bottom:14px}.manager-sidebar .btn{flex-shrink:0;font-size:13px;padding:8px 10px}.manager-heading{align-items:flex-start;flex-direction:column;gap:12px;margin-bottom:22px}.manager-heading h1{font-size:27px}.manager-content .cards{grid-template-columns:1fr}.manager-empty{padding:24px 14px}.document-list article{align-items:flex-start;flex-direction:column}.manager-stats>div{padding:15px}}

/* Equal card actions even when descriptions wrap to different numbers of lines. */
.education-group:not(.education-group-wide) .grade-card .btn{margin-top:auto}
.education-group:not(.education-group-wide) .grade-card>p:not(.eyebrow){margin-bottom:18px}
@media(max-width:700px){.education-group.education-group-wide .grade-card .btn{align-self:stretch}}
/* "Tài liệu của tôi": a grid of the documents in this browser's drafts, each with a preview. */
.document-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(210px,1fr));gap:16px}
.document-card{display:flex;flex-direction:column;min-width:0;border:1px solid var(--line);border-radius:12px;background:var(--paper);overflow:hidden}
.document-thumb{aspect-ratio:4/3;display:grid;place-items:center;overflow:hidden;background:#eef2ec}.document-thumb img{display:block;width:100%;height:100%;object-fit:cover}
.document-pdf{display:grid;place-items:center;width:64px;height:80px;border:2px solid #d9dfda;border-radius:8px;background:#fff;color:#b3261e;font-weight:900;letter-spacing:1px}
.document-info{min-width:0;padding:12px 14px 4px}.document-info strong{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.document-info p{margin:4px 0 0;font-size:13px;color:var(--muted);overflow-wrap:anywhere}
.document-actions{display:flex;flex-wrap:wrap;gap:8px;margin-top:auto;padding:10px 14px 14px}.document-actions .btn{flex:1 1 auto;min-height:40px}

.store-featured{display:grid;grid-template-columns:repeat(auto-fill,minmax(220px,1fr));gap:6px 16px;border:1px solid var(--line);border-radius:12px;padding:12px;margin:12px 0}
.store-featured label{display:flex;gap:8px;align-items:center;min-height:40px}

/* Administration must not jump (design §6.3). While a request is in flight, and after a failed one, the script holds the users block at the
   height it has (min-height), so loading or an error moves nothing; a page that shows is as tall as its rows, with the page bar right under
   the last one. As a flex column the block keeps the page bar's margin inside it, so the height held is the block's whole height and
   holding or releasing it cannot change how that margin collapses with its neighbours. After a page change the script scrolls the block
   to the top of the view when it is out of view; scroll-margin leaves a little air above the table. A section still saying
   "Đang tải…" keeps room for its content; once content or an error replaces that line, the room goes with it. */
#admin-users{display:flex;flex-direction:column;scroll-margin-top:12px}
#admin-ai-body:has(>.admin-loading),#admin-canva-body:has(>.admin-loading),#admin-store-body:has(>.admin-loading){min-height:140px}

/* Trial grants are separate from account suspension and paid products. */
.admin-ai-grant{display:grid;gap:14px;min-width:0;width:100%}
.admin-ai-grant label{display:flex;align-items:center;gap:8px;flex-wrap:wrap}
.admin-ai-grant input[type=number]{width:100%;min-width:0;min-height:44px}
.admin-ai-grant button{white-space:normal}
.admin-ai-grant [role=status],.account-ai-trial p{overflow-wrap:anywhere}
.account-ai-trial,.account-admin{border-top:1px solid var(--line);margin-top:20px;padding-top:16px}
.ai-allowance-status{font-size:14px;line-height:1.5;color:var(--muted);overflow-wrap:anywhere}


#admin-users tbody tr{height:112px}#admin-users td{vertical-align:middle}.admin-ai-grant-cell{display:grid;gap:8px;justify-items:start;min-width:165px}.admin-ai-grant-cell [data-ai-grant-status]{font-size:14px;line-height:1.4;white-space:nowrap}.admin-ai-grant-cell .btn{min-height:44px}.admin-allowance-dialog{box-sizing:border-box;width:calc(100% - 32px);max-width:480px;max-height:calc(100dvh - 32px);overflow:auto}.admin-ai-grant-person{overflow-wrap:anywhere}.admin-ai-grant-person strong,.admin-ai-grant-person span{display:block}.admin-ai-grant-actions{display:flex;flex-wrap:wrap;gap:8px}.admin-ai-grant-actions .btn{min-height:44px}.admin-ai-grant [role=status]{min-height:1.5em}.admin-ai-grant input[type=checkbox]{width:20px;height:20px;flex:none}.admin-ai-grant input[type=number]{box-sizing:border-box}
