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

.brand-lockup {
  align-items: center;
  color: var(--ink);
  display: inline-flex;
  font-size: 27px;
  font-weight: 720;
  gap: 12px;
  letter-spacing: 0;
  line-height: 1;
  text-decoration: none;
}

.brand-word span {
  color: var(--muted);
  font-weight: 620;
}

.brand-mark {
  display: inline-flex;
  flex: 0 0 auto;
  height: 45px;
  width: 45px;
}

.brand-mark svg {
  display: block;
  height: 100%;
  overflow: visible;
  width: 100%;
}

.brand-mark__layer {
  fill: rgba(255, 255, 255, 0.02);
  stroke-linejoin: round;
  stroke-width: 7.5;
  vector-effect: non-scaling-stroke;
}

.brand-mark__layer--red {
  stroke: var(--brand-red);
}

.brand-mark__layer--orange {
  opacity: 0.92;
  stroke: var(--brand-orange);
}

.brand-mark__layer--yellow {
  opacity: 0.84;
  stroke: var(--brand-yellow);
}

.user-chip {
  align-items: center;
  background: rgba(255, 255, 255, 0.76);
  border: 1px solid rgba(230, 189, 168, 0.84);
  border-radius: 8px;
  color: var(--ink);
  display: inline-flex;
  gap: 10px;
  min-height: 44px;
  padding: 8px 12px;
  text-decoration: none;
}

.user-chip {
  color: var(--muted);
  font-size: 12px;
}

.team-avatar,
.action-glyph {
  align-items: center;
  background: var(--accent-soft);
  border: 1px solid rgba(239, 47, 40, 0.18);
  border-radius: 7px;
  color: var(--accent);
  display: inline-flex;
  font-size: 11px;
  font-weight: 720;
  height: 34px;
  justify-content: center;
  width: 34px;
}

.workspace {
  min-width: 0;
  padding: clamp(26px, 4vw, 56px);
  width: 100%;
}

.workspace-header {
  align-items: center;
  display: flex;
  gap: 24px;
  justify-content: space-between;
  margin-bottom: 24px;
}

.workspace-header h1 {
  color: var(--ink);
  font-size: clamp(32px, 4vw, 54px);
  font-weight: 720;
  letter-spacing: 0;
  line-height: 0.98;
  margin: 0;
}

.workspace-lede {
  color: var(--muted);
  font-size: 16px;
  line-height: 1.55;
  margin: 14px 0 0;
  max-width: 58ch;
}

.header-actions,
.row-actions,
.inline-form,
.callout-actions {
  align-items: center;
  display: flex;
  gap: 10px;
}

.page-label {
  color: var(--accent);
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 650;
  letter-spacing: 0.08em;
  margin: 0 0 7px;
  text-transform: uppercase;
}

.muted-text,
.data-row small {
  color: var(--muted);
  display: block;
  font-size: 13px;
  line-height: 1.35;
}

.button {
  align-items: center;
  background: linear-gradient(135deg, var(--brand-red), var(--accent-strong));
  border: 1px solid var(--accent-strong);
  border-radius: 7px;
  box-shadow: 0 13px 28px -20px rgba(239, 47, 40, 0.72), inset 0 1px 0 rgba(255, 255, 255, 0.32);
  color: #fff;
  cursor: pointer;
  display: inline-flex;
  font: inherit;
  font-size: 13px;
  font-weight: 680;
  justify-content: center;
  max-width: 100%;
  min-height: 38px;
  padding: 9px 14px;
  text-align: center;
  text-decoration: none;
  transition: transform 180ms cubic-bezier(0.16, 1, 0.3, 1), box-shadow 180ms cubic-bezier(0.16, 1, 0.3, 1);
}

.button:hover {
  box-shadow: 0 16px 34px -20px rgba(239, 47, 40, 0.82), inset 0 1px 0 rgba(255, 255, 255, 0.36);
}

.button:active {
  transform: translateY(1px) scale(0.99);
}

.button--ghost {
  background: rgba(255, 255, 255, 0.68);
  border-color: rgba(230, 189, 168, 0.9);
  box-shadow: none;
  color: var(--ink);
}

.button--danger {
  background: var(--danger-bg);
  border-color: #e5aa95;
  box-shadow: none;
  color: var(--danger);
}

.button--small {
  font-size: 12px;
  min-height: 32px;
  padding: 7px 10px;
}

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

.flash-stack {
  display: grid;
  gap: 8px;
  left: 30px;
  max-width: 760px;
  position: fixed;
  right: 30px;
  top: 18px;
  z-index: 20;
}

.flash {
  background: rgba(255, 254, 252, 0.94);
  border: 1px solid var(--border-strong);
  border-radius: 8px;
  box-shadow: var(--shadow-soft);
  margin: 0;
  padding: 12px 14px;
}

.flash--notice {
  border-color: #9bcda7;
}

.flash--alert,
.flash--secret {
  border-color: #e3a475;
}

.flash--secret {
  display: grid;
  gap: 8px;
}

.flash code,
.data-row code {
  background: rgba(255, 243, 235, 0.86);
  border: 1px solid var(--border);
  border-radius: 6px;
  color: #4a3a32;
  font-family: var(--font-mono);
  font-size: 12px;
  padding: 5px 7px;
}

.metric-strip {
  background: rgba(255, 254, 252, 0.78);
  border: 1px solid var(--border);
  border-radius: 8px;
  box-shadow: var(--shadow-soft);
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  margin-bottom: 18px;
  overflow: hidden;
}

.metric-strip div {
  border-right: 1px solid rgba(230, 189, 168, 0.72);
  min-width: 0;
  padding: 18px 20px;
}

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

.metric-strip span,
.metric-strip small {
  color: var(--muted);
  display: block;
  font-size: 12px;
  font-weight: 560;
}

.metric-strip strong {
  color: var(--ink);
  display: block;
  font-size: clamp(24px, 3vw, 34px);
  font-weight: 760;
  letter-spacing: 0;
  line-height: 1;
  margin-top: 7px;
}

.content-grid {
  display: grid;
  gap: 18px;
  grid-template-columns: minmax(0, 1.6fr) minmax(300px, 0.8fr);
  margin-bottom: 18px;
}

.surface,
.signed-out,
.callout-bar {
  background: rgba(255, 254, 252, 0.82);
  border: 1px solid var(--border);
  border-radius: 8px;
  box-shadow: var(--shadow-soft);
}

.surface {
  margin-bottom: 18px;
  min-width: 0;
  overflow: hidden;
}

.surface--wide {
  min-width: 0;
}

.surface-header {
  align-items: center;
  border-bottom: 1px solid rgba(230, 189, 168, 0.62);
  display: flex;
  gap: 16px;
  justify-content: space-between;
  padding: 18px 20px;
}

.surface-header h2,
.signed-out h1 {
  color: var(--ink);
  font-size: 19px;
  font-weight: 720;
  letter-spacing: 0;
  margin: 0;
}

.callout-bar {
  align-items: center;
  display: flex;
  gap: 14px;
  justify-content: space-between;
  margin-bottom: 18px;
  padding: 15px 16px;
}

.callout-bar span {
  color: var(--muted);
  display: block;
  font-size: 13px;
  margin-top: 3px;
}

.signed-out {
  max-width: 720px;
  padding: 34px;
}

.stack-form,
.settings-grid,
.auth-form {
  display: grid;
  gap: 14px;
  padding: 20px;
}

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

.stack-form--inline {
  align-items: end;
  border-bottom: 1px solid var(--border);
  grid-template-columns: minmax(220px, 1fr) max-content;
}

.field {
  display: grid;
  gap: 7px;
}

.field label,
.checkbox-field {
  color: #463b35;
  font-size: 13px;
  font-weight: 650;
}

.field input[type="email"],
.field input[type="text"],
.field input[type="number"],
.field input[type="password"],
.inline-form input[type="password"],
.field select,
.inline-form select {
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid var(--border-strong);
  border-radius: 7px;
  box-shadow: inset 0 1px 0 rgba(76, 40, 26, 0.04);
  color: var(--ink);
  font: inherit;
  font-size: 14px;
  min-height: 40px;
  padding: 9px 11px;
}

.form-actions {
  align-items: end;
  display: flex;
}

.checkbox-field {
  align-items: center;
  display: flex;
  gap: 9px;
}

.data-row strong,
.callout-bar strong {
  font-weight: 720;
}

.row-actions {
  justify-content: flex-end;
}

@media (max-width: 980px) {
  .workspace {
    padding: 22px;
  }

  .flash-stack {
    left: 22px;
    right: 22px;
  }

  .content-grid,
  .stack-form--inline {
    grid-template-columns: 1fr;
  }

}

@media (max-width: 760px) {
  .brand-lockup {
    font-size: 24px;
  }

  .workspace-header,
  .callout-bar {
    align-items: stretch;
    flex-direction: column;
  }

  .header-actions,
  .row-actions,
  .inline-form,
  .callout-actions {
    align-items: stretch;
    flex-direction: column;
  }

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

  .metric-strip div {
    border-bottom: 1px solid var(--border);
    border-right: 0;
  }

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

}
