:root {
  color-scheme:light;
  --bg:#f7f7f7;
  --surface:#fff;
  --soft:#fafafa;
  --fg:#171717;
  --muted:#636363;
  --border:#dedede;
  --accent:#171717;
  --hover:#383838;
  --tint:#ededed;
  --danger:#ad293a;
  --danger-bg:#fff0f1;
  --state-green:#17623b;
  --state-green-bg:#e7f5eb;
  --state-amber:#805400;
  --state-amber-bg:#fff2ce;
  --state-blue:#205ba5;
  --state-blue-bg:#e9f1ff;
  --focus:#737373;
  --shadow:0 24px 80px #00000026;
  font-family:Inter,ui-sans-serif,system-ui,-apple-system,"Segoe UI",sans-serif;
  font-size:14px;
  line-height:1.5;
  background:var(--bg);
  color:var(--fg)
}
@media(prefers-color-scheme:dark) {
  :root:not([data-theme="light"]) {
    color-scheme:dark;
    --bg:#101010;
    --surface:#181818;
    --soft:#222222;
    --fg:#f5f5f5;
    --muted:#ababab;
    --border:#383838;
    --accent:#f5f5f5;
    --hover:#d4d4d4;
    --tint:#292929;
    --danger:#ff9bab;
    --danger-bg:#3c2530;
    --state-green:#8ee0aa;
    --state-green-bg:#183b27;
    --state-amber:#f4cf79;
    --state-amber-bg:#3e3219;
    --state-blue:#9bc8ff;
    --state-blue-bg:#203449;
    --focus:#b5b5b5;
    --shadow:0 24px 80px #0008
  }
}
:root[data-theme="dark"] {
  color-scheme:dark;
  --bg:#101010;
  --surface:#181818;
  --soft:#222222;
  --fg:#f5f5f5;
  --muted:#ababab;
  --border:#383838;
  --accent:#f5f5f5;
  --hover:#d4d4d4;
  --tint:#292929;
  --danger:#ff9bab;
  --danger-bg:#3c2530;
  --state-green:#8ee0aa;
  --state-green-bg:#183b27;
  --state-amber:#f4cf79;
  --state-amber-bg:#3e3219;
  --state-blue:#9bc8ff;
  --state-blue-bg:#203449;
  --focus:#b5b5b5;
  --shadow:0 24px 80px #0008
}
* {
  box-sizing:border-box
}
body {
  margin:0
}
button,input,textarea,select {
  font:inherit;
  color:inherit;
  border:1px solid var(--border);
  border-radius:7px;
  background:var(--surface);
  padding:9px 12px;
  min-height:40px
}
button,a,summary,select,input[type=checkbox],input[type=radio] {
  cursor:pointer
}
button {
  font-weight:550
}
button:hover:enabled {
  border-color:var(--accent);
  background:var(--tint)
}
button:active:enabled {
  transform:translateY(1px)
}
button:disabled {
  opacity:.48;
  cursor:not-allowed
}
button.primary {
  background:var(--accent);
  color:var(--surface);
  border-color:var(--accent)
}
button.primary:hover:enabled {
  background:var(--hover)
}
button.danger {
  color:var(--danger);
  border-color:var(--danger)
}
button.danger:hover:enabled {
  background:var(--danger-bg)
}
button.quiet {
  background:transparent
}
a {
  color:var(--accent);
  text-underline-offset:3px
}
a:hover {
  text-decoration-thickness:2px
}
:focus-visible {
  outline:3px solid var(--focus);
  outline-offset:3px
}
input,textarea {
  width:100%;
  min-width:0
}
input::placeholder,textarea::placeholder {
  color:var(--muted);
  opacity:.85
}
textarea {
  resize:vertical
}
input[type=checkbox],input[type=radio] {
  width:18px;
  height:18px;
  min-height:18px;
  accent-color:var(--accent);
  margin:0;
  flex-shrink:0
}
h1,h2,h3,p {
  margin:0
}
h1 {
  font-size:24px;
  font-weight:650;
  letter-spacing:-.025em
}
h2 {
  font-size:17px;
  font-weight:650;
  letter-spacing:-.015em
}
h3 {
  font-size:15px;
  font-weight:600
}
p {
  overflow-wrap:anywhere
}
label {
  display:flex;
  flex-direction:column;
  gap:7px;
  font-weight:550
}
label small {
  font-weight:400
}
fieldset {
  border:0;
  padding:0;
  margin:0;
  min-width:0
}
small,.hint {
  font-size:12px;
  line-height:1.65;
  color:var(--muted)
}
.muted {
  color:var(--muted)
}
.error {
  color:var(--danger)
}
.error:empty,.form-status:empty {
  display:none
}
.error:not(:empty) {
  margin-top:14px
}
.mono,.code {
  font-family:ui-monospace,SFMono-Regular,Consolas,monospace;
  font-size:12px
}
.wrap {
  overflow-wrap:anywhere
}
.sr-only {
  position:absolute;
  width:1px;
  height:1px;
  padding:0;
  margin:-1px;
  overflow:hidden;
  clip:rect(0,0,0,0);
  white-space:nowrap;
  border:0
}
[hidden] {
  display:none!important
}
.skip-link {
  position:fixed;
  top:-80px;
  left:16px;
  z-index:10;
  padding:12px;
  background:var(--surface)
}
.skip-link:focus {
  top:8px
}
.sync-control,.row-actions,.form-actions {
  display:flex;
  gap:10px;
  align-items:center;
  flex-wrap:wrap
}
main {
  width:100%;
  outline:none
}
/* Style the menu itself while retaining select semantics and keyboard behavior. */
@supports (appearance:base-select) {
  select,select::picker(select) {
    appearance:base-select
  }
  select {
    align-items:center;
    gap:18px
  }
  select:hover:enabled,select:open {
    border-color:var(--accent)
  }
  select::picker-icon {
    content:"";
    width:8px;
    height:8px;
    margin-left:auto;
    margin-right:2px;
    margin-top:-4px;
    border-right:1.5px solid currentColor;
    border-bottom:1.5px solid currentColor;
    rotate:45deg;
    color:var(--muted)
  }
  select:open::picker-icon {
    rotate:225deg;
    margin-top:4px
  }
  select::picker(select) {
    inset:auto;
    top:calc(anchor(bottom) + 6px);
    left:anchor(left);
    position-try-fallbacks:flip-block,flip-inline;
    position-try-order:normal;
    min-width:anchor-size(width);
    max-width:calc(100vw - 24px);
    max-height:min(320px,70dvh);
    overflow-y:auto;
    overscroll-behavior:contain;
    margin:0;
    padding:4px;
    border:1px solid var(--border);
    border-radius:8px;
    background:var(--surface);
    color:var(--fg);
    font:inherit;
    box-shadow:0 8px 24px #0003
  }
  select option {
    display:flex;
    align-items:center;
    gap:18px;
    min-height:40px;
    padding:9px 12px;
    border-radius:4px;
    background:var(--surface);
    color:var(--fg);
    font:inherit;
    font-weight:450;
    white-space:normal;
    cursor:pointer
  }
  select option:checked {
    background:var(--tint);
    font-weight:600
  }
  select option:hover,select option:focus-visible {
    background:var(--tint)
  }
  select option:focus-visible {
    outline:2px solid var(--focus);
    outline-offset:-2px
  }
  select option::checkmark {
    content:"✓";
    order:1;
    margin-left:auto;
    color:var(--fg)
  }
}
#workspace {
  --sidebar-width:208px;
  display:grid;
  grid-template-columns:var(--sidebar-width) minmax(0,1fr);
  min-height:100dvh
}
#workspace[data-sidebar=collapsed] {
  --sidebar-width:72px
}
.workspace-content {
  width:100%;
  max-width:1376px;
  min-width:0;
  margin:0 auto;
  padding:0 28px
}
.sidebar {
  position:sticky;
  top:0;
  height:100dvh;
  overflow-y:auto;
  background:var(--surface);
  border-right:1px solid var(--border);
  padding:16px 12px
}
.sidebar-header {
  display:flex;
  align-items:center;
  justify-content:space-between;
  margin-bottom:24px
}
.brand-icon {
  display:flex;
  align-items:center;
  justify-content:center;
  width:44px;
  height:44px;
  flex-shrink:0;
  border-radius:7px
}
.brand-icon img,.mobile-navigation img {
  display:block;
  width:32px;
  height:32px;
  border-radius:7px
}
.brand-icon:hover {
  background:var(--tint)
}
.icon-button {
  width:44px;
  height:44px;
  padding:11px
}
.icon-button svg,.mobile-navigation svg,nav svg {
  width:20px;
  height:20px;
  flex-shrink:0;
  fill:none;
  stroke:currentColor;
  stroke-width:1.6;
  stroke-linecap:round;
  stroke-linejoin:round
}
.icon-button svg {
  display:block
}
#workspace[data-sidebar=collapsed] .sidebar-header {
  flex-direction:column;
  gap:8px
}
#workspace[data-sidebar=collapsed] .icon-button svg {
  transform:scaleX(-1)
}
#workspace[data-sidebar=collapsed] .nav-label {
  display:none
}
#workspace[data-sidebar=collapsed] nav a {
  justify-content:center;
  padding:12px
}
#workspace[data-sidebar=collapsed] .count {
  position:absolute;
  top:2px;
  right:0;
  font-size:10px;
  min-width:16px;
  padding:0 3px
}
.mobile-navigation {
  display:none
}
.login-panel {
  width:calc(100% - 36px);
  max-width:320px;
  margin:0 auto;
  min-height:100dvh;
  display:grid;
  align-content:center;
  padding:32px 0
}
.login-panel form {
  display:grid;
  gap:12px
}
.login-panel .error:empty {
  display:none
}
.workspace-bar {
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap:16px;
  min-height:77px;
  border-bottom:1px solid var(--border);
  margin-bottom:30px
}
nav {
  display:flex;
  flex-direction:column;
  gap:6px
}
nav a {
  position:relative;
  color:var(--muted);
  font-weight:600;
  display:flex;
  align-items:center;
  gap:12px;
  min-height:46px;
  padding:12px;
  text-decoration:none;
  border:1px solid transparent;
  border-radius:7px
}
nav a:hover {
  background:var(--soft);
  color:var(--fg)
}
nav a[aria-current=page] {
  color:var(--fg);
  background:var(--tint);
  border-color:var(--border)
}
nav .nav-label {
  flex:1;
  min-width:0
}
.count {
  font-size:11px;
  min-width:20px;
  text-align:center;
  background:var(--tint);
  color:var(--accent);
  border-radius:4px;
  padding:1px 5px
}
.sync-control {
  margin-left:auto;
  color:var(--muted);
  font-size:11px
}
.sync-control button {
  min-height:32px;
  padding:5px 10px;
  font-size:12px
}
.metrics {
  display:grid;
  grid-template-columns:repeat(4,minmax(0,1fr));
  padding:22px 0 28px;
  gap:24px
}
.metrics>div {
  padding-left:24px;
  border-left:1px solid var(--border);
  display:flex;
  flex-direction:column;
  align-items:flex-start;
  gap:6px;
  min-width:0
}
.metrics>div:first-child {
  border-left:0;
  padding-left:0
}
.metrics span {
  color:var(--muted);
  font-size:12px
}
.metrics strong {
  font-size:30px;
  font-weight:600;
  letter-spacing:-.04em;
  line-height:1.25;
  font-variant-numeric:tabular-nums;
  overflow-wrap:anywhere;
  max-width:100%
}
.metrics a {
  font-size:12px
}
.section-toolbar {
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:20px;
  margin:8px 0 18px
}
.section-toolbar p {
  margin-top:4px
}
.surface {
  background:var(--surface);
  border:1px solid var(--border);
  border-radius:12px;
  min-width:0
}
.filter-bar {
  display:flex;
  align-items:center;
  gap:12px;
  flex-wrap:wrap;
  padding:18px 20px;
  border-bottom:1px solid var(--border)
}
.filter-bar .search {
  width:min(340px,100%)
}
.filter-bar input,.filter-bar select,.filter-bar button {
  min-height:38px;
  font-size:13px
}
.filter-bar button {
  margin-left:auto
}
.table-wrap {
  overflow-x:auto;
  width:100%
}
table {
  border-collapse:collapse;
  width:100%;
  font-size:13px;
  text-align:left
}
th {
  color:var(--muted);
  font-size:11px;
  font-weight:600;
  text-transform:uppercase;
  letter-spacing:.045em;
  background:var(--soft);
  white-space:nowrap
}
th,td {
  padding:16px 20px;
  border-bottom:1px solid var(--border)
}
td {
  vertical-align:top;
  min-width:100px;
  overflow-wrap:anywhere
}
td:first-child {
  min-width:210px;
  max-width:330px
}
td:last-child {
  min-width:205px
}
tbody tr:last-child td {
  border-bottom:0
}
tbody tr:hover {
  background:var(--soft)
}
.numeric {
  text-align:right;
  font-variant-numeric:tabular-nums
}
.cell-title {
  font-weight:600;
  display:block;
  margin-bottom:4px
}
.sub {
  display:block;
  font-size:11px;
  color:var(--muted);
  margin-top:5px
}
.state {
  display:inline-flex;
  align-items:center;
  gap:6px;
  padding:3px 9px;
  border-radius:999px;
  background:var(--tint);
  color:var(--muted);
  font-size:12px;
  font-weight:600;
  white-space:nowrap
}
.state::before {
  content:"";
  width:6px;
  height:6px;
  flex-shrink:0;
  border-radius:50%;
  background:currentColor
}
.state-running,.state-approved {
  color:var(--state-green);
  background:var(--state-green-bg)
}
.state-paused,.state-pending {
  color:var(--state-amber);
  background:var(--state-amber-bg)
}
.state-completed,.state-invited {
  color:var(--state-blue);
  background:var(--state-blue-bg)
}
.state-canceled,.state-rejected,.state-revoked {
  color:var(--danger);
  background:var(--danger-bg)
}
.row-actions {
  gap:6px
}
.row-actions button {
  font-size:12px;
  padding:6px 9px;
  min-height:34px
}
progress {
  display:block;
  height:5px;
  width:140px;
  max-width:100%;
  margin-top:9px;
  border:0;
  border-radius:4px;
  background:var(--border);
  accent-color:var(--accent)
}
progress::-webkit-progress-bar {
  background:var(--border);
  border-radius:4px
}
progress::-webkit-progress-value {
  background:var(--accent);
  border-radius:4px
}
.empty {
  padding:44px 24px;
  text-align:center;
  color:var(--muted)
}
.empty h3 {
  color:var(--fg);
  margin-bottom:7px
}
.pagination {
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap:16px;
  padding:16px 20px;
  border-top:1px solid var(--border);
  color:var(--muted);
  font-size:12px;
  flex-wrap:wrap
}
.pagination>div,.page-jump {
  display:flex;
  align-items:center;
  gap:8px
}
.pagination button,.page-jump input {
  min-height:34px;
  font-size:12px;
  padding:6px 9px
}
.page-jump input {
  width:58px
}
.pagination p {
  font-variant-numeric:tabular-nums
}
.notice,.callout {
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap:20px;
  background:var(--tint);
  border:1px solid var(--border);
  border-radius:8px;
  padding:14px 18px;
  margin-bottom:20px
}
.notice.failure {
  color:var(--danger);
  background:var(--danger-bg)
}
.notice button,.callout button {
  flex-shrink:0
}
.section-note {
  margin-top:16px;
  max-width:850px
}
.workspace-footer {
  display:flex;
  justify-content:space-between;
  gap:16px;
  padding:30px 0;
  font-size:11px;
  color:var(--muted);
  flex-wrap:wrap
}
.settings-grid {
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:24px
}
.setting {
  padding:24px
}
.preferences,.session-setting {
  display:flex;
  align-items:center;
  justify-content:space-between;
  flex-wrap:wrap;
  gap:24px
}
.preferences>label {
  min-width:180px
}
.session-setting .hint {
  margin:0
}
.session-setting button {
  flex-shrink:0
}
.setting h2 {
  margin-bottom:8px
}
.setting form {
  margin-top:24px
}
.setting input[type=number] {
  max-width:240px;
  margin-top:8px
}
.setting .hint {
  margin:12px 0 20px
}
.form-actions {
  margin-top:20px
}
.form-status {
  margin-top:12px;
  font-size:12px
}
.wide {
  grid-column:1/-1
}
.downloads {
  display:flex;
  flex-wrap:wrap;
  gap:12px;
  margin-top:16px
}
.download {
  padding:14px 18px;
  border:1px solid var(--border);
  border-radius:8px;
  text-decoration:none;
  min-width:200px
}
.download:hover {
  border-color:var(--accent)
}
.download small {
  display:block;
  margin-top:4px
}
dialog {
  width:min(480px,calc(100% - 32px));
  max-height:calc(100dvh - 40px);
  border:1px solid var(--border);
  border-radius:14px;
  background:var(--surface);
  color:var(--fg);
  box-shadow:var(--shadow);
  padding:28px;
  overflow-y:auto;
  overscroll-behavior:contain
}
dialog::backdrop {
  background:#00000099
}
.dialog-wide {
  width:min(690px,calc(100% - 32px))
}
.performance-strip {
  display:flex;
  align-items:center;
  flex-wrap:wrap;
  gap:12px 28px;
  padding:14px 0 24px;
  border-top:1px solid var(--border);
  color:var(--muted);
  font-size:12px
}
.performance-strip strong {
  color:var(--fg);
  font-variant-numeric:tabular-nums
}
.performance-strip small {
  margin-left:auto
}
.table-link {
  display:inline-flex;
  align-items:center;
  min-height:34px;
  padding:6px 9px;
  font-size:12px;
  border:1px solid var(--border);
  border-radius:7px;
  text-decoration:none
}
.table-link:hover {
  background:var(--tint)
}
.detail-progress {
  margin-top:24px
}
.detail-progress progress {
  width:100%;
  height:7px;
  margin-top:12px
}
.configuration-list {
  display:grid;
  grid-template-columns:minmax(120px,180px) minmax(0,1fr);
  gap:12px 24px;
  padding:16px 0;
  margin:0;
  font-size:13px
}
.configuration-list dt {
  color:var(--muted)
}
.configuration-list dd {
  margin:0;
  overflow-wrap:anywhere
}
.detail-section-heading {
  margin-top:32px;
  margin-bottom:16px
}
.download-actions {
  display:flex;
  gap:16px;
  flex-wrap:wrap;
  font-size:12px
}
.download-actions a {
  padding:10px 0
}
.result-message {
  padding:0 20px 16px
}
#detail-results td:nth-child(2) {
  white-space:nowrap
}
#detail-results td:nth-child(3) {
  min-width:180px;
  max-width:360px
}
#agent-settings-fields label:not(:first-child) {
  margin-top:18px
}
#agent-settings-fields input {
  margin-top:8px
}
#agent-settings-fields .hint {
  margin-top:12px
}
#upgrade-command {
  margin-top:12px
}
.navigation-drawer {
  margin:0;
  width:min(280px,calc(100% - 40px));
  height:100dvh;
  max-height:100dvh;
  border:0;
  border-right:1px solid var(--border);
  border-radius:0;
  padding:18px 14px
}
.drawer-header {
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap:12px;
  margin-bottom:24px
}
.drawer-header h2 {
  font-size:16px
}
.dialog-results {
  width:min(1060px,calc(100% - 32px))
}
.dialog-heading {
  display:flex;
  justify-content:space-between;
  align-items:flex-start;
  gap:20px;
  margin-bottom:24px
}
.dialog-heading h2 {
  font-size:21px
}
.dialog-heading p {
  margin-top:5px;
  font-size:13px
}
.dialog-heading>button {
  flex-shrink:0
}
.dialog-footer {
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:16px;
  border-top:1px solid var(--border);
  padding-top:20px;
  margin-top:24px
}
.form-grid {
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:18px
}
.checkbox {
  flex-direction:row;
  align-items:center;
  gap:10px;
  margin:20px 0 12px;
  font-weight:450
}
details {
  margin-top:22px
}
summary {
  font-weight:550;
  padding:10px 0
}
details .form-grid {
  margin-top:14px
}
.deploy-options {
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:12px;
  margin-bottom:24px
}
.deploy-options label {
  display:flex;
  flex-direction:row;
  align-items:flex-start;
  gap:10px;
  padding:16px;
  border:1px solid var(--border);
  border-radius:8px;
  cursor:pointer
}
.deploy-options label:has(input:checked) {
  border-color:var(--accent);
  background:var(--tint)
}
.deploy-options input {
  margin-top:3px
}
.deploy-options strong {
  display:block;
  font-size:13px
}
.deploy-options small {
  display:block;
  margin-top:5px
}
#invite-agent input {
  margin-top:8px
}
#invite-agent p,#public-setup p {
  margin:12px 0 20px
}
#install-output>p {
  margin-bottom:16px
}
#install-command {
  margin:8px 0 12px;
  background:var(--soft);
  line-height:1.75
}
.install-requirements {
  border-top:1px solid var(--border);
  padding-top:10px
}
#confirm-resource {
  background:var(--soft);
  padding:12px;
  border-radius:6px;
  margin-bottom:16px
}
.result-toolbar {
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:16px;
  margin-bottom:16px
}
.dialog-results td:last-child {
  min-width:90px
}
@media(max-width:800px) {
  #workspace {
    display:block
  }
  .workspace-content {
    padding:0 18px
  }
  .sidebar {
    display:none
  }
  .mobile-navigation {
    display:flex;
    align-items:center;
    gap:8px
  }
  .workspace-bar {
    flex-wrap:wrap;
    gap:12px;
    padding:14px 0;
    min-height:72px
  }
  .sync-control {
    justify-content:flex-end
  }
  .sync-control #freshness {
    max-width:160px
  }
  .metrics {
    grid-template-columns:repeat(2,minmax(0,1fr));
    gap:24px 16px;
    padding-top:0
  }
  .metrics>div:nth-child(3) {
    border-left:0;
    padding-left:0
  }
  .settings-grid {
    grid-template-columns:1fr
  }
  .filter-bar .search {
    width:100%
  }
  .filter-bar select {
    max-width:200px
  }
  button,.row-actions button,.pagination button,.page-jump input {
    min-height:42px
  }
  .pagination>div {
    flex-wrap:wrap
  }
  .pagination {
    align-items:flex-start
  }
}
@media(max-width:480px) {
  [data-view="detail"] .section-toolbar {
    flex-wrap:wrap
  }
  [data-view="detail"] .section-toolbar>div:first-child {
    width:100%
  }
  .configuration-list {
    grid-template-columns:1fr;
    gap:4px
  }
  .configuration-list dd {
    margin-bottom:12px
  }
  .performance-strip small {
    margin-left:0
  }
  .section-toolbar {
    gap:12px
  }
  .section-toolbar h1 {
    font-size:21px
  }
  .section-toolbar>button {
    flex-shrink:0
  }
  .metrics strong {
    font-size:27px
  }
  .form-grid,.deploy-options {
    grid-template-columns:1fr
  }
  dialog {
    padding:20px;
    max-height:calc(100dvh - 24px);
    width:calc(100% - 20px)
  }
  dialog.navigation-drawer {
    width:min(280px,calc(100% - 40px));
    height:100dvh;
    max-height:100dvh;
    padding:18px 14px
  }
  .workspace-bar .sync-control {
    width:100%;
    justify-content:space-between;
    margin-left:0
  }
  .dialog-footer {
    flex-wrap:wrap
  }
  .dialog-footer>.hint {
    width:100%
  }
  .notice,.callout {
    align-items:flex-start;
    flex-direction:column;
    gap:12px
  }
  .pagination {
    padding:14px
  }
  .pagination>div {
    gap:6px
  }
  .setting {
    padding:20px
  }
}
@media(prefers-reduced-motion:reduce) {
  *,*::before,*::after {
    scroll-behavior:auto!important;
    transition:none!important
  }
}

/* Operational workspace: consistent controls, compact summaries, and bounded results. */
.workspace-content { max-width:1600px; padding:24px 32px 40px; }
.workspace-bar { margin-bottom:20px; }
h1 { font-size:21px; }
h2 { font-size:16px; }
.section-toolbar { margin-bottom:16px; }
.metrics { padding:0; gap:0; border:1px solid var(--border); border-radius:10px; background:var(--surface); overflow:hidden; }
.metrics>div { border:0; border-right:1px solid var(--border); border-radius:0; background:none; padding:16px 20px; }
.metrics>div:first-child { padding-left:20px; }
.metrics>div:last-child { border-right:0; }
.metrics strong { font-size:27px; letter-spacing:-.02em; }
.performance-strip { padding:12px 0; gap:20px; border:0; margin:8px 0 20px; }
.surface { border-radius:10px; }
.filter-bar { gap:10px; padding:14px 16px; align-items:center; justify-content:flex-start; }
.filter-bar input,.filter-bar select,.filter-bar button { min-height:38px; }
.filter-bar .search { flex:1 1 220px; min-width:160px; max-width:440px; }
.filter-bar .page-size { margin-left:auto; flex-direction:row; align-items:center; gap:8px; font-size:12px; color:var(--muted); }
.page-size select { min-width:70px; }
table { font-variant-numeric:tabular-nums; }
th { background:var(--soft); font-size:11px; letter-spacing:.025em; color:var(--muted); font-weight:600; }
th,td { padding:12px 16px; }
tbody tr:hover { background:var(--soft); }
.detail-progress { margin:12px 0 20px; }
.detail-progress strong { font-size:14px; }
.results-heading { margin-top:24px; }
.results-table { max-height:58dvh; min-height:180px; overflow:auto; overscroll-behavior:contain; }
.results-table thead th { position:sticky; top:0; z-index:1; box-shadow:0 1px 0 var(--border); }
.results-table table { min-width:620px; }
.results-table tbody[aria-busy="true"] { opacity:.5; }
.domain-copy { padding:0; min-height:28px; border:0; background:none; font-family:ui-monospace,SFMono-Regular,Consolas,monospace; font-weight:600; color:var(--fg); border-radius:3px; }
.domain-copy:hover { color:var(--state-blue); background:none; text-decoration:underline; }
.result-status { font-size:12px; font-weight:550; }
.result-available { color:var(--state-green); }
.result-unknown { color:var(--state-amber); }
.result-registered { color:var(--muted); }
.result-detail { margin-top:4px; color:var(--danger); max-width:440px; white-space:normal; }
.result-pagination { align-items:center; padding:12px 16px; gap:12px; }
.result-pagination>p { margin-right:auto; }
.page-buttons,.page-numbers { display:flex; align-items:center; gap:4px; }
.page-numbers button { min-width:34px; padding:6px; }
.page-numbers button[aria-current="page"] { color:var(--surface); background:var(--accent); border-color:var(--accent); }
.page-numbers span { padding:0 4px; }
.page-jump label { font-size:12px; font-weight:400; white-space:nowrap; }
.page-jump input { width:64px; }
.scan-configuration { margin-top:24px; border-top:1px solid var(--border); padding-top:16px; }
.scan-configuration summary { font-size:13px; }
.configuration-list { gap:16px 24px; padding:16px 0; }
.detail-section-heading { font-size:14px; margin:20px 0 12px; }
.download-actions a { padding:5px 10px; border:1px solid var(--border); border-radius:6px; text-decoration:none; background:var(--surface); }
.empty { padding:24px 16px; font-size:13px; }
.settings-grid { gap:20px; max-width:1080px; }
.setting { padding:20px; }
.setting form { margin-top:16px; }
.setting .hint { margin:10px 0 16px; }
.notice,.callout { padding:12px 16px; }
@media(max-width:1100px) {
  .workspace-content { padding:20px; }
  .result-pagination { justify-content:space-between; }
  .result-pagination>p { width:100%; }
}
@media(max-width:800px) {
  .workspace-content { padding:16px 12px 28px; }
  .workspace-bar { margin-bottom:16px; }
  .metrics { grid-template-columns:repeat(2,minmax(0,1fr)); }
  .metrics>div,.metrics>div:first-child,.metrics>div:nth-child(3) { padding:12px 14px; }
  .metrics>div:nth-child(2) { border-right:0; }
  .metrics>div:nth-child(-n+2) { border-bottom:1px solid var(--border); }
  .metrics strong { font-size:23px; }
  .performance-strip { gap:10px 16px; font-size:12px; }
  .filter-bar { padding:12px; }
  .filter-bar .search { flex-basis:100%; max-width:none; }
  .filter-bar .page-size { margin-left:0; }
  .results-table { max-height:55dvh; }
  .result-pagination { padding:12px; }
  .result-pagination .page-jump { width:100%; justify-content:flex-end; }
  .page-numbers button { min-width:32px; }
  .result-pagination button { min-height:40px; }
  .settings-grid { grid-template-columns:1fr; }
  .setting { padding:16px; }
}

.workspace-bar { min-height:40px; border:0; margin-bottom:16px; }
.page-buttons { flex-direction:row; }
.results-table { max-height:max(180px,min(480px,calc(100dvh - 430px))); }
@media(max-width:600px) {
  .page-buttons { width:100%; justify-content:center; gap:4px; }
  .page-buttons>#detail-prev,.page-buttons>#detail-next { width:36px; min-width:36px; padding:6px; font-size:0; }
  #detail-prev::after { content:"‹"; font-size:20px; }
  #detail-next::after { content:"›"; font-size:20px; }
  .page-numbers { gap:2px; }
  .page-numbers button { padding:6px 4px; min-width:28px; }
}
