.sr-only, .skip:not(:focus) { clip-path: inset(50%); width: 1px; height: 1px; overflow: hidden; position: absolute; white-space: nowrap; }
.skip:focus { position: absolute; z-index: 3; top: 8px; left: 8px; background: white; padding: .5rem; }
.topbar { background: var(--surface); border-bottom: 1px solid var(--line); }
.topbar-inner { align-items: center; display: flex; gap: 1rem; justify-content: space-between; margin: 0 auto; max-width: 1360px; min-height: 70px; padding: 10px 32px; }
.account { align-items: center; display: flex; flex-wrap: wrap; gap: 8px; justify-content: end; min-width: 0; }
#account-name { font-weight: 650; font-size: .87rem; overflow-wrap: anywhere; }
.role-tag, .badge { align-items: center; background: var(--accent-soft); border-radius: 100px; color: var(--accent-dark); display: inline-flex; font-size: .76rem; font-weight: 750; gap: .35em; padding: .3em .75em; white-space: nowrap; }
.badge[data-state="published"], .badge[data-state="done"] { background: var(--green-soft); color: var(--green); }
.badge[data-state="failed"] { background: var(--danger-soft); color: var(--danger); }
.shell { margin: auto; max-width: 1360px; padding: 34px 32px 64px; outline: none; }
.panel { background: var(--surface); border: 1px solid var(--line); border-radius: 15px; }
.boot { color: var(--muted); padding: 1.25rem; }
.signin { background: var(--surface); border: 1px solid var(--line); border-radius: 23px; box-shadow: 0 16px 50px #24254b10; display: grid; grid-template-columns: 1.07fr 1fr; margin: clamp(0px, 4vw, 48px) auto 0; max-width: 1020px; overflow: hidden; }
.signin-intro { background: linear-gradient(146deg,#3d3099,#5544c8 62%,#6753d7); color: #fff; padding: clamp(28px,5vw,55px) clamp(24px,5vw,54px) 14px; }
.signin-kicker { align-items: center; border: 1px solid #a79af2; border-radius: 100px; color: #f0ebff; display: inline-flex; font-size: .77rem; font-weight: 650; gap: .48rem; padding: .38rem .78rem; }
.signin-kicker span { background: #c6b9ff; border-radius: 50%; height: 7px; width: 7px; }
.signin-intro h1 { font-size: clamp(2rem,4.1vw,3.35rem); font-weight: 790; letter-spacing: -.055em; line-height: 1.16; margin: 23px 0 15px; }
.signin-intro p { color: #eeeaff; line-height: 1.65; }
.signin-art { margin: 22px auto 0; max-width: 420px; }
.signin-art svg { display: block; width: 100%; }
.signin-main { align-self: center; padding: 38px clamp(24px,5vw,56px); }
.signin-main h2 { font-size: clamp(1.35rem,2.35vw,1.8rem); letter-spacing: -.04em; margin: 5px 0 6px; }
.signin-main p { font-size: .92rem; }
#login-form { margin-top: 24px; }
fieldset { border: 0; margin: 0; min-width: 0; padding: 0; }
.role-options { background: #f2f2f8; border: 1px solid var(--line); border-radius: 10px; display: grid; gap: 4px; grid-template-columns: repeat(2, 1fr); margin-bottom: 20px; padding: 4px; }
.role-options label { cursor: pointer; display: grid; grid-template-columns: auto auto; align-items: center; justify-content: center; gap: .42rem; min-height: 40px; border-radius: 7px; color: var(--muted); font-weight: 680; }
.role-options label:has(:checked) { background: white; box-shadow: 0 1px 4px #33334a1a; color: var(--accent-dark); }
.role-options input { accent-color: var(--accent); margin: 0; }
.field { display: block; font-size: .9rem; font-weight: 690; margin: 0 0 15px; min-width: 0; }
.field :is(input:not([type="file"]), textarea) { background: #fff; border: 1px solid #cfd3e1; border-radius: 9px; color: var(--ink); display: block; font-size: 1rem; font-weight: 450; margin-top: .4rem; min-height: 46px; padding: 10px 12px; width: 100%; }
.field textarea { line-height: 1.55; resize: vertical; }
.field :is(input,textarea)::placeholder { color: #6c7188; }
.login-button { width: 100%; margin-top: 6px; }
.workspace-heading { margin-bottom: 26px; }
.workspace-heading h1 { font-size: clamp(1.8rem,4vw,2.7rem); line-height: 1.19; margin: 7px 0 8px; letter-spacing: -.045em; }
.workspace-layout { align-items: start; display: grid; gap: 24px; grid-template-columns: minmax(214px, 276px) minmax(0, 1fr); }
.explorer { display: grid; gap: 13px; min-width: 0; }
.nav-panel { padding: 15px; min-width: 0; }
.nav-heading { align-items: center; display: flex; gap: 8px; margin: 0 0 10px; }
.nav-heading h2 { font-size: .97rem; }
.nav-step { background: var(--accent-soft); border-radius: 7px; color: var(--accent-dark); display: grid; font-size: .76rem; font-weight: 800; height: 25px; place-items: center; width: 25px; }
.nav-list { display: grid; gap: 4px; max-height: 304px; overflow-y: auto; overflow-wrap: anywhere; padding: 3px 4px 3px 3px; scrollbar-width: thin; }
.nav-list p { font-size: .83rem; padding: 4px; }
.nav-choice { align-items: center; background: #fff; border: 1px solid transparent; border-radius: 8px; color: var(--ink); cursor: pointer; display: flex; gap: .45rem; justify-content: space-between; min-height: 44px; padding: 6px 9px; text-align: left; }
.nav-choice strong { font-size: .88rem; display: block; }
.nav-choice small { color: var(--muted); display: block; }
.nav-choice:hover:not(:disabled) { background: #f5f4fb; }
.nav-choice[aria-current="true"] { background: var(--accent-soft); border-color: #ddd7ff; color: var(--accent-dark); }
.nav-choice:disabled { cursor: default; opacity: .65; }
.work-area, #assignment { display: grid; min-width: 0; gap: 14px; }
.placeholder { align-content: center; justify-items: center; display: grid; gap: 10px; min-height: 300px; padding: 28px; text-align: center; }
.placeholder h2 { font-size: 1.21rem; letter-spacing: -.024em; }
.placeholder p { font-size: .92rem; }
.placeholder-icon { background: var(--accent-soft); border-radius: 17px; color: var(--accent-dark); display: grid; height: 51px; place-items: center; width: 51px; }
.placeholder-icon svg { width: 24px; height: 24px; }
.summary { background: linear-gradient(114deg,#fff 45%,#f1eeff); padding: 23px clamp(16px,3vw,28px); }
.summary-head, .section-head, .problem-head { align-items: start; display: flex; flex-wrap: wrap; gap: 9px 13px; justify-content: space-between; }
.summary h2 { font-size: clamp(1.25rem,3vw,1.9rem); letter-spacing: -.036em; line-height: 1.25; margin: 5px 0; overflow-wrap: anywhere; }
.summary-meta { color: var(--muted); font-size: .85rem; overflow-wrap: anywhere; }
.summary .action-row { margin-top: 15px; }
.action-row, .mini-actions { align-items: center; display: flex; flex-wrap: wrap; gap: 7px; }
.summary .helper { margin-top: 8px; }
.notice { border: 1px solid #ddd7ff; background: #f4f1ff; border-radius: 10px; color: #43338d; padding: .7rem .9rem; overflow-wrap: anywhere; }
.notice[data-kind="error"] { border-color: #f4d1da; background: var(--danger-soft); color: var(--danger); }
.notice[data-kind="ok"] { border-color: #cce8da; background: var(--green-soft); color: var(--green); }
#login-note { margin-top: 10px; }
.section { padding: 18px clamp(14px,3vw,25px); }
.section h3 { font-size: 1.08rem; letter-spacing: -.024em; }
.section > .field { margin: .65rem 0 0; }
.helper { color: var(--muted); font-size: .84rem; overflow-wrap: anywhere; }
.assignment-description { color: #3b3e52; margin-top: .5rem; overflow-wrap: anywhere; white-space: pre-wrap; }
.question-panel { display: grid; gap: 13px; }
.problem-list { display: grid; gap: 10px; min-width: 0; }
.problem-card { border: 1px solid var(--line); border-radius: 12px; padding: 14px; min-width: 0; }
.problem-card:focus { outline: 3px solid #7464eb; outline-offset: 1px; }
.problem-title { align-items: baseline; display: flex; gap: 7px; flex-wrap: wrap; overflow-wrap: anywhere; }
.question-index { color: var(--accent-dark); background: var(--accent-soft); border-radius: 6px; padding: .16rem .41rem; font: 750 .75rem/1.5 Pretendard, sans-serif; }
.problem-title h4 { font-size: .98rem; margin: 0; }
.mini-actions .button { font-size: .81rem; padding: .35rem .65rem; }
.mini-actions .remove { color: var(--danger); }
.problem-card .field { margin: 9px 0 0; }
.problem-card .prose { margin-top: 12px; }
.problem-card .helper { margin-top: 7px; }
.problem-card details { margin-top: 8px; }
summary { cursor: pointer; color: var(--accent-dark); font-size: .86rem; font-weight: 670; padding-block: 7px; }
.upload-row { align-items: center; display: flex; flex-wrap: wrap; gap: 7px; margin-top: 9px; }
.file-label { align-items: center; display: inline-flex; position: relative; }
.file-label input { inset: 0; opacity: 0; position: absolute; width: 100%; cursor: pointer; }
.file-label:focus-within { outline: 3px solid #7464eb; outline-offset: 3px; }
.file-list, .job-list { display: grid; gap: 5px; list-style: none; margin: 7px 0 0; padding: 0; }
.job-list li { align-items: center; background: #f7f7fb; border: 1px solid var(--line); border-radius: 8px; display: flex; flex-wrap: wrap; gap: 6px 8px; justify-content: space-between; padding: 6px 9px; }
.file-list li, .job-list li { font-size: .85rem; overflow-wrap: anywhere; }
.job-list li .helper { flex: 1 0 100%; }
.add-row { border-top: 1px solid var(--line); padding-top: 12px; }
dialog { border: 1px solid var(--line); border-radius: 15px; color: var(--ink); padding: 0; max-width: min(464px, calc(100% - 32px)); box-shadow: 0 14px 40px #201d481f; }
dialog::backdrop { background: #20223880; }
.dialog-inner { padding: 24px; }
.dialog-inner h2 { font-size: 1.32rem; margin: 5px 0 8px; }
.dialog-inner .action-row { margin-top: 16px; justify-content: end; }
@media (max-width: 820px) {
  .shell, .topbar-inner { padding-inline: 18px; }
  .workspace-layout { grid-template-columns: minmax(0,1fr); gap: 14px; }
  .explorer { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .nav-list { max-height: 186px; }
  .placeholder { min-height: 220px; }
}
@media (max-width: 620px) {
  .shell { padding: 22px 12px 36px; }
  .topbar-inner { min-height: 61px; padding: 8px 12px; }
  .brand img { width: 34px; height: 34px; }
  .account { gap: 5px; }
  #account-name { font-size: .75rem; }
  #logout { padding: .45rem .55rem; font-size: .79rem; }
  .signin { grid-template-columns: minmax(0,1fr); border-radius: 15px; margin-top: 0; }
  .signin-intro { padding: 22px 23px; }
  .signin-intro h1 { font-size: 1.95rem; margin: 10px 0; }
  .signin-intro p { font-size: .88rem; }
  .intro-break, .signin-art { display: none; }
  .signin-main { padding: 22px; }
  .workspace-heading { margin-bottom: 16px; }
  .workspace-heading .text-muted { font-size: .91rem; }
  .explorer { gap: 7px; }
  .nav-panel { padding: 8px; }
  .nav-heading { gap: 5px; margin-bottom: 4px; }
  .nav-heading h2 { font-size: .86rem; }
  .nav-choice strong { font-size: .83rem; }
  .nav-choice { padding: 5px; }
  .problem-card { padding: 10px; }
  .problem-card .prose img { max-height: 230px; }
}
