:root {
  --ink: #17312f;
  --ink-2: #405a57;
  --muted: #718682;
  --paper: #f3f5f1;
  --surface: #ffffff;
  --surface-2: #f7f8f5;
  --line: #dce4df;
  --brand: #175e53;
  --brand-dark: #0f403a;
  --brand-soft: #dceee9;
  --accent: #e2a840;
  --green: #2e7d5b;
  --green-soft: #e0f2e9;
  --amber: #a96709;
  --amber-soft: #fff0d5;
  --red: #b34842;
  --red-soft: #fbe4e1;
  --grey-soft: #e7ece9;
  --shadow: 0 16px 40px rgba(23, 49, 47, .08);
  --shadow-sm: 0 7px 20px rgba(23, 49, 47, .07);
  --radius: 18px;
  --radius-sm: 11px;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--ink);
  background: var(--paper);
  font-synthesis: none;
}

* { box-sizing: border-box; }
html { min-height: 100%; background: var(--paper); }
body { margin: 0; min-height: 100vh; background: var(--paper); }
button, input, textarea, select { font: inherit; }
button { color: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
.hidden { display: none !important; }

.login-screen { min-height: 100vh; display: grid; grid-template-columns: minmax(440px, 1.05fr) minmax(430px, .95fr); background: var(--surface); }
.login-visual { position: relative; padding: 56px 64px; overflow: hidden; color: #fff; background: linear-gradient(145deg, #0d342f 0%, #175e53 58%, #2a796a 100%); display: flex; flex-direction: column; justify-content: space-between; }
.login-visual::before, .login-visual::after { content: ""; position: absolute; border: 1px solid rgba(255,255,255,.12); border-radius: 50%; }
.login-visual::before { width: 620px; height: 620px; top: -260px; right: -280px; }
.login-visual::after { width: 360px; height: 360px; bottom: -170px; left: -140px; }
.brand-mark { width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center; background: var(--brand); color: #fff; font-weight: 800; letter-spacing: -.06em; }
.brand-mark-large { width: 58px; height: 58px; border: 1px solid rgba(255,255,255,.35); background: rgba(255,255,255,.1); backdrop-filter: blur(8px); position: relative; z-index: 1; }
.login-visual-copy { position: relative; z-index: 1; max-width: 650px; }
.login-visual-copy h1 { margin: 12px 0 20px; font-family: Georgia, "Times New Roman", serif; font-size: clamp(46px, 5vw, 75px); line-height: .99; font-weight: 500; letter-spacing: -.045em; }
.login-visual-copy > p:last-child { max-width: 520px; color: rgba(255,255,255,.75); font-size: 18px; line-height: 1.55; }
.eyebrow { margin: 0 0 6px; color: var(--brand); font-weight: 800; font-size: 11px; letter-spacing: .13em; text-transform: uppercase; }
.eyebrow.light { color: #bce4da; }
.visual-grid { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid rgba(255,255,255,.18); padding-top: 26px; position: relative; z-index: 1; }
.visual-grid div { display: flex; flex-direction: column; gap: 7px; }
.visual-grid strong { color: #bce4da; font-size: 12px; }
.visual-grid span { color: rgba(255,255,255,.86); font-size: 14px; }
.login-panel { display: grid; place-items: center; padding: 50px; }
.login-card { width: min(420px, 100%); }
.login-card h2 { font-family: Georgia, "Times New Roman", serif; margin: 4px 0 14px; font-size: 42px; font-weight: 500; letter-spacing: -.035em; }
.muted { color: var(--muted); line-height: 1.55; }
.login-card label, .form-field { display: grid; gap: 8px; margin-top: 22px; }
.login-card label span, .form-field > span, .field-label { font-weight: 700; font-size: 13px; color: var(--ink-2); }
input, textarea, select { width: 100%; border: 1px solid var(--line); background: var(--surface); color: var(--ink); border-radius: var(--radius-sm); padding: 12px 14px; outline: none; transition: border .15s, box-shadow .15s; }
textarea { min-height: 105px; resize: vertical; line-height: 1.5; }
input:focus, textarea:focus, select:focus { border-color: var(--brand); box-shadow: 0 0 0 3px rgba(23,94,83,.11); }
input::placeholder, textarea::placeholder { color: #a3b0ad; }
.btn { border: 0; border-radius: 10px; min-height: 41px; padding: 9px 14px; display: inline-flex; align-items: center; justify-content: center; gap: 9px; font-weight: 750; font-size: 13px; cursor: pointer; transition: transform .15s, background .15s, box-shadow .15s; }
.btn:hover { transform: translateY(-1px); }
.btn:disabled { cursor: not-allowed; opacity: .55; transform: none; }
.btn svg { width: 17px; height: 17px; fill: currentColor; }
.btn-primary { color: #fff; background: var(--brand); box-shadow: 0 7px 16px rgba(23,94,83,.18); }
.btn-primary:hover { background: var(--brand-dark); }
.btn-secondary { background: var(--surface); border: 1px solid var(--line); }
.btn-secondary:hover { background: var(--surface-2); }
.btn-danger { background: var(--red-soft); color: var(--red); }
.btn-wide { width: 100%; margin-top: 26px; justify-content: space-between; padding-inline: 18px; min-height: 48px; }
.form-error { min-height: 20px; margin: 12px 0 0; color: var(--red); font-size: 13px; }
.login-note { margin: 34px 0 0; text-align: center; color: #96a5a2; font-size: 12px; }
.mobile-brand { display: none; }

.app-shell { min-height: 100vh; display: grid; grid-template-columns: 242px minmax(0,1fr); }
.sidebar { position: sticky; top: 0; height: 100vh; z-index: 40; display: flex; flex-direction: column; padding: 24px 16px 17px; color: #dce8e5; background: #102f2c; box-shadow: 5px 0 22px rgba(16,47,44,.08); }
.sidebar-brand { display: flex; align-items: center; gap: 12px; padding: 0 8px 25px; border-bottom: 1px solid rgba(255,255,255,.09); }
.sidebar-brand .brand-mark { background: #fff; color: var(--brand-dark); }
.sidebar-brand div:last-child { min-width: 0; }
.sidebar-brand strong { display: block; font-size: 14px; color: #fff; }
.sidebar-brand span { display: block; margin-top: 3px; font-size: 11px; color: #8ca8a3; }
.main-nav { display: grid; gap: 5px; padding-top: 24px; }
.nav-item { width: 100%; border: 0; border-radius: 10px; padding: 11px 12px; background: transparent; color: #a9bfbb; display: flex; align-items: center; gap: 12px; text-align: left; font-size: 13px; font-weight: 680; cursor: pointer; }
.nav-item svg { width: 18px; height: 18px; fill: currentColor; }
.nav-item:hover { background: rgba(255,255,255,.05); color: #fff; }
.nav-item.active { background: rgba(255,255,255,.1); color: #fff; box-shadow: inset 3px 0 0 #76c6b3; }
.sidebar-footer { margin-top: auto; padding-top: 18px; border-top: 1px solid rgba(255,255,255,.09); display: flex; align-items: center; gap: 8px; }
.user-chip { min-width: 0; flex: 1; display: flex; align-items: center; gap: 10px; }
.avatar { flex: 0 0 auto; width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; background: #d9ede8; color: var(--brand-dark); font-weight: 800; font-size: 12px; }
.user-chip div:last-child { min-width: 0; }
.user-chip strong, .user-chip span { display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.user-chip strong { color: #fff; font-size: 12px; }
.user-chip span { color: #8ca8a3; margin-top: 2px; font-size: 10px; text-transform: capitalize; }
.icon-button { border: 0; border-radius: 9px; width: 36px; height: 36px; background: transparent; display: grid; place-items: center; cursor: pointer; color: inherit; }
.icon-button:hover { background: rgba(255,255,255,.08); }
.icon-button svg { width: 19px; height: 19px; fill: currentColor; }
.workspace { min-width: 0; }
.topbar { min-height: 96px; padding: 22px 32px; background: rgba(243,245,241,.92); backdrop-filter: blur(12px); position: sticky; top: 0; z-index: 30; border-bottom: 1px solid rgba(220,228,223,.8); display: flex; align-items: center; gap: 20px; }
.topbar > div:nth-child(2) { min-width: 0; }
.topbar h1 { margin: 0; font-family: Georgia, "Times New Roman", serif; font-weight: 500; font-size: 30px; letter-spacing: -.03em; }
.topbar-actions { margin-left: auto; display: flex; align-items: center; gap: 9px; }
.refresh-time { color: var(--muted); font-size: 11px; margin-right: 5px; }
.mobile-menu { display: none; border: 0; background: transparent; padding: 5px; }
.mobile-menu svg { width: 23px; fill: var(--ink); }
.main-content { padding: 28px 32px 56px; max-width: 1680px; margin: 0 auto; }

.hero-strip { background: linear-gradient(120deg, #153d38 0%, #175e53 64%, #398b7b 100%); color: #fff; border-radius: var(--radius); padding: 27px 30px; box-shadow: var(--shadow-sm); display: flex; align-items: center; justify-content: space-between; gap: 30px; overflow: hidden; position: relative; }
.hero-strip::after { content: ""; position: absolute; width: 300px; height: 300px; right: -100px; top: -155px; border-radius: 50%; border: 1px solid rgba(255,255,255,.15); }
.hero-strip h2 { position: relative; margin: 4px 0 7px; font-family: Georgia, "Times New Roman", serif; font-size: 28px; font-weight: 500; }
.hero-strip p { position: relative; margin: 0; color: rgba(255,255,255,.7); font-size: 13px; }
.hero-status { position: relative; display: flex; align-items: center; gap: 12px; min-width: 230px; }
.hero-status-number { font-family: Georgia, "Times New Roman", serif; font-size: 50px; line-height: 1; }
.hero-status-copy strong, .hero-status-copy span { display: block; }
.hero-status-copy strong { font-size: 13px; }
.hero-status-copy span { color: rgba(255,255,255,.65); font-size: 11px; margin-top: 3px; }
.metric-grid { display: grid; grid-template-columns: repeat(6, minmax(0,1fr)); gap: 12px; margin-top: 16px; }
.metric-card { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 17px; box-shadow: var(--shadow-sm); min-width: 0; }
.metric-card-header { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.metric-card span { color: var(--muted); font-size: 11px; font-weight: 700; }
.metric-card strong { display: block; margin-top: 12px; font-family: Georgia, "Times New Roman", serif; font-size: 32px; font-weight: 500; line-height: 1; }
.metric-marker { width: 8px; height: 8px; border-radius: 50%; }
.metric-marker.green { background: var(--green); }
.metric-marker.amber { background: var(--amber); }
.metric-marker.red { background: var(--red); }
.metric-marker.stale { background: #788985; }
.metric-marker.blue { background: var(--brand); }
.dashboard-grid { display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(310px, .75fr); gap: 16px; margin-top: 16px; align-items: start; }
.stack { display: grid; gap: 16px; }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-sm); overflow: hidden; }
.card-header { padding: 19px 21px 14px; display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; }
.card-header h2, .card-header h3 { margin: 0; font-size: 15px; }
.card-header p { margin: 5px 0 0; color: var(--muted); font-size: 12px; }
.card-body { padding: 0 21px 21px; }
.card-link { border: 0; background: transparent; color: var(--brand); font-weight: 750; font-size: 12px; cursor: pointer; }

.data-table-wrap { width: 100%; overflow-x: auto; }
.data-table { width: 100%; border-collapse: collapse; font-size: 12px; }
.data-table th { padding: 10px 14px; text-align: left; color: var(--muted); font-weight: 750; font-size: 10px; letter-spacing: .07em; text-transform: uppercase; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: #fafbf9; white-space: nowrap; }
.data-table td { padding: 13px 14px; border-bottom: 1px solid #edf0ed; vertical-align: middle; }
.data-table tbody tr { transition: background .12s; }
.data-table tbody tr:hover { background: #fafbf9; }
.data-table tbody tr.clickable { cursor: pointer; }
.data-table tbody tr:last-child td { border-bottom: 0; }
.project-cell strong, .project-cell span { display: block; }
.project-cell strong { font-size: 12px; }
.project-cell span { color: var(--muted); margin-top: 3px; font-size: 10px; }
.status-pill { display: inline-flex; align-items: center; gap: 6px; padding: 5px 8px; border-radius: 999px; font-weight: 800; font-size: 10px; text-transform: capitalize; white-space: nowrap; }
.status-pill::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.status-pill.green, .status-pill.completed { color: var(--green); background: var(--green-soft); }
.status-pill.amber { color: var(--amber); background: var(--amber-soft); }
.status-pill.red { color: var(--red); background: var(--red-soft); }
.status-pill.stale, .status-pill.on_hold { color: #647571; background: var(--grey-soft); }
.date-urgent { color: var(--red); font-weight: 700; }
.date-soon { color: var(--amber); font-weight: 700; }
.mini-tag { display: inline-flex; align-items: center; border-radius: 6px; padding: 4px 7px; background: #edf3f0; color: var(--ink-2); font-size: 9px; font-weight: 720; margin: 2px 3px 2px 0; }
.empty-state { padding: 40px 25px; text-align: center; color: var(--muted); }
.empty-state strong { color: var(--ink); display: block; margin-bottom: 6px; }

.decision-list, .timeline, .milestone-list { display: grid; gap: 0; }
.decision-item, .timeline-item, .milestone-item { padding: 14px 0; border-top: 1px solid #edf0ed; }
.decision-item:first-child, .timeline-item:first-child, .milestone-item:first-child { border-top: 0; }
.decision-item-top, .milestone-top { display: flex; justify-content: space-between; gap: 12px; align-items: flex-start; }
.decision-item strong, .milestone-item strong { font-size: 12px; line-height: 1.45; }
.decision-item p, .milestone-item p { margin: 6px 0 0; color: var(--muted); font-size: 11px; line-height: 1.45; }
.decision-meta { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 9px; color: var(--muted); font-size: 10px; }
.bar-list { display: grid; gap: 14px; }
.bar-row { display: grid; grid-template-columns: minmax(95px, 1fr) 2.2fr 28px; gap: 10px; align-items: center; }
.bar-row span { font-size: 11px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.bar-track { height: 7px; border-radius: 999px; background: #edf1ee; overflow: hidden; }
.bar-fill { height: 100%; background: var(--brand); border-radius: inherit; }
.bar-row strong { text-align: right; font-size: 11px; }

.toolbar { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-bottom: 16px; }
.search-box { position: relative; min-width: 280px; flex: 1; max-width: 440px; }
.search-box svg { position: absolute; left: 12px; top: 50%; transform: translateY(-50%); width: 17px; fill: var(--muted); }
.search-box input { padding-left: 38px; background: var(--surface); }
.toolbar select { width: auto; min-width: 155px; background: var(--surface); }
.toolbar .btn:last-child { margin-left: auto; }
.project-table-card .data-table td { padding-block: 15px; }
.owner-cell { display: flex; align-items: center; gap: 9px; }
.owner-mini { width: 27px; height: 27px; border-radius: 8px; background: var(--brand-soft); color: var(--brand-dark); display: grid; place-items: center; font-weight: 800; font-size: 9px; }
.health-stack { display: flex; align-items: center; gap: 6px; }
.health-stack .reported-dot { width: 7px; height: 7px; border-radius: 50%; }
.reported-dot.green { background: var(--green); }.reported-dot.amber { background: var(--amber); }.reported-dot.red { background: var(--red); }.reported-dot.on_hold { background: #788985; }.reported-dot.completed { background: var(--brand); }

.form-layout { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 16px; align-items: start; }
.form-card { padding: 23px; }
.form-card h2 { margin: 0 0 6px; font-family: Georgia, "Times New Roman", serif; font-size: 27px; font-weight: 500; }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; margin-top: 20px; }
.form-grid .full { grid-column: 1 / -1; }
.form-field { margin-top: 0; }
.field-help { color: var(--muted); font-size: 10px; line-height: 1.4; }
.char-count { text-align: right; color: var(--muted); font-size: 10px; margin-top: -4px; }
.form-section-title { grid-column: 1/-1; display: flex; align-items: center; gap: 10px; margin: 12px 0 -4px; color: var(--ink); font-weight: 800; font-size: 12px; }
.form-section-title::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.form-actions { display: flex; justify-content: flex-end; gap: 9px; margin-top: 22px; padding-top: 20px; border-top: 1px solid var(--line); }
.guidance-card { padding: 21px; }
.guidance-card h3 { margin: 0; font-size: 14px; }
.guidance-card p { color: var(--muted); font-size: 11px; line-height: 1.55; }
.guidance-steps { display: grid; gap: 13px; margin-top: 18px; }
.guidance-step { display: grid; grid-template-columns: 26px 1fr; gap: 10px; }
.guidance-step > span { width: 26px; height: 26px; border-radius: 8px; background: var(--brand-soft); color: var(--brand); display: grid; place-items: center; font-weight: 800; font-size: 10px; }
.guidance-step strong { display: block; font-size: 11px; }
.guidance-step p { margin: 3px 0 0; font-size: 10px; }
.required::after { content: " *"; color: var(--red); }
.conditional-section { display: contents; }

.admin-tabs { display: flex; gap: 5px; border-bottom: 1px solid var(--line); padding: 0 20px; background: var(--surface); }
.admin-tab { border: 0; background: transparent; padding: 15px 11px 12px; border-bottom: 2px solid transparent; color: var(--muted); font-weight: 750; font-size: 12px; cursor: pointer; }
.admin-tab.active { color: var(--brand); border-bottom-color: var(--brand); }
.admin-section { padding: 22px; }
.admin-grid { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 16px; }
.inline-form { display: flex; align-items: end; gap: 10px; }
.inline-form .form-field { flex: 1; }
.tag-cloud { margin-top: 16px; }
.tag-group { padding: 14px 0; border-top: 1px solid var(--line); }
.tag-group:first-child { border-top: 0; }
.tag-group h4 { margin: 0 0 8px; font-size: 10px; color: var(--muted); text-transform: uppercase; letter-spacing: .07em; }

.modal { position: fixed; inset: 0; z-index: 100; display: grid; place-items: center; padding: 20px; }
.modal-backdrop { position: absolute; inset: 0; background: rgba(9, 31, 28, .5); backdrop-filter: blur(3px); }
.modal-panel { position: relative; width: min(900px, 100%); max-height: calc(100vh - 40px); overflow: hidden; background: var(--surface); border-radius: 20px; box-shadow: 0 30px 90px rgba(4,27,24,.28); display: flex; flex-direction: column; }
.modal-header { flex: 0 0 auto; padding: 20px 23px; border-bottom: 1px solid var(--line); display: flex; align-items: center; justify-content: space-between; gap: 15px; }
.modal-header h2 { margin: 0; font-family: Georgia, "Times New Roman", serif; font-size: 27px; font-weight: 500; letter-spacing: -.025em; }
.modal-header .icon-button { color: var(--ink); }
.modal-header .icon-button:hover { background: var(--surface-2); }
.modal-content { overflow-y: auto; padding: 22px 23px 28px; }
.detail-hero { padding: 22px; border-radius: 15px; background: #f2f6f3; border: 1px solid var(--line); }
.detail-hero-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; }
.detail-hero p { color: var(--ink-2); font-size: 12px; line-height: 1.6; margin: 13px 0 0; }
.detail-meta-grid { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: 12px; margin-top: 17px; }
.detail-meta { padding: 11px; border-radius: 9px; background: rgba(255,255,255,.75); }
.detail-meta span, .detail-meta strong { display: block; }
.detail-meta span { color: var(--muted); font-size: 9px; text-transform: uppercase; letter-spacing: .06em; font-weight: 750; }
.detail-meta strong { margin-top: 4px; font-size: 11px; }
.detail-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 15px; margin-top: 15px; }
.detail-panel { border: 1px solid var(--line); border-radius: 13px; padding: 17px; }
.detail-panel.full { grid-column: 1/-1; }
.detail-panel h3 { margin: 0 0 10px; font-size: 13px; }
.timeline-item { display: grid; grid-template-columns: 9px 1fr; gap: 10px; }
.timeline-dot { width: 8px; height: 8px; margin-top: 5px; border-radius: 50%; background: var(--brand); box-shadow: 0 0 0 4px var(--brand-soft); }
.timeline-content strong { font-size: 11px; }
.timeline-content p { margin: 6px 0; color: var(--ink-2); font-size: 11px; line-height: 1.55; }
.timeline-content span { color: var(--muted); font-size: 9px; }
.panel-actions { display: flex; gap: 8px; justify-content: flex-end; margin-top: 14px; }

.toast { position: fixed; z-index: 200; right: 22px; bottom: 22px; max-width: 360px; transform: translateY(120px); opacity: 0; padding: 13px 16px; border-radius: 11px; background: #133a35; color: #fff; box-shadow: var(--shadow); font-size: 12px; transition: transform .22s, opacity .22s; }
.toast.show { transform: translateY(0); opacity: 1; }
.toast.error { background: #8f3733; }
.loading { min-height: 260px; display: grid; place-items: center; color: var(--muted); }
.spinner { width: 28px; height: 28px; border-radius: 50%; border: 3px solid var(--line); border-top-color: var(--brand); animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

@media (max-width: 1200px) {
  .metric-grid { grid-template-columns: repeat(3, minmax(0,1fr)); }
  .dashboard-grid { grid-template-columns: 1fr; }
}
@media (max-width: 920px) {
  .login-screen { grid-template-columns: 1fr; }
  .login-visual { display: none; }
  .login-panel { min-height: 100vh; padding: 28px; }
  .mobile-brand { display: grid; place-items: center; width: 48px; height: 48px; border-radius: 13px; background: var(--brand); color: #fff; font-weight: 850; margin-bottom: 30px; }
  .app-shell { grid-template-columns: 1fr; }
  .sidebar { position: fixed; left: -260px; width: 242px; transition: left .2s; }
  .sidebar.open { left: 0; }
  .mobile-menu { display: block; }
  .form-layout { grid-template-columns: 1fr; }
  .guidance-card { order: -1; }
  .detail-meta-grid { grid-template-columns: repeat(2, minmax(0,1fr)); }
}
@media (max-width: 680px) {
  .topbar { min-height: 78px; padding: 15px 17px; }
  .topbar h1 { font-size: 24px; }
  .topbar .eyebrow, .refresh-time, #refresh-btn { display: none; }
  .topbar-actions { margin-left: auto; }
  #quick-update-btn span:first-child { display: none; }
  #quick-update-btn { width: 41px; padding: 0; }
  .main-content { padding: 18px 14px 40px; }
  .hero-strip { padding: 22px; display: block; }
  .hero-status { margin-top: 20px; }
  .metric-grid { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .metric-card { padding: 14px; }
  .metric-card strong { font-size: 28px; }
  .form-grid, .admin-grid, .detail-grid { grid-template-columns: 1fr; }
  .form-grid .full, .detail-panel.full { grid-column: auto; }
  .toolbar { align-items: stretch; }
  .search-box { min-width: 100%; max-width: none; }
  .toolbar select { flex: 1; min-width: 130px; }
  .toolbar .btn:last-child { margin-left: 0; }
  .modal { padding: 0; place-items: stretch; }
  .modal-panel { width: 100%; height: 100%; max-height: none; border-radius: 0; }
  .detail-meta-grid { grid-template-columns: 1fr 1fr; }
  .inline-form { display: grid; }
}
