:root {
  --ink: #10231d;
  --muted: #5d6b65;
  --paper: #f7f4ed;
  --white: #fff;
  --line: #d9ddd6;
  --green: #167b54;
  --green-dark: #0e5f40;
  --green-soft: #e7f3ec;
  --blue: #2357c6;
  --gold: #b36b16;
  --red: #a13c35;
  --shadow: 0 18px 55px rgba(16, 35, 29, .09);
}

* { box-sizing: border-box; }
html { color-scheme: light; scroll-behavior: smooth; }
body {
  margin: 0;
  min-height: 100vh;
  color: var(--ink);
  background:
    radial-gradient(circle at 12% 0%, rgba(22, 123, 84, .12), transparent 26rem),
    var(--paper);
  font-family: Inter, system-ui, sans-serif;
  line-height: 1.55;
}
button, input, select, textarea { font: inherit; }
a { color: inherit; }
[hidden] { display: none !important; }

.portal-header,
.portal-footer {
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.portal-header { min-height: 84px; border-bottom: 1px solid rgba(16, 35, 29, .12); }
.portal-header nav { display: flex; align-items: center; gap: 22px; font-weight: 700; }
.portal-header nav a { text-decoration: none; }
.portal-brand img { display: block; width: min(245px, 48vw); height: auto; }
.portal-footer { padding: 34px 0 48px; color: var(--muted); font-size: .9rem; }

main { width: min(1100px, calc(100% - 40px)); margin: 0 auto; padding: 70px 0 90px; }
.portal-hero { max-width: 820px; padding: 32px 0 54px; }
.portal-hero h1,
.workspace-heading h2,
.request-card h2,
.auth-card h2 {
  margin: 0;
  font-family: "Space Grotesk", Inter, sans-serif;
  letter-spacing: -.045em;
  line-height: 1.04;
}
.portal-hero h1 { max-width: 760px; font-size: clamp(2.65rem, 7vw, 5.4rem); }
.portal-hero > p:last-child { max-width: 720px; margin: 26px 0 0; color: var(--muted); font-size: clamp(1.04rem, 2vw, 1.3rem); }
.owner-hero h1 { max-width: 900px; }
.eyebrow { margin: 0 0 10px; color: var(--green-dark); font-size: .74rem; font-weight: 800; letter-spacing: .13em; text-transform: uppercase; }

.auth-card,
.request-card,
.project-card {
  background: rgba(255, 255, 255, .92);
  border: 1px solid var(--line);
  border-radius: 22px;
  box-shadow: var(--shadow);
}
.auth-card {
  display: grid;
  grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr);
  gap: 50px;
  padding: clamp(26px, 5vw, 50px);
  align-items: end;
}
.auth-card h2, .request-card h2, .workspace-heading h2 { font-size: clamp(2rem, 4vw, 3.25rem); }
.auth-card p { color: var(--muted); }
label { display: grid; gap: 7px; font-weight: 700; font-size: .9rem; }
input, textarea, select {
  width: 100%;
  border: 1px solid #bdc7c0;
  border-radius: 10px;
  background: var(--white);
  color: var(--ink);
  padding: 12px 13px;
  outline: none;
}
textarea { resize: vertical; }
input:focus, textarea:focus, select:focus { border-color: var(--green); box-shadow: 0 0 0 3px rgba(22, 123, 84, .14); }
.inline-form { display: flex; gap: 10px; margin-top: 10px; }
.inline-form input { min-width: 0; }

.button,
.text-button {
  border: 0;
  cursor: pointer;
  font-weight: 800;
}
.button { padding: 13px 18px; border-radius: 10px; white-space: nowrap; }
.button.primary { color: white; background: var(--green); }
.button.primary:hover { background: var(--green-dark); }
.button.secondary { color: var(--green-dark); background: var(--green-soft); }
.button.secondary:hover { background: #d7eadf; }
.text-button { padding: 0; color: var(--green-dark); background: none; text-decoration: underline; }
button:disabled { cursor: wait; opacity: .55; }

.epai-launch-card {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(260px, .65fr);
  gap: clamp(28px, 6vw, 72px);
  align-items: center;
  margin: 0 0 58px;
  padding: clamp(28px, 5vw, 52px);
  border: 1px solid #27323d;
  border-radius: 22px;
  background:
    radial-gradient(circle at 85% 10%, rgba(112, 201, 255, .14), transparent 19rem),
    #0b1016;
  color: #f2f5f7;
  box-shadow: 0 24px 80px rgba(7, 10, 14, .22);
}
.epai-launch-card .eyebrow { color: #71e5b4; }
.epai-launch-card h2 { margin: 0; font: 700 clamp(2.1rem, 5vw, 4rem)/1 "Space Grotesk", sans-serif; letter-spacing: -.045em; }
.epai-launch-card p:last-child { max-width: 650px; margin: 20px 0 0; color: #aeb8c2; }
.epai-launch-card form { display: grid; gap: 12px; }
.epai-launch-card small { color: #8e9aa7; text-align: center; }
.button.epai-button { color: #08100c; background: #d8ff72; }
.button.epai-button:hover { background: #c7ef60; }

.notice {
  margin: 0 0 24px;
  padding: 14px 17px;
  border: 1px solid #a9c0dd;
  border-radius: 10px;
  background: #edf5ff;
  color: #174a83;
  font-weight: 700;
}
.notice[data-kind="success"] { border-color: #9bc9ad; background: var(--green-soft); color: var(--green-dark); }
.notice[data-kind="error"] { border-color: #e0aaa5; background: #fff0ef; color: var(--red); }

.workspace-heading,
.section-heading,
.project-heading,
.form-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.workspace-heading { margin-bottom: 28px; }
.workspace-heading p:not(.eyebrow) { margin: 7px 0 0; color: var(--muted); }
.request-card { margin-bottom: 28px; padding: clamp(24px, 4vw, 42px); }
.request-form { display: grid; gap: 22px; margin-top: 30px; }
.field-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.form-footer { align-items: flex-end; }
.form-footer p { max-width: 620px; margin: 0; color: var(--muted); font-size: .86rem; }

.project-list { display: grid; gap: 24px; }
.project-card { padding: clamp(22px, 4vw, 38px); }
.project-heading { align-items: flex-start; }
.project-heading h3 { margin: 0; font: 700 clamp(1.5rem, 3vw, 2.25rem)/1.1 "Space Grotesk", sans-serif; letter-spacing: -.03em; }
.project-description { margin: 22px 0; white-space: pre-line; color: #33453e; }
.status { display: inline-flex; padding: 7px 10px; border-radius: 999px; background: #edf0ee; color: #45544e; font-size: .73rem; font-weight: 800; letter-spacing: .04em; text-transform: uppercase; white-space: nowrap; }
.status-new, .status-reviewing { background: #fff3dc; color: #7b4d14; }
.status-proposal_sent, .status-contract_sent, .status-payment_due { background: #eaf0ff; color: #234b9d; }
.status-scheduled, .status-in_progress { background: var(--green-soft); color: var(--green-dark); }
.status-waiting_on_customer { background: #fff0e4; color: #8a4812; }
.status-complete { background: #dff4e8; color: #12633f; }
.status-closed { background: #eceeed; color: #5d6662; }

.project-actions { margin: 28px 0; padding: 22px; border-radius: 15px; background: #f1f6f3; }
.project-card h4 { margin: 0 0 13px; font-size: .94rem; }
.action-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 12px; }
.action-link { display: grid; gap: 4px; padding: 15px; border-radius: 10px; color: white; background: var(--green); text-decoration: none; }
.action-link:hover { background: var(--green-dark); }
.action-link span { font-size: .67rem; font-weight: 800; letter-spacing: .11em; text-transform: uppercase; opacity: .82; }

.project-progress {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  margin: 28px 0 18px;
  border: 1px solid var(--line);
  border-radius: 14px;
  overflow: hidden;
}
.progress-step { position: relative; display: grid; gap: 5px; min-height: 80px; padding: 15px; background: #f4f5f2; color: #6c7772; }
.progress-step + .progress-step { border-left: 1px solid var(--line); }
.progress-step span { font-size: .72rem; font-weight: 800; }
.progress-step strong { font-size: .82rem; }
.progress-step.is-complete { background: var(--green-soft); color: var(--green-dark); }
.progress-step.is-current { background: #edf3ff; color: #234b9d; box-shadow: inset 0 -3px 0 #5b7fd5; }

.project-snapshot { display: grid; grid-template-columns: minmax(240px, 1.8fr) repeat(3, minmax(115px, .7fr)); gap: 10px; margin: 0 0 24px; }
.project-snapshot > div { display: grid; align-content: center; gap: 3px; min-height: 72px; padding: 13px 15px; border: 1px solid var(--line); border-radius: 12px; background: #fbfcfa; }
.project-snapshot span { color: var(--muted); font-size: .7rem; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; }
.project-snapshot strong { line-height: 1.3; }
.project-snapshot .snapshot-next { border-color: #9cc8ad; background: var(--green-soft); }

.project-files,
.project-requests { margin: 28px 0; padding: 22px; border: 1px solid var(--line); border-radius: 15px; background: #fafbf9; }
.section-heading.compact { align-items: baseline; margin-bottom: 14px; }
.section-heading.compact h4 { margin: 0; }
.section-heading.compact span { color: var(--muted); font-size: .74rem; }
.file-list,
.request-history { display: grid; gap: 8px; margin: 0 0 16px; padding: 0; list-style: none; }
.file-list li { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 12px; border: 1px solid #e2e5e1; border-radius: 9px; background: white; }
.file-list li > div { display: grid; }
.file-list a { color: var(--green-dark); font-weight: 800; }
.file-list small,
.file-list li > span { color: var(--muted); font-size: .75rem; }
.file-upload-form { display: grid; grid-template-columns: 1fr auto; align-items: end; gap: 12px; }
.file-upload-form label { padding: 12px; border: 1px dashed #9cb0a6; border-radius: 10px; background: white; }
.file-upload-form input { padding: 4px 0 0; border: 0; }
.project-requests > p { margin: -4px 0 16px; color: var(--muted); font-size: .87rem; }
.request-control-form { display: grid; grid-template-columns: minmax(180px, .65fr) minmax(260px, 1.5fr) auto; gap: 12px; align-items: end; }
.request-history { margin-top: 18px; }
.request-history li { display: grid; gap: 3px; padding: 11px 13px; border-left: 3px solid var(--green); background: white; }
.request-history span { color: var(--muted); font-size: .84rem; }
.ownership-note { display: block; margin-top: 25px; padding: 18px; border-radius: 13px; background: #10231d; color: white; font-size: .88rem; }
.ownership-note span { color: #d8e4df; }

.timeline { margin-top: 28px; padding-top: 25px; border-top: 1px solid var(--line); }
.timeline ol { margin: 0; padding: 0; list-style: none; }
.timeline li { display: grid; grid-template-columns: 12px 1fr; gap: 12px; padding: 8px 0; }
.timeline-marker { width: 9px; height: 9px; margin-top: 6px; border-radius: 50%; background: var(--green); }
.timeline small { color: var(--muted); font-weight: 700; }
.timeline p { margin: 3px 0; }
.message-form { display: grid; grid-template-columns: 1fr auto; gap: 12px; align-items: end; margin-top: 22px; }

.empty-state { padding: 45px; border: 1px dashed #aebbb4; border-radius: 18px; text-align: center; }
.empty-state h3 { margin: 0 0 7px; font: 700 1.5rem "Space Grotesk", sans-serif; }
.empty-state p { margin: 0; color: var(--muted); }

.owner-summary { display: grid; grid-template-columns: repeat(5, 1fr); gap: 12px; margin-bottom: 24px; }
.owner-summary div { display: grid; padding: 20px; border: 1px solid var(--line); border-radius: 14px; background: rgba(255,255,255,.72); }
.owner-summary strong { font: 700 2rem "Space Grotesk", sans-serif; }
.owner-summary span { color: var(--muted); font-size: .82rem; font-weight: 700; }
.contact-row { display: flex; flex-wrap: wrap; gap: 8px 18px; margin: 12px 0; font-size: .86rem; }
.contact-row a { color: var(--green-dark); font-weight: 700; }
.owner-tools { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; margin-top: 25px; }
.owner-form { display: flex; flex-direction: column; gap: 12px; padding: 18px; border: 1px solid var(--line); border-radius: 13px; background: #fafbf9; }
.owner-form .button { margin-top: auto; }
.owner-history { margin-top: 26px; padding-top: 22px; border-top: 1px solid var(--line); }
.owner-history ul { display: grid; gap: 8px; margin: 0; padding: 0; list-style: none; }
.owner-history li { display: grid; grid-template-columns: 150px 1fr; gap: 12px; font-size: .87rem; }
.owner-history small { color: var(--muted); }

.owner-toolbar {
  position: sticky;
  top: 12px;
  z-index: 4;
  display: grid;
  grid-template-columns: minmax(260px, 1fr) minmax(190px, .35fr);
  gap: 12px;
  margin: 0 0 36px;
  padding: 14px;
  border: 1px solid rgba(16, 35, 29, .14);
  border-radius: 16px;
  background: rgba(247, 244, 237, .94);
  box-shadow: 0 10px 35px rgba(16, 35, 29, .08);
  backdrop-filter: blur(12px);
}
.owner-toolbar label { gap: 4px; color: var(--muted); font-size: .72rem; letter-spacing: .05em; text-transform: uppercase; }
.owner-toolbar input, .owner-toolbar select { padding: 10px 12px; color: var(--ink); font-size: .9rem; letter-spacing: normal; text-transform: none; }
.owner-section { margin: 0 0 58px; }
.owner-section > .section-heading { margin-bottom: 18px; padding-bottom: 13px; border-bottom: 1px solid var(--line); }
.owner-section > .section-heading h3 { margin: 0; font: 700 clamp(1.65rem, 3vw, 2.35rem)/1.05 "Space Grotesk", sans-serif; letter-spacing: -.035em; }
.owner-section > .section-heading .eyebrow { margin-bottom: 5px; }
.count-pill { min-width: 38px; padding: 7px 11px; border-radius: 999px; background: var(--ink); color: white; text-align: center; font-weight: 800; }
.empty-state.compact { padding: 24px; }
.lead-list { display: grid; gap: 16px; }
.lead-card { position: relative; overflow: hidden; padding: clamp(20px, 3vw, 30px); border: 1px solid var(--line); border-radius: 18px; background: rgba(255,255,255,.86); box-shadow: 0 12px 35px rgba(16,35,29,.05); }
.lead-card::before, .owner-project::before { content: ""; position: absolute; inset: 0 auto 0 0; width: 4px; background: #9aa59f; }
.lead-card.priority-high::before { background: var(--gold); }
.lead-card.priority-urgent::before, .health-at_risk::before, .health-blocked::before { background: var(--red); }
.lead-card h4 { margin: 0; font: 700 clamp(1.35rem, 2.6vw, 1.85rem)/1.1 "Space Grotesk", sans-serif; letter-spacing: -.025em; }
.status-stack { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 6px; }
.badge-priority { background: #f1f2f1; color: #65716c; }
.status-high, .status-attention { background: #fff2dc; color: #825117; }
.status-urgent, .status-blocked, .status-at_risk, .status-overdue { background: #ffebe9; color: #963a32; }
.status-on_track, .status-paid, .status-signed, .status-accepted, .status-resolved { background: var(--green-soft); color: var(--green-dark); }
.record-facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(145px, 1fr)); gap: 8px; margin: 20px 0 0; }
.record-facts > div { display: grid; gap: 2px; min-width: 0; padding: 12px 14px; border: 1px solid #e1e5e1; border-radius: 10px; background: #fbfcfa; }
.record-facts dt { color: var(--muted); font-size: .68rem; font-weight: 800; letter-spacing: .07em; text-transform: uppercase; }
.record-facts dd { overflow-wrap: anywhere; margin: 0; font-size: .86rem; font-weight: 700; }
.lead-actions { display: grid; grid-template-columns: minmax(0, 1.65fr) minmax(220px, .65fr); gap: 12px; margin-top: 18px; }
.lead-form .button { align-self: flex-start; }
.invite-panel { justify-content: center; background: var(--ink); color: white; }
.invite-panel p { margin: 0; color: #d4dfda; font-size: .87rem; }
.invite-panel .button { align-self: flex-start; color: var(--ink); background: white; text-decoration: none; }
.field-row { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; align-items: end; }
.field-row.four { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.field-row.three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.owner-project { position: relative; overflow: hidden; scroll-margin-top: 110px; }
.health-on_track::before, .health-complete::before { background: var(--green); }
.health-attention::before { background: var(--gold); }
.next-action-card { display: grid; grid-template-columns: minmax(85px, .25fr) minmax(220px, 1fr) auto; gap: 14px; align-items: center; margin: 24px 0 12px; padding: 16px 18px; border: 1px solid #a9c8b6; border-radius: 13px; background: var(--green-soft); }
.next-action-card > span { color: var(--green-dark); font-size: .7rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.next-action-card small { color: var(--muted); font-weight: 700; }
.next-action-card.is-due { border-color: #d8a7a2; background: #fff0ef; }
.project-facts { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.owner-tools-expanded { grid-template-columns: 1fr; gap: 9px; }
.owner-panel { border: 1px solid var(--line); border-radius: 13px; background: #fafbf9; }
.owner-panel > summary { position: relative; cursor: pointer; padding: 16px 48px 16px 18px; font-weight: 800; list-style: none; }
.owner-panel > summary::-webkit-details-marker { display: none; }
.owner-panel > summary::after { content: "+"; position: absolute; right: 18px; color: var(--green-dark); font-size: 1.35rem; line-height: 1; }
.owner-panel[open] > summary::after { content: "−"; }
.owner-panel[open] > summary { border-bottom: 1px solid var(--line); }
.owner-panel > .owner-form { border: 0; border-radius: 0 0 13px 13px; }
.workflow-form { background: white; }
.request-inbox { margin: 22px 0; padding: 19px; border: 1px solid #d7a7a2; border-radius: 14px; background: #fff3f1; }
.request-inbox > h4 { color: #873b35; }
.request-review { display: grid; gap: 10px; padding: 13px; border: 1px solid #ead1ce; border-radius: 10px; background: white; }
.request-review + .request-review { margin-top: 9px; }
.request-review > div:first-child { display: flex; justify-content: space-between; gap: 18px; }
.request-review p { margin: 0; color: #33453e; }
.request-review .field-row { grid-template-columns: minmax(140px, .35fr) minmax(250px, 1fr) auto; }
.timeline-list { display: grid; gap: 1px; overflow: hidden; border: 1px solid var(--line); border-radius: 11px; background: var(--line); }
.timeline-item { display: grid; grid-template-columns: 145px 1fr; gap: 14px; padding: 12px 14px; background: white; font-size: .86rem; }
.timeline-item > div { display: flex; flex-wrap: wrap; gap: 7px 14px; }
.timeline-item a { color: var(--green-dark); font-weight: 800; }
.timeline-item span { color: var(--muted); }
.mini-actions { display: inline-flex; gap: 10px; }
.mini-button { font-size: .76rem; }
.muted { color: var(--muted); }
.mfa-card { align-items: center; border-color: #9cc8ad; }
.mfa-card > div:first-child { max-width: 440px; }
.mfa-flow { display: grid; gap: 16px; }
.mfa-flow h3 { margin: 0; font: 700 1.55rem/1.1 "Space Grotesk", sans-serif; letter-spacing: -.025em; }
.mfa-flow p { margin: 0; color: var(--muted); }
.mfa-qr { display: block; width: min(240px, 100%); height: auto; padding: 10px; border: 1px solid var(--line); border-radius: 13px; background: white; }
.mfa-secret { display: grid; gap: 5px; }
.mfa-secret span { font-size: .8rem; font-weight: 700; }
.mfa-secret code { overflow-wrap: anywhere; padding: 9px 11px; border-radius: 8px; background: #eef1ee; color: var(--ink); font-size: .78rem; }
.mfa-form { display: grid; grid-template-columns: 1fr auto; gap: 10px; align-items: end; }
.operations-panel { overflow: hidden; border: 1px solid var(--line); border-radius: 16px; background: rgba(255,255,255,.72); }
.operations-panel > summary { display: flex; align-items: center; justify-content: space-between; gap: 20px; cursor: pointer; padding: 18px 20px; list-style: none; }
.operations-panel > summary::-webkit-details-marker { display: none; }
.operations-panel > summary strong { display: block; font: 700 1.03rem "Space Grotesk", sans-serif; }
.operations-panel > summary .eyebrow { margin-bottom: 3px; }
.operations-panel[open] > summary { border-bottom: 1px solid var(--line); }
.operations-grid { display: grid; grid-template-columns: minmax(260px, .8fr) minmax(320px, 1.2fr); gap: 22px; padding: 22px; }
.operations-grid h3 { margin: 0 0 13px; font: 700 1.05rem "Space Grotesk", sans-serif; }
.operations-facts { display: grid; gap: 7px; margin: 0; }
.operations-facts > div { display: flex; justify-content: space-between; gap: 15px; padding-bottom: 7px; border-bottom: 1px solid #e4e7e3; }
.operations-facts dt { color: var(--muted); font-size: .8rem; }
.operations-facts dd { margin: 0; font-size: .82rem; font-weight: 800; text-align: right; }
.audit-list { display: grid; gap: 6px; max-height: 330px; overflow: auto; }
.audit-list > div { display: grid; grid-template-columns: minmax(150px, .9fr) minmax(110px, .55fr) minmax(180px, 1fr); gap: 10px; padding: 9px 11px; border: 1px solid #e2e5e1; border-radius: 8px; background: white; font-size: .74rem; }
.audit-list small { color: var(--muted); }
.status-healthy { background: var(--green-soft); color: var(--green-dark); }
.status-degraded { background: #fff2dc; color: #825117; }
.status-failed { background: #ffebe9; color: #963a32; }

@media (max-width: 820px) {
  .auth-card, .epai-launch-card { grid-template-columns: 1fr; gap: 24px; }
  .owner-tools { grid-template-columns: 1fr; }
  .owner-summary { grid-template-columns: repeat(2, 1fr); }
  .owner-toolbar, .lead-actions { grid-template-columns: 1fr; }
  .operations-grid { grid-template-columns: 1fr; }
  .field-row.four, .project-facts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .project-snapshot { grid-template-columns: repeat(3, 1fr); }
  .snapshot-next { grid-column: 1 / -1; }
  .request-control-form { grid-template-columns: 1fr 1fr; }
  .request-control-form .button { grid-column: 1 / -1; justify-self: start; }
}

@media (max-width: 620px) {
  .portal-header, .portal-footer, main { width: min(100% - 26px, 1100px); }
  .portal-header { min-height: 70px; }
  .portal-header nav a { display: none; }
  main { padding-top: 42px; }
  .portal-hero { padding: 15px 0 38px; }
  .portal-hero h1 { font-size: clamp(2.35rem, 12vw, 3.7rem); }
  .inline-form, .workspace-heading, .section-heading, .project-heading, .form-footer, .portal-footer { align-items: stretch; flex-direction: column; }
  .field-grid, .field-row, .field-row.four, .field-row.three, .message-form, .file-upload-form, .request-control-form, .project-snapshot, .project-facts, .request-review .field-row, .next-action-card { grid-template-columns: 1fr; }
  .project-progress { grid-template-columns: 1fr; }
  .progress-step { min-height: 0; grid-template-columns: 34px 1fr; align-items: center; }
  .progress-step + .progress-step { border-left: 0; border-top: 1px solid var(--line); }
  .snapshot-next, .request-control-form .button { grid-column: auto; }
  .file-list li { align-items: flex-start; flex-direction: column; }
  .status { align-self: flex-start; }
  .owner-history li { grid-template-columns: 1fr; gap: 2px; }
  .status-stack { justify-content: flex-start; }
  .timeline-item { grid-template-columns: 1fr; gap: 3px; }
  .owner-toolbar { position: static; }
  .mfa-form { grid-template-columns: 1fr; }
  .operations-panel > summary { align-items: flex-start; flex-direction: column; }
  .audit-list > div { grid-template-columns: 1fr; gap: 2px; }
  .epai-launch-card .button { width: 100%; }
}
