:root {
  color-scheme: light;
  --canvas: #f4f6fb;
  --surface: #fff;
  --subtle: #f8f9fe;
  --ink: #172038;
  --muted: #536179;
  --quiet: #657189;
  --line: #dfe5f0;
  --line-strong: #c8d1e2;
  --navy: #141a2e;
  --navy-raised: #232b46;
  --brand: #5149d4;
  --brand-strong: #443bbe;
  --brand-tint: #eeedff;
  --brand-line: #d9d5ff;
  --green: #146144;
  --green-bg: #e9f7ef;
  --green-line: #c5e6d4;
  --amber: #805019;
  --amber-bg: #fff4df;
  --amber-line: #f1d9ac;
  --red: #a1324a;
  --red-bg: #fff0f3;
  --red-line: #f4d0da;
  --rail-width: 14.7rem;
  --sans: Inter, "Segoe UI", ui-sans-serif, system-ui, sans-serif;
  --mono: "IBM Plex Mono", "Cascadia Mono", Consolas, monospace;
  --shadow: 0 1px 2px #18244109, 0 8px 26px #252e5210;
  font-family: var(--sans);
  font-size: 100%;
  font-synthesis: none;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
body { margin: 0; min-width: 17.5rem; min-height: 100vh; color: var(--ink); background: var(--canvas); }
a { color: inherit; }
button, input, select { font: inherit; }
button { cursor: pointer; }
button:disabled { cursor: default; }
:focus-visible { outline: 3px solid #7767f2; outline-offset: 3px; }
::selection { background: #dcdaff; color: var(--ink); }
h1, h2, h3, p { margin: 0; }
h1, h2, h3 { font-weight: 720; }
h2 { font-size: 1.2rem; line-height: 1.25; letter-spacing: -.025em; }
h3 { font-size: 1.02rem; line-height: 1.35; letter-spacing: -.015em; }

.skip-link {
  position: fixed;
  z-index: 30;
  top: .5rem;
  left: .5rem;
  transform: translateY(-160%);
  padding: .65rem 1rem;
  border-radius: .65rem;
  background: #fff;
  font-weight: 650;
}
.skip-link:focus { transform: none; }
.shell { min-height: 100vh; }
.rail {
  position: fixed;
  inset: 0 auto 0 0;
  z-index: 10;
  width: var(--rail-width);
  display: flex;
  flex-direction: column;
  padding: 1.55rem 1.08rem 1.12rem;
  color: #e7eaf7;
  background: var(--navy);
}
.brand {
  display: flex;
  align-items: center;
  gap: .68rem;
  margin: 0 .4rem 2.28rem;
  color: #fff;
  text-decoration: none;
  width: fit-content;
}
.brand-tile, .overview-project-icon {
  display: grid;
  place-items: center;
  width: 2.8rem;
  height: 2.8rem;
  flex: 0 0 auto;
  border: 1px solid #5e5d9c;
  border-radius: .86rem;
  background: #282c52;
}
.brand-mark { display: block; width: 2.25rem; height: 2.25rem; object-fit: contain; }
.wordmark { font-size: 1.44rem; line-height: 1; font-weight: 760; letter-spacing: -.055em; }
.nav-links { display: grid; gap: .35rem; }
.nav-link {
  min-height: 2.85rem;
  position: relative;
  display: flex;
  align-items: center;
  gap: .76rem;
  padding: .62rem .8rem;
  border: 1px solid transparent;
  border-radius: .7rem;
  color: #bec7df;
  font-size: .91rem;
  font-weight: 610;
  text-decoration: none;
  transition: color .16s ease, background .16s ease, border-color .16s ease;
}
.nav-link:hover { color: #fff; background: #202841; }
.nav-link.active { color: #fff; background: #30345c; border-color: #424977; }
.nav-link.active .nav-icon { color: #b8b1ff; }

.nav-icon {
  position: relative;
  width: 1.1rem;
  height: 1.1rem;
  display: inline-block;
  flex: 0 0 auto;
  color: #a9b7d7;
}
.nav-icon::before, .nav-icon::after { position: absolute; content: ""; }
.nav-overview::before {
  inset: .12rem; border: 1.5px solid currentColor; border-radius: .18rem;
  background: linear-gradient(90deg, transparent 43%, currentColor 43% 55%, transparent 55%), linear-gradient(0deg, transparent 43%, currentColor 43% 55%, transparent 55%);
}
.nav-projects::before {
  inset: .32rem .09rem .12rem; border: 1.5px solid currentColor; border-radius: .16rem;
}
.nav-projects::after {
  top: .16rem; left: .12rem; width: .42rem; height: .18rem; border: 1.5px solid currentColor; border-bottom: 0; border-radius: .15rem .12rem 0 0;
}
.nav-domains::before {
  inset: .07rem; border: 1.5px solid currentColor; border-radius: 50%;
  background: linear-gradient(0deg, transparent 45%, currentColor 45% 55%, transparent 55%);
}
.nav-domains::after { inset: .1rem .36rem; border: 1px solid currentColor; border-radius: 50%; }
.nav-activity::before { inset: .1rem; border: 1.5px solid currentColor; border-radius: 50%; }
.nav-activity::after { inset: .31rem .28rem .5rem .5rem; border-bottom: 1.5px solid currentColor; border-left: 1.5px solid currentColor; border-radius: 0 0 0 .07rem; }
.rail-spacer { flex: 1; min-height: 1rem; }
.rail-foot {
  display: flex;
  align-items: center;
  gap: .7rem;
  padding: .88rem .42rem;
  border-bottom: 1px solid #303954;
  min-width: 0;
}
.rail-foot > div:last-child { min-width: 0; }
.rail-foot strong, .rail-foot small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rail-foot strong { color: #eef0fa; font-size: .85rem; font-weight: 650; }
.rail-foot small { margin-top: .2rem; color: #a8b5d3; font-size: .77rem; text-transform: capitalize; }
.account-foot { border: 0; padding-bottom: .22rem; }
.connection-icon, .avatar {
  width: 2rem;
  height: 2rem;
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  border-radius: .52rem;
  background: #282f4a;
}
.connection-icon span, .online-dot { width: .52rem; height: .52rem; flex: 0 0 auto; border-radius: 50%; }
.connection-icon span { background: #a9a4ff; box-shadow: 0 0 0 .24rem #aaa5ff21; }
.avatar { color: #e8e5ff; font-size: .85rem; font-weight: 690; }

.main { min-width: 0; margin-left: var(--rail-width); outline: none; }
.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 4.35rem;
  padding: .6rem clamp(1rem, 3.1vw, 3rem);
  background: var(--surface);
  border-bottom: 1px solid var(--line);
}
.crumb, .topbar-right { display: flex; align-items: center; gap: .65rem; }
.crumb { font-size: .875rem; color: var(--muted); }
.crumb strong { color: var(--ink); font-weight: 650; }
.crumb-sep { color: #8996ab; }
.top-status {
  display: inline-flex;
  align-items: center;
  gap: .47rem;
  min-height: 2rem;
  border-radius: 1rem;
  border: 1px solid var(--line);
  padding: .2rem .68rem;
  font-size: .81rem;
  font-weight: 650;
  white-space: nowrap;
  color: var(--muted);
  background: var(--subtle);
}
.top-status .online-dot { background: #8794ab; }
body[data-preview="true"] .top-status { color: var(--brand-strong); background: var(--brand-tint); border-color: var(--brand-line); }
body[data-preview="true"] .online-dot { background: #7460e7; }
.icon-button {
  width: 2.25rem;
  height: 2.25rem;
  display: inline-grid;
  place-items: center;
  border-radius: .59rem;
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--muted);
  font-size: 1.23rem;
  line-height: 1;
  transition: color .15s ease, background .15s ease, border-color .15s ease;
}
.icon-button:hover:not(:disabled) { color: var(--brand-strong); background: var(--brand-tint); border-color: var(--brand-line); }
.icon-button:disabled { opacity: .5; }

.workspace-content {
  display: grid;
  gap: 1.3rem;
  max-width: 92rem;
  margin-inline: auto;
  padding: 1.9rem clamp(1rem, 3.1vw, 3rem) 3rem;
}
.page-intro {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.45rem;
  min-width: 0;
  padding: .2rem 0 .38rem;
}
.page-heading { position: relative; z-index: 1; min-width: 0; }
.page-intro h1 { margin-bottom: .52rem; font-size: clamp(2rem, 3.3vw, 2.75rem); line-height: 1.07; letter-spacing: -.055em; }
.page-intro p { color: var(--muted); line-height: 1.48; max-width: 42ch; }
body[data-view="overview"] .page-intro {
  min-height: 10.9rem;
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding: clamp(1.35rem, 3vw, 2.25rem);
  color: #fff;
  border-radius: 1rem;
  border: 1px solid #333b6a;
  background: linear-gradient(110deg, #192446 0%, #282954 63%, #393465 100%);
  box-shadow: var(--shadow);
}
body[data-view="overview"] .page-intro::after {
  position: absolute;
  z-index: -1;
  inset: 0 0 0 30%;
  content: "";
  background-image: radial-gradient(#a4a6ff66 .8px, transparent .8px);
  background-size: 1rem 1rem;
  mask-image: linear-gradient(115deg, transparent, #000);
  opacity: .55;
}
body[data-view="overview"] .page-intro p { color: #d3daf6; }
.overview-project {
  display: flex;
  align-items: flex-start;
  gap: .82rem;
  min-width: 13.25rem;
  max-width: 23rem;
  padding: .85rem 1rem;
  border: 1px solid #7476aa;
  border-radius: .8rem;
  background: #232b4fd9;
  text-decoration: none;
  transition: background .16s ease, border-color .16s ease;
}
.overview-project:hover { border-color: #a9a4ff; background: #313861; }
.overview-project-icon { width: 2.1rem; height: 2.1rem; border-radius: .58rem; }
.overview-project-icon .nav-icon { color: #c4bdff; }
.overview-project-label, #featured-project-state { display: block; color: #c9d2f1; font-size: .79rem; line-height: 1.45; }
#featured-project-name { display: block; margin-block: .12rem; line-height: 1.28; overflow-wrap: anywhere; }

.metric-grid, .detail-grid, .bottom-grid, .domains-workspace { min-width: 0; display: grid; align-items: start; gap: 1.2rem; }
.metric-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.metric-card {
  min-width: 0;
  min-height: 6.35rem;
  display: grid;
  align-content: start;
  gap: .34rem;
  padding: .94rem 1.08rem;
  border-radius: .86rem;
  border: 1px solid var(--line);
  background: var(--surface);
  box-shadow: 0 1px 2px #18244107;
}
.stat-label { color: var(--muted); font-size: .86rem; font-weight: 640; }
.metric-card strong { font-size: 1.66rem; line-height: 1.06; letter-spacing: -.045em; }
.metric-caption { font-size: .78rem; color: var(--quiet); }
.detail-grid { grid-template-columns: minmax(0, 1.85fr) minmax(14rem, 1fr); }
.bottom-grid { grid-template-columns: minmax(0, 1.7fr) minmax(14rem, 1fr); }
.domains-workspace { grid-template-columns: minmax(0, 1.2fr) minmax(15.5rem, 1fr); }
[data-views]:not([hidden]) { animation: reveal .23s ease-out both; }
@keyframes reveal { from { opacity: .3; transform: translateY(.22rem); } to { opacity: 1; transform: none; } }

.panel {
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: .9rem;
  background: var(--surface);
  box-shadow: var(--shadow);
}
.section-head, .subhead {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .85rem;
}
.section-head { padding: 1.17rem 1.3rem; }
.section-head > div, .subhead > div { min-width: 0; }
.section-description, .repo-line { margin-top: .4rem; color: var(--muted); font-size: .89rem; line-height: 1.48; overflow-wrap: anywhere; }
.count-badge {
  min-width: 1.45rem;
  min-height: 1.45rem;
  display: inline-grid;
  place-items: center;
  vertical-align: .08rem;
  margin-left: .2rem;
  padding: .12rem .33rem;
  border-radius: .48rem;
  border: 1px solid var(--brand-line);
  background: var(--brand-tint);
  color: var(--brand-strong);
  font-size: .77rem;
  font-weight: 680;
}
.button {
  min-height: 2.52rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .43rem;
  padding: .5rem .84rem;
  border: 1px solid transparent;
  border-radius: .6rem;
  font-size: .875rem;
  font-weight: 650;
  line-height: 1.22;
  text-align: center;
  transition: background .15s ease, border-color .15s ease, color .15s ease, transform .15s ease;
}
.button:active:not(:disabled) { transform: translateY(1px); }
.button:disabled { color: #647188; background: #edf0f6; border-color: #dfe5ef; box-shadow: none; }
.button-primary { color: #fff; background: var(--brand); border-color: var(--brand); box-shadow: 0 1px 2px #30259033; }
.button-primary:hover:not(:disabled) { background: var(--brand-strong); border-color: var(--brand-strong); }
.button-secondary { color: var(--ink); background: #fff; border-color: var(--line-strong); }
.button-secondary:hover:not(:disabled) { color: var(--brand-strong); background: var(--brand-tint); border-color: var(--brand-line); }
.button-danger { color: #fff; background: #a83550; border-color: #a83550; }
.button-danger:hover:not(:disabled) { background: #912b43; border-color: #912b43; }
.button-small { min-height: 2.21rem; padding: .43rem .67rem; font-size: .81rem; }
.button-plus { font-size: 1.08rem; line-height: .8; }
.button-wide { width: 100%; }

.table-wrap { overflow-x: auto; }
.project-table { width: 100%; min-width: 34rem; border-collapse: collapse; text-align: left; }
.project-table th {
  padding: .67rem 1.28rem;
  background: var(--subtle);
  color: var(--muted);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  font-size: .81rem;
  font-weight: 660;
}
.project-table td { padding: .74rem 1.28rem; border-bottom: 1px solid var(--line); font-size: .875rem; }
.project-table tbody tr { cursor: pointer; transition: background .15s ease; }
.project-table tbody tr:hover { background: #faf9ff; }
.project-table tbody tr[aria-selected="true"] { background: #f3f1ff; box-shadow: inset 3px 0 var(--brand); }
.project-table tbody tr:focus-visible { outline-offset: -3px; }
.project-table tbody tr:last-child td { border-bottom: 0; }
.project-name { display: flex; align-items: center; gap: .65rem; min-width: 9rem; font-weight: 680; }
.project-symbol, .activity-dot {
  display: grid;
  place-items: center;
  width: 2rem;
  height: 2rem;
  flex: 0 0 auto;
  border: 1px solid var(--brand-line);
  border-radius: .55rem;
  background: var(--brand-tint);
  color: var(--brand-strong);
  font-size: .83rem;
  font-weight: 700;
}
.project-sub, .source-branch { display: block; margin-top: .22rem; color: var(--quiet); font-size: .77rem; font-weight: 490; }
.source-cell { overflow-wrap: anywhere; }
.source-branch { font-family: var(--mono); }
.preset-tag { padding: .24rem .44rem; color: #4e5780; border: 1px solid var(--line); border-radius: .35rem; background: var(--subtle); font-size: .74rem; font-weight: 640; text-transform: uppercase; }
.state-pill {
  width: fit-content;
  display: inline-flex;
  align-items: center;
  gap: .37rem;
  padding: .29rem .54rem;
  border: 1px solid var(--line);
  border-radius: 1rem;
  color: var(--muted);
  background: var(--subtle);
  font-size: .76rem;
  font-weight: 660;
  line-height: 1.12;
}
.state-pill::before { width: .37rem; height: .37rem; flex: 0 0 auto; border-radius: 50%; background: currentColor; content: ""; }
.state-good { color: var(--green); background: var(--green-bg); border-color: var(--green-line); }
.state-warn { color: var(--amber); background: var(--amber-bg); border-color: var(--amber-line); }
.state-bad { color: var(--red); background: var(--red-bg); border-color: var(--red-line); }
.panel-foot { min-height: 2.25rem; display: flex; align-items: center; justify-content: flex-end; padding: .55rem 1.3rem; border-top: 1px solid var(--line); }
.muted { color: var(--quiet); font-size: .825rem; }
.empty-state { display: grid; justify-items: start; gap: .66rem; padding: 1.4rem 1.3rem; }
.empty-state p, .release-empty, .traffic-empty, .empty-line { color: var(--muted); font-size: .89rem; line-height: 1.5; }
.notice, .form-error { padding: .7rem .85rem; border: 1px solid var(--line-strong); border-radius: .58rem; background: var(--subtle); color: var(--muted); font-size: .875rem; line-height: 1.45; }
.notice-error, .form-error { color: var(--red); border-color: var(--red-line); background: var(--red-bg); }

.project-meta { display: flex; flex-wrap: wrap; gap: .47rem .66rem; padding: 0 1.3rem 1rem; }
.meta-item { min-width: 0; padding: .37rem .54rem; border: 1px solid var(--line); border-radius: .4rem; background: var(--subtle); }
.meta-label { display: inline-block; margin-right: .36rem; color: var(--quiet); font-size: .72rem; font-weight: 680; }
.meta-value { overflow-wrap: anywhere; font: .78rem/1.4 var(--mono); }
.subhead { padding: .8rem 1.3rem .7rem; border-top: 1px solid var(--line); }
.release-list { display: grid; gap: .67rem; padding: 0 1.3rem 1.2rem; }
.release-card { min-width: 0; padding: .88rem; border: 1px solid var(--line); border-radius: .68rem; background: #fff; }
.release-card.is-active { border-color: #cdd8f2; background: #f9fbff; }
.release-top { display: flex; justify-content: space-between; align-items: flex-start; gap: .75rem; flex-wrap: wrap; }
.release-id { min-width: 0; flex: 1; }
.release-title { display: flex; gap: .5rem; align-items: center; flex-wrap: wrap; font-size: .92rem; font-weight: 700; }
.release-commit { display: block; margin-top: .3rem; color: var(--quiet); font: .76rem/1.35 var(--mono); overflow-wrap: anywhere; }
.release-actions { display: flex; flex-wrap: wrap; gap: .35rem; }
.release-status-line { display: flex; gap: .55rem; align-items: center; flex-wrap: wrap; margin-top: .66rem; }
.release-time { color: var(--quiet); font-size: .78rem; }
.release-message { margin-top: .57rem; color: var(--muted); font-size: .82rem; line-height: 1.5; }
.release-audit { margin-top: .7rem; padding-top: .57rem; border-top: 1px solid var(--line); }
.release-audit summary { width: fit-content; padding: .18rem .12rem; cursor: pointer; color: var(--brand-strong); font-size: .82rem; font-weight: 650; }
.release-detail { display: grid; gap: .67rem; margin-top: .58rem; }
.release-digest, .stage-pair > div { min-width: 0; padding: .54rem .61rem; border: 1px solid var(--line); border-radius: .48rem; background: var(--subtle); }
.digest-label, .stage-index { display: block; color: var(--quiet); margin-bottom: .24rem; font-size: .74rem; font-weight: 660; overflow-wrap: anywhere; }
.digest-value, .stage-pair code { font: .77rem/1.43 var(--mono); color: var(--ink); overflow-wrap: anywhere; }
.stage-pair { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .53rem; }
.release-build-link, .domain-result a { color: var(--brand-strong); font-size: .85rem; font-weight: 650; text-underline-offset: .16rem; }
.release-build-link { display: inline-block; margin-top: .56rem; }
.prepare-hosting { display: flex; justify-content: space-between; align-items: center; gap: .73rem; margin: 0 1.3rem 1rem; padding: .8rem; border: 1px solid var(--brand-line); border-radius: .65rem; background: var(--brand-tint); }

.traffic-content { padding: 0 1.3rem 1rem; }
.traffic-active, .traffic-generation { display: flex; justify-content: space-between; align-items: center; gap: .5rem; }
.traffic-active { font-size: .9rem; }
.traffic-active > span { color: var(--muted); text-transform: capitalize; }
.traffic-active strong { font-family: var(--mono); font-size: .9rem; }
.traffic-split { display: grid; gap: .58rem; margin-block: .98rem; }
.split-row { min-width: 0; display: grid; align-items: center; grid-template-columns: minmax(3.3rem, .8fr) minmax(1.5rem, 1fr) auto; gap: .5rem; font-size: .79rem; }
.split-track { height: .48rem; overflow: hidden; border-radius: 1rem; background: #e8edf6; }
.split-track > span { display: block; height: 100%; background: #6559dd; border-radius: inherit; }
.split-row.preview .split-track > span { background: #199574; }
.split-pct { color: var(--ink); font: .75rem/1.35 var(--mono); font-weight: 660; }
.traffic-generation { padding-top: .7rem; border-top: 1px solid var(--line); color: var(--quiet); font-size: .79rem; }
.traffic-receipt { margin-top: .65rem; padding: .63rem; border: 1px solid var(--line); border-radius: .52rem; background: var(--subtle); color: var(--muted); font-size: .83rem; line-height: 1.5; }
.traffic-receipt strong { color: var(--ink); }
.traffic-actions { padding: 0 1.3rem 1.15rem; }
.helper { margin-top: .55rem; color: var(--quiet); font-size: .82rem; line-height: 1.5; }

.domain-form { display: grid; gap: .98rem; padding: 0 1.3rem; }
.field { min-width: 0; display: grid; gap: .37rem; align-content: start; color: var(--ink); font-size: .875rem; font-weight: 650; }
.field small { color: var(--quiet); font-size: .78rem; font-weight: 480; line-height: 1.35; }
.field input, .field select {
  width: 100%;
  min-height: 2.65rem;
  padding: .48rem .67rem;
  border: 1px solid var(--line-strong);
  border-radius: .55rem;
  color: var(--ink);
  background: #fff;
  font-size: .94rem;
  font-weight: 490;
}
.field input::placeholder { color: #717e94; }
.field input:disabled, .field select:disabled { background: var(--subtle); color: var(--muted); }
.field select {
  appearance: none;
  padding-right: 1.85rem;
  background-image: linear-gradient(45deg, transparent 50%, #6a7791 50%), linear-gradient(135deg, #6a7791 50%, transparent 50%);
  background-position: calc(100% - .96rem) center, calc(100% - .65rem) center;
  background-size: .31rem .31rem;
  background-repeat: no-repeat;
}
.domain-actions { display: flex; gap: .54rem; flex-wrap: wrap; }
.domain-result {
  margin: 1rem 1.3rem 1.2rem;
  padding: .73rem .82rem;
  border: 1px solid var(--line);
  border-radius: .59rem;
  background: var(--subtle);
  color: var(--muted);
  font-size: .87rem;
  line-height: 1.48;
}
.domain-result.notice-error { background: var(--red-bg); border-color: var(--red-line); }
.result-row, .result-actions { display: flex; flex-wrap: wrap; gap: .35rem .68rem; align-items: center; }
.result-title { color: var(--ink); font-weight: 690; overflow-wrap: anywhere; }
.result-note, .result-actions { margin-top: .48rem; }
.quote-summary { display: grid; grid-template-columns: repeat(auto-fit, minmax(6rem, 1fr)); gap: .65rem; margin: .65rem 0 0; }
.quote-summary dt { color: var(--quiet); font-size: .77rem; }
.quote-summary dd { margin: .15rem 0 0; color: var(--ink); font-weight: 660; }
.result-error { color: var(--red); }
.record-list { display: grid; gap: .21rem; margin-top: .55rem; padding: .5rem .56rem; border: 1px solid var(--line); border-radius: .42rem; background: #fff; font: .79rem/1.42 var(--mono); overflow-wrap: anywhere; }
.domain-list { display: grid; gap: .48rem; padding: 0 1.3rem 1.2rem; }
.domain-entry { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: .58rem; padding: .7rem; border: 1px solid var(--line); border-radius: .58rem; background: var(--subtle); }
.domain-entry > span:first-child { min-width: 0; font-size: .9rem; font-weight: 660; overflow-wrap: anywhere; }
.domain-entry-state { display: flex; align-items: center; gap: .45rem; }

.activity-list { padding: 0 1.3rem 1.2rem; }
.activity-entry { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: start; gap: .7rem; padding: .74rem 0; border-bottom: 1px solid var(--line); }
.activity-entry:last-child { padding-bottom: 0; border-bottom: 0; }
.activity-dot { width: 1.82rem; height: 1.82rem; }
.activity-action { color: var(--ink); font-size: .89rem; font-weight: 650; }
.activity-subject { display: block; margin-top: .23rem; color: var(--quiet); font-size: .8rem; font-weight: 490; overflow-wrap: anywhere; }
.activity-time { color: var(--quiet); font-size: .77rem; line-height: 1.35; }
.storage-summary { padding: 0 1.3rem; }
.storage-summary strong { font-size: 1.65rem; letter-spacing: -.04em; }
.storage-panel .helper { margin: .44rem 1.3rem 1.18rem; }

.dialog {
  width: min(34rem, calc(100% - 1.5rem));
  max-height: min(90vh, 44rem);
  overflow: auto;
  padding: 0;
  border-radius: .9rem;
  border: 1px solid var(--line-strong);
  color: var(--ink);
  background: var(--surface);
  box-shadow: 0 1.4rem 5rem #151a3955;
}
.dialog[open] { animation: reveal .19s ease-out both; }
.dialog::backdrop { background: #121b37a1; }
.dialog-form { padding: 1.28rem; }
.dialog-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 1rem; }
.dialog-head h2 { margin-top: .14rem; font-size: 1.3rem; }
.dialog-copy { margin-block: .58rem 1.03rem; color: var(--muted); font-size: .9rem; line-height: 1.5; }
.eyebrow { color: var(--brand-strong); font-size: .8rem; font-weight: 690; text-transform: none; }
.form-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: .87rem; }
.span-2 { grid-column: 1 / -1; }
.form-error { margin-top: .8rem; }
.confirm-detail { padding: .7rem; border: 1px solid var(--line); border-radius: .53rem; background: var(--subtle); color: var(--muted); font-size: .85rem; line-height: 1.55; overflow-wrap: anywhere; }
.confirm-detail strong { color: var(--ink); }
.dialog-actions { display: flex; justify-content: flex-end; flex-wrap: wrap; gap: .6rem; padding-top: 1rem; margin-top: 1rem; border-top: 1px solid var(--line); }

@media (max-width: 68rem) {
  :root { --rail-width: 12.6rem; }
  .project-table td, .project-table th { padding-inline: .88rem; }
  .detail-grid, .bottom-grid { grid-template-columns: minmax(0, 1.5fr) minmax(13rem, 1fr); }
}
@media (max-width: 55rem) {
  :root { --rail-width: 4.65rem; }
  .rail { align-items: center; padding: 1rem .48rem; }
  .brand { margin: 0 0 1.6rem; }
  .wordmark, .rail-foot > div:last-child { display: none; }
  .nav-links { width: 100%; }
  .nav-link { flex-direction: column; justify-content: center; gap: .26rem; padding: .34rem .1rem; min-height: 3.05rem; font-size: .69rem; }
  .rail-foot { padding: .55rem; border: 0; }
  .detail-grid, .bottom-grid, .domains-workspace { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 39rem) {
  :root { --rail-width: 0; }
  .rail { position: sticky; top: 0; width: 100%; flex-direction: row; justify-content: space-between; gap: .6rem; padding: .48rem .62rem; }
  .brand { margin: 0; }
  .brand-tile { width: 2.25rem; height: 2.25rem; border-radius: .65rem; }
  .brand-mark { width: 1.91rem; height: 1.91rem; }
  .nav-links { display: flex; justify-content: flex-end; gap: .23rem; }
  .nav-link { min-width: 3.1rem; min-height: 2.64rem; border-radius: .48rem; }
  .rail-spacer, .rail-foot { display: none; }
  .topbar { min-height: 3.2rem; padding-inline: .8rem; }
  .workspace-content { gap: .87rem; padding: 1rem .78rem 1.5rem; }
  .page-intro { flex-direction: column; align-items: stretch; }
  body[data-view="overview"] .page-intro { padding: 1.03rem; gap: .9rem; }
  .overview-project { max-width: none; }
  .metric-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .42rem; }
  .metric-card { padding: .53rem; min-height: 4.9rem; gap: .35rem; }
  .metric-card strong { font-size: 1.17rem; }
  .stat-label { font-size: .75rem; }
  .metric-caption { display: none; }
  .section-head, .subhead { padding-inline: .85rem; }
  .projects-panel .section-head { align-items: flex-start; }
  .projects-panel .section-head > div p { max-width: 22ch; }
  .project-meta, .release-list, .traffic-content, .traffic-actions, .domain-form, .domain-list, .activity-list { padding-inline: .85rem; }
  .domain-result, .prepare-hosting { margin-inline: .85rem; }
  .project-table { min-width: 26rem; }
  .project-table th:nth-child(3), .project-table td:nth-child(3),
  .project-table th:nth-child(5), .project-table td:nth-child(5) { display: none; }
  .stage-pair { grid-template-columns: 1fr; }
  .form-grid { grid-template-columns: minmax(0, 1fr); }
  .dialog-form { padding: .93rem; }
  .activity-time { max-width: 6rem; text-align: right; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
}

