:root {
  --c-bg: #05070c;
  --c-surface: #10141c;
  --c-surface-2: #18202b;
  --c-gold: #f1c66d;
  --c-gold-dim: rgba(241, 198, 109, 0.18);
  --c-gold-glow: rgba(241, 198, 109, 0.34);
  --c-cream: #f7f2ea;
  --c-text: rgba(247, 242, 234, 0.98);
  --c-text-dim: rgba(243, 238, 230, 0.9);
  --c-text-muted: rgba(236, 230, 220, 0.78);
  --c-border: rgba(232, 226, 214, 0.18);
  --c-border-hover: rgba(232, 226, 214, 0.34);
  --opc-surface-strong: rgba(10, 13, 19, 0.96);
  --opc-surface-soft: rgba(17, 21, 30, 0.92);
  --opc-surface-inline: rgba(255, 255, 255, 0.08);
  --opc-shadow-strong: 0 24px 72px rgba(0, 0, 0, 0.48);
}

[data-theme="light"] {
  --c-bg: #f7f1e8;
  --c-surface: #ffffff;
  --c-surface-2: #efe6da;
  --c-gold: #8d6720;
  --c-gold-dim: rgba(141, 103, 32, 0.14);
  --c-gold-glow: rgba(141, 103, 32, 0.24);
  --c-cream: #16181d;
  --c-text: rgba(22, 24, 29, 0.96);
  --c-text-dim: rgba(31, 34, 40, 0.88);
  --c-text-muted: rgba(57, 61, 70, 0.76);
  --c-border: rgba(22, 24, 29, 0.14);
  --c-border-hover: rgba(22, 24, 29, 0.26);
  --opc-surface-strong: rgba(255, 255, 255, 0.97);
  --opc-surface-soft: rgba(248, 243, 236, 0.96);
  --opc-surface-inline: rgba(17, 20, 26, 0.05);
  --opc-shadow-strong: 0 20px 56px rgba(0, 0, 0, 0.12);
}

html,
body {
  color: var(--c-text);
}

body::before {
  opacity: 0.014;
}

.bg-lines {
  opacity: 0.34;
}

nav::before,
nav.scrolled::before {
  background: rgba(5, 7, 12, 0.9) !important;
  border-bottom-color: var(--c-border) !important;
}

nav.island::before,
nav.island:hover::before,
nav.island.island-open::before {
  background: var(--opc-surface-strong) !important;
  border-color: var(--c-border) !important;
}

[data-theme="light"] nav::before,
[data-theme="light"] nav.scrolled::before {
  background: rgba(247, 241, 232, 0.96) !important;
}

.hero-sub,
.section-desc,
.card p,
.card ul li,
.nav-links a,
.step-body p,
.faq-a > div > p,
.notice-card p,
.service-card p,
.tool-card p,
.policy-coming p,
.community-box > p,
.community-hint,
.cost-note,
.cost-table td,
footer,
.page-dots .dot:after {
  color: var(--c-text-dim) !important;
}

.hero-sub,
.section-desc {
  max-width: 680px;
}

.hero-sub,
.section-desc,
.card p,
.step-body p,
.notice-card p,
.service-card p,
.tool-card p,
.policy-coming p,
.community-box > p,
.cost-note {
  font-size: 16.5px;
  line-height: 1.82;
}

.card ul li,
.faq-a > div > p {
  font-size: 15px;
  line-height: 1.78;
}

.card,
.step-item,
.faq-item,
.notice-card,
.service-card,
.tool-card,
.community-box,
.policy-coming {
  background: linear-gradient(180deg, rgba(241, 198, 109, 0.06) 0%, rgba(17, 21, 30, 0.04) 100%), var(--opc-surface-strong) !important;
  border-color: var(--c-border) !important;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05), var(--opc-shadow-strong) !important;
}

.card:hover,
.step-item:hover,
.faq-item:hover,
.notice-card:hover,
.service-card:hover,
.tool-card:hover {
  border-color: var(--c-border-hover) !important;
}

.card h3,
.step-body h3,
.faq-q,
.notice-card h3,
.service-card h3,
.tool-card h3,
.community-box h3,
.policy-coming h3,
.section-title,
.hero-section h1 {
  color: var(--c-cream) !important;
  text-shadow: 0 1px 0 rgba(0, 0, 0, 0.18);
}

.hero-eyebrow,
.section-label,
.hero-free,
.city-tag,
.tool-tag,
.service-price,
.cost-table td:last-child {
  color: var(--c-gold) !important;
}

.cost-table th,
.service-price small,
.hero-scroll,
.faq-q::after {
  color: var(--c-text-muted) !important;
}

.cost-table th,
.cost-table td {
  border-bottom-color: var(--c-border) !important;
}

.cost-note {
  background: rgba(241, 198, 109, 0.14) !important;
  border-left-color: var(--c-gold) !important;
}

.opc-tool-shell,
.opc-policy-shell {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.opc-tool-shell {
  position: relative;
}

.opc-tool-grid {
  margin-bottom: 4px;
}

.opc-tool-inline-nav {
  display: none;
}

.opc-tool-nav {
  appearance: none;
  text-align: left;
  cursor: pointer;
  width: 100%;
  display: block;
}

.opc-tool-nav.is-active {
  border-color: rgba(212, 166, 71, 0.45);
  box-shadow: 0 18px 48px rgba(0, 0, 0, 0.35), 0 0 0 1px rgba(212, 166, 71, 0.12);
}

.opc-tool-nav .tool-tag {
  margin-top: 12px;
}

.opc-tool-dock {
  position: fixed;
  left: clamp(10px, 2vw, 24px);
  top: 50%;
  transform: translateY(-50%);
  z-index: 998;
  width: 78px;
  transition: width 0.55s var(--ease-out-quint);
}

.opc-tool-dock.is-open,
.opc-tool-dock:focus-within {
  width: 308px;
}

.opc-tool-dock-shell {
  position: relative;
  width: 100%;
  padding: 10px;
  border-radius: 30px;
  overflow: hidden;
  transition: padding 0.55s var(--ease-out-quint), border-radius 0.55s var(--ease-out-quint);
}

.opc-tool-dock-shell::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  border: 1px solid var(--c-border);
  background: var(--opc-surface-strong);
  -webkit-backdrop-filter: blur(28px) saturate(1.45);
  backdrop-filter: blur(28px) saturate(1.45);
  box-shadow: var(--opc-shadow-strong);
}

.opc-tool-dock.is-open .opc-tool-dock-shell,
.opc-tool-dock:focus-within .opc-tool-dock-shell {
  padding: 12px;
  border-radius: 24px;
}

.opc-tool-dock-head,
.opc-tool-dock-list {
  position: relative;
  z-index: 1;
}

.opc-tool-dock-head {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 4px 4px 10px;
}

.opc-tool-dock-badge {
  width: 40px;
  height: 40px;
  flex-shrink: 0;
  border-radius: 14px;
  border: 1px solid rgba(212, 166, 71, 0.24);
  background: rgba(212, 166, 71, 0.1);
  color: var(--c-gold);
  font-family: var(--font-display);
  font-size: 12px;
  letter-spacing: 1.1px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.opc-tool-dock-copy,
.opc-tool-dock-text {
  min-width: 0;
  max-width: 0;
  opacity: 0;
  overflow: hidden;
  transform: translateX(-8px);
  transition: max-width 0.45s var(--ease-out-quint), opacity 0.25s ease, transform 0.35s ease;
}

.opc-tool-dock.is-open .opc-tool-dock-copy,
.opc-tool-dock.is-open .opc-tool-dock-text,
.opc-tool-dock:focus-within .opc-tool-dock-copy,
.opc-tool-dock:focus-within .opc-tool-dock-text {
  max-width: 220px;
  opacity: 1;
  transform: none;
}

.opc-tool-dock-copy strong,
.opc-tool-dock-text strong {
  display: block;
  font-family: var(--font-display);
  color: var(--c-cream);
  font-size: 14px;
  line-height: 1.3;
}

.opc-tool-dock-copy span,
.opc-tool-dock-text span {
  display: block;
  color: var(--c-text-dim);
  font-size: 13px;
  line-height: 1.55;
  margin-top: 3px;
}

.opc-tool-dock-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.opc-tool-dock-btn {
  width: 100%;
  padding: 8px;
  text-align: left;
  border: 1px solid var(--c-border);
  border-radius: 18px;
  background: var(--opc-surface-inline);
  color: inherit;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 12px;
  transition: transform 0.2s ease, border-color 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
}

.opc-tool-dock-btn:hover,
.opc-tool-dock-btn.is-active {
  transform: translateX(2px);
  border-color: rgba(212, 166, 71, 0.34);
  background: rgba(212, 166, 71, 0.1);
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.18);
}

.opc-tool-dock-icon {
  width: 40px;
  height: 40px;
  flex-shrink: 0;
  border-radius: 12px;
  border: 1px solid var(--c-border);
  background: rgba(255, 255, 255, 0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
}

.opc-tool-panel,
.opc-policy-hero {
  background: linear-gradient(180deg, rgba(241, 198, 109, 0.1) 0%, rgba(17, 21, 30, 0.5) 100%), var(--opc-surface-soft);
  border: 1px solid var(--c-border);
  box-shadow: var(--opc-shadow-strong);
}

.opc-panel-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
  margin-bottom: 22px;
}

.opc-panel-head h3 {
  font-family: var(--font-display);
  color: var(--c-cream);
  font-size: 24px;
  line-height: 1.2;
  margin-bottom: 8px;
}

.opc-panel-head p {
  color: var(--c-text-dim);
  max-width: 620px;
  font-size: 16px;
  line-height: 1.8;
}

.opc-mini-note,
.opc-helper-text,
.opc-source-note {
  color: var(--c-text-dim);
  font-size: 14px;
  line-height: 1.7;
}

.opc-form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

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

.opc-field--full {
  grid-column: 1 / -1;
}

.opc-field span {
  font-family: var(--font-display);
  color: var(--c-text-muted);
  font-size: 12.5px;
  letter-spacing: 1px;
  text-transform: uppercase;
}

.opc-input,
.opc-select,
.opc-number {
  width: 100%;
  background: rgba(5, 7, 12, 0.88);
  color: var(--c-text);
  border: 1px solid var(--c-border);
  border-radius: 10px;
  padding: 14px 16px;
  font-size: 15.5px;
  line-height: 1.4;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.opc-input::placeholder,
.opc-select::placeholder,
.opc-number::placeholder {
  color: var(--c-text-muted);
  opacity: 1;
}

.opc-input:focus,
.opc-select:focus,
.opc-number:focus {
  outline: none;
  border-color: rgba(212, 166, 71, 0.45);
  box-shadow: 0 0 0 3px rgba(212, 166, 71, 0.12);
}

.opc-number {
  max-width: 180px;
}

.opc-chip-row,
.opc-pill-row,
.opc-quick-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.opc-chip,
.opc-pill,
.opc-quick-btn,
.opc-clear-btn,
.opc-jump-btn,
.opc-link-btn {
  font-family: var(--font-display);
  border-radius: 999px;
  border: 1px solid var(--c-border);
  background: var(--opc-surface-inline);
  color: var(--c-text-dim);
  padding: 10px 16px;
  font-size: 13.5px;
  line-height: 1;
  cursor: pointer;
  transition: transform 0.2s ease, border-color 0.2s ease, background 0.2s ease, color 0.2s ease;
}

.opc-chip:hover,
.opc-pill:hover,
.opc-quick-btn:hover,
.opc-clear-btn:hover,
.opc-jump-btn:hover,
.opc-link-btn:hover {
  transform: translateY(-1px);
  border-color: var(--c-border-hover);
  color: var(--c-cream);
}

.opc-chip.is-active,
.opc-pill.is-active,
.opc-quick-btn.is-active,
.opc-jump-btn {
  background: rgba(212, 166, 71, 0.12);
  border-color: rgba(212, 166, 71, 0.35);
  color: var(--c-gold);
}

.opc-clear-btn {
  background: transparent;
}

.opc-summary-grid,
.opc-detail-grid,
.opc-results-grid,
.opc-checklist-grid,
.opc-scope-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.opc-detail-grid--two {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.opc-summary-card,
.opc-checklist-card,
.opc-scope-card,
.opc-policy-card {
  min-height: 100%;
}

.opc-summary-card {
  background: linear-gradient(180deg, rgba(82, 133, 224, 0.16) 0%, rgba(17, 21, 30, 0.98) 100%);
  border: 1px solid var(--c-border);
  box-shadow: var(--opc-shadow-strong);
}

.opc-summary-card:nth-child(2) {
  background: linear-gradient(180deg, rgba(82, 183, 136, 0.16) 0%, rgba(17, 21, 30, 0.98) 100%);
}

.opc-summary-card:nth-child(3) {
  background: linear-gradient(180deg, rgba(224, 164, 82, 0.16) 0%, rgba(17, 21, 30, 0.98) 100%);
}

.opc-summary-label {
  font-family: var(--font-display);
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--c-text-muted);
  font-size: 12.5px;
  margin-bottom: 10px;
}

.opc-summary-value {
  font-family: var(--font-display);
  font-size: 28px;
  color: var(--c-cream);
  line-height: 1.1;
  margin-bottom: 8px;
}

.opc-summary-desc {
  color: var(--c-text-dim);
  font-size: 15px;
  line-height: 1.7;
}

.opc-checklist-card,
.opc-scope-card {
  background: linear-gradient(180deg, rgba(241, 198, 109, 0.12) 0%, rgba(17, 21, 30, 0.98) 100%);
}

.opc-detail-card {
  background: linear-gradient(180deg, rgba(82, 133, 224, 0.12) 0%, rgba(17, 21, 30, 0.98) 100%);
}

.opc-card-title {
  font-family: var(--font-display);
  color: var(--c-cream);
  font-size: 18px;
  margin-bottom: 12px;
}

.opc-list {
  list-style: none;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.opc-list li {
  color: var(--c-text-dim);
  font-size: 15.5px;
  line-height: 1.7;
  padding-left: 18px;
  position: relative;
}

.opc-list li::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--c-gold);
  position: absolute;
  left: 0;
  top: 9px;
}

.opc-kv-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.opc-kv-row {
  border: 1px solid var(--c-border);
  border-radius: 12px;
  background: rgba(8, 11, 16, 0.72);
  padding: 12px 14px;
}

.opc-kv-row span {
  display: block;
  font-family: var(--font-display);
  text-transform: uppercase;
  letter-spacing: 0.9px;
  color: var(--c-text-muted);
  font-size: 11.5px;
  margin-bottom: 6px;
}

.opc-kv-row strong {
  display: block;
  font-family: var(--font-display);
  color: var(--c-cream);
  font-size: 16px;
  line-height: 1.35;
  margin-bottom: 4px;
}

.opc-kv-row small {
  display: block;
  color: var(--c-text-dim);
  font-size: 13px;
  line-height: 1.6;
}

.opc-copy-block {
  margin-top: 14px;
  padding: 16px 18px;
  border-radius: 12px;
  border: 1px solid var(--c-border);
  background: rgba(8, 11, 16, 0.8);
  color: var(--c-text);
  font-size: 15.5px;
  line-height: 1.85;
  white-space: pre-wrap;
}

.opc-policy-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 18px;
}

.opc-stat-card {
  background: rgba(8, 11, 16, 0.8);
  border: 1px solid var(--c-border);
  border-radius: 12px;
  padding: 14px 16px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.opc-stat-card strong {
  display: block;
  font-family: var(--font-display);
  color: var(--c-cream);
  font-size: 24px;
  margin-bottom: 4px;
}

.opc-stat-card span {
  color: var(--c-text-dim);
  font-size: 14px;
  line-height: 1.6;
}

.opc-policy-controls {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.opc-policy-filter-row {
  display: grid;
  grid-template-columns: 1.4fr 1fr auto;
  gap: 12px;
  align-items: end;
}

.opc-policy-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}

.opc-policy-card {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.opc-policy-head {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.opc-policy-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.opc-badge {
  font-family: var(--font-display);
  font-size: 12px;
  letter-spacing: 0.8px;
  text-transform: uppercase;
  color: var(--c-text-dim);
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid var(--c-border);
  border-radius: 999px;
  padding: 5px 10px;
}

.opc-badge--warm {
  color: var(--c-gold);
  border-color: rgba(212, 166, 71, 0.24);
  background: rgba(212, 166, 71, 0.09);
}

.opc-policy-title {
  font-family: var(--font-display);
  color: var(--c-cream);
  font-size: 22px;
  line-height: 1.35;
}

.opc-policy-benefit {
  color: var(--c-text);
  font-size: 17px;
  line-height: 1.8;
  background: rgba(241, 198, 109, 0.14);
  border-left: 3px solid var(--c-gold);
  border-radius: 10px;
  padding: 14px 16px;
}

.opc-policy-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  padding-top: 4px;
}

.opc-policy-meta {
  color: var(--c-text-dim);
  font-size: 13px;
  line-height: 1.6;
}

.opc-policy-source,
.opc-policy-source:visited {
  color: var(--c-text-dim);
  font-size: 13px;
  line-height: 1.6;
  font-weight: 600;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
  border-bottom: none;
  transition: color 0.2s ease, text-decoration-color 0.2s ease;
}

.opc-policy-source:hover {
  color: var(--c-gold);
  text-decoration-color: var(--c-gold);
}

.opc-policy-source--muted {
  color: var(--c-text-muted);
  text-decoration: none;
}

.opc-empty {
  text-align: center;
  padding: 34px 22px;
}

.opc-empty strong {
  display: block;
  font-family: var(--font-display);
  color: var(--c-cream);
  font-size: 22px;
  margin-bottom: 8px;
}

.opc-empty p {
  color: var(--c-text-dim);
  font-size: 15px;
  line-height: 1.8;
}

.opc-loading {
  padding: 20px 0 8px;
  color: var(--c-text-dim);
}

[data-theme="light"] .opc-input,
[data-theme="light"] .opc-select,
[data-theme="light"] .opc-number,
[data-theme="light"] .opc-stat-card,
[data-theme="light"] .opc-kv-row,
[data-theme="light"] .opc-copy-block,
[data-theme="light"] .opc-tool-dock-btn,
[data-theme="light"] .opc-chip,
[data-theme="light"] .opc-pill,
[data-theme="light"] .opc-quick-btn,
[data-theme="light"] .opc-clear-btn,
[data-theme="light"] .opc-link-btn {
  background: rgba(255, 255, 255, 0.92);
}

[data-theme="light"] .opc-tool-dock-shell::before {
  background: var(--opc-surface-strong);
  border-color: var(--c-border);
  box-shadow: var(--opc-shadow-strong);
}

[data-theme="light"] .opc-tool-dock-icon {
  background: rgba(17, 20, 26, 0.06);
}

@media (max-width: 980px) {
  .opc-tool-dock {
    display: none;
  }

  .opc-tool-inline-nav {
    display: grid;
  }
}

@media (max-width: 768px) {
  .hero-sub,
  .section-desc,
  .card p,
  .step-body p,
  .faq-a > div > p,
  .notice-card p,
  .service-card p,
  .tool-card p,
  .policy-coming p,
  .community-box > p,
  .cost-table,
  .cost-note {
    font-size: 14.5px !important;
  }

  .card ul li,
  .community-hint,
  footer,
  .opc-mini-note,
  .opc-helper-text,
  .opc-source-note,
  .opc-policy-meta,
  .opc-policy-source {
    font-size: 13px !important;
  }

  .opc-policy-title {
    font-size: 19px;
  }

  .opc-policy-benefit {
    font-size: 15.5px;
  }

  .opc-form-grid,
  .opc-summary-grid,
  .opc-detail-grid,
  .opc-results-grid,
  .opc-checklist-grid,
  .opc-scope-grid,
  .opc-policy-stats,
  .opc-policy-filter-row {
    grid-template-columns: 1fr;
  }

  .opc-panel-head {
    flex-direction: column;
  }

  .opc-panel-head h3 {
    font-size: 20px;
  }

  .opc-policy-title {
    font-size: 19px;
  }

  .opc-summary-value {
    font-size: 24px;
  }

  .opc-chip,
  .opc-pill,
  .opc-quick-btn,
  .opc-clear-btn,
  .opc-jump-btn,
  .opc-link-btn {
    width: 100%;
    justify-content: center;
    text-align: center;
  }

  .opc-tool-inline-nav {
    grid-template-columns: 1fr;
  }

  .opc-number {
    max-width: none;
  }
}
