:root {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: #eae9d9;
  background: #11150f;
  font-synthesis: none;
  color-scheme: dark;
  --bone: #eae9d9;
  --green: #c3ef71;
  --orange: #f58b40;
  --muted: #929c89;
  --border: #35402e;
  --panel: #1a2017;
  --mono: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
}

* { box-sizing: border-box; }
body {
  margin: 0;
  min-width: 280px;
  background-image: linear-gradient(#c3ef7103 1px, transparent 1px), linear-gradient(90deg, #c3ef7103 1px, transparent 1px);
  background-size: 44px 44px;
}
button, input { font: inherit; }
button { cursor: pointer; }
button:disabled { cursor: not-allowed; }
a { color: inherit; }
button, input, a { touch-action: manipulation; }
button:focus-visible, a:focus-visible, input:focus-visible {
  outline: 3px solid var(--green);
  outline-offset: 5px;
}
[hidden] { display: none !important; }
.skip-link {
  position: absolute;
  left: 16px;
  top: -70px;
  z-index: 10;
  background: var(--green);
  color: #11150f;
  padding: 12px 18px;
}
.skip-link:focus { top: 12px; }
.site-header {
  background: #171c14;
  border-bottom: 1px solid var(--border);
}
.header-inner {
  max-width: 1220px;
  margin: auto;
  padding: 0 40px;
  min-height: 75px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.wordmark {
  display: inline-flex;
  align-items: center;
  gap: 22px;
  text-decoration: none;
}
.plus-word {
  display: flex;
  align-items: center;
  gap: 2px;
  font-size: 28px;
  font-weight: 800;
  letter-spacing: -1.6px;
}
.plus-mark { color: var(--orange); font-size: 25px; transform: translateY(-5px); }
.wordmark-divider { height: 23px; width: 1px; background: #536048; }
.app-name, .header-label {
  font-family: var(--mono);
  font-size: 9px;
  line-height: 1.5;
  font-weight: 500;
  letter-spacing: 1.3px;
  text-transform: uppercase;
}
.app-name { color: var(--green); }
.header-label { color: #7f8b73; font-size: 8px; }
.header-account { display: grid; justify-items: end; gap: 7px; min-width: 0; }
.session-controls { display: flex; align-items: center; gap: 12px; max-width: 100%; font-family: var(--mono); font-size: 10px; }
.session-user { max-width: 180px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--muted); }
.session-controls form { margin: 0; flex-shrink: 0; }
.logout-button { border: 1px solid #536048; border-radius: 0; background: transparent; color: var(--bone); padding: 6px 9px; font: inherit; }
.logout-button:hover { border-color: var(--green); color: var(--green); }
.logout-button:disabled { opacity: .6; }
.page-shell { max-width: 1220px; margin: 0 auto; padding: 46px 40px 0; }
.page-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
  margin-bottom: 35px;
}
.heading-copy { min-width: 0; }
.eyebrow {
  display: flex;
  align-items: center;
  gap: 9px;
  margin: 0 0 16px;
  font-family: var(--mono);
  font-size: 9px;
  font-weight: 500;
  letter-spacing: 1.5px;
  color: var(--green);
}
.eyebrow span { font-size: 18px; line-height: 1; }
h1 {
  font-family: Impact, Haettenschweiler, "Arial Narrow Bold", sans-serif;
  font-size: clamp(52px, 6.8vw, 86px);
  font-weight: 400;
  line-height: .96;
  letter-spacing: .3px;
  margin: 0 0 19px -2px;
  color: var(--bone);
}
.title-period { color: var(--orange); }
.page-intro { margin: 0; font-size: 14px; color: #a7ae9e; line-height: 1.6; }
.hero-aside { padding: 4px 29px 0 0; display: grid; justify-items: center; gap: 23px; }
.reactor-emblem {
  width: 140px;
  height: 140px;
  border: 1px solid #647644;
  border-radius: 50%;
  box-shadow: 0 0 0 9px #c3ef7104, 0 0 0 10px #3b472b, inset 0 0 28px #c3ef7107;
  display: grid;
  place-items: center;
  position: relative;
  color: var(--green);
  background: #1a2114;
}
.reactor-emblem:before, .reactor-emblem:after {
  content: "";
  width: 8px;
  height: 8px;
  background: var(--green);
  border: 3px solid #11150f;
  position: absolute;
  left: calc(50% - 4px);
}
.reactor-emblem:before { top: -4px; }
.reactor-emblem:after { bottom: -4px; }
.reactor-emblem span { font-family: Arial, sans-serif; font-size: 102px; line-height: 1; transform: translateY(-3px); }
.service-status {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  font-family: var(--mono);
  text-transform: uppercase;
  color: #9ea991;
  font-size: 9px;
  letter-spacing: .5px;
  max-width: 190px;
  text-align: center;
  line-height: 1.7;
}
.status-dot { width: 6px; height: 6px; border-radius: 50%; background: #7e8b75; flex: none; }
.connection-block { display: grid; justify-items: center; gap: 8px; }
.credential-expiry { font-family: var(--mono); font-size: 9px; line-height: 1.8; color: #9bab8a; max-width: 210px; text-align: center; margin: 0; }
.service-status[data-state="ready"] .status-dot { background: var(--green); box-shadow: 0 0 10px #c3ef7170; }
.service-status[data-state="warning"] .status-dot { background: var(--orange); }
.service-status[data-state="offline"] .status-dot { background: #f08f72; }
.workspace-grid { display: grid; grid-template-columns: minmax(0, 1.9fr) minmax(270px, 1fr); gap: 23px; align-items: start; }
.primary-column, .secondary-column { min-width: 0; }
.primary-column { display: grid; gap: 22px; }
.card {
  background: var(--panel);
  border: 1px solid var(--border);
  box-shadow: 4px 4px 0 #070a0650;
  position: relative;
}
.purge-card { padding: 29px 29px 0; border-top: 3px solid var(--orange); }
.purge-card:before {
  content: "";
  display: block;
  position: absolute;
  left: -1px;
  right: -1px;
  top: -11px;
  height: 5px;
  background: repeating-linear-gradient(135deg, #e48a3f 0, #e48a3f 5px, #11150f 5px, #11150f 10px);
}
.card-heading { display: flex; justify-content: space-between; align-items: center; gap: 14px; margin-bottom: 25px; }
h2 { font-family: var(--mono); font-size: 12px; line-height: 1.5; font-weight: 600; text-transform: uppercase; letter-spacing: 1px; margin: 0; }
.small-label { color: #869478; font-family: var(--mono); font-size: 8px; letter-spacing: .7px; text-align: right; line-height: 1.5; }
label { display: block; font-size: 13px; font-weight: 550; color: #c7cdbe; margin-bottom: 10px; }
.domain-control { display: flex; align-items: center; border: 1px solid #4d5b3e; background: #10160d; min-width: 0; transition: border-color .2s, box-shadow .2s; }
.domain-control:focus-within { border-color: var(--green); box-shadow: 0 0 0 3px #c3ef7110; }
.domain-control[data-invalid="true"] { border-color: #f08f72; }
.protocol-prefix { padding-left: 16px; font-family: var(--mono); font-size: 14px; color: #6d7d5e; user-select: none; }
.domain-control.has-protocol .protocol-prefix { display: none; }
input { min-width: 0; width: 100%; border: 0; outline: none !important; background: transparent; color: var(--bone); height: 57px; padding: 0 16px 0 2px; font-family: var(--mono); font-size: 14px; }
.domain-control.has-protocol input { padding-left: 16px; }
input::placeholder { color: #7f8b74; }
input:disabled { color: #849179; }
.field-help { color: #a5b197; font-size: 12px; line-height: 1.7; margin: 9px 0 0; }
.form-bottom { display: flex; flex-direction: column; gap: 11px; margin-top: 25px; }
.button { border: 0; font-family: Impact, Haettenschweiler, "Arial Narrow Bold", sans-serif; font-size: 25px; font-weight: 400; letter-spacing: 1.4px; min-height: 65px; padding: 12px 20px; display: flex; align-items: center; justify-content: center; gap: 15px; width: 100%; transition: background .15s, box-shadow .15s, transform .15s; }
.button-primary { color: #211609; background: var(--orange); clip-path: polygon(0 0, calc(100% - 9px) 0, 100% 9px, 100% 100%, 9px 100%, 0 calc(100% - 9px)); }
.button-primary:hover:not(:disabled) { background: #ffab5f; box-shadow: inset 0 0 0 3px #f5b77e; }
.button-primary:active:not(:disabled) { transform: translateY(2px); }
.button-primary:disabled { background: #d08042; color: #302411; }
#submit-icon { font-family: Arial, sans-serif; font-size: 30px; line-height: 1; }
.form-bottom p { color: #a5b197; font-size: 12px; line-height: 1.7; margin: 0; text-align: center; }
.safety-caption { display: flex; align-items: center; justify-content: center; gap: 8px; border-top: 1px solid var(--border); margin: 23px -29px 0; padding: 13px 20px; background: #141a10; color: #a1af91; font-family: var(--mono); font-size: 11px; line-height: 1.7; text-align: center; }
.safety-caption span { color: var(--green); font-size: 15px; }
.form-error { color: #ffaf95; font-size: 12px; line-height: 1.7; margin: 13px 0 0; }
.progress-card { padding: 24px 27px 0; }
.progress-card > .card-heading { margin-bottom: 25px; align-items: flex-start; }
.status-pill { font-family: var(--mono); text-transform: uppercase; font-size: 10px; line-height: 1.6; font-weight: 500; letter-spacing: .2px; padding: 4px 7px; border: 1px solid; text-align: center; }
.pill-neutral { color: #94a285; background: #171d13; border-color: #3c4930; }
.pill-running { color: #edb477; background: #302418; border-color: #655134; }
.pill-success { color: var(--green); background: #243019; border-color: #526438; }
.pill-error { color: #ffad95; background: #33221a; border-color: #7c4934; }
.pill-partial { color: #edce75; background: #302b19; border-color: #6d5b2b; }
.progress-steps { list-style: none; margin: 0; padding: 0; }
.progress-step { display: flex; gap: 17px; position: relative; padding-bottom: 25px; }
.progress-step:first-child:after { content: ""; position: absolute; top: 32px; bottom: 3px; left: 15px; width: 1px; background: #3c4930; }
.step-icon { width: 31px; height: 31px; flex: none; display: flex; align-items: center; justify-content: center; border: 1px solid #4a573d; color: #94a186; background: #161d12; font-family: var(--mono); font-size: 11px; z-index: 1; }
.step-copy { flex: 1; min-width: 0; padding-top: 1px; }
.step-heading { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.step-heading h3 { font-size: 13px; font-weight: 600; margin: 0; line-height: 1.5; }
.step-state { font-family: var(--mono); text-transform: uppercase; font-size: 9px; color: #94a186; text-align: right; }
.step-copy p { font-size: 13px; line-height: 1.7; color: #a5b197; margin: 5px 0 0; }
.progress-step[data-state="running"] .step-icon { border-color: #a77b47; background: #332719; color: var(--orange); }
.progress-step[data-state="running"] .step-state { color: #f0b479; }
.progress-step[data-state="running"] .step-icon:before { content: ""; width: 12px; height: 12px; border: 1.5px solid #685536; border-top-color: var(--orange); border-radius: 50%; animation: spin 1s linear infinite; }
.progress-step[data-state="succeeded"] .step-icon, .progress-step[data-state="accepted"] .step-icon { color: var(--green); background: #26341a; border-color: #617b3a; }
.progress-step[data-state="succeeded"] .step-state, .progress-step[data-state="accepted"] .step-state { color: var(--green); }
.progress-step[data-state="failed"] .step-icon { color: #ffad95; background: #33221a; border-color: #7c4934; }
.progress-step[data-state="failed"] .step-state { color: #ffad95; }
.progress-step[data-state="skipped"] .step-icon { color: #87947a; background: #1b2216; }
.progress-step[data-state="unconfirmed"] .step-icon { background: #302b19; border-color: #857240; color: #edce75; }
.progress-step[data-state="unconfirmed"] .step-state { color: #edce75; }
.matched-site { border-bottom: 1px dashed #48563b; padding-bottom: 20px; margin-bottom: 22px; }
.detail-label { display: block; font-family: var(--mono); text-transform: uppercase; font-size: 10px; letter-spacing: 1px; color: #a5b197; margin-bottom: 7px; }
.matched-site h3 { font-size: 15px; margin: 0 0 12px; overflow-wrap: anywhere; }
.domain-tags { display: flex; gap: 5px; flex-wrap: wrap; }
.domain-tag { max-width: 100%; font-family: var(--mono); font-size: 11px; background: #242e1c; border: 1px solid #405131; color: #b6cd9b; padding: 4px 7px; overflow-wrap: anywhere; }
.job-message { color: #c3d6a9; font-size: 13px; line-height: 1.8; padding: 13px 15px; margin: 0 0 20px; background: #222d1a; border-left: 2px solid #7b9c4d; overflow-wrap: anywhere; }
.job-message[data-kind="error"] { background: #302119; color: #ffc3a9; border-color: #c67c57; }
.job-message[data-kind="running"] { background: #212b19; color: #c3d6a9; }
.job-message[data-kind="warning"] { background: #302b19; color: #edce75; border-color: #b3974d; }
.job-meta { display: flex; justify-content: space-between; gap: 10px; padding: 12px 0; font-family: var(--mono); font-size: 10px; color: #a0af8f; border-top: 1px solid var(--border); overflow-wrap: anywhere; line-height: 1.7; }
.job-meta span:last-child { text-align: right; }
.poll-warning { color: #edce75; font-size: 13px; line-height: 1.8; margin: 0 0 20px; }
.activity-card { padding: 24px 24px 0; border-top-color: #6c8050; }
.activity-card > .card-heading { margin-bottom: 0; }
.activity-empty { padding: 32px 0 37px; }
.empty-icon { display: inline-flex; width: 36px; height: 33px; align-items: center; justify-content: center; background: #10160d; border: 1px solid #3d4c30; font-family: var(--mono); font-size: 20px; color: var(--green); margin-bottom: 20px; }
.activity-empty h3 { font-size: 14px; font-weight: 550; margin: 0 0 10px; color: #c0cbb4; }
.activity-empty p { font-size: 13px; line-height: 1.9; color: #a5b197; max-width: 245px; margin: 0; }
.activity-list { list-style: none; padding: 0; margin: 17px 0 8px; }
.activity-item { padding: 15px 0; border-top: 1px solid var(--border); }
.activity-row { display: flex; align-items: center; gap: 8px; min-width: 0; }
.activity-domain { font-family: var(--mono); font-size: 12px; overflow-wrap: anywhere; flex: 1; min-width: 0; color: #d5dec9; }
.activity-dot { width: 5px; height: 5px; background: #94a186; flex: none; }
.activity-dot[data-status="succeeded"] { background: var(--green); }
.activity-dot[data-status="failed"] { background: #ffad95; }
.activity-dot[data-status="partial"], .activity-dot[data-status="unconfirmed"] { background: #edce75; }
.activity-dot[data-status="pending"], .activity-dot[data-status="queued"], .activity-dot[data-status="running"] { background: var(--orange); }
.activity-status { font-family: var(--mono); font-size: 10px; color: #9bac8c; text-transform: uppercase; text-align: right; }
.activity-time { display: block; margin: 6px 0 0 13px; color: #a0af8f; font-family: var(--mono); font-size: 10px; line-height: 1.7; }
.inventory-panel { padding: 26px 6px 22px; border-bottom: 1px solid var(--border); }
.inventory-title { display: flex; align-items: center; gap: 9px; margin-bottom: 13px; }
.inventory-title h2 { font-size: 12px; color: #c2ceaf; }
.inventory-icon { font-family: var(--mono); font-size: 14px; color: var(--green); }
.inventory-panel p { font-size: 13px; line-height: 1.8; margin: 3px 0; color: #a5b197; }
.inventory-panel #inventory-account { color: #c6d3b6; }
.inventory-panel .inventory-updated { font-size: 12px; margin-top: 10px; color: #a0af8f; }
.aside-note { margin: 23px 6px 0; font-family: Impact, Haettenschweiler, "Arial Narrow Bold", sans-serif; font-size: 27px; line-height: 1.16; letter-spacing: .6px; text-transform: uppercase; color: #5d6d4e; }
.page-footer { display: flex; justify-content: space-between; align-items: center; gap: 20px; padding: 25px 0; margin-top: 36px; border-top: 1px solid var(--border); font-family: var(--mono); font-size: 10px; line-height: 1.8; letter-spacing: .5px; color: #8a9a78; }
.page-footer span:first-child { color: #b3c39e; }
.notice { display: flex; gap: 13px; border: 1px solid #78613a; border-left: 4px solid var(--orange); background: #2a2418; color: #e6c390; padding: 15px 18px; margin: 0 0 30px; }
.notice-icon { display: flex; align-items: center; justify-content: center; flex: none; font-family: var(--mono); font-size: 13px; color: var(--orange); width: 18px; height: 20px; border: 1px solid #9d7741; margin-top: 1px; }
.notice strong { font-family: var(--mono); text-transform: uppercase; font-size: 11px; font-weight: 600; letter-spacing: .5px; }
.notice p { font-size: 13px; line-height: 1.9; margin: 5px 0 0; overflow-wrap: anywhere; }
.credential-notice[data-state="urgent"] { border-color: #a87739; border-left-color: #f1b263; background: #302619; color: #f0d19b; }
.credential-notice[data-state="expired"] { border-color: #915238; border-left-color: #ffa17c; background: #30211b; color: #ffc5a9; }
.credential-notice[data-state="expired"] .notice-icon { color: #ffa17c; border-color: #b76d4d; }

@keyframes spin { to { transform: rotate(360deg); } }

@media (min-width: 1400px) {
  .page-shell { padding-top: 58px; }
  .page-heading { margin-bottom: 43px; }
}

@media (max-width: 950px) {
  .header-inner { padding: 0 28px; }
  .page-shell { padding: 39px 28px 0; }
  .workspace-grid { grid-template-columns: minmax(0, 1.65fr) minmax(250px, 1fr); gap: 20px; }
  .hero-aside { padding-right: 14px; }
  .reactor-emblem { width: 118px; height: 118px; }
  .reactor-emblem span { font-size: 87px; }
  .purge-card { padding-left: 23px; padding-right: 23px; }
  .safety-caption { margin-left: -23px; margin-right: -23px; }
  .progress-card { padding-left: 23px; padding-right: 23px; }
  .card-heading { gap: 10px; }
  .progress-card > .card-heading { flex-direction: column; gap: 11px; }
  .activity-card { padding-left: 20px; padding-right: 20px; }
  .button { font-size: 23px; }
}

@media (max-width: 720px) {
  .header-inner { min-height: 67px; padding: 0 22px; gap: 16px; }
  .header-label { display: none; }
  .wordmark-divider, .app-name { display: none; }
  .session-user { max-width: 140px; }
  .wordmark { gap: 17px; }
  .plus-word { font-size: 25px; }
  .app-name { font-size: 8px; }
  .page-shell { padding: 33px 22px 0; }
  .page-heading { gap: 18px; margin-bottom: 34px; }
  h1 { font-size: clamp(52px, 10.8vw, 74px); }
  .eyebrow { font-size: 7px; letter-spacing: 1px; gap: 7px; }
  .eyebrow span { font-size: 15px; }
  .hero-aside { padding: 12px 7px 0 0; gap: 20px; }
  .reactor-emblem { width: 88px; height: 88px; box-shadow: 0 0 0 6px #c3ef7104, 0 0 0 7px #3b472b; }
  .reactor-emblem span { font-size: 65px; }
  .service-status { max-width: 105px; font-size: 7px; gap: 7px; }
  .workspace-grid { grid-template-columns: minmax(0, 1fr); gap: 22px; }
  .primary-column { gap: 21px; }
  .progress-card > .card-heading { flex-direction: row; align-items: flex-start; }
  .activity-card { padding-left: 24px; padding-right: 24px; }
  .activity-empty { padding: 26px 0; }
  .activity-empty p { max-width: none; }
  .inventory-panel { padding-top: 25px; }
  .aside-note { font-size: 26px; margin-top: 20px; }
  .aside-note br { display: none; }
  .page-footer { margin-top: 26px; font-size: 10px; }
}

@media (max-width: 450px) {
  .page-shell { padding-left: 17px; padding-right: 17px; }
  .header-inner { padding-left: 18px; padding-right: 18px; gap: 12px; }
  .session-controls { gap: 8px; }
  .session-user { max-width: 25vw; }
  .page-heading { display: block; }
  .hero-aside { padding: 0; display: flex; align-items: center; justify-content: flex-start; gap: 14px; margin-top: 23px; }
  .reactor-emblem { width: 34px; height: 34px; box-shadow: 0 0 0 3px #c3ef7104, 0 0 0 4px #3b472b; }
  .reactor-emblem span { font-size: 26px; transform: translateY(-1px); }
  .service-status { max-width: none; font-size: 9px; line-height: 1.8; gap: 9px; text-align: left; }
  .connection-block { justify-items: start; gap: 4px; }
  .credential-expiry { max-width: 240px; text-align: left; font-size: 9px; }
  .eyebrow { font-size: 8px; letter-spacing: .7px; margin-bottom: 15px; }
  .eyebrow span { font-size: 14px; }
  h1 { font-size: clamp(43px, 11.4vw, 54px); margin-bottom: 15px; }
  .page-intro { font-size: 13px; max-width: none; }
  .purge-card { padding: 23px 19px 0; }
  .safety-caption { margin-left: -19px; margin-right: -19px; font-size: 11px; padding: 12px 17px; }
  .progress-card { padding: 21px 19px 0; }
  .progress-card > .card-heading { flex-direction: column; }
  .card-heading h2 { font-size: 11px; }
  .small-label { font-size: 7px; }
  .button { font-size: 24px; min-height: 63px; letter-spacing: 1px; }
  #submit-icon { font-size: 27px; }
  input, .protocol-prefix { font-size: 14px; }
  .field-help { font-size: 12px; }
  .form-bottom p { font-size: 12px; }
  .step-copy p { font-size: 13px; }
  .step-state { font-size: 10px; }
  .step-heading h3 { font-size: 12px; }
  .page-footer { flex-direction: column; align-items: flex-start; gap: 7px; }
  .job-meta { flex-direction: column; align-items: flex-start; gap: 5px; }
  .job-meta span:last-child { text-align: left; }
  .notice { padding: 13px; }
}

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