/* NARA ONE 포털 — 셸은 중립(잉크 네이비), 색은 앱을 알아보는 데만 쓴다.
   NPMS 파랑 · NARA-IMS 청록 · NaraForm 남보라. 화면 글꼴은 Pretendard. */

@font-face { font-family: 'Pretendard'; font-weight: 400; font-display: swap; src: url(/one/fonts/pretendard-regular.woff2) format('woff2'); }
@font-face { font-family: 'Pretendard'; font-weight: 700; font-display: swap; src: url(/one/fonts/pretendard-bold.woff2) format('woff2'); }

:root {
  --ink: #17212E; --ink2: #4F5B6B; --ink3: #5F6B7A;
  --ground: #F2F5F8; --surface: #FFFFFF; --soft: #F6F8FA; --hover: #EDF1F5;
  --line: #E1E6EC; --line2: #CBD4DE;
  --npms: #1C90FB; --npms-d: #0B62C4; --npms-t: #EAF4FE;
  --ims: #0C8B8A; --ims-d: #0A6E6D; --ims-t: #E3F6F5;
  --form: #5B6CF0; --form-d: #4338CA; --form-t: #EEF0FF;
  --dgr: #C93830; --dgr-t: #FDECEB; --wrn: #B45309; --wrn-t: #FDF3E1; --wrn-ink: #7A3A06;
  --ok: #15803D; --ok-t: #E7F6EF;
  --font: 'Pretendard', 'Noto Sans KR', 'Apple SD Gothic Neo', 'Malgun Gothic', sans-serif;
  --display: 'Archivo', 'Pretendard', 'Segoe UI', sans-serif;
  --mono: 'JetBrains Mono', ui-monospace, 'Cascadia Mono', Consolas, monospace;
  --shadow: 0 14px 36px rgba(23, 33, 46, .2);
  --top: 56px;
}

*, *::before, *::after { box-sizing: border-box; }
html { height: 100%; -webkit-text-size-adjust: 100%; }
body {
  margin: 0; min-height: 100%; display: flex; flex-direction: column;
  background: var(--ground); color: var(--ink);
  font-family: var(--font); font-size: 14px; line-height: 1.5; letter-spacing: -.01em; word-break: keep-all;
}
h1, h2, h3, p { margin: 0; }
a { color: var(--npms-d); text-decoration: none; }
a:hover { color: #08498F; }
button, input, select, textarea { font: inherit; letter-spacing: inherit; color: inherit; }
button { cursor: pointer; }
button:disabled { cursor: default; opacity: .55; }
:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; }
[hidden] { display: none !important; }

.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.mono { font-family: var(--mono); font-size: .86em; }
.muted { color: var(--ink3); }
.num { font-family: var(--display); font-variant-numeric: tabular-nums; }
.ic { width: 20px; height: 20px; flex: none; }
.ic.s { width: 16px; height: 16px; }
.ic.xs { width: 14px; height: 14px; }
.ic.l { width: 24px; height: 24px; }

.stripe { display: flex; height: 4px; flex: none; }
.stripe i { flex: 1; }
.stripe i:nth-child(1) { background: var(--npms); }
.stripe i:nth-child(2) { background: var(--ims); }
.stripe i:nth-child(3) { background: var(--form); }

#app { flex: 1; display: flex; flex-direction: column; min-height: 0; }
.boot { margin: auto; padding: 40px; color: var(--ink3); }

/* ── 단추 ─────────────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  height: 38px; padding: 0 14px; border: 1px solid var(--ink); border-radius: 9px;
  background: var(--ink); color: #fff; font-size: 13px; font-weight: 700; white-space: nowrap;
}
.btn:hover:not(:disabled) { background: #0E1620; color: #fff; }
.btn.ghost { border-color: var(--line2); background: var(--surface); color: var(--ink); }
.btn.ghost:hover:not(:disabled) { background: var(--soft); color: var(--ink); }
.btn.danger { border-color: #E9B8B4; background: var(--surface); color: var(--dgr); }
.btn.danger:hover:not(:disabled) { background: var(--dgr-t); color: var(--dgr); }
.btn.sm { height: 32px; padding: 0 12px; border-radius: 8px; font-size: 12.5px; }
.btn.lg { height: 50px; border-radius: 10px; font-size: 15.5px; }
.btn.block { display: flex; width: 100%; }
.linkbtn { padding: 0; border: none; background: none; color: var(--npms-d); font-size: 13px; font-weight: 700; }
.linkbtn:hover { color: #08498F; text-decoration: underline; }

.iconbtn {
  position: relative; width: 40px; height: 40px; flex: none; display: flex; align-items: center; justify-content: center;
  border: none; border-radius: 10px; background: transparent; color: var(--ink2);
}
.iconbtn:hover, .iconbtn[aria-expanded="true"] { background: var(--hover); color: var(--ink); }

.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chip {
  height: 30px; padding: 0 12px; border: 1px solid var(--line2); border-radius: 999px;
  background: var(--surface); color: var(--ink2); font-size: 12.5px; font-weight: 700;
}
.chip[aria-pressed="true"] { border-color: var(--ink); background: var(--ink); color: #fff; }

/* ── 표시(배지) ─────────────────────────────────────────────── */
.badge { display: inline-block; padding: 3px 9px; border-radius: 999px; background: var(--soft); color: var(--ink2); font-size: 11.5px; font-weight: 700; white-space: nowrap; }
.badge.ok { background: var(--ok-t); color: var(--ok); }
.badge.wrn { background: var(--wrn-t); color: var(--wrn); }
.badge.dgr { background: var(--dgr-t); color: var(--dgr); }
.badge.ink { background: #E8ECF1; color: var(--ink2); }
.badge.npms { background: var(--npms-t); color: var(--npms-d); }
.badge.ims { background: var(--ims-t); color: var(--ims-d); }
.badge.form { background: var(--form-t); color: var(--form-d); }

.apptags { display: flex; gap: 4px; }
.apptag { padding: 2px 7px; border: 1px solid transparent; border-radius: 6px; font-size: 11px; font-weight: 700; }
.apptag.npms { background: var(--npms-t); color: var(--npms-d); }
.apptag.ims { background: var(--ims-t); color: var(--ims-d); }
.apptag.form { background: var(--form-t); color: var(--form-d); }
.apptag.off { background: none; border: 1px dashed var(--line2); color: var(--ink3); }

.avatar {
  width: 32px; height: 32px; flex: none; display: flex; align-items: center; justify-content: center;
  border-radius: 50%; background: #DCE3EA; color: var(--ink); font-size: 12.5px; font-weight: 700;
}
.avatar.on { background: var(--ink); color: #fff; }
.avatar.l { width: 44px; height: 44px; font-size: 16px; }

.appicon { width: 48px; height: 48px; flex: none; display: flex; align-items: center; justify-content: center; border-radius: 12px; color: #fff; background: var(--ink); }
.appicon.m { width: 40px; height: 40px; border-radius: 10px; }
.appicon.s { width: 36px; height: 36px; border-radius: 9px; }
.appicon.npms { background: var(--npms-d); }
.appicon.ims { background: var(--ims-d); }
.appicon.form { background: var(--form-d); }
.tile { width: 34px; height: 34px; flex: none; display: flex; align-items: center; justify-content: center; border-radius: 9px; background: var(--soft); color: var(--ink2); }
.tile.dgr { background: var(--dgr-t); color: var(--dgr); }

/* ── 알림 줄 ───────────────────────────────────────────────── */
.notice { display: flex; align-items: flex-start; gap: 10px; padding: 11px 14px; border-radius: 10px; background: var(--soft); color: var(--ink2); font-size: 13px; }
.notice .ic { margin-top: 1px; }
.notice b { color: inherit; }
.notice.wrn { background: var(--wrn-t); color: var(--wrn-ink); }
.notice.dgr { background: var(--dgr-t); color: #8E241E; }
.notice.ok { background: var(--ok-t); color: #0F5C2C; }
.notice .grow { flex: 1; min-width: 0; }
.notice a, .notice .linkbtn { color: inherit; text-decoration: underline; font-weight: 700; }

/* ── 입력 ─────────────────────────────────────────────────── */
.field { display: flex; flex-direction: column; gap: 6px; }
.field > label, .field > .label { font-size: 12.5px; font-weight: 700; color: var(--ink2); }
.field .hint { font-size: 12px; color: var(--ink3); }
.input {
  width: 100%; height: 46px; padding: 0 14px; border: 1px solid var(--line2); border-radius: 10px;
  background: var(--surface); font-size: 15px; color: var(--ink); outline: none;
}
.input:focus { border-color: var(--ink); box-shadow: 0 0 0 3px rgba(23, 33, 46, .12); }
.input.sm { height: 34px; padding: 0 12px; border-radius: 8px; font-size: 13px; }
.input[readonly] { background: var(--soft); color: var(--ink2); }
textarea.input { height: auto; min-height: 76px; padding: 10px 14px; resize: vertical; }
.check { display: flex; align-items: center; gap: 8px; min-height: 44px; font-size: 13.5px; color: var(--ink2); cursor: pointer; }
.check input { width: 18px; height: 18px; margin: 0; accent-color: var(--ink); }

/* ── 로그인 ─────────────────────────────────────────────────── */
.login { flex: 1; display: flex; min-height: 0; }
.login-brand {
  position: relative; overflow: hidden; width: 600px; flex: none; display: flex; flex-direction: column;
  justify-content: space-between; gap: 40px; padding: 56px 64px; background: var(--ink); color: #fff;
}
.login-brand::after {
  content: 'ONE'; position: absolute; right: -28px; bottom: -64px; font-family: var(--display);
  font-weight: 900; font-size: 260px; line-height: 1; letter-spacing: -.02em; color: rgba(255, 255, 255, .05); pointer-events: none;
}
.wordmark { font-family: var(--display); font-weight: 800; letter-spacing: .02em; color: inherit; }
.login-brand .wordmark { position: relative; font-size: 22px; }
.login-pitch { position: relative; display: flex; flex-direction: column; gap: 36px; }
.login-pitch h1 { font-size: 36px; font-weight: 700; line-height: 1.32; letter-spacing: -.025em; }
.login-pitch p { margin-top: 14px; font-size: 15px; color: #A9B4C4; }
.login-apps { display: flex; flex-direction: column; gap: 16px; }
.login-apps li { display: flex; align-items: center; gap: 14px; }
.login-apps b { display: block; font-size: 15px; }
.login-apps span span { font-size: 13px; color: #A9B4C4; }
ul.plain { margin: 0; padding: 0; list-style: none; }
.login-foot { position: relative; font-size: 12.5px; color: #8B99B3; }
.login-main { flex: 1; display: flex; align-items: center; justify-content: center; padding: 40px; min-width: 0; }
.card { width: 440px; max-width: 100%; display: flex; flex-direction: column; gap: 22px; padding: 40px; background: var(--surface); border: 1px solid var(--line); border-radius: 16px; }
.card-head { display: flex; flex-direction: column; gap: 6px; }
.card-head h2 { font-size: 22px; font-weight: 700; letter-spacing: -.02em; }
.card-head p { font-size: 13.5px; color: var(--ink2); }
.card form { display: flex; flex-direction: column; gap: 14px; }
.card .between { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.card-foot { display: flex; flex-direction: column; gap: 6px; padding-top: 18px; border-top: 1px solid var(--line); font-size: 12.5px; color: var(--ink3); line-height: 1.6; }
.card-foot b { font-size: 13.5px; color: var(--ink2); font-weight: 400; }
.card-mark { display: none; }

/* ── 위쪽 줄 ─────────────────────────────────────────────────── */
.top {
  position: sticky; top: 0; z-index: 20; height: var(--top); flex: none; display: flex; align-items: center; justify-content: space-between;
  gap: 16px; padding: 0 20px; background: var(--surface); border-bottom: 1px solid var(--line);
}
.top-side { display: flex; align-items: center; gap: 10px; min-width: 0; }
.top .wordmark { font-size: 17px; }
.top .wordmark:hover { color: var(--ink); }
.top .sub { font-size: 12px; color: var(--ink3); }
.top .sep { width: 1px; height: 18px; flex: none; background: var(--line2); }
.crumb { display: flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 700; white-space: nowrap; }
.crumb i { width: 10px; height: 10px; border-radius: 3px; background: var(--ink); }
.who { display: flex; align-items: center; gap: 10px; height: 44px; padding: 0 8px; border: none; border-radius: 10px; background: transparent; color: var(--ink); text-align: left; min-width: 0; }
.who:hover, .who[aria-expanded="true"] { background: var(--hover); }
.who-text { display: flex; flex-direction: column; line-height: 1.3; min-width: 0; }
.who-text b { font-size: 13.5px; }
.who-text span { font-size: 12px; color: var(--ink3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.pop {
  position: absolute; top: calc(var(--top) + 10px); z-index: 30; width: 340px; max-width: calc(100vw - 24px);
  display: flex; flex-direction: column; gap: 2px; padding: 12px; background: var(--surface);
  border: 1px solid var(--line); border-radius: 14px; box-shadow: var(--shadow);
}
.pop.left { left: 16px; }
.pop.right { right: 16px; width: 320px; }
.pop-title { padding: 2px 8px 6px; font-size: 11.5px; font-weight: 700; color: var(--ink3); letter-spacing: .06em; }
.pop-me { display: flex; align-items: center; gap: 12px; padding: 4px 10px 12px; }
.pop-me div { display: flex; flex-direction: column; line-height: 1.35; min-width: 0; }
.pop-me b { font-size: 15px; }
.pop-me span { font-size: 12.5px; color: var(--ink3); }
.pop hr { width: auto; height: 1px; margin: 4px 10px; border: none; background: var(--line); }
.pop-item {
  display: flex; align-items: center; gap: 12px; min-height: 48px; width: 100%; padding: 6px 10px; border: none; border-radius: 10px;
  background: transparent; color: var(--ink); text-align: left;
}
.pop-item:hover { background: var(--soft); color: var(--ink); }
.pop-item.here { background: var(--soft); }
.pop-item.dgr { color: var(--dgr); }
.pop-item .grow { flex: 1; min-width: 0; display: flex; flex-direction: column; line-height: 1.35; }
.pop-item b { font-size: 14px; }
.pop-item .grow span { font-size: 12px; color: var(--ink3); }
.pop-link { display: flex; align-items: center; height: 38px; padding: 0 8px; border-radius: 8px; font-size: 13.5px; font-weight: 700; color: var(--ink); }
.pop-link:hover { background: var(--soft); color: var(--ink); }

/* ── 쪽 ─────────────────────────────────────────────────── */
.page { flex: 1; display: flex; flex-direction: column; gap: 26px; width: 100%; max-width: 1440px; margin: 0 auto; padding: 30px 40px 40px; }
.page-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.page-head .date { font-size: 13px; color: var(--ink3); }
.page-head h1 { font-size: 24px; font-weight: 700; letter-spacing: -.02em; line-height: 1.3; }
.page-head .aside { display: flex; align-items: center; gap: 6px; font-size: 12.5px; color: var(--ink3); }
.kicker { font-size: 12px; font-weight: 700; color: var(--ink3); letter-spacing: .06em; }

.home { display: grid; grid-template-columns: 392px minmax(0, 1fr); gap: 32px; align-items: start; }
.stack { display: flex; flex-direction: column; gap: 12px; min-width: 0; }
.stack.wide { gap: 20px; }

.appcard { display: flex; flex-direction: column; gap: 12px; padding: 18px; background: var(--surface); border: 1px solid var(--line); border-radius: 14px; color: var(--ink); }
.appcard:hover { border-color: var(--line2); color: var(--ink); box-shadow: 0 2px 10px rgba(23, 33, 46, .06); }
.appcard-main { display: flex; align-items: center; gap: 14px; }
.appcard-main .grow { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.appcard-main b { font-size: 16px; }
.appcard-main .grow span { font-size: 13px; color: var(--ink2); }
.appcard-main > .ic { color: var(--ink3); }
.appcard-note { padding-top: 12px; border-top: 1px solid var(--line); font-size: 12.5px; color: var(--ink3); }
.appcard.slim { flex-direction: row; align-items: center; gap: 14px; padding: 14px 18px; }
.appcard.slim .grow { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 1px; }
.appcard.slim b { font-size: 14.5px; }
.appcard.slim .grow span { font-size: 12.5px; color: var(--ink3); }

.panel { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; overflow: hidden; }
.panel-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 14px 20px; }
.panel-head h2 { font-size: 15px; font-weight: 700; }
.panel-head p { font-size: 12.5px; color: var(--ink3); }
.panel-body { padding: 4px 20px 18px; }
.row { display: flex; align-items: center; gap: 12px; padding: 11px 20px; border-top: 1px solid var(--line); }
.row .grow { flex: 1; min-width: 0; display: flex; flex-direction: column; line-height: 1.4; }
.row b { font-size: 13.5px; }
.row .grow span { font-size: 12.5px; color: var(--ink3); }
.row.empty { color: var(--ink3); font-size: 13px; }
a.row { color: inherit; }
a.row:hover { background: var(--soft); color: inherit; }
.pair { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }

.facts { display: grid; grid-template-columns: 120px minmax(0, 1fr); gap: 0; margin: 0; }
.facts dt, .facts dd { margin: 0; padding: 10px 0; border-top: 1px solid var(--line); font-size: 13.5px; }
.facts dt { padding-left: 20px; color: var(--ink3); font-size: 12.5px; font-weight: 700; }
.facts dd { padding-right: 20px; min-width: 0; overflow-wrap: anywhere; }
.facts.wide { grid-template-columns: 170px minmax(0, 1fr); }

/* ── 관리 ─────────────────────────────────────────────────── */
.admin { flex: 1; display: grid; grid-template-columns: 200px minmax(0, 1fr); gap: 24px; width: 100%; max-width: 1560px; margin: 0 auto; padding: 24px 32px 40px; align-items: start; align-content: start; font-size: 13.5px; }
.admin.with-side { grid-template-columns: 200px minmax(0, 1fr) 340px; }
.nav { position: sticky; top: calc(var(--top) + 24px); display: flex; flex-direction: column; gap: 14px; padding: 14px 10px; background: var(--surface); border: 1px solid var(--line); border-radius: 12px; }
.nav-group { display: flex; flex-direction: column; gap: 2px; }
.nav-title { padding: 0 10px 4px; font-size: 11.5px; font-weight: 700; color: var(--ink3); letter-spacing: .06em; }
.nav a { display: flex; align-items: center; justify-content: space-between; gap: 8px; height: 36px; padding: 0 10px; border-radius: 8px; color: var(--ink2); white-space: nowrap; }
.nav a:hover { background: var(--soft); color: var(--ink); }
.nav a[aria-current="page"] { background: var(--hover); color: var(--ink); font-weight: 700; }
.nav .badge { padding: 1px 8px; }

.main { display: flex; flex-direction: column; gap: 14px; min-width: 0; }
.main-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; }
.main-head h1 { font-size: 20px; font-weight: 700; letter-spacing: -.02em; }
.main-head p { margin-top: 3px; font-size: 13px; color: var(--ink2); }
.bar { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.bar .input { width: 200px; }

.table { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; overflow: hidden; }
.table-scroll { overflow-x: auto; }
.tr { display: grid; gap: 12px; align-items: center; min-height: 54px; padding: 8px 16px; border-top: 1px solid var(--line); min-width: 100%; }
.tr.head { min-height: 38px; padding: 0 16px; border-top: none; background: var(--soft); font-size: 12px; font-weight: 700; color: var(--ink3); }
.tr.dense { min-height: 40px; padding-top: 6px; padding-bottom: 6px; }
button.tr { width: 100%; border-left: none; border-right: none; border-bottom: none; background: transparent; text-align: left; }
button.tr:hover { background: var(--soft); }
button.tr[aria-pressed="true"] { background: #EEF2F6; box-shadow: inset 0 0 0 1.5px var(--ink); }
.tr > * { min-width: 0; }
.tr .sub { font-size: 12.5px; color: var(--ink2); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tr .acts { display: flex; gap: 6px; justify-content: flex-end; flex-wrap: wrap; }
.cols-accounts { grid-template-columns: minmax(150px, 1.2fr) minmax(120px, 1.1fr) 56px 148px 112px 72px; }
/* 줄마다 따로 짜이는 표라서, 칸 너비를 내용에 맡기면(auto) 줄마다 어긋난다 — 너비를 정해 둔다 */
.cols-links { grid-template-columns: minmax(150px, 1fr) 24px minmax(150px, 1fr) minmax(110px, .8fr) 264px; }
.cols-log { grid-template-columns: 132px minmax(100px, 1fr) minmax(110px, .9fr) 74px minmax(120px, 1.1fr); }
.cols-audit { grid-template-columns: 132px minmax(90px, .7fr) minmax(130px, 1fr) minmax(130px, 1.1fr) minmax(120px, 1.2fr); }
.cols-block { grid-template-columns: minmax(140px, 1fr) minmax(120px, 1fr) 96px; }
.person { display: flex; align-items: center; gap: 10px; min-width: 0; }
.person div { display: flex; flex-direction: column; line-height: 1.35; min-width: 0; }
.person b, .person span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.person span { font-size: 11.5px; color: var(--ink3); }
.table-foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; font-size: 12.5px; color: var(--ink3); }
.table-foot div { display: flex; gap: 6px; }
.empty { padding: 28px 20px; text-align: center; color: var(--ink3); font-size: 13px; }

.side { position: sticky; top: calc(var(--top) + 24px); display: flex; flex-direction: column; gap: 18px; max-height: calc(100vh - var(--top) - 48px); overflow-y: auto; padding: 20px; background: var(--surface); border: 1px solid var(--line); border-radius: 12px; }
.side-head { display: flex; align-items: center; gap: 12px; }
.side-head .grow { flex: 1; min-width: 0; display: flex; flex-direction: column; line-height: 1.35; }
.side-head b { font-size: 16px; }
.side-head .grow span { font-size: 12.5px; color: var(--ink3); }
.side-sec { display: flex; flex-direction: column; gap: 8px; padding-top: 16px; border-top: 1px solid var(--line); }
.side-sec:first-of-type { padding-top: 0; border-top: none; }
.side-sec p { font-size: 12px; color: var(--ink3); }
.side-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; min-height: 32px; font-size: 13px; }
.side-row .grow { flex: 1; min-width: 0; display: flex; flex-direction: column; line-height: 1.4; }
.side-row .grow span { font-size: 12px; color: var(--ink3); }
.side-close { display: none; }

.tree { display: flex; flex-direction: column; }
.tree-dept { display: flex; align-items: center; gap: 10px; padding: 12px 20px; border-top: 1px solid var(--line); font-weight: 700; }
.tree-team { display: flex; align-items: center; gap: 10px; padding: 9px 20px 9px 44px; border-top: 1px solid var(--line); color: var(--ink2); }
.tree .grow { flex: 1; }

.statgrid { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 12px; }
.stat { display: flex; flex-direction: column; gap: 2px; padding: 14px 16px; background: var(--surface); border: 1px solid var(--line); border-radius: 12px; }
.stat span { font-size: 12px; color: var(--ink3); }
.stat b { font-family: var(--display); font-size: 22px; font-variant-numeric: tabular-nums; line-height: 1.2; }

/* ── 창 · 알림 ─────────────────────────────────────────────── */
dialog.dlg { width: 440px; max-width: calc(100vw - 32px); padding: 0; border: 1px solid var(--line); border-radius: 16px; background: var(--surface); color: var(--ink); box-shadow: var(--shadow); }
dialog.dlg::backdrop { background: rgba(23, 33, 46, .42); }
.dlg-body { display: flex; flex-direction: column; gap: 14px; padding: 26px 26px 8px; }
.dlg-body h2 { font-size: 18px; font-weight: 700; letter-spacing: -.02em; }
.dlg-body p { font-size: 13.5px; color: var(--ink2); }
.dlg-body .list { display: flex; flex-direction: column; max-height: 300px; overflow-y: auto; border: 1px solid var(--line); border-radius: 10px; }
.dlg-body .list button { display: flex; align-items: center; gap: 10px; min-height: 48px; padding: 6px 12px; border: none; border-top: 1px solid var(--line); background: transparent; text-align: left; }
.dlg-body .list button:first-child { border-top: none; }
.dlg-body .list button:hover { background: var(--soft); }
.dlg-foot { display: flex; justify-content: flex-end; gap: 8px; padding: 14px 26px 22px; }

.toasts { position: fixed; left: 50%; bottom: 24px; z-index: 60; display: flex; flex-direction: column; align-items: center; gap: 8px; transform: translateX(-50%); pointer-events: none; }
.toast { max-width: min(520px, calc(100vw - 32px)); padding: 11px 16px; border-radius: 10px; background: var(--ink); color: #fff; font-size: 13.5px; box-shadow: var(--shadow); }
.toast.dgr { background: var(--dgr); }

/* ── 좁은 화면 ─────────────────────────────────────────────── */
@media (max-width: 1240px) {
  .admin.with-side { grid-template-columns: 200px minmax(0, 1fr); }
  .side { position: fixed; top: 0; right: 0; bottom: 0; z-index: 40; width: min(380px, 100vw); max-height: none; border-radius: 0; border-top: none; border-right: none; border-bottom: none; box-shadow: var(--shadow); }
  .side-close { display: flex; margin-left: auto; }
}
@media (max-width: 1000px) {
  .login-brand { width: 44%; padding: 40px 36px; }
  .login-pitch h1 { font-size: 28px; }
  .home { grid-template-columns: minmax(0, 1fr); gap: 24px; }
  .page { padding: 24px 20px 32px; }
}
@media (max-width: 860px) {
  .admin, .admin.with-side { grid-template-columns: minmax(0, 1fr); padding: 16px 16px 32px; gap: 14px; }
  .nav { position: static; flex-direction: row; gap: 4px; padding: 6px; overflow-x: auto; }
  .nav-group { flex-direction: row; }
  .nav-title { display: none; }
  .pair { grid-template-columns: minmax(0, 1fr); }
  .top .sub, .top .hide-s { display: none; }
  .who-text { display: none; }

  /* 표 — 옆으로 밀어 보게 하면 단추가 화면 밖에 숨는다. 줄마다 한 덩어리로 접어 보여 준다 */
  .table-scroll { overflow-x: visible; }
  .tr.head { display: none; }
  .tr { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; padding: 12px 16px; }
  .tr:first-of-type, .tr.head + .tr { border-top: none; }
  .tr > .person:first-child { flex: 1 1 100%; }
  .tr > .person { flex: 1 1 auto; }
  .tr .sub { white-space: normal; }
  .tr .acts { flex: 1 1 100%; justify-content: flex-start; padding-top: 4px; }
}
@media (max-width: 720px) {
  .login { flex-direction: column; }
  .login-brand { display: none; }
  .login-main { align-items: flex-start; padding: 24px 16px 32px; }
  .card { padding: 28px 22px; }
  .card-mark { display: block; font-size: 18px; color: var(--ink); }
  .page { padding: 20px 16px 28px; gap: 20px; }
  .page-head h1 { font-size: 20px; }
  .top { padding: 0 10px; }
  .facts { grid-template-columns: 96px minmax(0, 1fr); }
  .main-head { flex-direction: column; }
  .bar .input { width: 100%; }
}
@media (prefers-reduced-motion: no-preference) {
  .btn, .iconbtn, .who, .pop-item, .appcard, .chip, button.tr { transition: background-color .12s ease, border-color .12s ease, box-shadow .12s ease; }
}
