:root {
  color-scheme: dark;
  --bg: #090909;
  --surface: #161616;
  --surface-2: #1c1c1c;
  --surface-3: #242424;
  --line: #303030;
  --line-soft: #242424;
  --text: #f5f5f3;
  --muted: #b7b7b3;
  --dim: #8c8c88;
  --subtle: #6f6f6b;
  --blue: #79adff;
  --purple: #bd8cff;
  --green: #4ed582;
  --red: #ff7474;
  --amber: #f2bd55;
  --canvas-raised: #121212;
  --control: #1b1b1b;
  --control-hover: #282828;
  --primary-on: #101010;
  --shadow: rgba(0,0,0,.24);
}

:root[data-theme="light"] {
  color-scheme: light;
  --bg: #eeeee9;
  --surface: #f8f8f4;
  --surface-2: #f4f4ef;
  --surface-3: #e5e5de;
  --line: #c9c9c0;
  --line-soft: #dcdcd4;
  --text: #11110f;
  --muted: #484844;
  --dim: #696963;
  --subtle: #85857e;
  --blue: #1769d2;
  --purple: #7546b8;
  --green: #11773b;
  --red: #c52b32;
  --amber: #996313;
  --canvas-raised: #f8f8f4;
  --control: #e9e9e2;
  --control-hover: #deded6;
  --primary-on: #ffffff;
  --shadow: rgba(25,25,20,.11);
}

@media (prefers-color-scheme: light) {
  :root[data-theme="system"] {
    color-scheme: light;
    --bg: #eeeee9; --surface: #f8f8f4; --surface-2: #f4f4ef; --surface-3: #e5e5de;
    --line: #c9c9c0; --line-soft: #dcdcd4; --text: #11110f; --muted: #484844;
    --dim: #696963; --subtle: #85857e; --blue: #1769d2; --purple: #7546b8; --green: #11773b;
    --red: #c52b32; --amber: #996313; --canvas-raised: #f8f8f4; --control: #e9e9e2;
    --control-hover: #deded6; --primary-on: #ffffff; --shadow: rgba(25,25,20,.11);
  }
}

* { box-sizing: border-box; }
.visually-hidden { position: absolute !important; width: 1px !important; height: 1px !important; padding: 0 !important; overflow: hidden !important; clip: rect(0, 0, 0, 0) !important; white-space: nowrap !important; border: 0 !important; }
[hidden] { display: none !important; }
html { background: var(--bg); scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { margin: 0; min-height: 100vh; color: var(--text); background: var(--bg); font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; }
button, input { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
button { cursor: pointer; }

.project-rail { position: fixed; z-index: 15; top: 68px; bottom: 0; left: 0; display: flex; width: 240px; flex-direction: column; padding: 20px 12px 12px; border-right: 1px solid var(--line-soft); background: color-mix(in srgb, var(--surface) 55%, var(--bg)); }
.rail-heading { display: flex; align-items: center; justify-content: space-between; padding: 0 9px 12px; color: var(--muted); font-size: 12px; font-weight: 700; }
.rail-heading > div { display: flex; gap: 2px; }
.rail-heading button { display: grid; width: 30px; height: 30px; place-items: center; border: 0; border-radius: 7px; color: var(--text); background: transparent; font-size: 17px; }
.rail-heading button:hover { background: var(--control-hover); }
.rail-projects { display: grid; min-height: 0; align-content: start; gap: 3px; flex: 1; overflow-y: auto; }
.rail-list-item { position: relative; min-width: 0; }
.rail-project { display: grid; grid-template-columns: 14px minmax(0, 1fr); align-items: center; gap: 9px; width: 100%; min-height: 54px; padding: 9px 34px 9px 10px; border: 0; border-radius: 10px; color: var(--text); background: transparent; text-align: left; }
.rail-project:hover, .rail-project.active { background: var(--control-hover); }
.rail-list-menu { position: absolute; top: 50%; right: 7px; display: grid; width: 26px; height: 30px; place-items: center; padding: 0; border: 0; border-radius: 6px; color: var(--dim); background: transparent; font-size: 10px; letter-spacing: 1px; transform: translateY(-50%); }
.rail-list-menu:hover { color: var(--text); background: var(--control); }
.project-mark { display: grid; width: 36px; height: 36px; place-items: center; border-radius: 8px; color: var(--primary-on); background: var(--text); font-size: 13px; font-weight: 750; }
.rail-project strong, .rail-project small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rail-project strong { font-size: 13px; }
.rail-project small { margin-top: 4px; color: var(--muted); font-size: 10px; }
.rail-new-search { display: flex; min-height: 40px; align-items: center; gap: 9px; width: 100%; margin-top: 6px; padding: 9px 11px; border: 0; border-radius: 8px; color: var(--muted); background: transparent; text-align: left; font-size: 12px; }
.rail-new-search:hover { color: var(--text); background: var(--control); }
.rail-new-search span { font-size: 14px; }
.rail-changes { display: grid; grid-template-columns: 20px 1fr auto; min-height: 42px; align-items: center; gap: 8px; width: 100%; margin-top: 2px; padding: 9px 11px; border: 0; border-radius: 8px; color: var(--muted); background: transparent; text-align: left; font-size: 12px; }
.rail-changes:hover, .rail-changes.active { color: var(--text); background: var(--control); }
.rail-changes-icon { color: var(--green); font-size: 16px; line-height: 1; }
.rail-changes strong { font-weight: 650; }
.rail-changes b { display: grid; min-width: 20px; height: 20px; place-items: center; padding: 0 6px; border-radius: 10px; color: #07130b; background: var(--green); font-size: 10px; }
.rail-fill { flex: 0 0 6px; }
.rail-history-panel { display: block; max-height: 0; overflow: hidden; border-top: 1px solid transparent; opacity: 0; transform: translateY(10px); transition: max-height .28s cubic-bezier(.2,.8,.2,1), opacity .18s ease, transform .28s cubic-bezier(.2,.8,.2,1), border-color .2s ease; }
.rail-history-panel[hidden] { display: block; pointer-events: none; }
.rail-history-panel.open { max-height: min(48vh, 430px); border-color: var(--line-soft); opacity: 1; transform: translateY(0); }
.rail-history-panel > header { display: flex; align-items: center; justify-content: space-between; padding: 13px 10px 7px; color: var(--muted); font-size: 10px; font-weight: 750; text-transform: uppercase; letter-spacing: .08em; }
.rail-history-panel > header button { padding: 4px; border: 0; color: var(--dim); background: transparent; font-size: 9px; text-transform: none; letter-spacing: normal; }
.rail-history-panel nav { max-height: min(40vh, 360px); overflow-y: auto; }
.rail-history-panel nav button { display: grid; gap: 4px; width: 100%; padding: 9px 10px; overflow: hidden; border: 0; border-radius: 8px; color: var(--text); background: transparent; text-align: left; }
.rail-history-panel nav button:hover { background: var(--control); }
.rail-history-panel nav span, .rail-history-panel nav small { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rail-history-panel nav span { font-size: 12px; font-weight: 650; }
.rail-history-panel nav small { color: var(--dim); font-size: 9px; }
.rail-history-panel nav p { margin: 8px 10px 14px; color: var(--muted); font-size: 11px; line-height: 1.5; }
.rail-history { display: grid; grid-template-columns: 20px 1fr auto; min-height: 46px; align-items: center; gap: 8px; width: 100%; padding: 10px 11px; border: 0; border-top: 1px solid var(--line-soft); color: var(--muted); background: transparent; text-align: left; font-size: 12px; }
.rail-history:hover, .rail-history.active { color: var(--text); }
.rail-history strong { font-weight: 650; }
.rail-history > span { color: var(--blue); font-size: 17px; }
.rail-history i { color: var(--dim); font-size: 11px; font-style: normal; }
.rail-section-label { margin: 24px 10px 10px; color: var(--muted); font-size: 10px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; }
.rail-name-filters { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; margin: 0 4px 9px; }
.rail-name-filters button { min-height: 29px; padding: 5px 7px; border: 0; border-radius: 7px; color: var(--muted); background: transparent; font-size: 10px; }
.rail-name-filters button:hover { color: var(--text); background: var(--control); }
.rail-name-filters button.active { color: var(--text); background: var(--control-hover); font-weight: 700; }
.rail-names { min-height: 0; flex: 1; overflow-y: auto; }
.rail-names button { display: flex; min-height: 48px; align-items: center; gap: 10px; width: 100%; padding: 10px 11px; overflow: hidden; border: 0; border-radius: 9px; color: var(--text); background: transparent; text-align: left; font-size: 13px; font-weight: 650; }
.rail-names button:hover { color: var(--text); background: var(--control); }
.rail-names button span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rail-names p { margin: 10px; color: var(--muted); font-size: 12px; line-height: 1.55; }
.rail-names .status-dot.registrable { background: var(--green); }
.rail-names .status-dot.registered, .rail-names .status-dot.not_registrable { background: var(--red); }
.rail-names .status-dot.probably_unregistered, .rail-names .status-dot.indeterminate { background: var(--amber); }
.rail-workspace { display: flex; min-height: 44px; align-items: center; justify-content: space-between; width: 100%; padding: 11px; border: 0; border-top: 1px solid var(--line-soft); color: var(--text); background: transparent; text-align: left; font-size: 12px; }
.rail-workspace:hover { color: var(--text); }

.list-overview { padding: 20px 0 90px; animation: profile-enter .28s cubic-bezier(.2,.8,.2,1); }
.list-overview-header { display: flex; min-height: 150px; align-items: flex-end; justify-content: space-between; gap: 30px; padding-bottom: 28px; border-bottom: 1px solid var(--line); }
.list-overview-header > div:first-child { min-width: 0; flex: 1; }
.list-title-input { width: 100%; max-width: 780px; margin: 6px 0 8px; padding: 0; border: 0; outline: 0; color: var(--text); background: transparent; font-size: clamp(42px, 5vw, 68px); font-weight: 600; line-height: 1; letter-spacing: -.055em; }
.list-overview-header p { margin: 0; color: var(--muted); font-size: 13px; }
.list-overview-actions { display: flex; flex: 0 0 auto; align-items: center; gap: 7px; }
.list-overview-actions > button, .list-menu-toggle { min-height: 40px; padding: 9px 13px; border: 1px solid var(--line); border-radius: 8px; color: var(--text); background: transparent; font-size: 11px; font-weight: 700; }
.list-overview-actions > button:hover, .list-overview-actions > button.active, .list-menu-toggle:hover, .list-menu-toggle.active { border-color: var(--dim); background: var(--control); }
.list-menu-wrap { position: relative; }
.list-menu-toggle { min-width: 42px; letter-spacing: 1px; }
.list-menu { position: absolute; z-index: 35; top: calc(100% + 8px); right: 0; display: grid; width: 190px; padding: 6px; border: 1px solid var(--line); border-radius: 10px; background: var(--canvas-raised); box-shadow: 0 18px 50px var(--shadow); }
.list-menu button { display: grid; grid-template-columns: 22px 1fr; min-height: 39px; align-items: center; gap: 7px; padding: 7px 9px; border: 0; border-radius: 7px; color: var(--text); background: transparent; text-align: left; font-size: 11px; }
.list-menu button:hover { background: var(--control-hover); }
.list-menu button span { color: var(--muted); font-size: 15px; text-align: center; }
.list-menu button strong { font-weight: 650; }
.list-menu hr { width: 100%; height: 1px; margin: 5px 0; border: 0; background: var(--line-soft); }
.list-menu button.danger { color: var(--red); }
.list-quick-add { display: flex; gap: 8px; margin: 26px 0 18px; }
.list-quick-add input { min-width: 0; flex: 1; height: 48px; padding: 0 15px; border: 1px solid var(--line); border-radius: 10px; outline: 0; color: var(--text); background: var(--control); font-size: 14px; }
.list-quick-add input:focus { border-color: var(--dim); }
.list-quick-add button { min-width: 72px; border: 0; border-radius: 10px; color: var(--primary-on); background: var(--text); font-size: 11px; font-weight: 750; }
.list-filter-row { display: flex; gap: 4px; padding-bottom: 14px; border-bottom: 1px solid var(--line-soft); }
.list-filter-row button { min-height: 34px; padding: 7px 11px; border: 0; border-radius: 7px; color: var(--muted); background: transparent; font-size: 11px; }
.list-filter-row button:hover, .list-filter-row button.active { color: var(--text); background: var(--control); }
.list-content-label { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 22px 4px 8px; color: var(--muted); }
.list-content-label span { color: var(--text); font-size: 12px; font-weight: 750; }
.list-content-label small { font-size: 10px; }
.list-name-rows { display: grid; }
.list-name-row { display: grid; grid-template-columns: 18px minmax(0, 1fr) auto 24px; min-height: 76px; align-items: center; gap: 12px; width: 100%; padding: 13px 4px; border: 0; border-bottom: 1px solid var(--line-soft); color: var(--text); background: transparent; text-align: left; }
.list-name-row:hover { background: color-mix(in srgb, var(--control) 60%, transparent); }
.list-name-row.selecting { cursor: pointer; }
.list-name-row.selecting b { min-width: 48px; color: var(--muted); font-size: 9px; text-align: right; }
.list-name-row.selected { background: color-mix(in srgb, var(--green) 7%, transparent); }
.list-name-row.selected .name-favorite { color: var(--green); }
.list-name-row strong, .list-name-row small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.list-name-row strong { font-size: 17px; letter-spacing: -.015em; }
.list-name-row small { margin-top: 5px; color: var(--muted); font-size: 11px; font-weight: 500; }
.list-name-row em { padding: 5px 8px; border-radius: 999px; color: var(--muted); background: var(--control); font-size: 9px; font-style: normal; }
.list-name-row b { color: var(--dim); font-size: 16px; }
.list-domain-row { display: grid; grid-template-columns: 10px minmax(0, 1fr) auto 24px; min-height: 72px; align-items: center; gap: 14px; width: 100%; padding: 12px 4px; border: 0; border-bottom: 1px solid var(--line-soft); color: var(--text); background: transparent; text-align: left; }
.list-domain-row:hover { background: color-mix(in srgb, var(--control) 60%, transparent); }
.list-domain-row strong, .list-domain-row small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.list-domain-row strong { font-size: 16px; }
.list-domain-row small { margin-top: 5px; color: var(--muted); font-size: 10px; font-weight: 500; }
.list-domain-row em { color: var(--muted); font-size: 10px; font-style: normal; }
.list-domain-row b { color: var(--dim); font-size: 16px; }
.list-empty { padding: 70px 0; text-align: center; }
.list-empty strong { color: var(--text); font-size: 20px; }
.list-empty p { margin: 8px 0 0; color: var(--muted); font-size: 12px; }
.decision-compare { margin: 28px 0 10px; padding-bottom: 24px; border-bottom: 1px solid var(--line); }
.decision-compare > header { display: flex; align-items: end; justify-content: space-between; gap: 18px; margin-bottom: 16px; }
.decision-compare h2 { margin: 6px 0 0; color: var(--text); font-size: 28px; letter-spacing: -.035em; }
.decision-compare > header small, .compare-footnote { color: var(--muted); font-size: 10px; }
.compare-grid { display: grid; grid-template-columns: 132px repeat(var(--compare-count), minmax(155px, 1fr)); border-top: 1px solid var(--line-soft); border-left: 1px solid var(--line-soft); overflow-x: auto; }
.compare-grid > * { min-width: 0; padding: 15px; border-right: 1px solid var(--line-soft); border-bottom: 1px solid var(--line-soft); }
.compare-label { display: flex; align-items: flex-start; color: var(--muted); background: color-mix(in srgb, var(--surface) 55%, transparent); font-size: 9px; font-weight: 750; letter-spacing: .06em; text-transform: uppercase; }
.compare-name { border: 0; color: var(--text); background: transparent; text-align: left; }
.compare-name:hover { background: var(--control); }
.compare-name strong, .compare-name small, .compare-value strong, .compare-value small { display: block; }
.compare-name strong { overflow: hidden; font-size: 17px; text-overflow: ellipsis; white-space: nowrap; }
.compare-state { width: fit-content; margin-top: 8px; padding: 4px 6px; border-radius: 999px; color: var(--amber); background: color-mix(in srgb, var(--amber) 10%, transparent); font-size: 8px; font-weight: 800; text-transform: uppercase; }
.compare-state.ready { color: var(--green); background: color-mix(in srgb, var(--green) 10%, transparent); }
.compare-state.blocked { color: var(--red); background: color-mix(in srgb, var(--red) 10%, transparent); }
.compare-value { color: var(--text); font-size: 12px; line-height: 1.4; }
.compare-value > small { margin-top: 5px; color: var(--muted); font-size: 9px; }
.compare-value.score strong { font-size: 24px; }
.compare-value.identities, .compare-value.blockers { display: grid; align-content: start; gap: 7px; }
.compare-value.identities span { color: var(--muted); font-size: 10px; }
.compare-value.identities b { color: var(--text); font-weight: 650; }
.compare-value.blockers span { position: relative; padding-left: 11px; color: var(--muted); font-size: 10px; }
.compare-value.blockers span::before { content: ""; position: absolute; top: 5px; left: 0; width: 4px; height: 4px; border-radius: 50%; background: var(--amber); }
.compare-value.blockers .clear { color: var(--green); font-size: 11px; }
.compare-value.variations { display: flex; flex-wrap: wrap; gap: 5px; }
.compare-value.variations button { padding: 5px 7px; border: 1px solid var(--line); border-radius: 6px; color: var(--text); background: transparent; font-size: 9px; }
.compare-value.variations button:hover { border-color: var(--dim); background: var(--control); }
.compare-footnote { margin: 11px 0 0; }
.decision-compare.empty { padding: 32px 0; text-align: center; }
.decision-compare.empty strong { font-size: 17px; }
.decision-compare.empty p { margin: 6px 0 0; color: var(--muted); font-size: 11px; }

.save-destination-menu { position: fixed; z-index: 120; width: 260px; max-height: min(430px, calc(100vh - 24px)); overflow: hidden; border: 1px solid var(--line); border-radius: 12px; background: var(--canvas-raised); box-shadow: 0 20px 60px var(--shadow); }
.save-destination-menu > header { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 13px 13px 10px; border-bottom: 1px solid var(--line-soft); color: var(--muted); font-size: 10px; }
.save-destination-menu > header span { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.save-destination-menu > header strong { color: var(--text); }
.save-destination-menu > header button { display: grid; width: 26px; height: 26px; flex: 0 0 auto; place-items: center; padding: 0; border: 0; border-radius: 6px; color: var(--muted); background: transparent; }
.save-destination-menu > header button:hover { color: var(--text); background: var(--control); }
.save-destination-menu > div { max-height: 280px; overflow-y: auto; padding: 5px; }
.save-destination-menu > div > button { display: grid; grid-template-columns: minmax(0, 1fr) 18px; align-items: center; gap: 10px; width: 100%; min-height: 52px; padding: 8px 9px; border: 0; border-radius: 8px; color: var(--text); background: transparent; text-align: left; }
.save-destination-menu > div > button:hover { background: var(--control-hover); }
.save-destination-menu > div span, .save-destination-menu > div strong, .save-destination-menu > div small { display: block; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.save-destination-menu > div strong { font-size: 12px; }
.save-destination-menu > div small { margin-top: 4px; color: var(--muted); font-size: 9px; }
.save-destination-menu > div b { color: var(--green); font-size: 11px; }
.save-new-list { display: grid; grid-template-columns: 22px 1fr; align-items: center; gap: 7px; width: calc(100% - 10px); min-height: 42px; margin: 0 5px 5px; padding: 8px 9px; border: 0; border-top: 1px solid var(--line-soft); border-radius: 7px; color: var(--text); background: transparent; text-align: left; font-size: 11px; }
.save-new-list:hover { background: var(--control-hover); }
.save-new-list span { color: var(--green); font-size: 15px; text-align: center; }

.topbar { position: relative; z-index: 20; display: grid; grid-template-columns: 1fr auto auto; align-items: center; width: min(1380px, calc(100% - 48px)); height: 68px; margin: 0 auto; border-bottom: 1px solid transparent; }
.brand-cluster { display: flex; min-width: 0; align-items: center; gap: 5px; }
.brand { display: inline-flex; min-width: 0; align-items: center; gap: 9px; color: var(--text); text-decoration: none; font-size: 14px; font-weight: 650; letter-spacing: -.02em; }
.brand svg { width: 22px; height: 22px; fill: currentColor; }
.rail-collapse-top { display: grid; width: 28px; height: 28px; place-items: center; padding: 0; border: 0; border-radius: 6px; color: var(--dim); background: transparent; font-size: 17px; line-height: 1; }
.rail-collapse-top:hover { color: var(--text); background: var(--control-hover); }
.nav-links { display: flex; align-items: stretch; align-self: stretch; gap: 28px; }
.nav-links { justify-self: end; margin-right: 28px; }
.nav-links a, .nav-links button { position: relative; display: grid; place-items: center; padding: 0; border: 0; color: var(--muted); background: transparent; text-decoration: none; font-size: 12px; }
.nav-links a:hover, .nav-links a.active, .nav-links button:hover { color: var(--text); }
.nav-links a.active::after { content: ""; position: absolute; right: 0; bottom: -1px; left: 0; height: 1px; background: var(--text); }
.top-actions { display: flex; justify-self: end; align-items: center; gap: 14px; }
.privacy { color: var(--dim); font-size: 11px; }
.display-menu { position: relative; }
.display-toggle { display: flex; min-height: 32px; align-items: center; gap: 6px; padding: 5px 8px; border: 1px solid var(--line); border-radius: 7px; color: var(--muted); background: var(--surface); font-size: 10px; }
.display-toggle:hover, .display-toggle[aria-expanded="true"] { color: var(--text); border-color: var(--dim); }
.display-toggle span { color: var(--text); font-size: 13px; font-weight: 650; }
.display-panel { position: absolute; z-index: 80; top: calc(100% + 9px); right: 0; width: 245px; padding: 14px; border: 1px solid var(--line); border-radius: 10px; background: var(--canvas-raised); box-shadow: 0 18px 50px var(--shadow); }
.display-panel > strong { color: var(--text); font-size: 13px; }
.display-panel > p { margin: 4px 0 12px; color: var(--muted); font-size: 10px; }
.display-panel > hr { height: 1px; margin: 12px 0; border: 0; background: var(--line-soft); }
.display-panel > div { display: grid; gap: 5px; }
.display-panel button { display: flex; min-height: 38px; align-items: center; justify-content: space-between; padding: 8px 10px; border: 1px solid transparent; border-radius: 7px; color: var(--muted); background: transparent; text-align: left; font-size: 11px; }
.display-panel button small { color: var(--dim); font-size: 8px; }
.display-panel button:hover, .display-panel button.active { color: var(--text); border-color: var(--line); background: var(--control-hover); }
.theme-switcher { display: flex; padding: 2px; border: 1px solid var(--line); border-radius: 7px; background: var(--surface); }
.theme-switcher button { min-height: 28px; padding: 4px 7px; border: 0; border-radius: 4px; color: var(--dim); background: transparent; font-size: 10px; }
.theme-switcher button:hover { color: var(--text); }
.theme-switcher button.active { color: var(--text); background: var(--control-hover); }
.account-menu { position: relative; }
.account-toggle { display: flex; min-height: 34px; align-items: center; gap: 7px; padding: 4px 9px 4px 5px; border: 1px solid var(--line); border-radius: 8px; color: var(--text); background: transparent; font-size: 10px; }
.account-toggle:hover, .account-toggle[aria-expanded="true"] { border-color: var(--dim); background: var(--surface); }
.account-toggle b { max-width: 90px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 650; }
.account-avatar { display: grid; width: 24px; height: 24px; place-items: center; border-radius: 6px; color: var(--primary-on); background: var(--text); font-size: 10px; font-weight: 800; text-transform: uppercase; }
.account-panel { position: absolute; z-index: 90; top: calc(100% + 10px); right: 0; width: min(390px, calc(100vw - 28px)); max-height: min(760px, calc(100vh - 82px)); overflow-y: auto; padding: 22px; border: 1px solid var(--line); border-radius: 13px; background: var(--canvas-raised); box-shadow: 0 22px 70px var(--shadow); }
.account-panel h2 { margin: 4px 0 7px; color: var(--text); font-size: 20px; letter-spacing: -.025em; }
.account-panel p { margin: 0 0 17px; color: var(--muted); font-size: 11px; line-height: 1.55; }
.account-panel > div > small { display: block; margin-top: 14px; color: var(--dim); font-size: 9px; line-height: 1.5; }
.panel-kicker { color: var(--blue); font-size: 8px; font-weight: 750; letter-spacing: .11em; text-transform: uppercase; }
.account-panel form { display: grid; gap: 10px; }
.account-panel form label { display: grid; gap: 5px; color: var(--muted); font-size: 9px; }
.account-panel form input { width: 100%; padding: 10px 11px; border: 1px solid var(--line); border-radius: 7px; outline: 0; color: var(--text); background: var(--control); font-size: 12px; }
.account-panel form input:focus { border-color: var(--text); }
.account-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 7px; }
.account-actions button, .adopt-project { min-height: 38px; border: 1px solid var(--text); border-radius: 7px; color: var(--primary-on); background: var(--text); font-size: 10px; font-weight: 700; }
.account-actions button.secondary { border-color: var(--line); color: var(--text); background: transparent; }
.account-actions button:disabled, .adopt-project:disabled { opacity: .5; cursor: wait; }
.account-status { min-height: 16px; margin: 0 !important; color: var(--muted) !important; }
.account-status.error { color: var(--red) !important; }
#account-signed-in > header { display: flex; align-items: flex-start; justify-content: space-between; gap: 14px; }
.text-button { padding: 5px; border: 0; color: var(--muted); background: transparent; font-size: 9px; }
.text-button:hover { color: var(--text); }
.account-project-heading { display: flex; align-items: center; justify-content: space-between; margin: 17px 0 7px; color: var(--muted); font-size: 9px; font-weight: 700; text-transform: uppercase; letter-spacing: .07em; }
.account-project-heading button { padding: 5px 7px; border: 0; border-radius: 5px; color: var(--text); background: var(--control); font-size: 9px; letter-spacing: normal; text-transform: none; }
.account-projects { display: grid; gap: 4px; max-height: 210px; overflow-y: auto; }
.account-projects > button { display: flex; align-items: center; justify-content: space-between; gap: 10px; min-height: 42px; padding: 8px 10px; border: 1px solid transparent; border-radius: 7px; color: var(--muted); background: transparent; text-align: left; font-size: 10px; }
.account-projects > button:hover, .account-projects > button.active { border-color: var(--line); color: var(--text); background: var(--control); }
.account-projects button span { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.account-projects button small { flex: 0 0 auto; color: var(--dim); font-size: 8px; }
.adopt-project { width: 100%; margin-top: 11px; }
.adopt-project.synced { border-color: var(--line); color: var(--muted); background: transparent; }
.account-export { display: flex; min-height: 48px; align-items: center; justify-content: space-between; gap: 12px; width: 100%; margin-top: 8px; padding: 9px 11px; border: 1px solid var(--line); border-radius: 7px; color: var(--text); background: transparent; text-align: left; text-decoration: none; font-size: 10px; }
.account-export:hover { border-color: var(--dim); background: var(--control); }
.account-export span { font-weight: 700; }
.account-export small { color: var(--dim); font-size: 8px; }
.account-settings { display: grid; gap: 18px; padding-top: 4px; }
.settings-back { width: max-content; padding: 4px 0; border: 0; color: var(--muted); background: transparent; font-size: 10px; }
.settings-back:hover { color: var(--text); }
.settings-heading h3 { margin: 5px 0 5px; color: var(--text); font-size: 22px; letter-spacing: -.03em; }
.settings-heading p { margin: 0; }
.settings-form { display: grid; gap: 11px; padding-top: 17px; border-top: 1px solid var(--line); }
.settings-form h4 { margin: 0 0 2px; color: var(--text); font-size: 13px; }
.settings-form label { display: grid; gap: 5px; color: var(--muted); font-size: 10px; }
.settings-form input, .settings-form select { width: 100%; min-height: 40px; padding: 9px 11px; border: 1px solid var(--line); border-radius: 7px; outline: 0; color: var(--text); background: var(--control); font-size: 12px; }
.settings-form input:focus, .settings-form select:focus { border-color: var(--text); }
.settings-form > button { min-height: 40px; border: 1px solid var(--text); border-radius: 7px; color: var(--primary-on); background: var(--text); font-size: 10px; font-weight: 750; }
.settings-form > button:disabled { opacity: .5; cursor: wait; }
.settings-check { grid-template-columns: 18px 1fr; align-items: start; gap: 9px !important; cursor: pointer; }
.settings-check input { width: 16px; min-height: 16px; margin: 2px 0 0; accent-color: var(--green); }
.settings-check span { display: grid; gap: 3px; }
.settings-check strong { color: var(--text); font-size: 11px; }
.settings-check small { color: var(--dim); font-size: 9px; line-height: 1.45; }
.danger-zone p { margin: 0; }
.danger-zone > button { border-color: color-mix(in srgb, var(--red) 55%, var(--line)); color: white; background: color-mix(in srgb, var(--red) 72%, #171717); }

main { width: min(1160px, calc(100% - 290px)); margin: 0 auto; transform: translateX(120px); }
.search-stage { display: flex; min-height: calc(100vh - 150px); flex-direction: column; justify-content: center; align-items: center; padding: 70px 0 120px; transition: min-height .28s ease, padding .28s ease; }
.hero-copy { margin-bottom: 24px; text-align: center; transition: opacity .18s ease, transform .22s ease, height .22s ease, margin .22s ease; }
.hero-copy h1 { margin: 0; font-size: clamp(42px, 5.4vw, 66px); line-height: 1; letter-spacing: -.055em; font-weight: 570; }
.hero-copy p { max-width: 560px; margin: 18px auto 40px; color: var(--muted); font-size: 14px; line-height: 1.55; }
.search-form { width: min(680px, 100%); transition: width .25s ease; }
.search-box { display: flex; align-items: center; height: 62px; padding: 7px 7px 7px 18px; border: 1px solid var(--line); border-radius: 14px; background: var(--surface-2); box-shadow: 0 16px 48px var(--shadow); transition: border-color .15s ease, box-shadow .15s ease; }
.search-box:focus-within { border-color: var(--dim); box-shadow: 0 0 0 3px color-mix(in srgb, var(--text) 7%, transparent), 0 16px 48px var(--shadow); }
.search-icon { flex: 0 0 auto; width: 19px; height: 19px; margin-right: 13px; fill: none; stroke: var(--muted); stroke-width: 1.7; stroke-linecap: round; }
.search-box input { min-width: 0; flex: 1; height: 100%; padding: 0; border: 0; outline: 0; color: var(--text); background: transparent; font-size: 18px; letter-spacing: -.015em; }
.search-box input::placeholder { color: var(--dim); }
.search-box kbd { margin: 0 10px; padding: 3px 6px; border: 1px solid var(--line); border-radius: 5px; color: var(--dim); background: var(--control); font: 10px ui-monospace, SFMono-Regular, Consolas, monospace; }
.submit-button { display: grid; flex: 0 0 auto; place-items: center; width: 43px; height: 43px; border: 0; border-radius: 9px; color: var(--primary-on); background: var(--text); font-size: 19px; }
.submit-button:hover { opacity: .88; }
.submit-button:disabled { color: var(--dim); background: var(--control-hover); cursor: wait; }
.search-meta { display: flex; justify-content: space-between; align-items: center; gap: 20px; min-height: 37px; padding: 0 5px; }
.mode-tabs { display: flex; align-items: center; gap: 16px; color: var(--dim); font-size: 10px; }
.mode-tabs span, .mode-tabs button { white-space: nowrap; }
.mode-tabs button { min-height: 26px; padding: 4px 7px; border: 0; border-radius: 4px; color: var(--dim); background: transparent; font-size: 10px; }
.mode-tabs button:hover { color: var(--text); }
.mode-tabs button.active { color: var(--text); background: var(--control-hover); }
.mode-tabs button b { color: var(--dim); font-size: 8px; font-weight: 500; }
.mode-tabs .source-state { color: var(--text); }
.mode-tabs i { display: inline-block; width: 5px; height: 5px; margin: 0 6px 1px 0; border-radius: 50%; background: var(--green); }
.scan-switcher { display: flex; align-items: center; padding: 2px; border: 1px solid var(--line-soft); border-radius: 6px; background: var(--control); }
.scan-switcher button { min-height: 22px; padding: 3px 8px; border: 0; border-radius: 4px; color: var(--dim); background: transparent; font-size: 9px; }
.scan-switcher button:hover { color: var(--text); }
.scan-switcher button.active { color: var(--text); background: var(--control-hover); }
.landing-support { display: flex; max-width: 100%; min-height: 24px; align-items: center; justify-content: center; gap: 14px; margin-top: 12px; overflow-x: auto; color: var(--muted); font-size: 10px; scrollbar-width: none; }
.landing-support::-webkit-scrollbar { display: none; }
.landing-support-label { color: var(--text); font-weight: 700; }
.landing-support-item { display: inline-flex; align-items: center; gap: 5px; white-space: nowrap; }
.landing-support-item b { color: var(--dim); font-size: 8px; font-weight: 750; letter-spacing: .06em; text-transform: uppercase; }
.landing-support-item.active b { color: var(--green); }

body.has-query .topbar { border-bottom-color: var(--line-soft); }
body.has-query .search-stage { min-height: 0; align-items: center; padding: 24px 0 18px; }
body.has-query .hero-copy { height: 0; margin: 0; overflow: hidden; opacity: 0; transform: translateY(-8px); }
body.has-query .landing-support { display: none; }
body.has-query .search-form { width: min(720px, 100%); }
body.has-query .search-box { height: 50px; border-radius: 11px; box-shadow: none; }
body.has-query .search-box input { font-size: 15px; }
body.has-query .submit-button { width: 35px; height: 35px; border-radius: 7px; }

.results { padding: 0 0 80px; }
body.has-query .results { animation: results-enter .38s .08s both cubic-bezier(.2,.8,.2,1); }
.changes-page { width: 100%; padding: 30px 0 90px; }
.changes-header { display: flex; min-height: 150px; align-items: flex-end; justify-content: space-between; gap: 28px; padding-bottom: 28px; border-bottom: 1px solid var(--line); }
.section-kicker { color: var(--green); font-size: 10px; font-weight: 800; letter-spacing: .11em; text-transform: uppercase; }
.changes-header h2 { margin: 9px 0 7px; font-size: clamp(42px, 7vw, 72px); font-weight: 600; letter-spacing: -.06em; }
.changes-header p { margin: 0; color: var(--muted); font-size: 14px; }
.changes-header > button, .watch-refresh { min-height: 40px; padding: 9px 14px; border: 1px solid var(--line); border-radius: 8px; color: var(--text); background: var(--control); font-size: 12px; font-weight: 650; }
.changes-header > button:hover, .watch-refresh:hover { border-color: var(--dim); background: var(--control-hover); }
.changes-section { padding: 35px 0 8px; }
.changes-section > header { display: flex; align-items: baseline; justify-content: space-between; gap: 20px; padding-bottom: 13px; border-bottom: 1px solid var(--line); }
.changes-section h3 { margin: 0; font-size: 21px; letter-spacing: -.025em; }
.changes-section > header span { color: var(--dim); font-size: 11px; }
.change-row { position: relative; display: grid; grid-template-columns: 10px minmax(0, 1fr) minmax(150px, 260px); align-items: center; gap: 16px; width: 100%; min-height: 104px; padding: 18px 2px; border: 0; border-bottom: 1px solid var(--line-soft); color: var(--text); background: transparent; text-align: left; }
.change-row:hover { background: linear-gradient(90deg, transparent, color-mix(in srgb, var(--control) 75%, transparent), transparent); }
.change-row.unread::before { content: ""; position: absolute; top: 22px; left: -15px; width: 5px; height: 5px; border-radius: 50%; background: var(--blue); }
.change-marker { width: 9px; height: 9px; border-radius: 50%; background: var(--amber); box-shadow: 0 0 0 4px color-mix(in srgb, var(--amber) 10%, transparent); }
.change-marker.available { background: var(--green); box-shadow: 0 0 0 4px color-mix(in srgb, var(--green) 10%, transparent); }
.change-marker.taken { background: var(--red); box-shadow: 0 0 0 4px color-mix(in srgb, var(--red) 10%, transparent); }
.change-copy, .change-copy > span { display: flex; align-items: center; }
.change-copy { min-width: 0; flex-wrap: wrap; gap: 8px 18px; }
.change-copy > strong { width: 100%; overflow: hidden; text-overflow: ellipsis; font-size: 17px; white-space: nowrap; }
.change-copy > span { gap: 8px; color: var(--muted); font-size: 12px; }
.change-copy b { color: var(--text); font-weight: 650; }
.change-copy b.available { color: var(--green); }
.change-copy b.taken { color: var(--red); }
.change-copy b.unknown { color: var(--amber); }
.change-copy i { color: var(--dim); font-style: normal; }
.change-copy > small { color: var(--muted); font-size: 11px; }
.change-meta { display: grid; justify-items: end; gap: 7px; color: var(--muted); font-size: 11px; text-align: right; }
.change-meta small { max-width: 260px; overflow: hidden; color: var(--dim); text-overflow: ellipsis; white-space: nowrap; }
.changes-empty { padding: 34px 2px; border-bottom: 1px solid var(--line-soft); }
.changes-empty strong { font-size: 17px; }
.changes-empty p { max-width: 570px; margin: 8px 0 0; color: var(--muted); font-size: 13px; line-height: 1.6; }
.changes-empty.compact { padding: 24px 2px; }
.watch-row { display: grid; grid-template-columns: minmax(0, 1fr) 220px auto; align-items: center; gap: 20px; min-height: 82px; border-bottom: 1px solid var(--line-soft); }
.watch-subject { display: flex; min-width: 0; align-items: center; gap: 16px; padding: 15px 2px; border: 0; color: var(--text); background: transparent; text-align: left; }
.watch-subject > span:last-child { min-width: 0; }
.watch-subject strong, .watch-subject small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.watch-subject strong { font-size: 15px; }
.watch-subject small { margin-top: 6px; color: var(--muted); font-size: 11px; }
.watch-schedule { color: var(--dim); font-size: 11px; text-align: right; }
.watch-refresh { min-height: 36px; padding: 7px 11px; background: transparent; }
.changes-loading { padding: 80px 0; color: var(--muted); font-size: 14px; }
@keyframes results-enter { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } }
.empty-message, .loading-line, .error-message { padding: 22px 0; color: var(--muted); font-size: 13px; }
.loading-line { display: flex; align-items: center; gap: 10px; }
.loading-line::before { content: ""; width: 12px; height: 12px; border: 1px solid var(--line); border-top-color: var(--text); border-radius: 50%; animation: spin .7s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.error-message { color: var(--red); }

.results-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; padding: 24px 0 16px; border-bottom: 1px solid var(--line); }
.results-title { min-width: 0; }
.results-title h2 { margin: 0; overflow-wrap: anywhere; font-size: clamp(28px, 4vw, 44px); letter-spacing: -.045em; font-weight: 600; }
.results-title p { margin: 9px 0 0; color: var(--muted); font-size: 13px; }
.identity-quickcheck { padding: 13px 0; border-bottom: 1px solid var(--line-soft); }
.identity-quickcheck > header { display: flex; align-items: end; justify-content: space-between; gap: 15px; margin-bottom: 9px; }
.identity-quickcheck > header div { display: grid; gap: 3px; }
.identity-quickcheck > header span { color: var(--dim); font-size: 10px; letter-spacing: .08em; text-transform: uppercase; }
.identity-quickcheck > header strong { color: var(--text); font-size: 14px; }
.identity-quickcheck > header small, .identity-quickcheck > p { color: var(--muted); font-size: 10px; }
.identity-quick-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 7px; }
.quick-identity { display: grid; grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: "platform action" "handle action" "status action"; min-width: 0; min-height: 72px; align-content: center; gap: 2px 10px; padding: 12px; border: 1px solid var(--line-soft); border-radius: 9px; background: color-mix(in srgb, var(--surface) 68%, transparent); }
.quick-identity span { display: flex; align-items: center; gap: 7px; color: var(--muted); font-size: 11px; }
.quick-identity span { grid-area: platform; }
.quick-identity span b { color: var(--muted); font-size: 11px; font-weight: 600; }
.quick-identity strong { overflow: hidden; color: var(--text); text-overflow: ellipsis; white-space: nowrap; font-size: 14px; }
.quick-identity strong { grid-area: handle; }
.quick-identity .identity-handle { grid-area: handle; min-width: 0; overflow: hidden; color: var(--text); font-size: 14px; font-weight: 700; text-decoration: none; text-overflow: ellipsis; white-space: nowrap; }
.quick-identity .identity-handle:hover { color: var(--blue); text-decoration: underline; text-underline-offset: 3px; }
.quick-identity small { color: var(--muted); font-size: 10px; }
.quick-identity small { grid-area: status; }
.quick-identity.status-claimed small { color: var(--red); }
.quick-identity.status-not_found small { color: var(--amber); }
.quick-identity.status-claimable small { color: var(--green); }
.quick-identity-actions { grid-area: action; align-self: center; }
.quick-identity-actions { display: flex; align-items: center; gap: 5px; }
.quick-identity-actions button { display: inline-grid; width: 30px; min-width: 30px; min-height: 30px; padding: 0; place-items: center; border: 1px solid transparent; border-radius: 7px; color: var(--muted); background: transparent; font-size: 15px; white-space: nowrap; }
.quick-identity-actions button:hover { color: var(--text); border-color: var(--line); background: var(--control-hover); }
.quick-identity button:disabled { opacity: .55; cursor: wait; }
.quick-identity .identity-watch-button { color: var(--dim); }
.quick-identity .identity-watch-button.active { color: var(--amber); }
.quick-identity .identity-recheck { font-size: 14px; }
.quick-identity.future { opacity: .72; }
.quick-identity.future span b { color: var(--muted); }
.identity-quickcheck > p { margin: 8px 1px 0; line-height: 1.4; }
.progress { display: flex; align-items: center; gap: 9px; color: var(--muted); font: 10px ui-monospace, SFMono-Regular, Consolas, monospace; white-space: nowrap; }
.progress-track { width: 90px; height: 2px; overflow: hidden; background: var(--line); }
.progress-bar { display: block; width: 0; height: 100%; background: var(--text); transition: width .18s ease; }
.filter-row { display: flex; align-items: center; justify-content: space-between; gap: 20px; min-height: 58px; border-bottom: 1px solid var(--line-soft); }
.filters { display: flex; gap: 6px; }
.filter { min-height: 32px; padding: 7px 10px; border: 1px solid transparent; border-radius: 7px; color: var(--muted); background: transparent; font-size: 11px; }
.filter:hover { color: var(--text); }
.filter.active { color: var(--text); border-color: var(--line); background: var(--surface); }
.filter.available.active { color: var(--green); }
.filter.likely-open.active { color: var(--amber); }
.filter.premium.active { color: var(--purple); }
.filter.make-offer.active { color: var(--blue); }
.filter.taken.active { color: var(--red); }
.filter.unknown.active { color: var(--muted); }
.summary-counts { color: var(--muted); font: 11px ui-monospace, SFMono-Regular, Consolas, monospace; }
.summary-counts strong { color: var(--text); font-weight: 650; }
.summary-counts strong.available { color: var(--green); }
.summary-counts strong.likely-open { color: var(--amber); }
.summary-counts strong.premium { color: var(--purple); }
.summary-counts strong.taken { color: var(--red); }
.summary-counts strong.unknown { color: var(--muted); }

.domain-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 34px; }
.domain-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: "name action" "meta action"; gap: 7px 18px; min-height: 86px; align-items: center; padding: 15px 0; border-bottom: 1px solid var(--line-soft); }
.domain-row[hidden] { display: none; }
.domain-row.loading { opacity: .45; }
.domain-name { grid-area: name; display: flex; min-width: 0; align-items: center; gap: 10px; color: var(--text); font-size: 16px; font-weight: 640; }
.domain-name span:last-child { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.status-dot { flex: 0 0 auto; width: 8px; height: 8px; border-radius: 50%; background: var(--subtle); }
.domain-row.available .status-dot { background: var(--green); }
.domain-row.likely-open .status-dot { background: var(--amber); }
.domain-row.premium .status-dot { background: var(--purple); }
.domain-row.unknown .status-dot { background: var(--subtle); }
.domain-row.make-offer .status-dot { background: var(--blue); }
.domain-row.taken .status-dot { background: var(--red); }
.status-badge { padding: 4px 7px; border-radius: 6px; color: var(--muted); background: var(--control-hover); font-size: 9px; font-weight: 750; letter-spacing: .045em; text-transform: uppercase; }
.domain-row.available .status-badge { color: var(--green); background: color-mix(in srgb, var(--green) 11%, transparent); }
.domain-row.likely-open .status-badge { color: var(--amber); background: color-mix(in srgb, var(--amber) 11%, transparent); }
.domain-row.premium .status-badge { color: var(--purple); background: color-mix(in srgb, var(--purple) 12%, transparent); }
.domain-row.unknown .status-badge { color: var(--muted); background: var(--control-hover); }
.domain-row.make-offer .status-badge { color: var(--blue); background: color-mix(in srgb, var(--blue) 11%, transparent); }
.domain-row.taken .status-badge { color: var(--red); background: color-mix(in srgb, var(--red) 11%, transparent); }
.domain-meta { grid-area: meta; padding-left: 18px; overflow: hidden; color: var(--muted); font: 10px ui-monospace, SFMono-Regular, Consolas, monospace; text-overflow: ellipsis; white-space: nowrap; }
.domain-meta .market-route { color: var(--blue); }
.row-actions { grid-area: action; display: flex; align-items: center; gap: 6px; }
.row-button { min-width: 64px; min-height: 36px; padding: 8px 10px; border: 1px solid var(--line); border-radius: 7px; color: var(--text); background: var(--surface-2); font-size: 11px; }
.row-button:hover { color: var(--text); border-color: var(--dim); }
.row-button.primary { color: var(--primary-on); border-color: var(--text); background: var(--text); font-weight: 700; }
.row-button.saved { color: var(--green); }
.skeleton { display: inline-block; width: 45%; height: 9px; border-radius: 4px; background: var(--control-hover); animation: pulse 1.1s ease-in-out infinite alternate; }
@keyframes pulse { to { opacity: .42; } }

.detail-toolbar { display: flex; justify-content: space-between; align-items: center; min-height: 50px; border-bottom: 1px solid var(--line); }
.detail-toolbar-actions { display: flex; align-items: center; gap: 8px; margin-left: auto; }
.watch-button { min-height: 34px; padding: 7px 11px; border: 1px solid var(--line); border-radius: 7px; color: var(--text); background: transparent; font-size: 10px; font-weight: 650; }
.watch-button:hover { border-color: var(--dim); background: var(--control-hover); }
.watch-button.active { color: var(--green); border-color: color-mix(in srgb, var(--green) 35%, var(--line)); }
.watch-strip { display: flex; min-height: 58px; align-items: center; justify-content: space-between; gap: 20px; margin: 0 0 24px; padding: 11px 0; border-top: 1px solid var(--line-soft); border-bottom: 1px solid var(--line-soft); }
.watch-strip > span { display: grid; grid-template-columns: 9px minmax(0, 1fr); align-items: center; column-gap: 10px; }
.watch-strip i { grid-row: 1 / 3; width: 8px; height: 8px; border-radius: 50%; background: var(--green); box-shadow: 0 0 0 4px color-mix(in srgb, var(--green) 12%, transparent); }
.watch-strip strong { color: var(--text); font-size: 12px; }
.watch-strip small { margin-top: 3px; color: var(--muted); font-size: 10px; }
.watch-strip button { flex: 0 0 auto; padding: 7px 0; border: 0; color: var(--muted); background: transparent; font-size: 10px; }
.watch-strip button:hover { color: var(--text); }
.text-button { padding: 0; border: 0; color: var(--muted); background: transparent; font-size: 11px; }
.text-button:hover { color: var(--text); }
.detail-head { display: flex; justify-content: space-between; gap: 30px; padding: 34px 0 26px; border-bottom: 1px solid var(--line); }
.detail-head h2 { margin: 0 0 13px; overflow-wrap: anywhere; font-size: clamp(30px, 5vw, 50px); letter-spacing: -.05em; }
.state-label { display: inline-flex; align-items: center; gap: 7px; color: var(--muted); font-size: 11px; }
.state-label .status-dot { width: 7px; height: 7px; }
.state-label.available .status-dot { background: var(--green); }
.state-label.likely-open .status-dot { background: var(--amber); }
.state-label.premium .status-dot { background: var(--purple); }
.state-label.unknown .status-dot { background: var(--subtle); }
.state-label.make-offer .status-dot { background: var(--blue); }
.state-label.taken .status-dot { background: var(--red); }
.assurance { max-width: 210px; text-align: right; }
.assurance strong { display: block; font-size: 17px; letter-spacing: -.025em; }
.assurance span { display: block; margin-top: 6px; color: var(--dim); font-size: 9px; line-height: 1.35; text-transform: uppercase; }
.detail-summary { max-width: 750px; margin: 20px 0; color: var(--muted); font-size: 13px; line-height: 1.55; }
.detail-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 50px; padding: 24px 0 34px; border-top: 1px solid var(--line-soft); }
.detail-section h3 { margin: 0 0 17px; color: var(--muted); font-size: 10px; font-weight: 650; letter-spacing: .08em; text-transform: uppercase; }
.evidence-list, .facts { display: grid; gap: 0; }
.evidence, .fact { display: grid; grid-template-columns: minmax(90px, .7fr) 1.3fr; gap: 20px; padding: 10px 0; border-bottom: 1px solid var(--line-soft); font-size: 11px; }
.evidence strong, .fact dt { color: var(--muted); font-weight: 500; }
.evidence strong a { color: inherit; text-decoration: none; }
.evidence strong a:hover { color: var(--text); }
.evidence div, .fact dd { margin: 0; color: var(--text); overflow-wrap: anywhere; }
.evidence small { display: block; margin-top: 4px; color: var(--dim); font: 9px ui-monospace, monospace; }
.limitations { margin: 0; padding-left: 17px; color: var(--muted); font-size: 11px; line-height: 1.6; }
.limitations li + li { margin-top: 6px; }
.empty-message.compact { padding: 4px 0 18px; font-size: 11px; }
.offer-section { padding: 5px 0 28px; }
.offer-list { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 10px; }
.offer-card { padding: 15px; border: 1px solid var(--line); border-radius: 9px; background: var(--surface); }
.offer-card.exact { border-color: color-mix(in srgb, var(--green) 48%, var(--line)); }
.offer-card > header { display: flex; justify-content: space-between; gap: 15px; }
.offer-card > header strong, .offer-card > header span { display: block; }
.offer-card > header strong { color: var(--text); font-size: 12px; }
.offer-card > header span { margin-top: 4px; color: var(--dim); font: 9px ui-monospace, monospace; }
.offer-card > header b { align-self: flex-start; padding: 4px 6px; border-radius: 5px; color: var(--purple); background: color-mix(in srgb, var(--purple) 13%, var(--surface)); font-size: 9px; text-transform: uppercase; }
.offer-prices { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin: 17px 0 12px; }
.offer-prices span { color: var(--text); font: 13px ui-monospace, monospace; }
.offer-prices small { display: block; margin-bottom: 4px; color: var(--dim); font: 8px ui-sans-serif, sans-serif; text-transform: uppercase; }
.ownership-cost { margin: 0 0 13px; padding-top: 11px; border-top: 1px solid var(--line-soft); }
.ownership-cost > strong { display: block; margin-bottom: 7px; color: var(--dim); font-size: 8px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; }
.ownership-cost > div { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; }
.ownership-cost span { color: var(--text); font: 10px ui-monospace, monospace; }
.ownership-cost small { display: block; margin-bottom: 3px; color: var(--dim); font: 7px ui-sans-serif, sans-serif; text-transform: uppercase; }
.offer-card p { margin: 0; color: var(--dim); font-size: 9px; line-height: 1.5; }
.offer-card > a { display: inline-block; margin-top: 11px; color: var(--blue); font-size: 9px; text-decoration: none; }
.offer-card > a:hover { color: var(--text); }
.cost-note { margin: 9px 0 0; color: var(--dim); font-size: 8px; line-height: 1.5; }
.aftermarket-section { padding: 5px 0 28px; }
.aftermarket-list { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 10px; }
.aftermarket-card { padding: 16px; border: 1px solid color-mix(in srgb, var(--blue) 42%, var(--line)); border-radius: 9px; background: color-mix(in srgb, var(--blue) 5%, var(--surface)); }
.aftermarket-card > header { display: flex; justify-content: space-between; gap: 15px; }
.aftermarket-card > header strong, .aftermarket-card > header span { display: block; }
.aftermarket-card > header strong { color: var(--text); font-size: 13px; }
.aftermarket-card > header span { margin-top: 4px; color: var(--muted); font-size: 10px; }
.aftermarket-card > header b { align-self: flex-start; padding: 4px 7px; border-radius: 5px; color: var(--blue); background: color-mix(in srgb, var(--blue) 13%, var(--surface)); font-size: 9px; text-transform: uppercase; }
.aftermarket-card dl { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin: 18px 0 13px; }
.aftermarket-card dl div { min-width: 0; }
.aftermarket-card dt { margin-bottom: 5px; color: var(--dim); font-size: 8px; text-transform: uppercase; }
.aftermarket-card dd { margin: 0; overflow-wrap: anywhere; color: var(--text); font: 12px ui-monospace, SFMono-Regular, Consolas, monospace; }
.aftermarket-card p { margin: 0; color: var(--muted); font-size: 10px; line-height: 1.5; }
.aftermarket-card > a { display: inline-block; margin-top: 12px; color: var(--blue); font-size: 10px; text-decoration: none; }
.aftermarket-card > a:hover { color: var(--text); }
.platform-icon { width: 17px; height: 17px; flex: 0 0 auto; fill: currentColor; }
.platform-icon.outlined { fill: none; stroke: currentColor; stroke-width: 1.8; }
.platform-icon.outlined .fill { fill: currentColor; stroke: none; }

.extension-index { margin: 34px 0 20px; padding-top: 24px; border-top: 1px solid var(--line); }
.extension-teaser { display: none; width: 100%; min-height: 66px; align-items: center; justify-content: space-between; padding: 13px 16px; border: 0; border-radius: 10px; color: var(--text); background: var(--surface); text-align: left; }
.extension-teaser span { display: grid; gap: 5px; }
.extension-teaser b { font-size: 15px; }
.extension-teaser small { color: var(--muted); font-size: 11px; }
.extension-teaser strong { color: var(--text); font-size: 11px; }
.extension-body > header { display: flex; align-items: flex-end; justify-content: space-between; gap: 18px; }
.extension-body > header span { color: var(--dim); font-size: 9px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; }
.extension-index h3 { margin: 6px 0 0; color: var(--text); font-size: 22px; letter-spacing: -.03em; }
.extension-body > header button { min-height: 38px; padding: 9px 13px; border: 1px solid var(--line); border-radius: 8px; color: var(--text); background: var(--surface); font-size: 11px; font-weight: 700; }
.extension-body > header button:hover { border-color: var(--dim); }
.extension-body > header button:disabled { opacity: .45; cursor: wait; }
.extension-note { margin: 11px 0 16px; color: var(--muted); font-size: 12px; line-height: 1.5; }
.extension-note strong { color: var(--text); }
.extension-categories { display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 12px; }
.extension-categories button { min-height: 32px; padding: 6px 10px; border: 1px solid transparent; border-radius: 7px; color: var(--muted); background: transparent; font-size: 10px; }
.extension-categories button:hover { color: var(--text); }
.extension-categories button.active { border-color: var(--line); color: var(--text); background: var(--surface); }
.extension-chips { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 1px; overflow: hidden; border: 1px solid var(--line-soft); border-radius: 8px; background: var(--line-soft); }
.extension-chip { display: flex; min-width: 0; min-height: 42px; align-items: center; justify-content: space-between; gap: 7px; padding: 9px 10px; border: 0; color: var(--muted); background: var(--bg); text-align: left; }
.extension-chip:hover { color: var(--text); background: var(--control); }
.extension-chip span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 11px; }
.extension-chip small { flex: 0 1 auto; overflow: hidden; color: var(--dim); font-size: 9px; text-overflow: ellipsis; white-space: nowrap; }
.show-more-extensions { width: 100%; min-height: 38px; margin-top: 8px; padding: 9px; border: 1px solid var(--line-soft); border-radius: 7px; color: var(--muted); background: transparent; font-size: 11px; }
.show-more-extensions:hover { color: var(--text); border-color: var(--dim); }
.status-legend { margin: 34px 0 0; padding: 22px 0 0; border-top: 1px solid var(--line); }
.status-legend > header span { color: var(--dim); font-size: 9px; letter-spacing: .09em; text-transform: uppercase; }
.status-legend h3 { margin: 5px 0 15px; font-size: 20px; letter-spacing: -.03em; }
.status-legend > div { display: grid; grid-template-columns: repeat(6, 1fr); overflow: hidden; border: 1px solid var(--line); border-radius: 10px; background: var(--surface); }
.status-legend > div > span { display: grid; grid-template-columns: 10px 1fr; gap: 2px 9px; min-height: 74px; align-content: center; padding: 13px; border-right: 1px solid var(--line-soft); }
.status-legend > div > span:last-child { border-right: 0; }
.status-legend i { grid-row: 1 / 3; align-self: center; width: 9px; height: 9px; border-radius: 50%; }
.status-legend strong { color: var(--text); font-size: 12px; }
.status-legend small { color: var(--muted); font-size: 9px; }
.status-legend .available i { background: var(--green); }
.status-legend .likely-open i { background: var(--amber); }
.status-legend .premium i { background: var(--purple); }
.status-legend .unknown i { background: var(--subtle); }
.status-legend .make-offer i { background: var(--blue); }
.status-legend .taken i { background: var(--red); }

.method { display: flex; justify-content: center; gap: 24px; margin: 10px 0 24px; padding-top: 13px; border-top: 1px solid var(--line-soft); }
.method div { display: flex; align-items: baseline; gap: 6px; min-width: 0; }
.method strong, .method span { font-size: 10px; line-height: 1.4; }
.method strong { color: var(--text); white-space: nowrap; }
.method span { color: var(--dim); }
body.has-query .method { display: none; }

.drawer-backdrop { position: fixed; z-index: 40; inset: 0; background: rgba(0,0,0,.56); }
.drawer { position: fixed; z-index: 50; top: 0; right: 0; width: min(420px, 100%); height: 100vh; padding: 27px; overflow-y: auto; border-left: 1px solid var(--line); background: var(--canvas-raised); transform: translateX(102%); transition: transform .2s ease; }
.drawer.open { transform: translateX(0); }
.drawer > header { display: flex; justify-content: space-between; align-items: flex-start; gap: 20px; }
.drawer-kicker { color: var(--muted); font-size: 11px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; }
.drawer h2 { margin: 7px 0 0; font-size: 34px; letter-spacing: -.045em; }
.close-button { width: 34px; height: 34px; border: 1px solid var(--line); border-radius: 7px; color: var(--text); background: transparent; font-size: 20px; }
.drawer-intro { max-width: 720px; margin: 22px 0 28px; color: var(--text); font-size: 14px; line-height: 1.6; }
.name-records { display: grid; gap: 7px; }
.empty-workspace { padding: 30px 15px; border: 1px dashed var(--line); border-radius: 8px; color: var(--muted); text-align: center; font-size: 11px; line-height: 1.55; }
.drawer > footer { display: flex; gap: 8px; margin-top: 16px; }
.drawer > footer button { flex: 1; min-height: 42px; padding: 10px 12px; border: 1px solid var(--text); border-radius: 8px; color: var(--primary-on); background: var(--text); font-size: 12px; font-weight: 750; }
.drawer > footer button.secondary { color: var(--text); border-color: var(--line); background: transparent; }
.drawer > footer button:disabled { opacity: .35; cursor: not-allowed; }
.workspace-drawer { width: min(780px, 100%); }
.workspace-drawer { top: 68px; right: 0; left: 240px; width: auto; height: calc(100vh - 68px); padding: 36px max(28px, calc((100vw - 240px - 900px) / 2)); border-left: 0; opacity: 0; visibility: hidden; transform: translateY(12px); pointer-events: none; transition: opacity .2s ease, transform .28s cubic-bezier(.2,.8,.2,1), visibility .2s; }
.workspace-drawer.open { opacity: 1; visibility: visible; transform: translateY(0); pointer-events: auto; }
.sources-drawer { top: 0; right: 0; left: auto; width: min(560px, 100%); height: 100vh; opacity: 1; visibility: visible; transform: translateX(102%); pointer-events: auto; }
.sources-drawer.open { transform: translateX(0); }
.workspace-name { display: grid; grid-template-columns: 90px 1fr; align-items: center; gap: 14px; margin-bottom: 18px; color: var(--text); font-size: 12px; font-weight: 700; }
.workspace-name input, .workspace-block textarea, .criteria-weights select { width: 100%; border: 1px solid var(--line); border-radius: 6px; color: var(--text); background: var(--control); font: inherit; outline: none; }
.workspace-name input { min-height: 44px; padding: 11px 13px; font-size: 14px; }
.workspace-name input:focus, .workspace-block textarea:focus, .criteria-weights select:focus { border-color: var(--text); }
.workspace-block { margin: 14px 0; padding: 20px; border: 0; border-radius: 12px; background: var(--surface); }
.workspace-block > header { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 12px; }
.workspace-block h3 { margin: 5px 0 0; color: var(--text); font-size: 19px; letter-spacing: -.02em; }
.workspace-block > header small, .workspace-block > small { color: var(--muted); font-size: 11px; }
.workspace-actions { display: flex; gap: 6px; }
.workspace-actions button { min-height: 38px; padding: 8px 12px; border: 1px solid var(--text); border-radius: 7px; color: var(--primary-on); background: var(--text); font-size: 11px; font-weight: 750; }
.workspace-actions button.secondary { border-color: var(--line); color: var(--text); background: transparent; }
.workspace-actions button:disabled { opacity: .45; }
.workspace-block textarea { resize: vertical; padding: 12px; font-size: 13px; line-height: 1.55; }
.inline-status { min-height: 16px; margin: 9px 0 0; color: var(--muted); font-size: 11px; }
.criteria-weights { display: grid; grid-template-columns: repeat(5, 1fr); gap: 7px; }
.criteria-weights label { display: grid; gap: 7px; color: var(--text); font-size: 11px; }
.criteria-weights select { min-height: 38px; padding: 8px; font-size: 12px; }
.decision-matrix { overflow: hidden; border: 1px solid var(--line-soft); border-radius: 7px; }
.matrix-head, .decision-matrix button { display: grid; grid-template-columns: minmax(0, 1fr) 110px 48px; align-items: center; gap: 9px; width: 100%; }
.matrix-head { padding: 9px 12px; color: var(--muted); font-size: 10px; font-weight: 750; text-transform: uppercase; }
.decision-matrix button { position: relative; min-height: 46px; padding: 11px 12px 11px 34px; border: 0; border-top: 1px solid var(--line-soft); color: var(--text); background: transparent; text-align: left; font-size: 13px; }
.decision-matrix button:hover { background: var(--control); }
.decision-matrix button b { position: absolute; left: 10px; color: var(--dim); font-size: 8px; }
.decision-matrix button span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.decision-matrix button small { color: var(--muted); font-size: 10px; }
.decision-matrix button strong { color: var(--green); text-align: right; font-size: 12px; }
.identity-overview-block { padding-right: 0; padding-left: 0; }
.identity-overview-block > header { padding: 0 15px; }
.identity-matrix { overflow-x: auto; border-top: 1px solid var(--line-soft); border-bottom: 1px solid var(--line-soft); }
.identity-matrix-table { min-width: 830px; }
.identity-matrix-head, .identity-matrix-row { display: grid; grid-template-columns: 130px repeat(6, minmax(115px, 1fr)); align-items: stretch; width: 100%; }
.identity-matrix-head > span { padding: 10px 12px; color: var(--text); font-size: 10px; font-weight: 750; text-transform: uppercase; }
.identity-matrix-head small { display: block; margin-top: 4px; color: var(--muted); font-size: 9px; font-weight: 500; text-transform: none; }
.identity-matrix-row { padding: 0; border: 0; border-top: 1px solid var(--line-soft); color: var(--text); background: transparent; text-align: left; }
.identity-matrix-row:hover { background: var(--control); }
.identity-matrix-row > strong, .identity-matrix-row > span { min-width: 0; padding: 12px; overflow: hidden; border-right: 1px solid var(--line-soft); text-overflow: ellipsis; white-space: nowrap; font-size: 11px; }
.identity-matrix-row > strong { font-size: 13px; }
.identity-matrix-row > span { color: var(--muted); }
.identity-matrix-row > span.selected { color: var(--text); background: color-mix(in srgb, var(--green) 6%, transparent); }
.identity-matrix-row small { display: block; margin-top: 4px; color: var(--muted); font-size: 9px; }
.identity-matrix-row .status-dot { display: inline-block; margin-right: 6px; }
.identity-matrix-row .status-dot.registrable { background: var(--green); }
.identity-matrix-row .status-dot.registered, .identity-matrix-row .status-dot.not_registrable { background: var(--red); }
.identity-matrix-row .status-dot.probably_unregistered, .identity-matrix-row .status-dot.indeterminate { background: var(--amber); }
.identity-matrix-row .matrix-domains { padding-top: 7px; padding-bottom: 7px; }
.identity-matrix-row .matrix-domains small { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--muted); }
.identity-matrix-row .matrix-domains small:first-child { margin-top: 0; }
.identity-matrix-row > .identity-status-claimed small { color: var(--red); }
.identity-matrix-row > .identity-status-not_found small { color: var(--amber); }
.identity-matrix-row > .identity-status-claimable small { color: var(--green); }
.name-record-heading { display: flex; justify-content: space-between; margin: 28px 2px 11px; color: var(--text); font-size: 11px; font-weight: 800; text-transform: uppercase; letter-spacing: .08em; }
.name-record-heading small { color: var(--muted); font-size: 11px; font-weight: 500; text-transform: none; letter-spacing: 0; }
.workspace-drawer > footer { flex-wrap: wrap; }
.name-record button { display: grid; grid-template-columns: 24px minmax(0, 1fr) auto 52px; align-items: center; gap: 12px; width: 100%; min-height: 64px; padding: 15px 16px; border: 0; border-radius: 10px; color: var(--text); background: var(--surface); text-align: left; }
.name-record button:hover { border-color: var(--dim); background: var(--control); }
.name-record button > span:nth-child(2) { min-width: 0; }
.name-record strong, .name-record small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.name-record strong { font-size: 15px; }
.name-record small, .name-record em { margin-top: 5px; color: var(--muted); font-size: 11px; font-style: normal; }
.name-record b { color: var(--green); text-align: right; font-size: 12px; }
.name-record-star, .name-favorite.active { color: var(--amber); }
.rail-names button.active { color: var(--text); background: var(--control-hover); }
.rail-names button span small { display: block; margin-top: 4px; overflow: hidden; color: var(--muted); text-overflow: ellipsis; white-space: nowrap; font-size: 10px; font-weight: 500; }
.name-favorite { width: 12px; flex: 0 0 12px; color: var(--dim); font-style: normal; text-align: center; }

.name-profile { padding: 16px 0 80px; animation: profile-enter .28s cubic-bezier(.2,.8,.2,1); }
@keyframes profile-enter { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: translateY(0); } }
.name-profile-header { display: flex; align-items: flex-end; justify-content: space-between; gap: 30px; padding: 14px 0 32px; border-bottom: 1px solid var(--line); }
.profile-back { margin: 0 0 28px; padding: 0; border: 0; color: var(--text); background: transparent; font-size: 14px; }
.profile-back:hover { color: var(--text); }
.profile-eyebrow, .profile-section > header span, .profile-notes-grid > label > span, .profile-notes-grid > div > span { display: block; color: var(--muted); font-size: 11px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; }
.name-profile h1 { margin: 7px 0 4px; color: var(--text); font-size: clamp(38px, 6vw, 68px); line-height: .98; letter-spacing: -.055em; }
.name-profile-header p { margin: 14px 0 0; color: var(--text); font-size: 16px; }
.profile-header-actions { display: flex; align-items: center; gap: 12px; padding-bottom: 5px; }
.favorite-button, .asset-action, .asset-preferred, .add-domain-form button { display: inline-flex; min-height: 42px; align-items: center; justify-content: center; padding: 10px 15px; border: 1px solid var(--line); border-radius: 9px; color: var(--text); background: var(--surface-3); font-size: 12px; font-weight: 700; text-decoration: none; white-space: nowrap; }
.favorite-button:hover, .asset-action:hover, .asset-preferred:hover, .add-domain-form button:hover { border-color: var(--dim); background: var(--control-hover); }
.favorite-button.active { color: var(--amber); }
.profile-score { color: var(--green); font: 13px ui-monospace, monospace; white-space: nowrap; }
.profile-metadata { display: grid; grid-template-columns: 210px 190px minmax(250px, 1fr); gap: 12px; padding: 24px 0 4px; }
.profile-metadata label, .profile-asset > label { display: grid; gap: 8px; color: var(--text); font-size: 11px; font-weight: 650; }
.profile-metadata input, .profile-metadata select, .profile-asset select, .handle-field, .add-domain-form input, .profile-notes-grid textarea, .profile-ratings select { width: 100%; min-height: 44px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 9px; color: var(--text); background: var(--control); font: inherit; font-size: 13px; outline: none; }
.profile-metadata input:focus, .profile-metadata select:focus, .profile-asset select:focus, .handle-field:focus-within, .add-domain-form input:focus, .profile-notes-grid textarea:focus { border-color: var(--text); }
.profile-section { margin-top: 48px; }
.profile-section > header { display: flex; align-items: end; justify-content: space-between; gap: 20px; margin-bottom: 12px; }
.profile-section h2 { margin: 7px 0 0; color: var(--text); font-size: 28px; letter-spacing: -.035em; }
.profile-section > header small { max-width: 330px; color: var(--text); text-align: right; font-size: 12px; line-height: 1.45; }
.add-domain-form { display: flex; gap: 7px; width: min(390px, 100%); }
.add-domain-form input { flex: 1; min-width: 0; }
.add-domain-form button { color: var(--primary-on); background: var(--text); font-weight: 700; }
.profile-assets { display: grid; gap: 8px; }
.domain-record { display: grid; gap: 7px; }
.profile-asset { display: grid; grid-template-columns: minmax(220px, 1.45fr) minmax(150px, .8fr) 145px 120px auto auto; align-items: center; gap: 14px; min-height: 88px; padding: 17px 18px; border: 0; border-radius: 12px; background: var(--surface); }
.asset-primary { display: flex; min-width: 0; align-items: center; gap: 11px; }
.asset-primary > span { min-width: 0; }
.asset-primary strong, .asset-primary small, .asset-price strong, .asset-price small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.asset-primary strong { color: var(--text); font-size: 17px; line-height: 1.2; }
.asset-primary small, .asset-price small { margin-top: 7px; color: var(--muted); font-size: 11px; line-height: 1.35; }
.asset-price strong { color: var(--text); font-size: 15px; }
.evidence-dot { width: 9px; height: 9px; flex: 0 0 9px; border-radius: 50%; background: var(--amber); box-shadow: 0 0 0 4px color-mix(in srgb, var(--amber) 10%, transparent); }
.evidence-dot.available { background: var(--green); box-shadow: 0 0 0 4px color-mix(in srgb, var(--green) 10%, transparent); }
.evidence-dot.taken { background: var(--red); box-shadow: 0 0 0 4px color-mix(in srgb, var(--red) 10%, transparent); }
.asset-preferred.active { color: var(--green); border-color: color-mix(in srgb, var(--green) 35%, var(--line)); }
.ownership-toggle { display: flex !important; min-height: 42px; align-items: center; grid-template-columns: auto 1fr; gap: 9px !important; font-size: 12px !important; font-weight: 600 !important; }
.ownership-toggle input { width: 17px; height: 17px; accent-color: var(--green); }
.platform-name .platform-icon { width: 26px; height: 26px; flex: 0 0 26px; color: var(--text); fill: currentColor; }
.platform-name .platform-icon.outlined { fill: none; stroke: currentColor; stroke-width: 1.8; }
.handle-field { display: flex !important; align-items: center; gap: 2px !important; padding: 0 9px !important; }
.handle-field span { color: var(--text); font-size: 13px; }
.handle-field input { width: 100%; min-width: 0; border: 0; color: var(--text); background: transparent; outline: none; font-size: 14px; }
.connector-note { justify-self: center; padding: 6px 8px; border-radius: 999px; color: var(--muted); background: var(--control); font-size: 10px; font-weight: 700; text-transform: uppercase; }
.profile-identity-actions { display: flex; align-items: center; gap: 6px; }
.identity-preferred { min-height: 42px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 9px; color: var(--muted); background: transparent; font-size: 11px; font-weight: 700; }
.identity-preferred.active { color: var(--green); border-color: color-mix(in srgb, var(--green) 35%, var(--line)); }
.profile-identity-actions .identity-watch-button { min-height: 42px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 9px; color: var(--muted); background: transparent; font-size: 11px; font-weight: 700; }
.profile-identity-actions .identity-watch-button.active { color: var(--green); border-color: color-mix(in srgb, var(--green) 35%, var(--line)); }
.identity-status-claimed { color: var(--red) !important; }
.identity-status-not_found, .identity-status-claimable { color: var(--green) !important; }
.ownership-panel { padding: 18px; border-radius: 12px; background: color-mix(in srgb, var(--green) 5%, var(--surface)); }
.ownership-panel > header { display: flex; align-items: center; justify-content: space-between; gap: 18px; margin-bottom: 15px; }
.ownership-panel > header div { display: grid; gap: 4px; }
.ownership-panel > header span { color: var(--green); font-size: 10px; font-weight: 800; letter-spacing: .09em; text-transform: uppercase; }
.ownership-panel > header strong { color: var(--text); font-size: 15px; }
.ownership-panel > header a { color: var(--blue); font-size: 11px; font-weight: 700; text-decoration: none; }
.ownership-panel > div { display: grid; grid-template-columns: 1.1fr .85fr .85fr 1fr 1.35fr auto; align-items: end; gap: 10px; }
.ownership-panel label { display: grid; gap: 7px; color: var(--text); font-size: 10px; font-weight: 650; }
.ownership-panel input, .ownership-panel select { width: 100%; min-width: 0; min-height: 40px; padding: 8px 10px; border: 1px solid var(--line); border-radius: 8px; color: var(--text); background: var(--control); font: inherit; font-size: 12px; outline: none; }
.ownership-panel input:focus, .ownership-panel select:focus { border-color: var(--text); }
.money-input { display: grid; grid-template-columns: 64px 1fr; }
.money-input select { border-radius: 8px 0 0 8px; }
.money-input input { border-left: 0; border-radius: 0 8px 8px 0; }
.ownership-panel .auto-renew-control { display: flex; min-height: 40px; align-items: center; gap: 8px; white-space: nowrap; }
.ownership-panel .auto-renew-control input { width: 17px; min-height: 17px; height: 17px; accent-color: var(--green); }
.evidence-history { margin-top: 12px; border-radius: 11px; background: var(--surface); }
.evidence-history summary { display: flex; align-items: center; justify-content: space-between; padding: 14px 17px; color: var(--text); cursor: pointer; list-style: none; font-size: 13px; font-weight: 750; }
.evidence-history summary::-webkit-details-marker { display: none; }
.evidence-history summary::before { content: "+"; margin-right: 9px; color: var(--muted); }
.evidence-history[open] summary::before { content: "−"; }
.evidence-history summary small { margin-left: auto; color: var(--muted); font-size: 11px; font-weight: 500; }
.evidence-history > div { padding: 0 17px 12px; }
.evidence-history article { display: grid; grid-template-columns: 10px minmax(0, 1fr) auto; align-items: center; gap: 11px; padding: 11px 0; border-top: 1px solid var(--line-soft); }
.evidence-history article strong, .evidence-history article small { display: block; }
.evidence-history article strong { color: var(--text); font-size: 12px; }
.evidence-history article small { margin-top: 3px; color: var(--muted); font-size: 10px; }
.evidence-history article b { color: var(--text); font-size: 12px; }
.profile-notes-grid { display: grid; grid-template-columns: 1.15fr 1fr; gap: 34px; margin-top: 52px; padding-top: 32px; border-top: 1px solid var(--line); }
.profile-notes-grid > label { display: grid; gap: 12px; }
.profile-notes-grid textarea { min-height: 180px; resize: vertical; font-size: 14px; line-height: 1.55; }
.profile-ratings { display: grid; grid-template-columns: repeat(5, 1fr); gap: 7px; margin-top: 9px; }
.profile-ratings label { display: grid; gap: 8px; color: var(--text); font-size: 11px; }
.profile-danger { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin-top: 45px; padding-top: 18px; border-top: 1px solid var(--line-soft); }
.profile-danger button { padding: 0; border: 0; color: var(--red); background: transparent; font-size: 12px; }
.profile-danger span { color: var(--muted); font-size: 11px; }
.source-principles { margin: 0 0 22px; padding: 13px 15px; border: 1px solid var(--line); border-radius: 8px; background: var(--surface); }
.api-contract { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin: -8px 0 14px; padding: 12px 14px; border: 1px solid var(--line); border-radius: 8px; color: var(--text); background: var(--surface); text-decoration: none; }
.api-contract:hover { border-color: var(--dim); background: var(--control); }
.api-contract span { display: grid; gap: 3px; }
.api-contract strong { font-size: 13px; }
.api-contract small { color: var(--muted); font-size: 11px; }
.api-contract b { color: var(--blue); font-size: 11px; white-space: nowrap; }
.source-summary { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.source-summary > div { display: grid; gap: 2px; min-height: 72px; align-content: center; padding: 13px; border: 1px solid var(--line); border-radius: 10px; background: var(--surface); }
.source-summary strong { color: var(--text); font-size: 24px; line-height: 1; }
.source-summary span { color: var(--muted); font-size: 11px; }
.source-summary .healthy strong, .source-summary .live strong { color: var(--green); }
.source-summary .ready strong { color: var(--amber); }
.source-summary .degraded strong { color: var(--red); }
.source-principles p { position: relative; margin: 0; padding-left: 13px; color: var(--muted); font-size: 12px; line-height: 1.55; }
.source-principles p::before { content: ""; position: absolute; top: 6px; left: 0; width: 4px; height: 4px; border-radius: 50%; background: var(--green); }
.source-principles p + p { margin-top: 8px; }
.source-items { display: grid; gap: 9px; }
.source-card { padding: 15px; border: 1px solid var(--line); border-radius: 9px; background: var(--surface); }
.source-card > header { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.source-card > header strong { color: var(--text); font-size: 14px; }
.source-badge { padding: 4px 7px; border-radius: 10px; color: var(--muted); background: var(--control-hover); font: 9px ui-monospace, monospace; text-transform: uppercase; }
.source-badge.live { color: var(--green); background: color-mix(in srgb, var(--green) 12%, var(--surface)); }
.source-badge.not_configured { color: var(--amber); background: color-mix(in srgb, var(--amber) 13%, var(--surface)); }
.source-card > p { margin: 10px 0; color: var(--muted); font-size: 12px; line-height: 1.55; }
.source-card dl { margin: 0; }
.source-card dl div { display: grid; grid-template-columns: 92px 1fr; gap: 12px; padding: 7px 0; border-top: 1px solid var(--line-soft); font-size: 11px; line-height: 1.4; }
.source-card dt { color: var(--dim); }
.source-card dd { margin: 0; color: var(--text); }
.source-card > small { display: block; margin-top: 8px; color: var(--dim); font: 10px ui-monospace, monospace; }
.source-runtime { display: flex; align-items: center; gap: 7px; margin-top: 9px; color: var(--dim); font: 10px ui-monospace, monospace; }
.source-runtime i { width: 5px; height: 5px; border-radius: 50%; background: var(--subtle); }
.source-runtime i.healthy { background: var(--green); }
.source-runtime i.degraded { background: var(--amber); }
.source-card > a { display: inline-block; margin-top: 10px; color: var(--blue); font-size: 11px; text-decoration: none; }
.source-card > a:hover { color: var(--text); }

body[data-view="simple"] .results-head { padding: 18px 0 13px; }
body[data-view="simple"] .results-title h2 { font-size: clamp(30px, 3.4vw, 40px); }
body[data-view="simple"] .results-title p { display: none; }
body[data-view="simple"] .identity-quickcheck { padding: 11px 0; }
body[data-view="simple"] .identity-quickcheck > header { margin-bottom: 7px; }
body[data-view="simple"] .identity-quickcheck > header span { display: none; }
body[data-view="simple"] .identity-quickcheck > header strong { font-size: 13px; }
body[data-view="simple"] .identity-quickcheck > header > small { display: none; }
body[data-view="simple"] .identity-quick-grid { gap: 0; overflow: hidden; border: 1px solid var(--line-soft); border-radius: 10px; }
body[data-view="simple"] .quick-identity { min-height: 62px; padding: 9px 12px; border: 0; border-right: 1px solid var(--line-soft); border-radius: 0; background: transparent; }
body[data-view="simple"] .quick-identity:last-child { border-right: 0; }
body[data-view="simple"] .quick-identity span b { font-size: 10px; }
body[data-view="simple"] .quick-identity strong, body[data-view="simple"] .quick-identity .identity-handle { font-size: 13px; }
body[data-view="simple"] .quick-identity small { font-size: 9px; }
body[data-view="simple"] .quick-identity button { display: none; }
body[data-view="simple"] .quick-identity button.identity-recheck, body[data-view="simple"] .quick-identity button.identity-watch-button { display: inline-grid; width: 28px; min-width: 28px; min-height: 28px; padding: 0; place-items: center; }
body[data-view="simple"] .detail-head .assurance, body[data-view="simple"] .detail-section.empty-evidence { display: none; }
body[data-view="simple"] .filter-row { min-height: 42px; justify-content: flex-end; }
body[data-view="simple"] .filters { display: none; }
body[data-view="simple"] .domain-list { gap: 8px 12px; padding: 8px 0; }
body[data-view="simple"] .domain-row { min-height: 66px; padding: 12px 11px; border: 0; border-radius: 10px; background: color-mix(in srgb, var(--surface) 58%, transparent); }
body[data-view="simple"] .domain-row:hover { background: var(--surface); }
body[data-view="simple"] .domain-meta { display: none; }
body[data-view="simple"] .domain-name { font-size: 15px; }
body[data-view="simple"] .row-actions { gap: 2px; }
body[data-view="simple"] .row-button { width: 34px; min-width: 34px; min-height: 34px; padding: 0; border: 0; background: transparent; font-size: 0; }
body[data-view="simple"] .row-button:hover { background: var(--control-hover); }
body[data-view="simple"] .row-button.primary { color: var(--text); background: var(--control); }
body[data-view="simple"] .row-button.primary::after { content: "→"; font-size: 15px; }
body[data-view="simple"] .row-button:not(.primary)::after { content: "☆"; font-size: 16px; }
body[data-view="simple"] .row-button.saved:not(.primary)::after { content: "★"; color: var(--green); }
body[data-view="simple"] .extension-index { margin-top: 18px; padding-top: 18px; }
body[data-view="simple"] .extension-teaser { display: flex; }
body[data-view="simple"] .extension-body { display: none; }
body[data-view="simple"] .extension-index.expanded .extension-teaser { display: none; }
body[data-view="simple"] .extension-index.expanded .extension-body { display: block; }
body[data-view="simple"] .status-legend { margin-top: 20px; padding-top: 14px; }
body[data-view="simple"] .status-legend > header { display: none; }
body[data-view="simple"] .status-legend > div { display: flex; flex-wrap: wrap; gap: 16px; border: 0; background: transparent; }
body[data-view="simple"] .status-legend > div > span { display: flex; min-height: 28px; align-items: center; gap: 7px; padding: 0; border: 0; }
body[data-view="simple"] .status-legend i { width: 7px; height: 7px; }
body[data-view="simple"] .status-legend strong { font-size: 10px; }
body[data-view="simple"] .status-legend small { display: none; }
body[data-view="simple"] .technical-detail { display: none; }
body[data-view="simple"] .detail-head { padding: 26px 0 20px; }
body[data-view="simple"] .assurance span { display: none; }
body[data-view="simple"] .offer-card:not(:first-child) { display: none; }
body[data-view="simple"] .offer-card p, body[data-view="simple"] .cost-note { display: none; }
body[data-view="simple"] .offer-section, body[data-view="simple"] .aftermarket-section { padding-bottom: 20px; }

body[data-view="evidence"] .extension-teaser { display: none; }
body[data-view="evidence"] .extension-body { display: block; }

body[data-density="compact"] .results-title h2 { font-size: clamp(27px, 3.5vw, 38px); }
body[data-density="compact"] .identity-quickcheck > header strong { font-size: 12px; }
body[data-density="compact"] .quick-identity { min-height: 58px; padding: 8px 9px; }
body[data-density="compact"] .quick-identity strong { font-size: 11px; }
body[data-density="compact"] .domain-row { min-height: 70px; padding: 11px 0; }
body[data-density="compact"] .domain-name { font-size: 14px; }
body[data-density="compact"] .domain-meta { font-size: 9px; }
body[data-density="compact"] .row-button { min-height: 30px; font-size: 10px; }
body[data-density="compact"] .filter-row { min-height: 48px; }

body[data-density="spacious"] main { width: min(1220px, calc(100% - 285px)); }
body[data-density="spacious"] .results-title h2 { font-size: clamp(34px, 4.5vw, 50px); }
body[data-density="spacious"] .results-title p { font-size: 15px; }
body[data-density="spacious"] .identity-quickcheck { padding: 18px 0; }
body[data-density="spacious"] .quick-identity { min-height: 84px; padding: 14px; }
body[data-density="spacious"] .quick-identity strong { font-size: 14px; }
body[data-density="spacious"] .domain-row { min-height: 98px; padding: 18px 0; }
body[data-density="spacious"] .domain-name { font-size: 18px; }
body[data-density="spacious"] .domain-meta { font-size: 11px; }
body[data-density="spacious"] .row-button { min-height: 40px; padding: 9px 12px; font-size: 12px; }
body[data-density="spacious"] .filter-row { min-height: 66px; }

@media (max-width: 1100px) {
  .privacy { display: none; }
  .top-actions { gap: 8px; }
  .nav-links { gap: 16px; margin-right: 14px; }
  .ownership-panel > div { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (max-width: 760px) {
  .topbar { grid-template-columns: 1fr auto; width: calc(100% - 28px); }
  .nav-links, .privacy { display: none; }
  main { width: calc(100% - 28px); transform: none; }
  .project-rail { display: none; }
  .workspace-drawer { top: 68px; left: 0; height: calc(100vh - 68px); }
  .search-stage { min-height: calc(100vh - 110px); padding-bottom: 90px; }
  .hero-copy h1 { font-size: 42px; }
  .hero-copy p { margin-bottom: 30px; font-size: 13px; }
  .search-box { height: 57px; padding-left: 14px; }
  .search-box input { font-size: 16px; }
  .search-box kbd, .mode-tabs .scope:not(.active) { display: none; }
  .search-meta { gap: 8px; }
  .domain-list { grid-template-columns: 1fr; }
  .identity-quick-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .status-legend > div { grid-template-columns: repeat(2, 1fr); }
  .status-legend > div > span { border-bottom: 1px solid var(--line-soft); }
  .extension-chips { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .domain-row { grid-template-columns: minmax(0, 1fr) 150px; gap: 5px 8px; overflow: hidden; }
  .row-actions { justify-self: end; gap: 5px; }
  .row-button { min-width: 0; padding: 7px; }
  .row-button.primary { width: 53px; }
  .row-actions .row-button.verify { width: 53px; }
  .row-actions .row-button:not(.primary):not(.verify) { width: 32px; font-size: 0; }
  .row-actions .row-button:not(.primary):not(.verify)::after { content: "☆"; font-size: 14px; }
  .row-actions .row-button.saved:not(.primary):not(.verify)::after { content: "★"; }
  .results-head { align-items: flex-start; }
  .identity-quickcheck > header { align-items: flex-start; flex-direction: column; }
  .progress-track { display: none; }
  .filter-row { align-items: flex-start; flex-direction: column; justify-content: center; gap: 5px; padding: 9px 0; }
  .detail-grid { grid-template-columns: 1fr; gap: 25px; }
  .method { align-items: center; flex-direction: column; gap: 7px; }
  .detail-head { padding-top: 25px; }
  .evidence, .fact { grid-template-columns: 100px 1fr; }
  .drawer { padding: 20px 16px; }
  .criteria-weights { grid-template-columns: repeat(2, 1fr); }
  .matrix-head, .decision-matrix button { grid-template-columns: minmax(0, 1fr) 72px 38px; }
  .workspace-block > header { align-items: flex-start; }
  .workspace-actions { flex-direction: column; }
  .name-profile-header, .profile-section > header, .profile-danger { align-items: flex-start; flex-direction: column; }
  .profile-metadata, .profile-notes-grid { grid-template-columns: 1fr; }
  .profile-asset { grid-template-columns: minmax(0, 1fr) auto; gap: 12px; padding: 16px; }
  .profile-asset .asset-primary { grid-column: 1 / -1; }
  .ownership-panel > header { align-items: flex-start; flex-direction: column; }
  .ownership-panel > div { grid-template-columns: 1fr; }
  .profile-ratings { grid-template-columns: repeat(3, 1fr); }
  .add-domain-form { width: 100%; }
  .changes-page { padding-top: 10px; }
  .changes-header { min-height: 120px; align-items: flex-start; flex-direction: column; justify-content: flex-end; gap: 18px; }
  .changes-header h2 { font-size: 48px; }
  .changes-section > header { align-items: flex-start; flex-direction: column; gap: 5px; }
  .change-row { grid-template-columns: 10px minmax(0, 1fr); }
  .change-meta { grid-column: 2; justify-items: start; text-align: left; }
  .watch-row { grid-template-columns: minmax(0, 1fr) auto; gap: 10px; }
  .watch-schedule { display: none; }
  .list-overview { padding-top: 4px; }
  .list-overview-header { min-height: 128px; align-items: flex-start; flex-direction: column; justify-content: flex-end; gap: 18px; }
  .list-title-input { font-size: clamp(38px, 12vw, 54px); }
  .list-overview-actions { align-self: flex-start; }
  .list-quick-add { align-items: stretch; }
  .list-name-row { grid-template-columns: 18px minmax(0, 1fr) 20px; }
  .list-name-row em { display: none; }
  .list-domain-row { grid-template-columns: 10px minmax(0, 1fr) 20px; }
  .list-domain-row em { display: none; }
  .list-content-label small { display: none; }
  .decision-compare > header { align-items: flex-start; flex-direction: column; }
  .compare-grid { grid-template-columns: 92px repeat(var(--compare-count), minmax(145px, 1fr)); }
  .compare-grid > * { padding: 12px; }
}

@media (max-width: 520px) {
  .display-toggle { width: 32px; justify-content: center; overflow: hidden; font-size: 0; }
  .display-toggle span { font-size: 12px; }
  .theme-switcher { display: none; }
  .account-toggle { padding-right: 5px; }
  .account-toggle b { display: none; }
  .identity-quick-grid, .status-legend > div { grid-template-columns: 1fr; }
  .quick-identity { min-height: 68px; }
}

@media (min-width: 761px) {
  body:not(.has-query):not(.project-open) main { display: flex; height: calc(100vh - 68px); flex-direction: column; overflow: hidden; }
  body:not(.has-query):not(.project-open) .search-stage { min-height: 0; flex: 1; padding-top: 55px; padding-bottom: 15px; }
  body:not(.has-query):not(.project-open) .method { flex: 0 0 auto; margin: 0 0 24px; }
  body.rail-collapsed .project-rail { width: 56px; padding-right: 7px; padding-left: 7px; }
  body.rail-collapsed .brand { gap: 0; }
  body.rail-collapsed .brand span { position: absolute; width: 1px; height: 1px; padding: 0; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
  body.rail-collapsed .rail-collapse-top { color: var(--text); }
  body.rail-collapsed .rail-heading > span, body.rail-collapsed .rail-project > span:last-child, body.rail-collapsed .rail-new-search:not(:hover)::after, body.rail-collapsed .rail-new-search, body.rail-collapsed .rail-changes strong, body.rail-collapsed .rail-history strong, body.rail-collapsed .rail-history i { font-size: 0; }
  body.rail-collapsed .rail-heading { justify-content: center; padding-right: 0; padding-left: 0; }
  body.rail-collapsed #rail-add-list, body.rail-collapsed .rail-history-panel, body.rail-collapsed .rail-list-menu { display: none; }
  body.rail-collapsed .rail-project { display: grid; grid-template-columns: 14px; justify-content: center; padding: 8px 6px; }
  body.rail-collapsed .rail-new-search { justify-content: center; padding: 7px; }
  body.rail-collapsed .rail-new-search span { font-size: 16px; }
  body.rail-collapsed .rail-changes { grid-template-columns: 20px; justify-content: center; padding: 9px; }
  body.rail-collapsed .rail-changes b { position: absolute; margin: -27px 0 0 22px; min-width: 16px; height: 16px; padding: 0 4px; font-size: 8px; }
  body.rail-collapsed .rail-history { grid-template-columns: 20px; justify-content: center; padding: 9px; }
  body.rail-collapsed main { width: min(1180px, calc(100% - 100px)); transform: translateX(28px); }
  body.rail-collapsed .workspace-drawer { left: 56px; padding-right: max(28px, calc((100vw - 56px - 900px) / 2)); padding-left: max(28px, calc((100vw - 56px - 900px) / 2)); }
}

@media (min-width: 761px) and (max-width: 1050px) {
  main { width: calc(100% - 280px); }
  .extension-chips { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

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

/* Responsive layout pass
   Keep the information hierarchy intact as the viewport narrows: headings and
   status meters stack before result rows collapse, while dense comparison
   tables retain an intentional inner scroll instead of forcing page overflow. */
@media (max-width: 900px) {
  .results-head { align-items: flex-start; flex-direction: column; gap: 10px; }
  .results-title { width: 100%; }
  .results-title h2 { overflow-wrap: normal; word-break: normal; }
  .progress { align-self: flex-start; max-width: 100%; }
}

@media (min-width: 761px) and (max-width: 900px) {
  .domain-list { grid-template-columns: 1fr; }
  .identity-quick-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .domain-row { min-height: 78px; }
}

@media (max-width: 760px) {
  html, body { overflow-x: hidden; }
  .topbar { grid-template-columns: minmax(0, 1fr) auto; width: calc(100% - 24px); height: 60px; }
  .brand-cluster { gap: 0; }
  .brand { min-width: 0; gap: 7px; font-size: 13px; }
  .brand svg { width: 19px; height: 19px; }
  .rail-collapse-top { display: none; }
  .top-actions { gap: 6px; }
  .display-toggle, .account-toggle { min-width: 40px; min-height: 40px; }
  main { width: calc(100% - 24px); }
  .search-stage { min-height: calc(100vh - 84px); min-height: calc(100svh - 84px); padding: 34px 0 44px; }
  body:not(.has-query):not(.project-open) .search-stage { min-height: calc(100vh - 150px); min-height: calc(100svh - 150px); padding-top: 24px; padding-bottom: 24px; }
  body:not(.has-query):not(.project-open) .method { margin-bottom: 14px; }
  .method { gap: 8px; margin: 6px 0 14px; }
  .method strong, .method span { font-size: 10px; line-height: 1.35; }
  body.has-query .search-stage { padding: 12px 0 14px; }
  .hero-copy { width: 100%; }
  .hero-copy h1 { max-width: 100%; font-size: clamp(34px, 11vw, 42px); letter-spacing: -.05em; text-wrap: balance; }
  .search-form { width: 100%; }
  .landing-support { justify-content: flex-start; gap: 12px; margin-top: 10px; padding: 0 2px; }
  .search-box { height: 58px; padding-left: 13px; border-radius: 12px; }
  .search-box input { font-size: 16px; }
  .search-meta { flex-wrap: wrap; justify-content: flex-start; gap: 4px 8px; min-height: 0; padding: 4px 2px 0; }
  .mode-tabs { min-width: 0; flex: 1 1 auto; gap: 8px; overflow-x: auto; scrollbar-width: none; }
  .mode-tabs::-webkit-scrollbar { display: none; }
  .scan-switcher { flex: 0 0 auto; margin-left: auto; }
  .progress { flex-wrap: wrap; row-gap: 5px; max-width: 100%; white-space: normal; }
  .progress-track { flex: 0 0 90px; }
  .results-head { align-items: stretch; flex-direction: column; gap: 9px; padding: 18px 0 14px; }
  .results-title h2 { font-size: clamp(30px, 10vw, 44px); line-height: 1; overflow-wrap: normal; word-break: normal; }
  .results-title p { font-size: 12px; }
  .identity-quick-grid { grid-template-columns: 1fr; gap: 6px; }
  .quick-identity { min-height: 74px; padding: 11px 12px; }
  .filter-row { align-items: stretch; }
  .filters { flex-wrap: wrap; gap: 4px; }
  .summary-counts { line-height: 1.35; white-space: normal; }
  .domain-list { grid-template-columns: 1fr; gap: 8px; padding: 8px 0; }
  .domain-row { grid-template-columns: minmax(0, 1fr); grid-template-areas: "name" "meta" "action"; gap: 7px; min-height: 0; padding: 13px 11px; border: 1px solid var(--line-soft); border-radius: 10px; background: color-mix(in srgb, var(--surface) 58%, transparent); }
  .domain-row:hover { background: var(--surface); }
  .domain-name { font-size: 16px; line-height: 1.25; }
  .domain-meta { padding-left: 18px; overflow-wrap: anywhere; line-height: 1.35; white-space: normal; }
  .row-actions { justify-self: stretch; width: 100%; justify-content: flex-end; gap: 6px; }
  .row-button { min-width: 38px; min-height: 38px; }
  .row-button.primary { width: 38px; padding: 0; }
  .row-actions .row-button.verify { width: auto; min-width: 80px; }
  .row-actions .row-button:not(.primary):not(.verify) { width: 38px; padding: 0; font-size: 0; }
  .detail-head { flex-direction: column; align-items: flex-start; gap: 14px; }
  .assurance { max-width: none; text-align: left; }
  .detail-summary { font-size: 14px; }
  .drawer { width: 100%; padding: 20px 16px 30px; }
  .workspace-drawer { top: 60px; height: calc(100vh - 60px); height: calc(100dvh - 60px); padding: 22px 16px 30px; }
  .sources-drawer { height: 100vh; height: 100dvh; padding: 22px 16px 30px; }
  .workspace-name { grid-template-columns: 1fr; gap: 7px; }
  .workspace-block { padding: 15px; }
  .workspace-block > header { align-items: flex-start; flex-direction: column; gap: 10px; }
  .workspace-actions { width: 100%; flex-wrap: wrap; }
  .workspace-actions button { flex: 1 1 130px; }
  .identity-matrix-table { min-width: 720px; }
  .name-record-heading { align-items: flex-start; flex-direction: column; gap: 7px; }
  .profile-section h2 { font-size: 30px; }
  .profile-header-actions { width: 100%; justify-content: space-between; }
  .profile-ratings { grid-template-columns: repeat(2, 1fr); }
  .list-quick-add { flex-direction: column; }
  .list-quick-add button { min-height: 44px; }
}

/* iPad/tablet Safari also zooms controls below 16px on focus. Keep the
   interaction-safe size without changing display headings or result text. */
@media (max-width: 1024px) {
  body.has-query .search-box input,
  .search-box input,
  .list-quick-add input,
  .workspace-name input,
  .workspace-block textarea,
  .criteria-weights select,
  .account-panel form input,
  .settings-form input,
  .settings-form select,
  .profile-metadata input,
  .profile-metadata select,
  .profile-asset select,
  .handle-field input,
  .add-domain-form input,
  .profile-notes-grid textarea,
  .profile-ratings select,
  .ownership-panel input:not([type="checkbox"]),
  .ownership-panel select { font-size: 16px; }
}

@media (max-width: 380px) {
  .topbar, main { width: calc(100% - 20px); }
  .hero-copy h1 { font-size: 34px; }
  .search-meta { gap: 3px 5px; }
  .mode-tabs { gap: 4px; }
  .mode-tabs .source-state { font-size: 9px; }
  .mode-tabs button { padding: 4px 5px; font-size: 9px; }
  .scan-switcher button { padding: 3px 6px; }
  .progress { font-size: 9px; }
  .method { gap: 5px; }
  .method strong, .method span { font-size: 9px; }
  .results-title h2 { font-size: 32px; }
}

/* Mobile finishing pass: the home surface should end at the viewport, and
   every editable control should remain at Safari's no-zoom touch size. */
@media (max-width: 760px) {
  html:has(body:not(.has-query):not(.project-open)) { overflow-y: hidden; }
  body:not(.has-query):not(.project-open) { overflow: hidden; }
  body:not(.has-query):not(.project-open) .method { margin-bottom: 0; }
  body.has-query .search-box input { font-size: 16px; }
  .search-box input,
  .list-quick-add input,
  .workspace-name input,
  .workspace-block textarea,
  .criteria-weights select,
  .account-panel form input,
  .settings-form input,
  .settings-form select,
  .profile-metadata input,
  .profile-metadata select,
  .profile-asset select,
  .handle-field input,
  .add-domain-form input,
  .profile-notes-grid textarea,
  .profile-ratings select,
  .ownership-panel input:not([type="checkbox"]),
  .ownership-panel select { font-size: 16px; }
}
