/* 기본: 리셋, 레이아웃, 헤더·탭·하단 바, 글자, 패널, 버튼, 칩, 입력칸, 배너, 토스트, 서랍, 검색 팔레트 */

/* ---------- 리셋 ---------- */
*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html, body { margin: 0; background-color: var(--paper); }
/* 답안지 모눈: 아주 옅은 격자 */
body {
  background-image: linear-gradient(var(--grid) 1px, transparent 1px), linear-gradient(90deg, var(--grid) 1px, transparent 1px);
  background-size: 28px 28px; background-position: -1px -1px; background-attachment: fixed;
  color: var(--ink); font-family: var(--f-ui); font-size: var(--fs-md); line-height: var(--lh-ui); letter-spacing: var(--ls-body);
  font-feature-settings: "ss06" 1; /* Pretendard 가독성 높인 글리프(l, I, 1 구분) */
  -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; text-rendering: optimizeLegibility;
  /* 한국어 줄바꿈: 어절 단위로 끊고, 긴 영문·주소만 강제로 끊음 */
  word-break: keep-all; overflow-wrap: break-word;
  padding-bottom: env(safe-area-inset-bottom, 0px);
}
body::before { content: ""; position: fixed; inset: 0 0 auto; height: env(safe-area-inset-top, 0px); z-index: 30; background: var(--sheet); }
body.locked { overflow: hidden; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; -webkit-tap-highlight-color: transparent; }
h1, h2, h3 { text-wrap: balance; margin: 0; line-height: var(--lh-tight); }
p, dl, dd, figure { margin: 0; }
p, li, dd { text-wrap: pretty; }
::selection { background: var(--accent-soft); }
:focus { outline: none; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: var(--r-sm); }
.btn:focus-visible, .chip:focus-visible, .seg button:focus-visible, .icon-btn:focus-visible { outline: none; box-shadow: 0 0 0 2px var(--sheet), 0 0 0 4px var(--accent); }
.sr-only { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.num { font-family: var(--f-num); font-variant-numeric: tabular-nums; letter-spacing: -.005em; }
.hanja { font-family: var(--f-serif); }
.ic { flex: none; display: block; }
kbd { font-family: var(--f-mono); font-size: 11px; font-weight: 500; padding: 1px 5px; border-radius: 4px; border: 1px solid currentColor; opacity: .55; line-height: 1.3; margin-left: 4px; }

/* ---------- 레이아웃 ---------- */
.wrap { max-width: 1240px; margin: 0 auto; padding-left: max(20px, env(safe-area-inset-left, 0px)); padding-right: max(20px, env(safe-area-inset-right, 0px)); }
main { padding-block: 28px 72px; }
.row { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.row.center, .center { justify-content: center; text-align: center; }
.stack { display: flex; flex-direction: column; gap: 16px; min-width: 0; }
.stack-sm { display: flex; flex-direction: column; gap: 8px; }
.grid-2 { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 16px; margin-top: 16px; align-items: start; }
.sp, .grow { flex: 1; }
/* 화면 전환: 투명도만 바꿈. transform을 쓰면 안쪽의 position:fixed(휴대폰 하단 바)가 화면에 붙지 않음 */
#view.enter { animation: fade-in 200ms var(--ease) backwards; }
@keyframes fade-in { from { opacity: 0; } }
@keyframes enter { from { opacity: 0; transform: translateY(6px); } }
@media (max-width: 900px) { .grid-2 { grid-template-columns: minmax(0, 1fr); } }

/* ---------- 헤더 ---------- */
.top { position: sticky; top: env(safe-area-inset-top, 0px); z-index: 20; background: color-mix(in srgb, var(--sheet) 88%, transparent); backdrop-filter: saturate(1.4) blur(12px); -webkit-backdrop-filter: saturate(1.4) blur(12px); border-bottom: 1px solid var(--rule); }
.top .wrap { display: flex; align-items: center; gap: 16px; height: var(--header-h); }
.brand { display: flex; align-items: center; gap: 10px; font-family: var(--f-serif); font-weight: 700; font-size: 17px; white-space: nowrap; text-decoration: none; color: var(--ink); letter-spacing: -.01em; }
.brand-mark { display: grid; grid-template-columns: repeat(3, 7px); gap: 3px; }
.brand-mark i { width: 7px; height: 11px; border: 1.4px solid var(--omr); border-radius: 50%; }
.brand-mark i.f { background: var(--ink); border-color: var(--ink); }
.brand-mark i.h { background: var(--hi); border-color: var(--hi-2); }
.brand-name { font-family: var(--f-serif); font-weight: 900; font-size: 18px; letter-spacing: -.02em; }
.brand-sub { font-family: var(--f-ui); font-weight: 500; font-size: 12.5px; color: var(--ink-3); padding-left: 10px; border-left: 1px solid var(--rule); letter-spacing: 0; }
@media (max-width: 1000px) { .brand-sub { display: none; } }
.tabs { display: flex; gap: 2px; flex: 1; min-width: 0; overflow-x: auto; scrollbar-width: none; }
.tabs::-webkit-scrollbar { display: none; }
.tabs a { position: relative; display: flex; align-items: center; padding: 7px 12px; border-radius: 8px; color: var(--ink-2); text-decoration: none; font-weight: 500; white-space: nowrap; font-size: var(--fs-base); transition: color var(--dur), background var(--dur); }
.tabs a:hover { color: var(--ink); background: var(--rule-2); }
.tabs a[aria-current="page"] { color: var(--ink); }
.tabs a[aria-current="page"] { font-weight: 600; }
.tabs a[aria-current="page"]::after { content: ""; position: absolute; left: 10px; right: 10px; bottom: -11px; height: 3px; border-radius: 3px 3px 0 0; background: var(--hi-2); }
.cnt { display: inline-block; min-width: 18px; padding: 0 5px; margin-left: 6px; border-radius: 9px; background: var(--warn-soft); color: var(--warn); font: 600 11px/18px var(--f-num); font-variant-numeric: tabular-nums; text-align: center; }
.top-tools { display: flex; align-items: center; gap: 6px; }
.search-btn { display: flex; align-items: center; gap: 8px; height: 34px; padding: 0 8px 0 10px; border-radius: 8px; border: 1px solid var(--rule); background: var(--sheet-2); color: var(--ink-3); font-size: 13.5px; min-width: 150px; }
.search-btn span { flex: 1; text-align: left; }
.search-btn:hover { border-color: var(--ink-3); color: var(--ink-2); }
.icon-btn { display: inline-grid; place-items: center; width: 34px; height: 34px; border-radius: 8px; border: 1px solid transparent; background: none; color: var(--ink-2); transition: background var(--dur), color var(--dur); }
.icon-btn:hover:not([disabled]) { background: var(--rule-2); color: var(--ink); }
.icon-btn[disabled] { opacity: .35; cursor: default; }
.icon-btn.on, .icon-btn[aria-pressed="true"] { color: var(--warn); background: var(--warn-soft); }
.chip-timer { display: flex; align-items: center; gap: 8px; height: 30px; padding: 0 11px; border-radius: 999px; border: 1px solid var(--rule); font-size: 12.5px; color: var(--ink-2); white-space: nowrap; background: var(--sheet); }
.chip-timer .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--ok); box-shadow: 0 0 0 3px var(--ok-soft); }

/* ---------- 하단 탭 바(휴대폰) ---------- */
.bottom-nav { display: none; }
@media (max-width: 760px) {
  .tabs, .search-btn span, .search-btn kbd { display: none; }
  .search-btn { min-width: 0; width: 34px; padding: 0; justify-content: center; background: none; border-color: transparent; }
  .top .wrap { gap: 8px; }
  .brand { margin-right: auto; }
  main { padding-bottom: calc(96px + env(safe-area-inset-bottom, 0px)); }
  .bottom-nav {
    display: grid; grid-template-columns: repeat(6, 1fr); position: fixed; left: 0; right: 0; bottom: 0; z-index: 20;
    background: color-mix(in srgb, var(--sheet) 92%, transparent); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
    border-top: 1px solid var(--rule); padding: 6px max(4px, env(safe-area-inset-right, 0px)) calc(6px + env(safe-area-inset-bottom, 0px)) max(4px, env(safe-area-inset-left, 0px));
  }
  .bottom-nav a { display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 4px 0; font-size: 11px; font-weight: 500; color: var(--ink-3); text-decoration: none; }
  .bottom-nav a[aria-current="page"] { color: var(--ink); }
  .bottom-nav a[aria-current="page"] { font-weight: 600; }
  .bottom-nav a[aria-current="page"] .bn-ic { background: var(--hi-soft); color: var(--ink); }
  .bn-ic { position: relative; display: grid; place-items: center; width: 44px; height: 28px; border-radius: 999px; transition: background var(--dur); }
  .bn-dot { position: absolute; top: 2px; right: 9px; width: 7px; height: 7px; border-radius: 50%; background: var(--warn-dot); box-shadow: 0 0 0 2px var(--sheet); }
  body.immersive .bottom-nav { display: none; }
  body.immersive main { padding-bottom: calc(88px + env(safe-area-inset-bottom, 0px)); }
}

/* ---------- 글자 ---------- */
.page-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px 24px; flex-wrap: wrap; margin-bottom: 22px; }
.page-head h1 { font-family: var(--f-serif); font-size: var(--fs-2xl); font-weight: 700; line-height: 1.3; letter-spacing: var(--ls-display); display: inline; background: linear-gradient(transparent 64%, var(--hi-soft) 64%, var(--hi-soft) 92%, transparent 92%); padding: 0 2px; box-decoration-break: clone; -webkit-box-decoration-break: clone; }
.page-tools { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.lede { color: var(--ink-2); margin-top: 8px; max-width: 40em; font-size: var(--fs-md); line-height: 1.6; }
h2 { font-size: var(--fs-md); font-weight: 600; letter-spacing: -.01em; }
h3 { font-weight: 600; }
.eyebrow { font-size: var(--fs-2xs); letter-spacing: .06em; color: var(--ink-3); font-weight: 600; }
.muted { color: var(--ink-2); }
.faint { color: var(--ink-3); font-size: var(--fs-sm); letter-spacing: var(--ls-caption); }
.help { color: var(--ink-3); font-size: var(--fs-sm); margin-top: 12px; line-height: 1.6; letter-spacing: var(--ls-caption); max-width: 48em; }
.footnote { color: var(--ink-3); font-size: var(--fs-sm); margin-top: 24px; letter-spacing: var(--ls-caption); }
.sec-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 16px; }
/* 패널 제목 앞의 작은 OMR 칸 */
.sec-head h2 { display: flex; align-items: center; gap: 9px; }
.sec-head h2::before { content: ""; width: 8px; height: 12px; border-radius: 50%; border: 1.5px solid var(--omr); flex: none; }
.sub-h { font-size: var(--fs-sm); font-weight: 600; color: var(--ink-2); margin: 20px 0 10px; display: flex; gap: 8px; align-items: baseline; }
.warn-t { color: var(--warn) !important; }
.ok-t { color: var(--ok); display: inline-flex; align-items: center; gap: 4px; }
.danger-t { color: var(--bad) !important; }

/* ---------- 패널 ---------- */
.panel { background: var(--sheet); border: 1px solid var(--rule); border-radius: var(--r-lg); padding: 22px; min-width: 0; box-shadow: var(--shadow-1); }
.card-hover { transition: border-color var(--dur), box-shadow 220ms var(--ease), transform 220ms var(--ease); }
.card-hover:hover { border-color: color-mix(in srgb, var(--accent) 30%, var(--rule)); box-shadow: var(--shadow-2); transform: translateY(-2px); }

/* ---------- 버튼 ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 7px; height: 38px; padding: 0 16px;
  border-radius: 9px; border: 1px solid var(--rule); background: var(--sheet); color: var(--ink);
  font-weight: 600; font-size: var(--fs-base); letter-spacing: -.005em; text-decoration: none; white-space: nowrap;
  transition: background var(--dur), border-color var(--dur), color var(--dur), filter var(--dur), transform 120ms var(--ease);
}
.btn:hover:not([disabled]) { border-color: var(--ink-3); }
.btn:active:not([disabled]) { transform: scale(.97); }
.btn.primary { background: linear-gradient(180deg, var(--btn), var(--btn-2)); border-color: var(--btn-2); color: var(--on-btn); box-shadow: var(--shadow-btn); }
.btn.primary:hover:not([disabled]) { filter: brightness(1.08); border-color: var(--btn-2); }
.btn.primary[disabled] { box-shadow: none; }
/* 형광펜 버튼: 화면에서 가장 중요한 행동 하나에만 */
.btn.hi { background: linear-gradient(180deg, var(--hi), var(--hi-2)); border-color: var(--hi-2); color: var(--hi-ink); font-weight: 600; box-shadow: inset 0 1px 0 rgba(255, 255, 255, .5), 0 8px 22px -8px rgba(242, 194, 0, .7); }
.btn.hi:hover:not([disabled]) { filter: brightness(1.04) saturate(1.1); }
.btn.ghost { border-color: transparent; background: none; color: var(--ink-2); }
.btn.ghost:hover:not([disabled]) { background: var(--rule-2); color: var(--ink); }
.btn.danger { border-color: var(--bad); color: var(--bad); background: var(--bad-soft); }
.btn.armed { border-color: var(--bad); color: var(--bad); background: var(--bad-soft); }
.btn.small { height: 34px; padding: 0 13px; font-size: var(--fs-sm); border-radius: 8px; }
.btn.lg { height: 48px; padding: 0 24px; font-size: var(--fs-md); border-radius: 12px; }
.btn[disabled] { opacity: .42; cursor: not-allowed; }
.btn kbd { opacity: .6; }

/* 세그먼트 컨트롤 */
.seg { display: inline-flex; padding: 3px; border-radius: 10px; background: var(--rule-2); gap: 2px; }
.seg button { display: inline-flex; align-items: center; gap: 6px; border: 0; background: none; height: 32px; padding: 0 14px; border-radius: 7px; font-size: var(--fs-sm); color: var(--ink-2); font-weight: 500; white-space: nowrap; transition: background var(--dur), color var(--dur), box-shadow var(--dur); }
.seg button:hover:not([disabled]) { color: var(--ink); }
.seg button[aria-pressed="true"] { background: var(--sheet); color: var(--ink); box-shadow: 0 1px 2px rgba(0, 0, 0, .08), 0 0 0 1px var(--rule); }
.seg button[disabled] { opacity: .45; cursor: default; }
.seg-wrap { flex-wrap: wrap; }

/* 칩(필터·태그 고르기). 선택 = 강조색 */
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chip { display: inline-flex; align-items: center; gap: 6px; height: 30px; padding: 0 12px; border-radius: 999px; border: 1px solid var(--rule); background: var(--sheet); font-size: var(--fs-sm); color: var(--ink-2); font-weight: 500; transition: all var(--dur); }
.chip:hover { border-color: var(--ink-3); color: var(--ink); }
.chip.on { background: var(--accent-soft); border-color: color-mix(in srgb, var(--accent) 40%, transparent); color: var(--accent-2); }
.chip .num { font-size: 11.5px; }

/* 스위치 */
.switch { display: inline-flex; align-items: center; gap: 9px; font-size: 13.5px; color: var(--ink-2); cursor: pointer; user-select: none; }
.switch input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.switch .sw { position: relative; width: 34px; height: 20px; border-radius: 999px; background: var(--rule); transition: background var(--dur); }
.switch .sw::after { content: ""; position: absolute; top: 2px; left: 2px; width: 16px; height: 16px; border-radius: 50%; background: var(--sheet); box-shadow: 0 1px 2px rgba(0, 0, 0, .25); transition: transform var(--dur) var(--ease); }
.switch input:checked + .sw { background: var(--accent); }
.switch input:checked + .sw::after { transform: translateX(14px); }
.switch input:focus-visible + .sw { outline: 2px solid var(--accent); outline-offset: 2px; }

/* 태그(읽기 전용 표시) */
.tag { display: inline-flex; align-items: center; gap: 5px; font-size: var(--fs-2xs); font-weight: 600; letter-spacing: var(--ls-caption); height: 23px; padding: 0 8px; border-radius: 6px; background: var(--rule-2); color: var(--ink-2); white-space: nowrap; }
.tag i { width: 7px; height: 7px; border-radius: 2px; background: currentColor; }
.tag.verbal { color: var(--verbal); background: color-mix(in srgb, var(--verbal) 12%, transparent); }
.tag.reasoning { color: var(--reason); background: color-mix(in srgb, var(--reason) 12%, transparent); }
.tag.essay { color: var(--essay); background: color-mix(in srgb, var(--essay) 13%, transparent); }
.tag.mix { color: var(--ink); background: var(--hi-soft); }
.tag.warn { color: var(--warn); background: var(--warn-soft); }
.tag b { font-weight: 600; }

/* ---------- 입력칸 ---------- */
label.fl { display: block; font-size: var(--fs-sm); color: var(--ink-2); margin-bottom: 6px; font-weight: 500; }
.req { color: var(--bad); margin-left: 3px; }
input[type=date], input[type=number], input.inp, select, textarea.inp {
  background: var(--sheet); border: 1px solid var(--rule); border-radius: 8px; padding: 8px 11px; min-height: 38px;
  transition: border-color var(--dur), box-shadow var(--dur);
}
input:hover, select:hover, textarea.inp:hover { border-color: color-mix(in srgb, var(--ink-3) 60%, var(--rule)); }
input:focus-visible, select:focus-visible, textarea:focus-visible { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
[aria-invalid="true"] { border-color: var(--bad) !important; box-shadow: 0 0 0 3px var(--bad-soft) !important; }
textarea.inp { width: 100%; resize: vertical; line-height: 1.6; }
.form-msg { color: var(--bad); font-size: 13.5px; min-height: 1em; }
.search { position: relative; }
.search .ic { position: absolute; left: 11px; top: 50%; transform: translateY(-50%); color: var(--ink-3); pointer-events: none; }
.search input { width: 100%; padding-left: 34px; }

/* ---------- 빈 상태 · 배너 ---------- */
.empty { padding: 36px 24px; text-align: center; border: 1px dashed var(--rule); border-radius: var(--r-lg); color: var(--ink-2); display: flex; flex-direction: column; gap: 12px; align-items: center; background: var(--sheet-2); }
.empty .ic { color: var(--ink-3); }
.empty.sm { padding: 20px 16px; }
.banner { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; padding: 12px 16px; border-radius: var(--r); background: var(--accent-soft); color: var(--ink); margin-top: 16px; font-size: 14px; }
.banner > .ic { color: var(--accent-2); }
.banner p { flex: 1; min-width: 220px; }
.banner.warn { background: var(--warn-soft); }

/* ---------- 토스트 ---------- */
.toast {
  position: fixed; left: 50%; bottom: calc(24px + env(safe-area-inset-bottom, 0px)); transform: translateX(-50%); z-index: 60;
  display: flex; align-items: center; gap: 14px; max-width: min(560px, calc(100vw - 32px));
  background: var(--navy); color: var(--on-navy); padding: 10px 12px 10px 16px; border-radius: 12px; font-size: 14px; box-shadow: var(--shadow-3);
  border: 1px solid rgba(255, 255, 255, .08);
}
.toast::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--hi); flex: none; }
.toast.show { animation: toast-in 240ms var(--ease); }
@keyframes toast-in { from { opacity: 0; transform: translate(-50%, 8px); } }
.toast-btn { border: 0; background: var(--hi); color: var(--hi-ink); font-weight: 600; font-size: 13px; padding: 5px 10px; border-radius: 7px; white-space: nowrap; }
@media (max-width: 760px) { .toast { bottom: calc(84px + env(safe-area-inset-bottom, 0px)); } }

/* ---------- 서랍 ---------- */
.scrim { position: fixed; inset: 0; z-index: 40; background: rgba(10, 12, 18, .36); opacity: 0; transition: opacity 180ms; }
.scrim.open { opacity: 1; }
.drawer {
  position: fixed; top: 0; right: 0; bottom: 0; z-index: 50; width: min(460px, 100vw);
  background: var(--sheet); border-left: 1px solid var(--rule); box-shadow: var(--shadow-3);
  display: flex; flex-direction: column; transform: translateX(24px); opacity: 0; transition: transform 200ms var(--ease), opacity 160ms;
  padding-top: env(safe-area-inset-top, 0px);
}
.drawer.open { transform: none; opacity: 1; }
.drawer-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 16px 10px 22px; border-bottom: 1px solid var(--rule-2); }
.drawer-head h2 { font-size: 13px; color: var(--ink-3); font-weight: 600; letter-spacing: .04em; }
.drawer-body { flex: 1; overflow: auto; padding: 20px 22px calc(28px + env(safe-area-inset-bottom, 0px)); overscroll-behavior: contain; }
.dr-title { font-family: var(--f-serif); font-size: 26px; font-weight: 700; letter-spacing: -.02em; }
.dr-h { font-size: 13px; color: var(--ink-3); margin: 18px 0 8px; font-weight: 600; }
.dr-h:first-child { margin-top: 0; }
.keys { display: grid; grid-template-columns: auto 1fr; gap: 8px 16px; font-size: 14px; align-items: center; }
.keys dt { white-space: nowrap; color: var(--ink-3); }
.keys kbd { opacity: 1; color: var(--ink); border-color: var(--rule); background: var(--sheet-2); margin: 0; }
@media (max-width: 600px) {
  .drawer { top: auto; width: 100%; max-height: 88vh; border-left: 0; border-top: 1px solid var(--rule); border-radius: 18px 18px 0 0; transform: translateY(32px); }
  .drawer-head::before { content: ""; position: absolute; left: 50%; top: 6px; width: 36px; height: 4px; margin-left: -18px; border-radius: 2px; background: var(--rule); }
}

/* ---------- 검색 팔레트 ---------- */
.palette {
  position: fixed; left: 50%; top: max(10vh, 60px); z-index: 55; width: min(620px, calc(100vw - 24px));
  transform: translateX(-50%); opacity: 0;
  background: var(--sheet); border: 1px solid var(--rule); border-radius: 16px; box-shadow: var(--shadow-3); overflow: hidden;
}
.palette.open { transform: translateX(-50%); opacity: 1; }
.pal-search { display: flex; align-items: center; gap: 10px; padding: 0 16px; border-bottom: 1px solid var(--rule-2); color: var(--ink-3); }
.pal-search input { flex: 1; border: 0; background: none; height: 56px; font-size: var(--fs-lg); letter-spacing: -.01em; outline: none; color: var(--ink); }
.pal-search input:focus-visible { box-shadow: none; }
.pal-list { max-height: min(56vh, 460px); overflow: auto; padding: 6px; overscroll-behavior: contain; }
.pal-g { font-size: 11.5px; font-weight: 600; color: var(--ink-3); letter-spacing: .04em; padding: 10px 10px 4px; }
.pal-it { display: flex; align-items: center; gap: 12px; width: 100%; text-align: left; border: 0; background: none; padding: 9px 10px; border-radius: 9px; color: var(--ink-2); }
.pal-it .ic { color: var(--ink-3); }
.pal-it.on { background: var(--accent-soft); color: var(--ink); }
.pal-it.on .ic { color: var(--accent-2); }
.pal-t { font-weight: 500; color: var(--ink); white-space: nowrap; }
.pal-s { font-size: 12.5px; color: var(--ink-3); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; }
.pal-empty { padding: 28px 16px; text-align: center; color: var(--ink-3); font-size: 14px; }
.pal-foot { display: flex; gap: 16px; padding: 8px 16px; border-top: 1px solid var(--rule-2); font-size: 12px; color: var(--ink-3); }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
