* {
  box-sizing:border-box;
}
body {
  margin:0;
  background:#fff;
  color:#202322;
  font-family:Arial,'Apple SD Gothic Neo','Malgun Gothic',sans-serif;
  font-size:15px;
  line-height:1.6;
}
button,input,select,textarea {
  font:inherit;
}
button {
  cursor:pointer;
}
button:disabled {
  cursor:wait;
  opacity:.5;
}
a {
  color:inherit;
}
h1,h2,h3 {
  overflow-wrap:anywhere;
}
p {
  overflow-wrap:anywhere;
}
.topbar {
  height:82px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  padding:12px 38px;
  border-bottom:1px solid var(--line);
  background:white;
  gap:18px;
}
.topbar img {
  width:138px;
  height:auto;
}
.topbar nav {
  display:flex;
  align-items:center;
  gap:26px;
}
.topbar a {
  text-decoration:none;
  font-size:13px;
}
.topbar .nav-active {
  font-weight:700;
  border-bottom:2px solid var(--ink);
  padding:10px 0;
}
.workspace {
  max-width:1440px;
  margin:0 auto;
  display:grid;
  grid-template-columns:236px minmax(0,1fr);
  min-height:calc(100vh - 82px);
}
.sidebar {
  padding:32px 18px 60px;
  background:#fbfcf9;
  border-right:1px solid var(--line);
}
.sidebar-label {
  font-size:10px;
  letter-spacing:.16em;
  color:var(--muted-foreground);
  margin:4px 12px 16px;
}
.sidebar-course-title {
  font-size:18px;
  line-height:1.5;
  letter-spacing:-.035em;
  font-weight:700;
  padding:0 12px;
  margin:0 0 32px;
}
.side-nav {
  display:flex;
  flex-direction:column;
  gap:5px;
}
.side-nav button {
  display:flex;
  align-items:center;
  gap:12px;
  padding:14px 15px;
  text-align:left;
  line-height:1.4;
  border:0;
  border-left:3px solid transparent;
  background:transparent;
  border-radius:4px;
  color:#69706a;
  font-size:13px;
  font-weight:600;
  white-space:nowrap;
  width:100%;
  justify-content:flex-start;
}
.side-nav button .lucide {
  width:17px;
  height:17px;
}
.side-nav button[aria-current=page] {
  background:var(--ink);
  color:white;
  border-left-color:var(--accent);
}
.side-nav button[aria-current=page] .lucide {
  color:var(--accent);
}
.side-nav button:disabled {
  opacity:.35;
  cursor:default;
}
.sidebar>.field {
  margin:0 8px 16px;
}
.sidebar>.btn {
  margin:0 8px 30px;
}
.workspace main {
  min-width:0;
  padding:32px 40px 64px;
}
.page-context {
  display:flex;
  gap:10px;
  align-items:center;
  color:var(--muted-foreground);
  font-size:11px;
  margin:0 0 24px;
  flex-wrap:wrap;
}
.page-context span:last-child {
  color:var(--ink);
}
.page-head {
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:24px;
  padding:32px 34px;
  background:var(--ink);
  color:#fff;
  border-radius:6px 6px 0 0;
  min-height:178px;
  margin:0 0 30px;
}
.portal-page .page-head {
  margin-bottom:0;
}
.eyebrow {
  display:flex;
  align-items:center;
  gap:10px;
  font-size:10px;
  color:#c7cbc2;
  font-weight:600;
  letter-spacing:.13em;
}
.page-head .eyebrow:before {
  content:'';
  width:9px;
  height:9px;
  background:var(--accent);
  flex:none;
}
.page-head h1 {
  font-size:clamp(27px,3.5vw,43px);
  letter-spacing:-.055em;
  line-height:1.25;
  margin:12px 0 12px;
}
.page-head p {
  margin:0;
  color:#c5c8c1;
  font-size:12px;
  max-width:580px;
}
.page-head>.btn {
  flex:none;
  color:#fff;
  border-color:#656a61;
  background:transparent;
  font-size:12px;
}
.header-metric {
  text-align:right;
  flex:none;
}
.header-metric small {
  display:block;
  font-size:10px;
  color:#c5c8c1;
  margin-bottom:6px;
}
.header-metric strong {
  font-size:58px;
  line-height:1;
  letter-spacing:-.06em;
  color:var(--accent);
  font-weight:600;
  font-variant-numeric:tabular-nums;
}
.header-metric span {
  font-size:20px;
  color:#93988e;
  margin-left:8px;
}
.page-symbol {
  color:var(--accent);
  padding:14px;
  border:1px solid #52584e;
  border-radius:5px;
}
.page-symbol .lucide {
  width:30px;
  height:30px;
}
.card {
  background:#fff;
  border:0;
  border-top:2px solid var(--ink);
  padding:26px 0 28px;
  margin:0 0 24px;
  border-radius:0;
  box-shadow:none;
}
.card h2 {
  font-size:20px;
  margin:0 0 24px;
  letter-spacing:-.035em;
}
.card h3 {
  font-size:20px;
  margin:20px 0 10px;
  letter-spacing:-.03em;
}
.card>p:first-child {
  margin-top:0;
}
.muted {
  color:var(--muted-foreground);
  font-size:12px;
  line-height:1.8;
}
.stack {
  display:flex;
  flex-direction:column;
  gap:24px;
}
.stack>.card {
  margin:0;
}
.row {
  display:flex;
  align-items:center;
  gap:12px;
  flex-wrap:wrap;
}
.between {
  justify-content:space-between;
}
.field {
  display:flex;
  flex-direction:column;
  gap:9px;
}
.field-label {
  font-size:13px;
  font-weight:600;
}
input:not([type=checkbox]):not([type=radio]),select,textarea {
  width:100%;
  min-width:0;
  padding:12px 13px;
  border:1px solid #d2d6cd;
  border-radius:5px;
  background:#fff;
  color:var(--ink);
  min-height:44px;
  font-size:14px;
}
input[type=file] {
  font-size:12px;
}
textarea {
  resize:vertical;
  line-height:1.7;
}
input[type=checkbox],input[type=radio] {
  width:18px;
  height:18px;
  accent-color:var(--ink);
  flex:none;
}
.btn {
  min-height:42px;
  display:inline-flex;
  justify-content:center;
  align-items:center;
  gap:10px;
  padding:10px 16px;
  border:1px solid #d2d6cd;
  border-radius:5px;
  background:white;
  color:var(--ink);
  text-decoration:none;
  font-weight:600;
  font-size:13px;
  width:fit-content;
}
.btn.primary {
  min-height:46px;
  padding:12px 20px;
}
.btn.accent {
  background:var(--accent);
  border-color:var(--accent);
}
.btn.small {
  min-height:34px;
  padding:6px 10px;
  font-size:11px;
}
.btn.danger {
  color:#a0392d;
}
.btn:hover {
  background:#f5f6f2;
}
.btn .lucide {
  width:16px;
  height:16px;
}
.badge {
  display:inline-block;
  padding:3px 7px;
  border:1px solid var(--line);
  border-radius:4px;
  background:#f6f7f3;
  font-size:10px;
  font-weight:600;
  color:#626a5a;
  white-space:nowrap;
}
.badge.help {
  background:#fff2d9;
  border-color:#e6c883;
  color:#885612;
}
.badge.ready {
  background:#eef4e7;
  color:#48603d;
}
.badge.required {
  background:var(--ink);
  color:#fff;
  border-color:var(--ink);
}
.page-status {
  position:sticky;
  top:12px;
  z-index:20;
  background:#f0f5e6;
  border:1px solid #c9d5b8;
  padding:12px 16px;
  margin:20px 0;
  border-radius:5px;
  font-size:13px;
}
.page-status.is-error {
  background:#fff0eb;
  color:#923226;
  border-color:#e8bfb4;
}
.notice {
  padding:15px 18px;
  background:#f6f7f3;
  border-left:3px solid var(--ink);
  border-radius:0;
  font-size:13px;
  line-height:1.8;
  margin:0 0 22px;
}
.step-progress {
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  margin:0 0 38px;
  border:1px solid var(--line);
  border-top:0;
}
.step-progress>span {
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:10px;
  font-size:12px;
  padding:16px 18px;
  color:var(--muted-foreground);
  border-right:1px solid var(--line);
}
.step-progress>span:last-child {
  border:0;
}
.step-progress .current {
  background:var(--accent);
  color:var(--ink);
  font-weight:700;
}
.step-progress .done {
  color:var(--ink);
}
.step-progress .lucide {
  width:15px;
  height:15px;
}
.checklist-group {
  border-top:0;
  padding:0;
  margin:0;
}
.checklist-group h2 {
  display:flex;
  align-items:center;
  gap:12px;
  border-bottom:1px solid var(--ink);
  padding-bottom:17px;
  margin-bottom:0;
}
.section-number {
  font-size:11px;
  color:#848a7e;
  font-weight:400;
  letter-spacing:.08em;
}
.checklist-group>.muted {
  margin:14px 0 0;
}
.check-item {
  display:grid;
  grid-template-columns:minmax(0,1fr) 150px;
  gap:20px;
  padding:23px 0;
  border-bottom:1px solid var(--line);
}
.checklist-row {
  grid-template-columns:28px minmax(0,1fr) 154px;
  align-items:center;
}
.check-item p {
  margin:8px 0 0;
}
.check-item .btn.small {
  border:0;
  border-bottom:1px solid #aeb6a3;
  border-radius:0;
  padding:4px 0;
  margin-top:10px;
  min-height:0;
  color:#626a5a;
}
.check-item select {
  font-size:12px;
  min-height:39px;
  padding:8px 10px;
}
.check-item strong {
  font-size:14px;
  font-weight:600;
  line-height:1.7;
}
.check-copy .badge {
  margin-right:8px;
}
.check-marker {
  display:flex;
  align-items:center;
  justify-content:center;
  width:25px;
  height:25px;
  border:1px solid #cfd4c9;
  border-radius:50%;
  color:#939b8a;
}
.check-marker .lucide {
  width:14px;
  height:14px;
}
.checklist-row[data-state=ready] .check-marker {
  background:#eff3e5;
  border-color:#d4dec7;
  color:#445b34;
}
.checklist-row[data-state=help] .check-marker {
  background:#fff2d9;
  border-color:#e6c883;
  color:#936013;
}
.checklist-row[data-state=ready] select {
  background:#f2f5eb;
  border-color:#d7dfc9;
  color:#4e5b3d;
}
.checklist-row[data-state=help] select {
  background:#fff7e8;
  border-color:#e6c883;
  color:#885612;
}
.grid-2 {
  display:grid;
  grid-template-columns:minmax(0,1fr) minmax(0,1fr);
  gap:28px;
}
.stats {
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  border:1px solid var(--line);
  margin-bottom:36px;
}
.stat {
  padding:22px 24px;
  border-right:1px solid var(--line);
}
.stat:last-child {
  border:0;
}
.stat small {
  font-size:12px;
  color:var(--muted-foreground);
}
.stat strong {
  display:block;
  font-size:44px;
  line-height:1.2;
  margin-top:15px;
  letter-spacing:-.05em;
  font-weight:600;
  font-variant-numeric:tabular-nums;
}
.stat.help {
  background:#fff8e9;
}
.stat.help strong {
  color:#936013;
}
.summary-row {
  display:grid;
  grid-template-columns:minmax(55px,1fr) 2fr 45px;
  align-items:center;
  gap:12px;
  margin-top:10px;
  font-size:12px;
}
meter {
  width:100%;
  accent-color:#66764b;
}
.entry-text {
  white-space:pre-wrap;
  overflow-wrap:anywhere;
  font-size:14px;
  line-height:1.9;
}
.reply {
  border-left:2px solid var(--line);
  margin:22px 0;
  padding:2px 0 2px 16px;
  font-size:13px;
}
.reply p {
  margin:5px 0;
}
details {
  border-top:1px solid var(--line);
  padding-top:18px;
  margin-top:24px;
}
summary {
  cursor:pointer;
  font-size:13px;
  font-weight:600;
}
.compact-form {
  margin-top:24px;
}
.empty {
  padding:36px 24px;
  text-align:center;
  color:var(--muted-foreground);
  border:1px dashed #d2d6ca;
  border-radius:5px;
  font-size:14px;
}
.editor-item {
  padding:22px;
  border:1px solid var(--line);
  border-radius:5px;
  background:#fafbf8;
}
.editor-item+.editor-item {
  margin-top:16px;
}
.editor-grid {
  display:grid;
  grid-template-columns:minmax(0,1fr) 150px;
  gap:16px;
}
.editor-item .field {
  margin-bottom:16px;
}
.member-row {
  padding:22px 0;
  border-bottom:1px solid var(--line);
}
.member-row:first-child {
  padding-top:0;
}
.member-row small {
  display:block;
  font-size:12px;
  margin:5px 0 15px;
  overflow-wrap:anywhere;
}
.answer {
  background:#f6f7f3;
  padding:14px;
  border-radius:4px;
  white-space:pre-wrap;
  font-size:13px;
}
.file-dialog {
  width:min(1000px,96vw);
  height:88vh;
  padding:18px;
  border:1px solid var(--ink);
  border-radius:6px;
}
.file-dialog::backdrop {
  background:#202322b3;
}
.file-dialog iframe {
  width:100%;
  height:calc(100% - 60px);
  border:0;
  margin-top:12px;
}
.link-input {
  font-size:12px;
}
footer.portal-foot {
  color:var(--muted-foreground);
  font-size:10px;
  margin-top:48px;
  border-top:1px solid var(--line);
  padding-top:20px;
}
.teacher-form-note {
  font-size:12px;
  color:var(--muted-foreground);
}
[hidden] {
  display:none!important;
}
@media(min-width:1440px) {
  .workspace {
    border-left:1px solid var(--line);
    border-right:1px solid var(--line);
  }
}
@media(max-width:1000px) {
  .workspace {
    grid-template-columns:210px minmax(0,1fr);
  }
  .workspace main {
    padding:28px;
  }
  .sidebar {
    padding:28px 12px;
  }
  .page-head {
    padding:28px;
  }
  .header-metric strong {
    font-size:48px;
  }
  .checklist-row {
    grid-template-columns:25px minmax(0,1fr) 140px;
    gap:14px;
  }
  .page-head h1 {
    font-size:32px;
  }
  .grid-2 {
    grid-template-columns:1fr;
  }
  .sidebar-course-title {
    font-size:16px;
  }
}
@media(max-width:760px) {
  .topbar {
    height:72px;
    padding:12px 22px;
  }
  .topbar img {
    width:122px;
  }
  .topbar nav {
    gap:16px;
  }
  .topbar nav a {
    font-size:11px;
  }
  .workspace {
    display:block;
    min-height:calc(100vh - 72px);
  }
  .sidebar {
    padding:20px 22px 0;
    border-right:0;
    border-bottom:1px solid var(--line);
  }
  .sidebar-label {
    display:none;
  }
  .sidebar-course-title {
    padding:0;
    margin:0 0 14px;
    font-size:15px;
  }
  .side-nav {
    flex-direction:row;
    overflow:auto;
    margin:0 -22px;
    padding:0 22px 14px;
    gap:6px;
  }
  .side-nav button {
    padding:12px 14px;
    width:auto;
    flex:none;
    font-size:12px;
  }
  .side-nav button .lucide {
    width:15px;
    height:15px;
  }
  .sidebar>.field {
    margin:0 0 12px;
  }
  .sidebar>.btn {
    margin:0 0 18px;
  }
  .workspace main {
    padding:24px 22px 48px;
  }
  .page-context {
    margin-bottom:18px;
    font-size:10px;
    gap:7px;
  }
  .page-head {
    padding:26px 24px;
    min-height:155px;
    gap:16px;
  }
  .page-head h1 {
    font-size:29px;
  }
  .page-head p {
    font-size:11px;
  }
  .page-head .eyebrow {
    font-size:9px;
  }
  .header-metric strong {
    font-size:42px;
  }
  .header-metric span {
    font-size:16px;
  }
  .header-metric small {
    font-size:9px;
  }
  .page-symbol {
    display:none;
  }
  .step-progress {
    margin-bottom:30px;
  }
  .step-progress>span {
    padding:14px 10px;
    font-size:10px;
    gap:6px;
  }
  .step-progress .lucide {
    width:12px;
    height:12px;
  }
  .card {
    padding:22px 0;
    margin-bottom:20px;
  }
  .card h2 {
    font-size:18px;
    margin-bottom:22px;
  }
  .checklist-group {
    padding-top:0;
  }
  .checklist-group h2 {
    margin-bottom:0;
  }
  .checklist-row {
    grid-template-columns:24px minmax(0,1fr);
    gap:12px;
    padding:22px 0;
  }
  .checklist-row select {
    grid-column:2;
    max-width:220px;
  }
  .check-marker {
    align-self:start;
    margin-top:2px;
  }
  .check-item strong {
    font-size:13px;
  }
  .check-copy .badge {
    font-size:9px;
  }
  .stats {
    margin-bottom:30px;
  }
  .stat {
    padding:18px 13px;
  }
  .stat small {
    font-size:10px;
  }
  .stat strong {
    font-size:34px;
  }
  .editor-grid {
    grid-template-columns:1fr;
  }
  .editor-item {
    padding:18px;
  }
  .admin-page .page-head {
    align-items:start;
    flex-direction:column;
  }
  .admin-page .page-head h1 {
    font-size:27px;
  }
  .admin-page .page-head>.btn {
    padding:7px 12px;
    min-height:34px;
  }
  .summary-row {
    grid-template-columns:minmax(55px,1fr) 1fr 34px;
  }
  .check-item:not(.checklist-row) {
    grid-template-columns:minmax(0,1fr) auto;
    gap:12px;
  }
  .muted {
    font-size:11px;
  }
}
.file-dialog {
  padding:0;
  overflow:hidden;
}
.file-viewer-head {
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:20px;
  padding:15px 20px;
  background:var(--ink);
  color:#fff;
  border-bottom:3px solid var(--accent);
}
.file-viewer-head p {
  margin:0;
  font-size:14px;
  font-weight:600;
}
.file-viewer-head .btn {
  background:transparent;
  color:#fff;
  border-color:#686e60;
  font-size:12px;
  min-height:35px;
  padding:6px 12px;
}
.file-dialog iframe {
  height:calc(100% - 72px);
  margin:0;
  padding:15px;
}
.page-head h1 {
  word-break:keep-all;
  overflow-wrap:anywhere;
}
.check-item .btn.small {
  display:flex;
  width:fit-content;
}
@media(min-width:761px) {
  .side-nav {
    position:sticky;
    top:24px;
  }
}
