html:has(.oim-body),
body:has(.oim-body) {
  margin: 0;
  height: 100%;
}

html:has(.oim-shell),
body:has(.oim-shell) {
  overflow: hidden;
  height: 100%;
}

:root {
  --oim-accent: #00b5f1;
  --oim-accent-2: #002865;
}

.oim-body {
  --oim-bg: #070b14;
  --oim-panel: #0e1424;
  --oim-card: #121a2e;
  --oim-line: rgba(137, 157, 181, 0.18);
  --oim-text: #e8eef6;
  --oim-muted: #899db5;
  --oim-ok: #22c55e;
  --oim-warn: #f59e0b;
  --oim-danger: #ef4444;
  --oim-up: #818cf8;
  --oim-input: #0b1120;
  --oim-shadow: 0 24px 60px rgba(0, 0, 0, 0.35);
  --oim-nav-fg: #fff;
}

html[data-oim-theme="light"] .oim-body {
  --oim-bg: #eef3f8;
  --oim-panel: #ffffff;
  --oim-card: #ffffff;
  --oim-line: rgba(14, 20, 36, 0.12);
  --oim-text: #0e1424;
  --oim-muted: #5a6b82;
  --oim-input: #f4f7fb;
  --oim-shadow: 0 16px 40px rgba(14, 20, 36, 0.08);
  --oim-nav-fg: #0e1424;
}

html[data-oim-theme="light"] .oim-body {
  background:
    radial-gradient(1200px 500px at 10% -10%, rgba(0, 181, 241, 0.16), transparent 50%),
    var(--oim-bg);
}

html[data-oim-theme="light"] .oim-badge.ok {
  background: rgba(34, 197, 94, 0.14);
  color: #15803d;
}

html[data-oim-theme="light"] .oim-badge.warn {
  background: rgba(245, 158, 11, 0.16);
  color: #b45309;
}

html[data-oim-theme="light"] .oim-error {
  color: #b91c1c;
}

html[data-oim-theme="light"] .oim-login-card img,
html[data-oim-theme="light"] .oim-brand img {
  filter: brightness(0) saturate(100%);
}

html[data-oim-theme="light"] .oim-nav-ico {
  background: rgba(0, 40, 101, 0.06);
}

html[data-oim-theme="light"] .oim-pay-banner {
  background: linear-gradient(135deg, rgba(0, 181, 241, 0.12), rgba(0, 40, 101, 0.06));
}

html[data-oim-theme="light"] .oim-pay-banner.is-clear {
  background: rgba(22, 163, 74, 0.08);
  border-color: rgba(22, 163, 74, 0.2);
}

html[data-oim-theme="light"] .oim-quick-tile {
  background: #f4f7fb;
}

.oim-body {
  min-height: 100vh;
  min-height: 100dvh;
  margin: 0;
  overflow-x: hidden;
  background:
    radial-gradient(1200px 500px at 10% -10%, rgba(0, 181, 241, 0.12), transparent 50%),
    var(--oim-bg);
  color: var(--oim-text);
  font-family: Inter, Segoe UI, Arial, sans-serif;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

.oim-body,
.oim-body * {
  box-sizing: border-box;
}

.oim-login {
  min-height: 100vh;
  min-height: 100dvh;
  display: grid;
  place-items: center;
  padding: max(16px, env(safe-area-inset-top)) 16px max(24px, env(safe-area-inset-bottom));
}

.oim-login-card {
  width: min(420px, 100%);
  background: var(--oim-panel);
  border: 1px solid var(--oim-line);
  border-radius: 20px;
  padding: 36px 32px;
  box-shadow: var(--oim-shadow);
}

.oim-form-card {
  max-width: 640px;
}

.oim-pay-card {
  max-width: 720px;
}

.oim-login-card img {
  display: block;
  height: 36px;
  max-width: 100%;
  margin-bottom: 20px;
}

.oim-login-card h1 {
  margin: 0 0 8px;
  font-size: 24px;
}

.oim-login-card p {
  margin: 0 0 24px;
  color: var(--oim-muted);
  font-size: 14px;
  line-height: 1.5;
}

.oim-login-card .oim-btn {
  width: 100%;
}

.oim-login-tools {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 8px;
  margin: -8px -4px 16px;
}

.oim-top-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.oim-icon-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 10px;
  border: 1px solid var(--oim-line);
  background: transparent;
  color: var(--oim-text);
  cursor: pointer;
}

.oim-icon-btn:hover {
  border-color: var(--oim-accent);
  color: var(--oim-accent);
}

.vega-lang-oim .vega-lang-link {
  color: var(--oim-muted);
  text-decoration: none;
  font-size: 13px;
  font-weight: 700;
}

.vega-lang-oim .vega-lang-link.is-active,
.vega-lang-oim .vega-lang-link:hover {
  color: var(--oim-text);
}

.vega-lang {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.oim-login-back {
  display: block;
  margin-top: 18px;
  text-align: center;
  color: var(--oim-muted);
  font-size: 13px;
  text-decoration: none;
}

.oim-login-back:hover {
  color: var(--oim-accent);
}

.oim-side-foot {
  margin-top: auto;
  padding-top: 10px;
  border-top: 1px solid var(--oim-line);
  flex-shrink: 0;
}

.oim-field {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 16px;
}

.oim-field label {
  font-size: 13px;
  color: var(--oim-muted);
}

.oim-field input,
.oim-field select,
.oim-field textarea {
  font-size: 16px;
}

.oim-field input {
  height: 48px;
  border-radius: 12px;
  border: 1px solid var(--oim-line);
  background: var(--oim-input);
  color: var(--oim-text);
  padding: 0 14px;
}

.oim-field input:focus {
  outline: 2px solid rgba(0, 181, 241, 0.35);
  border-color: var(--oim-accent);
}

.oim-error {
  background: rgba(239, 68, 68, 0.12);
  color: #fca5a5;
  border-radius: 10px;
  padding: 10px 12px;
  font-size: 13px;
  margin-bottom: 16px;
}

.oim-hint {
  margin-top: 16px;
  font-size: 12px;
  color: var(--oim-muted);
}

.oim-body.oim-shell {
  min-height: 0;
}

.oim-shell {
  display: grid;
  grid-template-columns: 272px minmax(0, 1fr);
  height: 100vh;
  height: 100dvh;
  min-height: 0;
  overflow: hidden;
}

.oim-side {
  background:
    linear-gradient(180deg, rgba(0, 181, 241, 0.08), transparent 140px),
    var(--oim-panel);
  border-right: 1px solid var(--oim-line);
  padding: 22px 14px 16px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  min-width: 0;
  min-height: 0;
  height: 100%;
  overflow: hidden;
}

.oim-brand {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 4px 8px 4px 10px;
  text-decoration: none;
  color: var(--oim-muted);
  flex-shrink: 0;
}

.oim-brand img {
  height: 30px;
  width: auto;
  align-self: flex-start;
}

.oim-brand span {
  font-size: 11px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-weight: 700;
}

.oim-nav {
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 0;
  min-height: 0;
  flex: 1 1 auto;
  overflow-x: hidden;
  overflow-y: auto;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
}

.oim-nav-item {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--oim-muted);
  text-decoration: none;
  padding: 8px 10px;
  border-radius: 14px;
  font-size: 14px;
  font-weight: 600;
  border: 1px solid transparent;
  background: transparent;
  cursor: pointer;
  text-align: left;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  position: relative;
  overflow: hidden;
  font-family: inherit;
  transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}

.oim-nav-ico {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 11px;
  background: rgba(137, 157, 181, 0.1);
  color: var(--oim-muted);
  flex-shrink: 0;
}

.oim-nav-label {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.oim-nav-item:hover {
  background: rgba(0, 181, 241, 0.08);
  color: var(--oim-nav-fg);
}

.oim-nav-item:hover .oim-nav-ico {
  color: var(--oim-accent);
  background: rgba(0, 181, 241, 0.16);
}

.oim-nav-item.is-active {
  background: linear-gradient(90deg, rgba(0, 181, 241, 0.2), rgba(0, 181, 241, 0.06));
  color: var(--oim-nav-fg);
  border-color: rgba(0, 181, 241, 0.28);
}

.oim-nav-item.is-active::before {
  content: "";
  position: absolute;
  left: 0;
  top: 8px;
  bottom: 8px;
  width: 3px;
  border-radius: 0 3px 3px 0;
  background: var(--oim-accent);
}

.oim-nav-item.is-active .oim-nav-ico {
  background: var(--oim-accent);
  color: #041018;
}

.oim-nav-exit {
  color: var(--oim-muted);
}

.oim-nav-exit:hover {
  color: #fda4af;
  background: rgba(239, 68, 68, 0.08);
}

.oim-nav-exit:hover .oim-nav-ico {
  color: #fda4af;
  background: rgba(239, 68, 68, 0.16);
}

.oim-only-mobile {
  display: none;
}

.oim-icon-btn,
.oim-btn,
.oim-nav-item,
.oim-quick-tile {
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
}

.oim-main {
  padding: 28px 32px 48px;
  min-width: 0;
  min-height: 0;
  height: 100%;
  overflow-x: hidden;
  overflow-y: auto;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
}

.oim-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
  margin-bottom: 28px;
}

.oim-identity {
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-width: 0;
}

.oim-line-switch {
  position: relative;
  display: block;
  max-width: 380px;
  width: min(380px, 100%);
}

.oim-line-switch-ico {
  position: absolute;
  left: 8px;
  top: 50%;
  transform: translateY(-50%);
  width: 28px;
  height: 28px;
  border-radius: 9px;
  display: grid;
  place-items: center;
  background: rgba(0, 181, 241, 0.16);
  color: var(--oim-accent);
  pointer-events: none;
  z-index: 1;
}

.oim-line-switch select {
  appearance: none;
  -webkit-appearance: none;
  width: 100%;
  height: 44px;
  padding: 0 42px 0 44px;
  border-radius: 12px;
  border: 1px solid var(--oim-line);
  background-color: var(--oim-input);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' fill='none'%3E%3Cpath d='M6 8l4 4 4-4' stroke='%23899db5' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  color: var(--oim-text);
  font-size: 14px;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
}

.oim-line-switch select:focus {
  outline: 2px solid rgba(0, 181, 241, 0.35);
  border-color: var(--oim-accent);
}

.oim-line-switch.is-single select {
  cursor: default;
  opacity: 0.92;
}

.oim-top h1 {
  margin: 0;
  font-size: 26px;
}

.oim-top p {
  margin: 6px 0 0;
  color: var(--oim-muted);
  font-size: 14px;
}

.oim-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.oim-card {
  background: var(--oim-card);
  border: 1px solid var(--oim-line);
  border-radius: 16px;
  padding: 18px;
}

.oim-card h2,
.oim-card h3 {
  margin: 0 0 12px;
  font-size: 16px;
}

.oim-kpi {
  color: var(--oim-muted);
  font-size: 13px;
  margin-bottom: 8px;
}

.oim-kpi-value {
  font-size: clamp(18px, 4vw, 24px);
  font-weight: 700;
  letter-spacing: -0.03em;
  word-break: break-word;
}

.oim-kpi-card {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 4px 14px;
  align-items: center;
}

.oim-kpi-card p {
  margin: 8px 0 0;
  color: var(--oim-muted);
  font-size: 13px;
  line-height: 1.4;
}

.oim-kpi-ico {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  color: var(--oim-accent);
  background: rgba(0, 181, 241, 0.14);
  flex-shrink: 0;
}

.oim-kpi-ico.tone-plan,
.oim-kpi-ico.tone-overview {
  color: var(--oim-accent);
  background: rgba(0, 181, 241, 0.14);
}

.oim-kpi-ico.tone-status {
  color: #34d399;
  background: rgba(52, 211, 153, 0.16);
}

.oim-kpi-ico.tone-wallet,
.oim-kpi-ico.tone-invoices {
  color: #fbbf24;
  background: rgba(251, 191, 36, 0.16);
}

.oim-kpi-ico.tone-usage {
  color: var(--oim-up);
  background: rgba(129, 140, 248, 0.16);
}

.oim-kpi-ico.tone-services {
  color: #38bdf8;
  background: rgba(56, 189, 248, 0.16);
}

.oim-kpi-ico.tone-support {
  color: #fb7185;
  background: rgba(251, 113, 133, 0.16);
}

.oim-card-head {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 14px;
}

.oim-card-head .oim-kpi-ico {
  width: 36px;
  height: 36px;
}

.oim-card-head h2 {
  margin: 0;
}

.oim-dash-charts {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(280px, 0.9fr);
  gap: 16px;
}

.oim-chart svg {
  width: 100%;
  height: auto;
  display: block;
}

.oim-chart-grid {
  stroke: var(--oim-line);
  stroke-width: 1;
}

.oim-chart-area {
  fill: url(#oimUsageArea);
}

.oim-chart-line {
  stroke: var(--oim-accent);
  stroke-width: 2.4;
  stroke-linejoin: round;
  stroke-linecap: round;
}

.oim-chart-dot {
  fill: var(--oim-accent);
  stroke: var(--oim-card);
  stroke-width: 2;
}

.oim-fill-down {
  fill: var(--oim-accent);
}

.oim-fill-up {
  fill: var(--oim-up);
}

.oim-chart-label {
  fill: var(--oim-muted);
  font-size: 11px;
}

.oim-chart-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 12px;
  color: var(--oim-muted);
  font-size: 13px;
}

.oim-chart-legend-col {
  flex-direction: column;
  gap: 8px;
}

.oim-chart-legend i {
  display: inline-block;
  width: 10px;
  height: 10px;
  border-radius: 3px;
  margin-right: 6px;
  vertical-align: middle;
}

.oim-chart-legend i.down {
  background: var(--oim-accent);
}

.oim-chart-legend i.up {
  background: var(--oim-up);
}

.oim-donut {
  display: flex;
  align-items: center;
  gap: 16px;
}

.oim-donut-track {
  fill: none;
  stroke: var(--oim-input);
  stroke-width: 12;
}

.oim-stroke-down,
.oim-stroke-up {
  fill: none;
  stroke-width: 12;
  stroke-linecap: butt;
}

.oim-stroke-down {
  stroke: var(--oim-accent);
}

.oim-stroke-up {
  stroke: var(--oim-up);
}

.oim-donut-value {
  fill: var(--oim-text);
  font-size: 20px;
  font-weight: 700;
}

.oim-donut-unit {
  fill: var(--oim-muted);
  font-size: 11px;
}

.oim-speed {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 20px;
  padding-top: 16px;
  border-top: 1px solid var(--oim-line);
}

.oim-speed-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 6px 12px;
  font-size: 13px;
  color: var(--oim-muted);
}

.oim-speed-row strong {
  color: var(--oim-text);
}

.oim-speed-bar {
  grid-column: 1 / -1;
  height: 8px;
  background: var(--oim-input);
  border-radius: 99px;
  overflow: hidden;
}

.oim-speed-bar span {
  display: block;
  height: 100%;
  border-radius: 99px;
  background: linear-gradient(90deg, var(--oim-accent-2), var(--oim-accent));
}

.oim-speed-bar.is-up span {
  background: linear-gradient(90deg, #4f46e5, var(--oim-up));
}

.oim-pay-banner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  background:
    linear-gradient(135deg, rgba(0, 181, 241, 0.14), rgba(0, 40, 101, 0.28));
  border-color: rgba(0, 181, 241, 0.32);
}

.oim-pay-banner p {
  margin: 6px 0 0;
  color: var(--oim-muted);
  font-size: 13px;
}

.oim-pay-banner.is-clear {
  justify-content: flex-start;
  gap: 12px;
  background: rgba(34, 197, 94, 0.08);
  border-color: rgba(34, 197, 94, 0.22);
}

.oim-saved-block {
  margin: 18px 0 8px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.oim-saved-block h3 {
  margin: 0;
}

.oim-saved-card {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 10px;
  align-items: center;
  padding: 12px 14px;
  border: 1px solid var(--oim-line);
  border-radius: 12px;
  background: var(--oim-panel);
  cursor: pointer;
}

.oim-saved-card:has(input:checked) {
  border-color: var(--oim-accent);
  box-shadow: 0 0 0 1px rgba(0, 181, 241, 0.28);
}

.oim-saved-card span {
  font-size: 14px;
  line-height: 1.35;
}

.oim-check {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  margin: 16px 0 12px;
  font-size: 14px;
  cursor: pointer;
  user-select: none;
}

.oim-check input[type="checkbox"] {
  appearance: none;
  -webkit-appearance: none;
  width: 20px;
  height: 20px;
  margin: 1px 0 0;
  flex-shrink: 0;
  border: 2px solid var(--oim-muted);
  border-radius: 5px;
  background: var(--oim-input);
  cursor: pointer;
  display: grid;
  place-content: center;
}

.oim-check input[type="checkbox"]::after {
  content: "";
  width: 11px;
  height: 7px;
  border: solid #042033;
  border-width: 0 0 2.5px 2.5px;
  transform: rotate(-45deg) scale(0);
  margin-top: -2px;
  transition: transform 0.12s ease;
}

.oim-check input[type="checkbox"]:checked {
  background: var(--oim-accent);
  border-color: var(--oim-accent);
}

.oim-check input[type="checkbox"]:checked::after {
  transform: rotate(-45deg) scale(1);
}

.oim-check input[type="checkbox"]:focus-visible {
  outline: 2px solid rgba(0, 181, 241, 0.45);
  outline-offset: 2px;
}

.oim-hb-saved input[type="radio"],
.oim-hb-option input[type="radio"] {
  appearance: none;
  -webkit-appearance: none;
  width: 20px;
  height: 20px;
  margin: 0;
  flex-shrink: 0;
  border: 2px solid var(--oim-muted);
  border-radius: 50%;
  background: var(--oim-input);
  cursor: pointer;
  display: grid;
  place-content: center;
}

.oim-hb-saved input[type="radio"]::after,
.oim-hb-option input[type="radio"]::after {
  content: "";
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--oim-accent);
  transform: scale(0);
}

.oim-hb-saved input[type="radio"]:checked,
.oim-hb-option input[type="radio"]:checked {
  border-color: var(--oim-accent);
}

.oim-hb-saved input[type="radio"]:checked::after,
.oim-hb-option input[type="radio"]:checked::after {
  transform: scale(1);
}

.oim-check small {
  display: block;
  margin-top: 4px;
  color: var(--oim-muted);
  font-size: 12px;
}

.oim-btn-tiny {
  height: 34px;
  padding: 0 10px;
  font-size: 12px;
}

.oim-checkout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 16px;
  align-items: start;
}

.oim-checkout-stack {
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-width: 0;
}

.oim-hb-card {
  background: var(--oim-card);
  border: 1px solid var(--oim-line);
  border-radius: 8px;
  padding: 18px 20px 16px;
  box-shadow: var(--oim-shadow);
}

.oim-hb-card h3 {
  margin: 0 0 14px;
  font-size: 16px;
  font-weight: 700;
}

.oim-hb-option {
  display: grid;
  grid-template-columns: 22px 1fr;
  gap: 10px 12px;
  align-items: start;
  padding: 12px 14px;
  border: 1px solid var(--oim-line);
  border-radius: 8px;
  cursor: default;
}

.oim-hb-option:has(input:checked) {
  border-color: var(--oim-accent);
  box-shadow: 0 0 0 1px rgba(0, 181, 241, 0.25);
}

.oim-hb-option input {
  margin-top: 3px;
  accent-color: var(--oim-accent);
}

.oim-hb-option strong {
  display: block;
  font-size: 14px;
}

.oim-hb-option small,
.oim-hb-option p {
  margin: 4px 0 0;
  color: var(--oim-muted);
  font-size: 13px;
  line-height: 1.4;
}

.oim-hb-pay-head {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 14px;
}

.oim-badge-link {
  display: inline-flex;
  align-items: center;
  height: 28px;
  padding: 0 12px;
  border: 0;
  border-radius: 999px;
  background: rgba(0, 181, 241, 0.14);
  color: var(--oim-accent);
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  white-space: nowrap;
  font-family: inherit;
}

.oim-badge-link:hover {
  background: rgba(0, 181, 241, 0.24);
}

.oim-cvv-field {
  max-width: 120px;
}

.oim-modal-side .oim-checkout-row {
  grid-template-columns: minmax(0, 1fr) 108px;
}

[hidden] {
  display: none !important;
}

.oim-hb-pay-head h3 {
  margin: 0;
  flex: 1;
}

.oim-hb-saved {
  display: grid;
  grid-template-columns: 22px 1fr auto;
  gap: 10px;
  align-items: center;
  padding: 14px;
  border: 1px solid var(--oim-line);
  border-radius: 8px;
  margin-bottom: 10px;
  cursor: pointer;
}

.oim-hb-saved:has(input:checked) {
  border-color: var(--oim-accent);
}

.oim-hb-saved input {
  accent-color: var(--oim-accent);
}

.oim-hb-saved strong {
  display: block;
  font-size: 14px;
  text-transform: lowercase;
}

.oim-hb-saved span {
  color: var(--oim-muted);
  font-size: 13px;
  letter-spacing: 0.04em;
}

.oim-hb-add {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 14px;
  border: 1px dashed var(--oim-line);
  border-radius: 8px;
  background: transparent;
  color: var(--oim-accent);
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  font-family: inherit;
  text-align: left;
}

.oim-dot-empty {
  border-color: var(--oim-muted);
  background: transparent;
}

.oim-dot {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  border: 5px solid var(--oim-accent);
  background: #fff;
  display: inline-block;
  flex-shrink: 0;
  margin-top: 2px;
}

.oim-hb-summary {
  background: var(--oim-card);
  border: 1px solid var(--oim-line);
  border-radius: 8px;
  padding: 18px 18px 16px;
  box-shadow: var(--oim-shadow);
  position: sticky;
  top: 8px;
}

.oim-hb-summary .oim-amount-label {
  color: var(--oim-accent);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.oim-hb-summary .oim-kpi-value {
  margin: 6px 0 14px;
  font-size: 28px;
}

.oim-hb-summary .oim-terms-check {
  margin: 0 0 12px;
  font-size: 13px;
  color: var(--oim-muted);
}

.oim-hb-lines {
  margin-top: 16px;
  padding-top: 12px;
  border-top: 1px solid var(--oim-line);
  font-size: 13px;
}

.oim-hb-line {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin: 8px 0;
  color: var(--oim-muted);
}

.oim-pay-submit {
  width: 100%;
  height: 48px;
  border-radius: 8px;
  font-size: 16px;
}

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

.oim-checkout-head h2 {
  margin: 0;
}

.oim-secure {
  font-size: 12px;
  color: var(--oim-ok);
  font-weight: 600;
}

.oim-pay-methods {
  display: flex;
  gap: 8px;
  margin: 12px 0 16px;
}

.oim-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 1px solid var(--oim-line);
  border-radius: 999px;
  padding: 8px 14px;
  font-size: 13px;
  cursor: pointer;
}

.oim-chip:has(input:checked) {
  border-color: var(--oim-accent);
  color: var(--oim-accent);
}

.oim-checkout-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.oim-card-visual {
  background: linear-gradient(135deg, #002865, #00b5f1);
  color: #fff;
  border-radius: 18px;
  padding: 20px 22px;
  min-height: 148px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  margin: 8px 0 18px;
  box-shadow: 0 16px 32px rgba(0, 40, 101, 0.28);
}

.oim-card-visual span {
  font-size: 12px;
  letter-spacing: 0.18em;
  font-weight: 700;
}

.oim-card-visual strong {
  font-size: 20px;
  letter-spacing: 0.12em;
  font-weight: 600;
}

.oim-card-visual em {
  font-style: normal;
  font-size: 13px;
  text-transform: uppercase;
  opacity: 0.9;
}

.oim-pay-error {
  margin: 8px 0 0;
  color: #c0392b;
  font-size: 14px;
}

.oim-terms-check {
  align-items: flex-start;
  margin-top: 12px;
}

.oim-link-btn {
  border: 0;
  background: none;
  padding: 0;
  color: var(--oim-accent, #3b82f6);
  cursor: pointer;
  text-decoration: underline;
  font: inherit;
}

.oim-terms-box {
  max-width: 720px;
  max-height: 86vh;
  display: flex;
  flex-direction: column;
}

.oim-terms-head {
  display: flex;
  align-items: center;
  gap: 8px;
}

.oim-terms-head h2 {
  flex: 1;
  margin: 0;
}

.oim-terms-scroll {
  overflow: auto;
  padding-right: 8px;
  max-height: 70vh;
}

.oim-legal-doc h1 {
  font-size: 22px;
  margin-top: 0;
}

.oim-legal-doc h2 {
  font-size: 16px;
  margin: 18px 0 8px;
}

.oim-legal-doc p,
.oim-legal-doc li {
  color: var(--oim-muted);
  line-height: 1.55;
}

.oim-pay-submit {
  width: 100%;
  margin-top: 8px;
}

.oim-checkout-summary p {
  margin: 6px 0;
  color: var(--oim-muted);
}

.oim-modal {
  border: 0;
  padding: 0;
  margin: 0;
  width: 100%;
  height: 100%;
  max-width: none;
  max-height: none;
  background: transparent;
  overflow: hidden;
}

.oim-modal::backdrop {
  background: rgba(8, 12, 22, 0.62);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.oim-modal-panel {
  background: var(--oim-card);
  color: var(--oim-text);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.35);
}

.oim-modal-side {
  margin-left: auto;
  height: 100%;
  width: min(420px, 100%);
  padding: 28px 28px 32px;
  overflow-y: auto;
}

.oim-modal-center {
  width: min(720px, calc(100% - 32px));
  max-height: min(88vh, 860px);
  margin: 6vh auto;
  padding: 20px 22px 24px;
  border-radius: 16px;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.oim-modal-center .oim-terms-head {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
}

.oim-modal-center .oim-terms-head h2 {
  margin: 0;
  font-size: 20px;
  flex: 1;
}

.oim-modal-center .oim-terms-scroll {
  overflow: auto;
  min-height: 0;
  flex: 1;
  padding-right: 8px;
}

.oim-modal-side h2 {
  margin: 8px 0 24px;
  font-size: 28px;
}

.oim-drawer-close {
  width: 40px;
  height: 40px;
  border: 0;
  border-radius: 50%;
  background: var(--oim-input);
  color: var(--oim-text);
  font-size: 22px;
  cursor: pointer;
}

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

.oim-card-head-row .oim-card-head {
  margin-bottom: 0;
}

.oim-card-head-row h2 {
  margin: 0;
}

.oim-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 36px 16px 28px;
  gap: 8px;
}

.oim-empty .oim-kpi-ico {
  width: 56px;
  height: 56px;
  border-radius: 16px;
  margin-bottom: 6px;
}

.oim-empty h3 {
  margin: 0;
  font-size: 18px;
}

.oim-empty p {
  margin: 0;
  max-width: 360px;
  color: var(--oim-muted);
  font-size: 14px;
  line-height: 1.5;
}

.oim-modal-side .oim-field select,
.oim-modal-side .oim-field textarea {
  background: var(--oim-input);
}

.oim-modal-side .oim-btn {
  width: 100%;
}

.oim-drawer-save {
  background: var(--oim-input);
  border-radius: 12px;
  padding: 14px;
  margin: 8px 0 20px;
  font-size: 13px;
  color: var(--oim-muted);
}

.oim-modal-side .oim-pay-submit {
  background: rgba(0, 181, 241, 0.35);
  border: 0;
}

.oim-modal-side .oim-pay-submit:hover {
  background: var(--oim-accent);
  color: #042033;
}

body.oim-drawer-open {
  overflow: hidden;
}

.oim-3d-overlay {
  position: fixed;
  inset: 0;
  background: rgba(7, 11, 20, 0.72);
  display: grid;
  place-items: center;
  z-index: 80;
  padding: 16px;
}

.oim-3d-box {
  width: min(520px, 100%);
  height: min(720px, 92vh);
  background: var(--oim-card);
  border-radius: 16px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.oim-3d-box h2 {
  margin: 0;
  padding: 14px 16px;
  font-size: 15px;
  border-bottom: 1px solid var(--oim-line);
}

.oim-3d-frame {
  flex: 1;
  width: 100%;
  border: 0;
  background: #fff;
}

.oim-quick-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.oim-quick-tile {
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-height: 108px;
  padding: 16px;
  border: 1px solid var(--oim-line);
  border-radius: 14px;
  background: var(--oim-input);
  color: var(--oim-text);
  text-decoration: none;
  font-weight: 600;
  font-size: 14px;
  transition: border-color 0.15s ease, transform 0.15s ease;
}

.oim-quick-tile:hover {
  border-color: rgba(0, 181, 241, 0.55);
  transform: translateY(-1px);
}

.oim-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}

.oim-empty-chart {
  margin: 0;
  color: var(--oim-muted);
}

.oim-badge {
  display: inline-flex;
  align-items: center;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
}

.oim-badge.ok {
  background: rgba(34, 197, 94, 0.16);
  color: #86efac;
}

.oim-badge.warn {
  background: rgba(245, 158, 11, 0.16);
  color: #fcd34d;
}

.oim-badge.danger {
  background: rgba(239, 68, 68, 0.16);
  color: #fca5a5;
}

.oim-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 18px;
  border: 0;
  border-radius: 10px;
  background: var(--oim-accent);
  color: #041018;
  font-weight: 700;
  cursor: pointer;
  text-decoration: none;
}

.oim-btn.ghost {
  background: transparent;
  color: var(--oim-text);
  border: 1px solid var(--oim-line);
}

.oim-btn:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}

.oim-invoice-bar {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  margin: 0 0 14px;
  padding: 12px 14px;
  border: 1px solid var(--oim-line);
  border-radius: 10px;
}

.oim-invoice-bar .oim-check {
  margin: 0;
  flex: 1;
}

.oim-invoice-bar .oim-btn.is-disabled {
  opacity: 0.45;
  pointer-events: none;
}
  overflow-x: auto;
}

.oim-invoice-bar {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  margin: 0 0 14px;
  padding: 12px 14px;
  border: 1px solid var(--oim-line);
  border-radius: 10px;
}

.oim-invoice-bar .oim-check {
  margin: 0;
  flex: 1;
}

.oim-invoice-bar .oim-btn.is-disabled {
  opacity: 0.45;
  pointer-events: none;
}

.oim-table {
  width: 100%;
  border-collapse: collapse;
}

.oim-table th,
.oim-table td {
  text-align: left;
  padding: 12px 8px;
  border-bottom: 1px solid var(--oim-line);
  font-size: 14px;
}

.oim-table th {
  color: var(--oim-muted);
  font-weight: 600;
}

.oim-bars {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.oim-bar-row {
  display: grid;
  grid-template-columns: 140px 1fr 90px;
  gap: 12px;
  align-items: center;
  font-size: 13px;
}

.oim-bar {
  height: 10px;
  background: var(--oim-input);
  border-radius: 99px;
  overflow: hidden;
}

.oim-bar span {
  display: block;
  height: 100%;
  background: linear-gradient(90deg, var(--oim-accent-2), var(--oim-accent));
}

.oim-stack {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.oim-field select,
.oim-field textarea {
  border-radius: 12px;
  border: 1px solid var(--oim-line);
  background: var(--oim-input);
  color: var(--oim-text);
  padding: 12px 14px;
  font-size: 16px;
  font-family: inherit;
  width: 100%;
  box-sizing: border-box;
}

.oim-field select {
  height: 48px;
}

.oim-field textarea {
  resize: vertical;
  min-height: 120px;
}

.oim-field select:focus,
.oim-field textarea:focus {
  outline: 2px solid rgba(0, 181, 241, 0.35);
  border-color: var(--oim-accent);
}

.oim-plan-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin-top: 16px;
}

.oim-plan {
  border: 1px solid var(--oim-line);
  border-radius: 14px;
  padding: 16px;
  background: var(--oim-panel);
}

.oim-plan h3 {
  margin: 0;
  font-size: 16px;
}

.oim-plan-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
}

.oim-thread {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 20px;
}

.oim-bubble {
  border: 1px solid var(--oim-line);
  border-radius: 14px;
  padding: 12px 14px;
  background: var(--oim-input);
}

.oim-bubble.agent {
  background: rgba(0, 181, 241, 0.08);
}

.oim-bubble strong {
  display: block;
  font-size: 13px;
}

.oim-bubble span {
  color: var(--oim-muted);
  font-size: 12px;
}

.oim-bubble p {
  margin: 8px 0 0;
  white-space: pre-wrap;
}

@media (max-width: 980px) {
  html:has(.oim-shell),
  body:has(.oim-shell) {
    height: auto;
    overflow: auto;
  }

  .oim-shell {
    grid-template-columns: 1fr;
    height: auto;
    min-height: 100dvh;
    overflow: visible;
    padding-bottom: calc(76px + env(safe-area-inset-bottom));
  }

  .oim-side {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    top: auto;
    z-index: 40;
    height: auto;
    flex-direction: row;
    align-items: stretch;
    gap: 0;
    padding: 6px 6px max(8px, env(safe-area-inset-bottom));
    border-right: 0;
    border-top: 1px solid var(--oim-line);
    background: var(--oim-panel);
    box-shadow: 0 -12px 32px rgba(0, 0, 0, 0.18);
    overflow: visible;
  }

  .oim-brand,
  .oim-only-desktop {
    display: none;
  }

  .oim-only-mobile {
    display: inline-flex;
  }

  .oim-nav {
    flex-direction: row;
    flex: 1;
    overflow: visible;
    gap: 2px;
  }

  .oim-nav-item {
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 4px;
    flex: 1;
    width: auto;
    min-width: 0;
    padding: 8px 2px 6px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 700;
    overflow: visible;
  }

  .oim-nav-label {
    white-space: nowrap;
    font-size: 11px;
    letter-spacing: 0;
    max-width: 100%;
  }

  .oim-nav-ico {
    width: 34px;
    height: 34px;
    border-radius: 10px;
  }

  .oim-nav-item.is-active {
    background: rgba(0, 181, 241, 0.12);
  }

  .oim-nav-item.is-active::before {
    top: 6px;
    bottom: auto;
    left: 50%;
    right: auto;
    width: 16px;
    height: 3px;
    border-radius: 99px;
    transform: translateX(-50%);
  }

  .oim-main {
    padding: 12px 14px 24px;
    height: auto;
    overflow: visible;
  }

  .oim-top {
    align-items: flex-start;
    flex-wrap: wrap;
    gap: 10px;
    margin: -12px -14px 16px;
    padding: max(10px, env(safe-area-inset-top)) 14px 12px;
    background: var(--oim-bg);
    background: color-mix(in srgb, var(--oim-bg) 88%, transparent);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--oim-line);
    position: sticky;
    top: 0;
    z-index: 15;
  }

  .oim-top h1 {
    font-size: 20px;
    line-height: 1.25;
  }

  .oim-top p {
    margin: 0 0 4px;
    font-size: 12px;
  }

  .oim-line-switch {
    max-width: none;
    width: 100%;
  }

  .oim-top-actions {
    width: 100%;
    justify-content: flex-start;
    gap: 8px;
  }

  .oim-sub-badge {
    margin-right: auto;
    max-width: 100%;
  }

  .oim-grid,
  .oim-plan-grid,
  .oim-dash-charts {
    grid-template-columns: 1fr 1fr;
  }

  .oim-quick-grid {
    grid-template-columns: 1fr 1fr;
  }

  .oim-card-head-row {
    flex-wrap: wrap;
  }

  .oim-card-head-row .oim-btn {
    width: 100%;
  }

  .oim-modal-side {
    width: 100%;
  }

  .oim-quick-tile {
    min-height: 96px;
  }

  .oim-pay-banner {
    flex-direction: column;
    align-items: stretch;
  }

  .oim-pay-banner .oim-btn,
  .oim-plan .oim-btn,
  .oim-pay-card .oim-btn,
  .oim-form-card .oim-btn,
  .oim-card > .oim-btn,
  .oim-actions .oim-btn {
    width: 100%;
  }

  .oim-saved-card {
    grid-template-columns: auto 1fr;
  }

  .oim-saved-card .oim-btn-tiny {
    grid-column: 1 / -1;
    width: 100%;
  }

  .oim-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .oim-table thead {
    display: none;
  }

  .oim-table,
  .oim-table tbody,
  .oim-table tr,
  .oim-table td {
    display: block;
    width: 100%;
  }

  .oim-table tr {
    background: var(--oim-panel);
    border: 1px solid var(--oim-line);
    border-radius: 14px;
    padding: 12px 14px;
    margin-bottom: 10px;
  }

  .oim-table td {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 12px;
    padding: 7px 0;
    border-bottom: 0;
    text-align: right;
    flex-wrap: wrap;
  }

  .oim-table td::before {
    content: attr(data-label);
    color: var(--oim-muted);
    font-weight: 600;
    font-size: 12px;
    text-align: left;
    flex: 1;
  }

  .oim-table td:last-child {
    display: block;
    padding-top: 10px;
  }

  .oim-table td:last-child:empty {
    display: none;
  }

  .oim-table td:last-child::before {
    display: none;
  }

  .oim-table td:last-child .oim-btn {
    width: 100%;
  }

  .oim-bar-row {
    grid-template-columns: 1fr auto;
    gap: 8px;
  }

  .oim-bar-row .oim-bar {
    grid-column: 1 / -1;
  }

  .oim-form-card,
  .oim-pay-card {
    max-width: none;
  }

  .oim-checkout,
  .oim-checkout-row {
    grid-template-columns: 1fr;
  }

  .oim-hb-summary {
    position: static;
  }

  .oim-login-card {
    padding: 24px 18px;
    border-radius: 16px;
  }

  .oim-login-card h1 {
    font-size: 22px;
  }
}

@media (max-width: 640px) {
  .oim-grid,
  .oim-plan-grid,
  .oim-dash-charts {
    grid-template-columns: 1fr;
  }

  .oim-kpi-card {
    grid-template-columns: auto 1fr;
  }

  .oim-donut {
    flex-direction: row;
    align-items: center;
  }

  .oim-quick-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 380px) {
  .oim-nav-label {
    font-size: 10px;
  }

  .oim-quick-grid {
    grid-template-columns: 1fr;
  }
}

.oim-signup-page .oim-wizard-card {
  width: min(560px, 100%);
}

.oim-wizard-steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 6px;
  list-style: none;
  margin: 0 0 20px;
  padding: 0;
}

.oim-wizard-steps li {
  font-size: 11px;
  font-weight: 700;
  color: var(--oim-muted);
  text-align: center;
  padding-bottom: 8px;
  border-bottom: 2px solid var(--oim-line);
}

.oim-wizard-steps li.is-active,
.oim-wizard-steps li.is-done {
  color: var(--oim-text);
  border-bottom-color: var(--oim-accent);
}

.oim-signup-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.oim-signup-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-top: 8px;
}

.oim-signup-actions .oim-btn,
.oim-login-card .oim-btn.ghost {
  width: 100%;
  margin-top: 10px;
}

.oim-coverage {
  padding: 12px 14px;
  border-radius: 12px;
  border: 1px solid var(--oim-line);
  margin-bottom: 14px;
  font-size: 14px;
  line-height: 1.5;
}

.oim-coverage.is-ready {
  border-color: #34d399;
}

.oim-coverage.is-survey {
  border-color: #fbbf24;
}

.oim-coverage.is-none {
  border-color: #f87171;
}

.oim-plan-pick {
  display: grid;
  gap: 8px;
  margin-bottom: 12px;
}

.oim-plan-pick label {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
  padding: 12px 14px;
  border: 1px solid var(--oim-line);
  border-radius: 12px;
  cursor: pointer;
}

.oim-plan-pick label:has(input:checked) {
  border-color: var(--oim-accent);
}

.oim-plan-pick strong {
  display: block;
}

.oim-plan-pick small {
  color: var(--oim-muted);
}

.oim-signup-summary {
  display: grid;
  gap: 8px;
  margin-bottom: 14px;
  font-size: 14px;
}

.oim-signup-summary div {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 8px 0;
  border-bottom: 1px solid var(--oim-line);
}

.oim-signup-done {
  font-size: 15px;
  line-height: 1.55;
}

@media (max-width: 640px) {
  .oim-signup-row,
  .oim-signup-actions,
  .oim-wizard-steps {
    grid-template-columns: 1fr 1fr;
  }
}
