/* 공고모아 디자인 시스템
   모바일 우선. 한 손으로 쓰는 앱을 기준으로 잡고 데스크톱에서 넓어진다.
   색은 토큰으로만 쓰고, 다크 모드는 토큰 재정의로 처리한다. */

:root {
  /* 뉴트럴 */
  --bg: #f6f7f9;
  --surface: #ffffff;
  --surface-2: #f2f4f7;
  --surface-3: #e8ebf0;
  --border: #e3e7ed;
  --border-strong: #cfd6e0;

  /* 텍스트 */
  --text: #16191f;
  --text-2: #5b6473;
  --text-3: #8b95a5;
  --text-inverse: #ffffff;

  /* 브랜드 */
  --brand: #2f6fed;
  --brand-hover: #2559c7;
  --brand-soft: #e8f0fe;
  --brand-text: #1d4ed8;

  /* 상태 */
  --success: #0f9d58;
  --success-soft: #e6f5ec;
  --warning: #c2820b;
  --warning-soft: #fdf3e0;
  --danger: #d93b3b;
  --danger-soft: #fdeaea;
  --info-soft: #eaf1fd;

  /* 형태 */
  --radius-sm: 8px;
  --radius: 12px;
  --radius-lg: 18px;
  --radius-full: 999px;

  --shadow-sm: 0 1px 2px rgba(16, 24, 40, .06);
  --shadow: 0 4px 14px rgba(16, 24, 40, .08);
  --shadow-lg: 0 12px 32px rgba(16, 24, 40, .14);

  --header-h: 56px;
  --tabbar-h: 60px;
  --page-max: 720px;

  --font: -apple-system, BlinkMacSystemFont, "Apple SD Gothic Neo", "Pretendard",
          "Malgun Gothic", "맑은 고딕", "Noto Sans KR", system-ui, sans-serif;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0f1216;
    --surface: #171b21;
    --surface-2: #1e232b;
    --surface-3: #272d36;
    --border: #272d36;
    --border-strong: #3a424e;

    --text: #eef1f5;
    --text-2: #a8b2c1;
    --text-3: #77818f;

    --brand: #5b93ff;
    --brand-hover: #7aa8ff;
    --brand-soft: #1a2740;
    --brand-text: #9dbcff;

    --success: #3ec27f;
    --success-soft: #14291f;
    --warning: #e2a33c;
    --warning-soft: #2c2415;
    --danger: #f06a6a;
    --danger-soft: #2e1a1a;
    --info-soft: #18233a;

    --shadow-sm: 0 1px 2px rgba(0, 0, 0, .4);
    --shadow: 0 4px 14px rgba(0, 0, 0, .45);
    --shadow-lg: 0 12px 32px rgba(0, 0, 0, .55);
  }
}

:root[data-theme="dark"] {
  --bg: #0f1216;
  --surface: #171b21;
  --surface-2: #1e232b;
  --surface-3: #272d36;
  --border: #272d36;
  --border-strong: #3a424e;
  --text: #eef1f5;
  --text-2: #a8b2c1;
  --text-3: #77818f;
  --brand: #5b93ff;
  --brand-hover: #7aa8ff;
  --brand-soft: #1a2740;
  --brand-text: #9dbcff;
  --success: #3ec27f;
  --success-soft: #14291f;
  --warning: #e2a33c;
  --warning-soft: #2c2415;
  --danger: #f06a6a;
  --danger-soft: #2e1a1a;
  --info-soft: #18233a;
}

/* ---------------------------------------------------------------- 기본 */
* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 15px;
  line-height: 1.55;
  -webkit-text-size-adjust: 100%;
  -webkit-font-smoothing: antialiased;
  word-break: keep-all;
  overflow-wrap: anywhere;
}

body { padding-bottom: calc(var(--tabbar-h) + env(safe-area-inset-bottom)); }

a { color: var(--brand-text); text-decoration: none; }
button { font-family: inherit; font-size: inherit; cursor: pointer; }
input, select, textarea { font-family: inherit; font-size: inherit; }
h1, h2, h3, h4 { margin: 0; line-height: 1.35; letter-spacing: -.01em; }
p { margin: 0; }
ul { margin: 0; padding: 0; list-style: none; }

:focus-visible {
  outline: 2px solid var(--brand);
  outline-offset: 2px;
}

/* display 를 명시한 요소는 브라우저 기본 [hidden] 규칙을 이겨 버린다.
   hidden 속성을 붙였는데도 보이는 사고를 막는다. */
[hidden] { display: none !important; }

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

/* ---------------------------------------------------------------- 레이아웃 */
.app-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: color-mix(in srgb, var(--surface) 92%, transparent);
  backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--border);
  padding-top: env(safe-area-inset-top);
}

.app-header__inner {
  max-width: var(--page-max);
  margin: 0 auto;
  min-height: var(--header-h);
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 16px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 800;
  font-size: 17px;
  letter-spacing: -.03em;
  color: var(--text);
  flex-shrink: 0;
}
.brand__mark {
  width: 28px; height: 28px;
  border-radius: 9px;
  background: linear-gradient(135deg, var(--brand), #7c4dff);
  color: #fff;
  display: grid; place-items: center;
  font-size: 15px; font-weight: 900;
}

.header-actions { margin-left: auto; display: flex; align-items: center; gap: 4px; }

.icon-btn {
  width: 38px; height: 38px;
  display: grid; place-items: center;
  border: none; background: transparent;
  border-radius: var(--radius-sm);
  color: var(--text-2);
  position: relative;
  transition: background .15s;
}
.icon-btn:hover { background: var(--surface-2); color: var(--text); }
.icon-btn__badge {
  position: absolute; top: 4px; right: 4px;
  min-width: 17px; height: 17px; padding: 0 4px;
  border-radius: var(--radius-full);
  background: var(--danger); color: #fff;
  font-size: 10px; font-weight: 700; line-height: 17px; text-align: center;
  border: 2px solid var(--surface);
}

main { max-width: var(--page-max); margin: 0 auto; padding: 0 16px 32px; }

.page { animation: fade-up .22s ease both; }
@keyframes fade-up {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: none; }
}
@media (prefers-reduced-motion: reduce) {
  .page { animation: none; }
  * { transition-duration: .01ms !important; }
}

.page-title {
  font-size: 21px;
  font-weight: 800;
  letter-spacing: -.02em;
  margin: 20px 0 4px;
}
.page-subtitle { color: var(--text-2); font-size: 13.5px; margin-bottom: 16px; }

.section { margin-top: 24px; }
.section__head {
  display: flex; align-items: baseline; justify-content: space-between;
  gap: 8px; margin-bottom: 10px;
}
.section__title { font-size: 15px; font-weight: 700; }
.section__action { font-size: 13px; color: var(--brand-text); background: none; border: none; padding: 0; }

/* ---------------------------------------------------------------- 하단 탭 */
.tabbar {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  z-index: 50;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  background: color-mix(in srgb, var(--surface) 94%, transparent);
  backdrop-filter: saturate(180%) blur(12px);
  border-top: 1px solid var(--border);
  padding-bottom: env(safe-area-inset-bottom);
}
.tabbar__item {
  border: none; background: none;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 3px;
  height: var(--tabbar-h);
  color: var(--text-3);
  font-size: 11px; font-weight: 600;
  position: relative;
  transition: color .15s;
}
.tabbar__item[aria-current="page"] { color: var(--brand); }
.tabbar__item svg { width: 22px; height: 22px; }
.tabbar__badge {
  position: absolute; top: 6px; left: 50%; margin-left: 5px;
  min-width: 16px; height: 16px; padding: 0 4px;
  border-radius: var(--radius-full);
  background: var(--danger); color: #fff;
  font-size: 10px; font-weight: 700; line-height: 16px; text-align: center;
}

/* ---------------------------------------------------------------- 검색 */
.searchbar { position: relative; margin: 14px 0 10px; }
.searchbar__field {
  display: flex; align-items: center; gap: 8px;
  background: var(--surface);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-full);
  padding: 0 8px 0 14px;
  box-shadow: var(--shadow-sm);
  transition: border-color .15s, box-shadow .15s;
}
.searchbar__field:focus-within {
  border-color: var(--brand);
  box-shadow: 0 0 0 4px var(--brand-soft);
}
.searchbar__input {
  flex: 1; min-width: 0;
  border: none; background: none; color: var(--text);
  height: 46px; padding: 0;
  font-size: 15.5px;
}
.searchbar__input:focus { outline: none; }
.searchbar__input::placeholder { color: var(--text-3); }
.searchbar__clear, .searchbar__submit {
  border: none; border-radius: var(--radius-full);
  display: grid; place-items: center; flex-shrink: 0;
}
.searchbar__clear {
  width: 26px; height: 26px; background: var(--surface-3); color: var(--text-2); font-size: 13px;
}
.searchbar__submit {
  width: 36px; height: 36px; background: var(--brand); color: #fff;
}
.searchbar__submit:hover { background: var(--brand-hover); }

.suggestions {
  position: absolute; top: calc(100% + 6px); left: 0; right: 0;
  z-index: 30;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
  max-height: 60vh; overflow-y: auto;
}
.suggestion {
  display: flex; align-items: center; gap: 10px;
  width: 100%; border: none; background: none; text-align: left;
  padding: 11px 14px; color: var(--text); font-size: 14px;
}
.suggestion:hover, .suggestion.is-active { background: var(--surface-2); }
.suggestion__type {
  font-size: 11px; font-weight: 700; color: var(--text-3);
  background: var(--surface-2); border-radius: var(--radius-sm);
  padding: 2px 6px; flex-shrink: 0;
}
.suggestion.is-active .suggestion__type { background: var(--surface-3); }
.suggestion__count { margin-left: auto; font-size: 12px; color: var(--text-3); }

/* ---------------------------------------------------------------- 칩 */
.chips { display: flex; gap: 7px; flex-wrap: wrap; }
.chips--scroll {
  flex-wrap: nowrap; overflow-x: auto; padding-bottom: 4px;
  scrollbar-width: none; -ms-overflow-style: none;
}
.chips--scroll::-webkit-scrollbar { display: none; }

.chip {
  display: inline-flex; align-items: center; gap: 5px;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text-2);
  border-radius: var(--radius-full);
  padding: 7px 13px;
  font-size: 13px; font-weight: 600;
  white-space: nowrap; flex-shrink: 0;
  transition: all .14s;
}
.chip:hover { border-color: var(--border-strong); color: var(--text); }
.chip[aria-pressed="true"], .chip.is-on {
  background: var(--brand); border-color: var(--brand); color: #fff;
}
.chip__count {
  font-size: 11px; font-weight: 700; opacity: .75;
}
.chip--ghost { background: transparent; border-style: dashed; }

/* ---------------------------------------------------------------- 카드 */
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
}
.card--pad { padding: 16px; }

.job-list { display: flex; flex-direction: column; gap: 10px; margin-top: 14px; }

.job-card {
  display: block; width: 100%; text-align: left;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 14px 15px;
  box-shadow: var(--shadow-sm);
  color: inherit;
  transition: border-color .15s, transform .12s, box-shadow .15s;
}
.job-card:hover { border-color: var(--border-strong); box-shadow: var(--shadow); }
.job-card:active { transform: scale(.995); }
.job-card.is-new { border-color: var(--brand); box-shadow: 0 0 0 3px var(--brand-soft); }

.job-card__top { display: flex; align-items: center; gap: 8px; margin-bottom: 7px; }
.job-card__source {
  font-size: 11px; font-weight: 700; color: var(--text-3);
  background: var(--surface-2); border-radius: var(--radius-sm); padding: 2px 7px;
}
.job-card__new {
  font-size: 10px; font-weight: 800; color: #fff; background: var(--brand);
  border-radius: var(--radius-sm); padding: 2px 6px; letter-spacing: .02em;
}
.job-card__deadline { margin-left: auto; font-size: 12px; font-weight: 700; }
.job-card__deadline.is-urgent { color: var(--danger); }
.job-card__deadline.is-soon { color: var(--warning); }
.job-card__deadline.is-open { color: var(--text-3); font-weight: 600; }

.job-card__title {
  font-size: 15.5px; font-weight: 700; line-height: 1.4;
  letter-spacing: -.01em; margin-bottom: 5px;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.job-card__company { font-size: 13.5px; color: var(--text-2); font-weight: 600; }
.job-card__snippet {
  margin-top: 6px; font-size: 13px; color: var(--text-3);
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.job-card__meta {
  display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px;
}
.tag {
  font-size: 11.5px; font-weight: 600;
  background: var(--surface-2); color: var(--text-2);
  border-radius: var(--radius-sm); padding: 3px 8px;
}
.tag--brand { background: var(--brand-soft); color: var(--brand-text); }
.tag--success { background: var(--success-soft); color: var(--success); }
.tag--warning { background: var(--warning-soft); color: var(--warning); }
.tag--dup { background: var(--surface-3); color: var(--text-2); }

/* ---------------------------------------------------------------- 버튼 */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 7px;
  border: 1px solid transparent;
  border-radius: var(--radius);
  padding: 11px 16px;
  font-size: 14.5px; font-weight: 700;
  transition: all .15s;
  min-height: 44px;
}
.btn--primary { background: var(--brand); color: #fff; }
.btn--primary:hover { background: var(--brand-hover); }
.btn--secondary { background: var(--surface-2); color: var(--text); border-color: var(--border); }
.btn--secondary:hover { background: var(--surface-3); }
.btn--ghost { background: transparent; color: var(--text-2); }
.btn--ghost:hover { background: var(--surface-2); color: var(--text); }
.btn--danger { background: var(--danger-soft); color: var(--danger); }
.btn--block { width: 100%; }
.btn--sm { padding: 7px 12px; font-size: 13px; min-height: 36px; border-radius: var(--radius-sm); }
.btn:disabled { opacity: .5; cursor: not-allowed; }

.btn-row { display: flex; gap: 8px; }
.btn-row > * { flex: 1; }

/* ---------------------------------------------------------------- 폼 */
.field { margin-bottom: 16px; }
.field__label {
  display: block; font-size: 13px; font-weight: 700; margin-bottom: 6px; color: var(--text);
}
.field__hint { font-size: 12.5px; color: var(--text-3); margin-top: 6px; line-height: 1.5; }
.field__error { font-size: 12.5px; color: var(--danger); margin-top: 6px; }

.input, .select, .textarea {
  width: 100%;
  background: var(--surface);
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  padding: 11px 13px;
  color: var(--text);
  min-height: 44px;
  transition: border-color .15s, box-shadow .15s;
}
.input:focus, .select:focus, .textarea:focus {
  outline: none; border-color: var(--brand); box-shadow: 0 0 0 4px var(--brand-soft);
}
.textarea { min-height: 88px; resize: vertical; }
.select { appearance: none; background-image: none; }

.keyword-input {
  display: flex; flex-wrap: wrap; gap: 6px; align-items: center;
  background: var(--surface);
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  padding: 7px 9px;
  min-height: 44px;
}
.keyword-input:focus-within { border-color: var(--brand); box-shadow: 0 0 0 4px var(--brand-soft); }
.keyword-input input {
  flex: 1; min-width: 90px; border: none; background: none; color: var(--text);
  padding: 4px 2px;
}
.keyword-input input:focus { outline: none; }
.keyword-tag {
  display: inline-flex; align-items: center; gap: 5px;
  background: var(--brand-soft); color: var(--brand-text);
  border-radius: var(--radius-sm); padding: 4px 6px 4px 9px;
  font-size: 13px; font-weight: 600;
}
.keyword-tag--exclude { background: var(--danger-soft); color: var(--danger); }
.keyword-tag button {
  border: none; background: none; color: inherit; padding: 0 2px;
  font-size: 15px; line-height: 1; opacity: .7;
}
.keyword-tag button:hover { opacity: 1; }

.switch-row {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 13px 0;
  border-bottom: 1px solid var(--border);
}
.switch-row:last-child { border-bottom: none; }
.switch-row__text { min-width: 0; }
.switch-row__title { font-size: 14px; font-weight: 600; }
.switch-row__desc { font-size: 12.5px; color: var(--text-3); margin-top: 2px; }

.switch {
  position: relative; width: 46px; height: 27px; flex-shrink: 0;
  border: none; border-radius: var(--radius-full);
  background: var(--surface-3);
  transition: background .18s;
}
.switch[aria-checked="true"] { background: var(--brand); }
.switch::after {
  content: ""; position: absolute; top: 3px; left: 3px;
  width: 21px; height: 21px; border-radius: 50%;
  background: #fff; box-shadow: var(--shadow-sm);
  transition: transform .18s;
}
.switch[aria-checked="true"]::after { transform: translateX(19px); }

/* ---------------------------------------------------------------- 시트 / 모달 */
.sheet-backdrop {
  position: fixed; inset: 0; z-index: 90;
  background: rgba(10, 13, 18, .45);
  backdrop-filter: blur(2px);
  animation: fade-in .18s ease both;
}
@keyframes fade-in { from { opacity: 0 } to { opacity: 1 } }

.sheet {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 91;
  max-width: var(--page-max); margin: 0 auto;
  background: var(--surface);
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
  box-shadow: var(--shadow-lg);
  max-height: 92vh;
  display: flex; flex-direction: column;
  animation: slide-up .24s cubic-bezier(.32, .72, 0, 1) both;
  padding-bottom: env(safe-area-inset-bottom);
}
@keyframes slide-up { from { transform: translateY(100%) } to { transform: none } }

.sheet__handle {
  width: 38px; height: 4px; border-radius: 2px; background: var(--border-strong);
  margin: 10px auto 2px; flex-shrink: 0;
}
.sheet__head {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 18px 12px;
  border-bottom: 1px solid var(--border);
  flex-shrink: 0;
}
.sheet__title { font-size: 16.5px; font-weight: 800; }
.sheet__close { margin-left: auto; }
.sheet__body { overflow-y: auto; padding: 16px 18px; flex: 1; -webkit-overflow-scrolling: touch; }
.sheet__foot {
  padding: 12px 18px 16px; border-top: 1px solid var(--border);
  display: flex; gap: 8px; flex-shrink: 0;
}
.sheet__foot > * { flex: 1; }

/* ---------------------------------------------------------------- 리스트 아이템 */
.list { display: flex; flex-direction: column; gap: 10px; }

.list-item {
  display: flex; align-items: center; gap: 12px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 14px 15px;
  width: 100%; text-align: left; color: inherit;
}
.list-item__body { min-width: 0; flex: 1; }
.list-item__title { font-size: 14.5px; font-weight: 700; }
.list-item__desc { font-size: 12.5px; color: var(--text-2); margin-top: 3px; }
.list-item__right { margin-left: auto; flex-shrink: 0; display: flex; align-items: center; gap: 8px; }

.alert-item { position: relative; }
.alert-item.is-unread { border-color: var(--brand); background: color-mix(in srgb, var(--brand-soft) 45%, var(--surface)); }
.alert-item__dot {
  position: absolute; top: 15px; left: -5px;
  width: 8px; height: 8px; border-radius: 50%; background: var(--brand);
}

/* ---------------------------------------------------------------- 상태 표시 */
.empty {
  text-align: center; padding: 48px 20px; color: var(--text-3);
}
.empty__icon { font-size: 40px; margin-bottom: 12px; opacity: .8; }
.empty__title { font-size: 15.5px; font-weight: 700; color: var(--text-2); margin-bottom: 6px; }
.empty__desc { font-size: 13.5px; line-height: 1.6; }
.empty .btn { margin-top: 18px; }

.skeleton {
  background: linear-gradient(90deg, var(--surface-2) 25%, var(--surface-3) 50%, var(--surface-2) 75%);
  background-size: 200% 100%;
  animation: shimmer 1.3s infinite;
  border-radius: var(--radius-sm);
}
@keyframes shimmer { to { background-position: -200% 0 } }
.skeleton-card { height: 110px; border-radius: var(--radius); margin-bottom: 10px; }

.spinner {
  width: 18px; height: 18px;
  border: 2px solid var(--border-strong); border-top-color: var(--brand);
  border-radius: 50%;
  animation: spin .7s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg) } }

.toast-host {
  position: fixed; left: 0; right: 0;
  bottom: calc(var(--tabbar-h) + env(safe-area-inset-bottom) + 12px);
  z-index: 95;
  display: flex; flex-direction: column; align-items: center; gap: 8px;
  pointer-events: none; padding: 0 16px;
}
.toast {
  background: #1f242c; color: #fff;
  border-radius: var(--radius); padding: 11px 16px;
  font-size: 13.5px; font-weight: 600;
  box-shadow: var(--shadow-lg);
  animation: toast-in .22s ease both;
  max-width: 100%;
}
.toast--error { background: var(--danger); }
.toast--success { background: var(--success); }
@keyframes toast-in { from { opacity: 0; transform: translateY(10px) } to { opacity: 1; transform: none } }

.live-banner {
  position: sticky; top: calc(var(--header-h) + env(safe-area-inset-top) + 6px);
  z-index: 35;
  display: flex; align-items: center; justify-content: center; gap: 8px;
  margin: 10px 0 0;
  background: var(--brand); color: #fff;
  border-radius: var(--radius-full);
  padding: 9px 16px;
  font-size: 13.5px; font-weight: 700;
  border: none; width: 100%;
  box-shadow: var(--shadow);
  animation: fade-up .2s ease both;
}
.live-dot {
  width: 7px; height: 7px; border-radius: 50%; background: #fff;
  animation: pulse 1.6s ease-in-out infinite;
}
@keyframes pulse { 0%, 100% { opacity: 1 } 50% { opacity: .35 } }

.stat-row { display: flex; gap: 8px; margin-top: 12px; }
.stat {
  flex: 1; background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 11px 12px; text-align: center;
}
.stat__value { font-size: 17px; font-weight: 800; letter-spacing: -.02em; }
.stat__label { font-size: 11.5px; color: var(--text-3); margin-top: 2px; font-weight: 600; }

.notice {
  display: flex; gap: 10px; align-items: flex-start;
  background: var(--info-soft); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 13px 14px;
  font-size: 13px; color: var(--text-2); line-height: 1.6;
}
.notice--warning { background: var(--warning-soft); }
.notice--danger { background: var(--danger-soft); }
.notice__icon { flex-shrink: 0; font-size: 15px; }

.kv { display: flex; gap: 10px; padding: 9px 0; border-bottom: 1px solid var(--border); font-size: 13.5px; }
.kv:last-child { border-bottom: none; }
.kv__key { color: var(--text-3); width: 88px; flex-shrink: 0; font-weight: 600; }
.kv__value { color: var(--text); min-width: 0; flex: 1; }

.desc-body {
  font-size: 14px; line-height: 1.75; color: var(--text);
  white-space: pre-wrap;
}

.segmented {
  display: flex; background: var(--surface-2); border-radius: var(--radius);
  padding: 3px; gap: 3px;
}
.segmented__item {
  flex: 1; border: none; background: none; color: var(--text-2);
  border-radius: var(--radius-sm); padding: 8px 6px;
  font-size: 13px; font-weight: 700;
  transition: all .14s;
}
.segmented__item[aria-pressed="true"] {
  background: var(--surface); color: var(--text); box-shadow: var(--shadow-sm);
}

.divider { height: 1px; background: var(--border); margin: 18px 0; border: none; }

.sticky-cta {
  position: fixed; left: 0; right: 0;
  bottom: calc(var(--tabbar-h) + env(safe-area-inset-bottom));
  z-index: 45;
  max-width: var(--page-max); margin: 0 auto;
  padding: 10px 16px 12px;
  background: color-mix(in srgb, var(--surface) 94%, transparent);
  backdrop-filter: blur(10px);
  border-top: 1px solid var(--border);
}

/* ---------------------------------------------------------------- 데스크톱 */
@media (min-width: 860px) {
  body { padding-bottom: 32px; }
  .tabbar {
    position: sticky; top: calc(var(--header-h) + 1px); bottom: auto;
    max-width: var(--page-max); margin: 0 auto;
    grid-template-columns: repeat(5, auto);
    justify-content: start;
    gap: 4px;
    background: transparent; backdrop-filter: none;
    border-top: none; border-bottom: 1px solid var(--border);
    padding: 0;
  }
  .tabbar__item {
    flex-direction: row; gap: 7px; height: 46px; padding: 0 14px; font-size: 13.5px;
  }
  .tabbar__item[aria-current="page"] { box-shadow: inset 0 -2px 0 var(--brand); }
  .tabbar__badge { position: static; margin: 0; }
  .sticky-cta { bottom: 0; }
  .toast-host { bottom: 24px; }
  .sheet {
    top: 50%; bottom: auto; left: 50%; right: auto;
    transform: translate(-50%, -50%);
    width: min(560px, 92vw);
    border-radius: var(--radius-lg);
    animation: fade-in .18s ease both;
    max-height: 86vh;
  }
  .sheet__handle { display: none; }
}
