@font-face {
  font-family: "Cabin Local";
  src: url("/assets/cabin-regular.otf") format("opentype");
  font-style: normal;
  font-weight: 400;
  font-display: swap;
}

@font-face {
  font-family: "Cabin Local";
  src: url("/assets/cabin-bold.otf") format("opentype");
  font-style: normal;
  font-weight: 700;
  font-display: swap;
}

@font-face {
  font-family: "Cousine Local";
  src: url("/assets/cousine-regular.ttf") format("truetype");
  font-style: normal;
  font-weight: 400;
  font-display: swap;
}

@font-face {
  font-family: "Cousine Local";
  src: url("/assets/cousine-bold.ttf") format("truetype");
  font-style: normal;
  font-weight: 700;
  font-display: swap;
}

:root {
  color-scheme: light;
  --paper: #f3f0e9;
  --paper-deep: #e9e4da;
  --surface: #fbfaf6;
  --surface-strong: #ffffff;
  --ink: #1c211e;
  --ink-soft: #5e675f;
  --line: #d8d6cd;
  --line-strong: #bfc2b9;
  --signal: #16744a;
  --signal-soft: #d9eadf;
  --danger: #b63a31;
  --danger-soft: #f4ded9;
  --warning: #a7650c;
  --warning-soft: #f6e7ca;
  --info: #315f78;
  --info-soft: #dce8ed;
  --shadow: 0 16px 42px rgba(27, 34, 29, 0.08);
  --shadow-tight: 0 8px 22px rgba(27, 34, 29, 0.07);
  --radius: 20px;
  --radius-small: 12px;
  --sidebar: 264px;
}

* {
  box-sizing: border-box;
}

html {
  min-height: 100%;
  scroll-behavior: smooth;
}

body {
  min-height: 100vh;
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: "Cabin Local", sans-serif;
  font-size: 15px;
  line-height: 1.45;
}

body::before {
  position: fixed;
  inset: 0;
  z-index: -1;
  content: "";
  background-image: linear-gradient(rgba(28, 33, 30, 0.035) 1px, transparent 1px), linear-gradient(90deg, rgba(28, 33, 30, 0.035) 1px, transparent 1px);
  background-size: 42px 42px;
  mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 0.7), transparent 62%);
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
select {
  font: inherit;
}

button,
a,
input,
select {
  outline: none;
}

button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible {
  box-shadow: 0 0 0 3px rgba(22, 116, 74, 0.24);
}

button:disabled,
select:disabled {
  cursor: not-allowed;
  opacity: 0.48;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

.mono {
  font-family: "Cousine Local", monospace;
  font-size: 0.84em;
  overflow-wrap: anywhere;
}

.app-shell {
  min-height: 100vh;
}

.sidebar {
  position: fixed;
  inset: 0 auto 0 0;
  z-index: 20;
  width: var(--sidebar);
  display: flex;
  flex-direction: column;
  padding: 28px 18px 20px;
  border-right: 1px solid var(--line);
  background: rgba(251, 250, 246, 0.92);
  backdrop-filter: blur(18px);
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.brand > span:last-child {
  min-width: 0;
}

.brand b,
.brand small {
  display: block;
}

.brand b {
  font-size: 17px;
  letter-spacing: -0.025em;
}

.brand small {
  max-width: 175px;
  margin-top: 2px;
  overflow: hidden;
  color: var(--ink-soft);
  font-family: "Cousine Local", monospace;
  font-size: 10px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.brand-mark {
  position: relative;
  width: 42px;
  height: 42px;
  flex: 0 0 auto;
  display: grid;
  place-content: center;
  gap: 3px;
  border: 1px solid #0d5837;
  border-radius: 12px;
  background: var(--signal);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.18);
}

.brand-mark i {
  width: 18px;
  height: 3px;
  display: block;
  border-radius: 99px;
  background: #f7f7ef;
}

.brand-mark i:nth-child(2) {
  width: 12px;
}

.brand-mark i:nth-child(3) {
  width: 7px;
}

.brand-mark--large {
  width: 58px;
  height: 58px;
  gap: 4px;
  border-radius: 16px;
}

.brand-mark--large i {
  width: 25px;
  height: 4px;
}

.brand-mark--large i:nth-child(2) {
  width: 17px;
}

.brand-mark--large i:nth-child(3) {
  width: 9px;
}

.side-nav {
  display: grid;
  gap: 5px;
  margin-top: 42px;
}

.nav-link {
  min-height: 44px;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 0 12px;
  border: 1px solid transparent;
  border-radius: 12px;
  color: var(--ink-soft);
  font-weight: 700;
  transition: 160ms ease;
  transition-property: color, background-color, border-color, transform;
}

.nav-link:hover {
  color: var(--ink);
  transform: translateX(2px);
}

.nav-link.is-active {
  border-color: #b9d1c2;
  background: var(--signal-soft);
  color: #0c5a37;
}

.nav-glyph {
  position: relative;
  width: 13px;
  height: 13px;
  flex: 0 0 auto;
  border: 1.5px solid currentColor;
  border-radius: 4px;
}

.nav-glyph::after {
  position: absolute;
  inset: 3px;
  content: "";
  border-radius: 2px;
  background: currentColor;
  opacity: 0.5;
}

.sidebar-foot {
  margin-top: auto;
  padding: 16px 8px 0;
  border-top: 1px solid var(--line);
}

.live-indicator {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--ink-soft);
  font-family: "Cousine Local", monospace;
  font-size: 10px;
  text-transform: uppercase;
}

.live-indicator i {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--signal);
  box-shadow: 0 0 0 5px var(--signal-soft);
  animation: beacon 2.2s ease-in-out infinite;
}

.logout {
  margin-top: 16px;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--ink-soft);
  cursor: pointer;
  font-weight: 700;
}

.logout:hover {
  color: var(--danger);
}

.main-area {
  width: calc(100% - var(--sidebar));
  min-height: 100vh;
  margin-left: var(--sidebar);
  padding: 54px clamp(24px, 4vw, 64px) 34px;
}

.main-area > * {
  max-width: 1440px;
  margin-right: auto;
  margin-left: auto;
}

.mobile-top {
  display: none;
}

.page-heading {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 28px;
  align-items: end;
  margin-bottom: 34px;
}

.page-heading h1 {
  max-width: 850px;
  margin: 8px 0 10px;
  font-size: clamp(40px, 5vw, 74px);
  line-height: 0.94;
  letter-spacing: -0.055em;
}

.page-heading p {
  max-width: 720px;
  margin-bottom: 0;
  color: var(--ink-soft);
  font-size: 17px;
}

.eyebrow {
  display: inline-block;
  color: var(--ink-soft);
  font-family: "Cousine Local", monospace;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.page-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 10px;
}

.page-actions form {
  margin: 0;
}

.button {
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 16px;
  border: 1px solid var(--line-strong);
  border-radius: 11px;
  background: var(--surface);
  color: var(--ink);
  cursor: pointer;
  font-weight: 700;
  transition: 160ms ease;
  transition-property: transform, box-shadow, background-color, border-color;
}

.button:hover {
  transform: translateY(-1px);
  box-shadow: var(--shadow-tight);
}

.button--primary {
  border-color: #0e623d;
  background: var(--signal);
  color: #fff;
}

.button--ghost {
  background: transparent;
}

.button--full {
  width: 100%;
}

.text-link {
  color: var(--signal);
  font-weight: 700;
}

.text-link:hover {
  text-decoration: underline;
  text-underline-offset: 4px;
}

.flash {
  position: relative;
  z-index: 12;
  max-width: 1440px;
  margin: 0 auto 18px;
  padding: 12px 15px;
  border: 1px solid #b9d1c2;
  border-radius: 12px;
  background: #edf5ef;
  color: #0c5a37;
  box-shadow: var(--shadow-tight);
  font-weight: 700;
  animation: slide-in 300ms ease both;
}

.status-board {
  position: relative;
  min-height: 250px;
  display: grid;
  grid-template-columns: 24px minmax(260px, 1.25fr) minmax(320px, 0.75fr);
  gap: 30px;
  align-items: center;
  margin-bottom: 16px;
  padding: clamp(26px, 4vw, 48px);
  overflow: hidden;
  border: 1px solid var(--line-strong);
  border-radius: 26px;
  background: var(--surface-strong);
  box-shadow: var(--shadow);
}

.status-board::after {
  position: absolute;
  top: 0;
  right: 0;
  width: 33%;
  height: 8px;
  content: "";
  background: var(--line-strong);
}

.status-board--success::after,
.status-board--info::after {
  background: var(--signal);
}

.status-board--danger::after {
  background: var(--danger);
}

.status-board--warning::after {
  background: var(--warning);
}

.status-signal {
  height: 112px;
  display: grid;
  place-items: center;
  border-radius: 99px;
  background: var(--paper-deep);
}

.status-signal span {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--line-strong);
}

.status-board--success .status-signal span,
.status-board--info .status-signal span {
  background: var(--signal);
  box-shadow: 0 0 0 8px var(--signal-soft);
}

.status-board--danger .status-signal span {
  background: var(--danger);
  box-shadow: 0 0 0 8px var(--danger-soft);
}

.status-board--warning .status-signal span {
  background: var(--warning);
  box-shadow: 0 0 0 8px var(--warning-soft);
}

.status-copy h2 {
  max-width: 720px;
  margin: 9px 0 12px;
  font-size: clamp(30px, 4vw, 56px);
  line-height: 0.98;
  letter-spacing: -0.045em;
}

.status-copy p {
  max-width: 680px;
  margin-bottom: 0;
  color: var(--ink-soft);
  font-size: 17px;
}

.status-facts {
  margin: 0;
  border-left: 1px solid var(--line);
}

.status-facts div {
  padding: 13px 0 13px 24px;
  border-bottom: 1px solid var(--line);
}

.status-facts div:last-child {
  border-bottom: 0;
}

.status-facts dt {
  color: var(--ink-soft);
  font-family: "Cousine Local", monospace;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.status-facts dd {
  margin: 5px 0 0;
  font-size: 17px;
  font-weight: 700;
}

.metric-strip {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin-bottom: 28px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: rgba(251, 250, 246, 0.76);
}

.metric-strip article {
  min-width: 0;
  padding: 18px 20px;
  border-right: 1px solid var(--line);
}

.metric-strip article:last-child {
  border-right: 0;
}

.metric-strip span,
.metric-strip small {
  display: block;
  color: var(--ink-soft);
}

.metric-strip span {
  font-family: "Cousine Local", monospace;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.metric-strip b {
  display: block;
  margin: 5px 0 2px;
  overflow: hidden;
  font-size: clamp(22px, 2.5vw, 34px);
  letter-spacing: -0.035em;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.metric-strip small {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.workspace-grid,
.restore-grid,
.settings-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.65fr) minmax(310px, 0.75fr);
  gap: 18px;
  margin-bottom: 18px;
}

.restore-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.panel {
  min-width: 0;
  margin-bottom: 18px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(251, 250, 246, 0.9);
  box-shadow: var(--shadow-tight);
}

.workspace-grid .panel,
.restore-grid .panel,
.settings-grid .panel {
  margin-bottom: 0;
}

.panel-head {
  min-height: 78px;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  padding: 20px 22px 16px;
  border-bottom: 1px solid var(--line);
}

.panel-head h2 {
  margin: 5px 0 0;
  font-size: 22px;
  line-height: 1.05;
  letter-spacing: -0.03em;
}

.panel-note {
  margin: 0;
  padding: 20px 22px;
  color: var(--ink-soft);
}

.panel > .text-link {
  display: inline-block;
  margin: 0 22px 22px;
}

.badge {
  min-height: 25px;
  display: inline-flex;
  align-items: center;
  padding: 0 9px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--paper);
  color: var(--ink-soft);
  font-family: "Cousine Local", monospace;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  white-space: nowrap;
}

.badge--success {
  border-color: #b9d1c2;
  background: var(--signal-soft);
  color: #0c5a37;
}

.badge--danger {
  border-color: #e1aaa2;
  background: var(--danger-soft);
  color: #8c2b25;
}

.badge--warning {
  border-color: #e5c38f;
  background: var(--warning-soft);
  color: #7c4b08;
}

.badge--info {
  border-color: #aec9d4;
  background: var(--info-soft);
  color: #214b61;
}

.diagnostic {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  padding: 8px 22px 22px;
}

.diagnostic div {
  min-width: 0;
  padding: 18px 18px 0 0;
}

.diagnostic div + div {
  padding-left: 18px;
  border-left: 1px solid var(--line);
}

.diagnostic span {
  color: var(--ink-soft);
  font-family: "Cousine Local", monospace;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.diagnostic p {
  margin: 7px 0 0;
}

.inventory-stack,
.disk-stack {
  padding: 6px 22px 18px;
}

.inventory-line,
.disk-line {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 18px;
  align-items: center;
  padding: 13px 0;
  border-bottom: 1px solid var(--line);
}

.inventory-line:last-child,
.disk-line:last-child {
  border-bottom: 0;
}

.inventory-line b,
.inventory-line span,
.disk-line b,
.disk-line span {
  display: block;
}

.inventory-line span,
.disk-line span {
  margin-top: 2px;
  color: var(--ink-soft);
  font-size: 12px;
}

.disk-line {
  grid-template-columns: minmax(180px, 0.7fr) minmax(220px, 1fr) 54px;
}

progress {
  width: 100%;
  height: 8px;
  overflow: hidden;
  border: 0;
  border-radius: 99px;
  background: var(--paper-deep);
}

progress::-webkit-progress-bar {
  background: var(--paper-deep);
}

progress::-webkit-progress-value {
  border-radius: 99px;
  background: var(--signal);
}

progress::-moz-progress-bar {
  border-radius: 99px;
  background: var(--signal);
}

.table-wrap {
  width: 100%;
  overflow-x: auto;
}

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}

th,
td {
  padding: 14px 18px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}

th {
  background: rgba(233, 228, 218, 0.52);
  color: var(--ink-soft);
  font-family: "Cousine Local", monospace;
  font-size: 9px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

tbody tr:last-child td {
  border-bottom: 0;
}

tbody tr:hover td {
  background: rgba(255, 255, 255, 0.66);
}

.run-dot {
  width: 8px;
  height: 8px;
  display: inline-block;
  margin-right: 9px;
  border-radius: 50%;
  background: var(--line-strong);
}

.run-dot--success {
  background: var(--signal);
}

.run-dot--failed {
  background: var(--danger);
}

.inventory-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 18px;
}

.inventory-block {
  min-width: 0;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: rgba(251, 250, 246, 0.86);
}

.inventory-block h2 {
  min-height: 42px;
  margin: 7px 0 20px;
  font-size: 17px;
  line-height: 1.15;
  letter-spacing: -0.02em;
}

.inventory-block > b {
  display: block;
  font-size: 25px;
  letter-spacing: -0.035em;
}

.inventory-block p {
  margin: 4px 0 0;
  color: var(--ink-soft);
  font-size: 12px;
}

.manifest-line {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-bottom: 18px;
  padding: 18px 20px;
  border: 1px solid var(--line);
  border-left: 5px solid var(--signal);
  border-radius: 14px;
  background: var(--surface);
}

.manifest-line div + div {
  padding-left: 20px;
  border-left: 1px solid var(--line);
}

.manifest-line span,
.manifest-line b {
  display: block;
}

.manifest-line span {
  color: var(--ink-soft);
  font-size: 11px;
}

.manifest-line b {
  margin-top: 5px;
}

.form-stack,
.settings-form {
  display: grid;
  gap: 16px;
  padding: 20px 22px 24px;
}

.settings-form {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

label {
  display: grid;
  gap: 7px;
  color: var(--ink-soft);
  font-size: 12px;
  font-weight: 700;
}

input,
select {
  width: 100%;
  min-height: 44px;
  padding: 0 12px;
  border: 1px solid var(--line-strong);
  border-radius: 10px;
  background: #fff;
  color: var(--ink);
}

select {
  cursor: pointer;
}

.form-submit {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding-top: 6px;
}

.form-submit p {
  max-width: 620px;
  margin-bottom: 0;
  color: var(--ink-soft);
  font-size: 12px;
}

.callout {
  margin: 20px 22px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--paper);
}

.callout--danger {
  border-color: #e1aaa2;
  background: var(--danger-soft);
  color: #6f211c;
}

.callout--success {
  border-color: #a7cfb8;
  background: #e8f4ec;
  color: #195b3b;
}

.callout p {
  margin: 8px 0 0;
}

.definition-list {
  margin: 0;
  padding: 0 22px 22px;
}

.definition-list div {
  display: grid;
  grid-template-columns: 100px minmax(0, 1fr);
  gap: 14px;
  padding: 11px 0;
  border-bottom: 1px solid var(--line);
}

.definition-list div:last-child {
  border-bottom: 0;
}

.definition-list dt {
  color: var(--ink-soft);
}

.definition-list dd {
  margin: 0;
  overflow-wrap: anywhere;
  font-weight: 700;
}

.automation-line {
  display: grid;
  grid-template-columns: minmax(260px, 0.7fr) minmax(0, 1fr);
  gap: 26px;
  padding: 22px;
}

.automation-line b,
.automation-line span {
  display: block;
}

.automation-line span,
.automation-line p {
  margin: 4px 0 0;
  color: var(--ink-soft);
}

.log-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-bottom: 12px;
}

.log-tab {
  padding: 8px 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface);
  color: var(--ink-soft);
  font-family: "Cousine Local", monospace;
  font-size: 10px;
}

.log-tab.is-active {
  border-color: #b9d1c2;
  background: var(--signal-soft);
  color: #0c5a37;
}

.terminal {
  overflow: hidden;
  border: 1px solid #303633;
  border-radius: 18px;
  background: #171b19;
  box-shadow: var(--shadow);
}

.terminal-bar {
  display: flex;
  align-items: center;
  gap: 7px;
  min-height: 44px;
  padding: 0 14px;
  border-bottom: 1px solid #303633;
  color: #aeb8b1;
}

.terminal-bar span {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #55605a;
}

.terminal-bar b {
  margin-left: 7px;
  font-family: "Cousine Local", monospace;
  font-size: 10px;
  font-weight: 400;
}

.terminal pre {
  max-height: 680px;
  margin: 0;
  padding: 20px;
  overflow: auto;
  color: #dce5df;
  font-family: "Cousine Local", monospace;
  font-size: 11px;
  line-height: 1.62;
  white-space: pre-wrap;
}

dialog {
  width: min(520px, calc(100vw - 30px));
  padding: 0;
  border: 0;
  border-radius: 20px;
  background: var(--surface);
  color: var(--ink);
  box-shadow: 0 28px 90px rgba(21, 26, 23, 0.3);
}

dialog::backdrop {
  background: rgba(24, 29, 26, 0.58);
  backdrop-filter: blur(4px);
}

.dialog-card {
  padding: 28px;
}

.dialog-card h2 {
  margin: 8px 0 10px;
  font-size: 30px;
  letter-spacing: -0.04em;
}

.dialog-card p {
  color: var(--ink-soft);
}

.confirm-field {
  margin-top: 20px;
}

.dialog-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 22px;
}

.empty {
  max-width: 640px;
  margin: 100px auto;
  padding: 30px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--surface);
  text-align: center;
}

.empty b,
.empty span {
  display: block;
}

.empty b {
  font-size: 24px;
}

.empty span {
  margin-top: 8px;
  color: var(--ink-soft);
}

footer {
  padding-top: 28px;
  color: var(--ink-soft);
  font-family: "Cousine Local", monospace;
  font-size: 9px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.auth-body {
  display: grid;
  place-items: center;
  padding: 24px;
  background: #ebe7de;
}

.auth-body::before {
  mask-image: none;
  opacity: 0.7;
}

.auth-body > .flash {
  position: fixed;
  top: 20px;
  left: 50%;
  width: min(640px, calc(100vw - 32px));
  transform: translateX(-50%);
}

.auth-layout {
  width: min(1080px, 100%);
  min-height: 620px;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  overflow: hidden;
  border: 1px solid var(--line-strong);
  border-radius: 28px;
  background: var(--surface-strong);
  box-shadow: 0 28px 90px rgba(27, 34, 29, 0.16);
  animation: auth-enter 460ms ease both;
}

.auth-intro,
.auth-panel {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(38px, 6vw, 72px);
}

.auth-intro {
  border-right: 1px solid #315c47;
  background: #183d2c;
  color: #f4f2ea;
}

.auth-intro .eyebrow {
  margin-top: 46px;
  color: #b7d3c2;
}

.auth-intro h1 {
  margin: 12px 0 18px;
  font-size: clamp(46px, 6vw, 72px);
  line-height: 0.91;
  letter-spacing: -0.06em;
}

.auth-intro p {
  max-width: 430px;
  color: #c8d6ce;
  font-size: 18px;
}

.auth-proof {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 44px;
  color: #d8e5dd;
  font-size: 12px;
}

.auth-proof span {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #56bd83;
  box-shadow: 0 0 0 8px rgba(86, 189, 131, 0.14);
}

.auth-panel h2 {
  margin: 9px 0 12px;
  font-size: clamp(34px, 4vw, 48px);
  line-height: 0.98;
  letter-spacing: -0.05em;
}

.auth-panel > p {
  color: var(--ink-soft);
}

.auth-panel .form-stack {
  padding: 14px 0 0;
}

.auth-error {
  margin-top: 18px;
  padding: 11px 13px;
  border: 1px solid #e1aaa2;
  border-radius: 10px;
  background: var(--danger-soft);
  color: #7d2822;
  font-weight: 700;
}

.otp-input {
  height: 62px;
  font-family: "Cousine Local", monospace;
  font-size: 28px;
  font-weight: 700;
  letter-spacing: 0.28em;
  text-align: center;
}

.reveal {
  animation: reveal-up 420ms ease both;
}

.reveal:nth-of-type(2) {
  animation-delay: 55ms;
}

.reveal:nth-of-type(3) {
  animation-delay: 100ms;
}

@keyframes reveal-up {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes auth-enter {
  from {
    opacity: 0;
    transform: scale(0.985) translateY(8px);
  }
  to {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}

@keyframes slide-in {
  from {
    opacity: 0;
    transform: translateY(-8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes beacon {
  0%,
  100% {
    box-shadow: 0 0 0 4px var(--signal-soft);
  }
  50% {
    box-shadow: 0 0 0 8px rgba(217, 234, 223, 0.22);
  }
}

@media (max-width: 1180px) {
  .inventory-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .status-board {
    grid-template-columns: 18px minmax(0, 1fr);
  }

  .status-facts {
    grid-column: 2;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    border-top: 1px solid var(--line);
    border-left: 0;
  }

  .status-facts div {
    padding: 18px 14px 0 0;
    border-right: 1px solid var(--line);
    border-bottom: 0;
  }

  .status-facts div + div {
    padding-left: 14px;
  }

  .status-facts div:last-child {
    border-right: 0;
  }
}

@media (max-width: 980px) {
  :root {
    --sidebar: 0px;
  }

  .sidebar {
    width: min(320px, calc(100vw - 44px));
    transform: translateX(-105%);
    box-shadow: 18px 0 50px rgba(20, 26, 22, 0.2);
    transition: transform 200ms ease;
  }

  body.menu-open .sidebar {
    transform: translateX(0);
  }

  .main-area {
    width: 100%;
    margin-left: 0;
    padding-top: 20px;
  }

  .mobile-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 42px;
  }

  .mobile-top .brand-mark {
    width: 36px;
    height: 36px;
    border-radius: 10px;
  }

  .menu-button {
    min-height: 38px;
    padding: 0 13px;
    border: 1px solid var(--line-strong);
    border-radius: 10px;
    background: var(--surface);
    color: var(--ink);
    cursor: pointer;
    font-weight: 700;
  }

  .workspace-grid,
  .settings-grid {
    grid-template-columns: 1fr;
  }

  .metric-strip {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .metric-strip article:nth-child(2) {
    border-right: 0;
  }

  .metric-strip article:nth-child(-n + 2) {
    border-bottom: 1px solid var(--line);
  }

  .auth-layout {
    grid-template-columns: 1fr;
  }

  .auth-intro {
    min-height: 390px;
    border-right: 0;
    border-bottom: 1px solid #315c47;
  }
}

@media (max-width: 720px) {
  .main-area {
    padding: 18px 14px 28px;
  }

  .page-heading {
    grid-template-columns: 1fr;
    align-items: start;
    margin-bottom: 24px;
  }

  .page-heading h1 {
    font-size: clamp(38px, 13vw, 58px);
  }

  .page-actions {
    justify-content: flex-start;
  }

  .status-board {
    grid-template-columns: 12px minmax(0, 1fr);
    gap: 16px;
    padding: 24px 18px;
    border-radius: 20px;
  }

  .status-signal {
    height: 86px;
  }

  .status-copy h2 {
    font-size: 36px;
  }

  .status-facts {
    grid-template-columns: 1fr;
  }

  .status-facts div,
  .status-facts div + div {
    padding: 12px 0;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .metric-strip,
  .restore-grid,
  .inventory-grid,
  .manifest-line {
    grid-template-columns: 1fr;
  }

  .metric-strip article,
  .metric-strip article:nth-child(2) {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .metric-strip article:last-child {
    border-bottom: 0;
  }

  .diagnostic {
    grid-template-columns: 1fr;
  }

  .diagnostic div,
  .diagnostic div + div {
    padding: 15px 0 0;
    border-left: 0;
  }

  .diagnostic div + div {
    margin-top: 15px;
    border-top: 1px solid var(--line);
  }

  .disk-line {
    grid-template-columns: 1fr 48px;
  }

  .disk-line progress {
    grid-column: 1 / -1;
    grid-row: 2;
  }

  .settings-form {
    grid-template-columns: 1fr;
  }

  .form-submit,
  .automation-line {
    grid-template-columns: 1fr;
    flex-direction: column;
    align-items: stretch;
  }

  .manifest-line div + div {
    margin-top: 14px;
    padding: 14px 0 0;
    border-top: 1px solid var(--line);
    border-left: 0;
  }

  .auth-body {
    display: block;
    padding: 10px;
  }

  .auth-layout {
    border-radius: 20px;
  }

  .auth-intro,
  .auth-panel {
    padding: 38px 28px;
  }

  .auth-intro {
    min-height: 360px;
  }

  .auth-intro h1 {
    font-size: 48px;
  }
}

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