:root {
  color-scheme: light;
  --cobalt: #1766d9;
  --cobalt-dark: #0b4fb8;
  --ink: #172033;
  --slate: #5f6c82;
  --line: #dde4ee;
  --paper: #f8fafd;
  --mist-blue: #eaf2ff;
  --white: #ffffff;
  --red: #c9343a;
  --red-soft: #fff0f1;
  --green: #13795b;
  --green-soft: #eaf8f3;
  --orange: #9a4c05;
  --shadow: 0 16px 48px rgba(23, 32, 51, 0.08);
  font-family: Inter, "Segoe UI", "PingFang SC", "Microsoft YaHei", system-ui, sans-serif;
  font-synthesis: none;
}

* {
  box-sizing: border-box;
}

[hidden] {
  display: none !important;
}

html {
  min-width: 320px;
  background: var(--paper);
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--ink);
  background: var(--paper);
}

.admin-page {
  overflow-x: hidden;
  background: #f5f7fb;
}

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

.admin-sidebar {
  position: fixed;
  z-index: 40;
  inset: 0 auto 0 0;
  display: flex;
  width: 264px;
  padding: 24px 18px 18px;
  flex-direction: column;
  color: #eef4ff;
  background:
    radial-gradient(circle at 18% 0%, rgba(67, 132, 238, 0.25), transparent 34%),
    linear-gradient(180deg, #122442 0%, #0b1930 100%);
  box-shadow: 16px 0 50px rgba(10, 23, 45, 0.08);
}

.sidebar-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 54px;
  padding: 4px 8px;
  color: #fff;
  text-decoration: none;
}

.sidebar-brand-mark {
  display: grid;
  flex: 0 0 auto;
  width: 42px;
  height: 42px;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 13px;
  color: #fff;
  background: linear-gradient(145deg, #2b7ae8, #1766d9);
  box-shadow: 0 10px 24px rgba(23, 102, 217, 0.3);
  font-size: 18px;
  font-weight: 820;
}

.sidebar-brand strong,
.sidebar-brand small {
  display: block;
}

.sidebar-brand strong {
  font-size: 16px;
  letter-spacing: 0.01em;
}

.sidebar-brand small {
  margin-top: 3px;
  color: #96a8c5;
  font-size: 11px;
  letter-spacing: 0.08em;
}

.sidebar-nav {
  display: grid;
  gap: 6px;
  margin-top: 36px;
}

.sidebar-nav > p {
  margin: 0 10px 8px;
  color: #7085a6;
  font-size: 10px;
  font-weight: 760;
  letter-spacing: 0.16em;
}

.sidebar-link,
.sidebar-logout {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  min-height: 48px;
  padding: 0 13px;
  border: 0;
  border-radius: 12px;
  color: #aebdd4;
  background: transparent;
  cursor: pointer;
  font-size: 13px;
  font-weight: 680;
  text-align: left;
  transition: color 160ms ease, background 160ms ease, transform 160ms ease;
}

.sidebar-link svg,
.sidebar-logout svg {
  width: 19px;
  height: 19px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.sidebar-link:hover,
.sidebar-logout:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.07);
}

.sidebar-link.active {
  color: #fff;
  background: linear-gradient(90deg, rgba(42, 121, 232, 0.32), rgba(42, 121, 232, 0.12));
  box-shadow: inset 3px 0 0 #5da0ff;
}

.sidebar-footer {
  display: grid;
  gap: 10px;
  margin-top: auto;
}

.sidebar-server-card {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 13px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 13px;
  background: rgba(255, 255, 255, 0.04);
}

.server-dot,
.status-badge > span,
.production-chip > span {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #35c88a;
  box-shadow: 0 0 0 4px rgba(53, 200, 138, 0.13);
}

.server-dot {
  flex: 0 0 auto;
  margin-top: 4px;
}

.sidebar-server-card strong,
.sidebar-server-card span {
  display: block;
}

.sidebar-server-card strong {
  color: #edf4ff;
  font-size: 12px;
}

.sidebar-server-card .environment-badge,
.sidebar-server-card > div > span {
  margin-top: 4px;
  padding: 0;
  color: #8297b6;
  background: transparent;
  font-size: 10px;
}

.sidebar-server-card .environment-badge.online {
  color: #71d7af;
  background: transparent;
}

.sidebar-server-card .environment-badge.offline {
  color: #ff9b9f;
  background: transparent;
}

.sidebar-logout {
  color: #8fa2bf;
}

.admin-workspace {
  min-width: 0;
  min-height: 100vh;
  margin-left: 264px;
}

.workspace-topbar {
  position: sticky;
  z-index: 25;
  top: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 74px;
  padding: 0 32px;
  border-bottom: 1px solid #e2e7ef;
  background: rgba(255, 255, 255, 0.93);
  backdrop-filter: blur(16px);
}

.workspace-heading,
.workspace-actions {
  display: flex;
  align-items: center;
}

.workspace-heading {
  gap: 13px;
}

.workspace-heading span,
.workspace-heading strong {
  display: block;
}

.workspace-heading span {
  color: #8590a4;
  font-size: 10px;
  font-weight: 720;
  letter-spacing: 0.12em;
}

.workspace-heading strong {
  margin-top: 3px;
  font-size: 17px;
}

.workspace-actions {
  gap: 14px;
}

.workspace-freshness {
  color: #7e899b;
  font-size: 11px;
}

.sidebar-toggle {
  display: none;
  width: 42px;
  min-height: 42px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 11px;
  background: #fff;
}

.sidebar-toggle span {
  display: block;
  height: 2px;
  margin: 4px 0;
  border-radius: 2px;
  background: var(--ink);
}

.workspace-content {
  width: min(100% - 56px, 1420px);
  margin: 0 auto;
  padding: 36px 0 54px;
}

.admin-view:not(.active) {
  display: none;
}

.view-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
}

.view-heading h1 {
  margin: 0;
  font-size: clamp(28px, 3vw, 40px);
  letter-spacing: -0.045em;
}

.view-heading > div > p:last-child {
  max-width: 680px;
  margin: 10px 0 0;
  color: var(--slate);
  font-size: 14px;
  line-height: 1.7;
}

.production-chip,
.status-badge {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  min-height: 36px;
  padding: 0 13px;
  border: 1px solid #d8e8df;
  border-radius: 999px;
  color: var(--green);
  background: #f3fbf7;
  font-size: 11px;
  font-weight: 700;
}

.production-chip > span,
.status-badge > span {
  width: 7px;
  height: 7px;
}

.admin-view .metrics-grid {
  margin-top: 28px;
}

.overview-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  gap: 18px;
  margin-top: 18px;
}

.overview-card {
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: #fff;
  box-shadow: 0 10px 32px rgba(23, 32, 51, 0.04);
}

.overview-card-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
}

.overview-card h2 {
  margin: 0;
  font-size: 19px;
}

.system-facts {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  margin: 22px 0 0;
  border: 1px solid #e6ebf2;
  border-radius: 14px;
  overflow: hidden;
}

.system-facts > div {
  padding: 15px;
  background: #fbfcfe;
}

.system-facts > div:nth-child(odd) {
  border-right: 1px solid #e6ebf2;
}

.system-facts > div:nth-child(-n+2) {
  border-bottom: 1px solid #e6ebf2;
}

.system-facts dt {
  color: var(--slate);
  font-size: 10px;
}

.system-facts dd {
  margin: 6px 0 0;
  font-size: 13px;
  font-weight: 700;
}

.system-facts > .offsite-backup-row {
  grid-column: 1 / -1;
  border-top: 1px solid #e6ebf2;
  border-right: 0;
}

#offsite-backup-status[data-state="ok"] { color: #176747; }
#offsite-backup-status[data-state="error"],
#offsite-backup-status[data-state="stale"],
#offsite-backup-status[data-state="unverified"] { color: #90520a; }

.quick-card {
  display: grid;
  gap: 10px;
}

.quick-card > div {
  margin-bottom: 4px;
}

.quick-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  width: 100%;
  min-height: 72px;
  padding: 14px 16px;
  border: 1px solid #e4eaf3;
  border-radius: 14px;
  color: var(--ink);
  background: #fbfcfe;
  cursor: pointer;
  text-align: left;
}

.quick-link:hover {
  border-color: #bed3f2;
  background: var(--mist-blue);
}

.quick-link strong,
.quick-link small {
  display: block;
}

.quick-link strong {
  font-size: 13px;
}

.quick-link small {
  margin-top: 5px;
  color: var(--slate);
  font-size: 11px;
}

.quick-link b {
  color: var(--cobalt);
  font-size: 19px;
  font-weight: 500;
}

.admin-view .accounts-panel,
.admin-view .release-panel {
  margin-top: 26px;
}

.sidebar-scrim {
  position: fixed;
  z-index: 35;
  inset: 0;
  min-height: 100vh;
  border: 0;
  background: rgba(8, 20, 39, 0.48);
  backdrop-filter: blur(2px);
}

button,
input,
textarea {
  font: inherit;
}

button,
a,
input,
textarea {
  -webkit-tap-highlight-color: transparent;
}

button {
  min-height: 44px;
}

button:focus-visible,
a:focus-visible,
input:focus-visible {
  outline: 3px solid rgba(23, 102, 217, 0.24);
  outline-offset: 2px;
}

textarea:focus-visible {
  outline: 3px solid rgba(23, 102, 217, 0.24);
  outline-offset: 2px;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.eyebrow {
  margin: 0 0 10px;
  color: var(--cobalt);
  font-size: 12px;
  font-weight: 760;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.primary-button,
.outline-button,
.quiet-button,
.danger-button,
.table-action {
  border-radius: 12px;
  cursor: pointer;
  font-weight: 650;
  transition: background-color 150ms ease, border-color 150ms ease, color 150ms ease, transform 150ms ease;
}

.primary-button {
  border: 1px solid var(--cobalt-dark);
  color: var(--white);
  background: var(--cobalt-dark);
  padding: 0 18px;
}

.primary-button:hover {
  background: #08459f;
}

.outline-button {
  border: 1px solid #b9c7da;
  color: var(--cobalt-dark);
  background: transparent;
  padding: 0 16px;
}

.outline-button:hover,
.quiet-button:hover {
  background: var(--mist-blue);
}

.quiet-button {
  border: 1px solid transparent;
  color: var(--cobalt-dark);
  background: transparent;
  padding: 0 14px;
}

.danger-button {
  border: 1px solid var(--red);
  color: var(--white);
  background: var(--red);
  padding: 0 18px;
}

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

.login-page {
  display: grid;
  place-items: center;
  padding: 32px;
}

.login-shell {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(360px, 0.85fr);
  width: min(1060px, 100%);
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 28px;
  background: var(--white);
  box-shadow: var(--shadow);
}

.login-intro {
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 610px;
  padding: clamp(44px, 7vw, 84px);
  color: var(--white);
  background: var(--cobalt-dark);
}

.login-intro .eyebrow {
  color: #cfe0ff;
}

.login-intro h1 {
  max-width: 550px;
  margin: 0;
  font-size: clamp(38px, 5vw, 62px);
  line-height: 1.08;
  letter-spacing: -0.045em;
}

.login-lead {
  max-width: 520px;
  margin: 24px 0 0;
  color: #dce8ff;
  font-size: 16px;
  line-height: 1.8;
}

.trust-row {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  margin-top: 42px;
}

.trust-row span {
  padding: 8px 12px;
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: 999px;
  color: #eff5ff;
  font-size: 12px;
}

.login-card {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(36px, 5vw, 64px);
}

.product-lockup {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 54px;
}

.product-name {
  color: var(--ink);
  font-size: 18px;
  font-weight: 800;
}

.product-context {
  padding-left: 10px;
  border-left: 1px solid var(--line);
  color: var(--slate);
  font-size: 13px;
}

.login-heading h2 {
  margin: 0;
  font-size: 30px;
  letter-spacing: -0.025em;
}

.login-heading p,
.security-note {
  color: var(--slate);
  line-height: 1.65;
}

.login-heading p {
  margin: 8px 0 0;
  font-size: 14px;
}

.form-error {
  margin: 18px 0 0;
  padding: 12px 14px;
  border-radius: 12px;
  color: #9f2027;
  background: var(--red-soft);
  font-size: 13px;
}

.form-error:empty {
  display: none;
}

.login-form {
  display: grid;
  gap: 18px;
  margin-top: 28px;
}

.login-form label,
.search-field {
  display: grid;
  gap: 8px;
  color: var(--slate);
  font-size: 12px;
  font-weight: 650;
}

.login-form input,
.search-field input {
  width: 100%;
  min-height: 48px;
  border: 1px solid #c8d2e0;
  border-radius: 13px;
  color: var(--ink);
  background: var(--white);
  padding: 0 14px;
}

.login-form input:focus,
.search-field input:focus {
  border-color: var(--cobalt);
}

.login-form .primary-button {
  margin-top: 4px;
  min-height: 50px;
}

.security-note {
  margin: 20px 0 0;
  font-size: 12px;
}

.topbar {
  position: sticky;
  z-index: 10;
  top: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 72px;
  padding: 0 max(24px, calc((100vw - 1240px) / 2));
  border-bottom: 1px solid rgba(221, 228, 238, 0.92);
  background: rgba(248, 250, 253, 0.96);
  backdrop-filter: blur(14px);
}

.brand {
  display: flex;
  align-items: center;
  min-height: 44px;
  color: inherit;
  text-decoration: none;
}

.brand-title {
  font-size: 18px;
  font-weight: 820;
}

.brand-divider {
  width: 1px;
  height: 20px;
  margin: 0 12px;
  background: #c9d4e3;
}

.brand-section {
  color: var(--slate);
  font-size: 13px;
}

.top-actions {
  display: flex;
  gap: 6px;
}

.dashboard-shell {
  width: min(1240px, calc(100% - 48px));
  margin: 0 auto;
  padding: 46px 0 52px;
}

.page-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
}

.page-heading h1 {
  margin: 0;
  font-size: clamp(32px, 4vw, 48px);
  line-height: 1.15;
  letter-spacing: -0.04em;
}

.page-heading p:not(.eyebrow) {
  margin: 12px 0 0;
  color: var(--slate);
  font-size: 15px;
  line-height: 1.7;
}

.environment-badge {
  flex: 0 0 auto;
  padding: 9px 13px;
  border-radius: 999px;
  color: var(--orange);
  background: #fff5e9;
  font-size: 12px;
  font-weight: 720;
}

.environment-badge.online {
  color: var(--green);
  background: var(--green-soft);
}

.environment-badge.offline {
  color: #9f2027;
  background: var(--red-soft);
}

.metrics-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  margin-top: 34px;
}

.metric-card {
  min-height: 168px;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: var(--white);
}

.metric-card p,
.metric-card span {
  margin: 0;
  color: var(--slate);
}

.metric-card p {
  font-size: 13px;
  font-weight: 680;
}

.metric-card strong {
  display: block;
  margin: 16px 0 9px;
  font-size: 36px;
  letter-spacing: -0.04em;
}

.metric-card span {
  font-size: 12px;
}

.accent-card {
  border-color: #c9dcfa;
  background: var(--mist-blue);
}

.accent-card strong {
  color: var(--cobalt-dark);
}

.release-panel {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(420px, 1.1fr);
  gap: 34px;
  margin-top: 18px;
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: var(--white);
  box-shadow: 0 10px 32px rgba(23, 32, 51, 0.05);
}

.release-copy h2 {
  margin: 0;
  font-size: 24px;
  letter-spacing: -0.02em;
}

.release-copy > p:not(.eyebrow) {
  margin: 10px 0 0;
  color: var(--slate);
  font-size: 14px;
  line-height: 1.75;
}

.current-release {
  margin-top: 22px;
  padding: 16px;
  border: 1px solid #c9d8ec;
  border-radius: 15px;
  background: var(--mist-blue);
}

.release-status {
  color: var(--slate);
  font-size: 13px;
}

.release-version-line {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
}

.release-version-line strong {
  font-size: 18px;
}

.release-version-line span,
.release-meta,
.release-notes-preview {
  color: var(--slate);
  font-size: 12px;
}

.release-meta,
.release-notes-preview {
  margin: 8px 0 0;
  line-height: 1.6;
  overflow-wrap: anywhere;
}

.release-form {
  display: grid;
  gap: 14px;
}

.release-form label > span:first-child,
.release-fields label > span:first-child {
  display: block;
  margin-bottom: 7px;
  color: var(--ink);
  font-size: 12px;
  font-weight: 700;
}

.release-form input[type="text"],
.release-form input[type="number"],
.release-form input[type="file"],
.release-form textarea {
  width: 100%;
  min-height: 44px;
  border: 1px solid #bdc9da;
  border-radius: 12px;
  color: var(--ink);
  background: var(--white);
}

.release-form input[type="text"],
.release-form input[type="number"],
.release-form textarea {
  padding: 10px 12px;
}

.release-form input[type="file"] {
  padding: 7px;
  color: var(--slate);
}

.release-form input[type="file"]::file-selector-button {
  min-height: 30px;
  margin-right: 10px;
  border: 0;
  border-radius: 8px;
  padding: 0 12px;
  color: var(--cobalt-dark);
  background: var(--mist-blue);
  cursor: pointer;
  font-weight: 650;
}

.release-form textarea {
  resize: vertical;
  line-height: 1.55;
}

.release-fields {
  display: grid;
  grid-template-columns: 0.7fr 1.3fr;
  gap: 12px;
}

.mandatory-toggle {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 12px;
  border-radius: 12px;
  background: var(--paper);
  cursor: pointer;
}

.mandatory-toggle input {
  width: 18px;
  height: 18px;
  margin: 1px 0 0;
  accent-color: var(--cobalt);
}

.mandatory-toggle span {
  display: grid;
  gap: 3px;
}

.mandatory-toggle strong {
  font-size: 13px;
}

.mandatory-toggle small,
.release-hint {
  color: var(--slate);
  font-size: 11px;
  line-height: 1.6;
}

.release-progress > div {
  display: flex;
  justify-content: space-between;
  margin-bottom: 7px;
  color: var(--slate);
  font-size: 12px;
}

.release-progress progress {
  width: 100%;
  height: 8px;
  accent-color: var(--cobalt);
}

.release-submit {
  width: 100%;
}

.release-hint {
  margin: -4px 0 0;
}

.accounts-panel {
  margin-top: 20px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: var(--white);
  box-shadow: 0 10px 34px rgba(23, 32, 51, 0.04);
}

.panel-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  padding: 24px;
  border-bottom: 1px solid var(--line);
}

.panel-heading h2 {
  margin: 0;
  font-size: 20px;
}

.panel-heading p {
  margin: 6px 0 0;
  color: var(--slate);
  font-size: 13px;
}

.panel-heading .data-freshness {
  margin-top: 4px;
  color: #748198;
  font-size: 12px;
}

.search-field {
  width: min(320px, 100%);
}

.table-scroll {
  overflow-x: auto;
}

table {
  width: 100%;
  border-collapse: collapse;
}

th,
td {
  padding: 17px 20px;
  border-bottom: 1px solid #edf1f6;
  text-align: left;
  vertical-align: middle;
}

th {
  color: var(--slate);
  background: #fbfcfe;
  font-size: 11px;
  font-weight: 720;
  letter-spacing: 0.04em;
}

td {
  font-size: 13px;
}

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

tbody tr:hover {
  background: #fbfdff;
}

.account-cell {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 250px;
}

.account-link {
  min-height: 0;
  padding: 0;
  border: 0;
  color: inherit;
  background: transparent;
  text-align: left;
  cursor: pointer;
}

.account-link:hover .account-name,
.account-link:focus-visible .account-name {
  color: var(--cobalt-dark);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.avatar {
  display: grid;
  flex: 0 0 auto;
  width: 40px;
  height: 40px;
  place-items: center;
  border-radius: 13px;
  color: var(--cobalt-dark);
  background: var(--mist-blue);
  font-size: 13px;
  font-weight: 820;
}

.account-name {
  display: block;
  font-weight: 720;
  overflow-wrap: anywhere;
}

.account-email,
.muted {
  display: block;
  margin-top: 3px;
  color: var(--slate);
  font-size: 12px;
  overflow-wrap: anywhere;
}

.account-cell > div {
  min-width: 0;
}

.status-pill {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 0 10px;
  border-radius: 999px;
  color: var(--green);
  background: var(--green-soft);
  font-size: 12px;
  font-weight: 720;
}

.status-pill.disabled {
  color: #9f2027;
  background: var(--red-soft);
}

.action-group {
  display: flex;
  justify-content: flex-end;
  gap: 6px;
  min-width: 290px;
}

.storage-summary {
  display: grid;
  min-width: 116px;
  gap: 5px;
}

.storage-summary strong {
  font-size: 12px;
}

.storage-summary progress,
.storage-hero progress {
  width: 100%;
  height: 7px;
  border: 0;
  border-radius: 999px;
  overflow: hidden;
  accent-color: var(--cobalt);
}

.storage-summary progress::-webkit-progress-bar,
.storage-hero progress::-webkit-progress-bar {
  border-radius: 999px;
  background: #e4eaf3;
}

.storage-summary progress::-webkit-progress-value,
.storage-hero progress::-webkit-progress-value {
  border-radius: 999px;
  background: var(--cobalt);
}

.table-action {
  min-height: 38px;
  padding: 0 10px;
  border: 1px solid transparent;
  color: var(--cobalt-dark);
  background: transparent;
  font-size: 12px;
}

.table-action:hover {
  background: var(--mist-blue);
}

.table-action.danger {
  color: var(--red);
}

.table-action.danger:hover {
  background: var(--red-soft);
}

.state-card {
  display: grid;
  place-items: center;
  min-height: 240px;
  padding: 28px;
  color: var(--slate);
  text-align: center;
}

.state-card strong {
  color: var(--ink);
  font-size: 16px;
}

.state-card span {
  margin: 6px 0 18px;
  font-size: 13px;
}

.error-state {
  background: #fffafa;
}

.account-card-list {
  display: none;
}

.pagination {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  padding: 14px 18px;
  border-top: 1px solid var(--line);
  color: var(--slate);
  font-size: 12px;
}

.footer-note {
  margin: 16px 4px 0;
  color: var(--slate);
  font-size: 12px;
  line-height: 1.7;
}

.toast {
  position: fixed;
  z-index: 30;
  right: 24px;
  bottom: 24px;
  max-width: min(380px, calc(100vw - 32px));
  padding: 13px 16px;
  border: 1px solid #c7dafa;
  border-radius: 14px;
  color: var(--ink);
  background: var(--white);
  box-shadow: var(--shadow);
  font-size: 13px;
}

.confirm-dialog {
  width: min(440px, calc(100% - 32px));
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 20px;
  color: var(--ink);
  background: var(--white);
  box-shadow: var(--shadow);
}

.account-detail-dialog {
  width: min(880px, calc(100% - 32px));
  max-height: min(88vh, 940px);
  padding: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 22px;
  color: var(--ink);
  background: var(--white);
  box-shadow: var(--shadow);
}

.account-detail-dialog::backdrop {
  background: rgba(23, 32, 51, 0.48);
  backdrop-filter: blur(2px);
}

.account-detail-dialog > article {
  max-height: min(88vh, 940px);
  overflow-y: auto;
}

.detail-dialog-header {
  position: sticky;
  z-index: 2;
  top: 0;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  padding: 24px 26px 20px;
  border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(14px);
}

.detail-dialog-header h2 {
  margin: 0;
  font-size: 24px;
  overflow-wrap: anywhere;
}

.detail-dialog-header > div > p:last-child {
  margin: 5px 0 0;
  color: var(--slate);
  font-size: 13px;
  overflow-wrap: anywhere;
}

.detail-close {
  display: grid;
  flex: 0 0 auto;
  width: 42px;
  min-height: 42px;
  place-items: center;
  border: 0;
  border-radius: 50%;
  color: var(--slate);
  background: var(--paper);
  cursor: pointer;
  font-size: 25px;
  line-height: 1;
}

.detail-close:hover {
  color: var(--ink);
  background: var(--mist-blue);
}

.detail-loading,
.detail-error {
  padding: 70px 26px;
  color: var(--slate);
  text-align: center;
}

.detail-error {
  color: var(--red);
}

.detail-content {
  display: grid;
  gap: 16px;
  padding: 20px 26px 28px;
}

.detail-section {
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 17px;
  background: var(--white);
}

.detail-section-heading {
  margin-bottom: 16px;
}

.detail-section-heading h3 {
  margin: 0;
  font-size: 17px;
}

.detail-section-heading p {
  margin: 5px 0 0;
  color: var(--slate);
  font-size: 12px;
  line-height: 1.65;
}

.detail-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.detail-field {
  min-width: 0;
  padding: 13px 14px;
  border-radius: 12px;
  background: var(--paper);
}

.detail-field > span,
.detail-field > small {
  display: block;
  color: var(--slate);
  font-size: 11px;
  line-height: 1.5;
}

.detail-field > strong {
  display: block;
  margin-top: 5px;
  font-size: 13px;
  overflow-wrap: anywhere;
}

.detail-field > small {
  margin-top: 4px;
}

.storage-hero {
  margin-bottom: 12px;
  padding: 17px;
  border-radius: 14px;
  color: var(--cobalt-dark);
  background: var(--mist-blue);
}

.storage-hero > div {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 10px;
}

.storage-hero strong {
  font-size: 19px;
}

.storage-hero span {
  font-size: 12px;
}

.record-detail-list,
.session-list {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 13px;
}

.record-detail-item,
.session-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 12px 14px;
  border-bottom: 1px solid var(--line);
}

.record-detail-item:last-child,
.session-item:last-child {
  border-bottom: 0;
}

.record-detail-item strong,
.record-detail-item span,
.session-item strong,
.session-item span {
  display: block;
  overflow-wrap: anywhere;
}

.record-detail-item > div > span,
.session-item > div > span,
.record-counts {
  margin-top: 3px;
  color: var(--slate);
  font-size: 11px;
}

.record-counts {
  flex: 0 0 auto;
  margin: 0;
  text-align: right;
}

.session-list {
  margin-top: 12px;
}

.session-item > div {
  min-width: 0;
}

.session-item > div > strong {
  max-width: 620px;
  font-size: 12px;
}

.session-state {
  flex: 0 0 auto;
  padding: 5px 8px;
  border-radius: 999px;
  color: var(--slate);
  background: var(--paper);
  font-size: 11px;
  font-weight: 700;
}

.session-state.active {
  color: var(--green);
  background: var(--green-soft);
}

.detail-empty {
  margin: 0;
  padding: 18px;
  color: var(--slate);
  font-size: 12px;
  text-align: center;
}

.confirm-dialog::backdrop {
  background: rgba(23, 32, 51, 0.42);
}

.confirm-dialog form {
  padding: 26px;
}

.confirm-dialog h2 {
  margin: 0;
  font-size: 22px;
}

.confirm-dialog p:not(.eyebrow) {
  margin: 10px 0 0;
  color: var(--slate);
  font-size: 14px;
  line-height: 1.7;
}

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

@media (max-width: 900px) {
  .login-shell {
    grid-template-columns: 1fr;
    max-width: 620px;
  }

  .login-intro {
    min-height: auto;
    padding: 44px;
  }

  .login-intro h1 {
    font-size: 40px;
  }

  .product-lockup {
    margin-bottom: 38px;
  }

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

  .release-panel {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .table-scroll {
    display: none;
  }

  .account-card-list {
    display: grid;
    gap: 12px;
    padding: 16px;
  }

  .account-card {
    padding: 16px;
    border: 1px solid var(--line);
    border-radius: 17px;
    background: var(--white);
  }

  .account-card-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
  }

  .account-card-header .account-cell {
    min-width: 0;
  }

  .account-card-header .status-pill {
    flex: 0 0 auto;
  }

  .account-card-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    margin-top: 16px;
    padding: 14px;
    border-radius: 13px;
    background: var(--paper);
  }

  .account-card-grid span {
    display: block;
    color: var(--slate);
    font-size: 11px;
  }

  .account-card-grid strong {
    display: block;
    margin-top: 5px;
    font-size: 13px;
  }

  .account-card .action-group {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    min-width: 0;
    margin-top: 12px;
    padding-top: 10px;
    border-top: 1px solid var(--line);
  }
}

@media (max-width: 640px) {
  .login-page {
    display: block;
    padding: 0;
    background: var(--white);
  }

  .login-shell {
    width: 100%;
    border: 0;
    border-radius: 0;
    box-shadow: none;
  }

  .login-intro {
    padding: 28px 24px;
  }

  .login-intro h1 {
    font-size: 30px;
    line-height: 1.14;
  }

  .login-lead {
    margin-top: 12px;
    font-size: 13px;
    line-height: 1.65;
  }

  .trust-row {
    display: none;
  }

  .login-card {
    padding: 32px 24px 42px;
  }

  .topbar {
    padding: 0 16px;
  }

  .brand-section,
  .brand-divider {
    display: none;
  }

  .top-actions {
    gap: 2px;
  }

  .top-actions .quiet-button,
  .top-actions .outline-button {
    padding-inline: 10px;
    font-size: 13px;
  }

  .dashboard-shell {
    width: min(100% - 28px, 1240px);
    padding-top: 30px;
  }

  .page-heading {
    display: block;
  }

  .environment-badge {
    display: inline-block;
    margin-top: 16px;
  }

  .metrics-grid {
    grid-template-columns: 1fr 1fr;
    gap: 10px;
  }

  .metric-card {
    min-height: 146px;
    padding: 17px;
    border-radius: 17px;
  }

  .metric-card strong {
    margin-top: 13px;
    font-size: 30px;
  }

  .release-panel {
    margin-top: 12px;
    padding: 18px;
    border-radius: 17px;
  }

  .release-copy h2 {
    font-size: 21px;
  }

  .release-fields {
    grid-template-columns: 1fr;
  }

  .release-version-line {
    align-items: flex-start;
    flex-direction: column;
    gap: 4px;
  }

  .panel-heading {
    display: grid;
    align-items: stretch;
    padding: 18px;
  }

  .search-field {
    width: 100%;
  }

  .account-card-list {
    padding: 12px;
  }

  .account-card-grid {
    grid-template-columns: 1fr 1fr;
  }

  .account-card .action-group {
    display: grid;
    grid-template-columns: 1fr 1fr;
  }

  .account-card .action-group .table-action:first-child {
    grid-column: 1 / -1;
  }

  .account-card .table-action {
    min-height: 44px;
  }

  .account-detail-dialog {
    width: calc(100% - 20px);
    max-height: 94vh;
    border-radius: 17px;
  }

  .account-detail-dialog > article {
    max-height: 94vh;
  }

  .detail-dialog-header {
    padding: 18px;
  }

  .detail-content {
    gap: 12px;
    padding: 14px;
  }

  .detail-section {
    padding: 15px;
  }

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

  .record-detail-item,
  .session-item {
    align-items: flex-start;
    flex-direction: column;
    gap: 7px;
  }

  .record-counts {
    text-align: left;
  }

  .pagination {
    justify-content: space-between;
  }

  .toast {
    right: 16px;
    bottom: 16px;
  }
}

@media (max-width: 430px) {
  .detail-grid {
    grid-template-columns: 1fr;
  }

  .storage-hero > div {
    align-items: flex-start;
    flex-direction: column;
    gap: 4px;
  }
}

@media (max-width: 1100px) {
  .admin-sidebar {
    width: min(286px, calc(100vw - 46px));
    transform: translateX(-104%);
    transition: transform 220ms ease;
  }

  .admin-page.sidebar-open .admin-sidebar {
    transform: translateX(0);
  }

  .admin-workspace {
    margin-left: 0;
  }

  .sidebar-toggle {
    display: block;
  }
}

@media (max-width: 900px) {
  .overview-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .workspace-topbar {
    min-height: 66px;
    padding: 0 16px;
  }

  .workspace-actions {
    gap: 8px;
  }

  .workspace-freshness {
    display: none;
  }

  .workspace-actions .outline-button {
    min-height: 40px;
    padding-inline: 11px;
  }

  .workspace-content {
    width: calc(100% - 28px);
    padding: 26px 0 42px;
  }

  .view-heading {
    display: block;
  }

  .view-heading h1 {
    font-size: 30px;
  }

  .production-chip {
    margin-top: 15px;
  }

  .admin-view .metrics-grid {
    margin-top: 22px;
  }

  .overview-card {
    padding: 18px;
    border-radius: 17px;
  }

  .overview-card-heading {
    align-items: flex-start;
    flex-direction: column;
    gap: 12px;
  }

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

  .system-facts > div:nth-child(odd) {
    border-right: 0;
  }

  .system-facts > div:nth-child(-n+3) {
    border-bottom: 1px solid #e6ebf2;
  }

  .quick-link {
    min-height: 78px;
  }

  .admin-view .accounts-panel,
  .admin-view .release-panel {
    margin-top: 20px;
  }
}

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

/* Enterprise administration console */
.admin-page {
  --admin-blue: #2864cb;
  --admin-blue-dark: #174ca8;
  --admin-border: #d7dce5;
  --admin-muted: #687386;
  --admin-canvas: #eef1f5;
  color: #202938;
  background: var(--admin-canvas);
}

.enterprise-masthead {
  position: fixed;
  z-index: 60;
  inset: 0 0 auto 0;
  display: flex;
  height: 72px;
  align-items: stretch;
  border-bottom: 1px solid #cfd5df;
  background: #fff;
  box-shadow: 0 2px 8px rgba(20, 35, 60, 0.08);
}

.masthead-brand {
  display: flex;
  width: 232px;
  flex: 0 0 232px;
  align-items: center;
  gap: 11px;
  padding: 0 20px;
  border-right: 1px solid #e0e4eb;
  color: #202938;
  text-decoration: none;
}

.masthead-brand img {
  width: 38px;
  height: 38px;
  object-fit: contain;
}

.masthead-brand span,
.masthead-brand strong,
.masthead-brand small {
  display: block;
}

.masthead-brand strong {
  font-size: 16px;
  letter-spacing: 0.02em;
}

.masthead-brand small {
  margin-top: 3px;
  color: #7a8494;
  font-size: 10px;
  letter-spacing: 0.08em;
}

.module-tabs {
  display: flex;
  align-items: stretch;
  margin-left: 18px;
}

.module-tab {
  position: relative;
  display: grid;
  min-width: 118px;
  padding: 12px 22px 10px;
  border: 0;
  border-right: 1px solid #edf0f4;
  place-content: center;
  color: #566174;
  background: transparent;
  cursor: pointer;
  text-align: center;
}

.module-tab:hover {
  color: var(--admin-blue);
  background: #f4f7fb;
}

.module-tab.active {
  color: #fff;
  background: var(--admin-blue);
}

.module-tab.active::after {
  position: absolute;
  right: 0;
  bottom: -1px;
  left: 0;
  height: 3px;
  background: #0f469e;
  content: "";
}

.module-index,
.module-label {
  display: block;
}

.module-index {
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.16em;
  opacity: 0.68;
}

.module-label {
  margin-top: 5px;
  font-size: 13px;
  font-weight: 720;
}

.masthead-actions {
  display: flex;
  align-items: center;
  gap: 13px;
  margin-left: auto;
  padding: 0 20px;
}

.masthead-service,
.administrator-chip {
  display: flex;
  align-items: center;
  gap: 8px;
}

.masthead-service .environment-badge {
  margin: 0;
  padding: 0;
  color: #536174;
  background: transparent;
  font-size: 11px;
}

.masthead-service .environment-badge.online {
  color: #167259;
  background: transparent;
}

.masthead-service .environment-badge.offline {
  color: #b12e35;
  background: transparent;
}

.masthead-divider {
  width: 1px;
  height: 26px;
  background: #e0e4eb;
}

.administrator-chip > span {
  display: grid;
  width: 30px;
  height: 30px;
  border: 1px solid #c9d7eb;
  border-radius: 50%;
  place-items: center;
  color: var(--admin-blue);
  background: #edf4ff;
  font-size: 11px;
  font-weight: 800;
}

.administrator-chip strong {
  color: #3e4858;
  font-size: 12px;
}

.masthead-logout {
  padding: 7px 10px;
  border: 1px solid #cfd5df;
  border-radius: 2px;
  color: #4e596b;
  background: #fff;
  cursor: pointer;
  font-size: 11px;
}

.masthead-logout:hover {
  border-color: #94add3;
  color: var(--admin-blue);
  background: #f5f8fd;
}

.admin-sidebar {
  z-index: 45;
  inset: 72px auto 0 0;
  width: 232px;
  padding: 15px 0 16px;
  color: #313b4c;
  background: #f7f8fa;
  border-right: 1px solid #cfd5df;
  box-shadow: none;
}

.sidebar-nav {
  display: block;
  margin: 0;
}

.sidebar-group {
  padding: 0 0 12px;
  border-bottom: 1px solid #e0e4ea;
}

.sidebar-group + .sidebar-group {
  padding-top: 12px;
}

.sidebar-group > p {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0;
  padding: 7px 18px;
  color: #303a4b;
  font-size: 12px;
  font-weight: 760;
  letter-spacing: 0;
}

.sidebar-group > p > span {
  width: 4px;
  height: 14px;
  background: var(--admin-blue);
}

.sidebar-link {
  gap: 6px;
  min-height: 36px;
  padding: 0 20px 0 29px;
  border-radius: 0;
  color: #5b6575;
  font-size: 12px;
  font-weight: 560;
}

.sidebar-link:hover {
  color: var(--admin-blue-dark);
  background: #edf2f9;
}

.sidebar-link.active {
  color: #174d9d;
  background: #dce9fb;
  box-shadow: inset 3px 0 0 var(--admin-blue);
  font-weight: 720;
}

.tree-caret {
  color: #8b94a3;
  font-size: 17px;
  line-height: 1;
}

.sidebar-static-item {
  display: flex;
  min-height: 32px;
  align-items: center;
  gap: 9px;
  padding: 0 18px 0 39px;
  color: #8891a0;
  font-size: 11px;
}

.sidebar-static-item > span {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: #aab2bf;
}

.sidebar-footer {
  margin-top: auto;
  padding: 14px 18px 0;
  border-top: 1px solid #dfe3e9;
}

.sidebar-footer > p {
  margin: 0 0 8px;
  color: #838d9d;
  font-size: 10px;
  font-weight: 700;
}

.sidebar-footer dl,
.sidebar-footer dl div {
  margin: 0;
}

.sidebar-footer dl div {
  display: flex;
  justify-content: space-between;
  padding: 4px 0;
  color: #657083;
  font-size: 10px;
}

.sidebar-footer dd {
  margin: 0;
  color: #303a4b;
  font-weight: 650;
}

.admin-workspace {
  min-height: 100vh;
  margin-left: 232px;
  padding-top: 72px;
}

.workspace-topbar {
  top: 72px;
  min-height: 48px;
  padding: 0 22px;
  border-bottom: 1px solid #d7dce5;
  background: #fff;
  backdrop-filter: none;
}

.workspace-heading {
  gap: 10px;
}

.workspace-heading > div {
  display: flex;
  align-items: center;
  gap: 7px;
}

.workspace-heading > div > span,
.workspace-heading > div > strong {
  display: inline;
  margin: 0;
  font-size: 11px;
  letter-spacing: 0;
}

.workspace-heading .breadcrumb-root {
  color: #8690a0;
}

.breadcrumb-separator {
  color: #b2b9c4 !important;
}

.workspace-heading strong {
  color: #263143;
  font-weight: 720;
}

.workspace-freshness {
  color: #7c8798;
  font-size: 10px;
}

.compact-action,
.admin-view .outline-button,
.admin-view .quiet-button,
.admin-view .primary-button {
  min-height: 32px;
  border-radius: 2px;
  box-shadow: none;
  font-size: 11px;
}

.workspace-content {
  width: 100%;
  max-width: none;
  padding: 18px 22px 34px;
}

.view-heading {
  align-items: center;
  padding: 16px 18px;
  border: 1px solid var(--admin-border);
  background: #fff;
}

.view-heading .eyebrow {
  margin-bottom: 4px;
  color: var(--admin-blue);
  font-size: 9px;
}

.view-heading h1 {
  font-size: 21px;
  letter-spacing: -0.015em;
}

.view-heading > div > p:last-child {
  max-width: none;
  margin-top: 6px;
  color: #687386;
  font-size: 11px;
  line-height: 1.55;
}

.production-chip,
.status-badge {
  min-height: 28px;
  padding: 0 10px;
  border-radius: 2px;
  font-size: 10px;
}

.admin-view .metrics-grid {
  gap: 0;
  margin-top: 12px;
  border: 1px solid var(--admin-border);
  background: #fff;
}

.admin-view .metric-card {
  min-height: 112px;
  padding: 18px 20px;
  border: 0;
  border-right: 1px solid #e1e5eb;
  border-radius: 0;
  box-shadow: none;
}

.admin-view .metric-card:last-child {
  border-right: 0;
}

.admin-view .metric-card strong {
  margin-top: 10px;
  font-size: 27px;
}

.admin-view .metric-card p,
.admin-view .metric-card span {
  font-size: 10px;
}

.admin-view .accent-card {
  color: #fff;
  background: var(--admin-blue);
}

.admin-view .accent-card p,
.admin-view .accent-card span {
  color: rgba(255, 255, 255, 0.78);
}

.overview-grid {
  gap: 12px;
  margin-top: 12px;
}

.overview-card,
.admin-view .accounts-panel,
.admin-view .release-panel {
  border: 1px solid var(--admin-border);
  border-radius: 0;
  background: #fff;
  box-shadow: none;
}

.overview-card {
  padding: 18px;
}

.overview-card h2,
.panel-heading h2,
.release-copy h2 {
  font-size: 15px;
}

.system-facts {
  margin-top: 15px;
  border-radius: 0;
}

.system-facts > div {
  padding: 12px 14px;
  background: #fafbfc;
}

.quick-link {
  min-height: 60px;
  border-radius: 0;
  background: #fafbfc;
}

.quick-link:hover {
  border-color: #a9bee0;
  background: #f1f6fd;
}

.admin-view .accounts-panel,
.admin-view .release-panel {
  margin-top: 12px;
}

.panel-heading {
  padding: 14px 16px;
  border-bottom: 1px solid var(--admin-border);
  background: #f8f9fb;
}

.panel-heading p {
  margin-top: 4px;
  font-size: 10px;
}

.search-field {
  width: 260px;
}

.search-field span {
  font-size: 9px;
}

.search-field input,
.release-form input,
.release-form textarea {
  border-radius: 2px;
  background: #fff;
}

.table-scroll {
  border: 0;
  border-radius: 0;
}

.table-scroll th,
.table-scroll .status-pill,
.table-scroll .action-group,
.table-scroll .table-action {
  white-space: nowrap;
}

.table-scroll table {
  min-width: 980px;
}

.table-scroll .status-pill {
  min-width: 36px;
  justify-content: center;
}

table {
  font-size: 11px;
}

th {
  padding: 10px 12px;
  color: #4e596a;
  background: #eef1f5;
  font-size: 10px;
  font-weight: 720;
}

td {
  padding: 11px 12px;
}

tbody tr:hover {
  background: #f2f6fc;
}

.status-pill,
.storage-percent {
  border-radius: 2px;
}

.table-action {
  min-height: 28px;
  padding: 0 8px;
  border-radius: 2px;
  font-size: 10px;
}

.pagination {
  padding: 10px 14px;
  border-top: 1px solid #e1e5eb;
  background: #fafbfc;
}

.footer-note {
  margin-top: 8px;
  color: #788395;
  font-size: 10px;
}

.release-panel {
  gap: 0;
  padding: 0;
}

.release-copy,
.release-form {
  padding: 20px;
}

.release-copy {
  border-right: 1px solid var(--admin-border);
  background: #fafbfc;
}

.release-form {
  gap: 14px;
}

.release-submit {
  width: auto;
  min-width: 132px;
  justify-self: end;
}

.account-detail-dialog,
.confirm-dialog {
  border: 1px solid #9aa9bf;
  border-radius: 2px;
  box-shadow: 0 18px 60px rgba(16, 29, 48, 0.28);
}

.detail-dialog-header {
  padding: 14px 18px;
  color: #fff;
  background: var(--admin-blue);
}

.detail-dialog-header .eyebrow,
.detail-dialog-header p,
#detail-subtitle {
  color: rgba(255, 255, 255, 0.78);
}

.detail-dialog-header h2 {
  color: #fff;
  font-size: 16px;
}

.detail-close {
  color: #fff;
  background: rgba(255, 255, 255, 0.12);
}

.detail-content {
  background: #f2f4f7;
}

.detail-section {
  border-radius: 0;
  box-shadow: none;
}

@media (max-width: 1100px) {
  .enterprise-masthead {
    height: 64px;
  }

  .masthead-brand {
    width: auto;
    flex-basis: auto;
    border-right: 0;
  }

  .module-tabs {
    display: none;
  }

  .admin-sidebar {
    inset: 64px auto 0 0;
    width: min(286px, calc(100vw - 46px));
    transform: translateX(-104%);
    transition: transform 220ms ease;
  }

  .admin-page.sidebar-open .admin-sidebar {
    transform: translateX(0);
  }

  .admin-workspace {
    margin-left: 0;
    padding-top: 64px;
  }

  .workspace-topbar {
    top: 64px;
  }

  .sidebar-toggle {
    display: block;
  }
}

@media (max-width: 720px) {
  .enterprise-masthead {
    padding-right: 8px;
  }

  .masthead-brand {
    padding: 0 14px;
  }

  .masthead-brand img {
    width: 34px;
    height: 34px;
  }

  .masthead-brand small,
  .masthead-service,
  .masthead-divider,
  .administrator-chip strong {
    display: none;
  }

  .masthead-actions {
    gap: 8px;
    padding: 0 6px;
  }

  .workspace-topbar {
    min-height: 52px;
    padding: 0 12px;
  }

  .breadcrumb-root,
  .breadcrumb-separator,
  .workspace-freshness {
    display: none !important;
  }

  .workspace-content {
    padding: 12px 10px 26px;
  }

  .view-heading {
    padding: 14px;
  }

  .view-heading h1 {
    font-size: 19px;
  }

  .admin-view .metrics-grid {
    grid-template-columns: 1fr 1fr;
  }

  .admin-view .metric-card:nth-child(2) {
    border-right: 0;
  }

  .admin-view .metric-card:nth-child(-n+2) {
    border-bottom: 1px solid #e1e5eb;
  }

  .panel-heading {
    display: grid;
    gap: 12px;
  }

  .search-field {
    width: 100%;
  }

  .release-copy,
  .release-form {
    padding: 16px;
  }

  .release-copy {
    border-right: 0;
    border-bottom: 1px solid var(--admin-border);
  }
}

/* Feedback operations */
.search-field select {
  min-width: 150px;
  height: 38px;
  border: 1px solid var(--admin-border, #d9dee7);
  border-radius: 6px;
  background: #fff;
  color: #182235;
  padding: 0 34px 0 12px;
  font: inherit;
}

.feedback-list {
  display: grid;
  gap: 12px;
  padding: 18px;
}

.feedback-card {
  border: 1px solid #dfe4ec;
  border-radius: 7px;
  background: #fff;
  padding: 18px 20px;
  box-shadow: 0 1px 2px rgb(17 34 68 / 4%);
}

.feedback-card-head,
.feedback-card-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.feedback-card-head > div {
  display: grid;
  gap: 4px;
}

.feedback-card-head strong {
  color: #182235;
  font-size: 15px;
}

.feedback-card-head small,
.feedback-card-foot > span {
  color: #768196;
  font-size: 12px;
}

.feedback-card-head .feedback-diagnostic-warning {
  color: #9a5814;
}

.feedback-content {
  color: #273247;
  white-space: pre-wrap;
  line-height: 1.7;
  margin: 14px 0 16px;
}

.feedback-status {
  flex: 0 0 auto;
  padding: 4px 9px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 650;
  color: #8a5317;
  background: #fff4e5;
}

.feedback-status.reviewing { color: #155bb5; background: #eaf2ff; }
.feedback-status.resolved { color: #13795b; background: #e8f6f1; }

.feedback-card-foot > div {
  display: flex;
  gap: 7px;
}

.feedback-card-foot .quiet-button {
  min-height: 32px;
  padding: 0 11px;
}

@media (max-width: 720px) {
  .feedback-list { padding: 12px; }
  .feedback-card-head,
  .feedback-card-foot { align-items: flex-start; flex-direction: column; }
  .feedback-card-foot > div { flex-wrap: wrap; }
}
