.tariff { min-height: 100vh; background: var(--sidebar); }
.tariff .topbar { background: var(--surface); }
.tariff-main { width: min(900px, calc(100% - 36px)); margin-inline: auto; padding: clamp(24px, 6vw, 52px) 0 40px; }
.tariff-main h1 { margin: 8px 0; font-size: clamp(1.85rem, 4.4vw, 2.55rem); letter-spacing: -.045em; }
.test-mode-note { max-width: 610px; color: var(--muted); line-height: 1.5; margin-bottom: 16px; }
.tariff-notice { margin: 10px 0; }
#tariff-retry { margin-bottom: 12px; }
.tariff-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: start; gap: 14px; }
.tariff-panel { min-width: 0; padding: clamp(15px, 3vw, 23px); border: 1px solid var(--border); border-radius: 15px; background: var(--surface); }
.tariff-panel h2 { margin-bottom: 9px; font-size: 1.11rem; }
.tariff-price { margin: 5px 0 2px; color: var(--accent); font-size: clamp(1.65rem, 4vw, 2.25rem); font-weight: 750; letter-spacing: -.03em; }
.tariff-period, .tariff-terms-copy { color: var(--muted); line-height: 1.4; }
.tariff-terms-copy { margin: 12px 0; }
.tariff-terms { margin: 12px 0; color: var(--muted); font-size: .89rem; line-height: 1.45; }
.tariff-terms summary { color: var(--ink); font-weight: 650; cursor: pointer; }
.tariff-terms ul { margin: 7px 0 0; padding-inline-start: 1.2em; }
.tariff-terms li + li { margin-top: 6px; }
.tariff-offer form { display: grid; gap: 11px; align-content: start; }
.tariff-offer form > button { justify-self: start; }
.tariff-check {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 10px;
  align-items: start;
  font-size: .9rem;
  line-height: 1.4;
  cursor: pointer;
}
.tariff-check input { width: 17px; height: 17px; margin: 2px 0 0; accent-color: var(--accent); }
.tariff-renew-copy { display: block; margin-top: 4px; color: var(--muted); font-size: .85rem; }
.tariff-access { font-weight: 680; line-height: 1.5; }
.tariff-meta { margin: 10px 0 0; }
.tariff-meta > div { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 7px; margin-bottom: 7px; font-size: .86rem; line-height: 1.32; }
.tariff-meta dt { color: var(--muted); }
.tariff-meta dd { margin: 0; overflow-wrap: anywhere; }
.tariff-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.tariff-actions > a { display: inline-flex; align-items: center; text-decoration: none; }
.tariff-history { grid-column: 1 / -1; }
.tariff-order-list { display: grid; gap: 8px; margin: 0; padding: 0; list-style: none; }
.tariff-order { min-width: 0; padding: 11px 12px; border: 1px solid var(--border); border-radius: 9px; }
.order-head { display: flex; gap: 10px; align-items: baseline; justify-content: space-between; }
.order-head h3 { font-size: .96rem; }
.order-head strong { flex: none; font-size: .94rem; }
.order-state { margin-top: 6px; font-size: .89rem; font-weight: 680; }
.order-reconciliation { margin-top: 4px; }
.order-response { white-space: pre-wrap; overflow-wrap: anywhere; }
.tariff-dialog {
  width: min(calc(100% - 28px), 470px);
  padding: 20px;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: var(--surface);
  color: var(--ink);
}
.tariff-dialog::backdrop { background: #211d2c66; }
.tariff-dialog h2 { font-size: 1.2rem; }
.tariff-dialog p { margin-top: 10px; color: var(--muted); line-height: 1.45; }
@media (max-width: 660px) {
  .tariff-main { width: calc(100% - 24px); }
  .tariff-grid { grid-template-columns: minmax(0, 1fr); }
}
