/*
  방향 C: 차분한 서가
  옅은 회녹색 바탕에 짙은 녹색으로 강조하고, 번호와 수치는 청구기호처럼 고정폭 숫자로 적는다.
  모듈마다 양장본의 천 색을 하나씩 정해 책등, 메뉴, 할 일의 이름표에 같이 쓴다.
  값은 아래 :root에만 적고, 그 밑의 규칙은 변수만 쓴다.
*/

/* 글꼴: 미리보기에서는 배포처에서 바로 불러온다. */
@import url("https://fonts.googleapis.com/css2?family=IBM+Plex+Mono:wght@400;500&family=IBM+Plex+Sans+KR:wght@400;500;600&display=swap");

:root {
  /* 색: 바탕과 면 */
  --color-bg: #ecefe9;              /* 서가의 옅은 회녹색 */
  --color-surface: #f8f9f4;         /* 목록 카드의 종이 */
  --color-surface-2: #dfe5dd;       /* 한 톤 어두운 칸 */
  --color-line: #cbd3c9;            /* 칸을 나누는 선 */
  --color-line-strong: #24332b;     /* 선반 */
  --color-line-accent: #a8853a;     /* 황동 이름표 */

  /* 색: 글자 */
  --color-text: #1a2620;
  --color-text-muted: #536058;

  /* 색: 실행 버튼 */
  --color-action: #1f4a3b;          /* 짙은 녹색 */
  --color-action-hover: #17382d;
  --color-on-action: #f6f3e7;

  /* 색: 강조 */
  --color-accent: #1f4a3b;
  --color-accent-strong: #1f4a3b;   /* 바탕 위에 글자로 쓸 때 */
  --color-accent-soft: #d2ded5;
  --color-on-accent: #f6f3e7;
  --color-mark: #e8dfbd;            /* 옅은 황동빛 밑칠 */

  /* 색: 상태 */
  --color-ok: #1f5c43;
  --color-ok-soft: #d2e2d7;
  --color-warn: #6f5210;
  --color-warn-soft: #ece2c0;
  --color-danger: #97382a;
  --color-danger-soft: #f0dad3;
  --color-info: #33505f;
  --color-info-soft: #d7e1e5;

  /* 색: 모듈. 양장본의 천 색에서 가져왔다. */
  --color-module-admin: #1f4a3b;       /* 진녹색 */
  --color-module-journal: #7a5e22;     /* 황토색 */
  --color-module-conference: #7a3b32;  /* 적갈색 */
  --color-module-link: #536058;        /* 회색. 준비 중 */
  --color-on-module: #f6f3e7;          /* 책등의 글자 */

  /* 색: 기타 */
  --color-focus: #1f4a3b;
  --color-overlay: rgba(26, 38, 32, 0.45);

  /* 글꼴 */
  --font-display: "IBM Plex Sans KR", -apple-system, BlinkMacSystemFont, "Apple SD Gothic Neo", "Malgun Gothic", sans-serif;
  --font-body: "IBM Plex Sans KR", -apple-system, BlinkMacSystemFont, "Apple SD Gothic Neo", "Malgun Gothic", sans-serif;
  --font-num: "IBM Plex Mono", "IBM Plex Sans KR", ui-monospace, "SF Mono", Menlo, monospace;
  --weight-regular: 400;
  --weight-medium: 500;
  --weight-bold: 600;
  --weight-display: 600;

  /* 글자 크기 단계 */
  --text-2xs: 0.6875rem;            /* 11px */
  --text-xs: 0.75rem;               /* 12px */
  --text-sm: 0.875rem;              /* 14px */
  --text-base: 0.9375rem;           /* 15px */
  --text-md: 1.0625rem;             /* 17px */
  --text-lg: 1.25rem;               /* 20px */
  --text-xl: 1.5rem;                /* 24px */
  --text-2xl: 2rem;                 /* 32px */
  --text-3xl: 2.75rem;              /* 44px */
  --text-hero: clamp(2rem, 1rem + 2.9vw, 3.5rem);
  --leading-tight: 1.28;
  --leading-snug: 1.45;
  --leading-normal: 1.65;
  --leading-loose: 1.8;
  --tracking-tight: -0.02em;
  --tracking-normal: 0;
  --tracking-wide: 0.04em;

  /* 간격 단계 */
  --space-1: 0.25rem;               /* 4px */
  --space-2: 0.5rem;                /* 8px */
  --space-3: 0.75rem;               /* 12px */
  --space-4: 1rem;                  /* 16px */
  --space-5: 1.5rem;                /* 24px */
  --space-6: 2rem;                  /* 32px */
  --space-7: 3rem;                  /* 48px */
  --space-8: 4rem;                  /* 64px */
  --space-9: 6rem;                  /* 96px */
  --space-gutter: clamp(1rem, 4.5vw, 4.5rem);

  /* 모서리 */
  --radius-sm: 0.25rem;             /* 4px */
  --radius-md: 0.5rem;              /* 8px */
  --radius-lg: 0.75rem;             /* 12px */
  --radius-full: 999px;

  /* 그림자. 칸에는 쓰지 않고, 떠 있는 창에만 쓴다. */
  --shadow-sm: 0 1px 2px rgba(26, 38, 32, 0.06);
  --shadow-md: 0 6px 18px rgba(26, 38, 32, 0.1);
  --shadow-lg: 0 18px 44px rgba(26, 38, 32, 0.16);

  /* 선 */
  --border-thin: 1px;
  --border-mid: 1.5px;
  --border-thick: 2px;
  --icon-stroke: 1.5;

  /* 크기 */
  --size-content: 76rem;            /* 본문 최대 폭 */
  --size-header: 4.5rem;            /* 포털 머리말 높이 */
  --size-sidebar: 15.5rem;          /* 사무국 왼쪽 메뉴 폭 */
  --size-topbar: 3.75rem;           /* 사무국 위쪽 막대 높이 */
  --size-aside: 21rem;              /* 보조 단 폭 */
  --size-label: 6.5rem;             /* 항목 칸 폭 */
  --size-control: 2.625rem;         /* 버튼과 입력 칸 높이 */
  --size-control-lg: 3.125rem;
  --size-control-sm: 2rem;
  --size-nav-item: 2rem;            /* 메뉴 한 줄 높이 */
  --size-icon: 1.125rem;
  --size-measure: 30em;             /* 읽기 좋은 한 줄 길이 */

  /* 움직임 */
  --duration-fast: 120ms;

  /* 이번 미리보기에서 더한 값 */
  --size-rail: 4.25rem;             /* 책등 레일 폭 */
  --size-menu: 13rem;               /* 펼친 메뉴 열 폭 */
  --size-drawer: 26rem;             /* 오른쪽 서랍 폭 */
  --size-book: 8.25rem;             /* 서가의 책 한 권 높이 */
  --size-plank: 0.25rem;            /* 선반 판 두께 */
  --size-tab: 3.5rem;               /* 모바일 아래쪽 탭 줄 높이 */
}

/* 미리보기 틀: 방향의 디자인이 아니다. 값을 직접 적는다. */
.pv-bar { box-sizing: border-box; display: flex; align-items: center; gap: 14px; height: 36px; margin: 0; padding: 0 16px; border-bottom: 1px dashed #8d8d8d; background: #efefef; color: #2b2b2b; font: 12px/1.4 system-ui, -apple-system, "Apple SD Gothic Neo", "Malgun Gothic", sans-serif; letter-spacing: 0; white-space: nowrap; overflow: hidden; }
.pv-bar__title { font-weight: 700; }
.pv-bar a { padding: 3px 8px; border: 1px solid transparent; border-radius: 3px; color: #2b2b2b; text-decoration: underline; text-underline-offset: 2px; }
.pv-bar a:focus-visible { outline: 2px solid #2b2b2b; outline-offset: 1px; }
.pv-bar a[aria-current="page"] { border-color: #2b2b2b; background: #ffffff; font-weight: 700; text-decoration: none; }
.pv-bar__note { color: #555555; }
.pv-bar__back { margin-left: auto; }
@media (max-width: 720px) { .pv-bar__note { display: none; } }

/* ---------- 바탕 ---------- */

*, *::before, *::after { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--color-bg);
  color: var(--color-text);
  font-family: var(--font-body);
  font-size: var(--text-base);
  line-height: var(--leading-normal);
  word-break: keep-all;
  overflow-wrap: break-word;
  -webkit-font-smoothing: antialiased;
}

:where(.portal, .office, .drawer) :where(h1, h2, h3, h4, p, ul, ol, dl, dd, figure) { margin: 0; padding: 0; }
:where(.portal, .office, .drawer) :where(ul, ol) { list-style: none; }
:where(.portal, .office, .drawer) :where(h1, h2, h3, h4) { font-size: inherit; font-weight: inherit; }
:where(.portal, .office, .drawer) a { color: inherit; }
:where(.portal, .office, .drawer, .toast) :focus-visible {
  outline: var(--border-thick) solid var(--color-focus);
  outline-offset: var(--border-thick);
}

.icon { flex: none; width: var(--size-icon); height: var(--size-icon); stroke-width: var(--icon-stroke); }
.num { font-family: var(--font-num); font-variant-numeric: tabular-nums; letter-spacing: 0; }
.sr-only { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

[data-module="admin"] { --band: var(--color-module-admin); }
[data-module="journal"] { --band: var(--color-module-journal); }
[data-module="conference"] { --band: var(--color-module-conference); }
[data-module="link"] { --band: var(--color-module-link); }
[data-module="ops"] { --band: var(--color-text-muted); }
[data-kind="overdue"] { --band: var(--color-danger); }
[data-kind="today"] { --band: var(--color-action); }
[data-kind="done"] { --band: var(--color-text-muted); }

/* ---------- 공통 부품 ---------- */

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: var(--space-2);
  min-height: var(--size-control); padding: 0 var(--space-4);
  border: var(--border-thin) solid var(--color-line); border-radius: var(--radius-md);
  background: var(--color-surface); color: var(--color-accent-strong);
  font-family: var(--font-body); font-size: var(--text-sm); font-weight: var(--weight-bold); line-height: var(--leading-tight);
  text-decoration: none; white-space: nowrap; cursor: pointer;
  transition: background-color var(--duration-fast), border-color var(--duration-fast);
}
.btn:hover { border-color: var(--color-accent); background: var(--color-accent-soft); }
.btn--primary { border-color: var(--color-action); background: var(--color-action); color: var(--color-on-action); }
.btn--primary:hover { border-color: var(--color-action-hover); background: var(--color-action-hover); }
.btn--small { min-height: var(--size-control-sm); padding: 0 var(--space-3); font-size: var(--text-xs); }
.btn--quiet { border-color: transparent; background: transparent; color: var(--color-text-muted); }
.btn--danger { border-color: var(--color-danger); color: var(--color-danger); }
.btn--danger:hover { background: var(--color-danger-soft); border-color: var(--color-danger); }

.field {
  min-height: var(--size-control); padding: 0 var(--space-3);
  border: var(--border-thin) solid var(--color-line); border-radius: var(--radius-md);
  background: var(--color-surface); color: var(--color-text);
  font: inherit; font-size: var(--text-sm);
}
.field::placeholder { color: var(--color-text-muted); }

/* 서랍: 판이나 서가를 가리지 않고 오른쪽에서 열린다. */
.drawer {
  position: fixed; z-index: 20; top: 36px; right: 0; bottom: 0;
  display: flex; flex-direction: column;
  width: min(var(--size-drawer), 100vw);
  border-left: var(--border-thin) solid var(--color-line-strong);
  background: var(--color-surface); box-shadow: var(--shadow-lg);
}
.drawer[hidden] { display: none; }
.drawer__head {
  display: flex; align-items: flex-start; gap: var(--space-3);
  padding: var(--space-4) var(--space-5);
  border-top: var(--space-1) solid var(--band, var(--color-action));
  border-bottom: var(--border-thin) solid var(--color-line);
}
.drawer__kicker { color: var(--band, var(--color-accent-strong)); font-size: var(--text-xs); font-weight: var(--weight-bold); }
.drawer__title { font-size: var(--text-lg); font-weight: var(--weight-bold); line-height: var(--leading-snug); }
.drawer__title:focus { outline: none; }
.drawer__close { margin-left: auto; min-width: var(--size-control); }
.drawer__body { flex: 1; overflow-y: auto; padding: var(--space-5); display: grid; gap: var(--space-5); align-content: start; }
.drawer__foot { display: flex; gap: var(--space-2); padding: var(--space-4) var(--space-5); border-top: var(--border-thin) solid var(--color-line); background: var(--color-bg); }
.drawer__foot .btn { flex: 1; }
.drawer h3 { font-size: var(--text-md); font-weight: var(--weight-bold); color: var(--color-text); margin-bottom: var(--space-2); }

.facts { display: grid; grid-template-columns: var(--size-label) 1fr; gap: var(--space-2) var(--space-3); font-size: var(--text-sm); }
.facts dt { color: var(--color-text-muted); }

.steps { display: grid; gap: 0; counter-reset: step; }
.steps li {
  position: relative; display: grid; grid-template-columns: var(--size-control-sm) 1fr auto; align-items: center; gap: var(--space-3);
  padding: var(--space-2) 0; font-size: var(--text-sm);
}
.steps li + li::before {
  content: ""; position: absolute; left: calc(var(--size-control-sm) / 2 - 1px); top: calc(-1 * var(--space-3)); height: var(--space-5);
  border-left: var(--border-thick) solid var(--color-line);
}
.steps__dot {
  position: relative; z-index: 1; display: grid; place-items: center; width: var(--size-control-sm); height: var(--size-control-sm);
  border: var(--border-thick) solid var(--color-line); border-radius: var(--radius-full); background: var(--color-surface);
  font-family: var(--font-num); font-size: var(--text-xs); color: var(--color-text-muted);
}
.steps__state { font-size: var(--text-xs); color: var(--color-text-muted); }
.steps li[data-step="done"] .steps__dot { border-color: var(--color-ok); background: var(--color-ok); color: var(--color-on-action); }
.steps li[data-step="done"] .steps__state { color: var(--color-ok); }
.steps li[data-step="turn"] .steps__dot { border-color: var(--color-action); color: var(--color-action); background: var(--color-accent-soft); }
.steps li[data-step="turn"] .steps__state { color: var(--color-accent-strong); font-weight: var(--weight-bold); }
.steps li[data-step="rejected"] .steps__dot { border-color: var(--color-danger); background: var(--color-danger); color: var(--color-on-action); }
.steps li[data-step="rejected"] .steps__state { color: var(--color-danger); }

.done-note { display: flex; align-items: center; gap: var(--space-2); padding: var(--space-3); border-radius: var(--radius-md); background: var(--color-ok-soft); color: var(--color-ok); font-size: var(--text-sm); font-weight: var(--weight-bold); }

.toast {
  position: fixed; z-index: 30; left: 50%; bottom: var(--space-5); transform: translateX(-50%);
  max-width: calc(100vw - 2 * var(--space-4));
  padding: var(--space-3) var(--space-4); border-radius: var(--radius-md);
  background: var(--color-line-strong); color: var(--color-on-module); font-size: var(--text-sm); box-shadow: var(--shadow-md);
}
.toast[hidden] { display: none; }

/* ======================================================
   사무국: 책등 레일, 메뉴 열, 일정 띠, 모듈별 판
   ====================================================== */

.office {
  display: grid;
  grid-template-columns: var(--size-rail) var(--size-menu) minmax(0, 1fr);
  grid-template-rows: var(--size-topbar) minmax(0, 1fr);
  height: calc(100vh - 36px);
  min-height: 0;
}
.office[data-menu="closed"] { grid-template-columns: var(--size-rail) 0 minmax(0, 1fr); }
.office[data-menu="closed"] .menu { visibility: hidden; }

/* 책등 레일 */
.rail {
  grid-row: 1 / -1; grid-column: 1;
  display: flex; flex-direction: column; align-items: center; gap: var(--space-2);
  padding: var(--space-3) 0 var(--space-4);
  background: var(--color-line-strong);
}
.rail__mark {
  display: grid; place-items: center; width: 2.25rem; height: 2.25rem; margin-bottom: var(--space-3);
  border: var(--border-mid) solid var(--color-line-accent); border-radius: var(--radius-sm);
  color: var(--color-line-accent); font-family: var(--font-num); font-size: var(--text-xs); font-weight: var(--weight-medium);
  text-decoration: none;
}
.spines { display: flex; flex-direction: column; gap: var(--space-1); width: 100%; padding: 0 var(--space-2); }
.spine {
  position: relative; display: flex; flex-direction: column; align-items: center; justify-content: space-between; gap: var(--space-2);
  width: 100%; min-height: 7.25rem; padding: var(--space-3) 0 var(--space-2);
  border: 0; border-radius: var(--radius-sm) var(--radius-sm) 0 0;
  background: var(--band); color: var(--color-on-module);
  font: inherit; font-size: var(--text-sm); font-weight: var(--weight-bold); letter-spacing: var(--tracking-wide);
  cursor: pointer; transition: transform var(--duration-fast);
}
.spine:nth-child(2) { width: 88%; }
.spine:nth-child(4) { width: 82%; min-height: 5.5rem; }
.spine__label { writing-mode: vertical-rl; }
.spine__count { font-family: var(--font-num); font-size: var(--text-2xs); font-weight: var(--weight-medium); }
.spine::after { /* 황동 이름표 */
  content: ""; position: absolute; left: 22%; right: 22%; bottom: var(--space-6); height: var(--border-thick); background: var(--color-line-accent); opacity: 0.8;
}
.spine:hover { transform: translateX(var(--space-1)); }
.spine[aria-expanded="true"] { transform: translateX(var(--space-2)); box-shadow: var(--shadow-md); }
.spine[aria-expanded="true"]::before {
  content: ""; position: absolute; left: calc(-1 * var(--space-2)); top: 0; bottom: 0; width: var(--space-1); background: var(--color-line-accent);
}
.spine:focus-visible { outline: var(--border-thick) solid var(--color-line-accent); outline-offset: var(--border-thick); }

/* 위쪽 막대 */
.topbar {
  grid-row: 1; grid-column: 2 / -1;
  display: flex; align-items: center; gap: var(--space-4); min-width: 0;
  padding: 0 var(--space-5);
  border-bottom: var(--border-thin) solid var(--color-line);
  background: var(--color-surface);
}
.topbar__brand { display: flex; align-items: baseline; gap: var(--space-3); min-width: 0; white-space: nowrap; }
.topbar__product { font-size: var(--text-xs); color: var(--color-text-muted); font-weight: var(--weight-bold); }
.topbar__society { font-size: var(--text-md); font-weight: var(--weight-bold); }
.topbar__code { font-size: var(--text-xs); color: var(--color-text-muted); }
.topbar__search { margin-left: auto; width: 15rem; }
.topbar__search .field { width: 100%; min-height: var(--size-control-sm); }
.topbar__role { display: flex; align-items: center; gap: var(--space-2); font-size: var(--text-xs); color: var(--color-text-muted); white-space: nowrap; }
.topbar__role .field { min-height: var(--size-control-sm); color: var(--color-text); }
.topbar__links { display: flex; gap: var(--space-1); }
.topbar__links a {
  display: inline-flex; align-items: center; gap: var(--space-1); min-height: var(--size-control-sm); padding: 0 var(--space-2);
  border-radius: var(--radius-sm); font-size: var(--text-sm); text-decoration: underline; text-underline-offset: 3px; text-decoration-color: var(--color-line); white-space: nowrap;
}
.topbar__links a:hover { background: var(--color-accent-soft); }
.topbar__links .icon { width: 0.875rem; height: 0.875rem; }

/* 메뉴 열 */
.menu {
  grid-row: 2; grid-column: 2;
  min-width: 0; overflow: hidden auto;
  border-right: var(--border-thin) solid var(--color-line);
  background: var(--color-surface);
}
.menu__group { padding: var(--space-4) var(--space-3); }
.menu__group[hidden] { display: none; }
.menu__head { display: flex; align-items: center; gap: var(--space-2); padding: 0 var(--space-2) var(--space-3); border-bottom: var(--border-thick) solid var(--band); margin-bottom: var(--space-2); }
.menu__name { font-weight: var(--weight-bold); color: var(--band); }
.menu__fold { margin-left: auto; min-height: var(--size-control-sm); padding: 0 var(--space-2); font-size: var(--text-xs); }
.menu__sub { padding: var(--space-3) var(--space-2) var(--space-1); font-size: var(--text-xs); color: var(--color-text-muted); }
.menu__item {
  display: flex; align-items: center; justify-content: space-between; gap: var(--space-2);
  min-height: 2.25rem; padding: 0 var(--space-2); border-radius: var(--radius-sm);
  font-size: var(--text-sm); text-decoration: none;
}
.menu__item:hover { background: var(--color-surface-2); }
.menu__item[aria-current="page"] { background: var(--color-accent-soft); color: var(--color-accent-strong); font-weight: var(--weight-bold); box-shadow: inset var(--space-1) 0 0 var(--band); }
.menu__item--later { color: var(--color-text-muted); }
.menu__later { font-size: var(--text-2xs); }
.menu__badge { min-width: 1.5rem; padding: 0 var(--space-1); border-radius: var(--radius-full); background: var(--color-action); color: var(--color-on-action); font-family: var(--font-num); font-size: var(--text-2xs); text-align: center; }
.menu__sheet-close { display: none; }

/* 본문 */
.desk {
  grid-row: 2; grid-column: 3;
  display: flex; flex-direction: column; gap: var(--space-4);
  min-width: 0; min-height: 0; overflow: auto;
  padding: var(--space-4) var(--space-5) var(--space-4);
}
.office[data-menu="closed"] .desk { grid-column: 2 / -1; }
.desk > :not(.board) { flex-shrink: 0; }

.desk__head { display: flex; align-items: center; flex-wrap: wrap; gap: var(--space-3) var(--space-6); }
.desk__title { display: grid; gap: 0; }
.desk__title h1 { font-size: var(--text-xl); font-weight: var(--weight-display); line-height: var(--leading-tight); }
.desk__summary { font-size: var(--text-sm); color: var(--color-text-muted); }
.desk__summary strong { color: var(--color-text); }

/* 선반에 올린 수치 */
.shelf-stats { display: flex; flex: 1; justify-content: flex-end; gap: 0; border-bottom: var(--size-plank) solid var(--color-line-strong); }
.shelf-stats > div { display: grid; padding: 0 var(--space-4) var(--space-1); border-left: var(--border-thin) solid var(--color-line); }
.shelf-stats > div:first-child { border-left: 0; }
.shelf-stats dt { order: 2; font-size: var(--text-xs); color: var(--color-text-muted); white-space: nowrap; }
.shelf-stats dd { order: 1; font-family: var(--font-num); font-size: var(--text-lg); font-weight: var(--weight-medium); line-height: var(--leading-tight); white-space: nowrap; }
.shelf-stats dd small { font-size: var(--text-xs); color: var(--color-text-muted); }
.shelf-stats .is-alert dd { color: var(--color-danger); }

.viewswitch { display: inline-flex; padding: 2px; border: var(--border-thin) solid var(--color-line); border-radius: var(--radius-md); background: var(--color-surface); }
.viewswitch button {
  min-height: var(--size-control-sm); padding: 0 var(--space-3); border: 0; border-radius: var(--radius-sm);
  background: transparent; color: var(--color-text-muted); font: inherit; font-size: var(--text-sm); font-weight: var(--weight-medium); cursor: pointer;
}
.viewswitch button[aria-pressed="true"] { background: var(--color-action); color: var(--color-on-action); }

/* 일정 띠 */
.timeline { padding: var(--space-2) var(--space-4) var(--space-2); border: var(--border-thin) solid var(--color-line); border-radius: var(--radius-md); background: var(--color-surface); }
.timeline__scroll { overflow: visible; }
.timeline__track { position: relative; height: 5.6rem; min-width: 40rem; }
.timeline__past { position: absolute; left: 0; top: 1.5rem; height: 1.5rem; width: calc(14.5 / 28 * 100%); background: var(--color-surface-2); border-radius: var(--radius-sm) 0 0 var(--radius-sm); }
.timeline__axis {
  position: absolute; left: 0; right: 0; top: 2.25rem; height: 0; border-top: var(--border-thin) solid var(--color-line-strong);
}
.timeline__ticks {
  position: absolute; left: 0; right: 0; top: 2rem; height: 0.5rem;
  background: repeating-linear-gradient(to right, var(--color-text-muted) 0 1px, transparent 1px calc(100% / 28));
  background-position: calc(100% / 56) 0;
  opacity: 0.5;
}
.tl {
  position: absolute; left: calc((var(--d) + 0.5) / 28 * 100%); transform: translateX(-50%);
  font-size: var(--text-xs); line-height: 1.2; white-space: nowrap; color: var(--color-text);
}
.tl--up { top: 0; }
.tl--down { top: 3.25rem; }
.tl b { font-family: var(--font-num); font-weight: var(--weight-medium); margin-right: var(--space-1); }
.tl::after { content: ""; position: absolute; left: 50%; width: 0.5rem; height: 0.5rem; margin-left: -0.25rem; border-radius: var(--radius-full); background: var(--color-text); }
.tl--up::after { top: calc(2.25rem - 0.25rem); }
.tl--down::after { top: calc(-1rem - 0.25rem); }
.tl--down2 { top: 4.4rem; }
.tl--down2::after { top: calc(-2.15rem - 0.25rem); }
.tl--late { color: var(--color-danger); }
.tl--late::after { background: var(--color-danger); }
.tl--range { transform: none; left: auto; right: calc(1 / 28 * 100%); }
.tl--range::after { display: none; }
.tl-bar { position: absolute; left: calc(25 / 28 * 100%); width: calc(2 / 28 * 100%); top: 2rem; height: 0.5rem; border-radius: var(--radius-sm); background: var(--color-module-conference); }
.tl--range { color: var(--color-module-conference); font-weight: var(--weight-bold); }
.tl--edge { transform: none; color: var(--color-text-muted); font-family: var(--font-num); font-size: var(--text-2xs); top: 3.4rem; }
.tl--edge::after { display: none; }
.tl--start { left: 0; }
.tl--end { left: auto; right: 0; }
.today {
  position: absolute; left: calc(14.5 / 28 * 100%); top: 1.25rem; bottom: 0; transform: translateX(-50%);
  display: flex; flex-direction: column; align-items: center;
}
.today::before { content: ""; width: var(--border-thick); height: 1.75rem; background: var(--color-action); }
.today span {
  padding: 1px var(--space-2); border-radius: var(--radius-sm); background: var(--color-action); color: var(--color-on-action);
  font-size: var(--text-xs); font-weight: var(--weight-bold); white-space: nowrap;
}

/* 판: 열은 모듈, 일은 카드 */
.coltabs { display: none; }
.board {
  flex: 1; min-height: 18rem;
  display: grid; grid-template-columns: repeat(3, minmax(15rem, 1fr)) minmax(9rem, 0.72fr); gap: var(--space-4);
  overflow-x: auto; /* 폭이 모자라면 열을 줄이지 않고 판을 가로로 넘긴다. */
}
.board[data-view="deadline"] { grid-template-columns: repeat(3, minmax(15rem, 1fr)); }
.col { display: flex; flex-direction: column; min-height: 0; min-width: 0; }
.col__head {
  display: flex; align-items: center; gap: var(--space-2);
  padding: var(--space-2) var(--space-1) var(--space-2);
  border-top: var(--space-1) solid var(--band);
  color: var(--band);
}
.col__head > * { white-space: nowrap; }
.col__name { font-weight: var(--weight-bold); color: var(--color-text); }
.col__count { font-size: var(--text-xs); color: var(--color-text-muted); }
.col__count b { font-family: var(--font-num); color: var(--color-text); font-weight: var(--weight-medium); }
.col__on { margin-left: auto; display: inline-flex; align-items: center; gap: var(--space-1); padding: 0 var(--space-2); border-radius: var(--radius-full); background: var(--color-ok-soft); color: var(--color-ok); font-size: var(--text-2xs); font-weight: var(--weight-bold); }
.col__on::before { content: ""; width: 0.375rem; height: 0.375rem; border-radius: var(--radius-full); background: currentColor; }
.col__on--off { background: var(--color-surface-2); color: var(--color-text-muted); }
.col__list { display: flex; flex-direction: column; gap: var(--space-2); min-height: 0; overflow-y: auto; padding: var(--space-1); margin: calc(-1 * var(--space-1)) 0; }
.col--empty .col__list { flex: 1; justify-content: center; align-items: center; margin-top: var(--space-1); border: var(--border-mid) dashed var(--color-line); border-radius: var(--radius-md); padding: var(--space-4); color: var(--color-text-muted); font-size: var(--text-sm); text-align: center; }
.col__empty-note { font-size: var(--text-sm); color: var(--color-text-muted); padding: var(--space-3) var(--space-2); }

.card {
  position: relative; display: grid; gap: var(--space-1);
  padding: var(--space-3);
  border: var(--border-thin) solid var(--color-line);
  border-radius: var(--radius-md);
  background: var(--color-surface); cursor: pointer;
  transition: border-color var(--duration-fast), background-color var(--duration-fast);
}
.card:hover { border-color: var(--color-text-muted); }
.card.is-open { border-color: var(--color-action); background: var(--color-accent-soft); }
.card__top { display: flex; align-items: baseline; justify-content: space-between; gap: var(--space-2); font-size: var(--text-xs); }
.card__type { display: inline-flex; align-items: center; gap: var(--space-2); color: var(--band); font-weight: var(--weight-bold); }
.card__type::before { content: ""; flex: none; width: 0.625rem; height: 0.875rem; border-radius: 1px; background: var(--band); }
.card__no { font-family: var(--font-num); color: var(--color-text-muted); font-size: var(--text-2xs); }
.card__title {
  padding: 0; border: 0; background: none; color: var(--color-text); text-align: left;
  font: inherit; font-size: var(--text-sm); font-weight: var(--weight-bold); line-height: var(--leading-snug); cursor: pointer;
}
.card__title:hover { text-decoration: underline; text-underline-offset: 3px; }
.card__meta { font-size: var(--text-xs); color: var(--color-text-muted); }
.card__foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--space-2); margin-top: var(--space-1); }
.due { display: inline-block; font-size: var(--text-xs); line-height: var(--leading-snug); color: var(--color-text-muted); white-space: nowrap; }
.due--late { padding: var(--space-1) var(--space-2); border-radius: var(--radius-sm); background: var(--color-danger-soft); color: var(--color-danger); font-weight: var(--weight-bold); }
.due .num { font-size: var(--text-2xs); }
.card__act { flex: none; }
.card__done { display: inline-flex; align-items: center; gap: var(--space-1); font-size: var(--text-xs); color: var(--color-ok); font-weight: var(--weight-bold); }
.card[data-state="done"] { background: var(--color-surface-2); border-color: var(--color-surface-2); }
.card[data-state="done"] .card__type::before { background: var(--color-line); }
.card[data-state="done"] .card__title { color: var(--color-text-muted); font-weight: var(--weight-medium); }
.card[data-state="done"] .card__type { color: var(--color-text-muted); }
.card[data-state="done"] .card__meta { display: none; }
.card.is-just-done { animation: settle 360ms ease-out; }
@keyframes settle { from { transform: translateY(calc(-1 * var(--space-6))); opacity: 0.4; } to { transform: none; opacity: 1; } }

/* 1280px 언저리: 수치를 머리 아래로 내린다. */
@media (max-width: 1360px) {
  .shelf-stats { order: 3; flex-basis: 100%; justify-content: flex-start; border-bottom: 0; }
  .shelf-stats > div { padding: 0 var(--space-4); }
  .shelf-stats > div:first-child { padding-left: 0; }
  .shelf-stats dd { font-size: var(--text-md); }
  .desk__head .viewswitch { margin-left: auto; }
  .desk { gap: var(--space-3); }
}

/* 중간 폭: 메뉴 열은 접힌 채 시작하고(app.js), 판의 여백을 조금 줄여 네 열이 넘치지 않게 한다. */
@media (min-width: 721px) and (max-width: 1279px) {
  .desk { padding-inline: var(--space-4); }
  .board { gap: var(--space-3); }
  /* 메뉴 열을 펼쳐 띠가 좁아지면 표시 글자를 겹치지 않고 띠 안에서 넘긴다. */
  .timeline__scroll { overflow-x: auto; }
  .timeline__track { min-width: 52rem; }
}

/* ======================================================
   포털: 서가로 놓인 학회 목록
   ====================================================== */

.portal { min-height: calc(100vh - 36px); }
.wrap { width: min(100% - 2 * var(--space-gutter), var(--size-content)); margin-inline: auto; }
.pheader { border-bottom: var(--border-thin) solid var(--color-line); background: var(--color-surface); }
.pheader__in { display: flex; align-items: center; gap: var(--space-6); min-height: 4rem; }
.logo { display: flex; align-items: baseline; gap: var(--space-2); text-decoration: none; white-space: nowrap; }
.logo__name { font-family: var(--font-num); font-size: var(--text-lg); font-weight: var(--weight-medium); color: var(--color-accent-strong); }
.logo__desc { font-size: var(--text-xs); color: var(--color-text-muted); }
.pnav { display: flex; gap: var(--space-1); }
.pnav a { display: inline-flex; align-items: center; min-height: var(--size-control-sm); padding: 0 var(--space-3); border-radius: var(--radius-sm); font-size: var(--text-sm); text-decoration: none; white-space: nowrap; }
.pnav a:hover { background: var(--color-surface-2); }
.pnav a[aria-current="true"] { color: var(--color-accent-strong); font-weight: var(--weight-bold); box-shadow: inset 0 calc(-1 * var(--border-thick)) 0 var(--color-accent); border-radius: 0; }
.pheader .btn { margin-left: auto; }

.valueband { padding: var(--space-3) var(--space-gutter); border-bottom: var(--border-thin) solid var(--color-line); background: var(--color-surface-2); }
.valueband .wrap { width: min(100%, var(--size-content)); }
.valueband__in .btn { margin-left: auto; }
.valueband__in { display: flex; align-items: center; gap: var(--space-5); }
.valueband__lead { font-size: var(--text-lg); font-weight: var(--weight-bold); line-height: var(--leading-tight); white-space: nowrap; }
.valueband__desc { flex: 1; font-size: var(--text-sm); color: var(--color-text-muted); max-width: 46em; line-height: var(--leading-snug); text-wrap: balance; }

.library { display: grid; grid-template-columns: minmax(0, 1fr) 14.5rem; gap: var(--space-6); padding-block: var(--space-5) var(--space-7); }
.finder { display: grid; gap: var(--space-3); margin-bottom: var(--space-4); }
.finder__row { display: flex; align-items: center; gap: var(--space-3); min-width: 0; }
.finder__title { font-size: var(--text-2xl); font-weight: var(--weight-display); line-height: var(--leading-tight); letter-spacing: var(--tracking-tight); white-space: nowrap; }
.finder__search { position: relative; flex: 0 1 22rem; }
.finder__search .field { width: 100%; padding-left: 2.25rem; }
.finder__search .icon { position: absolute; left: var(--space-3); top: 50%; transform: translateY(-50%); color: var(--color-text-muted); pointer-events: none; }
.finder__count { margin-left: auto; font-size: var(--text-sm); color: var(--color-text-muted); white-space: nowrap; }
.finder__count b { font-family: var(--font-num); font-size: var(--text-lg); font-weight: var(--weight-medium); color: var(--color-text); }
.chips { display: flex; align-items: center; gap: var(--space-2); min-width: 0; }
.chips__label { flex: none; width: 2.5rem; font-size: var(--text-xs); color: var(--color-text-muted); font-weight: var(--weight-bold); }
.chips__list { display: flex; flex-wrap: wrap; gap: var(--space-2); min-width: 0; }
.chip {
  display: inline-flex; align-items: center; gap: var(--space-2); min-height: var(--size-control-sm); padding: 0 var(--space-3);
  border: var(--border-thin) solid var(--color-line); border-radius: var(--radius-full); background: var(--color-surface);
  color: var(--color-text); font: inherit; font-size: var(--text-sm); white-space: nowrap; cursor: pointer;
}
.chip:hover { border-color: var(--color-accent); }
.chip[aria-pressed="true"] { border-color: var(--color-action); background: var(--color-action); color: var(--color-on-action); }
.chip__swatch { width: 0.625rem; height: 0.875rem; border-radius: 1px; background: var(--band); }
.chip__swatch--jams { background: repeating-linear-gradient(45deg, var(--color-module-journal) 0 2px, var(--color-surface) 2px 4px); outline: var(--border-thin) solid var(--color-module-journal); }
.chip[aria-pressed="true"] .chip__swatch { outline: var(--border-thin) solid var(--color-on-action); }

/* 서가: 줄마다 선반 판이 깔린다. */
.shelf {
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); grid-auto-rows: var(--size-book); gap: calc(var(--space-5) + var(--size-plank)) var(--space-3);
}
.book {
  display: grid; grid-template-columns: 1.25rem minmax(0, 1fr); min-width: 0;
  border: var(--border-thin) solid var(--color-line); border-bottom: var(--size-plank) solid var(--color-line-strong); border-radius: var(--radius-sm) var(--radius-sm) 0 0;
  background: var(--color-surface); text-decoration: none; overflow: hidden;
  transition: transform var(--duration-fast), box-shadow var(--duration-fast);
}
.book:hover { transform: translateY(calc(-1 * var(--space-1))); box-shadow: var(--shadow-md); }
.book[hidden] { display: none; }
.book__spine { display: grid; grid-template-rows: repeat(3, 1fr); border-right: var(--border-thin) solid var(--color-line); }
.book__spine i { display: block; }
.book__spine .s-admin { background: var(--color-module-admin); }
.book__spine .s-journal { background: var(--color-module-journal); }
.book__spine .s-jams { background: repeating-linear-gradient(45deg, var(--color-module-journal) 0 2px, var(--color-surface) 2px 4px); }
.book__spine .s-conf { background: var(--color-module-conference); }
.book__spine .s-none { background: var(--color-surface-2); }
.book__body { display: flex; flex-direction: column; gap: var(--space-1); padding: var(--space-3) var(--space-3) var(--space-2); min-width: 0; }
.book__name { font-size: var(--text-base); font-weight: var(--weight-bold); line-height: var(--leading-snug); }
.book__where { font-size: var(--text-xs); color: var(--color-text-muted); }
.book__foot { margin-top: auto; display: flex; align-items: baseline; justify-content: space-between; gap: var(--space-2); }
.book__members { font-family: var(--font-num); font-size: var(--text-sm); }
.book__members small { font-family: var(--font-body); font-size: var(--text-2xs); color: var(--color-text-muted); }
.book__mods { display: flex; gap: var(--space-1); font-size: var(--text-2xs); color: var(--color-text-muted); white-space: nowrap; }
.book--home { border-color: var(--color-action); border-bottom-color: var(--color-line-strong); }
.book--home .book__name { color: var(--color-accent-strong); }
.book__tag { align-self: flex-start; padding: 0 var(--space-2); border-radius: var(--radius-sm); background: var(--color-mark); color: var(--color-warn); font-size: var(--text-2xs); font-weight: var(--weight-bold); }

.shelf-empty { display: grid; justify-items: start; gap: var(--space-3); padding: var(--space-6); border: var(--border-mid) dashed var(--color-line); border-radius: var(--radius-md); }
.shelf-empty[hidden] { display: none; }

/* 옆 단의 수치: 서가 끝의 색인 카드 */
.ledger { align-self: start; position: sticky; top: var(--space-4); border-top: var(--size-plank) solid var(--color-line-strong); }
.ledger__title { padding: var(--space-3) 0 var(--space-2); font-size: var(--text-sm); font-weight: var(--weight-bold); color: var(--color-text-muted); }
.ledger dl > div { display: flex; align-items: baseline; justify-content: space-between; gap: var(--space-3); padding: var(--space-3) 0; border-bottom: var(--border-thin) solid var(--color-line); }
.ledger dt { font-size: var(--text-sm); }
.ledger dd { font-family: var(--font-num); font-size: var(--text-xl); font-weight: var(--weight-medium); line-height: 1; }
.ledger dd small { font-family: var(--font-body); font-size: var(--text-xs); color: var(--color-text-muted); margin-left: 2px; }
.ledger__mod { display: inline-flex; align-items: center; gap: var(--space-2); }
.ledger__legend { padding-top: var(--space-3); font-size: var(--text-xs); color: var(--color-text-muted); line-height: var(--leading-snug); }

/* 아래쪽: 모듈 비교표, 행사, 공지 */
.lower { display: grid; grid-template-columns: minmax(0, 1.7fr) minmax(0, 1fr); gap: var(--space-6); padding-block: var(--space-6) var(--space-8); border-top: var(--border-thin) solid var(--color-line); }
.sec-title { font-size: var(--text-xl); font-weight: var(--weight-display); line-height: var(--leading-tight); }
.sec-sub { font-size: var(--text-sm); color: var(--color-text-muted); margin: var(--space-1) 0 var(--space-4); }
.compare-wrap { overflow-x: auto; }
.compare { width: 100%; min-width: 34rem; border-collapse: collapse; font-size: var(--text-sm); background: var(--color-surface); }
.compare th, .compare td { padding: var(--space-2) var(--space-3); border-bottom: var(--border-thin) solid var(--color-line); text-align: left; vertical-align: top; }
.compare thead th { border-top: var(--space-1) solid var(--band); font-weight: var(--weight-bold); }
.compare thead th:first-child { border-top-color: var(--color-line-strong); }
.compare thead small { display: block; font-size: var(--text-2xs); color: var(--color-text-muted); font-weight: var(--weight-regular); }
.compare tbody th { font-weight: var(--weight-medium); white-space: nowrap; }
.compare .desc td { font-size: var(--text-xs); color: var(--color-text-muted); line-height: var(--leading-snug); }
.compare .mark { display: inline-flex; align-items: center; gap: var(--space-1); color: var(--band); font-weight: var(--weight-bold); font-size: var(--text-xs); }
.side-list { display: grid; gap: var(--space-6); }
.items li { display: grid; grid-template-columns: 3.5rem 1fr; gap: var(--space-3); padding: var(--space-3) 0; border-bottom: var(--border-thin) solid var(--color-line); font-size: var(--text-sm); }
.items time { font-family: var(--font-num); color: var(--color-accent-strong); }
.items a { text-decoration: underline; text-decoration-color: var(--color-line); text-underline-offset: 3px; }
.items small { display: block; color: var(--color-text-muted); font-size: var(--text-xs); }

/* 학회 개설 서랍 */
.form-sec { display: grid; gap: var(--space-3); }
.form-sec label, .form-sec legend { font-size: var(--text-sm); }
.form-sec .field { width: 100%; }
.form-sec fieldset { margin: 0; padding: 0; border: 0; display: grid; gap: var(--space-2); }
.mod-row { display: grid; grid-template-columns: var(--space-1) 1fr; gap: var(--space-3); padding: var(--space-3); border: var(--border-thin) solid var(--color-line); border-radius: var(--radius-md); }
.mod-row::before { content: ""; background: var(--band); border-radius: var(--radius-sm); }
.mod-row__name { font-weight: var(--weight-bold); display: flex; justify-content: space-between; gap: var(--space-2); }
.mod-row__name small { font-weight: var(--weight-regular); color: var(--color-text-muted); }
.opts { display: flex; flex-wrap: wrap; gap: var(--space-2) var(--space-4); font-size: var(--text-sm); margin-top: var(--space-2); }
.opts label { display: inline-flex; align-items: center; gap: var(--space-1); min-height: var(--size-control-sm); }
.opts input { accent-color: var(--color-action); width: 1.125rem; height: 1.125rem; }

/* ---------- 모바일 ---------- */
@media (max-width: 720px) {
  .btn, .btn--small { min-height: 2.75rem; }

  /* 사무국: 레일은 아래쪽 탭 줄, 열은 모듈 탭 */
  .office, .office[data-menu="closed"] {
    grid-template-columns: minmax(0, 1fr);
    grid-template-rows: auto minmax(0, 1fr) var(--size-tab);
  }
  .rail { grid-row: 3; grid-column: 1; flex-direction: row; padding: 0; gap: 0; }
  .rail__mark { display: none; }
  .spines { flex-direction: row; gap: 2px; height: 100%; padding: var(--space-1) var(--space-1) 0; }
  .spine, .spine:nth-child(2), .spine:nth-child(4) { flex: 1; width: auto; min-height: 0; height: 100%; flex-direction: row; justify-content: center; padding: 0 2px; font-size: var(--text-xs); letter-spacing: 0; }
  .spine__label { writing-mode: horizontal-tb; }
  .spine__count, .spine::after { display: none; }
  .spine:hover, .spine[aria-expanded="true"] { transform: none; }
  .spine[aria-expanded="true"]::before { left: 0; right: 0; top: auto; bottom: 0; width: auto; height: var(--space-1); }
  .topbar { grid-column: 1; flex-wrap: wrap; gap: var(--space-2); padding: var(--space-2) var(--space-4); }
  .topbar__brand { flex-basis: 100%; }
  .topbar__product { display: none; }
  .topbar__search { display: none; }
  .topbar__role .field, .topbar__links a { min-height: 2.75rem; }
  .topbar__links { margin-left: auto; }
  .menu { display: none; }
  .office.is-js[data-menu="open"] .menu {
    display: block; visibility: visible; position: fixed; z-index: 15; left: 0; right: 0; bottom: var(--size-tab); max-height: 70vh;
    border-top: var(--border-thin) solid var(--color-line-strong); box-shadow: var(--shadow-lg);
  }
  .menu__item { min-height: 2.75rem; }
  .menu__fold { min-height: 2.75rem; }
  .desk, .office[data-menu="closed"] .desk { grid-column: 1; grid-row: 2; padding: var(--space-4); }
  .shelf-stats { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-2); }
  .shelf-stats > div, .shelf-stats > div:first-child { padding: var(--space-2) var(--space-3); border: var(--border-thin) solid var(--color-line); border-radius: var(--radius-sm); background: var(--color-surface); }
  .viewswitch { width: 100%; }
  .viewswitch button { flex: 1; min-height: 2.75rem; }
  .desk__head .viewswitch { margin-left: 0; }
  .timeline__scroll { overflow-x: auto; }
  .timeline__track { min-width: 56rem; } /* 좁은 폭에서 하루 칸을 넓혀 표시 글자가 겹치지 않게 한다. */
  .coltabs { display: flex; gap: var(--space-1); overflow-x: auto; margin-bottom: calc(-1 * var(--space-2)); }
  .coltabs button {
    flex: none; display: inline-flex; align-items: center; gap: var(--space-1); min-height: 2.75rem; padding: 0 var(--space-3);
    border: var(--border-thin) solid var(--color-line); border-bottom: var(--space-1) solid var(--band); border-radius: var(--radius-sm) var(--radius-sm) 0 0;
    background: var(--color-surface); color: var(--color-text); font: inherit; font-size: var(--text-sm); cursor: pointer;
  }
  .coltabs button[aria-pressed="true"] { background: var(--band); color: var(--color-on-module); font-weight: var(--weight-bold); }
  .board, .board[data-view="deadline"] { display: block; flex: none; min-height: 0; }
  .office.is-js .col:not(.is-active) { display: none; }
  .office.is-js .col__head { display: none; }
  .col + .col { margin-top: var(--space-5); }
  .office.is-js .col + .col { margin-top: 0; }
  .col__list { overflow: visible; }
  .card__act { min-height: 2.75rem; }
  .card__title { min-height: 2.75rem; }
  .office.is-js .board { flex-shrink: 0; }
  .drawer { top: auto; left: 0; right: 0; width: 100%; max-height: 80vh; border-left: 0; border-top: var(--border-thin) solid var(--color-line-strong); border-radius: var(--radius-lg) var(--radius-lg) 0 0; }
  .drawer__close { min-height: 2.75rem; }

  /* 포털: 칩은 가로로 넘기고 서가는 한 단 */
  .pheader__in { flex-wrap: wrap; gap: var(--space-2) var(--space-3); padding-block: var(--space-2); }
  .logo__desc { display: none; }
  .logo { min-height: 2.75rem; align-items: center; }
  .pnav { order: 3; flex-basis: 100%; overflow-x: auto; margin-inline: calc(-1 * var(--space-gutter)); padding-inline: var(--space-gutter); }
  .pnav a { min-height: 2.75rem; }
  .valueband { padding-block: var(--space-4); }
  .valueband__in { flex-wrap: wrap; gap: var(--space-2); }
  .valueband__lead { white-space: normal; flex-basis: 100%; }
  .library { grid-template-columns: minmax(0, 1fr); gap: var(--space-5); }
  .finder__row { flex-wrap: wrap; }
  .finder__search { flex-basis: 100%; }
  .finder__search .field { min-height: 2.75rem; }
  .finder__count { margin-left: 0; }
  .chips { align-items: flex-start; flex-direction: column; gap: var(--space-1); }
  .chips__list { flex-wrap: nowrap; overflow-x: auto; max-width: 100%; padding-bottom: var(--space-1); }
  .chip { min-height: 2.75rem; }
  .shelf { grid-template-columns: minmax(0, 1fr); --size-book: 7rem; }
  .ledger { position: static; }
  .ledger dl { display: grid; grid-template-columns: 1fr 1fr; column-gap: var(--space-4); }
  .lower { grid-template-columns: minmax(0, 1fr); }
  .items a { display: inline-block; min-height: 2.75rem; }
}

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