/* ============================================================
   VOLUME CALCULATOR — page styles (builds on styles.css tokens)
   ============================================================ */
.vc-main { padding-top: 96px; padding-bottom: 200px; }

/* intro */
.vc-intro { padding: 24px 0 30px; }
.vc-intro .display { font-size: clamp(34px, 5vw, 58px); margin: 16px 0 16px; }
.vc-intro .lead { max-width: 64ch; }

/* search */
.vc-search { position: relative; max-width: 520px; margin-top: 26px; }
.vc-search .input { padding-left: 46px; background: var(--surface-2); border-color: var(--line-strong); }
.vc-search svg { position: absolute; left: 16px; top: 50%; transform: translateY(-50%); color: var(--gold); pointer-events: none; }
.vc-search .vc-clear { position: absolute; right: 12px; top: 50%; transform: translateY(-50%); width: 28px; height: 28px; border-radius: 50%; border: none; background: var(--surface-3); color: var(--ink-2); cursor: pointer; display: grid; place-items: center; }

/* sticky room tabs */
.vc-tabs { position: sticky; top: 66px; z-index: 40; margin: 28px 0 8px; padding: 12px 0; background: rgba(255,255,255,0.88); backdrop-filter: blur(16px); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.vc-tabs-inner { display: flex; gap: 10px; overflow-x: auto; scrollbar-width: none; padding-bottom: 2px; }
.vc-tabs-inner::-webkit-scrollbar { display: none; }
.vc-tab { display: inline-flex; align-items: center; gap: 9px; white-space: nowrap; padding: 10px 16px; border-radius: var(--radius-sm); border: 1px solid var(--line-strong); background: var(--surface-2); color: var(--ink-2); font-weight: 600; font-size: 14px; cursor: pointer; transition: all 0.2s; }
.vc-tab:hover { border-color: var(--gold); color: var(--ink); }
.vc-tab.on { background: var(--gold); border-color: var(--gold); color: #FFFFFF; }
.vc-tab-count { font-family: var(--font-mono); font-size: 12px; min-width: 20px; height: 20px; padding: 0 6px; border-radius: var(--radius-sm); display: inline-grid; place-items: center; background: var(--gold); color: #FFFFFF; }
.vc-tab.on .vc-tab-count { background: rgba(42,30,4,0.22); color: #FFFFFF; }

/* room section */
.vc-room { padding: 40px 0 8px; scroll-margin-top: 140px; }
.vc-room-head { display: flex; align-items: center; gap: 14px; margin-bottom: 22px; }
.vc-room-tag { width: 46px; height: 46px; border-radius: 3px; display: grid; place-items: center; font-family: var(--font-display); font-weight: 700; font-size: 15px; letter-spacing: 0.02em; background: var(--gold-soft); color: var(--gold); border: 1px solid rgba(232,89,12,0.25); flex-shrink: 0; }
.vc-room-head h2 { font-size: clamp(24px, 3vw, 32px); }
.vc-room-sub { margin-left: auto; font-family: var(--font-mono); font-size: 13px; color: var(--muted); text-align: right; }
.vc-room-sub strong { color: var(--gold); font-size: 16px; }

/* item grid */
.vc-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 12px; }
.vc-item { display: flex; align-items: center; gap: 13px; padding: 13px 15px; border-radius: var(--radius-sm); border: 1px solid var(--line); background: var(--surface); transition: border-color 0.25s, background 0.25s, box-shadow 0.25s, transform 0.2s; }
.vc-item.active { border-color: var(--gold); background: linear-gradient(180deg, var(--gold-soft), var(--surface)); box-shadow: 0 10px 30px -16px var(--gold-glow); }
.vc-item-ic { width: 40px; height: 40px; border-radius: 3px; display: grid; place-items: center; background: var(--bg); border: 1px solid var(--line); color: var(--muted); flex-shrink: 0; transition: color 0.25s, border-color 0.25s, background 0.25s; }
.vc-item.active .vc-item-ic { color: var(--gold); border-color: rgba(232,89,12,0.3); background: var(--gold-soft); }
.vc-item-info { flex: 1; min-width: 0; }
.vc-item-name { font-size: 14.5px; font-weight: 600; color: var(--ink); line-height: 1.3; }
.vc-item-vol { font-family: var(--font-mono); font-size: 12px; color: var(--muted); margin-top: 3px; display: flex; align-items: center; gap: 7px; }
.vc-item.active .vc-item-vol .vc-sub { color: var(--gold); font-weight: 600; }

/* stepper */
.vc-stepper { display: flex; align-items: center; gap: 4px; flex-shrink: 0; background: var(--bg); border: 1px solid var(--line-strong); border-radius: var(--radius-sm); padding: 3px; }
.vc-step-btn { width: 34px; height: 34px; border-radius: 50%; border: none; background: transparent; color: var(--ink-2); font-size: 20px; line-height: 1; cursor: pointer; display: grid; place-items: center; transition: background 0.18s, color 0.18s; user-select: none; }
.vc-step-btn:hover { background: var(--surface-3); color: var(--ink); }
.vc-step-btn.plus { color: var(--gold); }
.vc-step-btn.plus:hover { background: var(--gold); color: #FFFFFF; }
.vc-step-btn:disabled { opacity: 0.3; cursor: default; background: transparent; }
.vc-count { min-width: 30px; text-align: center; font-family: var(--font-display); font-weight: 700; font-size: 16px; color: var(--ink); font-variant-numeric: tabular-nums; }
.vc-item:not(.active) .vc-count { color: var(--faint); }

/* no results */
.vc-empty { text-align: center; padding: 60px 20px; color: var(--muted); }

/* sticky summary bar */
.vc-bar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 50; background: rgba(255,255,255,0.94); backdrop-filter: blur(20px) saturate(140%); border-top: 1px solid var(--line-strong); box-shadow: 0 -20px 50px -20px rgba(0,0,0,0.6); }
.vc-bar-inner { display: flex; align-items: center; gap: 28px; padding: 16px 28px; max-width: var(--maxw); margin: 0 auto; }
.vc-total { display: flex; align-items: baseline; gap: 10px; }
.vc-total-num { font-family: var(--font-display); font-weight: 800; font-size: clamp(30px, 4vw, 42px); color: var(--gold); line-height: 1; letter-spacing: -0.03em; font-variant-numeric: tabular-nums; }
.vc-total-unit { font-size: 18px; color: var(--ink-2); font-weight: 600; }
.vc-total-label { display: block; font-size: 12px; color: var(--muted); margin-top: 2px; }
.vc-meta { display: flex; gap: 26px; padding-left: 28px; border-left: 1px solid var(--line); }
.vc-meta-item span { display: block; font-size: 11.5px; color: var(--muted); text-transform: uppercase; letter-spacing: 0.08em; font-family: var(--font-mono); }
.vc-meta-item strong { font-size: 15px; color: var(--ink); font-weight: 600; }
.vc-bar-actions { margin-left: auto; display: flex; align-items: center; gap: 12px; }
.vc-reset { background: none; border: none; color: var(--muted); font-size: 13.5px; font-weight: 600; cursor: pointer; padding: 8px; transition: color 0.2s; }
.vc-reset:hover { color: var(--ink); }

/* fill progress under total */
.vc-progress { height: 4px; background: var(--surface-3); border-radius: 4px; overflow: hidden; width: 160px; margin-top: 8px; }
.vc-progress-fill { height: 100%; background: linear-gradient(90deg, var(--gold), var(--gold-bright)); border-radius: 4px; transition: width 0.5s var(--ease); }

@media (max-width: 820px) {
  .vc-meta { display: none; }
  .vc-bar-inner { gap: 16px; padding: 14px 18px; }
  .vc-tabs { top: 60px; }
  .vc-progress { display: none; }
}
@media (max-width: 520px) {
  .vc-grid { grid-template-columns: 1fr; }
  .vc-bar-actions .vc-reset { display: none; }
  .vc-total-num { font-size: 28px; }
}
