/* 이상수학 숏컷 사이트 — 브랜드가이드(251229) 색·글꼴. 신청함과 같은 모양 */
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; }
img { max-width: 100%; }
[hidden] { display: none !important; }
/* 이상수학 브랜드가이드(251229): LS navy #0A174E · LS light green #A5CE3A · 보조 Yellow/Green/Deep green, 본문 프리텐다드 */
@font-face { font-family: 'Pretendard'; font-weight: 400; font-display: swap; src: url('fonts/P-Regular.woff2') format('woff2'); }
@font-face { font-family: 'Pretendard'; font-weight: 600; font-display: swap; src: url('fonts/P-SemiBold.woff2') format('woff2'); }
@font-face { font-family: 'Pretendard'; font-weight: 800; font-display: swap; src: url('fonts/P-ExtraBold.woff2') format('woff2'); }
:root {
  --navy: #0A174E; --lime: #A5CE3A; --yellow: #F5D042; --green: #009A2E; --deep: #004A32; --black: #101010;
  --bg: #f4f5f8;
  --panel: #ffffff;
  --sunk: #eef0f5;
  --ink: #101010;
  --head: #0A174E;
  --muted: #5f6578;
  --line: #dfe2ea;
  --accent: #0A174E;
  --accent-ink: #ffffff;
  --accent-soft: #e7eaf3;
  --hl: #A5CE3A;
  --hl-ink: #0A174E;
  --eyebrow: #004A32;
  --band: #ffffff; --band-ink: #0A174E; --band-sub: #5f6578; --band-line: #dfe2ea; --logo-l: block; --logo-d: none; --search-bg: #eef0f5; --cta: #0A174E; --cta-ink: #ffffff;
  --s-wait: #8a90a3; --s-work: #F5D042; --s-review: #009A2E; --s-done: #A5CE3A; --s-fix: #e8761b; --s-check: #d64545;
  --err: #c43c3c; --ok: #009A2E;
  --f-title: 'Stunning Sans', 'StunningSans', 'Pretendard', 'Apple SD Gothic Neo', 'Malgun Gothic', system-ui, sans-serif;
  --f-body: 'Pretendard', 'Apple SD Gothic Neo', 'Malgun Gothic', system-ui, sans-serif;
  --r: 12px;
}
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) {
  --bg: #070d2b; --panel: #0f1a4a; --sunk: #17235a; --ink: #eef0f7; --head: #ffffff; --muted: #a8b0cc; --line: #26336e;
  --accent: #A5CE3A; --accent-ink: #0A174E; --accent-soft: #1d2a63; --hl: #A5CE3A; --hl-ink: #0A174E; --eyebrow: #A5CE3A;
  --band: #0A174E; --band-ink: #ffffff; --band-sub: #a8b0cc; --band-line: #0A174E; --logo-l: none; --logo-d: block; --search-bg: #ffffff; --cta: #A5CE3A; --cta-ink: #0A174E;
  --err: #ff8a8a; --ok: #A5CE3A; color-scheme: dark } }
:root[data-theme="dark"] {
  --bg: #070d2b; --panel: #0f1a4a; --sunk: #17235a; --ink: #eef0f7; --head: #ffffff; --muted: #a8b0cc; --line: #26336e;
  --accent: #A5CE3A; --accent-ink: #0A174E; --accent-soft: #1d2a63; --hl: #A5CE3A; --hl-ink: #0A174E; --eyebrow: #A5CE3A;
  --band: #0A174E; --band-ink: #ffffff; --band-sub: #a8b0cc; --band-line: #0A174E; --logo-l: none; --logo-d: block; --search-bg: #ffffff; --cta: #A5CE3A; --cta-ink: #0A174E;
  --err: #ff8a8a; --ok: #A5CE3A; color-scheme: dark }
* { box-sizing: border-box; }
body { background: var(--bg); color: var(--ink); font-family: var(--f-body); font-size: 14px; line-height: 1.4; letter-spacing: -0.02em; }
body::before { content: ""; position: fixed; inset: 0 0 auto; height: env(safe-area-inset-top, 0px); z-index: 10; background: var(--band); }
button, input, select, textarea { font: inherit; color: inherit; letter-spacing: inherit; }
button { cursor: pointer; }
:focus-visible { outline: 2px solid var(--lime); outline-offset: 2px; }
.gut { padding-left: max(16px, env(safe-area-inset-left, 0px)); padding-right: max(16px, env(safe-area-inset-right, 0px)); }
.in { max-width: 1280px; margin: 0 auto; }

/* 머리띠: 브랜드가이드 쪽 머리(로고 | 이름)와 같은 짜임 */
.bar-top { background: var(--band); color: var(--band-ink); border-bottom: 1px solid var(--band-line); padding-block: 14px; box-shadow: 0 1px 0 rgba(10, 23, 78, .04); }
.bar-top .in { display: flex; gap: 12px 20px; align-items: center; flex-wrap: wrap; }
.brand { display: flex; align-items: center; gap: 14px; min-width: 0; }
.brand img { height: 34px; width: auto; }
.brand .lg-l { display: var(--logo-l); } .brand .lg-d { display: var(--logo-d); }
.brand .divi { width: 1px; height: 20px; background: currentColor; opacity: .25; }
.brand h1 { margin: 0; font-family: var(--f-title); font-weight: 800; font-size: 1.12rem; letter-spacing: .02em; white-space: nowrap; color: var(--band-ink); }
.bar-tools { display: flex; gap: 10px; align-items: center; flex: 1 1 360px; justify-content: flex-end; min-width: 0; }
.search { flex: 1 1 260px; max-width: 460px; position: relative; min-width: 0; }
.search input { width: 100%; background: var(--search-bg); color: #101010; border: 1px solid transparent; border-radius: 999px; padding: 9px 14px 9px 38px; }
.search input:focus { border-color: #0A174E; outline: none; background: #ffffff; }
.search svg { position: absolute; left: 13px; top: 50%; transform: translateY(-50%); color: #5f6578; }
.btn { border: 1px solid var(--line); background: var(--panel); border-radius: 999px; padding: 8px 16px; font-weight: 600; display: inline-flex; align-items: center; gap: 6px; white-space: nowrap; }
.btn.pri { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.bar-top .btn.pri { background: var(--cta); border-color: var(--cta); color: var(--cta-ink); }
.bar-top .btn { background: transparent; color: var(--band-ink); border-color: var(--band-line); }
.btn:disabled { opacity: .5; cursor: default; }
.only-narrow { display: none; }
.wrap { padding-block: 20px 40px; }

/* 본문 두 칸 */
.main { display: grid; grid-template-columns: 240px minmax(0, 1fr); gap: 20px; align-items: start; }
.side { background: var(--panel); border: 1px solid var(--line); border-radius: var(--r); padding: 18px 16px; display: grid; gap: 20px; position: sticky; top: calc(env(safe-area-inset-top, 0px) + 12px); }
.side h3 { margin: 0 0 8px; font-family: var(--f-title); font-size: .82rem; color: var(--head); font-weight: 800; letter-spacing: .02em; }
.seg { display: grid; grid-template-columns: repeat(3, 1fr); background: var(--sunk); border-radius: 999px; padding: 3px; }
.seg button { border: 0; background: transparent; border-radius: 999px; padding: 6px 0; font-size: .85rem; color: var(--muted); }
.seg button[aria-pressed="true"] { background: var(--accent); color: var(--accent-ink); font-weight: 600; }
.opts { display: grid; gap: 2px; }
.opt { display: flex; align-items: center; justify-content: space-between; gap: 8px; border: 0; background: transparent; padding: 7px 10px; border-radius: 8px; text-align: left; font-size: .9rem; }
.opt:hover { background: var(--sunk); }
.opt[aria-pressed="true"] { background: var(--accent-soft); color: var(--head); font-weight: 600; box-shadow: inset 3px 0 0 var(--lime); }
.opt .n { font-size: .76rem; color: var(--muted); font-variant-numeric: tabular-nums; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chipb { border: 1px solid var(--line); background: var(--panel); border-radius: 999px; padding: 4px 12px; font-size: .84rem; }
.chipb[aria-pressed="true"] { background: var(--accent); color: var(--accent-ink); border-color: var(--accent); font-weight: 600; }
.side select, .form select, .form input, .form textarea, .edit select, .edit input, .edit textarea { width: 100%; background: var(--sunk); border: 1px solid var(--line); border-radius: 8px; padding: 7px 9px; min-width: 0; }
.subdet { display: grid; gap: 6px; margin-top: 6px; }
.side .foot { font-size: .76rem; color: var(--muted); display: grid; gap: 4px; border-top: 1px solid var(--line); padding-top: 12px; }
.linkbtn { border: 0; background: none; padding: 0; color: var(--head); text-decoration: underline; text-underline-offset: 3px; font-size: .8rem; text-align: left; }

/* 결과 머리 */
.result-head { display: flex; flex-wrap: wrap; gap: 8px 12px; align-items: center; justify-content: space-between; }
.result-head h2 { margin: 0; font-family: var(--f-title); font-weight: 800; font-size: 1.25rem; letter-spacing: .02em; color: var(--head); text-wrap: balance; }
.result-head h2 b { display: inline-block; min-width: 1.6em; text-align: center; background: var(--lime); color: #0A174E; border-radius: 999px; padding: 0 8px; margin: 0 2px; font-variant-numeric: tabular-nums; }
.active { display: flex; flex-wrap: wrap; gap: 6px; }
.active button { border: 1px solid var(--line); background: var(--panel); border-radius: 999px; padding: 3px 8px 3px 12px; font-size: .78rem; display: inline-flex; gap: 4px; align-items: center; }
.active button span { color: var(--muted); }
.sort { display: flex; gap: 8px; align-items: center; font-size: .82rem; color: var(--muted); }
.sort select { background: var(--panel); border: 1px solid var(--line); border-radius: 999px; padding: 5px 10px; }

/* 카드 */
#list { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 16px; }
.card { background: var(--panel); border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; display: flex; flex-direction: column; min-width: 0; transition: border-color .15s, transform .15s; }
.card:hover { border-color: var(--head); transform: translateY(-2px); }
.shot { position: relative; height: 170px; background: #ffffff; border: 0; border-bottom: 1px solid var(--line); padding: 0; display: block; width: 100%; overflow: hidden; cursor: zoom-in; }
.shot img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: top center; }
.shot.ph { display: grid; place-items: center; color: #5f6578; cursor: default; font-size: .85rem; background: var(--sunk); }
.wm { position: absolute; inset: 0; pointer-events: none; background-repeat: repeat; }
.badge { position: absolute; left: 10px; top: 10px; z-index: 1; font-size: .72rem; font-weight: 600; padding: 3px 10px; border-radius: 999px; color: #0A174E; background: var(--sc); }
.st-wait .badge, .st-review .badge, .st-check .badge, .st-fix .badge { color: #ffffff; }
.seq { position: absolute; right: 10px; top: 10px; z-index: 1; font-size: .72rem; color: #ffffff; background: rgba(10, 23, 78, .78); border-radius: 999px; padding: 2px 8px; font-variant-numeric: tabular-nums; }
.cb { padding: 14px; display: flex; flex-direction: column; gap: 6px; min-width: 0; flex: 1; }
.eyebrow { font-size: .74rem; font-weight: 600; color: var(--eyebrow); overflow-wrap: anywhere; }
.ttl { font-family: var(--f-title); font-weight: 800; font-size: 1rem; line-height: 1.4; letter-spacing: .01em; color: var(--head); overflow-wrap: anywhere; text-wrap: balance; }
.sub { font-size: .78rem; color: var(--muted); overflow-wrap: anywhere; }
.stage { display: grid; grid-template-columns: repeat(4, 1fr); gap: 3px; margin-top: 4px; }
.stage i { height: 4px; border-radius: 2px; background: var(--sunk); }
.stage i.on { background: var(--sc); }
.slab { display: flex; justify-content: space-between; font-size: .74rem; color: var(--muted); }
.st-wait { --sc: var(--s-wait); } .st-work { --sc: var(--s-work); } .st-review { --sc: var(--s-review); } .st-done { --sc: var(--s-done); } .st-fix { --sc: var(--s-fix); } .st-check { --sc: var(--s-check); }
.acts { display: grid; grid-template-columns: 1fr 1fr auto; gap: 6px; margin-top: auto; padding-top: 8px; }
.acts button { white-space: nowrap; border: 1px solid var(--head); background: transparent; color: var(--head); border-radius: 999px; padding: 7px 6px; font-size: .82rem; font-weight: 600; }
.acts .pri { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.acts .dots { padding: 7px 11px; border-color: var(--line); color: var(--muted); }
.acts button:disabled { opacity: .4; cursor: default; }
.fixreq { font-size: .8rem; background: var(--sunk); border-left: 3px solid var(--s-fix); border-radius: 4px; padding: 6px 8px; overflow-wrap: anywhere; }
.more { display: grid; gap: 8px; border-top: 1px solid var(--line); padding-top: 10px; margin-top: 4px; }
.tools { display: flex; flex-wrap: wrap; gap: 5px; }
.tools button { flex: 1 1 auto; min-width: 0; padding-inline: 10px !important; border: 1px solid var(--line); background: var(--sunk); border-radius: 999px; padding: 5px 2px; font-size: .74rem; white-space: nowrap; }
.when { font-size: .74rem; color: var(--muted); font-variant-numeric: tabular-nums; }
.note { font-size: .8rem; color: var(--muted); white-space: pre-wrap; overflow-wrap: anywhere; }
.edit { display: grid; gap: 6px; }
.edit .row2 { display: flex; gap: 6px; }
.edit .row2 button { flex: 1; border: 1px solid var(--line); background: var(--panel); border-radius: 999px; padding: 6px; font-size: .8rem; }
.edit .row2 .pri { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.kf { display: grid; grid-template-columns: repeat(auto-fit, minmax(96px, 1fr)); gap: 6px; }
.kf label, .form label { display: grid; gap: 3px; font-size: .78rem; color: var(--muted); }
.empty { grid-column: 1 / -1; text-align: center; color: var(--muted); padding: 40px 12px; background: var(--panel); border-radius: var(--r); border: 1px dashed var(--line); }
.msg { font-size: .85rem; color: var(--muted); }
.msg.err { color: var(--err); } .msg.ok { color: var(--ok); }
.toast { position: fixed; left: 50%; transform: translateX(-50%); bottom: calc(16px + env(safe-area-inset-bottom, 0px)); background: #0A174E; color: #ffffff; padding: 9px 16px; border-radius: 999px; font-size: .85rem; z-index: 30; max-width: calc(100% - 32px); }

/* 신청 창 */
.sheet { position: fixed; inset: 0; z-index: 20; background: rgba(10, 23, 78, .5); display: grid; place-items: center; padding-left: max(16px, env(safe-area-inset-left, 0px)); padding-right: max(16px, env(safe-area-inset-right, 0px)); padding-block: calc(16px + env(safe-area-inset-top, 0px)) calc(16px + env(safe-area-inset-bottom, 0px)); }
.form { background: var(--panel); border-radius: 16px; width: min(640px, 100%); max-height: 100%; overflow: auto; padding: 0 0 20px; display: grid; gap: 14px; }
.form > *:not(.hd) { margin-inline: 20px; }
.form .hd { display: flex; justify-content: space-between; align-items: center; background: #0A174E; color: #ffffff; padding: 14px 20px; }
.form h2 { margin: 0; font-family: var(--f-title); font-weight: 800; font-size: 1.05rem; letter-spacing: .02em; }
.x { border: 0; background: rgba(255,255,255,.15); color: #ffffff; border-radius: 999px; width: 32px; height: 32px; }
.drop { border: 2px dashed var(--line); border-radius: 12px; padding: 20px 14px; text-align: center; color: var(--muted); cursor: pointer; display: block; position: relative; }
.drop:hover, .drop.over, .drop:focus-within { border-color: var(--lime); background: var(--accent-soft); }
.drop strong { color: var(--head); display: block; }
.drop input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.picked { display: flex; flex-wrap: wrap; gap: 6px; }
.picked span { font-size: .78rem; background: var(--sunk); border-radius: 999px; padding: 2px 10px; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.form input[readonly] { color: var(--muted); }
.dup { font-size: .8rem; color: var(--err); display: flex; gap: 6px; align-items: center; flex-wrap: wrap; }
.dup button { border: 1px solid var(--line); background: var(--panel); border-radius: 999px; padding: 2px 10px; font-size: .78rem; }
.zoom { position: fixed; inset: 0; z-index: 25; background: rgba(10, 23, 78, .82); display: grid; place-items: center; padding: 16px; }
.zoom .zi { position: relative; max-width: 100%; max-height: 100%; }
.zoom img { max-width: 100%; max-height: calc(100vh - 32px); background: #fff; border-radius: 4px; display: block; }
.log { display: grid; gap: 4px; max-height: 220px; overflow: auto; }
.log div { font-size: .74rem; display: flex; justify-content: space-between; gap: 6px; }
.log div span:first-child { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

@media (max-width: 860px) {
  .main { grid-template-columns: minmax(0, 1fr); }
  .side { position: static; display: none; }
  .side.open { display: grid; }
  .only-narrow { display: inline-flex; }
}
@media (max-width: 520px) {
  #list { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .shot { height: 130px; }
  .cb { padding: 10px; }
  .brand img { height: 28px; }
  .brand h1 { font-size: 1rem; }
  .bar-tools { flex-basis: 100%; flex-wrap: wrap; }
  .search { flex-basis: 100%; max-width: none; }
  .bar-tools .btn { flex: 1 1 0; justify-content: center; }
  .acts .w { display: none; }
  .tools { flex-wrap: wrap; }
  .tools button { flex: 1 1 auto; }
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; scroll-behavior: auto !important; } }

/* ── 사이트 전용: 로그인 · 내 메뉴 · 관리 창 */
.gate { min-height: 100vh; display: grid; place-items: center; padding-block: 32px; background: var(--bg); }
.gate-card { width: min(400px, 100%); background: var(--panel); border: 1px solid var(--line); border-radius: 16px; overflow: hidden; display: grid; }
.gate-card .hd { background: var(--band); border-bottom: 1px solid var(--band-line); padding: 22px 24px 18px; display: grid; gap: 12px; justify-items: start; }
.gate-card .hd img { height: 36px; width: auto; }
.gate-card .hd .lg-l { display: var(--logo-l); } .gate-card .hd .lg-d { display: var(--logo-d); }
.gate-card h1 { margin: 0; font-family: var(--f-title); font-weight: 800; font-size: 1.2rem; letter-spacing: .02em; color: var(--band-ink); }
.gate-card form { display: grid; gap: 12px; padding: 20px 24px 24px; }
.gate-card label { display: grid; gap: 4px; font-size: .8rem; color: var(--muted); }
.gate-card input, .panel input, .panel select { width: 100%; background: var(--sunk); border: 1px solid var(--line); border-radius: 8px; padding: 9px 10px; min-width: 0; }
.gate-card .btn { justify-content: center; padding-block: 10px; }
.gate-card .hint { font-size: .78rem; color: var(--muted); }
.me { position: relative; }
.me > button { max-width: 160px; overflow: hidden; text-overflow: ellipsis; }
.menu { position: absolute; right: 0; top: calc(100% + 6px); z-index: 15; background: var(--panel); color: var(--ink); border: 1px solid var(--line); border-radius: 12px; box-shadow: 0 8px 24px rgba(10, 23, 78, .15); padding: 6px; display: grid; min-width: 180px; }
.menu button { border: 0; background: transparent; text-align: left; padding: 9px 12px; border-radius: 8px; font-size: .9rem; }
.menu button:hover { background: var(--sunk); }
.menu .who { padding: 8px 12px 6px; font-size: .78rem; color: var(--muted); border-bottom: 1px solid var(--line); margin-bottom: 4px; }
.panel { background: var(--panel); border-radius: 16px; width: min(760px, 100%); max-height: 100%; overflow: auto; display: grid; gap: 14px; padding: 0 0 20px; }
.panel > *:not(.hd) { margin-inline: 20px; }
.panel .hd { display: flex; justify-content: space-between; align-items: center; background: #0A174E; color: #ffffff; padding: 14px 20px; position: sticky; top: 0; z-index: 1; }
.panel h2 { margin: 0; font-family: var(--f-title); font-weight: 800; font-size: 1.05rem; letter-spacing: .02em; }
.panel h3 { margin: 4px 0 0; font-family: var(--f-title); font-weight: 800; font-size: .9rem; color: var(--head); }
.grid-form { display: grid; grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)); gap: 8px; align-items: end; }
.grid-form label { display: grid; gap: 3px; font-size: .78rem; color: var(--muted); }
.tbl-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: 10px; }
.tbl { width: 100%; border-collapse: collapse; font-size: .85rem; }
.tbl th, .tbl td { padding: 8px 10px; border-bottom: 1px solid var(--line); text-align: left; white-space: nowrap; }
.tbl th { font-size: .74rem; color: var(--muted); font-weight: 600; background: var(--sunk); }
.tbl tr:last-child td { border-bottom: 0; }
.tbl td.t { white-space: normal; min-width: 160px; }
.tbl .off { color: var(--muted); }
.tbl button, .tbl select { border: 1px solid var(--line); background: var(--panel); border-radius: 999px; padding: 3px 10px; font-size: .78rem; }
.pill { display: inline-block; font-size: .72rem; border-radius: 999px; padding: 1px 8px; background: var(--sunk); color: var(--muted); }
.pill.on { background: var(--lime); color: #0A174E; }
.statline { font-size: .8rem; color: var(--muted); }

/* ── 탭: 숏컷 · 내신대비 자료 */
.tabs { display: inline-flex; gap: 2px; background: var(--sunk); border-radius: 999px; padding: 3px; }
.tabs button { border: 0; background: transparent; border-radius: 999px; padding: 6px 14px; font-weight: 600; font-size: .88rem; color: var(--muted); white-space: nowrap; }
.tabs button[aria-selected="true"] { background: var(--accent); color: var(--accent-ink); }
.bar-top .tabs { background: rgba(127, 135, 160, .14); }
.bar-top .tabs button { color: var(--band-sub); }
.bar-top .tabs button[aria-selected="true"] { background: var(--cta); color: var(--cta-ink); }

/* ── 내신대비 자료 목록 */
#mlist { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 14px; align-content: start; }
.mcard { background: var(--panel); border: 1px solid var(--line); border-left: 4px solid var(--lime); border-radius: var(--r); padding: 14px; display: grid; gap: 8px; min-width: 0; align-content: start; }
.mhd { display: flex; gap: 8px; align-items: flex-start; justify-content: space-between; }
.mhd .dots { border: 1px solid var(--line); background: transparent; color: var(--muted); border-radius: 999px; padding: 3px 10px; flex: none; }
.mfiles { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.mfiles li { display: flex; align-items: center; gap: 8px; background: var(--sunk); border-radius: 10px; padding: 6px 6px 6px 8px; min-width: 0; }
.mfiles .fn { flex: 1; min-width: 0; font-size: .86rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mfiles .fn small { color: var(--muted); font-size: .72rem; }
.mfiles .fs { font-size: .74rem; color: var(--muted); font-variant-numeric: tabular-nums; white-space: nowrap; }
.mfiles button { border: 1px solid var(--head); background: transparent; color: var(--head); border-radius: 999px; padding: 5px 12px; font-size: .8rem; font-weight: 600; white-space: nowrap; }
.mfiles button.pri { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.mfiles button.ghost { border-color: var(--line); color: var(--muted); padding-inline: 9px; }
.mfiles button:disabled { opacity: .5; cursor: default; }
.fx { flex: none; font-size: .64rem; font-weight: 800; letter-spacing: .02em; border-radius: 6px; padding: 3px 6px; background: #0A174E; color: #ffffff; min-width: 38px; text-align: center; }
.fx-pdf { background: #d64545; } .fx-hwp, .fx-hwpx { background: #2b6cd4; } .fx-png, .fx-jpg, .fx-jpeg { background: var(--green); }
.fx-xls, .fx-xlsx { background: var(--deep); } .fx-ppt, .fx-pptx { background: #e8761b; } .fx-doc, .fx-docx { background: #3d5a99; }
.mfl { display: flex; flex-wrap: wrap; gap: 6px; }
.mfl > span { display: inline-flex; align-items: center; gap: 4px; font-size: .78rem; background: var(--sunk); border-radius: 999px; padding: 2px 4px 2px 10px; max-width: 100%; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.mfl > span.new { box-shadow: inset 0 0 0 1px var(--lime); }
.mfl b { font-size: .66rem; color: var(--eyebrow); }
.mfl button { border: 0; background: transparent; color: var(--muted); border-radius: 999px; width: 22px; height: 22px; padding: 0; }
@media (max-width: 860px) { .bar-top .tabs { order: 3; } }
@media (max-width: 520px) {
  #mlist { grid-template-columns: minmax(0, 1fr); }
  .bar-top .tabs { flex-basis: 100%; }
  .bar-top .tabs button { flex: 1; }
}
