:root {
  --navy: #0c1d2d;
  --navy-2: #142a3d;
  --cyan: #18b8b1;
  --cyan-dark: #0d8e89;
  --paper: #f4f7f9;
  --card: #ffffff;
  --ink: #152535;
  --muted: #73808c;
  --line: #dce4e9;
  --danger: #bd4854;
  --warning: #d99836;
  --success: #238a64;
  --radius: 14px;
  --shadow: 0 12px 35px rgba(14, 35, 52, .07);
}
* { box-sizing: border-box; }
body { margin: 0; color: var(--ink); background: var(--paper); font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; font-size: 14px; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; }
button { cursor: pointer; }
.app-shell { display: grid; grid-template-columns: 258px minmax(0, 1fr); min-height: 100vh; }
.sidebar { position: sticky; top: 0; height: 100vh; display: flex; flex-direction: column; padding: 24px 16px 18px; overflow: hidden; color: #d9e5ed; background: var(--navy); z-index: 20; }
.brand { display: flex; flex: 0 0 auto; align-items: center; gap: 12px; padding: 2px 10px 26px; }
.brand-mark { display: inline-grid; place-items: center; width: 38px; height: 38px; border-radius: 10px; color: #062126; background: var(--cyan); font-weight: 900; letter-spacing: -.06em; }
.brand strong, .brand small { display: block; }
.brand strong { color: white; font-size: 16px; letter-spacing: .01em; }
.brand small { color: #7f9aab; font-size: 10px; margin-top: 2px; text-transform: uppercase; letter-spacing: .08em; }
.nav-list { display: flex; flex: 1 1 auto; min-height: 0; flex-direction: column; gap: 4px; overflow-y: auto; overscroll-behavior: contain; scrollbar-color: #536f81 transparent; scrollbar-width: thin; }
.nav-list::-webkit-scrollbar { width: 8px; }
.nav-list::-webkit-scrollbar-track { background: transparent; }
.nav-list::-webkit-scrollbar-thumb { border: 2px solid transparent; border-radius: 999px; background: #536f81; background-clip: padding-box; }
.nav-list::-webkit-scrollbar-thumb:hover { background: #7792a3; background-clip: padding-box; }
.nav-item { display: flex; align-items: center; gap: 13px; min-height: 44px; padding: 0 14px; border-radius: 10px; color: #91a7b6; font-weight: 650; transition: .18s ease; }
.nav-item:hover { color: white; background: #142c40; }
.nav-item.active { color: white; background: linear-gradient(90deg, rgba(24,184,177,.23), rgba(24,184,177,.06)); box-shadow: inset 3px 0 var(--cyan); }
.nav-separator { margin: 22px 13px 8px; color: #536f81; font-size: 10px; font-weight: 800; letter-spacing: .16em; text-transform: uppercase; }
.sidebar-profile { margin-top: auto; display: flex; flex: 0 0 auto; min-width: 0; align-items: center; gap: 10px; padding: 14px 8px 2px; border-top: 1px solid #23394a; }
.avatar { width: 34px; height: 34px; flex: 0 0 auto; display: grid; place-items: center; border-radius: 50%; color: white; background: var(--cyan-dark); font-weight: 800; }
.profile-copy { min-width: 0; flex: 1; }
.profile-copy strong, .profile-copy small { display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.profile-copy strong { color: white; font-size: 12px; }
.profile-copy small { margin-top: 2px; color: #7792a3; font-size: 10px; }
.icon-button { border: 0; color: #7690a1; background: transparent; font-size: 18px; }
.main-content { min-width: 0; }
.topbar { height: 68px; display: flex; align-items: center; justify-content: space-between; padding: 0 34px; border-bottom: 1px solid var(--line); color: var(--muted); background: rgba(255,255,255,.82); backdrop-filter: blur(12px); font-size: 11px; font-weight: 800; letter-spacing: .1em; }
.topbar-period { letter-spacing: 0; font-weight: 500; font-size: 12px; }
.topbar-period strong { color: var(--ink); }
.mobile-menu { display: none; border: 0; background: transparent; font-size: 22px; }
.page-wrap { max-width: 1500px; padding: 34px; margin: 0 auto; }
.page-heading { display: flex; align-items: end; justify-content: space-between; gap: 24px; margin-bottom: 26px; }
.page-heading.compact { margin-bottom: 18px; }
.page-heading h1 { margin: 5px 0 6px; color: var(--ink); font-size: clamp(26px, 3vw, 38px); line-height: 1.08; letter-spacing: -.035em; }
.page-heading p, .panel-head p { margin: 0; color: var(--muted); line-height: 1.55; }
.kicker { color: var(--cyan-dark); font-size: 10px; font-weight: 900; letter-spacing: .18em; }
.button { display: inline-flex; align-items: center; justify-content: center; min-height: 40px; padding: 0 17px; border: 1px solid transparent; border-radius: 9px; font-weight: 750; transition: .15s ease; }
.button:hover { transform: translateY(-1px); }
.button.primary { color: white; background: var(--cyan-dark); box-shadow: 0 8px 18px rgba(13,142,137,.18); }
.button.primary:hover { background: #087d78; }
.button.secondary { color: var(--ink); background: #eef3f5; border-color: var(--line); }
.button.danger-outline { color: var(--danger); border-color: #edc9cd; background: #fff8f8; }
.button.small { min-height: 32px; padding: 0 11px; font-size: 12px; }
.button.wide { width: 100%; }
.hidden { display: none !important; }
.metric-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; margin-bottom: 20px; }
.metric-grid.three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.metric-card { position: relative; min-height: 132px; padding: 22px; overflow: hidden; border: 1px solid var(--line); border-radius: var(--radius); background: var(--card); box-shadow: var(--shadow); }
.metric-card::after { content: ""; position: absolute; right: -26px; bottom: -38px; width: 100px; height: 100px; border-radius: 50%; background: rgba(18,43,62,.035); }
.metric-card.accent { color: white; border-color: var(--navy); background: var(--navy); }
.metric-card.warning { border-top: 3px solid var(--warning); }
.metric-card span, .metric-card small, .metric-card strong { display: block; }
.metric-card span { color: var(--muted); font-size: 11px; font-weight: 750; text-transform: uppercase; letter-spacing: .08em; }
.metric-card.accent span, .metric-card.accent small { color: #8eabbc; }
.metric-card strong { margin: 16px 0 7px; font-size: 25px; letter-spacing: -.03em; }
.metric-card strong.small-value { font-size: 18px; }
.metric-card small { color: var(--muted); }
.panel { margin-bottom: 20px; padding: 22px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--card); box-shadow: var(--shadow); }
.panel-head { display: flex; align-items: center; justify-content: space-between; gap: 18px; margin-bottom: 18px; }
.panel h2, .panel-head h2 { margin: 0 0 4px; font-size: 18px; letter-spacing: -.02em; }
.text-link { color: var(--cyan-dark); font-weight: 750; }
.table-wrap { width: 100%; overflow-x: auto; }
table { width: 100%; border-collapse: collapse; }
th { padding: 12px 13px; color: #7b8892; background: #f6f8f9; border-bottom: 1px solid var(--line); font-size: 10px; text-align: left; text-transform: uppercase; letter-spacing: .09em; white-space: nowrap; }
td { padding: 15px 13px; border-bottom: 1px solid #edf1f3; vertical-align: middle; }
tbody tr:last-child td { border-bottom: 0; }
tbody tr:hover td { background: #fbfcfc; }
td strong, td small { display: block; }
td small { margin-top: 4px; color: var(--muted); }
.muted { color: var(--muted); }
.icon-link { display: grid; place-items: center; width: 30px; height: 30px; margin-left: auto; border-radius: 8px; color: var(--cyan-dark); background: #eaf8f7; font-weight: 900; }
.status { display: inline-flex; align-items: center; min-height: 25px; padding: 0 9px; border-radius: 999px; font-size: 10px; font-weight: 800; white-space: nowrap; }
.status.large { min-height: 34px; padding: 0 14px; font-size: 11px; }
.status-manager_review { color: #a06a13; background: #fff3d8; }
.status-revision_requested, .status-rejected { color: #a03f49; background: #fde9eb; }
.status-finance_review { color: #116f86; background: #e3f6fb; }
.status-executive_review { color: #5b4da4; background: #eeeafe; }
.status-final_approved { color: #197253; background: #e3f6ee; }
.empty-state { padding: 50px 20px; text-align: center; color: var(--muted); }
.empty-state strong { display: block; margin-bottom: 7px; color: var(--ink); font-size: 17px; }
.empty-state p { margin: 0; }
.heading-total { min-width: 220px; padding: 15px 18px; border-radius: 12px; color: white; background: var(--navy); }
.heading-total small, .heading-total strong { display: block; }
.heading-total small { color: #87a2b3; }
.heading-total strong { margin-top: 5px; font-size: 21px; }
.wizard-card { max-width: 930px; margin: 0 auto; border: 1px solid var(--line); border-radius: 18px; background: white; box-shadow: var(--shadow); overflow: hidden; }
.wizard-progress { display: flex; align-items: center; justify-content: center; padding: 24px 32px; background: #f7fafb; border-bottom: 1px solid var(--line); }
.wizard-progress i { width: 80px; height: 1px; margin: 0 10px; background: var(--line); }
.wizard-step { display: flex; align-items: center; gap: 8px; color: #94a0a9; font-weight: 750; }
.wizard-step b { display: grid; place-items: center; width: 28px; height: 28px; border: 1px solid var(--line); border-radius: 50%; background: white; }
.wizard-step.active, .wizard-step.done { color: var(--ink); }
.wizard-step.active b, .wizard-step.done b { color: white; border-color: var(--cyan-dark); background: var(--cyan-dark); }
.wizard-pane { display: none; min-height: 340px; padding: 36px 44px; border: 0; }
.wizard-pane.active { display: block; }
.wizard-pane legend { padding: 0; font-size: 24px; font-weight: 800; letter-spacing: -.025em; }
.wizard-pane > p { margin: 7px 0 28px; color: var(--muted); }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.span-2 { grid-column: span 2; }
label { display: flex; flex-direction: column; gap: 8px; color: #42515c; font-size: 12px; font-weight: 750; }
input, select, textarea { width: 100%; min-height: 43px; padding: 10px 12px; border: 1px solid #ced9df; border-radius: 9px; color: var(--ink); background: white; outline: 0; }
textarea { resize: vertical; }
input:focus, select:focus, textarea:focus { border-color: var(--cyan-dark); box-shadow: 0 0 0 3px rgba(13,142,137,.11); }
.wizard-actions { display: flex; align-items: center; gap: 12px; padding: 18px 44px; border-top: 1px solid var(--line); }
.wizard-actions span { flex: 1; }
.review-box { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.review-box > div { padding: 15px; border: 1px solid var(--line); border-radius: 10px; background: #fafcfc; }
.review-box .wide { grid-column: span 2; }
.review-box small, .review-box strong { display: block; }
.review-box small { margin-bottom: 5px; color: var(--muted); }
.review-box p { margin: 0; font-weight: 500; line-height: 1.5; }
.form-errors { margin: 0 44px 12px; padding: 12px; border-radius: 8px; color: var(--danger); background: #fff0f1; }
.form-errors p { margin: 3px 0; }
.detail-grid { display: grid; grid-template-columns: minmax(0, 1.7fr) minmax(300px, .8fr); gap: 20px; }
.amount-pair { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 12px; margin-bottom: 28px; }
.amount-pair > div { padding: 18px; border-radius: 11px; background: #f5f8f9; }
.amount-pair small, .amount-pair strong { display: block; }
.amount-pair small { color: var(--muted); }
.amount-pair strong { margin-top: 7px; font-size: 22px; }
.justification { color: #455662; line-height: 1.75; white-space: pre-wrap; }
.revision-form { padding-top: 18px; border-top: 1px solid var(--line); }
.stack-form { display: flex; flex-direction: column; gap: 15px; }
.timeline-item { position: relative; display: grid; grid-template-columns: 14px 1fr; gap: 10px; padding-bottom: 22px; }
.timeline-item::before { content: ""; position: absolute; left: 5px; top: 10px; bottom: -2px; width: 1px; background: var(--line); }
.timeline-item:last-child::before { display: none; }
.timeline-item i { width: 11px; height: 11px; margin-top: 3px; border: 3px solid #ccecea; border-radius: 50%; background: var(--cyan-dark); z-index: 1; }
.timeline-item p, .timeline-item small { margin: 5px 0 0; color: var(--muted); }
.timeline-item small { font-size: 10px; }
.queue-pill { padding: 8px 12px; border-radius: 999px; color: var(--cyan-dark); background: #dff5f3; font-weight: 800; }
.approval-list { display: flex; flex-direction: column; gap: 14px; }
.approval-card { display: grid; grid-template-columns: minmax(0,1fr) 330px; gap: 28px; padding: 23px; border: 1px solid var(--line); border-left: 4px solid var(--cyan-dark); border-radius: var(--radius); background: white; box-shadow: var(--shadow); }
.approval-meta { display: flex; flex-wrap: wrap; gap: 7px; }
.approval-meta span { padding: 5px 8px; border-radius: 6px; color: #61717d; background: #eef3f5; font-size: 10px; font-weight: 750; }
.approval-main h2 { margin: 16px 0 8px; font-size: 20px; }
.approval-main p { color: #586976; line-height: 1.65; }
.decision-form { display: flex; flex-direction: column; gap: 10px; padding-left: 24px; border-left: 1px solid var(--line); }
.decision-form label:first-child > strong { font-size: 20px; color: var(--ink); }
.decision-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.approved-card { border-left-color: var(--success); }
.approved-seal { display: grid; place-items: center; align-content: center; color: var(--success); }
.approved-seal b { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 50%; color: white; background: var(--success); font-size: 22px; }
.approved-seal span, .approved-seal strong { margin-top: 6px; }
.finalize-bar { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin-top: 18px; padding: 22px; border-radius: var(--radius); color: white; background: var(--navy); }
.finalize-bar p { margin: 5px 0 0; color: #8ea7b7; }
.location-chip, .type-chip { display: inline-flex; padding: 5px 8px; border-radius: 7px; color: #116d69; background: #e3f6f4; font-size: 11px; font-weight: 800; }
.max-copy { max-width: 420px; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.inline-return { display: flex; gap: 7px; align-items: center; }
.inline-return input { min-width: 170px; min-height: 32px; padding: 6px 8px; }
.admin-links { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 16px; }
.admin-link-card { display: grid; grid-template-columns: 42px 1fr 20px; align-items: center; gap: 15px; padding: 24px; border: 1px solid var(--line); border-radius: var(--radius); background: white; box-shadow: var(--shadow); }
.admin-link-card > span { color: var(--cyan-dark); font-size: 12px; font-weight: 900; }
.admin-link-card h2 { margin: 0 0 5px; font-size: 18px; }
.admin-link-card p { margin: 0; color: var(--muted); }
.user-cell { display: flex; align-items: center; gap: 10px; }
.small-avatar { width: 30px; height: 30px; }
.owner-tag { color: var(--cyan-dark); font-weight: 800; }
.permission-chips { display: flex; flex-wrap: wrap; gap: 5px; max-width: 500px; }
.permission-chips span { padding: 4px 7px; border-radius: 5px; color: #536573; background: #eef3f5; font-size: 9px; }
.admin-form { max-width: 900px; }
.permissions-box { margin-top: 26px; padding-top: 22px; border-top: 1px solid var(--line); }
.permissions-box h2 { margin-bottom: 4px; }
.permissions-box > p { margin: 0 0 16px; color: var(--muted); }
.permission-grid { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 10px; }
.permission-toggle { flex-direction: row; align-items: flex-start; gap: 10px; padding: 13px; border: 1px solid var(--line); border-radius: 10px; background: #fafcfc; }
.permission-toggle input { width: 17px; min-height: 17px; margin-top: 2px; accent-color: var(--cyan-dark); }
.permission-toggle b, .permission-toggle small { display: block; }
.permission-toggle small { margin-top: 3px; color: var(--muted); font-family: monospace; font-weight: 500; }
.check-row { flex-direction: row; align-items: center; }
.check-row input { width: 17px; min-height: 17px; accent-color: var(--cyan-dark); }
.form-footer { display: flex; justify-content: flex-end; gap: 9px; margin-top: 22px; padding-top: 18px; border-top: 1px solid var(--line); }
.reference-grid { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 16px; }
.reference-grid .panel { margin: 0; }
.reference-row { display: grid; grid-template-columns: 100px 1fr auto; align-items: center; gap: 12px; padding: 11px 0; border-bottom: 1px solid #edf1f3; }
.reference-row:last-child { border-bottom: 0; }
.reference-row small { color: var(--muted); }
.alert { margin-bottom: 18px; padding: 12px 15px; border: 1px solid; border-radius: 9px; font-weight: 650; }
.alert-success { color: #176347; border-color: #b8e2d2; background: #e9f8f2; }
.alert-danger { color: #963c45; border-color: #efc3c7; background: #fff0f1; }
.login-page { min-height: 100vh; display: grid; place-items: center; padding: 25px; background: radial-gradient(circle at 75% 20%, #1d4354 0, var(--navy) 36%, #07131e 100%); }
.login-card { width: min(440px, 100%); padding: 38px; border: 1px solid rgba(255,255,255,.14); border-radius: 20px; background: white; box-shadow: 0 35px 100px rgba(0,0,0,.3); }
.login-brand { display: flex; align-items: center; gap: 12px; }
.login-brand strong, .login-brand small { display: block; }
.login-brand strong { font-size: 17px; }
.login-brand small { color: var(--muted); font-size: 10px; text-transform: uppercase; }
.login-heading { margin: 34px 0 24px; }
.login-heading h1 { margin: 6px 0 6px; font-size: 30px; letter-spacing: -.035em; }
.login-heading p, .login-note { margin: 0; color: var(--muted); }
.login-note { margin-top: 22px; padding-top: 17px; border-top: 1px solid var(--line); font-size: 11px; line-height: 1.5; }
@media (max-width: 1100px) { .metric-grid { grid-template-columns: repeat(2, 1fr); } .approval-card { grid-template-columns: 1fr; } .decision-form { padding: 18px 0 0; border-left: 0; border-top: 1px solid var(--line); } }
@media (max-width: 780px) {
  .app-shell { grid-template-columns: 1fr; }
  .sidebar { position: fixed; left: -280px; width: 258px; transition: left .2s ease; }
  .menu-open .sidebar { left: 0; box-shadow: 20px 0 60px rgba(0,0,0,.3); }
  .mobile-menu { display: inline-block; }
  .topbar { padding: 0 18px; }
  .topbar > div:first-of-type { display: none; }
  .page-wrap { padding: 24px 16px; }
  .page-heading { align-items: flex-start; flex-direction: column; }
  .metric-grid, .metric-grid.three, .admin-links, .reference-grid, .detail-grid, .permission-grid { grid-template-columns: 1fr; }
  .reference-grid .span-2 { grid-column: auto; }
  .form-grid { grid-template-columns: 1fr; }
  .span-2 { grid-column: auto; }
  .wizard-pane { padding: 26px 22px; }
  .wizard-actions { padding: 16px 22px; }
  .wizard-progress { padding: 18px 12px; }
  .wizard-progress i { width: 18px; }
  .wizard-step span { display: none; }
  .approval-card { padding: 18px; }
  .finalize-bar { align-items: stretch; flex-direction: column; }
}

/* OE Inventory-aligned local design tokens */
:root { --oe-navy:#3f4b62; --oe-navy-2:#344056; --oe-teal:#2bd4c3; --oe-bg:#f3f6fb; --oe-surface:#fff; --oe-border:#e3e8f1; --oe-text:#1f2a3d; --oe-muted:#6b7280; --oe-table-head-bg:#454b52; --oe-table-head-text:#f8fafc; --oe-table-row-hover:#f4f6f9; --navy:var(--oe-navy); --navy-2:var(--oe-navy-2); --cyan:var(--oe-teal); --cyan-dark:#159f92; --paper:var(--oe-bg); --card:var(--oe-surface); --ink:var(--oe-text); --muted:var(--oe-muted); --line:var(--oe-border); }
.sidebar { background:linear-gradient(180deg,var(--oe-navy),var(--oe-navy-2)); }
th { background:var(--oe-table-head-bg);color:var(--oe-table-head-text); }
tbody tr:hover td { background:var(--oe-table-row-hover); }
input:focus,select:focus,textarea:focus { outline:0;border-color:var(--oe-teal);box-shadow:0 0 0 3px rgba(43,212,195,.18); }
.setup-page { min-height:100vh; padding:36px 18px; background:var(--oe-bg); }
.setup-shell { max-width:920px; margin:auto; }
.setup-header { display:flex; align-items:center; gap:14px; margin-bottom:24px; }
.setup-header h1 { margin:0; font-size:30px; }
.setup-header p { margin:4px 0 0; color:var(--muted); }
.setup-status { padding:18px 20px; }
.setup-status-heading { display:flex; align-items:center; justify-content:space-between; gap:16px; margin-bottom:14px; }
.setup-status-heading h2 { margin:0; font-size:17px; }
.setup-status-heading .button { min-height:34px; }
.setup-status dl { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:10px 24px; margin:0; }
.setup-status dl>div { min-width:0; }
.setup-status dt { font-size:11px; font-weight:750; color:var(--oe-text); }
.setup-status dd { margin:3px 0 0; overflow-wrap:anywhere; color:var(--muted); line-height:1.35; }
.setup-wizard-card { max-width:920px; margin:0 auto; overflow:hidden; border:1px solid var(--oe-border); border-radius:18px; background:var(--oe-surface); box-shadow:var(--shadow); }
.setup-progress { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); margin:0; padding:22px 30px; list-style:none; border-bottom:1px solid var(--oe-border); background:#f8fafc; }
.setup-progress-step { position:relative; display:flex; align-items:center; justify-content:center; gap:9px; min-width:0; color:var(--oe-muted); }
.setup-progress-step:not(:last-child)::after { content:""; position:absolute; top:50%; left:calc(50% + 55px); width:calc(100% - 110px); height:1px; background:var(--oe-border); }
.setup-progress-step b { overflow:hidden; font-size:12px; text-overflow:ellipsis; white-space:nowrap; }
.setup-step-icon { display:grid; flex:0 0 30px; width:30px; height:30px; place-items:center; border:1px solid var(--oe-border); border-radius:50%; background:white; font-weight:800; }
.setup-step-icon i { display:none; }
.setup-progress-step.is-active { color:var(--oe-text); }
.setup-progress-step.is-active .setup-step-icon { color:var(--oe-navy-2); border:2px solid var(--oe-teal); }
.setup-progress-step.is-complete { color:var(--oe-text); }
.setup-progress-step.is-complete .setup-step-icon { color:var(--oe-navy-2); border-color:var(--oe-teal); background:var(--oe-teal); }
.setup-progress-step.is-complete .setup-step-icon span { display:none; }
.setup-progress-step.is-complete .setup-step-icon i { display:block; }
.setup-wizard-pane { display:none; }
.setup-wizard-pane.is-active { display:block; }
.setup-pane-content { min-height:390px; padding:30px; }
.setup-pane-content h2 { margin:0; color:var(--oe-text); font-size:24px; line-height:1.2; letter-spacing:-.02em; }
.setup-lead { margin:8px 0 26px; color:var(--oe-muted); line-height:1.55; }
.setup-fields { display:grid; gap:16px; }
.setup-fields label { gap:7px; }
.setup-fields label small { color:var(--oe-muted); font-weight:500; }
.setup-fields input { width:100%; min-height:44px; padding:10px 12px; }
.setup-pane-footer { display:flex; align-items:center; justify-content:space-between; gap:12px; padding:18px 30px; border-top:1px solid var(--oe-border); background:#fbfcfe; }
.setup-info { display:flex; gap:13px; margin-top:22px; padding:16px; border:1px solid #cceeea; border-radius:11px; background:#f0fbfa; line-height:1.5; }
.setup-info>i { flex:0 0 auto; color:#108b80; font-size:20px; }
.setup-info ul { margin:8px 0; padding-left:20px; }
.setup-info p { margin:0; color:var(--oe-muted); }
.setup-info code { overflow-wrap:anywhere; color:var(--oe-text); }
.setup-check { display:grid; grid-template-columns:18px minmax(0,1fr); align-items:start; gap:11px; margin-top:18px; color:var(--oe-text); font-size:13px; font-weight:600; line-height:1.5; }
.setup-check input[type="checkbox"] { width:18px; min-width:18px; height:18px; min-height:18px; margin:1px 0 0; padding:0; accent-color:var(--oe-teal); }
.setup-review { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:12px; margin:0; }
.setup-review>div { min-width:0; padding:14px; border:1px solid var(--oe-border); border-radius:10px; background:#f9fafc; }
.setup-review .setup-review-wide { grid-column:1/-1; }
.setup-review dt { color:var(--oe-muted); font-size:11px; }
.setup-review dd { margin:5px 0 0; overflow-wrap:anywhere; color:var(--oe-text); font-weight:700; line-height:1.45; }
@media (max-width:600px) {
  .setup-page { padding:20px 12px; }
  .setup-header h1 { font-size:25px; }
  .setup-status { padding:16px 18px; }
  .setup-status-heading { align-items:flex-start; flex-direction:column; }
  .setup-status dl { grid-template-columns:1fr; }
  .setup-progress { padding:16px 10px; }
  .setup-progress-step { flex-direction:column; gap:4px; text-align:center; }
  .setup-progress-step:not(:last-child)::after { top:15px; left:calc(50% + 23px); width:calc(100% - 46px); }
  .setup-progress-step b { width:100%; font-size:10px; }
  .setup-pane-content { min-height:0; padding:20px 18px; }
  .setup-pane-content h2 { font-size:22px; }
  .setup-lead { margin-bottom:22px; }
  .setup-pane-footer { align-items:stretch; padding:16px 18px; }
  .setup-pane-footer .button { padding:0 12px; }
  .setup-review { grid-template-columns:1fr; }
  .setup-review .setup-review-wide { grid-column:auto; }
}
.structure-roles { display:grid; gap:6px; }
.structure-roles span { display:grid; gap:2px; }
.structure-roles small { color:var(--muted); }
.executive-toolbar { display:flex; align-items:end; justify-content:space-between; gap:16px; margin-bottom:18px; }
.executive-toolbar form label { display:grid; gap:6px; }
.group-switch { display:flex; gap:8px; }
.executive-groups { display:grid; gap:12px; }
.executive-group { overflow:hidden; border:1px solid var(--line); border-radius:14px; background:var(--card); box-shadow:var(--shadow); }
.executive-group-toggle { display:flex; width:100%; align-items:center; justify-content:space-between; gap:18px; padding:18px 22px; border:0; background:transparent; color:var(--ink); text-align:left; cursor:pointer; }
.executive-group-toggle span { display:grid; gap:5px; }
.executive-group-toggle small { color:var(--muted); font-weight:500; }
.executive-group-toggle i { transition:transform .25s ease; }
.executive-group-toggle[aria-expanded="true"] i { transform:rotate(180deg); }
.executive-group-panel { max-height:0; opacity:0; transition:max-height .35s ease,opacity .25s ease; }
.executive-group-panel.is-open { max-height:10000px; opacity:1; }
.executive-group-panel .approval-list { padding:0 14px 14px; }
@media (prefers-reduced-motion:reduce) { .executive-group-panel,.executive-group-toggle i { transition:none; } }
@media (max-width:780px) { .executive-toolbar { align-items:stretch; flex-direction:column; } .group-switch { flex-wrap:wrap; } }


.role-preview-banner{display:flex;align-items:center;flex-wrap:wrap;gap:12px;border-left:4px solid var(--cyan-dark)}
.role-preview-banner>div{flex:1;min-width:220px}.role-preview-banner p{margin:6px 0 0;color:var(--muted)}
.role-preview-banner form{margin:0}.role-view-selectors label,.role-view-activate label{display:grid;gap:8px}
.role-view-selectors select,.role-view-activate select{width:100%;min-width:0}.role-view-activate{margin-top:20px}
body[data-role-preview="true"] form button:disabled{opacity:.5;cursor:not-allowed}

.income-visibility-switch{display:flex;align-items:center;gap:12px}.income-visibility-switch input{width:auto;min-height:0;accent-color:var(--cyan-dark)}
