:root {
  color-scheme: light;
  --ink: #142035;
  --muted: #647087;
  --paper: #f5f7fb;
  --card: #ffffff;
  --line: #dfe4ed;
  --blue: #154f91;
  --blue-dark: #0c386c;
  --mint: #dff3ed;
}

* { box-sizing: border-box; }
body {
  margin: 0;
  min-height: 100vh;
  background: radial-gradient(circle at 85% 0%, #dceafa 0, transparent 32rem), var(--paper);
  color: var(--ink);
  font: 16px/1.55 Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}
a { color: inherit; }
.topbar, main, footer { width: min(1160px, calc(100% - 40px)); margin-inline: auto; }
.topbar { height: 92px; display: flex; align-items: center; justify-content: space-between; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.brand-mark { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 12px; background: var(--blue); color: white; font-weight: 800; }
.brand strong, .brand small { display: block; line-height: 1.2; }
.brand small { margin-top: 3px; color: var(--muted); font-size: 12px; }
.account-menu { position: relative; }
.account-trigger { display: flex; align-items: center; gap: 9px; list-style: none; border: 1px solid var(--line); background: white; border-radius: 12px; padding: 8px 11px 8px 8px; color: var(--ink); cursor: pointer; }
.account-trigger::-webkit-details-marker { display: none; }
.account-avatar { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 9px; background: var(--mint); color: #146047; font-size: 13px; font-weight: 850; }
.identity-label { max-width: 260px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 700; }
.account-caret { color: var(--muted); transition: transform .15s ease; }
.account-menu[open] .account-caret { transform: rotate(180deg); }
.account-dropdown { position: absolute; z-index: 20; top: calc(100% + 8px); right: 0; min-width: 240px; padding: 16px; border: 1px solid var(--line); border-radius: 14px; background: white; box-shadow: 0 18px 50px #17365824; }
.account-menu-label { margin: 0; color: var(--muted); font-size: 11px; letter-spacing: .08em; text-transform: uppercase; }
.account-menu-name { display: block; margin: 3px 0 14px; overflow-wrap: anywhere; }
.account-dropdown form { margin: 0; }
.account-action { width: 100%; border: 0; border-radius: 9px; background: #f1f4f8; padding: 10px 12px; color: var(--ink); font: inherit; font-weight: 700; text-align: left; cursor: pointer; }
.account-action:hover { background: #e7edf5; }
.welcome { min-height: calc(100vh - 184px); display: grid; grid-template-columns: 1.15fr .85fr; align-items: center; gap: 7vw; padding: 48px 0 90px; }
.eyebrow { margin: 0 0 10px; color: var(--blue); font-size: 12px; font-weight: 800; letter-spacing: .13em; text-transform: uppercase; }
h1 { margin: 0; max-width: 780px; font-size: clamp(42px, 6vw, 76px); line-height: .98; letter-spacing: -.05em; }
.lead { max-width: 600px; margin: 28px 0 34px; color: var(--muted); font-size: 20px; }
.primary-button { display: inline-block; border-radius: 12px; background: var(--blue); color: white; padding: 14px 22px; font-weight: 750; text-decoration: none; box-shadow: 0 10px 24px #154f9124; }
.primary-button:hover { background: var(--blue-dark); }
.actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }
.actions form { margin: 0; }
.secondary-button { display: inline-block; border: 1px solid var(--line); border-radius: 12px; background: white; color: var(--blue-dark); padding: 13px 21px; font: inherit; font-weight: 700; text-decoration: none; cursor: pointer; }
.secondary-button:hover { border-color: #b9c7d9; background: #f8fbff; }
.welcome-panel { border: 1px solid #ffffffaa; border-radius: 28px; background: #ffffffc9; box-shadow: 0 25px 70px #1736581a; padding: 16px; backdrop-filter: blur(10px); }
.welcome-panel div { display: grid; grid-template-columns: 58px 1fr; align-items: center; gap: 12px; padding: 20px 18px; border-bottom: 1px solid var(--line); }
.welcome-panel div:last-child { border-bottom: 0; }
.welcome-panel span { color: var(--blue); font-size: 11px; font-weight: 850; letter-spacing: .1em; }
.dashboard-head { padding: 56px 0 40px; }
.dashboard-head h1 { font-size: clamp(38px, 5vw, 62px); }
.dashboard-head > p:last-child { color: var(--muted); font-size: 18px; }
.companies { display: grid; gap: 24px; padding-bottom: 80px; }
.company-card { overflow: hidden; border: 1px solid var(--line); border-radius: 22px; background: var(--card); box-shadow: 0 16px 45px #1736580d; }
.company-heading { display: flex; align-items: end; justify-content: space-between; gap: 20px; padding: 28px 30px; border-bottom: 1px solid var(--line); }
.company-heading h2 { margin: 0; font-size: 25px; letter-spacing: -.025em; }
.domains { color: var(--muted); font-size: 14px; text-align: right; }
.services { display: grid; grid-template-columns: repeat(3, 1fr); }
.service { min-height: 104px; display: grid; grid-template-columns: 42px 1fr auto; align-items: center; gap: 13px; padding: 24px; border-right: 1px solid var(--line); text-decoration: none; }
.service:last-child { border-right: 0; }
.service.enabled:hover { background: #f7fbff; }
.service-icon { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 12px; background: var(--mint); color: #146047; font-weight: 850; }
.service strong, .service small { display: block; }
.service small { margin-top: 3px; color: var(--muted); font-size: 12px; }
.service em { color: #8b93a1; font-size: 11px; font-style: normal; letter-spacing: .08em; }
.disabled { background: #fafbfc; }
.disabled .service-icon { background: #eceff4; color: #7e8796; }
.arrow { color: var(--blue); font-size: 23px; }
.message-card { max-width: 760px; margin: 10vh auto; padding: 50px; border: 1px solid var(--line); border-radius: 24px; background: white; }
.message-card h1 { font-size: clamp(36px, 5vw, 58px); }
.message-card > p:not(.eyebrow) { margin: 24px 0; color: var(--muted); }
.message-card .support-link { display: inline-block; margin-top: 20px; color: var(--blue); }
footer { padding: 28px 0 36px; color: var(--muted); font-size: 13px; }
footer a { color: var(--blue); }
[hidden] { display: none !important; }
.visually-hidden { position: absolute; width: 1px; height: 1px; padding: 0; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.company-switcher { position: relative; width: min(100%, 440px); margin-bottom: 24px; }
.company-trigger { display: flex; align-items: center; gap: 12px; width: 100%; min-height: 64px; padding: 10px 14px; border: 1px solid #c6ccd5; border-radius: 8px; background: white; color: var(--ink); font: inherit; text-align: left; cursor: pointer; transition: border-color .15s, box-shadow .15s; }
.company-trigger:hover { border-color: #8a96a7; background: #fcfdff; }
.company-trigger[aria-expanded="true"], .company-trigger:focus-visible { outline: none; border-color: #1a73e8; box-shadow: 0 0 0 1px #1a73e8; }
.company-building { display: grid; place-items: center; flex: 0 0 36px; height: 36px; border-radius: 8px; background: #eef3fb; color: #496582; }
.company-building svg, .company-chevron, .company-search-wrap svg { width: 20px; height: 20px; flex-shrink: 0; }
.company-trigger-copy { display: flex; flex-direction: column; flex: 1; min-width: 0; }
.company-trigger-label { color: #667085; font-size: 11px; line-height: 1.5; }
.company-current { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 14px; font-weight: 600; line-height: 1.6; }
.company-chevron { color: #667085; transition: transform .15s; }
.company-trigger[aria-expanded="true"] .company-chevron { transform: rotate(180deg); }
.company-popover { position: absolute; z-index: 30; top: calc(100% + 8px); left: 0; width: 100%; padding: 8px; border: 1px solid #dfe3e9; border-radius: 10px; background: white; box-shadow: 0 8px 24px #23344d24, 0 2px 6px #23344d12; }
.company-search-wrap { display: flex; align-items: center; gap: 8px; padding: 0 10px; min-height: 44px; margin-bottom: 8px; border: 1px solid #dadfe7; border-radius: 6px; color: #667085; }
.company-search-wrap:focus-within { border-color: #1a73e8; box-shadow: inset 0 0 0 1px #1a73e8; }
.company-search { flex: 1; min-width: 0; width: 100%; padding: 10px 0; border: 0; outline: none; background: transparent; color: var(--ink); font: inherit; font-size: 16px; }
.company-search::placeholder { color: #727d8d; }
.company-search-clear { display: grid; place-items: center; flex-shrink: 0; padding: 5px; border: 0; border-radius: 50%; background: transparent; color: #667085; cursor: pointer; }
.company-search-clear:hover { background: #eef1f6; }
.company-search-clear:focus-visible { outline: 2px solid #1a73e8; }
.company-list-heading { padding: 6px 10px 8px; color: #737d8c; font-size: 11px; font-weight: 600; }
.company-options { max-height: min(280px, 40dvh); overflow-y: auto; overscroll-behavior: contain; }
.company-option { display: flex; align-items: center; gap: 12px; min-height: 44px; padding: 11px 12px; border-radius: 5px; font-size: 14px; line-height: 1.5; text-decoration: none; }
.company-option-name { flex: 1; min-width: 0; overflow-wrap: anywhere; }
.company-option[aria-selected="true"] { color: #1558ad; }
.company-option.is-active, .company-option:hover { background: #edf3fd; }
.company-check { flex: 0 0 18px; width: 18px; height: 18px; color: #1a73e8; }
.company-no-results { margin: 0; padding: 20px 12px 24px; color: #667085; text-align: center; font-size: 14px; }
.company-select-fallback { display: flex; flex-wrap: wrap; gap: 8px; }
.company-select-fallback label { width: 100%; font-size: 12px; color: var(--muted); }
.company-select-fallback select { min-width: 0; flex: 1; }
.company-select-fallback select, .company-select-fallback button { border: 1px solid var(--line); border-radius: 8px; padding: 10px; background: white; color: var(--ink); font: inherit; }
.overview-detail { margin-bottom: 50px; }
.overview-content { padding: 24px 30px 32px; }
.overview-content h3 { margin: 0 0 16px; font-size: 20px; }
.overview-content h3:not(:first-child) { margin-top: 32px; }
.domain-table { overflow-x: auto; }
.domain-table table { width: 100%; border-collapse: collapse; text-align: left; }
.domain-table td, .domain-table th { padding: 12px 16px 12px 0; border-bottom: 1px solid var(--line); }
.muted { color: var(--muted); }
.overview-notice { padding: 24px 30px; margin-bottom: 48px; background: white; border: 1px solid var(--line); border-radius: 16px; }
.registry-group { border: 1px solid var(--line); border-radius: 14px; margin: 18px 0; overflow: hidden; }
.registry-group h4 { margin: 0; padding: 15px 20px; background: #f5f8fc; }
.registry-row { display: grid; grid-template-columns: minmax(150px, 1.1fr) auto minmax(160px, 1.3fr) auto; align-items: center; gap: 16px; padding: 18px 20px; border-top: 1px solid var(--line); }
.registry-row small { display: block; color: var(--muted); }
.service-state { width: fit-content; padding: 3px 9px; border-radius: 8px; font-size: 12px; background: #edf0f5; }
.state-active { color: #146047; background: var(--mint); }
.state-suspended { color: #835700; background: #fff0c9; }
.registry-billing { color: var(--muted); font-size: 13px; }
.registry-manage { color: var(--blue); font-weight: 700; text-decoration: none; white-space: nowrap; }
@media (max-width: 760px) {
  .registry-row { grid-template-columns: 1fr auto; gap: 10px; }
  .registry-billing { grid-column: 1; }
  .registry-manage { grid-column: 2; }
  .overview-content { padding-inline: 20px; }
}
a:focus-visible { outline: 3px solid #3679ba; outline-offset: 4px; }

.preview-banner { display: flex; flex-wrap: wrap; align-items: center; gap: 16px; padding: 18px 22px; border: 1px solid #dfba65; border-radius: 12px; background: #fff4d6; }
.preview-banner div { flex: 1; min-width: 220px; }
.preview-banner small { display: block; }
.preview-accounts { display: grid; gap: 18px; margin-bottom: 48px; }
.preview-account { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 18px; padding: 24px; }
.preview-account h2, .preview-account p { margin: 0; }
.preview-account p { color: var(--muted); }
.preview-account .primary-button { border: 0; font: inherit; font-weight: 750; cursor: pointer; }
a.account-action { display: block; text-decoration: none; }

@media (max-width: 820px) {
  .welcome { grid-template-columns: 1fr; gap: 44px; }
  .services { grid-template-columns: 1fr; }
  .service { border-right: 0; border-bottom: 1px solid var(--line); }
  .service:last-child { border-bottom: 0; }
  .company-heading { align-items: start; flex-direction: column; }
  .domains { text-align: left; }
}

@media (max-width: 480px) {
  .topbar, main, footer { width: min(100% - 24px, 1160px); }
  .brand small { display: none; }
  .identity-label { max-width: 140px; }
  .welcome { padding-top: 24px; }
  .company-heading, .service { padding: 20px; }
}
