/* Binance-inspired OIL MONITOR UA */
:root {
  --bg: #0b0e11;
  --bg-2: #12161c;
  --card: #1e2329;
  --card-hover: #2b3139;
  --border: #2b3139;
  --text: #eaecef;
  --muted: #848e9c;
  --yellow: #f0b90b;
  --yellow-dim: rgba(240, 185, 11, 0.12);
  --green: #0ecb81;
  --red: #f6465d;
  --nav-h: 56px;
  --safe-b: env(safe-area-inset-bottom, 0px);
  --r: 14px;
  --r-md: 18px;
  --r-lg: 24px;
  --r-pill: 999px;
  --font: 'IBM Plex Sans', 'BinancePlex', system-ui, -apple-system, sans-serif;
  --font-num: 'IBM Plex Sans', 'BinancePlex', system-ui, sans-serif;
  font-family: var(--font);
  color: var(--text);
  background: var(--bg);
  line-height: 1.45;
  font-synthesis: none;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

* {
  box-sizing: border-box;
}

html,
body,
#app {
  margin: 0;
  min-height: 100%;
  background: var(--bg);
}

body {
  overflow-x: hidden;
}

button,
input,
select {
  font: inherit;
}

button {
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}

a {
  color: inherit;
  text-decoration: none;
}

.app-shell {
  position: relative;
  min-height: 100vh;
  min-height: 100dvh;
  padding-bottom: calc(var(--nav-h) + var(--safe-b) + 28px);
  background: var(--bg);
}

.app-shell--detail {
  padding-bottom: calc(12px + var(--safe-b));
}

/* no ambient blobs */
.ambient {
  display: none;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  background: var(--bg);
  border-bottom: 1px solid var(--border);
  padding: 12px 16px;
}

.brand-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.brand-logo {
  width: auto;
  height: auto;
  border: 0;
  border-radius: var(--r);
  background: none;
  box-shadow: none;
  color: var(--yellow);
  display: grid;
  place-items: center;
  flex-shrink: 0;
  padding: 0;
}

.brand h1 {
  margin: 0;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.02em;
  line-height: 1.2;
  color: var(--text);
}

.brand p {
  margin: 2px 0 0;
  font-size: 11px;
  color: var(--muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 58vw;
}

.icon-btn {
  width: 36px;
  height: 36px;
  border: 0;
  border-radius: var(--r-pill);
  background: transparent;
  color: var(--muted);
  display: grid;
  place-items: center;
  position: relative;
  padding: 0;
}

.icon-btn:hover,
.icon-btn:active {
  color: var(--yellow);
}

.topbar-actions {
  display: flex;
  align-items: center;
  gap: 4px;
  flex-shrink: 0;
}

.icon-btn--accent {
  border: 1px solid color-mix(in srgb, var(--yellow) 42%, var(--border));
  background: var(--yellow-dim);
  color: var(--yellow);
}

.icon-btn--accent:active {
  background: color-mix(in srgb, var(--yellow) 22%, var(--card));
}

.badge-dot {
  position: absolute;
  top: 2px;
  right: 2px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--yellow);
  box-shadow: 0 0 0 2px var(--bg);
}

.page-stage {
  position: relative;
  min-height: 48vh;
}

.page-stage.is-fetching .page:not(.page-skeleton) {
  opacity: 0.45;
  filter: saturate(0.85);
  transition: opacity 0.2s ease, filter 0.2s ease;
  pointer-events: none;
}

.page-stage.is-fetching::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  z-index: 30;
  background: linear-gradient(
    90deg,
    transparent,
    var(--yellow),
    transparent
  );
  animation: pageLoadBar 0.85s ease-in-out infinite;
  pointer-events: none;
}

.page-stage.is-entering .page {
  animation: pageFadeIn 0.24s ease-out;
}

#app.app-root--enter {
  animation: pageFadeIn 0.24s ease-out;
}

@keyframes pageFadeIn {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

@keyframes pageLoadBar {
  0% {
    transform: translateX(-100%);
  }
  100% {
    transform: translateX(100%);
  }
}

.page-skeleton {
  pointer-events: none;
}

.sk-block {
  border-radius: var(--r-md);
  background: linear-gradient(
    90deg,
    var(--card) 0%,
    var(--card-hover) 50%,
    var(--card) 100%
  );
  background-size: 200% 100%;
  animation: skShimmer 1.1s ease-in-out infinite;
}

.sk-block--hero {
  height: 72px;
  margin-bottom: 14px;
}

.sk-block--card {
  height: 120px;
  margin-bottom: 10px;
}

.sk-block--short {
  height: 88px;
}

.sk-row {
  display: flex;
  gap: 8px;
  margin-bottom: 14px;
}

.sk-pill {
  flex: 1;
  height: 36px;
  border-radius: var(--r-pill);
  background: linear-gradient(
    90deg,
    var(--card) 0%,
    var(--card-hover) 50%,
    var(--card) 100%
  );
  background-size: 200% 100%;
  animation: skShimmer 1.1s ease-in-out infinite;
}

@keyframes skShimmer {
  0% {
    background-position: 100% 0;
  }
  100% {
    background-position: -100% 0;
  }
}

.page {
  padding: 12px 16px 0;
}

.hero {
  position: relative;
  overflow: hidden;
  border-radius: var(--r-md);
  min-height: 0;
  background: var(--card);
  border: 1px solid var(--border);
  padding: 16px;
  box-shadow: none;
  display: block;
}

.hero::before,
.hero::after {
  display: none;
}

.hero h2 {
  margin: 0;
  position: static;
  font-size: 20px;
  font-weight: 600;
  letter-spacing: 0;
  max-width: none;
  line-height: 1.25;
  color: var(--text);
}

.hero span {
  position: static;
  display: block;
  margin-top: 6px;
  color: var(--muted);
  font-size: 12px;
}

.hero--market {
  margin-bottom: 4px;
}

.page--market .section-title {
  margin-top: 20px;
}

.section-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin: 18px 0 10px;
}

.section-title h3 {
  margin: 0;
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
}

.section-title a,
.section-title button.linkish {
  border: 0;
  background: transparent;
  color: var(--yellow);
  font-size: 12px;
  font-weight: 500;
  padding: 0;
  border-radius: 0;
}

.fuel-scroll {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding: 0 0 4px;
  scrollbar-width: none;
  scroll-snap-type: x mandatory;
}

.fuel-scroll::-webkit-scrollbar {
  display: none;
}

.fuel-card {
  min-width: 132px;
  scroll-snap-align: start;
  border-radius: var(--r-md);
  background: var(--card);
  border: 1px solid var(--border);
  padding: 12px;
  text-align: left;
  color: var(--text);
  transition: border-color 0.15s ease, background 0.15s ease;
}

.fuel-card__ico,
.fuel-ico-img {
  display: block;
  flex-shrink: 0;
}

.fuel-card__ico {
  margin-bottom: 6px;
  line-height: 0;
}

.fuel-ico-img {
  object-fit: contain;
  pointer-events: none;
}

.chip--fuel {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 12px 8px 8px;
}

.chip--fuel .fuel-ico-img {
  width: 22px;
  height: 22px;
}

.fuel-card:active {
  transform: none;
}

.fuel-card.active {
  border-color: var(--yellow);
  box-shadow: none;
  background: var(--card);
}

.fuel-card .label {
  color: var(--muted);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.fuel-card.active .label {
  color: var(--yellow);
}

.fuel-card .price {
  margin-top: 10px;
  font-family: var(--font-num);
  font-size: 20px;
  font-weight: 600;
  letter-spacing: 0;
  line-height: 1.1;
  font-variant-numeric: tabular-nums;
}

.fuel-card .unit,
.kpi-value .unit,
.detail-price .unit {
  font-family: var(--font);
  font-size: 11px;
  color: var(--muted);
  font-weight: 500;
}

.delta {
  margin-top: 6px;
  font-size: 12px;
  font-weight: 500;
  font-family: var(--font-num);
  font-variant-numeric: tabular-nums;
}

.delta.up {
  color: var(--red);
}

.delta.down {
  color: var(--green);
}

.delta.flat {
  color: var(--muted);
}

.card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  padding: 14px;
  box-shadow: none;
}

.summary-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.summary-main {
  grid-column: 1 / -1;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 2px;
}

.kpi-label {
  color: var(--muted);
  font-size: 12px;
  font-weight: 500;
}

.kpi-value {
  margin-top: 4px;
  font-family: var(--font-num);
  font-size: 24px;
  font-weight: 600;
  letter-spacing: 0;
  line-height: 1.15;
  font-variant-numeric: tabular-nums;
}

.kpi-value.sm {
  font-size: 16px;
}

.chip-row {
  display: flex;
  gap: 6px;
  overflow-x: auto;
  scrollbar-width: none;
  margin-bottom: 12px;
  padding: 0;
}

.chip-row::-webkit-scrollbar {
  display: none;
}

.chip {
  border-radius: var(--r-pill);
  border: 1px solid var(--border);
  background: transparent;
  color: var(--muted);
  padding: 8px 14px;
  font-size: 13px;
  font-weight: 500;
  white-space: nowrap;
}

.chip:active {
  transform: none;
}

.chip.active {
  background: var(--yellow);
  border-color: var(--yellow);
  color: #0b0e11;
  box-shadow: none;
}

.filters {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  scrollbar-width: none;
  margin-bottom: 12px;
}

.filters::-webkit-scrollbar {
  display: none;
}

.filter-btn,
.filter-select {
  flex: 0 0 auto;
  border-radius: var(--r-pill);
  border: 1px solid var(--border);
  background: var(--card);
  color: var(--text);
  padding: 8px 12px;
  font-size: 12px;
  font-weight: 500;
}

.filter-select {
  appearance: none;
  padding-right: 26px;
  background-image: linear-gradient(45deg, transparent 50%, var(--muted) 50%),
    linear-gradient(135deg, var(--muted) 50%, transparent 50%);
  background-position: calc(100% - 12px) 55%, calc(100% - 8px) 55%;
  background-size: 5px 5px, 5px 5px;
  background-repeat: no-repeat;
  background-color: var(--card);
}

.offer-list,
.price-table {
  display: flex;
  flex-direction: column;
  gap: 0;
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  overflow: hidden;
  background: var(--card);
}

.offer-row,
.price-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 12px;
  align-items: center;
  background: transparent;
  border: 0;
  border-bottom: 1px solid var(--border);
  border-radius: 0;
  padding: 12px 14px;
  color: inherit;
  text-align: left;
  box-shadow: none;
}

.offer-row:last-child,
.price-row:last-child {
  border-bottom: 0;
}

.offer-row:active,
.price-row:active {
  transform: none;
  background: var(--card-hover);
}

.offer-row:hover,
.price-row:hover {
  border-color: transparent;
  background: var(--card-hover);
  box-shadow: none;
}

.price-row {
  grid-template-columns: 1.25fr 1fr 0.75fr 0.85fr;
}

/* no colored icon blocks */
.trader-ico {
  width: 40px;
  height: 40px;
  border-radius: var(--r);
  background: var(--bg-2);
  border: 1px solid var(--border);
  box-shadow: none;
  color: var(--yellow);
  display: grid;
  place-items: center;
  flex-shrink: 0;
  overflow: hidden;
}

.trader-ico--lg {
  width: 48px;
  height: 48px;
}

.company-logo-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
  background: #fff;
}

.company-logo-fallback {
  display: grid;
  place-items: center;
  border-radius: inherit;
  background: var(--yellow-dim);
  color: var(--yellow);
  font-weight: 700;
  letter-spacing: 0.02em;
  line-height: 1;
}

.row-main {
  display: flex;
  gap: 10px;
  align-items: center;
  min-width: 0;
}

.row-main strong {
  display: block;
  font-size: 14px;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.row-main span {
  display: block;
  margin-top: 2px;
  color: var(--muted);
  font-size: 12px;
}

.price-cell {
  font-family: var(--font-num);
  font-weight: 600;
  font-size: 14px;
  text-align: right;
  font-variant-numeric: tabular-nums;
}

.muted {
  color: var(--muted);
}

.chart-wrap {
  border-radius: var(--r-md);
  overflow: hidden;
  width: 100%;
  height: 240px;
  min-height: 200px;
  background: var(--bg-2);
  border: 1px solid var(--border);
  margin: 4px 0 12px;
  position: relative;
}

.chart-canvas {
  display: block;
  width: 100%;
  height: 100%;
}

.range-row {
  display: flex;
  gap: 6px;
  margin: 4px 0 12px;
  overflow-x: auto;
  scrollbar-width: none;
}

.range-row::-webkit-scrollbar {
  display: none;
}

.range-btn {
  border-radius: var(--r-pill);
  border: 1px solid var(--border);
  background: transparent;
  color: var(--muted);
  padding: 6px 12px;
  font-size: 12px;
  font-weight: 500;
}

.range-btn.active {
  background: var(--yellow-dim);
  border-color: var(--yellow);
  color: var(--yellow);
  box-shadow: none;
}

.stats-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin-top: 10px;
}

.stat {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--r);
  padding: 10px;
  overflow: hidden;
}

.stat .kpi-value {
  font-size: 14px;
}

.link-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  padding: 14px;
  margin-top: 10px;
  text-align: left;
  color: inherit;
  width: 100%;
}

.link-card:active {
  transform: none;
  background: var(--card-hover);
}

.link-card strong {
  font-size: 14px;
  font-weight: 600;
}

/* Bottom nav — rounded floating bar */
.bottom-dock {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 40;
  padding: 0 12px calc(10px + var(--safe-b));
  pointer-events: none;
  border-top: 0;
  background: transparent;
}

.bottom-dock__glow {
  display: none;
}

.bottom-dock__inner {
  pointer-events: auto;
  position: relative;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  padding: 4px;
  border-radius: var(--r-lg);
  background: var(--card);
  border: 1px solid var(--border);
  box-shadow: none;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}

.bottom-dock__indicator {
  position: absolute;
  top: 4px;
  bottom: 4px;
  left: 0;
  height: auto;
  border-radius: var(--r-md);
  background: var(--yellow-dim);
  border: 0;
  box-shadow: none;
  transition: transform 0.25s ease, width 0.25s ease;
  will-change: transform, width;
  pointer-events: none;
}

.dock-item {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  min-height: var(--nav-h);
  border-radius: var(--r-md);
  color: var(--muted);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.02em;
}

.dock-item__icon {
  display: grid;
  place-items: center;
  width: 22px;
  height: 22px;
  background: none;
  border-radius: var(--r);
  filter: none;
  transition: color 0.15s ease;
}

.dock-item__label {
  opacity: 1;
}

.dock-item.active {
  color: var(--yellow);
}

.dock-item.active .dock-item__icon {
  transform: none;
  filter: none;
  color: var(--yellow);
}

.dock-item.active .dock-item__label {
  transform: none;
}

.dock-item:active .dock-item__icon {
  transform: none;
}

.detail-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}

.detail-head h2 {
  margin: 0;
  font-size: 16px;
  font-weight: 600;
}

.detail-price {
  font-family: var(--font-num);
  font-size: 32px;
  font-weight: 600;
  margin: 8px 0 4px;
  letter-spacing: 0;
  line-height: 1.1;
  font-variant-numeric: tabular-nums;
}

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

.meta-item {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
  font-size: 13px;
  font-weight: 500;
}

.meta-item .ico {
  width: auto;
  height: auto;
  border-radius: 0;
  background: none;
  color: var(--muted);
  display: grid;
  place-items: center;
  flex-shrink: 0;
}

.meta-item span {
  color: var(--muted);
  margin-right: 6px;
  font-weight: 400;
}

.actions {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 8px;
  margin-top: 16px;
}

.btn-primary {
  border: 0;
  border-radius: var(--r-pill);
  background: var(--yellow);
  color: #0b0e11;
  font-weight: 600;
  font-size: 14px;
  padding: 12px 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  box-shadow: none;
}

.btn-primary:active {
  transform: none;
  filter: brightness(0.95);
}

.btn-primary:disabled {
  opacity: 0.5;
}

.btn-ghost {
  width: 44px;
  border-radius: var(--r-pill);
  border: 1px solid var(--border);
  background: transparent;
  color: var(--text);
  display: grid;
  place-items: center;
}

.form {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.form label {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 12px;
  color: var(--muted);
  font-weight: 500;
}

.form input,
.form select {
  border-radius: var(--r);
  border: 1px solid var(--border);
  background: var(--bg);
  color: var(--text);
  padding: 11px 14px;
  font-size: 14px;
}

.form input:focus,
.form select:focus {
  outline: none;
  border-color: var(--yellow);
  box-shadow: none;
}

/* Оператор / адмін: додати ціну */
.operator-home {
  margin: 14px 0 6px;
  padding: 14px;
  border-radius: var(--r-md);
  border: 1px solid var(--border);
  background: linear-gradient(165deg, var(--card) 0%, var(--bg-2) 100%);
}

.operator-home__head {
  margin-bottom: 12px;
}

.operator-home__title {
  margin: 8px 0 2px;
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
}

.operator-home__hint {
  margin: 0;
  font-size: 11px;
  color: var(--muted);
}

.operator-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 3px 10px;
  border-radius: var(--r-pill);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.operator-pill.role-admin {
  color: var(--yellow);
  background: var(--yellow-dim);
  border: 1px solid color-mix(in srgb, var(--yellow) 35%, transparent);
}

.operator-pill.role-operator {
  color: #6bc5ff;
  background: color-mix(in srgb, #6bc5ff 14%, var(--card));
  border: 1px solid color-mix(in srgb, #6bc5ff 28%, transparent);
}

.add-price-block {
  margin-top: 16px;
}

.add-price-block--home {
  margin-top: 0;
}

.add-price-block--home .add-price-cta {
  border-color: color-mix(in srgb, var(--yellow) 28%, var(--border));
  background: var(--card);
}

.add-price-cta {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px 18px;
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  background: linear-gradient(135deg, var(--card) 0%, var(--bg-2) 100%);
  color: var(--text);
  text-align: left;
  transition: border-color 0.2s ease, background 0.2s ease;
}

.add-price-cta:active,
.add-price-cta--open {
  border-color: var(--yellow);
  background: var(--card);
}

.add-price-cta__icon {
  width: 52px;
  height: 52px;
  border-radius: var(--r);
  background: var(--yellow-dim);
  display: grid;
  place-items: center;
  flex-shrink: 0;
}

.add-price-cta__copy {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.add-price-cta__copy strong {
  font-size: 17px;
  font-weight: 600;
  color: var(--text);
}

.add-price-cta__copy span {
  font-size: 12px;
  color: var(--muted);
}

.add-price-cta__chev {
  color: var(--muted);
  transition: transform 0.22s ease, color 0.15s ease;
  display: grid;
  place-items: center;
}

.add-price-cta--open .add-price-cta__chev {
  transform: rotate(180deg);
  color: var(--yellow);
}

.add-price-panel {
  margin-top: 10px;
  animation: pageFadeIn 0.22s ease-out;
}

.add-price-panel[hidden] {
  display: none !important;
}

.form--add-price {
  padding: 16px;
  gap: 14px;
}

.form-field {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.form-label {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--muted);
}

.form-control {
  border-radius: var(--r);
  border: 1px solid var(--border);
  background: var(--bg);
  color: var(--text);
  padding: 12px 14px;
  font-size: 15px;
  width: 100%;
}

.form-control--price {
  font-family: var(--font-num);
  font-size: 18px;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}

.form-grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

@media (max-width: 380px) {
  .form-grid-2 {
    grid-template-columns: 1fr;
  }
}

.fuel-pick-row,
.cond-pick-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.fuel-pick {
  flex: 1 1 calc(33.333% - 8px);
  min-width: 88px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  padding: 10px 6px;
  border-radius: var(--r);
  border: 1px solid var(--border);
  background: var(--bg);
  color: var(--muted);
  font-size: 12px;
  font-weight: 600;
}

.fuel-pick.active {
  border-color: var(--yellow);
  background: var(--yellow-dim);
  color: var(--yellow);
}

.cond-pick {
  flex: 1;
  min-width: 0;
  padding: 10px 12px;
  border-radius: var(--r-pill);
  border: 1px solid var(--border);
  background: transparent;
  color: var(--muted);
  font-size: 13px;
  font-weight: 600;
}

.cond-pick.active {
  background: var(--yellow);
  border-color: var(--yellow);
  color: #0b0e11;
}

.btn-primary--wide {
  width: 100%;
  margin-top: 4px;
  min-height: 48px;
  font-size: 15px;
}

.form-hint {
  margin: 0;
  font-size: 13px;
  min-height: 1.2em;
}

.form-hint--ok {
  color: var(--green);
}

.empty {
  padding: 40px 14px;
  text-align: center;
  color: var(--muted);
  font-size: 13px;
}

.table-head {
  display: grid;
  grid-template-columns: 1.25fr 1fr 0.75fr 0.85fr;
  gap: 10px;
  padding: 8px 14px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-bottom: 0;
  border-radius: var(--r-md) var(--r-md) 0 0;
}

.price-table {
  border-radius: 0 0 var(--r-md) var(--r-md);
}

.role-pill {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  margin-top: 8px;
  padding: 4px 10px;
  border-radius: var(--r-pill);
  background: var(--yellow-dim);
  color: var(--yellow);
  font-size: 12px;
  font-weight: 500;
}

.role-pill.role-operator {
  background: rgba(14, 203, 129, 0.12);
  color: var(--green);
}

.role-pill.role-client {
  background: rgba(132, 142, 156, 0.12);
  color: var(--muted);
}

.profile-hero {
  position: relative;
  overflow: visible;
  border-radius: var(--r-md);
  border: 1px solid var(--border);
  background: var(--card);
  padding: 16px;
  box-shadow: none;
}

.profile-hero__glow {
  display: none;
}

.profile-top {
  position: relative;
  z-index: 1;
  display: flex;
  gap: 12px;
  align-items: flex-start;
}

.avatar-wrap {
  position: relative;
  flex-shrink: 0;
}

.avatar {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  object-fit: cover;
  border: 1px solid var(--border);
  box-shadow: none;
  background: var(--card-hover);
}

.avatar--fallback {
  display: grid;
  place-items: center;
  font-weight: 600;
  font-size: 18px;
  letter-spacing: 0;
  color: var(--yellow);
  background: var(--bg);
}

.avatar-badge {
  position: absolute;
  right: -2px;
  bottom: -2px;
  width: auto;
  height: auto;
  min-width: 0;
  border-radius: 0;
  display: grid;
  place-items: center;
  background: none;
  border: 0;
  color: var(--yellow);
  padding: 0;
}

.avatar-badge.role-operator {
  border-color: transparent;
  color: var(--green);
}

.avatar-badge.role-client {
  border-color: transparent;
  color: var(--muted);
}

.profile-copy {
  min-width: 0;
  flex: 1;
}

.profile-name-row {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.profile-copy h2 {
  margin: 0;
  font-size: 18px;
  font-weight: 600;
  letter-spacing: 0;
  line-height: 1.2;
}

.premium-pill {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 10px;
  border-radius: var(--r-pill);
  background: var(--yellow-dim);
  color: var(--yellow);
  font-size: 11px;
  font-weight: 600;
}

.profile-username {
  display: inline-block;
  margin-top: 2px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 400;
}

.profile-hint {
  margin: 6px 0 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.35;
}

.profile-stats {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  margin-top: 14px;
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  overflow: hidden;
}

.profile-stat {
  display: flex;
  gap: 8px;
  align-items: flex-start;
  padding: 10px;
  border-radius: 0;
  background: var(--bg);
  border: 0;
  border-right: 1px solid var(--border);
  color: var(--muted);
}

.profile-stat:last-child {
  border-right: 0;
}

.profile-stat span {
  display: block;
  color: var(--muted);
  font-size: 11px;
  font-weight: 400;
}

.profile-stat strong {
  display: block;
  margin-top: 2px;
  color: var(--text);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0;
}

.info-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.info-tile {
  border-radius: var(--r-md);
  border: 1px solid var(--border);
  background: var(--card);
  padding: 12px;
}

.info-tile.wide {
  grid-column: 1 / -1;
}

.info-tile.tone-warn {
  border-color: var(--border);
  background: var(--card);
}

.info-tile strong {
  display: block;
  margin-top: 6px;
  font-size: 14px;
  font-weight: 600;
}

.info-tile .mono {
  font-family: var(--font-num);
  font-variant-numeric: tabular-nums;
}

@media (max-width: 420px) {
  .profile-stats {
    grid-template-columns: 1fr;
  }

  .profile-stat {
    border-right: 0;
    border-bottom: 1px solid var(--border);
  }

  .profile-stat:last-child {
    border-bottom: 0;
  }

  .price-row,
  .table-head {
    grid-template-columns: 1.35fr 0.85fr 0.9fr;
  }

  .price-row .hide-xs,
  .table-head .hide-xs {
    display: none;
  }

  .fuel-card {
    min-width: 120px;
  }

  .detail-price {
    font-size: 28px;
  }
}

/* Insights sheet */
.insights-overlay {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: flex;
  align-items: flex-end;
  justify-content: center;
}

.insights-scrim {
  position: absolute;
  inset: 0;
  border: 0;
  background: rgba(0, 0, 0, 0.72);
  backdrop-filter: none;
}

.insights-sheet {
  position: relative;
  z-index: 1;
  width: min(560px, 100%);
  max-height: min(86vh, 760px);
  display: flex;
  flex-direction: column;
  border-radius: var(--r-lg) var(--r-lg) 0 0;
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-bottom: 0;
  box-shadow: none;
  animation: sheetUp 0.22s ease;
  padding-bottom: calc(8px + var(--safe-b));
}

@keyframes sheetUp {
  from {
    opacity: 0.5;
    transform: translateY(16px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

.insights-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  padding: 16px;
  border-bottom: 1px solid var(--border);
}

.insights-kicker {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--yellow);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin-bottom: 6px;
}

.insights-head h2 {
  margin: 0;
  font-size: 18px;
  font-weight: 600;
  letter-spacing: 0;
}

.insights-head p {
  margin: 4px 0 0;
  font-size: 12px;
  color: var(--muted);
}

.insights-body {
  overflow-y: auto;
  padding: 8px 0;
  display: flex;
  flex-direction: column;
  gap: 0;
  -webkit-overflow-scrolling: touch;
}

.insight-card {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 10px;
  align-items: start;
  text-align: left;
  width: 100%;
  border-radius: 0;
  border: 0;
  border-bottom: 1px solid var(--border);
  background: transparent;
  color: inherit;
  padding: 12px 16px;
}

.insight-card:active {
  transform: none;
  background: var(--card);
}

.insight-card.tone-up,
.insight-card.tone-down {
  border-color: var(--border);
}

.insight-ico {
  width: auto;
  height: auto;
  border-radius: 0;
  display: grid;
  place-items: center;
  background: none;
  color: var(--yellow);
  flex-shrink: 0;
  padding-top: 2px;
}

.insight-ico.tone-up {
  background: none;
  color: var(--red);
}

.insight-ico.tone-down {
  background: none;
  color: var(--green);
}

.insight-meta {
  display: flex;
  gap: 6px;
  color: var(--muted);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin-bottom: 2px;
}

.insight-main strong {
  display: block;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.3;
}

.insight-main p {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.4;
}

@media (prefers-reduced-motion: reduce) {
  .bottom-dock__indicator,
  .insights-sheet,
  .page-stage.is-entering .page,
  #app.app-root--enter,
  .sk-block,
  .sk-pill,
  .page-stage.is-fetching::before {
    transition: none !important;
    animation: none !important;
  }
}
