@import url("/shop/assets/fonts.css");
:root {
  --ink: #172d2b;
  --muted: #70817d;
  --accent: #267868;
  --line: #e0e8e4;
  --paper: #f5f7f4;
  --white: #fff;
  --mint: #e4f1e8;
  --radius: 18px;
  font-family: Inter, "Segoe UI", "Microsoft YaHei", sans-serif;
  color: var(--ink);
  background: var(--paper);
  font-synthesis: none;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
}
button,
input,
select {
  font: inherit;
}
button,
a,
input,
select {
  touch-action: manipulation;
}
button,
a {
  -webkit-tap-highlight-color: transparent;
}
button {
  cursor: pointer;
}
button:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}
a {
  color: var(--accent);
  text-decoration: none;
}
a:hover {
  text-decoration: underline;
}
button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible {
  outline: 3px solid #76b9a5;
  outline-offset: 3px;
}
.shell {
  display: flex;
  min-height: 100vh;
}
.sidebar {
  width: 250px;
  flex: none;
  background: #fff;
  border-right: 1px solid var(--line);
  padding: 34px 22px;
  display: flex;
  flex-direction: column;
  position: fixed;
  inset: 0 auto 0 0;
}
.brand {
  font-size: 23px;
  letter-spacing: -1px;
  font-weight: 750;
  display: flex;
  align-items: center;
  white-space: nowrap;
  color: var(--ink);
}
.brand:hover {
  text-decoration: none;
}
.brand-dot {
  font-size: 11px;
  align-self: flex-start;
  margin-top: 5px;
}
.workspace-label {
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 1.5px;
  color: #96a19b;
  margin: 25px 0 24px;
}
.nav-item {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 13px;
  border: 0;
  background: transparent;
  color: var(--muted);
  padding: 14px 15px;
  border-radius: 11px;
  margin-bottom: 6px;
  text-align: left;
  font-size: 14px;
}
.nav-item:hover {
  background: #f5f7f4;
}
.nav-item.active {
  background: var(--mint);
  color: var(--accent);
  font-weight: 650;
}
.nav-icon {
  font-size: 18px;
  width: 22px;
  display: inline-block;
  text-align: center;
}
.nav-icon svg {
  display: block;
  width: 1em;
  height: 1em;
  margin: auto;
}
.sidebar-bottom {
  margin-top: auto;
  border-top: 1px solid var(--line);
  padding: 22px 5px 0;
  display: flex;
  gap: 8px;
  align-items: center;
  font-size: 11px;
  color: var(--muted);
}
.status-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent);
}
.main-shell {
  margin-left: 250px;
  flex: 1;
  min-width: 0;
}
.topbar {
  height: 85px;
  background: #ffffffad;
  border-bottom: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 46px;
  font-size: 13px;
}
.toolbar {
  display: flex;
  align-items: center;
  gap: 16px;
}
.toolbar select {
  border: 0;
  background: transparent;
  color: var(--muted);
  max-width: 130px;
}
.account-controls {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 3px;
}
.account-email {
  max-width: 220px;
  overflow: hidden;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.2;
  text-overflow: ellipsis;
  white-space: nowrap;
}
main {
  max-width: 1300px;
  margin: 0 auto;
  padding: 40px 46px;
  min-height: 75vh;
}
footer {
  padding: 20px 46px 30px;
  color: var(--muted);
  font-size: 11px;
  display: flex;
  justify-content: space-between;
  gap: 14px;
}
.eyebrow {
  font-size: 11px;
  letter-spacing: 2px;
  text-transform: uppercase;
  font-weight: 600;
  color: var(--accent);
  margin-bottom: 12px;
}
h1 {
  font-size: 32px;
  font-weight: 650;
  letter-spacing: -1px;
  line-height: 1.3;
  margin: 0 0 12px;
}
h2 {
  font-size: 20px;
  font-weight: 650;
  letter-spacing: -0.4px;
  margin: 0 0 10px;
}
h3 {
  font-size: 16px;
  margin: 0 0 10px;
}
p {
  line-height: 1.75;
  font-size: 14px;
}
.muted,
.subtitle {
  color: var(--muted);
}
.subtitle {
  margin: 0 0 27px;
}
.section-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  margin: 28px 0 17px;
}
.section-head h2 {
  margin: 0;
}
.hero {
  position: relative;
  overflow: hidden;
  background: var(--ink);
  color: #fff;
  border-radius: var(--radius);
  padding: 36px;
  margin-bottom: 28px;
  min-height: 220px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
}
.hero .eyebrow {
  color: #a8d9bd;
}
.hero h2 {
  font-size: 29px;
  max-width: 520px;
  line-height: 1.5;
}
.hero p {
  color: #c0d2ca;
  max-width: 530px;
  margin-bottom: 22px;
}
.hero-art {
  width: 150px;
  height: 150px;
  border: 1px solid #638679;
  border-radius: 50%;
  display: grid;
  place-items: center;
  flex: none;
  position: relative;
}
.hero-art:before,
.hero-art:after {
  content: "";
  position: absolute;
  border: 1px solid #638679;
  border-radius: 50%;
  inset: 18px -15px;
  transform: rotate(40deg);
}
.hero-art:after {
  inset: -15px 30px;
  transform: rotate(-30deg);
}
.hero-art span {
  font-size: 33px;
  color: #d2ecd1;
  font-weight: 300;
}
.button {
  border: 1px solid transparent;
  background: var(--accent);
  color: #fff;
  border-radius: 10px;
  padding: 11px 18px;
  font-size: 13px;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  line-height: 1.4;
}
.button:hover {
  background: #1d6456;
  text-decoration: none;
}
.button.secondary {
  background: #fff;
  border-color: var(--line);
  color: var(--ink);
}
.button.secondary:hover {
  background: #f0f4ef;
}
.button.light {
  background: #d9edbd;
  color: var(--ink);
}
.button.small {
  font-size: 12px;
  padding: 8px 12px;
}
.button.full {
  width: 100%;
  margin-top: 14px;
}
.actions {
  display: flex;
  gap: 10px;
  align-items: center;
  flex-wrap: wrap;
}
.grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}
.grid.two {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
.country-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  min-height: 190px;
  text-align: left;
  color: var(--ink);
  cursor: pointer;
  font: inherit;
}
.country-card:hover,
.country-card:focus-visible {
  border-color: var(--accent);
  box-shadow: 0 8px 24px #12372b12;
}
.country-name {
  font-size: 22px;
  font-weight: 650;
  margin-bottom: 7px;
}
.country-meta {
  color: var(--muted);
  font-size: 13px;
}
.country-action {
  color: var(--accent);
  font-size: 13px;
  font-weight: 600;
  margin-top: auto;
  padding-top: 20px;
}
.compact-plan-group {
  cursor: pointer;
}
.stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  margin-bottom: 28px;
}
.overview-stats {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}
.card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px;
  min-width: 0;
}
.stat-label {
  color: var(--muted);
  font-size: 12px;
  margin: 0 0 14px;
}
.stat-value {
  font-size: 28px;
  letter-spacing: -1px;
  font-weight: 600;
}
.stat-value small {
  font-size: 12px;
  letter-spacing: 0;
  color: var(--muted);
  margin-left: 6px;
}
.stat-note {
  margin-top: 10px;
  font-size: 11px;
  color: var(--muted);
}
.plan {
  display: flex;
  flex-direction: column;
  position: relative;
}
.plan-tag {
  font-size: 10px;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 20px;
}
.plan h3 {
  font-size: 18px;
  line-height: 1.5;
  overflow-wrap: anywhere;
}
.plan-group .stock-summary {
  color: var(--muted);
  font-size: 12px;
  margin: -4px 0 12px;
}
.compact-plan-group {
  cursor: pointer;
  transition: border-color .2s ease, transform .2s ease;
}
.compact-plan-group:hover { border-color: var(--accent); transform: translateY(-2px); }
.plan-group-summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: auto;
  padding-top: 18px;
  color: var(--muted);
  font-size: 12px;
}
.renewal-layout {
  display: grid;
  grid-template-columns: minmax(240px, .78fr) minmax(0, 1.22fr);
  gap: 20px;
  margin-top: 22px;
  align-items: start;
}
.renewal-summary {
  position: sticky;
  top: 22px;
}
.renewal-summary h2 {
  overflow-wrap: anywhere;
}
.renewal-access {
  color: var(--accent);
  font-size: 13px;
  margin: 0 0 22px;
  line-height: 1.65;
}
.renewal-facts {
  border-top: 1px solid var(--line);
  padding-top: 8px;
}
.renewal-cycle-options {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  width: 100%;
}
.renewal-cycle-option {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 7px;
  min-height: 78px;
  padding: 14px;
  text-align: left;
  color: inherit;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
}
.renewal-cycle-option:hover,
.renewal-cycle-option.selected {
  border-color: var(--accent);
  background: var(--mint);
}
.renewal-cycle-option span {
  color: var(--accent);
  font-size: 15px;
  font-weight: 650;
}
.renewal-total {
  margin-top: 20px;
}
.renewal-payment-result {
  margin-top: 22px;
}
.plan-choice-layout {
  display: block;
  margin-top: 18px;
}
.plan-access-selector {
  border: 1px solid var(--line);
  border-radius: 15px;
  padding: 18px;
  min-width: 0;
}
.plan-access-selector h3 { margin-top: 0; font-size: 15px; }
.plan-choice-options {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}
dialog .plan-choice-options { grid-template-columns: 1fr; }
.plan-choice-option {
  display: grid;
  gap: 5px;
  width: 100%;
  text-align: left;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: transparent;
  color: inherit;
  padding: 13px;
  cursor: pointer;
}
.plan-choice-option:hover, .plan-choice-option.selected { border-color: var(--accent); background: var(--accent-soft); }
.plan-choice-option span, .plan-choice-option small { color: var(--muted); }
.plan-choice-option .badge { justify-self: start; }
.plan-description {
  border-top: 1px solid var(--line);
  margin-top: 20px;
  padding: 22px 0 0;
  min-width: 0;
}
.plan-description h3 { margin-top: 0; font-size: 15px; }
.description-copy { white-space: pre-line; color: #586b63; line-height: 1.7; }
.sharing-limit {
  padding: 2px 6px;
  border-radius: 5px;
  background: #fff0c2;
  color: #85540b;
  font-weight: 700;
  -webkit-box-decoration-break: clone;
  box-decoration-break: clone;
}
.description-media { display: grid; gap: 8px; margin-top: 16px; }
.description-media-section { border: 1px solid var(--line); border-radius: 11px; overflow: hidden; }
.description-toggle { display: flex; width: 100%; align-items: center; justify-content: space-between; gap: 12px; border: 0; padding: 11px 13px; background: var(--accent-soft); color: var(--ink); font-size: 13px; text-align: left; cursor: pointer; }
.description-toggle:hover { background: #dfeee8; }
.description-toggle-title { font-weight: 650; }
.description-toggle-action { color: var(--accent); font-size: 12px; white-space: nowrap; }
.description-images { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; padding: 12px; background: #f8fbf8; }
.description-images[hidden] { display: none; }
.description-images.single { grid-template-columns: 1fr; }
.description-images img { display: block; width: 100%; max-height: 320px; object-fit: contain; border-radius: 8px; background: #f5f8f5; cursor: zoom-in; }
.image-preview { display: block; width: auto; height: auto; max-width: 100%; max-height: calc(90dvh - 140px); object-fit: contain; margin-inline: auto; border-radius: 10px; background: #f5f8f5; }
.image-error { min-height: 80px; display: flex; align-items: center; justify-content: center; color: var(--muted); font-size: 12px; margin: 0; }
.catalog-section-head { margin-top: 30px; margin-bottom: 14px; }
.plan-choice-facts { margin-top: 18px; }
.plan-choice-stock { margin-top: 10px; color: var(--muted); font-size: 12px; text-align: center; }
.plan-options {
  display: grid;
  gap: 14px;
}
.plan-option {
  border: 1px solid var(--line);
  border-radius: 13px;
  padding: 15px;
  min-width: 0;
}
.plan-option h4 {
  font-size: 14px;
  line-height: 1.5;
  margin: 0 0 8px;
}
.plan-option .price {
  font-size: 25px;
  margin: 8px 0 2px;
}
.plan-option .features {
  padding: 9px 0 2px;
  margin-top: 8px;
}
.plan-option .features li {
  margin: 8px 0;
}
.plan .price {
  font-size: 33px;
  font-weight: 650;
  margin: 16px 0 5px;
  letter-spacing: -1px;
}
.plan .price small {
  font-size: 12px;
  color: var(--muted);
  font-weight: 400;
  letter-spacing: 0;
}
.plan .features {
  list-style: none;
  padding: 18px 0;
  margin: 13px 0 0;
  border-top: 1px solid var(--line);
  flex: 1;
}
.features li {
  font-size: 13px;
  margin: 13px 0;
  color: #586b63;
}
.features li:before {
  content: "✓";
  color: var(--accent);
  margin-right: 10px;
}
.badge {
  display: inline-block;
  padding: 5px 8px;
  background: var(--mint);
  border-radius: 6px;
  font-size: 10px;
  color: var(--accent);
  max-width: 100%;
  overflow-wrap: anywhere;
}
.badge.neutral {
  background: #f1f1ed;
  color: #727a71;
}
.badge.warning {
  background: #fbf0d7;
  color: #947333;
}
.notice {
  border: 1px solid #e4d5ad;
  background: #fffaef;
  padding: 15px 18px;
  border-radius: 12px;
  font-size: 13px;
  line-height: 1.7;
  margin-bottom: 20px;
}
.empty {
  border: 1px dashed #cdd9d0;
  border-radius: var(--radius);
  text-align: center;
  padding: 44px 25px;
  color: var(--muted);
  background: #ffffff70;
}
.loading {
  padding: 40px;
  color: var(--muted);
}
.filters {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 24px;
}
.catalog-filters {
  margin-top: 22px;
}
.filters input {
  flex: 1;
  min-width: 180px;
}
.field {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 18px;
  font-size: 13px;
  color: var(--muted);
}
input,
select {
  padding: 11px 12px;
  border: 1px solid var(--line);
  background: white;
  border-radius: 9px;
  min-width: 0;
  color: var(--ink);
}
input {
  width: 100%;
}
.amount-box {
  padding: 20px;
  background: var(--paper);
  border-radius: 12px;
  margin: 16px 0;
  font-size: 27px;
  font-weight: 600;
}
.table-wrap {
  border: 1px solid var(--line);
  background: #fff;
  border-radius: 14px;
  overflow: auto;
}
table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  font-size: 12px;
  white-space: nowrap;
}
th {
  background: #f9fbf8;
  color: var(--muted);
  font-weight: 500;
  padding: 16px;
}
td {
  padding: 16px;
  border-top: 1px solid var(--line);
  max-width: 260px;
  overflow: hidden;
  text-overflow: ellipsis;
}
td:last-child {
  overflow: visible;
}
.pagination {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 12px;
  margin-top: 18px;
  font-size: 12px;
  color: var(--muted);
}
.divider {
  border: 0;
  border-top: 1px solid var(--line);
  margin: 22px 0;
}
.detail-row {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  font-size: 13px;
  line-height: 1.6;
  margin: 12px 0;
}
.detail-row span:first-child {
  color: var(--muted);
}
.detail-row span:last-child {
  text-align: right;
  overflow-wrap: anywhere;
}
.subscription-url {
  font-family: monospace;
  word-break: break-all;
  background: var(--paper);
  padding: 13px;
  border-radius: 9px;
  font-size: 12px;
}
.qr {
  max-width: 180px;
  display: block;
  margin: 18px auto;
}
.progress {
  width: 100%;
  height: 7px;
  border: 0;
  appearance: none;
  background: var(--mint);
  border-radius: 8px;
  margin: 14px 0;
}
.progress::-webkit-progress-bar {
  background: var(--mint);
  border-radius: 8px;
}
.progress::-webkit-progress-value {
  background: var(--accent);
  border-radius: 8px;
}
.progress::-moz-progress-bar {
  background: var(--accent);
  border-radius: 8px;
}
.service-connect-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin: 18px 0;
}
.contacts-grid {
  max-width: 1000px;
}
.contact-card {
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-height: 180px;
  color: var(--ink);
}
.contact-card:hover,
.contact-card:focus-visible {
  border-color: var(--accent);
  box-shadow: 0 8px 24px #12372b12;
  text-decoration: none;
}
.contact-card-title {
  font-size: 18px;
  font-weight: 650;
}
.contact-card-handle {
  color: var(--muted);
  overflow-wrap: anywhere;
}
.contact-card-action {
  margin-top: auto;
  color: var(--accent);
  font-size: 13px;
  font-weight: 600;
}
.service-connect-actions .button { min-width: 0; overflow-wrap: anywhere; }
.service-secondary-actions { justify-content: space-between; }
.guide-entry {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
  background: var(--mint);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 18px 22px;
  margin-top: 24px;
}
.guide-entry h2 { font-size: 17px; margin: 0; }
.guide-entry p { margin: 6px 0 0; }
.guide-ready { margin: 18px 0 8px; }
.guide-tabs {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin: 24px 0 14px;
}
.guide-tabs button {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 9px;
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--white);
  color: var(--muted);
  font-size: 14px;
  overflow-wrap: anywhere;
}
.guide-tabs button[aria-selected="true"] {
  background: var(--mint);
  color: var(--accent);
  border-color: var(--accent);
  font-weight: 600;
}
.guide-step-number {
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--mint);
  color: var(--accent);
  width: 26px;
  height: 26px;
  flex-shrink: 0;
}
.guide-panel { line-height: 1.75; }
.guide-panel h2 { font-size: 22px; margin: 8px 0 14px; }
.guide-download { background: var(--paper); border: 1px solid var(--line); border-radius: 12px; padding: 18px; margin-top: 18px; }
.guide-download-controls { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: end; gap: 16px; }
.guide-download-picker { display: grid; gap: 6px; color: var(--muted); font-size: 12px; min-width: 0; }
.guide-download-picker select { width: 100%; margin: 0; min-height: 44px; }
.guide-download-actions { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.guide-download-actions .button { white-space: nowrap; }
.guide-download > .help-text { margin: 12px 0 0; }
.guide-download-meta { display: flex; flex-wrap: wrap; gap: 4px 16px; color: var(--muted); font-size: 12px; margin: 12px 0 0; }
.guide-download + .guide-disclosure { border-bottom: 0; padding-bottom: 0; }
.guide-step-label { color: var(--muted); font-size: 12px; }
.guide-instructions { padding-left: 24px; }
.guide-instructions li { padding: 5px 0; }
.guide-note { background: var(--paper); padding: 12px 18px; border-radius: 10px; margin: 20px 0; }
.guide-note p { margin: 6px 0; }
.guide-disclosure { padding: 15px 0; border-bottom: 1px solid var(--line); }
.guide-disclosure summary { cursor: pointer; line-height: 1.6; }
.guide-disclosure summary:focus-visible { outline: 3px solid #76b9a5; outline-offset: 3px; }
.guide-disclosure p { line-height: 1.8; font-size: 14px; }
.guide-figure { margin: 18px 0 0; }
.guide-image-button { display: block; width: 100%; padding: 0; border: 0; background: transparent; cursor: zoom-in; }
.guide-figure img { display: block; width: 100%; border: 1px solid var(--line); border-radius: 8px; }
.guide-figure figcaption { font-size: 12px; color: var(--muted); margin-top: 10px; line-height: 1.8; }
.guide-settings { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.guide-settings > div { padding: 14px 18px; background: var(--paper); border-radius: 10px; }
.guide-settings strong { display: block; color: var(--accent); }
.guide-step-footer { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 12px; border-top: 1px solid var(--line); margin-top: 22px; padding-top: 20px; }
.guide-faq { margin: 28px 0; }
.guide-faq h2 { font-size: 18px; margin-bottom: 10px; }
.subscription-copy-field { width: 100%; padding: 12px; resize: vertical; font: 13px/1.6 monospace; border: 1px solid var(--line); border-radius: 8px; overflow-wrap: anywhere; }
@media (max-width: 1100px) {
  .guide-tabs { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 740px) {
  .guide-download-controls { grid-template-columns: 1fr; gap: 12px; }
  .guide-download-actions .button { flex: 1; }
}
@media (max-width: 420px) {
  .service-connect-actions { grid-template-columns: 1fr; }
  .guide-settings { grid-template-columns: 1fr; }
  .guide-tabs button { font-size: 12px; }
}
.steps {
  counter-reset: step;
}
.step {
  display: flex;
  gap: 18px;
  padding: 18px 0;
  border-bottom: 1px solid var(--line);
  line-height: 1.8;
  font-size: 14px;
}
.step:before {
  counter-increment: step;
  content: counter(step);
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  background: var(--mint);
  border-radius: 50%;
  color: var(--accent);
  flex: none;
}
.step p {
  margin: 0;
}
.error {
  color: #aa443f;
  font-size: 13px;
  white-space: pre-line;
  line-height: 1.6;
}
.modal-layer {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: grid;
  place-items: center;
  padding: 14px;
}
.modal-layer[hidden] {
  display: none !important;
}
.modal-backdrop {
  position: absolute;
  inset: 0;
  background: #12252066;
  backdrop-filter: blur(3px);
}
dialog,
.modal-panel {
  border: 1px solid var(--line);
  border-radius: 22px;
  padding: 34px;
  width: 480px;
  max-width: calc(100vw - 28px);
  max-height: 90vh;
  overflow: auto;
  box-shadow: 0 24px 100px #172d2b25;
  color: var(--ink);
  background: var(--white);
}
dialog:has(.image-preview) {
  box-sizing: border-box;
  width: min(1100px, calc(100vw - 28px));
}
.modal-panel {
  position: relative;
  z-index: 1;
  margin: 0;
}
dialog::backdrop {
  background: #12252066;
  backdrop-filter: blur(3px);
}
.modal-layer .close-button {
  z-index: 1;
}
body.modal-open {
  overflow: hidden;
}
.close-button {
  position: absolute;
  right: 14px;
  top: 10px;
  border: 0;
  background: transparent;
  font-size: 28px;
  color: var(--muted);
}
dialog h2,
.modal-panel h2 {
  margin-bottom: 25px;
  padding-right: 20px;
}
.auth-switch,
.auth-forgot {
  border: 0;
  background: transparent;
  color: var(--accent);
  font-size: 13px;
  padding: 15px 0;
}
.auth-forgot {
  padding: 4px 0 0;
  justify-content: flex-start;
}
.auth-methods { display: flex; border-bottom: 1px solid var(--line); margin-bottom: 20px; }
.auth-methods button { flex: 1; border: 0; border-bottom: 2px solid transparent; padding: 11px 4px; background: transparent; color: var(--muted); }
.auth-methods button[aria-pressed="true"] { border-bottom-color: var(--accent); color: var(--accent); font-weight: 700; }
.auth-code-row { display: flex; align-items: flex-end; gap: 10px; margin: 14px 0; }
.auth-code-row .field { flex: 1; min-width: 0; margin: 0; }
.auth-code-row .button { flex: none; min-height: 44px; padding: 10px; font-size: 12px; }
.help-text {
  font-size: 12px;
  color: var(--muted);
  line-height: 1.75;
}
.address {
  overflow-wrap: anywhere;
  font-family: monospace;
  font-size: 12px;
}
#toast {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--ink);
  color: #fff;
  padding: 13px 24px;
  border-radius: 10px;
  box-shadow: 0 6px 30px #0002;
  z-index: 5;
  max-width: 90vw;
  font-size: 13px;
}
@media (min-width: 1500px) {
  main {
    padding-top: 50px;
  }
  .hero {
    padding: 45px;
    min-height: 255px;
  }
  .grid {
    gap: 24px;
  }
}
@media (max-width: 1100px) {
  .sidebar {
    width: 205px;
    padding: 28px 16px;
  }
  .main-shell {
    margin-left: 205px;
  }
  .topbar {
    padding: 0 28px;
  }
  main {
    padding: 30px 28px;
  }
  .stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .hero-art {
    width: 115px;
    height: 115px;
  }
  .hero {
    padding: 28px;
  }
  .workspace-label {
    font-size: 8px;
  }
  .brand {
    font-size: 21px;
  }
}
@media (max-width: 700px) {
  .renewal-layout { grid-template-columns: 1fr; }
  .renewal-summary { position: static; }
  .renewal-cycle-options { grid-template-columns: 1fr; }
  .plan-choice-options { grid-template-columns: 1fr; }
  .description-images,
  .description-images.single { grid-template-columns: 1fr; }
  .description-images img { max-height: 240px; }
  .shell {
    display: block;
  }
  .sidebar {
    position: static;
    width: 100%;
    padding: 18px 18px 10px;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }
  .brand {
    font-size: 21px;
  }
  .workspace-label,
  .sidebar-bottom {
    display: none;
  }
  nav {
    display: flex;
    overflow: auto;
    gap: 6px;
    padding-top: 16px;
  }
  .nav-item {
    white-space: nowrap;
    width: auto;
    flex: none;
    padding: 9px 11px;
    font-size: 12px;
    margin: 0;
  }
  .nav-icon {
    font-size: 14px;
    width: 16px;
  }
  .main-shell {
    margin-left: 0;
  }
  .topbar {
    height: 66px;
    padding: 0 20px;
  }
  main {
    padding: 26px 20px;
  }
  h1 {
    font-size: 27px;
  }
  .hero {
    padding: 26px;
    min-height: 0;
  }
  .hero h2 {
    font-size: 24px;
  }
  .hero-art {
    display: none;
  }
  .grid,
  .grid.two {
    grid-template-columns: 1fr;
  }
  .stats {
    gap: 10px;
  }
  .card {
    padding: 20px;
  }
  .stat-value {
    font-size: 25px;
  }
  .stat-label {
    font-size: 11px;
  }
  .section-head {
    align-items: flex-start;
  }
  .section-head h2 {
    font-size: 18px;
  }
  footer {
    padding: 20px;
    flex-direction: column;
  }
  .toolbar {
    gap: 8px;
  }
  .toolbar select {
    font-size: 12px;
  }
  .subtitle {
    font-size: 13px;
  }
  .detail-row {
    font-size: 12px;
  }
  dialog,
  .modal-panel {
    padding: 30px 24px;
  }
}

/* Support pages use the existing storefront card and form language. */
.reward-overview { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: 22px; margin-bottom: 22px; }
.reward-overview > *, .reward-records, .reward-record > * { min-width: 0; }
.reward-balance { background: var(--mint); }
.reward-balance-value { font-size: clamp(26px, 3vw, 40px); font-weight: 750; letter-spacing: -1px; margin: 15px 0; overflow-wrap: anywhere; }
.reward-threshold { color: var(--accent); font-weight: 600; }
.reward-subtotals { margin-top: 20px; border-top: 1px solid var(--line); padding-top: 10px; }
.reward-share h2 { margin-top: 0; }
.reward-share .actions { margin-bottom: 18px; }
.reward-statistics { display: flex; flex-wrap: wrap; gap: 14px 30px; padding: 0 4px; }
.reward-statistics .detail-row { gap: 14px; border: 0; }
.reward-rules { margin: 22px 0; }
.reward-rules summary { cursor: pointer; font-weight: 650; }
.reward-rules .detail-row:first-of-type { margin-top: 14px; }
.reward-tabs { margin: 25px 0 14px; flex-wrap: wrap; }
.reward-tabs [aria-selected=true] { background: var(--accent); color: white; }
.reward-list { display: grid; gap: 10px; }
.reward-record { width: 100%; display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 8px 20px; text-align: left; padding: 18px 20px; border: 1px solid var(--line); border-radius: 12px; background: var(--white); color: var(--ink); }
.reward-record:hover { border-color: var(--accent); }
.reward-record time, .reward-record small { color: var(--muted); font-size: 12px; }
.reward-record strong { text-align: right; overflow-wrap: anywhere; }
.reward-pager { align-items: center; justify-content: center; margin-top: 18px; }
.reward-pager > span { color: var(--muted); font-size: 13px; }
.reward-address, .reward-detail-value { overflow-wrap: anywhere; word-break: break-word; }
.reward-detail-value { text-align: right; }
.reward-actions { flex-wrap: wrap; margin-top: 20px; }
.reward-check { display: flex; align-items: flex-start; gap: 10px; margin: 18px 0; }
.reward-check input { width: auto; margin-top: 3px; }
@media (max-width: 800px) {
  .reward-overview { grid-template-columns: 1fr; }
  .reward-statistics { display: grid; gap: 0; }
  .reward-record { padding: 16px; gap: 8px 12px; }
}
.support-layout [hidden] { display: none !important; }
.support-layout { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 22px; margin-top: 22px; align-items: start; }
.support-layout > *, .support-message, .support-composer { min-width: 0; }
.support-context { position: sticky; top: 20px; overflow-wrap: anywhere; }
.support-messages { display: grid; gap: 14px; margin-bottom: 22px; }
.support-message { padding: 20px; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); }
.support-staff { border-left: 4px solid var(--accent); }
.support-note { background: #fff8df; border-color: #e5d39c; }
.support-message-body { white-space: pre-wrap; overflow-wrap: anywhere; line-height: 1.7; }
.support-message time { color: var(--muted); font-size: 12px; }
.support-attachments { display: flex; flex-wrap: wrap; gap: 10px; }
.support-attachments img { width: 140px; height: 110px; object-fit: contain; border: 1px solid var(--line); border-radius: 10px; background: var(--paper); }
.support-composer textarea { width: 100%; resize: vertical; min-height: 140px; padding: 12px; border: 1px solid var(--line); border-radius: 10px; font: inherit; }
.support-composer .field, .support-context .field { display: grid; gap: 8px; margin: 14px 0; }
.support-composer input[type=checkbox] { width: auto; justify-self: start; }
.support-filter { display: flex; flex-wrap: wrap; gap: 10px; margin: 20px 0; }
.support-filter input { flex: 1; min-width: 170px; }
.support-list { display: grid; gap: 12px; margin-bottom: 20px; }
.support-ticket-card { text-align: left; width: 100%; font: inherit; color: inherit; overflow-wrap: anywhere; }
.support-ticket-card:hover { border-color: var(--accent); }
.support-ticket-card .badge { margin-left: 8px; }
.support-context .actions { display: flex; flex-wrap: wrap; margin-top: 20px; }
.support-context details { margin-top: 20px; }
.support-composer select { width: 100%; }
@media (max-width: 960px) {
  .support-layout { grid-template-columns: 1fr; }
  .support-context { position: static; grid-row: 1; }
  .support-attachments img { width: 110px; height: 90px; }
}
