/*
 * The place itself: the status card and its instrument, the listing, what is
 * on, what people say, sponsored and billing. Built on vendor.css's tokens.
 */

/* ── The status card ──────────────────────────────────────────────────── */

.v-object {
  display: flex;
  flex-direction: column;
  min-width: 0;
  padding: 22px;
  border-radius: var(--r-card);
  background: var(--card);
  box-shadow: var(--shadow-card);
  /* --v-sc is registered (vendor.css), so a new state fades in here and
     every part of the instrument inherits the fade. */
  transition: --v-sc 0.5s var(--ease);
}
.v-obj-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.v-obj-id { min-width: 0; }
.v-obj-name { display: flex; align-items: baseline; flex-wrap: wrap; gap: 4px 10px; margin: 0; font-size: var(--t-title3); font-weight: 700; letter-spacing: -0.02em; }
.v-obj-of { font-size: var(--t-sub); font-weight: 600; color: var(--ink-3); letter-spacing: 0; }
.v-obj-sub { margin: 3px 0 0; font-size: var(--t-foot); color: var(--ink-3); }
.v-obj-live {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  flex: none;
  padding: 6px 12px;
  border-radius: 999px;
  background: var(--inset);
  color: var(--ink-2);
  font-size: var(--t-cap);
  font-weight: 700;
}
.v-obj-live.is-live { background: var(--tint-2); color: var(--link-strong); }
.v-obj-quiet { margin: 16px 0 0; font-size: var(--t-body); color: var(--ink-2); }

/*
 * The instrument: the one dark surface on the page, because it is the one
 * thing that is live. It takes the state's colour (--v-sc, set by object.js
 * and repainted by status.js the moment a state is pressed), and the
 * constellation is masked into it in that colour. Registered in vendor.css,
 * so a change of state fades rather than snaps.
 */
.v-inst {
  position: relative;
  overflow: hidden;
  margin-top: 16px;
  padding: 22px 22px 0;
  border-radius: 20px;
  background:
    radial-gradient(120% 140% at 100% 100%, color-mix(in srgb, var(--v-sc) 34%, transparent), transparent 60%),
    color-mix(in srgb, var(--v-sc) 10%, var(--inst-base));
  color: #fff;
  box-shadow: inset 0 0 0 1px var(--inst-edge);
  isolation: isolate;
}
.v-inst-art { display: none; }
@supports ((mask-image: url("/op-bg-vendor.svg")) or (-webkit-mask-image: url("/op-bg-vendor.svg"))) {
  .v-inst-art {
    display: block;
    position: absolute;
    inset: 0;
    z-index: -1;
    background: var(--v-sc);
    opacity: 0.85;
    -webkit-mask: var(--v-hub) right -160px bottom -430px / 900px 900px no-repeat;
    mask: var(--v-hub) right -160px bottom -430px / 900px 900px no-repeat;
    pointer-events: none;
  }
}
.v-inst-row { position: relative; display: flex; align-items: flex-end; gap: 16px; flex-wrap: wrap; }
/* Display size on purpose: this is read across a counter. */
.v-inst-state {
  margin: 0;
  font-size: clamp(34px, 4.6vw, 46px);
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1;
  color: color-mix(in srgb, var(--v-sc) 78%, #fff);
}
.v-inst[data-live="no"] .v-inst-state { color: rgba(255, 255, 255, 0.72); }
.v-inst-left { margin: 0 0 0 auto; text-align: right; }
.v-inst-left b { display: block; font-size: 30px; font-weight: 600; letter-spacing: -0.02em; line-height: 1; }
.v-inst-left span {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  margin-top: 6px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.64);
}
.v-inst-note { position: relative; margin: 16px 0 0; font-size: var(--t-lead); line-height: 1.45; color: rgba(255, 255, 255, 0.92); }
.v-inst-idle { position: relative; margin: 12px 0 22px; font-size: var(--t-sub); color: rgba(255, 255, 255, 0.64); }
.v-inst-clock {
  position: relative;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 4px 12px;
  margin-top: 18px;
  font-size: var(--t-foot);
  color: rgba(255, 255, 255, 0.64);
}
.v-drain { position: relative; margin: 12px -22px 0; height: 5px; background: rgba(255, 255, 255, 0.1); }
.v-drain > i { display: block; height: 100%; background: var(--v-sc); transition: width 0.6s linear; box-shadow: 0 0 12px var(--v-sc); }

/* ── Its controls ─────────────────────────────────────────────────────── */

.v-obj-slot[data-slot="status"]:empty { display: none; }
.v-controls {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr);
  gap: 22px;
  align-items: start;
  margin-top: 20px;
}
.v-ctl > .v-label { margin-bottom: 10px; }
.v-state-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--v-c); flex: none; }
.v-state[aria-pressed="true"] { color: var(--ink); }

.v-note-field { grid-column: 1 / -1; margin-top: 0; }
.v-note-foot { display: flex; align-items: center; justify-content: space-between; gap: 8px 16px; flex-wrap: wrap; margin-top: 8px; }
.v-note-foot .v-note-hint { margin: 0; }
.v-note-foot .v-clear { margin: 0; padding: 0; }
.v-note-field > span label { cursor: pointer; }
.v-note-row { display: flex; gap: 8px; }
.v-note-row .v-input { flex: 1; }
.v-note-save { flex: none; }
.v-note-save:disabled { background: var(--inset); color: var(--ink-3); box-shadow: none; opacity: 1; }
.v-note-hint,
.v-hold-hint { margin: 8px 0 0; font-size: var(--t-cap); color: var(--ink-3); }

.v-unpaid {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px 16px;
  flex-wrap: wrap;
  margin-top: 18px;
  padding: 14px 16px;
  border-radius: 16px;
  background: var(--inset);
}
.v-unpaid p { display: flex; align-items: center; gap: 8px; margin: 0; font-size: var(--t-sub); color: var(--ink-2); }

/* Today's busy hours, at the foot of the status card: the context for
   choosing a state, pushed down so any spare height sits above it. */
.v-obj-slot[data-slot="busy"] { margin-top: auto; }
.v-obj-slot[data-slot="busy"]:empty { display: none; }
.v-obj-busy { margin-top: 22px; padding-top: 18px; border-top: 1px solid var(--sep); }
.v-obj-busy-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 10px; }
.v-obj-busy .d-busy-line { margin-bottom: 12px; font-size: var(--t-body); }
.v-obj-busy .d-busy-strip { height: 64px; }

/* ── The listing: hours, photo, menu ──────────────────────────────────── */

.v-lines { display: flex; flex-direction: column; }
.v-lines .d-card-head { margin-bottom: 8px; }
.v-line {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto auto;
  align-items: center;
  gap: 4px 12px;
  padding: 12px 0;
  border-top: 1px solid var(--sep);
}
.v-lines .d-card-head + .v-line { border-top: 0; }
.v-line-text { display: flex; flex-direction: column; min-width: 0; }
.v-line-key { font-size: var(--t-cap); font-weight: 600; color: var(--ink-3); }
.v-line-val { display: flex; align-items: center; gap: 10px; min-width: 0; font-size: var(--t-body); font-weight: 600; overflow-wrap: anywhere; }
.v-line-val.v-empty { color: var(--ink-3); font-weight: 500; }
.v-line-thumb { width: 36px; height: 36px; border-radius: 10px; object-fit: cover; }
.v-line-open,
.v-line-clear {
  padding: 8px 12px;
  border: 0;
  border-radius: 999px;
  background: var(--inset);
  color: var(--link);
  font: inherit;
  font-size: var(--t-sub);
  font-weight: 700;
  cursor: pointer;
  transition: background 0.2s, transform 0.18s var(--spring);
}
.v-line-open:hover { background: var(--tint-2); }
.v-line-open:active, .v-line-clear:active { transform: scale(0.96); }
.v-line-clear { background: none; color: var(--red); }
.v-line-editor {
  grid-column: 1 / -1;
  margin-top: 8px;
  padding: 16px;
  border-radius: 18px;
  background: var(--inset);
  animation: v-open 0.35s var(--spring);
}
.v-dirty .v-line-open { box-shadow: 0 0 0 2px var(--s-busy); }
.v-inline-form { display: flex; gap: 8px; align-items: center; }
.v-inline-form .v-input { flex: 1; background: var(--card); }
.v-file {
  position: relative;
  display: inline-flex;
  flex: 1;
  align-items: center;
  gap: 8px;
  min-height: 46px;
  padding: 0 14px;
  border: 1.5px dashed var(--sep-2);
  border-radius: var(--r-ctl);
  background: var(--card);
  color: var(--ink-2);
  font-size: var(--t-sub);
  font-weight: 600;
  cursor: pointer;
}
.v-file input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }

/*
 * A grid track's default `min-width: auto` lets a native date or time
 * control push it wider than its track, and Safari's controls are wide
 * enough to overflow a phone. vendor-page.test.mjs holds this line.
 */
.v-ev-form > *,
.v-day > * { min-width: 0; }

/* The week, as Settings would draw it: a switch per day and its two times. */
.v-week { display: flex; flex-direction: column; gap: 6px; }
.v-day { display: grid; grid-template-columns: 96px minmax(0, 1fr) minmax(0, 1fr); gap: 8px; align-items: center; }
.v-day-name { display: flex; align-items: center; gap: 10px; font-size: var(--t-sub); font-weight: 600; cursor: pointer; }
.v-day input[type="time"] {
  min-width: 0;
  padding: 9px 10px;
  border: 1px solid var(--sep);
  border-radius: 11px;
  background: var(--card);
}
.v-day input[type="time"]:disabled { opacity: 0.4; }
.v-day-on {
  appearance: none;
  -webkit-appearance: none;
  position: relative;
  flex: none;
  width: 40px;
  height: 24px;
  margin: 0;
  border-radius: 999px;
  background: var(--switch-off);
  cursor: pointer;
  transition: background 0.25s var(--ease);
}
.v-day-on::after {
  content: "";
  position: absolute;
  top: 2px;
  left: 2px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.16);
  transition: transform 0.3s var(--spring);
}
.v-day-on:checked { background: var(--s-open); }
.v-day-on:checked::after { transform: translateX(16px); }

.v-form-foot { display: flex; justify-content: flex-end; align-items: center; gap: 10px; margin-top: 16px; }
.v-field-k { margin: 16px 0 0; font-size: var(--t-foot); font-weight: 600; color: var(--ink-2); }
.v-field-k + .v-chips { margin-top: 8px; }
.v-optional { font-style: normal; font-weight: 500; color: var(--ink-3); }

/* ── What is on ───────────────────────────────────────────────────────── */

/* The card is as tall as the listing beside it; the tile at its foot takes
   what the events leave, so the spare height is somewhere to add one. */
.v-obj-slot[data-slot="events"] { display: flex; flex-direction: column; }
.v-evs { display: flex; flex: 1; flex-direction: column; }
.v-evs .d-card-head { margin-bottom: 12px; }
.v-ev-new {
  display: flex;
  flex: 1;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 56px;
  margin-top: 10px;
  border: 1.5px dashed var(--sep-2);
  border-radius: 18px;
  background: none;
  color: var(--ink-2);
  font: inherit;
  font-size: var(--t-sub);
  font-weight: 700;
  cursor: pointer;
  transition: background 0.2s, color 0.2s, border-color 0.2s;
}
.v-ev-new:hover { border-color: var(--g-500); background: var(--tint); color: var(--link); }
.v-ev-empty { flex: 1; }
.v-ev-list { display: flex; flex-direction: column; gap: 10px; }
.v-ev {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 14px;
  padding: 12px;
  border-radius: 18px;
  background: var(--inset);
  transition: background 0.2s, transform 0.25s var(--spring);
}
.v-ev:hover { background: var(--inset-hover); }
.v-ev-date {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 60px;
  border-radius: 15px;
  background: var(--card);
  box-shadow: var(--shadow-card);
  line-height: 1;
}
.v-ev-mon { font-size: 11px; font-weight: 800; letter-spacing: 0.06em; text-transform: uppercase; color: var(--s-sold); }
.v-ev-day { margin-top: 4px; font-size: 24px; font-weight: 700; letter-spacing: -0.03em; }
.v-ev-body { min-width: 0; }
.v-ev-title { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin: 0; font-size: var(--t-body); font-weight: 700; }
.v-ev-when {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 4px 12px;
  margin: 4px 0 0;
  font-size: var(--t-foot);
  color: var(--ink-2);
}
.v-ev-when .ic { display: inline-block; margin-right: 4px; vertical-align: -2px; color: var(--ink-3); }
.v-ev-where { display: inline-flex; align-items: center; }
.v-ev-cap { height: 5px; margin-top: 10px; border-radius: 999px; background: var(--fill); overflow: hidden; max-width: 220px; }
.v-ev-cap i { display: block; height: 100%; border-radius: inherit; background: var(--g-500); }
.v-ev-side { display: flex; flex-direction: column; align-items: flex-end; gap: 4px; }
.v-ev-going { display: inline-flex; align-items: center; gap: 6px; font-size: var(--t-foot); font-weight: 700; color: var(--link); white-space: nowrap; }
.v-ev-now {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 2px 9px;
  border-radius: 999px;
  background: var(--red-tint);
  color: var(--s-sold);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.v-ev-now i { width: 6px; height: 6px; border-radius: 50%; background: currentColor; animation: v-blink 1.4s ease-in-out infinite; }
@keyframes v-blink { 50% { opacity: 0.25; } }
.v-ev.is-live .v-ev-date { box-shadow: 0 0 0 2px var(--s-sold); }
.v-ev-empty { display: flex; align-items: center; gap: 14px; padding: 16px; border-radius: 18px; background: var(--inset); }
.v-ev-empty-t { margin: 0 0 2px; font-weight: 700; }

.v-ev-form {
  margin-bottom: 14px;
  padding: 18px;
  border-radius: 20px;
  background: var(--inset);
  animation: v-open 0.35s var(--spring);
}
.v-ev-form .v-input { background: var(--card); }
.v-ev-form .v-chip-btn { background: var(--card); }
.v-ev-modes { max-width: 380px; }
.v-ev-row { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }

/* ── What people say ──────────────────────────────────────────────────── */

.v-feed { background: transparent; }
.v-voice-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-bottom: 8px; }
.v-voice-head h3 { margin: 0; font-size: var(--t-lead); font-weight: 700; letter-spacing: -0.015em; }
.v-voice-head span { font-size: var(--t-foot); color: var(--ink-3); }
.v-wire-day { margin: 18px 0 8px; font-size: var(--t-cap); font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: var(--ink-3); }

/* A timeline: the time, a dot in the report's colour on a line, what it said. */
.v-w {
  position: relative;
  display: grid;
  grid-template-columns: 62px minmax(0, 1fr);
  gap: 14px;
  padding: 0 0 18px;
}
.v-w::before {
  content: "";
  position: absolute;
  left: 72px;
  top: 6px;
  width: 10px;
  height: 10px;
  border: 2px solid var(--card);
  border-radius: 50%;
  background: var(--v-c, var(--ink-3));
  box-shadow: 0 0 0 1px color-mix(in srgb, var(--v-c, var(--ink-3)) 40%, transparent);
}
.v-w::after {
  content: "";
  position: absolute;
  left: 77px;
  top: 20px;
  bottom: 2px;
  width: 1px;
  background: var(--sep);
}
.v-w > div { padding-left: 22px; min-width: 0; }
.v-w-t { padding-top: 2px; font-size: var(--t-cap); font-weight: 600; color: var(--ink-3); text-align: right; }
.v-w-head { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.v-w-what { font-size: var(--t-body); font-weight: 700; color: var(--ink); }
.v-w .v-w-what.v-num { color: var(--gold); letter-spacing: 2px; }
.v-w-mine { padding: 2px 8px; border-radius: 999px; background: var(--tint-2); color: var(--link-strong); font-size: 11px; font-weight: 700; }
.v-rep-take { margin-left: auto; padding: 4px 10px; border: 0; border-radius: 999px; background: var(--red-tint); color: var(--red); font: inherit; font-size: var(--t-cap); font-weight: 700; cursor: pointer; }
.v-w-said { margin: 4px 0 0; font-size: var(--t-body); color: var(--ink-2); line-height: 1.5; overflow-wrap: anywhere; }
.v-w-votes { margin: 6px 0 0; font-size: var(--t-cap); color: var(--ink-3); }
.v-wire-empty { margin: 8px 0 16px; font-size: var(--t-sub); color: var(--ink-2); line-height: 1.6; }

.v-say {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  margin-top: 8px;
  padding: 14px 16px;
  border: 1.5px dashed var(--sep-2);
  border-radius: 16px;
  background: none;
  color: var(--link);
  font: inherit;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.2s;
}
.v-say:hover { background: var(--tint); }
.v-say-form { margin-top: 12px; padding: 16px; border-radius: 18px; background: var(--inset); animation: v-open 0.35s var(--spring); }
.v-say-form .v-chip-btn, .v-say-form .v-input { background: var(--card); }
.v-say-label { margin-top: 14px; }
.v-say-label:first-child { margin-top: 0; }
.v-say-post { margin-top: 14px; }

/* An answer under a review, drawn as a reply in Messages would be. */
.d-reply { margin-top: 10px; }
.d-reply-label { margin: 0 0 6px; font-size: var(--t-cap); font-weight: 700; color: var(--link); }
.d-reply-text {
  position: relative;
  margin: 0;
  padding: 12px 14px;
  border-radius: 4px 18px 18px 18px;
  background: var(--tint);
  box-shadow: inset 0 0 0 1px var(--tint-line);
  font-size: var(--t-sub);
  line-height: 1.5;
  color: var(--ink);
}
.d-reply-actions { display: flex; gap: 14px; margin-top: 6px; }
.d-reply-remove { color: var(--red); }
.d-reply-editor { margin-top: 8px; animation: v-open 0.3s var(--spring); }
.d-reply-input {
  width: 100%;
  min-height: 90px;
  padding: 12px 14px;
  border: 1px solid transparent;
  border-radius: 16px;
  background: var(--inset);
  outline: none;
  resize: vertical;
}
.d-reply-input:focus { border-color: var(--g-500); background: var(--card); box-shadow: var(--ring); }
.d-reply-bar { display: flex; align-items: center; gap: 10px; margin-top: 10px; }
.d-reply-count { margin-right: auto; font-size: var(--t-cap); color: var(--ink-3); }
.d-reply-public { margin: 8px 0 0; font-size: var(--t-cap); color: var(--ink-3); }

/* ── Sponsored ────────────────────────────────────────────────────────── */

.v-spon-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: var(--gap); align-items: start; }
.v-spon-hero {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 26px;
  border-radius: var(--r-card);
  background: radial-gradient(120% 110% at 100% 0%, var(--g-600) 0%, var(--g-800) 45%, var(--g-950) 100%);
  color: #fff;
  box-shadow: var(--shadow-card);
  overflow: hidden;
  isolation: isolate;
}
.v-spon-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: #fff;
  opacity: 0.08;
  -webkit-mask: var(--v-hub) right -220px top -260px / 640px 640px no-repeat;
  mask: var(--v-hub) right -220px top -260px / 640px 640px no-repeat;
}
.v-spon-k { display: flex; align-items: center; gap: 7px; margin: 0; font-size: var(--t-cap); font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase; color: var(--g-300); }
.v-sponsored-state { margin: 12px 0 0; font-size: var(--t-title2); font-weight: 700; letter-spacing: -0.025em; line-height: 1.2; }
.v-spon-bar { height: 7px; margin-top: 20px; border-radius: 999px; background: rgba(255, 255, 255, 0.16); overflow: hidden; }
.v-spon-bar i { display: block; height: 100%; border-radius: inherit; background: var(--g-300); }
.v-spon-left { margin: 8px 0 0; font-size: var(--t-foot); color: rgba(255, 255, 255, 0.72); }
.v-spon-price { margin: 22px 0 0; font-size: 44px; font-weight: 700; letter-spacing: -0.04em; line-height: 1; }
.v-spon-price span { margin-left: 8px; font-size: var(--t-body); font-weight: 500; letter-spacing: 0; color: rgba(255, 255, 255, 0.72); }
.v-spon-list { display: flex; flex-direction: column; gap: 8px; margin: 18px 0 22px; padding: 0; list-style: none; font-size: var(--t-sub); color: rgba(255, 255, 255, 0.88); }
.v-spon-list li { display: flex; align-items: center; gap: 9px; }
.v-spon-list .ic { color: var(--g-300); }
.v-sponsor-buy { align-self: flex-start; background: #fff; color: var(--g-900); }
.v-sponsor-buy:hover { background: var(--g-100); }
.v-spon-hero .v-sponsored-hint { color: rgba(255, 255, 255, 0.64); }
.v-spon-hero .v-sponsored-hint a { color: #fff; }
.v-sponsored-hint { margin: 10px 0 0; font-size: var(--t-cap); color: var(--ink-3); line-height: 1.5; }
.v-sponsored-line-state { display: flex; align-items: center; gap: 6px; margin: 10px 0 0; font-size: var(--t-foot); font-weight: 600; color: var(--ink-2); }
.v-spon-preview {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px;
  border-radius: 18px;
  background: linear-gradient(135deg, var(--preview-a), var(--preview-b));
  box-shadow: inset 0 0 0 1px var(--sep);
}
.v-spon-pin {
  display: grid;
  place-items: center;
  flex: none;
  width: 44px;
  height: 44px;
  border: 3px solid #fff;
  border-radius: 50%;
  background: var(--g-600);
  color: #fff;
  box-shadow: 0 6px 16px -6px rgba(0, 0, 0, 0.4);
}
.v-spon-preview b { display: block; font-size: var(--t-body); }
.v-spon-preview-line { display: block; font-size: var(--t-foot); color: var(--link-strong); font-weight: 600; }
.v-spon-steps { display: flex; flex-direction: column; gap: 14px; margin: 0; padding: 0; list-style: none; }
.v-spon-steps li { display: flex; gap: 14px; align-items: flex-start; }
.v-spon-steps li > span {
  display: grid;
  place-items: center;
  flex: none;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: var(--tint-2);
  color: var(--link-strong);
  font-size: var(--t-sub);
  font-weight: 800;
}
.v-spon-steps b { display: block; font-size: var(--t-body); }
.v-spon-steps small { display: block; margin-top: 2px; font-size: var(--t-foot); color: var(--ink-2); }

/* ── Billing ──────────────────────────────────────────────────────────── */

.v-band { display: flex; flex-direction: column; gap: var(--gap); }
.v-bill-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr); gap: var(--gap); }
.v-bill-hero {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 26px;
  border-radius: var(--r-card);
  background: radial-gradient(130% 120% at 100% 0%, var(--g-500) 0%, var(--g-700) 42%, var(--g-900) 100%);
  color: #fff;
  box-shadow: 0 18px 36px -18px color-mix(in srgb, var(--g-800) 80%, transparent);
  overflow: hidden;
  isolation: isolate;
}
.v-bill-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: #fff;
  opacity: 0.09;
  -webkit-mask: var(--v-hub) right -200px top -240px / 600px 600px no-repeat;
  mask: var(--v-hub) right -200px top -240px / 600px 600px no-repeat;
}
.v-bill-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  align-self: flex-start;
  padding: 5px 11px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.16);
  font-size: var(--t-cap);
  font-weight: 700;
}
.v-bill-plan { margin: 18px 0 0; font-size: var(--t-title2); font-weight: 700; letter-spacing: -0.02em; }
.v-bill-price { margin: 6px 0 0; }
.v-bill-price b { font-size: 52px; font-weight: 700; letter-spacing: -0.045em; line-height: 1; }
.v-bill-price span { margin-left: 8px; font-size: var(--t-body); color: rgba(255, 255, 255, 0.74); }
.v-bill-facts { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin: auto 0 0; padding-top: 26px; }
.v-bill-facts div { padding: 12px 14px; border-radius: 16px; background: rgba(255, 255, 255, 0.1); }
.v-bill-facts dt { font-size: var(--t-cap); color: rgba(255, 255, 255, 0.68); }
.v-bill-facts dd { margin: 2px 0 0; font-size: var(--t-body); font-weight: 700; }
.v-bill-list { display: flex; flex-direction: column; gap: 12px; margin: 0; padding: 0; list-style: none; }
.v-bill-list li { display: flex; align-items: center; gap: 12px; font-size: var(--t-sub); color: var(--ink-2); }
.v-bill-list .ic { flex: none; width: 34px; height: 34px; padding: 8px; border-radius: 11px; background: var(--tint); color: var(--link); }
.v-bill-manage .d-card-head { margin-bottom: 4px; }
.v-bill-row {
  display: flex;
  align-items: center;
  gap: 14px;
  margin: 0 -10px;
  padding: 12px 10px;
  border-radius: 14px;
  color: var(--ink);
  text-decoration: none;
  transition: background 0.2s;
}
.v-bill-row:hover { background: var(--inset); }
.v-bill-row > span:nth-child(2) { flex: 1; min-width: 0; }
.v-bill-row b { display: block; font-size: var(--t-body); }
.v-bill-row small { display: block; font-size: var(--t-foot); color: var(--ink-3); }
.v-bill-row > .ic { color: var(--ink-3); }
.v-bill-inline { text-decoration: underline; }
.v-bill-cancel {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px 16px;
  flex-wrap: wrap;
  margin-top: 12px;
  padding-top: 16px;
  border-top: 1px solid var(--sep);
}
.v-bill-cancel p, .v-bill-note { margin: 0; font-size: var(--t-sub); color: var(--ink-2); }
.v-bill-note { margin-top: 12px; }
.v-cancel.v-btn-danger { border-color: var(--red-line); color: var(--red); }
.v-cancel.v-btn-danger:hover { background: var(--red-tint); }

.v-plans-wrap { display: flex; flex-direction: column; gap: var(--gap); }
.v-plans-lede { display: flex; align-items: center; gap: 8px; margin: 0; padding: 14px 16px; border-radius: 16px; background: #fff4e5; color: #8a4b00; font-size: var(--t-sub); font-weight: 600; }
.v-plans { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr); gap: var(--gap); align-items: stretch; }
.v-plan {
  display: flex;
  flex-direction: column;
  padding: 26px;
  border-radius: var(--r-card);
  background: var(--card);
  box-shadow: var(--shadow-card);
}
.v-plan-std { box-shadow: 0 0 0 2px var(--g-500), var(--shadow-lift); }
.v-plan-name { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin: 0; font-size: var(--t-title3); font-weight: 700; letter-spacing: -0.02em; }
.v-plan-tag { padding: 4px 10px; border-radius: 999px; background: var(--fill); color: var(--ink-2); font-size: var(--t-cap); font-weight: 700; letter-spacing: 0; }
.v-plan-tag.is-go { background: var(--tint-2); color: var(--link-strong); }
.v-plan-price { margin: 14px 0 0; }
.v-plan-price b { font-size: 46px; font-weight: 700; letter-spacing: -0.045em; line-height: 1; }
.v-plan-price span { margin-left: 6px; font-size: var(--t-body); color: var(--ink-2); }
.v-plan-what { margin: 10px 0 18px; font-size: var(--t-sub); color: var(--ink-2); }
.v-plan .v-bill-list { margin-bottom: 22px; }
.v-buy { margin-top: auto; align-self: stretch; }
.v-consent { margin: 0; padding: 0 4px; font-size: var(--t-foot); color: var(--ink-3); line-height: 1.55; }

/* ── Narrow screens ───────────────────────────────────────────────────── */

@media (max-width: 1100px) {
  .v-spon-grid, .v-bill-grid, .v-plans { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 720px) {
  .v-controls { grid-template-columns: minmax(0, 1fr); gap: 18px; }
  .v-ev-row { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .v-ev-row .v-field:first-child { grid-column: 1 / -1; }
}
@media (max-width: 520px) {
  .v-object { padding: 18px; }
  .v-inst { padding: 18px 18px 0; }
  .v-drain { margin: 12px -18px 0; }
  .v-obj-head { flex-direction: column; }
  .v-note-row { flex-direction: column; }
  .v-note-save { width: 100%; }
  .v-state { font-size: var(--t-foot); gap: 5px; padding: 0 4px; }
  .v-state-dot { width: 6px; height: 6px; }
  .v-line { grid-template-columns: auto minmax(0, 1fr) auto; }
  .v-line-clear { grid-column: 2; justify-self: start; padding-left: 0; }
  .v-day { grid-template-columns: 80px minmax(0, 1fr) minmax(0, 1fr); }
  .v-ev { grid-template-columns: auto minmax(0, 1fr); }
  .v-ev-side { grid-column: 1 / -1; flex-direction: row; justify-content: space-between; align-items: center; }
  .v-w { grid-template-columns: 50px minmax(0, 1fr); gap: 10px; }
  .v-w::before { left: 56px; }
  .v-w::after { left: 61px; }
  .v-w > div { padding-left: 18px; }
  .v-inline-form { flex-direction: column; align-items: stretch; }
  .v-bill-facts { grid-template-columns: 1fr; }
}
