:root {
  color-scheme: light;
  --ink: #171d23;
  --navy: #002a3a;
  --navy-soft: #173c52;
  --muted: #5c7181;
  --line: #dce9ef;
  --line-strong: #bfd2dc;
  --surface: #ffffff;
  --canvas: #efefef;
  --canvas-soft: #f5f8fa;
  --brand: #00afff;
  --brand-dark: #087f9f;
  --success: #18794e;
  --success-bg: #e9f8f0;
  --warning: #8a6412;
  --warning-bg: #fff8de;
  --danger: #b4232d;
  --danger-bg: #fff0f1;
  --shadow-sm: 0 2px 10px rgba(0, 42, 58, 0.07);
  --shadow-lg: 0 24px 70px rgba(0, 42, 58, 0.13);
  --portal-shell-width: calc(100% - 64px);
  font-family: "Open Sans", Arial, ui-sans-serif, system-ui, -apple-system, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  min-width: 320px;
  min-height: 100vh;
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(circle at 10% 8%, rgba(0, 175, 255, 0.07), transparent 24rem),
    var(--canvas);
  -webkit-font-smoothing: antialiased;
}

button, input, textarea, select { font: inherit; }
button { cursor: pointer; }
img { display: block; max-width: 100%; }
[hidden] { display: none !important; }

.skip_link {
  position: fixed;
  top: 8px;
  left: 8px;
  z-index: 100;
  padding: 10px 14px;
  color: #fff;
  background: var(--navy);
  border-radius: 8px;
  transform: translateY(-150%);
}

.skip_link:focus { transform: translateY(0); }

.portal_header {
  min-height: 80px;
  background: rgba(255, 255, 255, 0.96);
  border-bottom: 1px solid rgba(220, 233, 239, 0.9);
  box-shadow: var(--shadow-sm);
}

.header_inner {
  display: flex;
  width: var(--portal-shell-width);
  min-height: 80px;
  align-items: center;
  gap: 22px;
  margin: 0 auto;
}

.portal_brand {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
}

.portal_brand img {
  width: 157px;
  height: 34px;
  object-fit: contain;
}

.header_context { display: flex; align-items: center; gap: 20px; }
.header_divider { width: 1px; height: 32px; background: var(--line); }
.header_context p { margin: 0; color: var(--navy-soft); font-size: 14px; font-weight: 700; }
.header_actions { display: flex; align-items: center; gap: 10px; margin-left: auto; }

.portal_languages { display: flex; align-items: center; gap: 2px; }
.portal_languages a {
  display: inline-grid;
  min-width: 28px;
  height: 28px;
  padding: 0 4px;
  place-items: center;
  color: var(--muted);
  border-radius: 7px;
  font-size: 11px;
  font-weight: 800;
  text-decoration: none;
}
.portal_languages a:hover,
.portal_languages a[aria-current="page"] { color: var(--navy); background: #e7f6fb; }

.catalog_link {
  padding: 9px 10px;
  color: var(--navy-soft);
  border-radius: 8px;
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
}

.catalog_link:hover { color: var(--brand-dark); background: #edf8fb; }

.portal_shell {
  width: var(--portal-shell-width);
  margin: 42px auto 80px;
  outline: none;
}

h1, h2, h3, p { overflow-wrap: anywhere; }
h1, h2, h3 { color: var(--navy); letter-spacing: -0.025em; }
h1 { margin: 7px 0 14px; font-size: clamp(31px, 4vw, 44px); line-height: 1.08; }
h2 { margin: 5px 0 16px; font-size: clamp(24px, 3vw, 30px); line-height: 1.2; }
h3 { margin: 0; font-size: 17px; }

.eyebrow {
  margin: 0;
  color: var(--brand-dark);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.eyebrow_light { color: #74d5ff; }

.auth_layout {
  display: grid;
  grid-template-columns: minmax(0, 1.02fr) minmax(360px, 0.98fr);
  width: min(940px, 100%);
  margin: 64px auto;
  overflow: hidden;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 20px;
  box-shadow: var(--shadow-lg);
}

.auth_card { padding: clamp(28px, 5vw, 52px); }
.auth_lead { margin: 0 0 25px; color: var(--muted); line-height: 1.6; }
.auth_card form { display: grid; gap: 20px; }

.auth_benefits {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: clamp(30px, 5vw, 52px);
  overflow: hidden;
  color: #e9f7fc;
  background: linear-gradient(145deg, #002a3a 5%, #0d4d67 62%, #087f9f 125%);
}

.auth_benefits::after {
  position: absolute;
  right: -90px;
  bottom: -110px;
  width: 290px;
  height: 290px;
  background: rgba(0, 175, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.11);
  border-radius: 50%;
  content: "";
}

.auth_benefits h2 { max-width: 420px; margin-top: 10px; color: #fff; font-size: clamp(26px, 3.3vw, 35px); }
.benefit_list { display: grid; gap: 20px; margin: 34px 0; padding: 0; list-style: none; }
.benefit_list li { display: grid; grid-template-columns: 38px minmax(0, 1fr); gap: 14px; align-items: start; }
.benefit_list li > span { display: grid; width: 38px; height: 38px; place-items: center; color: #96e3ff; background: rgba(255, 255, 255, 0.09); border: 1px solid rgba(255, 255, 255, 0.16); border-radius: 10px; font-size: 11px; font-weight: 800; }
.benefit_list strong { display: block; color: #fff; font-size: 14px; }
.benefit_list p { margin: 5px 0 0; color: #c8dce4; font-size: 13px; line-height: 1.5; }
.auth_security { position: relative; z-index: 1; margin: auto 0 0; padding-top: 20px; color: #c8dce4; border-top: 1px solid rgba(255, 255, 255, 0.14); font-size: 12px; line-height: 1.55; }

.claim_layout {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(320px, 0.72fr);
  width: min(980px, 100%);
  margin: 54px auto;
  overflow: hidden;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 20px;
  box-shadow: var(--shadow-lg);
}

.claim_card { padding: clamp(28px, 5vw, 52px); }
.claim_step_mark { display: grid; width: 46px; height: 46px; place-items: center; margin-bottom: 22px; color: var(--success); background: var(--success-bg); border: 1px solid #bde4ce; border-radius: 14px; font-size: 22px; font-weight: 800; }
.claim_lead { margin: 0 0 28px; color: var(--muted); line-height: 1.65; }
.claim_lead strong { color: var(--navy); }
.claim_form { display: grid; gap: 18px; }
.claim_form label { margin: 0; }

.claim_aside { padding: clamp(28px, 5vw, 48px); color: #e9f7fc; background: linear-gradient(145deg, #002a3a 5%, #0d4d67 62%, #087f9f 125%); }
.claim_aside h2 { margin-top: 10px; color: #fff; }
.claim_aside ol { display: grid; gap: 24px; margin: 34px 0 0; padding: 0; list-style: none; }
.claim_aside li { display: grid; grid-template-columns: 38px minmax(0, 1fr); gap: 14px; align-items: start; }
.claim_aside li > span { display: grid; width: 38px; height: 38px; place-items: center; color: #96e3ff; background: rgba(255, 255, 255, 0.09); border: 1px solid rgba(255, 255, 255, 0.16); border-radius: 10px; font-size: 12px; font-weight: 800; }
.claim_aside strong { display: block; color: #fff; font-size: 14px; }
.claim_aside p { margin: 5px 0 0; color: #c8dce4; font-size: 13px; line-height: 1.55; }

.claim_pending { display: grid; grid-template-columns: 52px minmax(0, 1fr); gap: 18px; padding: 22px; background: var(--warning-bg); border: 1px solid #ead999; border-radius: 14px; }
.claim_pending_icon { display: grid; width: 52px; height: 52px; place-items: center; color: var(--warning); background: #fff; border: 1px solid #ead999; border-radius: 14px; font-size: 21px; }
.claim_pending h2 { margin: 0 0 8px; font-size: 22px; }
.claim_pending p { margin: 0; color: var(--muted); line-height: 1.6; }
.claim_summary { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin: 18px 0; }
.claim_summary div { min-width: 0; padding: 11px 12px; background: rgba(255, 255, 255, 0.72); border-radius: 9px; }
.claim_summary dt { color: var(--muted); font-size: 11px; font-weight: 700; text-transform: uppercase; }
.claim_summary dd { margin: 4px 0 0; color: var(--navy); font-size: 13px; font-weight: 700; overflow-wrap: anywhere; }

label {
  display: grid;
  gap: 8px;
  margin: 18px 0;
  color: var(--navy-soft);
  font-size: 14px;
  font-weight: 700;
}

.form_field {
  display: grid;
  min-width: 0;
  gap: 8px;
}

.form_field > label { margin: 0; }

.field_group {
  display: grid;
  gap: 8px;
  margin: 18px 0;
}

.field_label {
  color: var(--navy-soft);
  font-size: 14px;
  font-weight: 700;
}

input, textarea, select {
  width: 100%;
  min-height: 48px;
  padding: 12px 14px;
  color: var(--ink);
  background: #fff;
  border: 1px solid var(--line-strong);
  border-radius: 10px;
  outline: none;
  transition: border-color 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}

textarea { min-height: 132px; resize: vertical; line-height: 1.55; }
select { cursor: pointer; }
input::placeholder, textarea::placeholder { color: #8da0ac; opacity: 1; }
input:hover, textarea:hover, select:hover { border-color: #8eb0c0; }
input:focus, textarea:focus, select:focus { border-color: var(--brand); box-shadow: 0 0 0 4px rgba(0, 175, 255, 0.13); }
input:read-only { color: var(--muted); background: #f3f6f8; cursor: not-allowed; }
input[type="checkbox"] { accent-color: var(--brand-dark); }
.otp_input { font-size: 24px; font-weight: 800; letter-spacing: 0.32em; text-align: center; }

.multi_select {
  position: relative;
  min-width: 0;
}

.multi_select summary {
  display: flex;
  min-height: 48px;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 14px;
  color: #8da0ac;
  background: #fff;
  border: 1px solid var(--line-strong);
  border-radius: 10px;
  cursor: pointer;
  list-style: none;
  outline: none;
  transition: border-color 0.18s ease, box-shadow 0.18s ease;
}

.multi_select summary::-webkit-details-marker { display: none; }
.multi_select summary:hover { border-color: #8eb0c0; }
.multi_select summary:focus { border-color: var(--brand); box-shadow: 0 0 0 4px rgba(0, 175, 255, 0.13); }
.multi_select[open] summary { border-color: var(--brand); border-radius: 10px 10px 0 0; box-shadow: 0 0 0 4px rgba(0, 175, 255, 0.1); }
.multi_select [data-summary-for].has_value { color: var(--ink); }

.multi_select_arrow {
  width: 9px;
  height: 9px;
  flex: 0 0 auto;
  border-right: 2px solid var(--muted);
  border-bottom: 2px solid var(--muted);
  transform: rotate(45deg) translateY(-2px);
  transition: transform 0.16s ease;
}

.multi_select[open] .multi_select_arrow { transform: rotate(225deg) translate(-2px, -1px); }

.multi_select_menu {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  max-height: 280px;
  padding: 8px;
  overflow: auto;
  background: #fff;
  border: 1px solid var(--brand);
  border-top: 0;
  border-radius: 0 0 10px 10px;
  box-shadow: 0 15px 35px rgba(0, 42, 58, 0.14);
  scrollbar-width: thin;
}

label.multi_select_option {
  display: flex;
  min-width: 0;
  align-items: center;
  gap: 9px;
  margin: 0;
  padding: 9px 10px;
  color: var(--ink);
  border-radius: 7px;
  cursor: pointer;
  font-size: 13px;
  font-weight: 600;
}

label.multi_select_option:hover { background: #edf8fb; }
label.multi_select_option:has(input:checked) { color: var(--navy); background: #e3f6fc; }
label.multi_select_option input { width: 17px; min-height: 17px; margin: 0; padding: 0; flex: 0 0 auto; }
label.multi_select_option span { min-width: 0; overflow-wrap: anywhere; }

.field_hint, .panel_note {
  color: var(--muted);
  font-size: 13px;
  font-weight: 400;
  line-height: 1.55;
}

p.field_hint { margin: 0; }
.panel_note { max-width: 850px; margin: 0 0 24px; }

.button {
  position: relative;
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 19px;
  color: #fff;
  background: var(--navy);
  border: 1px solid var(--navy);
  border-radius: 10px;
  box-shadow: 0 5px 14px rgba(0, 42, 58, 0.12);
  font-weight: 700;
  line-height: 1.25;
  transition: transform 0.16s ease, box-shadow 0.16s ease, background 0.16s ease;
}

.button:hover { background: #06445a; box-shadow: 0 8px 18px rgba(0, 42, 58, 0.18); transform: translateY(-1px); }
.button:active { transform: translateY(0); }
.button:disabled { opacity: 0.58; cursor: wait; transform: none; box-shadow: none; }
.button_full { width: 100%; margin-top: 0; }
.button_small { min-height: 38px; padding: 7px 14px; font-size: 13px; }
.button_secondary { color: var(--navy); background: #fff; border-color: var(--line-strong); box-shadow: none; }
.button_secondary:hover { color: var(--brand-dark); background: #edf8fb; border-color: #9bcfe0; box-shadow: none; }
.button_danger { color: #fff; background: var(--danger); border-color: var(--danger); }
.button_danger:hover { background: #921c25; }

.button_link {
  display: block;
  margin: 0 auto;
  padding: 6px;
  color: var(--brand-dark);
  background: transparent;
  border: 0;
  border-radius: 6px;
  font-size: 13px;
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.button_link:hover { color: var(--navy); background: #edf8fb; }
.button.is_loading::before { width: 15px; height: 15px; border: 2px solid currentColor; border-right-color: transparent; border-radius: 50%; content: ""; animation: spin 0.7s linear infinite; }

.status {
  display: flex;
  min-height: 0;
  align-items: flex-start;
  gap: 9px;
  margin-top: 16px;
  padding: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.5;
}

.status:empty { display: none; }
.status:not(:empty) { padding: 12px 14px; background: #eef7fb; border: 1px solid #cce8f2; border-radius: 10px; }
.status:not(:empty)::before { flex: 0 0 auto; width: 8px; height: 8px; margin-top: 6px; background: var(--brand-dark); border-radius: 50%; content: ""; }
.status.is_error { color: var(--danger); background: var(--danger-bg); border-color: #f1c3c7; }
.status.is_error::before { background: var(--danger); }
.status.is_success { color: var(--success); background: var(--success-bg); border-color: #bde4ce; }
.status.is_success::before { background: var(--success); }

.portal_intro, .portal_panel {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 16px;
  box-shadow: var(--shadow-sm);
}

.portal_intro { position: relative; display: flex; align-items: flex-start; justify-content: space-between; gap: 30px; padding: clamp(24px, 4vw, 36px); overflow: hidden; }
.portal_intro::after { position: absolute; top: -95px; right: -45px; width: 220px; height: 220px; background: rgba(0, 175, 255, 0.06); border-radius: 50%; content: ""; pointer-events: none; }
.portal_intro > * { position: relative; z-index: 1; }
.portal_intro h1 { max-width: 760px; font-size: clamp(28px, 3.5vw, 40px); }
.portal_intro p:last-child { max-width: 760px; margin-bottom: 0; color: var(--muted); line-height: 1.6; }

.verification_badge, .state_pill, .row_state {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  gap: 7px;
  padding: 7px 11px;
  color: var(--warning);
  background: var(--warning-bg);
  border: 1px solid #ead999;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 800;
  line-height: 1.25;
}

.verification_badge::before, .state_pill::before, .row_state::before { width: 7px; height: 7px; background: currentColor; border-radius: 50%; content: ""; }
.verification_badge.is_verified, .state_pill.is_active, .row_state.is_active { color: var(--success); background: var(--success-bg); border-color: #bde4ce; }
.state_pill.is_rejected, .row_state.is_rejected, .row_state.is_past_due, .row_state.is_suspended { color: var(--danger); background: var(--danger-bg); border-color: #f1c3c7; }
.state_pill.is_draft, .row_state.is_draft, .row_state.is_hidden, .row_state.is_archived, .row_state.is_cancelled { color: var(--muted); background: #f2f5f7; border-color: #dbe4e8; }

.portal_nav { display: flex; gap: 6px; margin: 18px 0; padding: 7px; overflow-x: auto; scrollbar-width: thin; background: #e1e7ea; border: 1px solid #d5dfe4; border-radius: 12px; }
.nav_item { display: inline-flex; min-height: 42px; align-items: center; gap: 8px; padding: 8px 14px; color: #49606c; background: transparent; border: 0; border-radius: 8px; font-size: 13px; font-weight: 700; white-space: nowrap; transition: color 0.16s ease, background 0.16s ease, box-shadow 0.16s ease; }
.nav_marker { display: grid; width: 20px; height: 20px; place-items: center; color: #718894; background: rgba(255, 255, 255, 0.62); border-radius: 6px; font-size: 10px; }
.nav_item:hover { color: var(--navy); background: rgba(255, 255, 255, 0.6); }
.nav_item.is_active { color: var(--navy); background: #fff; box-shadow: var(--shadow-sm); }
.nav_item.is_active .nav_marker { color: #fff; background: var(--brand-dark); }

.status_board { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; margin: 18px 0; }
.status_card { min-height: 150px; padding: 22px; background: #fff; border: 1px solid var(--line); border-left: 5px solid var(--warning); border-radius: 14px; box-shadow: var(--shadow-sm); }
.status_card.is_active { border-left-color: var(--success); }
.status_card.is_rejected, .status_card.is_past_due, .status_card.is_suspended, .status_card.is_cancelled, .status_card.is_error { border-left-color: var(--danger); }
.status_card.is_draft, .status_card.is_inactive, .status_card.is_unknown { border-left-color: var(--muted); }
.status_card_label { margin: 0 0 10px; color: var(--muted); font-size: 12px; font-weight: 800; letter-spacing: 0.06em; text-transform: uppercase; }
.status_card > strong { display: block; color: var(--navy); font-size: clamp(20px, 2.4vw, 27px); line-height: 1.25; }
.status_card > p:not(.status_card_label) { margin: 9px 0 0; color: var(--muted); font-size: 13px; line-height: 1.55; }
.status_card .status_card_warning { padding-top: 10px; color: var(--danger); border-top: 1px solid var(--line); font-weight: 700; }

.portal_panel { padding: clamp(22px, 4vw, 34px); }
.portal_panel.is_loading { position: relative; min-height: 180px; }
.panel_heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 20px; }
.form_grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px 22px; }
.form_grid > label, .form_grid > .field_group { margin: 0; }
.form_grid.compact { margin: 24px 0; padding: clamp(18px, 3vw, 26px); background: var(--canvas-soft); border: 1px solid var(--line); border-radius: 12px; }
.full_width { grid-column: 1 / -1; }
.form_actions { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }

.data_list { display: grid; gap: 12px; margin-top: 22px; }
.data_row { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 18px; align-items: center; padding: 17px 18px; background: #fff; border: 1px solid var(--line); border-radius: 12px; transition: border-color 0.16s ease, box-shadow 0.16s ease; }
.data_row:hover { border-color: #bed7e1; box-shadow: var(--shadow-sm); }
.data_row_header { display: flex; flex-wrap: wrap; align-items: center; gap: 9px; margin-bottom: 6px; }
.data_row h3, .data_row p { margin: 0; }
.data_row p { color: var(--muted); font-size: 13px; line-height: 1.5; }

.offer_preview_card { overflow: hidden; background: #fff; border: 1px solid var(--line); border-radius: 16px; box-shadow: var(--shadow-sm); }
.offer_preview_heading { display: flex; align-items: center; justify-content: space-between; gap: 18px; padding: 17px 20px; border-bottom: 1px solid var(--line); }
.offer_preview_identity { display: flex; min-width: 0; align-items: baseline; gap: 12px; }
.offer_preview_identity span { color: var(--brand-dark); font-size: 13px; font-weight: 800; }
.offer_preview_identity strong { min-width: 0; overflow-wrap: anywhere; color: var(--navy); font-size: 18px; }
.offer_visibility_badge { display: inline-flex; flex: 0 0 auto; align-items: center; gap: 7px; padding: 7px 11px; border: 1px solid; border-radius: 999px; font-size: 12px; font-weight: 800; }
.offer_visibility_badge.is_visible { color: var(--success); background: var(--success-bg); border-color: #bde4ce; }
.offer_visibility_badge.is_unpaid { color: var(--warning); background: var(--warning-bg); border-color: #ead999; }
.offer_visibility_badge.is_hidden { color: var(--muted); background: #f2f5f7; border-color: #dbe4e8; }
.offer_preview_metrics { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 10px; padding: 14px; background: #f9fbfc; }
.offer_preview_metric { display: grid; min-width: 0; align-content: center; gap: 7px; min-height: 92px; padding: 14px; background: #eef4f7; border-radius: 12px; }
.offer_preview_metric span { color: var(--muted); font-size: 11px; font-weight: 800; }
.offer_preview_metric strong { overflow-wrap: anywhere; color: var(--navy); font-size: 16px; line-height: 1.3; }
.offer_preview_metric strong.is_accent { color: var(--brand-dark); }
.offer_preview_metric strong.is_price { color: #fff; background: var(--navy); border-radius: 8px; padding: 9px 10px; text-align: center; }
.offer_preview_details { margin: 0 20px; border-bottom: 1px solid var(--line); }
.offer_preview_details > summary { padding: 14px 0; color: var(--brand-dark); cursor: pointer; font-weight: 800; }
.offer_preview_details dl { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 24px; margin: 0 0 16px; }
.offer_preview_details dl > div { display: flex; min-width: 0; justify-content: space-between; gap: 20px; padding: 10px 12px; border-radius: 8px; }
.offer_preview_details dl > div:nth-child(4n + 1), .offer_preview_details dl > div:nth-child(4n + 2) { background: #f3f5f6; }
.offer_preview_details dt { color: var(--muted); }
.offer_preview_details dd { margin: 0; overflow-wrap: anywhere; color: var(--navy); font-weight: 700; text-align: right; }
.offer_management_actions { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 10px; padding: 14px 20px 18px; }

.tariff_methods { display: grid; gap: 14px; margin-top: 30px; padding-top: 26px; border-top: 1px solid var(--line); }
.tariff_methods_intro h3 { margin: 0; color: var(--navy); font-size: 20px; }
.tariff_methods_intro p { margin: 7px 0 0; color: var(--muted); line-height: 1.55; }
.tariff_method { overflow: hidden; background: #fff; border: 1px solid var(--line); border-radius: 14px; }
.tariff_method > summary { display: flex; align-items: center; justify-content: space-between; gap: 18px; padding: 18px 20px; color: var(--navy); background: var(--canvas-soft); cursor: pointer; font-weight: 800; }
.tariff_method > summary small { color: var(--muted); font-size: 12px; font-weight: 600; }
.tariff_method_body { padding: 22px; border-top: 1px solid var(--line); }
.csv_guide { display: grid; grid-template-columns: minmax(0, 1fr) minmax(260px, 0.85fr); gap: 20px; margin: 18px 0; padding: 20px; background: #f4fbfd; border: 1px solid #cfe8f1; border-radius: 12px; }
.csv_guide h3 { margin-top: 0; font-size: 17px; }
.csv_guide p { color: var(--muted); font-size: 13px; line-height: 1.55; }
.csv_guide code, .csv_fields code { color: var(--navy); font: 12px/1.5 ui-monospace, SFMono-Regular, Menlo, monospace; }
.csv_sample { min-width: 0; }
.csv_sample pre { margin: 10px 0 0; padding: 14px; overflow: auto; color: #d8eef6; background: var(--navy); border-radius: 9px; font: 12px/1.6 ui-monospace, SFMono-Regular, Menlo, monospace; white-space: pre-wrap; overflow-wrap: anywhere; }
.csv_fields { margin: 18px 0; padding: 16px 18px; border: 1px solid var(--line); border-radius: 12px; }
.csv_fields > summary { color: var(--navy); cursor: pointer; font-weight: 800; }
.csv_fields dl { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px 18px; margin-bottom: 0; }
.csv_fields dl > div { padding: 10px 0; border-bottom: 1px solid var(--line); }
.csv_fields dt, .csv_fields dd { margin: 0; }
.csv_fields dd { margin-top: 5px; color: var(--muted); font-size: 12px; line-height: 1.5; }
.csv_error_list { display: grid; gap: 10px; margin-top: 16px; }
.csv_error_item { padding: 14px; background: var(--danger-bg); border: 1px solid #e7b7bc; border-radius: 10px; }
.csv_error_item dl { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px 16px; margin: 0; }
.csv_error_item dl > div { min-width: 0; }
.csv_error_item dt { color: var(--danger); font-size: 11px; font-weight: 800; text-transform: uppercase; }
.csv_error_item dd { margin: 3px 0 0; overflow-wrap: anywhere; color: var(--ink); font: 12px/1.45 ui-monospace, SFMono-Regular, Menlo, monospace; }

.empty_state, .loading_state { display: grid; min-height: 160px; place-items: center; padding: 30px; color: var(--muted); background: var(--canvas-soft); border: 1px dashed var(--line-strong); border-radius: 12px; text-align: center; }
.empty_state_content { max-width: 430px; }
.empty_state_mark { display: grid; width: 44px; height: 44px; place-items: center; margin: 0 auto 13px; color: var(--brand-dark); background: #e2f5fb; border-radius: 12px; font-size: 21px; font-weight: 800; }
.empty_state h3 { margin-bottom: 7px; font-size: 16px; }
.empty_state p { margin: 0; font-size: 13px; line-height: 1.55; }
.empty_state .button { margin-top: 16px; }
.empty_state.is_error { background: var(--danger-bg); border-color: #e7b7bc; }
.empty_state.is_error .empty_state_mark { color: var(--danger); background: #fbdde0; }
.loading_state { grid-template-columns: auto 1fr; min-height: 90px; place-items: center start; gap: 12px; text-align: left; }
.loading_spinner { width: 22px; height: 22px; border: 3px solid #cceaf5; border-top-color: var(--brand-dark); border-radius: 50%; animation: spin 0.75s linear infinite; }

.file_drop { position: relative; min-height: 165px; align-content: center; justify-items: center; padding: 30px; color: var(--navy); background: #f4fbfd; border: 2px dashed #9ecbd9; border-radius: 14px; text-align: center; transition: background 0.16s ease, border-color 0.16s ease; }
.file_drop:hover, .file_drop:focus-within { background: #ebf8fc; border-color: var(--brand-dark); }
.file_drop_title { font-size: 16px; font-weight: 800; }
.file_drop input { width: min(100%, 390px); min-height: auto; margin-top: 8px; padding: 8px; background: #fff; cursor: pointer; }
.check_row { display: flex; align-items: flex-start; gap: 10px; font-weight: 400; line-height: 1.45; }
.check_row input { width: 18px; min-height: 18px; margin: 1px 0 0; padding: 0; flex: 0 0 auto; }

.preview_box, .secret_box, .api_help { margin-top: 20px; padding: 18px; overflow: auto; background: #eef8fb; border: 1px solid #cfe8f1; border-radius: 12px; }
.preview_box p:first-child, .secret_box p:first-child { margin-top: 0; }
.preview_box p:last-child, .secret_box p:last-child { margin-bottom: 0; }
.secret_box code { display: block; margin-top: 12px; padding: 12px; overflow-wrap: anywhere; color: var(--navy); background: #fff; border: 1px solid var(--line); border-radius: 8px; user-select: all; }
.api_help summary { color: var(--navy); cursor: pointer; font-weight: 700; }
.api_help pre { margin: 16px 0 0; padding: 15px; color: #d8eef6; background: var(--navy); border-radius: 9px; font: 12px/1.6 ui-monospace, SFMono-Regular, Menlo, monospace; white-space: pre-wrap; }

.plans_grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; margin: 24px 0; }
.plans_grid article { position: relative; padding: 24px; overflow: hidden; background: #fff; border: 1px solid var(--line); border-radius: 14px; }
.plans_grid article.plan_featured { border-color: #8ed5eb; box-shadow: 0 10px 28px rgba(8, 127, 159, 0.11); }
.plan_label { display: inline-flex; margin-bottom: 16px; padding: 5px 8px; color: var(--brand-dark); background: #e7f7fb; border-radius: 6px; font-size: 11px; font-weight: 800; text-transform: uppercase; }
.plans_grid h3 { font-size: 20px; }
.plans_grid p { margin: 12px 0; color: var(--muted); }
.plan_price { display: flex; align-items: baseline; gap: 7px; }
.plan_price strong { color: var(--navy); font-size: 34px; letter-spacing: -0.04em; }
.plan_price span { font-size: 13px; }

.payment_asset_control { max-width: 560px; }
.payment_asset_control select { width: 100%; overflow-wrap: anywhere; }
.payment_asset_value { min-height: 48px; padding: 13px 14px; overflow-wrap: anywhere; color: var(--navy); background: #f4fbfd; border: 1px solid var(--line); border-radius: 9px; font-weight: 700; line-height: 1.45; }
.payment_asset_control small { display: block; margin-top: 7px; overflow-wrap: anywhere; }

.renewal_notice { display: grid; grid-template-columns: 42px minmax(0, 1fr); gap: 14px; align-items: start; margin: 4px 0 18px; padding: 17px 18px; color: var(--navy-soft); background: #eef8fb; border: 1px solid #cfe8f1; border-radius: 12px; }
.renewal_mark { display: grid; width: 42px; height: 42px; place-items: center; color: var(--brand-dark); background: #fff; border: 1px solid #cfe8f1; border-radius: 11px; font-size: 22px; font-weight: 800; }
.renewal_notice strong { display: block; color: var(--navy); font-size: 14px; }
.renewal_notice p { margin: 5px 0 0; color: var(--muted); font-size: 13px; line-height: 1.55; }
.renewal_state { margin-top: 8px !important; padding-top: 8px; border-top: 1px solid var(--line); }

dialog { width: min(460px, calc(100% - 32px)); padding: 28px; color: var(--ink); background: #fff; border: 1px solid var(--line); border-radius: 16px; box-shadow: 0 20px 80px rgba(0, 42, 58, 0.3); }
dialog::backdrop { background: rgba(0, 32, 45, 0.62); backdrop-filter: blur(2px); }
dialog h2 { margin-top: 0; }
dialog p { color: var(--muted); line-height: 1.55; }
:focus-visible { outline: 3px solid rgba(0, 175, 255, 0.45); outline-offset: 3px; }

@keyframes spin { to { transform: rotate(360deg); } }

@media (max-width: 900px) {
  .offer_preview_metrics { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .auth_layout { grid-template-columns: 1fr; margin: 36px auto; }
  .claim_layout { grid-template-columns: 1fr; margin: 36px auto; }
  .auth_benefits { order: -1; }
  .benefit_list { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .benefit_list li { grid-template-columns: 1fr; }
  .auth_security { margin-top: 22px; }
  .claim_aside { order: -1; }
  .claim_aside ol { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .claim_aside li { grid-template-columns: 1fr; }
}

@media (max-width: 700px) {
  .header_inner, .portal_shell { width: min(100% - 24px, 1180px); }
  .offer_preview_heading, .offer_preview_identity { align-items: flex-start; flex-direction: column; }
  .offer_preview_metrics { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .offer_preview_details dl { grid-template-columns: 1fr; }
  .offer_preview_details dl > div:nth-child(odd) { background: #f3f5f6; }
  .offer_preview_details dl > div:nth-child(even) { background: transparent; }
  .offer_management_actions { justify-content: stretch; }
  .offer_management_actions .button { flex: 1 1 150px; }
  .portal_shell { margin-top: 20px; }
  .header_inner { min-height: 70px; gap: 12px; }
  .portal_header { min-height: 70px; }
  .portal_brand img { width: 124px; height: 27px; }
  .header_context, .catalog_link { display: none; }
  .auth_layout, .claim_layout { margin-top: 20px; border-radius: 15px; }
  .auth_benefits, .auth_card, .claim_card, .claim_aside, .portal_panel, .portal_intro { padding: 22px; }
  .auth_benefits h2 { font-size: 27px; }
  .benefit_list { grid-template-columns: 1fr; gap: 14px; }
  .benefit_list li { grid-template-columns: 38px 1fr; }
  .claim_aside ol { grid-template-columns: 1fr; gap: 16px; }
  .claim_aside li { grid-template-columns: 38px 1fr; }
  .auth_security { display: none; }
  .portal_intro, .panel_heading { flex-direction: column; }
  .portal_intro { gap: 16px; }
  .form_grid, .plans_grid, .status_board, .csv_guide, .csv_fields dl, .csv_error_item dl { grid-template-columns: 1fr; }
  .full_width { grid-column: auto; }
  .multi_select_menu { grid-template-columns: 1fr; }
  .data_row { grid-template-columns: 1fr; }
  .data_row > .form_actions .button { flex: 1 1 auto; }
  .claim_pending { grid-template-columns: 1fr; }
  .portal_nav { margin-right: -12px; margin-left: -12px; border-right: 0; border-left: 0; border-radius: 0; }
}

@media (max-width: 440px) {
  .header_actions .button { min-height: 36px; padding: 7px 11px; }
  .header_actions { gap: 5px; }
  .portal_languages { gap: 0; }
  .portal_languages a { min-width: 23px; height: 26px; padding: 0 2px; font-size: 10px; }
  .portal_brand img { width: 112px; }
  h1 { font-size: 29px; }
  .auth_benefits h2 { font-size: 24px; }
  .benefit_list p { display: none; }
  .portal_intro, .portal_panel, .auth_card, .auth_benefits, .claim_card, .claim_aside { padding: 19px; }
  .portal_nav { padding: 6px 12px; }
  .nav_item { padding: 8px 11px; }
  .form_actions { align-items: stretch; flex-direction: column; }
  .form_actions .button { width: 100%; }
  .file_drop { padding: 22px 14px; }
  .renewal_notice { grid-template-columns: 1fr; }
  .claim_summary { grid-template-columns: 1fr; }
  dialog { padding: 22px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition-duration: 0.01ms !important; animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; }
}
