/*
 * Module      : Dialogue (styles)
 * Description : Styles for the visual-novel layer: the dialogue dock, box,
 *               portrait, name, and text; the collapsible filter panel and tag
 *               chips; dialogue controls; the animated choice list; and the
 *               price-change alert.
 */

.main-interface {
  --vn-h: clamp(96px, 9vh, 120px);
}

.vn-dock {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  background: transparent;
  z-index: 9999;
  display: flex;
  align-items: stretch;
  padding: 12px 24px 14px 9%;
  gap: 8px;
  pointer-events: none;
  transition: padding-left 0.3s ease;
}

/* Inactive profile picture (browsing mode) gets a bounding frame.
   Immune to the paint-order flash: .avatar-area is a permanent stacking
   context (z-index: 50) with a transparent background, so its negative-z
   pseudo occludes nothing — the portrait paints after it. */

.avatar-area.mode-small::before {
  content: '';
  position: absolute;
  pointer-events: none;
  z-index: -1;
  inset: -8px;
  border-style: solid;
  border-width: 14px;
  border-image-source: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='400' height='160'%3E%3ClinearGradient id='a' x1='0' y1='0' x2='0.35' y2='1'%3E%3Cstop offset='0' stop-color='%23ffffff' stop-opacity='0.60'/%3E%3Cstop offset='0.55' stop-color='%23ced2d8' stop-opacity='0.60'/%3E%3Cstop offset='1' stop-color='%23969ba4' stop-opacity='0.60'/%3E%3C/linearGradient%3E%3Cpath d='M 1 148 L 1 12 Q 1 1 12 1 L 388 1 Q 399 1 399 12 L 399 148 Q 399 159 388 159 L 12 159 Q 1 159 1 148 Z' fill='url(%23a)' stroke='%23ffffff' stroke-opacity='0.55' stroke-width='1.6' stroke-linejoin='round'/%3E%3C/svg%3E");
  border-image-slice: 14 fill;
  border-image-repeat: stretch;
  border-image-width: 14px;
}

/* ── Shells ───────────────────────────────────────────────────────────
   Two frames on the dock — the one element here that never animates.
   Animated elements (box, choices) form transient stacking contexts, and
   inside one, negative-z children paint ABOVE the element's own background
   (spec paint order: bg -> negative children -> content). That was the
   white flash: any per-element shell shows through during its fade/slide.
   Dock pseudos are immune, because the dock itself never transitions.

     ::before  dialogue + name tag frame. Notch shape keys off the MODE
               (full = wide/shallow for the horizontal tag; small = narrow/
               deep for the vertical tag), not the viewport. Hides with the
               box via :has().
     .vn-controls::before  controls frame, anchored to the column itself so
               it tracks every width state (160/48/38px) automatically.
               Flash-safe: the column never animates opacity/transform.

   Nine-slice discipline throughout: every curve inside a corner slice;
   width:slice ratio equal on all sides (1:1 in full, uniformly scaled in
   the slim variant), so corners are never distorted.                   */

.vn-dock::before {
  content: '';
  position: absolute;
  pointer-events: none;
  z-index: -1;
  left: calc(9% - 5px);
  right: 190px;
  top: -34px;
  bottom: 2px;
  border-style: solid;
  border-width: 57px 14px 14px 190px;
  border-image-source: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='400' height='160'%3E%3ClinearGradient id='a' x1='0' y1='0' x2='0.35' y2='1'%3E%3Cstop offset='0' stop-color='%23ffffff' stop-opacity='0.60'/%3E%3Cstop offset='0.55' stop-color='%23ced2d8' stop-opacity='0.60'/%3E%3Cstop offset='1' stop-color='%23969ba4' stop-opacity='0.60'/%3E%3C/linearGradient%3E%3Cpath d='M 1 149 L 1 53 Q 1 43 11 43 L 24 43 Q 32 43 32 35 L 32 13 Q 32 1 44 1 L 156 1 Q 168 1 168 13 L 168 31 Q 168 43 180 43 L 387 43 Q 399 43 399 55 L 399 147 Q 399 159 387 159 L 13 159 Q 1 159 1 147 Z' fill='url(%23a)' stroke='%23ffffff' stroke-opacity='0.55' stroke-width='1.6' stroke-linejoin='round'/%3E%3C/svg%3E");
  border-image-slice: 57 14 14 190 fill;
  border-image-repeat: stretch;
  border-image-width: 57px 14px 14px 190px;
  opacity: 1;
  transition: opacity 0.2s ease, left 0.3s ease;
}
.vn-dock:has(.vn-box.hidden)::before { opacity: 0; }

.vn-controls::before {
  content: '';
  position: absolute;
  pointer-events: none;
  z-index: -1;
  left: -4px;
  right: -4px;
  top: -6px;
  bottom: -12px;
  border-style: solid;
  border-width: 14px;
  border-image-source: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='400' height='160'%3E%3ClinearGradient id='a' x1='0' y1='0' x2='0.35' y2='1'%3E%3Cstop offset='0' stop-color='%23ffffff' stop-opacity='0.60'/%3E%3Cstop offset='0.55' stop-color='%23ced2d8' stop-opacity='0.60'/%3E%3Cstop offset='1' stop-color='%23969ba4' stop-opacity='0.60'/%3E%3C/linearGradient%3E%3Cpath d='M 1 148 L 1 12 Q 1 1 12 1 L 388 1 Q 399 1 399 12 L 399 148 Q 399 159 388 159 L 12 159 Q 1 159 1 148 Z' fill='url(%23a)' stroke='%23ffffff' stroke-opacity='0.55' stroke-width='1.6' stroke-linejoin='round'/%3E%3C/svg%3E");
  border-image-slice: 14 fill;
  border-image-repeat: stretch;
  border-image-width: 14px;
}


/* Small (50%) mode — single state at every width; mobile is its narrow end.
   --sm-gutter drives BOTH the dock padding and the frame's left, so the frame
   and the head move together: portrait sits at frame-x = (gutter - 12) -
   (gutter - 18) = 6px, independent of viewport width. The margin shrinks
   fluidly (clamp) and is consumed as the window narrows — no breakpoint snap.

   Contour is exact from border-box metrics (portrait 80x112 / gap 9 / tag
   36x72): over the portrait, DOWN into the gap, up over the shorter tag,
   concave out to the box top edge. All curves inside the corner slice;
   slice == width on every side. */
.main-interface[data-mode="small"] .vn-dock {
  --sm-gutter: clamp(18px, 4vw, 24px);
  padding-left: var(--sm-gutter);
  padding-right: var(--sm-gutter);
  padding-bottom: calc(14px + env(safe-area-inset-bottom, 0px));
}

.main-interface[data-mode="small"] .vn-dock::before {
  left: calc(var(--sm-gutter) - 18px);
  right: calc(var(--sm-gutter) + 49px);
  top: -114px;
  bottom: 2px;
  border-width: 137px 14px 14px 152px;
  border-image-source: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='400' height='260'%3E%3ClinearGradient id='a' x1='0' y1='0' x2='0.35' y2='1'%3E%3Cstop offset='0' stop-color='%23ffffff' stop-opacity='0.60'/%3E%3Cstop offset='0.55' stop-color='%23ced2d8' stop-opacity='0.60'/%3E%3Cstop offset='1' stop-color='%23969ba4' stop-opacity='0.60'/%3E%3C/linearGradient%3E%3Cpath d='M 1 247 L 1 20 Q 1 10 11 10 L 78 10 Q 88 10 88 20 L 88 96 Q 88 104 90.5 104 Q 93 104 93 96 L 93 60 Q 93 50 103 50 L 123 50 Q 133 50 133 60 L 133 110 Q 133 122 145 122 L 387 122 Q 399 122 399 134 L 399 247 Q 399 259 387 259 L 13 259 Q 1 259 1 247 Z' fill='url(%23a)' stroke='%23ffffff' stroke-opacity='0.55' stroke-width='1.6' stroke-linejoin='round'/%3E%3C/svg%3E");
  border-image-slice: 137 14 14 152 fill;
  border-image-width: 137px 14px 14px 152px;
}

.vn-box {
  flex: 1;
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  height: var(--vn-h);
  min-height: 0;
  max-height: var(--vn-h);
  padding: 14px 24px 16px;
  background: var(--parchment);
  background-clip: padding-box;
  border: 15px solid var(--vn-line);
  border-image: var(--lace-border) 22 15 round;
  border-image-outset: 0 2px 2px;
  border-radius: var(--radius-lg);
  box-shadow:
    0 10px 36px rgba(0,0,0,0.5);
  pointer-events: auto;
  cursor: pointer;
  transform-origin: center;
  transition: opacity 0.2s ease, transform 0.3s ease;
}
.vn-box.vn-paged { cursor: pointer; }
.vn-box.hidden { opacity: 0; transform: scaleY(0.2); pointer-events: none; }
.vn-box.has-portrait.hidden {
  opacity: 1;
  transform: none;
  background: transparent;
  border-color: transparent;
  border-image: none;
  box-shadow: none;
}
.vn-box.has-portrait.hidden .vn-text,
.vn-box.has-portrait.hidden .vn-cursor { opacity: 0; transition: opacity 0.2s ease; }
.vn-box.has-portrait.hidden .vn-cursor { display: none; }
.vn-box.has-portrait.hidden .vn-name { opacity: 0; transition: opacity 0.18s ease; }
.vn-box.has-portrait.hidden .vn-head { transform: translateY(calc(var(--vn-h) + 10px)); }

.vn-portrait {
  position: static;
  flex: 0 0 auto;
  width: 100px;
  height: 140px;
  background: var(--vn-surface);
  background-clip: padding-box;
  border: 14px solid var(--vn-line);
  border-image: var(--lace-border) 22 15 round;
  border-radius: 6px;
  overflow: hidden;
  display: none;
  pointer-events: auto;
  cursor: pointer;
}
.vn-portrait img { width: 100%; height: 100%; object-fit: cover; object-position: top center; transform: scale(1.6); transform-origin: top center; }
.vn-box.has-portrait { padding-left: 24px; }
.vn-box.has-portrait .vn-portrait { display: block; }

.vn-head {
  position: absolute;
  bottom: 100%;
  left: 16px;
  display: flex;
  align-items: flex-end;
  gap: 9px;
  margin: 0;
  z-index: 5;
  transition: transform 0.35s ease;
}
.vn-name {
  display: inline-block;
  flex: 0 0 auto;
  padding: 5px 16px;
  background: var(--parchment);
  background-clip: padding-box;
  border: 9px solid var(--vn-line);
  border-image: var(--lace-border) 22 15 round;
  border-radius: 5px 5px 0 0;
  font-family: var(--font-title);
  font-size: 22px; font-weight: 600;
  letter-spacing: 0.18em;
  color: var(--accent);
  margin: 0;
}
.vn-box.has-portrait .vn-head { bottom: calc(100% + 2px); left: -12px; }
.vn-box.has-portrait .vn-name {
  writing-mode: vertical-rl;
  text-orientation: upright;
  border-radius: 5px;
  padding: 10px 5px;
  font-size: 22px;
  letter-spacing: 0.04em;
}
.vn-text {
  font-size: 21px;
  line-height: 1.5;
  letter-spacing: 0.01em;
  color: var(--vn-ink);
  font-weight: 400;
  text-wrap: pretty;
  align-self: stretch;
  flex: 1 1 auto;
  min-height: 0;
  overflow: hidden;
}

.vn-cursor {
  position: absolute;
  right: 22px; bottom: 14px;
  font-size: 12px;
  color: var(--accent);
  animation: blink 1.3s ease-in-out infinite;
}
.vn-box.vn-more .vn-cursor {
  color: var(--accent);
  animation: vn-more-bounce 0.9s ease-in-out infinite;
}
@keyframes vn-more-bounce {
  0%, 100% { transform: translateY(0); opacity: 1; }
  50% { transform: translateY(3px); opacity: 0.7; }
}

.filter-panel {
  position: absolute;
  left: 12px;
  top: 64px;
  bottom: calc((100% - 52px) * 0.35 + 12px);
  width: calc(8% - 12px);
  min-width: 110px;
  z-index: 9998;
  display: flex;
  flex-direction: column;
  pointer-events: auto;
}
.filter-panel-head {
  display: flex; align-items: center; gap: 8px;
  padding: 8px 10px;
  background: var(--chrome-panel-solid, var(--chrome-panel));
  border: 1px solid var(--panel-border);
  border-radius: var(--radius);
  color: var(--text-bright);
  font-family: var(--font-title);
  font-size: 11px;
  letter-spacing: 0.18em;
  cursor: pointer;
  transition: color 0.15s, border-color 0.15s, background 0.15s;
  text-align: left;
}
.filter-panel-head > svg { flex-shrink: 0; opacity: 1; }
.filter-panel-head .filter-panel-label { flex: 1; text-align: left; }
.filter-panel-head .filter-panel-chevron {
  transition: transform 0.2s ease;
  opacity: 0.7;
}
.filter-panel-head:hover {
  color: var(--text-bright);
  border-color: var(--panel-border-hover);
}
.filter-panel.open .filter-panel-head {
  color: var(--text-bright);
  border-color: var(--accent-cyan);
}
.filter-panel.open .filter-panel-chevron {
  transform: rotate(180deg);
  opacity: 1;
}
.filter-panel-body {
  display: none;
  flex-direction: column;
  gap: 12px;
  margin-top: 6px;
  padding: 12px 12px 14px;
  background: var(--chrome-panel-solid, var(--chrome-panel));
  border: 1px solid var(--panel-border);
  border-radius: var(--radius);
  box-shadow: 0 16px 40px rgba(0,0,0,0.5), inset 0 0 0 1px rgba(230,181,168,0.06);
  overflow-y: auto;
  flex: 1 1 auto;
  min-height: 0;
  scrollbar-width: thin;
  scrollbar-color: rgba(230,181,168,0.3) transparent;
}
.filter-panel.open .filter-panel-body { display: flex; }
.filter-panel-body::-webkit-scrollbar { width: 5px; }
.filter-panel-body::-webkit-scrollbar-thumb { background: rgba(230,181,168,0.3); border-radius: 3px; }

.filter-search {
  width: 100%;
  padding: 7px 10px;
  background: rgba(20,40,70,0.4);
  border: 1px solid var(--panel-border);
  border-radius: var(--radius);
  color: var(--text-bright);
  font-family: var(--font);
  font-size: 11px;
  outline: none;
  transition: border-color 0.15s, background 0.15s;
}
.filter-search:focus {
  border-color: var(--accent-cyan);
  background: rgba(20,40,70,0.6);
}
.filter-search::placeholder { color: var(--text-dim); }

.filter-price-row {
  display: flex; align-items: center; gap: 8px;
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--text-mid);
}
.filter-price-row input[type="number"] {
  width: 62px;
  padding: 4px 6px;
  background: rgba(20,40,70,0.4);
  border: 1px solid var(--panel-border);
  border-radius: var(--radius);
  color: var(--text-bright);
  font-family: var(--font-mono);
  font-size: 10px;
  outline: none;
}
.filter-price-row input[type="number"]:focus { border-color: var(--accent-cyan); }
.filter-price-row .filter-price-dash { color: var(--text-dim); }

.filter-clear {
  margin-top: 4px;
  padding: 6px 10px;
  background: transparent;
  border: 1px solid var(--panel-border);
  border-radius: var(--radius);
  color: var(--text-mid);
  font-family: var(--font-title);
  font-size: 10px;
  letter-spacing: 0.16em;
  cursor: pointer;
  transition: all 0.15s;
}
.filter-clear:hover {
  color: var(--text-bright);
  border-color: var(--accent-cyan);
}

.main-interface[data-mode="small"] .filter-panel {
  top: 64px;
  bottom: auto;
  left: 12px;
  width: 110px;
  min-width: 110px;
  max-height: 60vh;
}

.main-interface[data-mode="small"] .filter-panel.open {
  width: 220px;
}

.main-interface:not([data-mode="small"]) .filter-panel.open {
  width: 220px;
}

.filter-rail { display: none !important; }
.rail-section { display: flex; flex-direction: column; gap: 5px; }
.rail-head {
  font-family: var(--font-title);
  font-size: 9px;
  letter-spacing: 0.24em;
  color: var(--text-dim);
  padding: 2px 0 4px;
  border-bottom: 1px solid var(--panel-border);
  margin-bottom: 2px;
}
.rail-chips { display: flex; flex-wrap: wrap; gap: 4px; }
.rail-empty { font-size: 10px; color: var(--text-dim); font-style: italic; opacity: 0.6; }
.rail-chip {
  padding: 4px 9px;
  background: rgba(20,40,70,0.4);
  border: 1px solid var(--panel-border);
  border-radius: 14px;
  color: var(--text-mid);
  font-size: 10px;
  letter-spacing: 0.04em;
  cursor: pointer;
  transition: all 0.15s;
  text-transform: lowercase;
}
.rail-chip:hover { background: rgba(230, 181, 168,0.12); color: var(--text-bright); }
.rail-chip.active {
  background: rgba(230, 181, 168,0.22);
  border-color: var(--accent-cyan);
  color: var(--text-bright);
}

.main-interface[data-page="shop"] .shop-col {
  padding-right: 24px;
}

.vn-controls {
  display: flex; flex-direction: column;
  gap: 4px;
  position: relative;
  pointer-events: auto;
  width: 80px;
  height: var(--vn-h);
  align-self: flex-start;
}
.vn-ctrl {
  flex: 1 1 0;
  min-height: 0;
  padding: 7px 10px;
  background: var(--parchment);
  background-clip: padding-box;
  border: 9px solid var(--vn-line);
  border-image: var(--lace-border) 22 15 round;
  border-radius: var(--radius);
  color: var(--vn-ink);
  font-family: var(--font);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-align: left;
  cursor: pointer;
  transition: all 0.15s;
  display: flex; align-items: center; gap: 6px;
  text-transform: uppercase;
}
.vn-ctrl:hover { background: rgba(156, 74, 58,0.10); color: var(--vn-ink); border-color: var(--panel-border-hover); }
.vn-ctrl.active { background: rgba(156, 74, 58,0.16); color: var(--accent); border-color: var(--accent); }
.vn-ctrl .dot { width: 5px; height: 5px; border-radius: 50%; background: var(--vn-ink-soft); }
.vn-ctrl.active .dot { background: var(--accent); box-shadow: 0 0 6px var(--accent); }
.vn-ctrl svg { flex: 0 0 auto; }
.vn-ctrl.is-hidden { display: none; }

.main-interface[data-mode="full"] .vn-controls { width: 160px; }
.main-interface[data-mode="small"] .vn-controls { width: 38px; gap: 6px; }
.main-interface[data-mode="small"] .vn-ctrl { padding: 6px 0; border-width: 5px; }
.main-interface[data-mode="small"] .vn-ctrl svg { width: 15px; height: 15px; }
.main-interface[data-mode="small"] .vn-portrait { width: 80px; height: 112px; border-width: 6px; }
.main-interface[data-mode="small"] .vn-box.has-portrait .vn-name { font-size: 16px; padding: 7px 5px; line-height: 1; white-space: nowrap; border-width: 5px; }
.main-interface[data-mode="small"] .vn-box { margin-left: -16px; margin-right: 8px; } /* horizontal trim — mode-scoped, never width-scoped, so it cannot flip at a breakpoint */
.main-interface[data-mode="small"] .vn-ctrl { justify-content: center; padding-left: 0; padding-right: 0; gap: 0; }
.main-interface[data-mode="small"] .vn-ctrl span { display: none; }

.choices {
  position: absolute;
  left: 180px; right: 0;
  top: 104px;
  bottom: calc(var(--vn-h) + 40px);
  overflow-y: auto;
  z-index: 9998;
  display: flex; flex-direction: column; gap: 14px;
  pointer-events: none;
  padding: 0 40px 0 0;
}
.choices.visible { pointer-events: auto; }
.choice {
  display: grid;
  grid-template-columns: 100px 1fr;
  align-items: center;
  width: 100%;
  min-height: 85px;
  padding: 22px 32px;
  background: var(--parchment);
  background-clip: padding-box;
  border: 15px solid var(--vn-line);
  border-image: var(--lace-border) 22 15 round;
  color: var(--vn-ink);
  font-family: var(--font);
  font-size: 26px;
  line-height: 1.35;
  text-align: left;
  cursor: pointer;
  position: relative;
  transition: transform 0.42s cubic-bezier(.2,.7,.2,1), opacity 0.32s ease, background 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
}

.choice {
  opacity: 0;
  transform: translateX(-120%);
  pointer-events: none;
}
.choices.visible .choice {
  opacity: 1;
  transform: translateX(0);
  pointer-events: auto;
}
.choice .lead {
  font-family: var(--font-mono);
  font-size: 15px;
  color: var(--accent);
  letter-spacing: 0.22em;
}
.choices.visible .choice:nth-child(1) { transition-delay: 0.04s; }
.choices.visible .choice:nth-child(2) { transition-delay: 0.14s; }
.choices.visible .choice:nth-child(3) { transition-delay: 0.24s; }
.choices.visible .choice:nth-child(4) { transition-delay: 0.34s; }
.choices.dismissing .choice {
  transform: translateX(120%);
  opacity: 0;
  pointer-events: none;
  transition: transform 0.28s cubic-bezier(.5,.0,.75,.0), opacity 0.22s ease;
}
.choices.dismissing .choice:nth-child(1) { transition-delay: 0s; }
.choices.dismissing .choice:nth-child(2) { transition-delay: 0.05s; }
.choices.dismissing .choice:nth-child(3) { transition-delay: 0.10s; }
.choices.dismissing .choice:nth-child(4) { transition-delay: 0.15s; }
.choice:hover,
.choice:focus,
.choice:focus-visible {
  background: linear-gradient(90deg, rgba(185,58,58,0.85) 0%, #2a0a0a 70%, #000 100%) !important;
  border-color: var(--accent) !important;
  color: #fff !important;
  opacity: 1 !important;
  box-shadow: inset 0 0 0 1px var(--accent), 0 0 24px rgba(185,58,58,0.5) !important;
  text-shadow: 0 0 12px rgba(230,181,168,0.7) !important;
  outline: none;
}
.choices-backdrop {
  position: absolute; inset: 0;
  z-index: 1;
  background: transparent;
  cursor: pointer;
}

.alert-layer {
  position: fixed; inset: 0;
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.22s ease;
}
.alert-layer.visible { opacity: 1; }
.price-alert-backdrop {
  position: absolute; inset: 0;
  background: rgba(0,0,0,0.62);
}
.price-alert-wrap {
  position: relative;
  z-index: 1;
  width: min(520px, calc(100vw - 48px));
  padding: 0 24px;
}
.price-alert {
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 28px 32px;
  background: var(--vn-surface);
  background-clip: padding-box;
  border: 15px solid var(--vn-line);
  border-image: var(--lace-border) 22 15 round;
  border-radius: var(--radius-lg);
  color: var(--vn-ink);
  font-family: var(--font);
  transform: translateX(-24px);
  opacity: 0;
  transition: transform 0.42s cubic-bezier(.2,.7,.2,1), opacity 0.32s ease;
}
.alert-layer.visible .price-alert {
  transform: translateX(0);
  opacity: 1;
}
.price-alert-kicker {
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: 0.22em;
  color: var(--accent);
}
.price-alert-name {
  font-size: 24px;
  line-height: 1.3;
  word-break: break-word;
}
.price-alert-prices {
  display: flex;
  align-items: baseline;
  gap: 14px;
  font-size: 26px;
}
.price-alert-prices .was {
  color: var(--vn-ink-soft);
  text-decoration: line-through;
}
.price-alert-prices .arrow { color: var(--vn-ink-soft); font-size: 20px; }
.price-alert-up .now { color: var(--accent); }
.price-alert-down .now { color: var(--vn-ink); }
.price-alert-ok {
  align-self: flex-end;
  min-width: 120px;
  padding: 12px 28px;
  background: var(--vellum);
  border: 1px solid var(--accent);
  border-left: 3px solid var(--accent);
  color: var(--vn-ink);
  font-family: var(--font);
  font-size: 18px;
  letter-spacing: 0.08em;
  cursor: pointer;
  transition: background 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease, color 0.18s ease;
}
.price-alert-ok:hover,
.price-alert-ok:focus,
.price-alert-ok:focus-visible {
  background: linear-gradient(90deg, rgba(185,58,58,0.85) 0%, #2a0a0a 70%, #000 100%);
  border-color: var(--accent);
  border-left-width: 5px;
  color: #fff;
  box-shadow: inset 0 0 0 1px var(--accent), 0 0 24px rgba(185,58,58,0.5);
  text-shadow: 0 0 12px rgba(230,181,168,0.7);
  outline: none;
}

.price-alert-message {
  font-size: 15px;
  line-height: 1.6;
  color: var(--vn-ink-soft);
  white-space: pre-wrap;
}
.price-alert-actions {
  display: flex;
  justify-content: flex-end;
  gap: 12px;
}
.price-alert-btn {
  min-width: 120px;
  padding: 12px 28px;
  background: var(--vellum);
  border: 1px solid var(--accent);
  border-left: 3px solid var(--accent);
  color: var(--vn-ink);
  font-family: var(--font);
  font-size: 18px;
  letter-spacing: 0.08em;
  cursor: pointer;
  transition: background 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease, color 0.18s ease;
}
.price-alert-btn:hover,
.price-alert-btn:focus,
.price-alert-btn:focus-visible {
  background: linear-gradient(90deg, rgba(185,58,58,0.85) 0%, #2a0a0a 70%, #000 100%);
  border-color: var(--accent);
  border-left-width: 5px;
  color: #fff;
  box-shadow: inset 0 0 0 1px var(--accent), 0 0 24px rgba(185,58,58,0.5);
  text-shadow: 0 0 12px rgba(230,181,168,0.7);
  outline: none;
}
.price-alert-btn--cancel {
  border-left-color: var(--vn-line);
  color: var(--vn-ink-soft);
}
.price-alert-btn--cancel:hover,
.price-alert-btn--cancel:focus,
.price-alert-btn--cancel:focus-visible {
  background: linear-gradient(90deg, rgba(0,0,0,0.88) 0%, rgba(0,0,0,0.62) 100%);
  border-color: var(--panel-border-hover);
  border-left-color: var(--panel-border-hover);
  box-shadow: none;
  color: var(--text-bright);
  text-shadow: none;
}

.main-interface[data-mode="small"] .avatar-area,
.avatar-area.mode-small { display: none !important; }

@media (max-width: 960px) {
  .main-interface[data-drawer="open"] .choices,
  .main-interface[data-account="open"] .choices { display: none; }
}
