:root {
  --brand: #0f766e;
  --brand-dark: #0b5f59;
  --brand-soft: #ccfbf1;
  --accent: #0ea5a4;
  --bg: #eef3f1;
  --bg-glow: #d7ebe6;
  --surface: #ffffff;
  --text: #14201e;
  --muted: #667874;
  --border: #d5e2de;
  --ok: #159a6a;
  --warn: #c47a0a;
  --danger: #c0392b;
  --teal: #0d9488;
  --purple: #6d5bd0;
  --nav-h: 64px;
  --header-h: 56px;
  --radius: 14px;
  --radius-sm: 10px;
  --shadow: 0 1px 2px rgba(20, 32, 30, 0.04), 0 8px 24px rgba(20, 32, 30, 0.06);
  --shadow-soft: 0 10px 30px rgba(15, 118, 110, 0.12);
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  font-family: "Pretendard", "Noto Sans KR", "Apple SD Gothic Neo", sans-serif;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  background:
    radial-gradient(1200px 500px at 10% -10%, var(--bg-glow), transparent 55%),
    radial-gradient(900px 420px at 100% 0%, #dce8f2, transparent 50%),
    var(--bg);
  color: var(--text);
  font-size: 15px;
  line-height: 1.5;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  -webkit-tap-highlight-color: transparent;
}

a { color: var(--brand); text-decoration: none; }
button, input, select, textarea { font: inherit; }

.app-shell {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* ── Header ── */
.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(255, 255, 255, 0.86);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(213, 226, 222, 0.9);
}
.site-header-inner {
  max-width: 1120px;
  margin: 0 auto;
  min-height: var(--header-h);
  padding: 8px 14px;
  display: flex;
  align-items: center;
  gap: 12px;
}
.brand-link {
  display: flex;
  align-items: center;
  gap: 10px;
  color: inherit;
  min-width: 0;
  flex-shrink: 0;
}
.brand-mark {
  width: 34px;
  height: 34px;
  border-radius: 11px;
  background:
    linear-gradient(145deg, #14b8a6 0%, var(--brand) 55%, #0f4c4a 100%);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.35), 0 6px 14px rgba(15, 118, 110, 0.28);
  position: relative;
}
.brand-mark::after {
  content: "";
  position: absolute;
  inset: 9px 11px 9px 11px;
  border: 2px solid rgba(255,255,255,0.92);
  border-radius: 3px;
  border-top-width: 3px;
}
.brand-text {
  display: flex;
  flex-direction: column;
  min-width: 0;
  line-height: 1.15;
}
.brand-text strong {
  font-size: 0.95rem;
  letter-spacing: -0.02em;
}
.brand-page {
  font-size: 0.72rem;
  color: var(--muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 42vw;
}

.desktop-nav {
  display: none;
  align-items: center;
  gap: 4px;
  margin-left: 8px;
  flex: 1;
}
.dn-link,
.dn-toggle {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 8px 12px;
  border-radius: 999px;
  border: 0;
  background: transparent;
  color: var(--muted);
  font-weight: 600;
  font-size: 0.9rem;
  cursor: pointer;
  transition: background 0.2s var(--ease), color 0.2s var(--ease);
}
.dn-link:hover,
.dn-toggle:hover,
.dn-item.open > .dn-toggle,
.dn-link.active,
.dn-item.active > .dn-toggle {
  color: var(--brand-dark);
  background: var(--brand-soft);
}
.dn-item {
  position: relative;
}
.dn-caret {
  width: 0;
  height: 0;
  border-left: 4px solid transparent;
  border-right: 4px solid transparent;
  border-top: 5px solid currentColor;
  opacity: 0.7;
  margin-left: 2px;
}
.dn-dropdown {
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 168px;
  padding: 8px 0 0; /* 메인↔서브 사이 호버 브릿지 */
  background: transparent;
  border: 0;
  box-shadow: none;
  display: none;
  z-index: 50;
}
.dn-dropdown-inner {
  padding: 6px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  box-shadow: var(--shadow);
}
.dn-item.open > .dn-dropdown,
.dn-item:hover > .dn-dropdown {
  display: block;
  animation: dropdownIn 0.18s var(--ease);
}
.dn-dropdown a {
  display: block;
  padding: 10px 12px;
  border-radius: 8px;
  color: var(--text);
  font-weight: 600;
  font-size: 0.88rem;
}
.dn-dropdown a:hover {
  background: #f2f8f6;
  color: var(--brand-dark);
}

.header-user {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}
.balance-pill {
  display: inline-flex;
  align-items: baseline;
  gap: 4px;
  padding: 7px 11px;
  border-radius: 999px;
  background: linear-gradient(135deg, #0f766e, #14b8a6);
  color: #fff;
  box-shadow: 0 6px 16px rgba(15, 118, 110, 0.28);
  white-space: nowrap;
  transition: transform 0.2s var(--ease), box-shadow 0.2s var(--ease);
}
.balance-pill:hover {
  transform: translateY(-1px);
  box-shadow: 0 10px 20px rgba(15, 118, 110, 0.32);
}
.balance-label {
  font-size: 0.7rem;
  opacity: 0.85;
  font-weight: 600;
}
.balance-pill strong {
  font-size: 0.95rem;
  letter-spacing: -0.02em;
}
.balance-unit {
  font-size: 0.72rem;
  font-weight: 700;
  opacity: 0.9;
}
.user-meta {
  display: none;
  flex-direction: column;
  align-items: flex-end;
  line-height: 1.2;
  min-width: 0;
}
.user-name {
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--text);
}
.logout-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 8px;
  color: var(--muted);
  flex-shrink: 0;
  transition: color 0.15s ease, background 0.15s ease;
}
.logout-btn:hover {
  color: var(--danger);
  background: #fde8e8;
}
.mypage-link {
  font-size: 0.72rem;
  color: var(--brand);
  font-weight: 700;
}
.mypage-link.active,
.mypage-link:hover {
  text-decoration: underline;
  text-underline-offset: 2px;
}

.page {
  width: 100%;
  max-width: 560px;
  margin: 0 auto;
  padding: 14px 14px calc(var(--nav-h) + 22px);
  flex: 1;
}

.bottom-nav {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  z-index: 50;
  height: calc(var(--nav-h) + env(safe-area-inset-bottom));
  display: flex;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-top: 1px solid var(--border);
  padding-bottom: env(safe-area-inset-bottom);
  box-shadow: 0 -8px 24px rgba(20, 32, 30, 0.05);
}
.bn-item {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  color: var(--muted);
  font-size: 0.7rem;
  font-weight: 600;
  transition: color 0.15s ease;
}
.bn-item.active { color: var(--brand); }
.bn-icon {
  display: inline-flex;
  line-height: 1;
}
.bn-item.active .bn-icon svg {
  stroke-width: 2.1;
}

/* Auth */
.auth-body {
  min-height: 100vh;
  background:
    radial-gradient(ellipse at 20% 0%, #2dd4bf 0%, transparent 45%),
    linear-gradient(165deg, #0f766e 0%, #115e59 38%, var(--bg) 38.2%);
}
.auth-wrap {
  max-width: 400px;
  margin: 0 auto;
  padding: 48px 16px 32px;
}
.auth-card {
  background: var(--surface);
  border-radius: 18px;
  padding: 24px 20px;
  box-shadow: var(--shadow-soft);
}
.brand { text-align: center; margin-bottom: 20px; }
.brand-eyebrow { margin: 0; font-size: 0.75rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--brand); }
.brand-name { margin: 4px 0; font-size: 1.45rem; }
.brand-sub { margin: 0; color: var(--muted); font-size: 0.9rem; }
.auth-foot { text-align: center; margin-top: 16px; color: var(--muted); font-size: 0.9rem; }

.form { display: flex; flex-direction: column; gap: 12px; }
.field { display: flex; flex-direction: column; gap: 6px; }
.field > span { font-size: 0.8rem; color: var(--muted); font-weight: 600; }
.field input, .field select, .field textarea {
  width: 100%;
  min-height: 44px;
  padding: 10px 12px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: #fff;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none;
  border-color: #5eead4;
  box-shadow: 0 0 0 3px rgba(45, 212, 191, 0.2);
}
.field textarea { min-height: 72px; resize: vertical; }
.fieldset {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 12px;
  margin: 0 0 12px;
  background: var(--surface);
}
.fieldset legend { padding: 0 6px; font-weight: 700; font-size: 0.9rem; }
.row-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.form-compact .field { margin: 0; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  padding: 8px 14px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text);
  cursor: pointer;
  font-weight: 600;
  transition: transform 0.15s var(--ease), background 0.15s ease, box-shadow 0.15s ease;
}
.btn:active { transform: scale(0.98); }
.btn-primary {
  background: linear-gradient(135deg, #0f766e, #14b8a6);
  border-color: transparent;
  color: #fff;
  box-shadow: 0 6px 16px rgba(15, 118, 110, 0.25);
}
.btn-primary:active { background: var(--brand-dark); }
.btn-ghost { background: transparent; border-color: transparent; color: var(--brand); }
.btn-block { width: 100%; }
.btn-sm { min-height: 34px; padding: 4px 10px; font-size: 0.85rem; }

.alert {
  padding: 10px 12px;
  border-radius: var(--radius-sm);
  margin-bottom: 12px;
  font-size: 0.9rem;
}
.alert-error { background: #fde8e8; color: var(--danger); }
.alert-ok { background: #e6f7ef; color: var(--ok); }

.summary-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-bottom: 16px;
}
.summary-grid.sm .sum-num { font-size: 1.3rem; }
.sum-card {
  background: var(--surface);
  border-radius: var(--radius);
  padding: 14px;
  box-shadow: var(--shadow);
  color: inherit;
  display: flex;
  flex-direction: column;
  gap: 4px;
  transition: transform 0.2s var(--ease), box-shadow 0.2s var(--ease);
}
.sum-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-soft);
}
.sum-label { font-size: 0.78rem; color: var(--muted); }
.sum-num { font-size: 1.6rem; font-weight: 800; color: var(--brand); letter-spacing: -0.03em; }
.sum-num.warn { color: var(--warn); }

.section { margin-bottom: 20px; }
.section-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 8px;
}
.section-head h2, .section-title {
  margin: 0 0 8px;
  font-size: 1rem;
}
.muted { color: var(--muted); font-size: 0.85rem; }
.empty { color: var(--muted); text-align: center; padding: 28px 12px; }

.list { list-style: none; margin: 0; padding: 0; }
.list-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  background: var(--surface);
  border-radius: var(--radius);
  padding: 12px;
  margin-bottom: 8px;
  box-shadow: var(--shadow);
}
.agenda-item { cursor: pointer; }

.badge {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 6px;
  background: var(--brand-soft);
  color: var(--brand-dark);
  font-size: 0.72rem;
  font-weight: 700;
}
.badge-teal { background: #ccfbf1; color: var(--teal); }
.badge-purple { background: #ede9fe; color: var(--purple); }
.badge-status { background: #ecfdf5; color: var(--ok); }

.search-bar {
  display: flex;
  gap: 8px;
  margin-bottom: 8px;
}
.search-bar input[type="search"] {
  flex: 1;
  min-height: 44px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 0 12px;
  background: #fff;
}
.filter-panel {
  background: var(--surface);
  border-radius: var(--radius);
  padding: 12px;
  margin-bottom: 12px;
  box-shadow: var(--shadow);
}
.toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin: 8px 0 12px;
}
.check-inline { display: flex; align-items: center; gap: 6px; font-size: 0.9rem; }

.pay-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 12px;
  font-size: 0.75rem;
  color: var(--muted);
  margin-bottom: 12px;
}
.dot {
  display: inline-block;
  width: 10px; height: 10px;
  border-radius: 3px;
  margin-right: 4px;
  vertical-align: middle;
}
.pay-0, .dot.pay-0 { background: #3b82f6; }
.pay-1, .dot.pay-1 { background: #22c55e; }
.pay-2, .dot.pay-2 { background: #eab308; }
.pay-4, .dot.pay-4 { background: #ef4444; }
.pay-ok, .dot.pay-ok { background: #94a3b8; }

.pay-chip {
  font-size: 0.72rem;
  font-weight: 700;
  color: #fff;
  padding: 3px 8px;
  border-radius: 6px;
  white-space: nowrap;
}
.pay-chip.pay-0 { background: #3b82f6; }
.pay-chip.pay-1 { background: #22c55e; }
.pay-chip.pay-2 { background: #eab308; color: #1a2332; }
.pay-chip.pay-4 { background: #ef4444; }
.pay-chip.pay-ok { background: #94a3b8; }

.card-list { list-style: none; margin: 0; padding: 0; }
.site-card {
  background: var(--surface);
  border-radius: var(--radius);
  margin-bottom: 10px;
  box-shadow: var(--shadow);
  overflow: hidden;
  transition: transform 0.2s var(--ease);
}
.site-card:active { transform: scale(0.995); }
.site-card-main {
  display: block;
  padding: 14px;
  color: inherit;
}
.site-card-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 8px;
  margin-bottom: 6px;
}
.site-name { font-size: 1.05rem; }
.site-meta { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; margin-bottom: 8px; }
.site-actions {
  display: flex;
  gap: 8px;
  padding: 0 14px 12px;
  flex-wrap: wrap;
}

.progress-wrap { margin-top: 4px; }
.progress-wrap.mt { margin-top: 8px; }
.progress-bar {
  height: 6px;
  background: #e2e8f0;
  border-radius: 99px;
  overflow: hidden;
}
.progress-bar > span {
  display: block;
  height: 100%;
  background: linear-gradient(90deg, var(--brand), #5eead4);
  border-radius: 99px;
}
.progress-label { font-size: 0.72rem; color: var(--muted); }

.detail-hero {
  background: var(--surface);
  border-radius: var(--radius);
  padding: 16px;
  margin-bottom: 12px;
  box-shadow: var(--shadow);
}
.detail-hero h2 { margin: 4px 0 8px; font-size: 1.35rem; }
.kv { margin: 0; }
.kv > div {
  display: grid;
  grid-template-columns: 90px 1fr;
  gap: 8px;
  padding: 8px 0;
  border-bottom: 1px solid var(--border);
}
.kv dt { margin: 0; color: var(--muted); font-size: 0.85rem; }
.kv dd { margin: 0; }
.section .kv, .section {
  background: var(--surface);
  border-radius: var(--radius);
  padding: 12px 14px;
  box-shadow: var(--shadow);
}
.section .section { box-shadow: none; padding: 0; }

.action-row { display: flex; gap: 8px; flex-wrap: wrap; }
.sticky-actions {
  position: sticky;
  bottom: calc(var(--nav-h) + 8px);
  background: rgba(238, 243, 241, 0.92);
  padding: 8px 0;
  margin-top: 12px;
}

.seg-tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  background: #d9e8e4;
  border-radius: 12px;
  padding: 3px;
  margin-bottom: 12px;
}
.seg {
  text-align: center;
  padding: 10px;
  border-radius: 10px;
  color: var(--muted);
  font-weight: 600;
}
.seg.active { background: #fff; color: var(--brand); box-shadow: var(--shadow); }

.date-scroller {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding-bottom: 8px;
  margin-bottom: 8px;
  -webkit-overflow-scrolling: touch;
}
.date-chip {
  flex: 0 0 auto;
  width: 48px;
  text-align: center;
  padding: 8px 4px;
  border-radius: 12px;
  background: var(--surface);
  color: var(--text);
  border: 1px solid var(--border);
}
.date-chip .dow { display: block; font-size: 0.7rem; color: var(--muted); }
.date-chip.selected { background: var(--brand); color: #fff; border-color: var(--brand); }
.date-chip.selected .dow { color: rgba(255,255,255,0.85); }
.date-chip.today:not(.selected) { border-color: var(--brand); }

.stat-row { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 8px; }
.stat-pill {
  background: var(--brand-soft);
  color: var(--brand-dark);
  font-size: 0.75rem;
  font-weight: 700;
  padding: 4px 8px;
  border-radius: 99px;
}

.sheet-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.45);
  z-index: 60;
}
.sheet {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  z-index: 70;
  max-height: 85vh;
  overflow: auto;
  background: var(--surface);
  border-radius: 16px 16px 0 0;
  padding: 12px 16px calc(20px + env(safe-area-inset-bottom));
  box-shadow: 0 -8px 30px rgba(0,0,0,0.15);
}
.sheet-handle {
  width: 40px; height: 4px;
  background: #cbd5e1;
  border-radius: 99px;
  margin: 4px auto 12px;
}
.sheet h3 { margin: 0 0 12px; }

.filter-inline {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-bottom: 12px;
  background: var(--surface);
  padding: 12px;
  border-radius: var(--radius);
}
.filter-inline button { grid-column: 1 / -1; }

/* My page / menus */
.mypage-hero {
  background:
    linear-gradient(145deg, rgba(255,255,255,0.92), rgba(255,255,255,0.8)),
    linear-gradient(135deg, #0f766e, #14b8a6);
  background-blend-mode: normal;
  border-radius: 18px;
  padding: 18px 16px;
  margin-bottom: 16px;
  box-shadow: var(--shadow-soft);
  color: #fff;
  background: linear-gradient(135deg, #0f766e 0%, #0d9488 55%, #14b8a6 100%);
}
.mypage-hero-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
}
.mypage-hero .btn {
  background: rgba(255,255,255,0.16);
  border-color: rgba(255,255,255,0.28);
  color: #fff;
}
.mypage-eyebrow {
  margin: 0 0 4px;
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  opacity: 0.8;
}
.mypage-name {
  margin: 0 0 4px;
  font-size: 1.35rem;
  letter-spacing: -0.02em;
}
.mypage-hero .muted { color: rgba(255,255,255,0.78); }
.mypage-balance {
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px solid rgba(255,255,255,0.22);
  display: flex;
  align-items: baseline;
  gap: 6px;
}
.mypage-balance span { font-size: 0.85rem; opacity: 0.85; }
.mypage-balance strong {
  font-size: 1.7rem;
  letter-spacing: -0.03em;
}
.mypage-balance .balance-unit { font-size: 0.9rem; font-weight: 700; }

.menu-group { margin-bottom: 14px; }
.menu-group-title {
  margin: 0 0 8px 4px;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--muted);
  letter-spacing: 0.04em;
}
.menu-list {
  list-style: none;
  margin: 0;
  padding: 0;
  background: var(--surface);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}
.menu-list a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 15px 16px;
  color: var(--text);
  border-bottom: 1px solid var(--border);
  font-weight: 600;
}
.menu-list li:last-child a { border-bottom: 0; }
.menu-list a:active { background: #f4faf8; }
.menu-list a.danger { color: var(--danger); }
.menu-chevron {
  width: 7px;
  height: 7px;
  border-right: 2px solid #b0c2bd;
  border-top: 2px solid #b0c2bd;
  transform: rotate(45deg);
}
.profile-section.section,
.profile-block {
  background: var(--surface);
  border-radius: var(--radius);
  padding: 16px;
  box-shadow: var(--shadow);
}
.balance-line {
  margin: 8px 0 0;
  font-size: 0.95rem;
}
.balance-line strong {
  color: var(--brand);
  font-size: 1.15rem;
}
.btn-danger {
  background: var(--danger);
  border-color: var(--danger);
  color: #fff;
}
.money-hero {
  background: var(--surface);
  border-radius: var(--radius);
  padding: 18px 16px;
  margin-bottom: 12px;
  box-shadow: var(--shadow);
}
.income-hero {
  background: linear-gradient(135deg, #0f766e 0%, #14b8a6 100%);
  color: #fff;
}
.income-hero .muted { color: rgba(255,255,255,0.8); }
.expense-hero {
  background: linear-gradient(135deg, #9b2c2c 0%, #c0392b 100%);
  color: #fff;
}
.expense-hero .muted { color: rgba(255,255,255,0.8); }
.money-balance {
  margin: 4px 0 0;
  font-size: 1.8rem;
  font-weight: 800;
}
.money-balance span { font-size: 0.95rem; font-weight: 600; margin-left: 2px; }
.center-note { text-align: center; margin-top: 12px; font-size: 0.8rem; }
.money-tabs { grid-template-columns: 1fr 1fr 1fr; }
.tx-list { list-style: none; margin: 0; padding: 0; }
.tx-item {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
  background: var(--surface);
  border-radius: var(--radius);
  padding: 14px;
  margin-bottom: 8px;
  box-shadow: var(--shadow);
}
.tx-type {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 6px;
  margin-bottom: 4px;
}
.tx-type.in { background: #ccfbf1; color: var(--brand-dark); }
.tx-type.out { background: #fee2e2; color: var(--danger); }
.tx-memo { display: block; margin-top: 2px; }
.tx-amount { font-weight: 800; white-space: nowrap; font-size: 1.05rem; }
.tx-amount.in { color: var(--brand); }
.tx-amount.out { color: var(--danger); }
.tx-amount span { font-size: 0.8rem; font-weight: 600; }
.mt { margin-top: 10px; }
.status-완료 { color: var(--ok); font-weight: 700; }
.status-예정 { color: var(--brand); font-weight: 700; }
.status-미배정 { color: var(--warn); font-weight: 700; }

@keyframes dropdownIn {
  from { opacity: 0; transform: translateY(-4px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Desktop */
@media (min-width: 900px) {
  :root {
    --header-h: 64px;
  }

  .site-header-inner {
    padding: 0 24px;
    gap: 18px;
  }

  .brand-page { max-width: 180px; }

  .desktop-nav { display: flex; }

  .user-meta { display: flex; }

  .bottom-nav { display: none; }

  .page {
    max-width: 960px;
    padding: 24px 24px 40px;
  }

  .sticky-actions {
    bottom: 16px;
  }

  .summary-grid {
    grid-template-columns: repeat(4, 1fr);
  }

  .menu-group,
  .mypage-hero,
  .profile-section {
    max-width: 640px;
  }
}
