:root{color-scheme:light;--ink:#162e41;--muted:#506579;--paper:#f7f9fc;--white:#fff;--line:#dce5e7;--orange:#ac4105;--orange-bright:#f47422;--blue:#145b91;--green:#20724a;--pale-blue:#eaf4fb;--pale-green:#e7f5eb;--pale-orange:#fff0e0;
  --font:ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;
  --action-blue:#185abc;--action-green:#087447;--action-orange:#af4208;
  --text-size:1rem;--heading-size:1.16667rem;--shadow:0 8px 24px #16384f0b}
*{box-sizing:border-box}
[hidden]{display:none!important}
body{margin:0;background:var(--paper);color:var(--ink);font:var(--text-size)/1.6 var(--font)}
a{color:var(--blue);text-underline-offset:4px}
button,input,textarea,select,pre,code,kbd,samp{font:inherit}
button{cursor:pointer}
button:disabled,input:disabled,textarea:disabled{cursor:not-allowed;opacity:.65}
:focus-visible{outline:3px solid #197bb3;outline-offset:4px}
h1,h2,h3,p{margin:0 0 .55em}
h1,h2,h3,h4,h5,h6{font-weight:600;line-height:1.35}
h1,h2{font-size:var(--heading-size)}
h3,h4,h5,h6{font-size:var(--text-size)}
p{color:var(--muted)}
.shell{width:min(1240px,calc(100% - 64px));margin-inline:auto}
.skip{position:absolute;left:-999px}.skip:focus{left:12px;top:12px;z-index:10;background:white;padding:8px}
.site-header{background:white;border-bottom:1px solid var(--line)}
.header-inner{display:flex;align-items:center;justify-content:space-between;gap:16px;min-height:70px}
.header-tools{display:grid;justify-items:end;gap:5px;margin-left:auto;padding-block:5px}
.site-stats{display:flex;flex-wrap:wrap;justify-content:flex-end;gap:5px}
.site-stats button{min-height:26px;padding:2px 7px;border:1px solid #cedff2;border-radius:999px;background:#eef5fd;color:var(--action-blue);font-size:.72rem;line-height:1.2;font-weight:600;white-space:nowrap}
.site-stats button + button{border-color:#c8e6d6;background:#eef8f2;color:var(--action-green)}
.site-stats strong{margin-left:.13em;font-variant-numeric:tabular-nums}
.site-stats button:hover{filter:brightness(.94)}
.brand{display:inline-flex;align-items:center;gap:11px;font-weight:700;letter-spacing:.085em;line-height:1.3;color:var(--ink);text-decoration:none;white-space:nowrap}
.mark{display:flex;align-items:center;gap:3px;background:#f0ece5;border-radius:12px;padding:11px}
.mark i{width:5px;height:19px;display:block;transform:skew(-13deg);border-radius:3px;background:#ed731d}.mark i:nth-child(2){background:#176da5;height:24px}.mark i:nth-child(3){background:#289352}
nav{display:flex;gap:clamp(11px,2vw,30px);align-items:center}nav a{white-space:nowrap;text-decoration:none;color:var(--muted);padding:12px 0;font-weight:600}nav a[aria-current]{color:var(--orange);box-shadow:0 2px 0 var(--orange)}nav a:hover{color:var(--orange)}
.button{display:inline-flex;align-items:center;justify-content:center;gap:7px;min-height:43px;padding:8px 15px;border-radius:10px;border:1px solid transparent;background:var(--action-orange);color:#fff;text-decoration:none;font-weight:650;line-height:1.35;text-align:center;vertical-align:middle}
.button:hover:not(:disabled){filter:brightness(.93)}
.button:active:not(:disabled){filter:brightness(.88)}
.button.subtle{background:white;color:var(--ink);border-color:var(--line)}
.button.blue{background:var(--action-blue)}
.button.green{background:var(--action-green)}
.button.large{min-height:52px;padding:10px 22px}.account{max-width:180px;overflow-wrap:anywhere}
main{min-height:65vh;padding:24px 0 48px}
.eyebrow{text-transform:uppercase;letter-spacing:.145em;color:var(--orange);font-weight:700;margin:0 0 16px;display:block}
.actions{display:flex;gap:10px;align-items:center;flex-wrap:wrap}
.section-top{margin:24px 0 12px;display:flex;justify-content:space-between;align-items:end;gap:15px}.section-top h2,.section-top p{margin-bottom:0}
.grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:18px}.grid.two{grid-template-columns:repeat(2,minmax(0,1fr))}
.card{min-width:0;background:white;border:1px solid var(--line);border-radius:17px;padding:20px;box-shadow:var(--shadow);overflow-wrap:anywhere}.card p:last-child{margin-bottom:0}
.feature{border-top:4px solid var(--orange-bright)}.feature:nth-child(2){border-top-color:#3582b5}.feature:nth-child(3){border-top-color:#439364}
.tag{display:inline-flex;border-radius:7px;padding:4px 9px;background:var(--pale-orange);color:var(--orange);font-weight:700}.tag.blue{background:var(--pale-blue);color:var(--blue)}.tag.green{background:var(--pale-green);color:var(--green)}
.page-title{padding:6px 0 12px}.page-title p{max-width:700px}
.workspace{display:grid;align-items:start;grid-template-columns:minmax(0,2fr) minmax(230px,1fr);gap:20px}.stack{display:grid;gap:16px}.card-head{display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:10px;margin-bottom:11px}.card-head h2,.card-head h3{margin:0}
label{display:block;font-weight:600;margin-bottom:5px}
textarea,input[type="search"],input[type="text"],select{display:block;width:100%;background:#fcfdfe;border:1px solid #bfced8;border-radius:9px;padding:11px 12px;color:var(--ink)}
textarea{resize:vertical;min-height:120px;line-height:1.65}.essay{min-height:300px}
.form-row{display:flex;gap:13px;flex-wrap:wrap}.form-row>div{flex:1;min-width:148px}
.muted{color:var(--muted);}.counter{font-variant-numeric:tabular-nums;font-weight:700}.notice{padding:12px 16px;background:var(--pale-blue);color:#153f5a;border-radius:9px}.notice.error{background:#fff0e9;color:#8b260a}
.card .actions{margin-top:12px}.card .actions:first-child{margin-top:0}
.list{display:grid;gap:12px;list-style:none;padding:0;margin:0}.row{display:flex;justify-content:space-between;align-items:center;gap:14px;padding:14px 0;border-top:1px solid var(--line)}.row p,.row h3{margin:0}.preline{white-space:pre-wrap;line-height:1.65}
.photo-list{display:grid;grid-template-columns:repeat(auto-fill,minmax(145px,1fr));gap:10px;padding:0;list-style:none}.photo-list li{border:1px solid var(--line);padding:9px;border-radius:9px}.photo-list img{width:100%;height:130px;object-fit:contain;background:#f0f4f5}.photo-list .actions{gap:4px}.photo-list .button{min-height:32px;padding:4px 7px;}
.criteria progress{width:100%;accent-color:var(--green);height:13px}.criteria p{margin-bottom:8px}.score{font-weight:700;color:var(--green)}
blockquote{margin:7px 0 11px;padding:7px 13px;border-left:3px solid #eba565;background:var(--pale-orange);white-space:pre-wrap}
.site-footer{display:flex;justify-content:space-between;gap:18px;border-top:1px solid #deded9;padding:25px 0 32px;color:var(--muted);}.site-footer span{display:block}.site-footer a{margin-left:18px}
dialog{width:min(690px,calc(100% - 30px));max-height:90vh;border:1px solid var(--line);border-radius:18px;padding:24px;color:var(--ink)}dialog::backdrop{background:#15324299}.close{float:right;margin:0 0 8px 8px}#toast{position:fixed;z-index:5;bottom:18px;right:18px;max-width:calc(100% - 36px)}#toast:not(:empty){background:var(--ink);color:white;border-radius:9px;padding:12px 15px;box-shadow:var(--shadow)}
.bar-chart{display:grid;gap:9px}.bar-chart .row{padding:6px 0}.bar-chart progress{width:min(55%,330px);height:18px;accent-color:var(--blue)}
@media(max-width:1250px){.header-inner{flex-wrap:wrap;padding:11px 0;gap:8px}.header-inner nav{order:3;width:100%;overflow:auto}}
@media(max-width:1120px){.shell{width:calc(100% - 40px)}}
@media(max-width:700px){.shell{width:calc(100% - 28px)}main{padding-top:18px}.grid,.grid.two,.workspace{grid-template-columns:1fr}.card{padding:17px}.site-footer{flex-wrap:wrap}.site-footer a{margin:0 12px 0 0}.section-top{align-items:start;flex-wrap:wrap}.button{min-height:42px}.row{flex-wrap:wrap}.page-title{padding-top:5px}}

/* Homepage banner */
.literature-hero {
  display: grid;
  position: relative;
  isolation: isolate;
  grid-template-columns: minmax(0, 1.25fr) minmax(240px, .85fr);
  align-items: center;
  gap: clamp(16px, 4vw, 60px);
  padding: clamp(18px, 2.8vw, 36px);
  border: 1px solid #d5e5eb;
  border-radius: 24px;
  overflow: hidden;
  background: linear-gradient(110deg, #fff7e9 0%, #fffdf6 42%, #e8f6ff 76%, #deeffc 100%);
}
.literature-hero::before {
  position: absolute;
  inset: 0 0 auto;
  height: 4px;
  content: "";
  background: linear-gradient(90deg, #0878b9 0 33.33%, #f36f21 33.33% 66.67%, #16a454 66.67%);
}
.hero-copy { position: relative; z-index: 1; min-width: 0; }
.hero-copy > img { display: block; width: 90px; height: auto; margin-bottom: 10px; }
.hero-copy h1 { margin: 0 0 8px; }
.hero-copy h1 span { color: var(--orange); font-style: italic; }
.hero-copy p {
  max-width: 43ch;
  margin: 0 0 14px;
}
.hero-copy .button { min-height: 47px; padding-inline: 17px; }
.hero-contact { display: inline-block; margin-top: 12px; }
.hero-mascot { position: relative; display: grid; place-items: center; isolation: isolate; }
.hero-mascot::before {
  position: absolute;
  z-index: -1;
  width: min(91%, 245px);
  aspect-ratio: 1;
  border-radius: 50%;
  content: "";
  background: radial-gradient(circle, #fffdf4 0 54%, #fffdf458 55% 68%, transparent 69%);
  box-shadow: 0 0 0 1px #8cc7e15e;
}
.hero-mascot img {
  display: block;
  width: min(100%, 230px);
  height: auto;
  filter: drop-shadow(0 11px 13px #1f427b28);
}
.school-form .practice-publish { display:flex; align-items:center; gap:.55rem; }
.practice-publish input { width:auto; }

/* Writing workspace */
.writing-toolbar {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 24px;
  margin-bottom: 18px;
  padding: 15px clamp(16px, 3vw, 28px);
  border: 1px solid #cddfeb;
  border-radius: 18px;
  background: #eaf5fd;
}
.writing-toolbar .page-title { padding: 0; }
.writing-toolbar .page-title h1 { margin-bottom: 5px; }
.writing-toolbar .page-title p { margin-bottom: 0; }
.writing-clock { display: flex; align-items: center; flex-wrap: wrap; gap: 8px 16px; }
.writing-clock span { display: block; color: var(--muted); font-weight: 600; }
.writing-clock .timer { line-height: 1.2; }
.writing-page .workspace { grid-template-columns: minmax(0, 2.5fr) minmax(230px, 1fr); }
.writing-prompt { border-top: 3px solid #d99353; background: #fffcf5; }
.writing-editor { border-top: 3px solid #4a8fb9; }
.writing-prompt > .card-head, .writing-editor > .card-head:first-child {
  padding-bottom: 12px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 14px;
}
.writing-options { margin-bottom: 12px; }
.writing-prompt summary { margin-top: 7px; cursor: pointer; }
.writing-submit { margin: 14px 0 0; justify-content: flex-end; }
.writing-submit #word-count { margin-right: auto; }
.writing-page .card-head .actions { margin-top: 0; }
@media (max-width: 760px) {
  .writing-page .workspace { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 600px) {
  .literature-hero { grid-template-columns: minmax(0, 1fr); gap: 4px; }
  .hero-mascot { width: min(100%, 164px); justify-self: center; }
}
.school-identity { display:flex; flex-wrap:wrap; gap:.75rem; align-items:center; }
.school-form { display:grid; gap:.75rem; }
.school-form label { display:grid; gap:.35rem; margin:0; }
.school-form .button { justify-self:start; }
.school-form textarea { min-height:8rem; resize:vertical; }
.school-form textarea[name="essay"] { min-height:17rem; }
.school-form [hidden] { display:none; }
.school-grid { align-items:start; }
.school-back { margin:0 0 1rem; }
.school-details { padding:1rem 0; border-bottom:1px solid #ece4d9; }
.school-details:last-child { border-bottom:0; padding-bottom:0; }
.school-details summary { font-weight:700; cursor:pointer; }
.school-details .muted { font-weight:400; }
.class-code { color:#16324a; font-weight:700; font-variant-numeric:tabular-nums; letter-spacing:.13em; overflow-wrap:anywhere; }
.answer-text { overflow-wrap:anywhere; max-height:24rem; overflow:auto; }
@media (max-width: 560px) {
  .literature-hero .button { padding-inline:10px; }
}

.submission-upload { min-width:0; margin:0; padding:.8rem 1rem; border:1px solid var(--line); border-radius:12px; }
.submission-upload legend { padding:0 .25rem; font-weight:700; }
.submission-upload .photo-list:empty { display:none; }
.exam-attachments { margin:0 0 1rem; }
.exam-attachments .form-row > div { min-width:min(100%, 15rem); }
.exam-attachments input[type="file"] { max-width:100%; }
.school-details h4 { margin:0 0 .65rem; }
.school-details .notice + .school-form { margin-top:.8rem; }

.grading-workspace, .review-layout {
  display:grid;
  align-items:start;
  gap:1rem;
}
.grading-workspace { grid-template-columns:minmax(10rem, .24fr) minmax(0, 1fr); }
.review-layout { grid-template-columns:minmax(0, 1fr) minmax(16rem, .9fr); }
.grading-workspace .card, .review-layout .card { min-width:0; overflow-wrap:anywhere; }
.grade-queue-item { gap:.5rem; flex-wrap:wrap; text-decoration:none; color:var(--ink); padding-inline:.5rem; }
.grade-queue-item[aria-current="true"] { background:#edf6fb; border-radius:.5rem; }
.quick-review { margin:0; gap:.35rem; }
.quick-review .button { min-height:2.1rem; padding:.25rem .55rem; }
.school-form textarea[name="note"] { min-height:6rem; }
.school-form textarea[name="correction"] { min-height:4rem; }
#giao-de { scroll-margin-top:6rem; }
#giao-de > details { margin-top:.75rem; }
#giao-de summary { cursor:pointer; font-weight:700; }
#giao-de > details > form { padding-block:.65rem; }
.attendance-list { display:grid; grid-template-columns:repeat(auto-fit,minmax(min(100%,14rem),1fr)); gap:.55rem; }
.attendance-list label { display:flex; align-items:center; gap:.55rem; padding:.45rem; border:1px solid var(--line); border-radius:.5rem; }
.attendance-list input { width:1.2rem; height:1.2rem; flex:none; }
.attendance-date { display:grid; gap:.4rem; width:max-content; max-width:100%; margin-bottom:.85rem; }
.attendance-table { overflow:auto; }
.attendance-table table { width:100%; border-collapse:collapse; text-align:left; }
.attendance-table th, .attendance-table td { padding:.65rem; border-bottom:1px solid var(--line); }
.attendance-self { background:#edf6fb; font-weight:700; }
@media (max-width: 1050px) {
  .grading-workspace { grid-template-columns:1fr; }
}
@media (max-width: 680px) {
  .review-layout { grid-template-columns:1fr; }
}
