:root {
  color-scheme: light;
  --ink: #111827;
  --ink-soft: #334155;
  --muted: #64748b;
  --muted-light: #94a3b8;
  --line: #e5eaf1;
  --line-strong: #d6deea;
  --paper: rgba(255, 255, 255, .94);
  --paper-solid: #ffffff;
  --canvas: #f5f7fb;
  --canvas-soft: #eef3f9;
  --brand: #2563eb;
  --brand-dark: #1d4ed8;
  --brand-soft: #eef4ff;
  --danger: #b42318;
  --danger-soft: #fff1f0;
  --success: #047857;
  --success-soft: #ecfdf5;
  --warning: #b45309;
  --warning-soft: #fffbeb;
  --shadow-sm: 0 1px 2px rgba(15, 23, 42, .04), 0 4px 12px rgba(15, 23, 42, .03);
  --shadow-card: 0 1px 2px rgba(15, 23, 42, .04), 0 18px 48px rgba(15, 23, 42, .06);
  --radius-sm: 10px;
  --radius-md: 16px;
  --radius-lg: 22px;
  --top-offset: 90px;
  font-synthesis: none;
}

* {
  box-sizing: border-box;
}

.audit-toolbar, .audit-categories, .audit-pagination, .audit-pagination > div {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
}
.audit-toolbar, .audit-pagination { justify-content: space-between; margin: 16px 0; }
.audit-toolbar label { min-width: 200px; margin: 0; }
.audit-categories { gap: 6px; padding: 5px; border-radius: 14px; background: var(--canvas-soft); }
.audit-categories button[aria-pressed="true"] {
  color: var(--brand-dark);
  background: var(--paper-solid);
  border-color: var(--line-strong);
  box-shadow: var(--shadow-sm);
}
#audit-summary { margin: 0; color: var(--muted); font-size: 14px; }
.audit-client-badge { display: block; color: var(--muted); font-size: 12px; margin-top: 3px; }

html {
  min-height: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 156px;
  -webkit-text-size-adjust: 100%;
}

body {
  min-width: 320px;
  min-height: 100vh;
  margin: 0;
  overflow-x: hidden;
  background: var(--canvas);
  color: var(--ink);
  font: 15px/1.55 ui-sans-serif, -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI Variable", "Segoe UI", sans-serif;
  letter-spacing: -.006em;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

body::before {
  position: fixed;
  inset: 0;
  z-index: -3;
  background:
    linear-gradient(rgba(255, 255, 255, .6), rgba(255, 255, 255, 0) 240px),
    radial-gradient(circle at 46% -20%, rgba(96, 165, 250, .12), transparent 38%);
  content: "";
  pointer-events: none;
}

.ambient {
  position: fixed;
  z-index: -2;
  width: 460px;
  height: 460px;
  border-radius: 999px;
  filter: blur(12px);
  opacity: .32;
  pointer-events: none;
}

.ambient-one {
  top: -250px;
  left: -180px;
  background: radial-gradient(circle, rgba(96, 165, 250, .26), transparent 70%);
}

.ambient-two {
  right: -260px;
  bottom: -300px;
  background: radial-gradient(circle, rgba(45, 212, 191, .18), transparent 70%);
}

::selection {
  background: #bfdbfe;
  color: #172554;
}

.shell {
  width: min(100%, 1440px);
  margin: 0 auto;
  padding: 0 clamp(18px, 3.2vw, 48px) clamp(40px, 6vw, 80px);
}

.skip-link {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 100;
  padding: 10px 14px;
  border-radius: var(--radius-sm);
  background: var(--ink);
  color: #fff;
  font-weight: 700;
  text-decoration: none;
  transform: translateY(-150%);
  transition: transform .18s ease;
}

.skip-link:focus {
  transform: translateY(0);
}

.topbar {
  position: relative;
  z-index: 30;
  display: flex;
  min-height: 86px;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  border-bottom: 1px solid rgba(214, 222, 234, .72);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: inherit;
  text-decoration: none;
}

.brand-mark {
  position: relative;
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, .7);
  border-radius: 12px;
  background: linear-gradient(145deg, #3b82f6, #1d4ed8);
  box-shadow: 0 7px 18px rgba(37, 99, 235, .22), inset 0 1px rgba(255, 255, 255, .28);
}

.brand-mark::before,
.brand-mark::after {
  position: absolute;
  border-radius: 4px;
  background: #fff;
  content: "";
}

.brand-mark::before {
  width: 17px;
  height: 5px;
}

.brand-mark::after {
  width: 5px;
  height: 17px;
}

.brand-mark span {
  position: absolute;
  right: -7px;
  bottom: -8px;
  width: 22px;
  height: 22px;
  border: 5px solid rgba(255, 255, 255, .18);
  border-radius: 50%;
}

.brand-copy {
  display: grid;
  line-height: 1.15;
}

.brand-copy strong {
  font-size: 15px;
  font-weight: 760;
  letter-spacing: -.025em;
}

.brand-copy small {
  margin-top: 4px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .06em;
  text-transform: uppercase;
}

.muted-cell,
.signature-state {
  color: var(--muted);
  font-size: 11px;
  font-weight: 650;
}

.signature-state.ok-text {
  color: #047857;
}

.signature-state.bad-text {
  color: #b42318;
}

.release-review {
  margin-top: 8px;
  max-width: 420px;
}

.release-review summary {
  color: var(--accent);
  cursor: pointer;
  font-size: 12px;
  font-weight: 700;
}

.release-review dl {
  display: grid;
  gap: 4px;
  margin: 8px 0 0;
}

.release-review dt {
  color: var(--muted);
  font-size: 10px;
  font-weight: 750;
  letter-spacing: .04em;
  text-transform: uppercase;
}

.release-review dd {
  margin: 0 0 6px;
  max-width: 100%;
  overflow-wrap: anywhere;
  white-space: pre-wrap;
}

.release-action-dialog {
  width: min(680px, calc(100vw - 28px));
  max-height: calc(100vh - 40px);
  max-height: calc(100dvh - 40px);
  margin: auto;
  padding: 0;
  overflow: auto;
  border: 1px solid rgba(214, 222, 234, .9);
  border-radius: 22px;
  background: var(--paper-solid);
  color: var(--ink);
  box-shadow: 0 28px 90px rgba(15, 23, 42, .24);
}

.release-action-dialog::backdrop {
  background: rgba(15, 23, 42, .5);
  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(5px);
}

.release-action-dialog form {
  display: grid;
  gap: 17px;
  padding: clamp(20px, 4vw, 30px);
}

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

.release-action-heading h2,
.release-action-heading p {
  margin-bottom: 0;
}

.release-dialog-close {
  width: 38px;
  min-width: 38px;
  padding: 0;
  border-radius: 999px;
  font-size: 22px;
  line-height: 1;
}

.release-action-evidence {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1px;
  margin: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--line);
}

.release-action-evidence > div {
  min-width: 0;
  padding: 13px 14px;
  background: #f9fbfd;
}

.release-action-evidence .wide-evidence {
  grid-column: 1 / -1;
}

.release-action-evidence dt {
  margin-bottom: 4px;
  color: var(--muted);
  font-size: 10px;
  font-weight: 760;
  letter-spacing: .065em;
  text-transform: uppercase;
}

.release-action-evidence dd {
  margin: 0;
  overflow-wrap: anywhere;
  color: var(--ink-soft);
  font-size: 13px;
  white-space: pre-wrap;
}

.release-action-hint {
  margin: -8px 0 0;
  color: var(--muted);
  font-size: 12px;
}

.release-action-error {
  margin: -4px 0 0;
  padding: 11px 13px;
  border: 1px solid #f7ccc8;
  border-radius: 12px;
  background: var(--danger-soft);
  color: var(--danger);
  font-size: 13px;
  font-weight: 650;
}

.release-action-mfa {
  display: grid;
  gap: 7px;
  padding: 14px;
  border: 1px solid #bfdbfe;
  border-radius: 14px;
  background: var(--brand-soft);
}

.release-action-mfa p {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
}

.release-action-buttons {
  justify-content: flex-end;
}

.topbar-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.secure-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, .64);
  color: var(--muted);
  font-size: 12px;
  font-weight: 650;
  box-shadow: var(--shadow-sm);
}

.secure-badge span,
.console-state i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #10b981;
  box-shadow: 0 0 0 3px rgba(16, 185, 129, .12);
}

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

h1,
h2 {
  text-wrap: balance;
}

h1 {
  margin-bottom: 14px;
  font-size: clamp(34px, 5vw, 58px);
  font-weight: 720;
  line-height: 1.02;
  letter-spacing: -.052em;
}

h2 {
  margin-bottom: 0;
  font-size: clamp(22px, 2vw, 28px);
  font-weight: 710;
  line-height: 1.2;
  letter-spacing: -.035em;
}

.eyebrow {
  margin-bottom: 8px;
  color: var(--brand);
  font-size: 11px;
  font-weight: 780;
  letter-spacing: .105em;
  text-transform: uppercase;
}

.lead {
  max-width: 620px;
  margin-bottom: 26px;
  color: var(--muted);
  font-size: clamp(16px, 1.6vw, 19px);
  line-height: 1.65;
}

.section-description {
  margin: 7px 0 0;
  color: var(--muted);
  font-size: 14px;
}

.auth-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(360px, .82fr);
  gap: 22px clamp(28px, 5vw, 80px);
  min-height: calc(100vh - 87px);
  align-content: center;
  padding: clamp(40px, 7vw, 92px) 0;
}

.auth-intro {
  grid-row: 1 / span 2;
  align-self: center;
  padding: 18px 0;
}

.auth-intro h1 span {
  background: linear-gradient(112deg, #2563eb, #0f766e 76%);
  background-clip: text;
  color: transparent;
  -webkit-background-clip: text;
}

.trust-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 18px;
  color: var(--ink-soft);
  font-size: 13px;
  font-weight: 630;
}

.trust-list span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.trust-list i {
  position: relative;
  display: inline-grid;
  width: 18px;
  height: 18px;
  place-items: center;
  border-radius: 50%;
  background: var(--success-soft);
}

.trust-list i::after {
  width: 6px;
  height: 3px;
  border-bottom: 1.7px solid var(--success);
  border-left: 1.7px solid var(--success);
  content: "";
  transform: translateY(-1px) rotate(-45deg);
}

.card {
  min-width: 0;
  border: 1px solid rgba(214, 222, 234, .84);
  border-radius: var(--radius-lg);
  background: var(--paper);
  box-shadow: var(--shadow-card);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}

.auth-card,
.privacy-self-service {
  width: 100%;
  max-width: 520px;
  justify-self: end;
  padding: clamp(22px, 3vw, 32px);
}

.auth-card {
  align-self: end;
}

.privacy-self-service {
  align-self: start;
  padding: 22px clamp(22px, 3vw, 32px);
  box-shadow: var(--shadow-sm);
}

.card-heading {
  display: flex;
  align-items: center;
  gap: 13px;
  margin-bottom: 10px;
}

.compact-heading h2 {
  font-size: 20px;
}

.heading-icon {
  display: grid;
  flex: 0 0 40px;
  width: 40px;
  height: 40px;
  place-items: center;
  border-radius: 12px;
  background: var(--brand);
  color: #fff;
  font-size: 17px;
  font-weight: 700;
  box-shadow: 0 8px 20px rgba(37, 99, 235, .18);
}

.heading-icon.soft {
  background: var(--brand-soft);
  color: var(--brand);
  box-shadow: none;
}

form {
  display: grid;
  gap: 15px;
}

.auth-card form {
  margin-top: 24px;
}

label {
  display: grid;
  gap: 7px;
  color: var(--ink-soft);
  font-size: 12px;
  font-weight: 680;
  letter-spacing: .008em;
}

label small {
  color: var(--muted);
  font-size: 11px;
  font-weight: 500;
}

input,
textarea,
button,
select {
  font: inherit;
}

input,
textarea,
select {
  width: 100%;
  min-height: 44px;
  padding: 10px 12px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-sm);
  outline: none;
  background: rgba(255, 255, 255, .86);
  color: var(--ink);
  font-size: 14px;
  font-weight: 480;
  letter-spacing: -.005em;
  box-shadow: 0 1px 2px rgba(15, 23, 42, .025), inset 0 1px 1px rgba(15, 23, 42, .012);
  transition: border-color .16s ease, box-shadow .16s ease, background .16s ease;
}

input::placeholder,
textarea::placeholder {
  color: var(--muted-light);
}

input:hover,
textarea:hover,
select:hover {
  border-color: #c0cad9;
}

input:focus,
textarea:focus,
select:focus {
  border-color: #7aa7f8;
  background: #fff;
  box-shadow: 0 0 0 4px rgba(37, 99, 235, .1);
}

input:read-only {
  background: var(--canvas-soft);
  color: var(--muted);
}

input[type="file"] {
  min-height: 48px;
  padding: 7px;
}

input[type="file"]::file-selector-button {
  margin-right: 10px;
  padding: 7px 10px;
  border: 0;
  border-radius: 7px;
  background: var(--brand-soft);
  color: var(--brand-dark);
  font-weight: 680;
  cursor: pointer;
}

textarea {
  min-height: 116px;
  resize: vertical;
}

button {
  display: inline-flex;
  min-height: 40px;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 9px 14px;
  border: 1px solid transparent;
  border-radius: var(--radius-sm);
  outline: none;
  background: var(--brand);
  color: #fff;
  font-weight: 690;
  letter-spacing: -.006em;
  cursor: pointer;
  touch-action: manipulation;
  transition: transform .14s ease, box-shadow .14s ease, background .14s ease, border-color .14s ease, color .14s ease, opacity .14s ease;
}

button:hover:not(:disabled) {
  background: var(--brand-dark);
  box-shadow: 0 6px 16px rgba(37, 99, 235, .16);
  transform: translateY(-1px);
}

button:active:not(:disabled) {
  box-shadow: none;
  transform: translateY(0);
}

button:focus-visible,
.table-wrap:focus-visible,
summary:focus-visible,
.brand:focus-visible {
  outline: 3px solid rgba(37, 99, 235, .22);
  outline-offset: 2px;
}

button:disabled,
button.busy {
  opacity: .56;
  cursor: wait;
  transform: none;
}

.primary {
  background: linear-gradient(180deg, #3475ef, #2563eb);
  box-shadow: 0 6px 16px rgba(37, 99, 235, .14), inset 0 1px rgba(255, 255, 255, .16);
}

.wide-button {
  width: 100%;
  min-height: 46px;
}

.ghost {
  border-color: var(--line);
  background: rgba(255, 255, 255, .76);
  color: var(--ink-soft);
  box-shadow: var(--shadow-sm);
}

.ghost:hover:not(:disabled) {
  border-color: #c9d5e6;
  background: #fff;
  color: var(--brand-dark);
  box-shadow: 0 4px 12px rgba(15, 23, 42, .07);
}

.danger {
  background: var(--danger);
}

.danger:hover:not(:disabled) {
  background: #912018;
  box-shadow: 0 6px 16px rgba(180, 35, 24, .13);
}

.danger-soft {
  border-color: #f7ccc8;
  background: var(--danger-soft);
  color: var(--danger);
}

.danger-soft:hover:not(:disabled) {
  border-color: #f0aaa4;
  background: #ffe8e6;
  color: #912018;
  box-shadow: none;
}

.compact {
  min-height: 36px;
  padding: 7px 12px;
  font-size: 13px;
}

.button-row,
.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.actions {
  min-width: 220px;
}

.actions button,
td > button {
  min-height: 32px;
  padding: 6px 9px;
  border-radius: 8px;
  font-size: 11px;
  font-weight: 680;
}

.visually-muted {
  opacity: .68;
}

.hidden {
  display: none !important;
}

.privacy-self-service details {
  margin-top: 16px;
  border-top: 1px solid var(--line);
}

.privacy-self-service summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 2px 0;
  color: var(--brand-dark);
  font-size: 13px;
  font-weight: 700;
  list-style: none;
  cursor: pointer;
}

.privacy-self-service summary::-webkit-details-marker {
  display: none;
}

.privacy-self-service details[open] summary span {
  transform: rotate(180deg);
}

.privacy-self-service details form {
  padding-top: 18px;
}

.notice {
  position: relative;
  z-index: 60;
  display: flex;
  max-width: 820px;
  min-height: 46px;
  align-items: center;
  gap: 10px;
  margin: 16px auto 0;
  padding: 12px 16px;
  border: 1px solid #bfdbfe;
  border-radius: 13px;
  background: rgba(239, 246, 255, .96);
  color: #1e40af;
  font-weight: 620;
  box-shadow: 0 12px 30px rgba(30, 64, 175, .1);
  backdrop-filter: blur(12px);
}

.notice::before {
  display: grid;
  flex: 0 0 20px;
  width: 20px;
  height: 20px;
  place-items: center;
  border-radius: 50%;
  background: rgba(37, 99, 235, .12);
  content: "i";
  font-size: 12px;
  font-weight: 800;
}

.notice.error {
  border-color: #fecaca;
  background: rgba(254, 242, 242, .97);
  color: var(--danger);
  box-shadow: 0 12px 30px rgba(180, 35, 24, .09);
}

.notice.error::before {
  background: rgba(180, 35, 24, .1);
  content: "!";
}

.console {
  padding: clamp(30px, 5vw, 64px) 0 0;
}

.console-hero {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 28px;
  padding: 0 4px clamp(25px, 4vw, 40px);
}

.console-hero h1 {
  margin-bottom: 10px;
  font-size: clamp(32px, 4vw, 46px);
}

.console-hero p:last-child {
  max-width: 650px;
  margin-bottom: 0;
  color: var(--muted);
}

.console-state {
  display: flex;
  flex: 0 0 auto;
  align-items: center;
  gap: 12px;
  padding: 12px 15px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(255, 255, 255, .65);
  box-shadow: var(--shadow-sm);
}

.console-state span {
  display: grid;
  line-height: 1.2;
}

.console-state strong {
  font-size: 12px;
}

.console-state small {
  margin-top: 4px;
  color: var(--muted);
  font-size: 11px;
}

.tabs-shell {
  position: sticky;
  top: 0;
  z-index: 25;
  margin: 0 -8px;
  padding: 9px 8px;
  background: linear-gradient(var(--canvas) 72%, rgba(245, 247, 251, 0));
}

.tabs {
  display: flex;
  gap: 5px;
  max-width: 100%;
  padding: 5px;
  overflow-x: auto;
  overscroll-behavior-inline: contain;
  border: 1px solid rgba(214, 222, 234, .84);
  border-radius: 15px;
  background: rgba(255, 255, 255, .78);
  box-shadow: 0 8px 30px rgba(15, 23, 42, .055);
  scrollbar-width: none;
  scroll-snap-type: x proximity;
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  -webkit-overflow-scrolling: touch;
}

.tabs::-webkit-scrollbar {
  display: none;
}

.tabs button {
  min-height: 40px;
  flex: 0 0 auto;
  padding: 8px 14px;
  border: 1px solid transparent;
  border-radius: 10px;
  background: transparent;
  color: var(--muted);
  font-size: 13px;
  font-weight: 650;
  scroll-snap-align: start;
  box-shadow: none;
}

.tabs button:hover:not(:disabled) {
  background: var(--canvas-soft);
  color: var(--ink-soft);
  box-shadow: none;
  transform: none;
}

.tabs button.active {
  border-color: var(--line);
  background: #fff;
  color: var(--brand-dark);
  box-shadow: 0 3px 9px rgba(15, 23, 42, .07);
}

.tab-icon {
  display: inline-grid;
  width: 18px;
  height: 18px;
  place-items: center;
  font-size: 15px;
  font-weight: 500;
}

.panel {
  margin-top: 14px;
  padding: clamp(20px, 3.2vw, 36px);
  scroll-margin-top: 86px;
}

.section-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
}

.metric-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin-top: 24px;
}

.metric {
  position: relative;
  min-height: 86px;
  overflow: hidden;
  padding: 15px 16px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #fbfcfe;
}

.metric::after {
  position: absolute;
  right: -14px;
  bottom: -25px;
  width: 65px;
  height: 65px;
  border: 12px solid rgba(37, 99, 235, .035);
  border-radius: 50%;
  content: "";
}

.metric.success::after {
  border-color: rgba(4, 120, 87, .045);
}

.metric.warning::after {
  border-color: rgba(180, 83, 9, .045);
}

.metric span {
  display: block;
  color: var(--muted);
  font-size: 11px;
  font-weight: 670;
}

.metric strong {
  display: block;
  margin-top: 7px;
  font-size: 25px;
  font-weight: 720;
  line-height: 1;
  letter-spacing: -.035em;
}

.metric.success strong {
  color: var(--success);
}

.metric.warning strong {
  color: var(--warning);
}

.callout {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin: 20px 0 0;
  padding: 12px 14px;
  border: 1px solid #dbeafe;
  border-radius: 12px;
  background: #f6f9ff;
  color: #3b4f70;
  font-size: 13px;
}

.callout-icon {
  display: grid;
  flex: 0 0 19px;
  width: 19px;
  height: 19px;
  place-items: center;
  margin-top: 1px;
  border-radius: 50%;
  background: #dbeafe;
  color: var(--brand-dark);
  font-size: 11px;
  font-style: normal;
  font-weight: 800;
}

.warning-callout {
  border-color: #fde68a;
  background: var(--warning-soft);
  color: #6f4810;
}

.warning-callout .callout-icon {
  background: #fef3c7;
  color: var(--warning);
}

.invite-flow {
  display: flex;
  align-items: center;
  gap: 11px;
  margin-top: 24px;
  color: var(--ink-soft);
  font-size: 12px;
  font-weight: 640;
}

.invite-flow span {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  white-space: nowrap;
}

.invite-flow b {
  display: grid;
  width: 23px;
  height: 23px;
  place-items: center;
  border-radius: 50%;
  background: var(--brand-soft);
  color: var(--brand-dark);
  font-size: 11px;
}

.invite-flow i {
  height: 1px;
  flex: 1 1 50px;
  background: var(--line-strong);
}

.form-surface {
  margin-top: 18px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: #fafbfd;
}

.inline-form {
  grid-template-columns: minmax(180px, 1.4fr) minmax(170px, 1fr) minmax(180px, 1.25fr) minmax(180px, 1fr) auto;
  align-items: end;
}

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

.wide {
  grid-column: 1 / -1;
}

.check-field {
  display: flex;
  min-height: 44px;
  align-items: center;
  gap: 9px;
}

.check-field input {
  width: 18px;
  min-height: 18px;
  accent-color: var(--brand);
}

.result-output {
  display: block;
  margin-top: 16px;
  color: var(--success);
  font-size: 13px;
  font-weight: 650;
}

.feedback-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: end;
  gap: 12px;
  margin: 0 0 16px;
}

.feedback-toolbar label {
  min-width: 180px;
  flex: 1 1 190px;
}

.feedback-toolbar button {
  margin-bottom: 1px;
}

.feedback-detail {
  display: grid;
  gap: 18px;
  margin-top: 18px;
  border-color: var(--line-strong);
}

.feedback-detail-head {
  display: flex;
  justify-content: space-between;
  align-items: start;
  gap: 16px;
}

.feedback-detail-head h3 {
  margin: 2px 0 4px;
  font-size: 20px;
}

.feedback-message {
  margin: 0;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 13px;
  background: #f8fafc;
  color: var(--ink-soft);
  line-height: 1.65;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}

.feedback-triage {
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
}

.secret-result {
  display: grid;
  gap: 12px;
  margin: 18px 0;
  padding: 18px;
  border: 1px solid #9fc0fa;
  border-radius: var(--radius-md);
  background: linear-gradient(135deg, #f8fbff, #f0f6ff);
  box-shadow: 0 10px 24px rgba(37, 99, 235, .07);
}

.secret-result code {
  display: block;
  padding: 13px 14px;
  overflow-wrap: anywhere;
  border: 1px solid rgba(255, 255, 255, .1);
  border-radius: 10px;
  background: #172033;
  color: #f8fafc;
  font-size: 13px;
  line-height: 1.6;
  user-select: all;
}

.one-time-warning {
  display: flex;
  align-items: center;
  gap: 9px;
  color: #854d0e;
  font-size: 12px;
}

.one-time-warning span {
  display: grid;
  flex: 0 0 20px;
  width: 20px;
  height: 20px;
  place-items: center;
  border-radius: 50%;
  background: #fef3c7;
  font-weight: 800;
}

.secret-actions #copy-secret {
  min-width: 190px;
}

.secret-result p {
  margin-bottom: 0;
  color: var(--muted);
  font-size: 12px;
}

code {
  font-family: ui-monospace, "SFMono-Regular", Menlo, Monaco, Consolas, monospace;
  font-size: .92em;
}

.table-wrap {
  width: 100%;
  max-width: 100%;
  margin-top: 20px;
  overflow: auto;
  overscroll-behavior: contain;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: var(--paper-solid);
  scrollbar-color: #cbd5e1 transparent;
  scrollbar-gutter: stable;
  -webkit-overflow-scrolling: touch;
}

.table-wrap::-webkit-scrollbar {
  width: 10px;
  height: 10px;
}

.table-wrap::-webkit-scrollbar-thumb {
  border: 3px solid transparent;
  border-radius: 10px;
  background: #cbd5e1;
  background-clip: padding-box;
}

table {
  width: 100%;
  min-width: 900px;
  border-collapse: separate;
  border-spacing: 0;
}

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

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

th {
  position: sticky;
  top: 0;
  z-index: 2;
  background: #f8fafc;
  color: var(--muted);
  font-size: 10px;
  font-weight: 760;
  letter-spacing: .07em;
  text-transform: uppercase;
  white-space: nowrap;
}

td {
  color: var(--ink-soft);
  font-size: 12px;
  transition: background .12s ease;
}

td strong {
  color: var(--ink);
  font-size: 13px;
  font-weight: 680;
}

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

tbody tr:hover td {
  background: #fafcff;
}

.pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 8px;
  border: 1px solid #dbe3ed;
  border-radius: 999px;
  background: #f1f5f9;
  color: #526277;
  font-size: 10px;
  font-weight: 720;
  line-height: 1.25;
  letter-spacing: .01em;
  text-transform: capitalize;
  white-space: nowrap;
}

.pill::before {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #94a3b8;
  content: "";
}

.pill.ok {
  border-color: #bbf7d0;
  background: var(--success-soft);
  color: var(--success);
}

.pill.ok::before {
  background: #10b981;
}

.pill.bad {
  border-color: #fecaca;
  background: var(--danger-soft);
  color: var(--danger);
}

.pill.bad::before {
  background: #ef4444;
}

.empty-cell {
  padding: 34px 20px;
  color: var(--muted);
  text-align: center;
}

@media (max-width: 1120px) {
  .inline-form {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .inline-form button {
    justify-self: start;
  }
}

@media (max-width: 900px) {
  .auth-layout {
    grid-template-columns: 1fr;
    min-height: auto;
    padding: 54px 0;
  }

  .auth-intro {
    grid-row: auto;
    max-width: 680px;
    padding: 0 0 16px;
  }

  .auth-card,
  .privacy-self-service {
    max-width: none;
    justify-self: stretch;
  }

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

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

@media (max-width: 720px) {
  :root {
    --top-offset: 76px;
  }

  html {
    scroll-padding-top: 136px;
  }

  .release-action-dialog {
    width: calc(100vw - 20px);
    max-height: calc(100dvh - 20px);
    border-radius: 18px;
  }

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

  .release-action-evidence .wide-evidence {
    grid-column: auto;
  }

  .release-action-buttons > button {
    flex: 1 1 auto;
  }

  .shell {
    padding-inline: 14px;
  }

  .topbar {
    min-height: 74px;
  }

  .secure-badge {
    display: none;
  }

  .auth-layout {
    padding: 38px 0;
  }

  .auth-intro h1 {
    font-size: clamp(36px, 11vw, 48px);
  }

  .trust-list {
    display: grid;
  }

  .auth-card,
  .privacy-self-service,
  .panel {
    border-radius: 18px;
  }

  .console {
    padding-top: 36px;
  }

  .console-hero {
    display: block;
    padding-inline: 2px;
  }

  .console-state {
    display: none;
  }

  .tabs-shell {
    margin-inline: -14px;
    padding-inline: 14px;
  }

  .tabs {
    border-radius: 13px;
  }

  .tabs button {
    min-height: 38px;
    padding-inline: 12px;
  }

  .panel {
    padding: 20px 16px;
    scroll-margin-top: 76px;
  }

  .section-head {
    align-items: flex-start;
  }

  .section-head .section-description {
    max-width: 40ch;
  }

  .metric-grid {
    gap: 8px;
  }

  .metric {
    min-height: 78px;
    padding: 13px;
  }

  .metric strong {
    font-size: 22px;
  }

  .invite-flow {
    display: grid;
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .invite-flow i {
    width: 1px;
    height: 9px;
    margin-left: 11px;
  }

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

  .wide {
    grid-column: auto;
  }

  .form-surface {
    padding: 15px;
  }

  .table-wrap {
    overflow: visible;
    border: 0;
    border-radius: 0;
    background: transparent;
    scrollbar-gutter: auto;
  }

  table,
  tbody,
  tr,
  td {
    display: block;
    width: 100%;
    min-width: 0;
  }

  thead {
    position: absolute;
    width: 1px;
    height: 1px;
    margin: -1px;
    padding: 0;
    overflow: hidden;
    clip: rect(0 0 0 0);
  }

  tbody {
    display: grid;
    gap: 10px;
  }

  tbody tr {
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: 14px;
    background: #fff;
    box-shadow: var(--shadow-sm);
  }

  tbody tr:hover td {
    background: transparent;
  }

  td {
    display: grid;
    grid-template-columns: minmax(92px, .42fr) minmax(0, 1fr);
    gap: 12px;
    align-items: start;
    padding: 11px 13px;
    overflow-wrap: anywhere;
  }

  td::before {
    color: var(--muted);
    content: attr(data-label);
    font-size: 9px;
    font-weight: 760;
    letter-spacing: .065em;
    text-transform: uppercase;
  }

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

  td .actions {
    min-width: 0;
  }

  .empty-cell {
    display: block;
    padding: 26px 16px;
  }

  .empty-cell::before {
    display: none;
  }
}

@media (max-width: 480px) {
  .brand-mark {
    width: 35px;
    height: 35px;
  }

  .brand-copy small {
    display: none;
  }

  .auth-card,
  .privacy-self-service {
    padding: 20px;
  }

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

  .metric span {
    max-width: 12ch;
  }

  .button-row > button {
    flex: 1 1 auto;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: .001ms !important;
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
  }
}

@media (prefers-contrast: more) {
  :root {
    --line: #bec8d6;
    --line-strong: #a9b5c6;
  }

  button,
  input,
  textarea,
  .card,
  .table-wrap {
    border-width: 2px;
  }
}

/* Owner console refresh: softer surfaces, clearer hierarchy, and icon-led controls. */
:root {
  --paper: rgba(255, 255, 255, .96);
  --canvas: #f4f7fb;
  --canvas-soft: #edf3fa;
  --line: #e2e8f0;
  --line-strong: #cbd5e1;
  --shadow-sm: 0 1px 2px rgba(15, 23, 42, .035), 0 8px 24px rgba(15, 23, 42, .045);
  --shadow-card: 0 1px 2px rgba(15, 23, 42, .035), 0 20px 56px rgba(15, 23, 42, .065);
  --radius-sm: 12px;
  --radius-md: 18px;
  --radius-lg: 24px;
}

body {
  font-size: 16px;
  line-height: 1.6;
}

body::before {
  background:
    linear-gradient(rgba(255, 255, 255, .76), rgba(255, 255, 255, 0) 300px),
    radial-gradient(circle at 45% -16%, rgba(59, 130, 246, .13), transparent 40%);
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 70;
  min-height: 82px;
  margin-inline: clamp(-48px, -3.2vw, -18px);
  padding-inline: clamp(18px, 3.2vw, 48px);
  border-bottom-color: rgba(203, 213, 225, .78);
  background: rgba(244, 247, 251, .82);
  box-shadow: 0 8px 28px rgba(15, 23, 42, .035);
  backdrop-filter: saturate(150%) blur(18px);
  -webkit-backdrop-filter: saturate(150%) blur(18px);
}

.brand-mark {
  width: 42px;
  height: 42px;
  border-radius: 14px;
  box-shadow: 0 9px 24px rgba(37, 99, 235, .24), inset 0 1px rgba(255, 255, 255, .3);
}

.brand-copy strong {
  font-size: 16px;
}

.brand-copy small,
label small,
.console-state small {
  font-size: 12px;
}

label {
  gap: 8px;
  font-size: 13px;
  font-weight: 680;
}

input,
textarea,
select {
  border-radius: 12px;
  font-size: 15px;
}

input:focus,
textarea:focus,
select:focus {
  border-color: #60a5fa;
  box-shadow: 0 0 0 4px rgba(29, 78, 216, .11);
}

:where(button, input, textarea, select, summary, a, [tabindex]):focus-visible {
  outline: 3px solid #1d4ed8;
  outline-offset: 3px;
}

button:focus-visible,
.table-wrap:focus-visible,
summary:focus-visible,
.brand:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible {
  outline: 3px solid #1d4ed8;
  outline-offset: 3px;
}

input::placeholder,
textarea::placeholder {
  color: #64748b;
  opacity: 1;
}

button {
  min-height: 42px;
  gap: 9px;
  padding: 9px 15px;
  border-radius: 12px;
  font-size: 14px;
  font-weight: 700;
}

.compact {
  min-height: 40px;
  padding: 8px 13px;
  font-size: 13px;
}

.button-icon {
  display: inline-grid;
  flex: 0 0 18px;
  width: 18px;
  min-width: 18px;
  height: 18px;
  place-items: center;
  font-size: 16px;
  font-weight: 760;
  line-height: 1;
}

.button-label {
  min-width: 0;
  line-height: 1.2;
}

.actions {
  min-width: 244px;
  gap: 7px;
}

.actions button,
td > button {
  min-height: 40px;
  padding: 8px 11px;
  border-radius: 11px;
  font-size: 13px;
}

.card {
  border-color: rgba(203, 213, 225, .72);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
}

.notice {
  border-radius: 15px;
  font-size: 14px;
  line-height: 1.45;
}

body:has(.console:not(.hidden)) .notice:not(.hidden) {
  position: fixed;
  top: 94px;
  right: clamp(18px, 3.2vw, 48px);
  z-index: 90;
  width: min(460px, calc(100vw - 36px));
  margin: 0;
  box-shadow: 0 18px 54px rgba(15, 23, 42, .15);
  animation: owner-notice-in .2s ease-out both;
}

@keyframes owner-notice-in {
  from {
    opacity: 0;
    transform: translateY(-8px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.console {
  padding-top: clamp(26px, 3.5vw, 46px);
}

.console-hero {
  align-items: center;
  padding: clamp(22px, 3vw, 32px);
  overflow: hidden;
  border: 1px solid rgba(191, 219, 254, .78);
  border-radius: 24px;
  background:
    radial-gradient(circle at 93% 8%, rgba(96, 165, 250, .17), transparent 32%),
    linear-gradient(135deg, rgba(255, 255, 255, .98), rgba(244, 248, 255, .96));
  box-shadow: 0 18px 52px rgba(37, 99, 235, .075);
}

.console-hero h1 {
  margin-bottom: 8px;
  font-size: clamp(32px, 3.2vw, 44px);
}

.console-hero p:last-child {
  font-size: 16px;
}

.hero-actions,
.console-hero-actions {
  display: flex;
  flex: 0 0 auto;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
}

.console-state {
  min-height: 44px;
  padding: 9px 13px;
  border-radius: 13px;
  background: rgba(255, 255, 255, .82);
}

.panel {
  min-width: 0;
  margin-top: 0;
  padding: clamp(24px, 3vw, 38px);
  scroll-margin-top: 100px;
}

.section-head {
  flex-wrap: wrap;
  align-items: center;
  padding-bottom: 2px;
}

.section-description {
  max-width: 72ch;
  font-size: 15px;
  line-height: 1.6;
}

.metric-grid {
  gap: 12px;
}

.metric {
  min-height: 104px;
  padding: 17px 18px;
  border-color: rgba(203, 213, 225, .72);
  border-radius: 17px;
  background: linear-gradient(145deg, #fff, #f8fafc);
  box-shadow: 0 8px 22px rgba(15, 23, 42, .035);
}

.metric::after {
  display: none;
}

.metric span {
  max-width: calc(100% - 46px);
  font-size: 13px;
}

.metric strong {
  margin-top: 12px;
  font-size: 29px;
}

.metric .metric-icon {
  position: absolute;
  top: 14px;
  right: 14px;
  display: grid;
  width: 36px;
  height: 36px;
  place-items: center;
  border-radius: 11px;
  background: var(--brand-soft);
  color: var(--brand-dark);
  font-size: 17px;
  font-weight: 760;
}

.metric.success .metric-icon {
  background: var(--success-soft);
  color: var(--success);
}

.metric.warning .metric-icon {
  background: var(--warning-soft);
  color: var(--warning);
}

.form-surface {
  padding: 20px;
  border-color: rgba(203, 213, 225, .72);
  border-radius: 17px;
  background: #f8fafc;
}

.account-toolbar,
.accounts-toolbar {
  display: grid;
  grid-template-columns: minmax(240px, 1.6fr) minmax(180px, .7fr);
  gap: 12px;
  align-items: end;
  margin-top: 18px;
  padding: 14px 16px;
}

.account-toolbar label,
.accounts-toolbar label {
  min-width: 0;
}

.callout {
  padding: 14px 16px;
  border-radius: 14px;
  font-size: 14px;
  line-height: 1.55;
}

.table-wrap {
  border-color: rgba(203, 213, 225, .78);
  border-radius: 18px;
  box-shadow: 0 10px 30px rgba(15, 23, 42, .035);
}

th,
td {
  padding: 14px 15px;
}

th {
  background: #f7f9fc;
  font-size: 12px;
  letter-spacing: .055em;
}

td {
  font-size: 14px;
  line-height: 1.5;
}

td strong {
  font-size: 14px;
}

.muted-cell,
.signature-state {
  font-size: 13px;
  line-height: 1.45;
}

.release-review summary {
  font-size: 13px;
}

.pill {
  padding: 5px 9px;
  font-size: 11px;
}

.release-uploader {
  margin-top: 20px;
  overflow: hidden;
  border: 1px solid rgba(191, 219, 254, .9);
  border-radius: 18px;
  background: linear-gradient(145deg, #fff, #f5f9ff);
  box-shadow: 0 10px 28px rgba(37, 99, 235, .055);
}

.release-uploader > summary {
  display: flex;
  min-height: 58px;
  align-items: center;
  gap: 10px;
  padding: 14px 18px;
  color: var(--brand-dark);
  font-size: 14px;
  font-weight: 740;
  list-style: none;
  cursor: pointer;
}

.release-uploader > summary::-webkit-details-marker {
  display: none;
}

.release-uploader > summary::after {
  margin-left: auto;
  content: "⌄";
  font-size: 18px;
  transition: transform .18s ease;
}

.release-uploader[open] > summary {
  border-bottom: 1px solid var(--line);
}

.release-uploader[open] > summary::after {
  transform: rotate(180deg);
}

.release-uploader > .form-surface,
.release-uploader > form {
  margin: 0;
  border: 0;
  border-radius: 0;
  background: rgba(248, 250, 252, .74);
  box-shadow: none;
}

.release-action-dialog,
.owner-action-dialog,
#owner-action-dialog {
  border-color: rgba(203, 213, 225, .92);
  border-radius: 24px;
  box-shadow: 0 30px 100px rgba(15, 23, 42, .28);
}

.owner-action-dialog,
#owner-action-dialog {
  width: min(560px, calc(100vw - 28px));
  max-height: calc(100dvh - 40px);
  margin: auto;
  padding: 0;
  overflow: auto;
  border: 1px solid rgba(203, 213, 225, .92);
  background: var(--paper-solid);
  color: var(--ink);
}

.owner-action-dialog::backdrop,
#owner-action-dialog::backdrop {
  background: rgba(15, 23, 42, .55);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}

.owner-action-dialog form,
#owner-action-dialog form {
  display: grid;
  gap: 17px;
  padding: clamp(22px, 4vw, 32px);
}

.owner-action-heading,
.dialog-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}

.owner-action-heading > div,
.dialog-heading > div {
  min-width: 0;
}

.owner-action-heading h2,
.dialog-heading h2 {
  margin-bottom: 0;
}

.dialog-icon {
  display: grid;
  flex: 0 0 42px;
  width: 42px;
  height: 42px;
  place-items: center;
  border-radius: 13px;
  background: var(--brand-soft);
  color: var(--brand-dark);
  font-size: 19px;
  font-weight: 760;
}

.dialog-close,
.owner-action-close,
.owner-dialog-close {
  width: 42px;
  min-width: 42px;
  padding: 0;
  border-radius: 999px;
  font-size: 20px;
}

#owner-action-field,
#owner-action-select-field,
.owner-action-field {
  display: grid;
  gap: 8px;
}

#owner-action-hint,
.owner-action-hint {
  margin: -7px 0 0;
  color: var(--muted);
  font-size: 13px;
}

#owner-action-error,
.owner-action-error {
  margin: -3px 0 0;
  padding: 12px 14px;
  border: 1px solid #fecaca;
  border-radius: 13px;
  background: var(--danger-soft);
  color: var(--danger);
  font-size: 13px;
  font-weight: 680;
}

.owner-action-buttons {
  justify-content: flex-end;
  padding-top: 2px;
}

@media (min-width: 1021px) {
  .console {
    display: grid;
    grid-template-columns: minmax(220px, 240px) minmax(0, 1fr);
    grid-template-rows: auto auto;
    gap: 24px;
    align-items: start;
  }

  .console-hero {
    grid-column: 1 / -1;
    grid-row: 1;
  }

  .tabs-shell {
    position: sticky;
    top: 106px;
    z-index: 20;
    grid-column: 1;
    grid-row: 2;
    align-self: start;
    margin: 0;
    padding: 0;
    background: transparent;
  }

  .tabs {
    flex-direction: column;
    gap: 5px;
    padding: 9px;
    overflow: visible;
    border-radius: 20px;
    background: rgba(255, 255, 255, .9);
    box-shadow: 0 16px 44px rgba(15, 23, 42, .07);
  }

  .tabs button {
    width: 100%;
    min-height: 46px;
    justify-content: flex-start;
    padding: 10px 13px;
    border-radius: 12px;
    font-size: 14px;
    text-align: left;
  }

  .tabs button:hover:not(:disabled) {
    background: #f3f6fb;
  }

  .tabs button.active {
    border-color: #cfe0ff;
    background: linear-gradient(135deg, #eff6ff, #e8f0ff);
    color: #1746a2;
    box-shadow: inset 3px 0 #2563eb, 0 4px 12px rgba(37, 99, 235, .07);
  }

  .tabs .tab-icon {
    width: 24px;
    min-width: 24px;
    height: 24px;
    border-radius: 8px;
    background: rgba(100, 116, 139, .08);
  }

  .tabs button.active .tab-icon {
    background: rgba(37, 99, 235, .12);
  }

  .console > .panel {
    grid-column: 2;
    grid-row: 2;
  }
}

@media (max-width: 1020px) {
  .console {
    display: block;
  }

  .console-hero {
    margin-bottom: 12px;
  }

  .tabs-shell {
    position: sticky;
    top: 81px;
    margin-inline: -8px;
    padding: 10px 8px;
    background: linear-gradient(var(--canvas) 74%, rgba(244, 247, 251, 0));
  }

  .tabs {
    flex-direction: row;
    overflow-x: auto;
  }

  .tabs button {
    width: auto;
    justify-content: center;
  }

  .panel {
    margin-top: 16px;
  }
}

@media (max-width: 900px) {
  .console-hero {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 18px;
  }

  .hero-actions,
  .console-hero-actions {
    min-width: 0;
    justify-content: flex-start;
  }
}

@media (max-width: 720px) {
  .topbar {
    min-height: 74px;
    margin-inline: -14px;
    padding-inline: 14px;
  }

  .brand-mark {
    width: 38px;
    height: 38px;
  }

  body:has(.console:not(.hidden)) .notice:not(.hidden) {
    top: 84px;
    right: 14px;
    left: 14px;
    width: auto;
  }

  .console {
    padding-top: 24px;
  }

  .console-hero {
    padding: 21px 18px;
    border-radius: 20px;
  }

  .hero-actions,
  .console-hero-actions {
    justify-content: flex-start;
    margin-top: 18px;
  }

  .tabs-shell {
    top: 73px;
    margin-inline: -14px;
    padding-inline: 14px;
  }

  .tabs button,
  button,
  .compact,
  .actions button,
  td > button {
    min-height: 44px;
  }

  .panel {
    padding: 22px 17px;
    border-radius: 20px;
  }

  .metric-grid {
    gap: 10px;
  }

  .metric {
    min-height: 96px;
    padding: 15px;
  }

  .metric strong {
    font-size: 26px;
  }

  .account-toolbar,
  .accounts-toolbar {
    grid-template-columns: 1fr;
    padding: 15px;
  }

  .form-surface {
    padding: 16px;
  }

  .table-wrap {
    overflow: visible;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
  }

  tbody tr {
    border-radius: 16px;
  }

  td {
    padding: 12px 14px;
    font-size: 14px;
  }

  td::before {
    font-size: 11px;
  }

  .actions {
    min-width: 0;
  }

  .release-uploader > summary {
    min-height: 60px;
  }

  .owner-action-dialog,
  #owner-action-dialog {
    width: calc(100vw - 20px);
    max-height: calc(100dvh - 20px);
    border-radius: 20px;
  }

  .owner-action-buttons > button {
    flex: 1 1 auto;
  }
}

@media (max-width: 480px) {
  .topbar-actions {
    gap: 6px;
  }

  .console-hero h1 {
    font-size: 31px;
  }

  .hero-actions > button,
  .console-hero-actions > button {
    flex: 1 1 calc(50% - 5px);
  }

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

  .metric span {
    max-width: 100%;
  }

  .metric .metric-icon {
    position: static;
    width: 30px;
    height: 30px;
    margin-bottom: 8px;
  }

  .section-head {
    display: grid;
    grid-template-columns: 1fr;
  }

  .section-head > button {
    justify-self: start;
  }

  td {
    grid-template-columns: minmax(82px, .38fr) minmax(0, 1fr);
    gap: 10px;
  }
}

@media (prefers-reduced-motion: reduce) {
  body:has(.console:not(.hidden)) .notice:not(.hidden) {
    animation: none;
  }
}

@media (prefers-contrast: more) {
  :where(button, input, textarea, select, summary, a, [tabindex]):focus-visible {
    outline-width: 4px;
  }

  button:focus-visible,
  .table-wrap:focus-visible,
  summary:focus-visible,
  .brand:focus-visible,
  input:focus-visible,
  textarea:focus-visible,
  select:focus-visible {
    outline-width: 4px;
  }

  .tabs button.active {
    border-color: #1d4ed8;
  }
}

/* Console fit (2026-09): tables sized for a 13-inch MacBook, row menus instead of button piles, calmer release list. */
@media (min-width: 721px) {
  .console {
    padding-top: clamp(22px, 3vw, 36px);
  }
  .console-hero {
    padding-bottom: clamp(16px, 2.4vw, 24px);
  }
  .console-hero h1 {
    margin-bottom: 6px;
    font-size: clamp(28px, 3vw, 36px);
  }
  .panel {
    padding: clamp(18px, 2.4vw, 26px);
  }
  .metric-grid {
    margin-top: 18px;
  }
  .metric {
    min-height: 74px;
    padding: 12px 14px;
  }
  .callout {
    padding: 10px 13px;
    font-size: 12px;
  }
  table {
    min-width: 0;
  }
  th,
  td {
    padding: 11px 12px;
  }
  th {
    white-space: normal;
  }
  td {
    line-height: 1.45;
    overflow-wrap: anywhere;
  }
  .table-wrap {
    margin-top: 16px;
    overflow: visible;
  }
  .table-wrap[data-scrollable="true"] {
    overflow: auto;
  }
  .table-wrap:not([data-scrollable="true"]) th {
    position: static;
  }
  .table-wrap:not([data-scrollable="true"]) thead th:first-child {
    border-top-left-radius: calc(var(--radius-md) - 1px);
  }
  .table-wrap:not([data-scrollable="true"]) thead th:last-child {
    border-top-right-radius: calc(var(--radius-md) - 1px);
  }
  tbody tr:last-child td {
    border-bottom: 0;
  }
  th:last-child,
  td:last-child:not(.empty-cell) {
    text-align: right;
  }
  .actions {
    min-width: 0;
    flex-wrap: nowrap;
    align-items: center;
    justify-content: flex-end;
    gap: 6px;
  }
  .actions button {
    white-space: nowrap;
  }
}
.cell-pills .pill {
  margin: 1px 0;
}
.clamp-1,
.clamp-2 {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.clamp-1 {
  -webkit-line-clamp: 1;
}
.clamp-2 {
  -webkit-line-clamp: 2;
}
code.ident {
  font-size: 11px;
  overflow-wrap: anywhere;
}
.row-menu {
  position: relative;
  display: inline-block;
}
.row-menu > summary {
  display: inline-grid;
  width: 34px;
  min-height: 32px;
  place-items: center;
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  background: var(--paper-solid);
  color: var(--ink-soft);
  font-size: 16px;
  font-weight: 700;
  line-height: 1;
  cursor: pointer;
  list-style: none;
  user-select: none;
}
.row-menu > summary::-webkit-details-marker {
  display: none;
}
.row-menu > summary:hover,
.row-menu[open] > summary {
  background: var(--canvas-soft);
  color: var(--brand-dark);
}
.row-menu > summary:focus-visible {
  outline: 2px solid var(--brand);
  outline-offset: 2px;
}
.row-menu-list {
  position: absolute;
  top: calc(100% + 6px);
  right: 0;
  z-index: 40;
  display: grid;
  min-width: 200px;
  gap: 2px;
  padding: 6px;
  border: 1px solid var(--line-strong);
  border-radius: 12px;
  background: var(--paper-solid);
  box-shadow: 0 18px 48px rgba(15, 23, 42, .16);
  text-align: left;
}
.row-menu-list.open-up {
  top: auto;
  bottom: calc(100% + 6px);
}
.row-menu-list button {
  display: flex;
  width: 100%;
  min-height: 34px;
  justify-content: flex-start;
  padding: 7px 10px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  box-shadow: none;
  color: var(--ink-soft);
  font-size: 12px;
  font-weight: 640;
  text-align: left;
}
.row-menu-list button:hover:not(:disabled),
.row-menu-list button:focus-visible {
  background: var(--canvas-soft);
  box-shadow: none;
  transform: none;
}
.row-menu-list button.menu-danger {
  color: var(--danger);
}
.release-detail {
  display: grid;
  gap: 16px;
  margin-top: 16px;
  border-color: var(--line-strong);
}
.evidence-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px 18px;
  margin: 0;
}
.evidence-grid .wide-evidence {
  grid-column: 1 / -1;
}
.evidence-grid dt {
  color: var(--muted);
  font-size: 10px;
  font-weight: 760;
  letter-spacing: .06em;
  text-transform: uppercase;
}
.evidence-grid dd {
  margin: 4px 0 0;
  color: var(--ink-soft);
  font-size: 13px;
  overflow-wrap: anywhere;
  white-space: pre-wrap;
}
.evidence-grid code {
  font-size: 11.5px;
}
@media (max-width: 720px) {
  .row-menu {
    display: block;
  }
  .row-menu > summary {
    width: auto;
    padding-inline: 12px;
    font-size: 13px;
  }
  .row-menu-list {
    position: static;
    margin-top: 8px;
    box-shadow: none;
  }
  .row-menu-list button {
    min-height: 44px;
  }
  .evidence-grid {
    grid-template-columns: 1fr;
  }
}
@media (min-width: 721px) {
  #panel-allowlist th:nth-child(1) { width: 20%; }
  #panel-allowlist th:nth-child(2) { width: 13%; }
  #panel-allowlist th:nth-child(3) { width: 13%; }
  #panel-allowlist th:nth-child(4) { width: 16%; }
  #panel-allowlist th:nth-child(5) { width: 18%; }
  #panel-feedback th:nth-child(2) { width: 21%; }
  #panel-feedback th:nth-child(3) { width: 36%; }
  #panel-users th:nth-child(1) { width: 25%; }
  #panel-audit th:nth-child(3) { width: 24%; }
  #panel-audit th:nth-child(4) { width: 30%; }
  td .muted-cell:not(.clamp-1):not(.clamp-2),
  td .signature-state {
    display: inline-block;
    max-width: 100%;
  }
}
@media (min-width: 721px) and (max-width: 1120px) {
  th,
  td {
    padding: 9px 9px;
  }
  .actions {
    flex-wrap: wrap;
    row-gap: 6px;
  }
  .actions button {
    white-space: normal;
    text-align: left;
  }
  .pill {
    padding: 3px 7px;
  }
}
@media (min-width: 721px) {
  #panel-audit th:last-child,
  #panel-audit td:last-child {
    text-align: left;
  }
}
@media (min-width: 721px) {
  #panel-users table,
  #panel-allowlist table,
  #panel-feedback table,
  #panel-releases table,
  #panel-audit table {
    table-layout: fixed;
  }
  #panel-users th:nth-child(1) { width: 25%; }
  #panel-users th:nth-child(2) { width: 8%; }
  #panel-users th:nth-child(3) { width: 18%; }
  #panel-users th:nth-child(4) { width: 15%; }
  #panel-users th:nth-child(5) { width: 16%; }
  #panel-users th:nth-child(6) { width: 18%; }
  #panel-allowlist th:nth-child(6) { width: 20%; }
  #panel-feedback th:nth-child(1) { width: 12%; }
  #panel-feedback th:nth-child(3) { width: 33%; }
  #panel-feedback th:nth-child(4) { width: 10%; }
  #panel-feedback th:nth-child(5) { width: 10%; }
  #panel-feedback th:nth-child(6) { width: 14%; }
  #panel-releases th:nth-child(1) { width: 24%; }
  #panel-releases th:nth-child(2) { width: 22%; }
  #panel-releases th:nth-child(3) { width: 14%; }
  #panel-releases th:nth-child(4) { width: 15%; }
  #panel-releases th:nth-child(5) { width: 7%; }
  #panel-releases th:nth-child(6) { width: 18%; }
  #panel-audit th:nth-child(1) { width: 15%; }
  #panel-audit th:nth-child(2) { width: 20%; }
  #panel-audit th:nth-child(5) { width: 11%; }
}
