:root {
  --ink: #222224;
  --ink-soft: #64666b;
  --paper: #f3f2ef;
  --panel: #ffffff;
  --panel-soft: #f7f7f5;
  --line: #dedee0;
  --line-strong: #c6c7ca;
  --nav: #222224;
  --nav-soft: #303034;
  --accent: #77797f;
  --accent-dark: #5b5d62;
  --mint: #6f7278;
  --mint-soft: #ebebed;
  --amber: #ad7317;
  --amber-soft: #f7edd6;
  --red: #b34c43;
  --red-soft: #f8e7e4;
  --blue: #3d6f8e;
  --blue-soft: #e3edf3;
  --violet: #6e5b9a;
  --violet-soft: #ece8f5;
  --shadow-sm: 0 1px 2px rgba(34, 34, 36, 0.06), 0 8px 24px rgba(34, 34, 36, 0.04);
  --shadow-md: 0 18px 55px rgba(34, 34, 36, 0.14);
  --radius-sm: 9px;
  --radius: 14px;
  --radius-lg: 22px;
  --sidebar: 252px;
}

* { box-sizing: border-box; }

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

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 14px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

button, input, select, textarea { font: inherit; }
button { cursor: pointer; }
a { color: inherit; text-decoration: none; }
svg { width: 18px; height: 18px; stroke-width: 1.8; }

.login-page {
  min-height: 100vh;
  display: grid;
  grid-template-columns: minmax(360px, 0.9fr) minmax(540px, 1.1fr);
  background: var(--paper);
}

.login-brand {
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 100vh;
  padding: clamp(40px, 6vw, 84px);
  color: #f0f0f1;
  background: var(--nav);
}

.login-brand::before,
.login-brand::after {
  content: "";
  position: absolute;
  border: 1px solid rgba(218, 218, 220, 0.12);
  border-radius: 50%;
}

.login-brand::before { width: 520px; height: 520px; right: -310px; top: -210px; }
.login-brand::after { width: 310px; height: 310px; left: -190px; bottom: -90px; }

.brand-logo { display: block; max-width: 100%; object-fit: contain; }
.brand-identity { position: relative; display: inline-flex; align-items: center; gap: 10px; width: fit-content; }
.brand-logo-mark { width: 42px; height: 42px; }
.brand-logo-wordmark { width: 132px; height: auto; }
.brand-logo-lockup { width: min(410px, 92%); height: auto; }
.login-logo { position: relative; z-index: 1; margin: -18px 0 0 -18px; }
.document-brand .brand-logo-mark { width: 34px; height: 34px; }
.document-brand .brand-logo-wordmark { width: 118px; }
.breadcrumb-mark { width: 23px; height: 23px; border-radius: 4px; }
.brand-copy { position: relative; max-width: 560px; z-index: 1; }
.eyebrow { margin: 0 0 15px; color: var(--accent); font-size: 12px; font-weight: 800; letter-spacing: .15em; text-transform: uppercase; }
.login-brand h1 { margin: 0; max-width: 560px; font-family: Georgia, "Times New Roman", serif; font-size: clamp(42px, 5vw, 68px); line-height: 1.02; font-weight: 400; letter-spacing: -.035em; }
.login-brand p { margin: 26px 0 0; max-width: 520px; color: #b9b9bd; font-size: 16px; }
.brand-foot { position: relative; z-index: 1; display: flex; align-items: center; gap: 10px; color: #a5a5aa; font-size: 12px; }
.brand-foot svg { color: #c8c8cb; }

.login-panel {
  min-height: 100vh;
  padding: 42px clamp(36px, 7vw, 110px);
  display: grid;
  align-items: center;
}
.login-card { width: min(470px, 100%); margin: 0 auto; }
.login-card h2 { margin: 0; font-family: Georgia, "Times New Roman", serif; font-size: 38px; line-height: 1.1; font-weight: 400; letter-spacing: -.025em; }
.login-lead { margin: 12px 0 30px; color: var(--ink-soft); }
.login-form { display: grid; gap: 16px; }
.field { display: grid; gap: 7px; }
.field label, .field-label { color: #4f5055; font-size: 12px; font-weight: 750; letter-spacing: .025em; }
.input-wrap { position: relative; }
.input-wrap > svg { position: absolute; top: 50%; left: 14px; width: 17px; transform: translateY(-50%); color: #7b8985; pointer-events: none; }
.input-wrap input { padding-left: 42px; }
input, select, textarea {
  width: 100%;
  min-height: 42px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-sm);
  outline: none;
  color: var(--ink);
  background: #fff;
  padding: 10px 12px;
  transition: border-color .16s ease, box-shadow .16s ease;
}
textarea { min-height: 114px; resize: vertical; }
input:focus, select:focus, textarea:focus { border-color: var(--mint); box-shadow: 0 0 0 3px rgba(111, 114, 120, .14); }
.password-toggle { position: absolute; right: 10px; top: 50%; transform: translateY(-50%); display: grid; place-items: center; width: 34px; height: 34px; border: 0; border-radius: 8px; color: #6c7b77; background: transparent; }
.password-toggle:hover { background: var(--panel-soft); }
.password-wrap input { padding-right: 48px; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 40px;
  border: 1px solid transparent;
  border-radius: 9px;
  padding: 9px 14px;
  font-weight: 720;
  color: #fff;
  background: var(--nav);
  transition: background .16s ease, transform .16s ease, border-color .16s ease;
}
.btn:hover { background: var(--nav-soft); }
.btn:active { transform: translateY(1px); }
.btn svg { width: 16px; height: 16px; }
.btn-primary { background: var(--accent); }
.btn-primary:hover { background: var(--accent-dark); }
.btn-secondary { color: var(--ink); border-color: var(--line-strong); background: #fff; }
.btn-secondary:hover { background: var(--panel-soft); border-color: #aeb6b1; }
.btn-ghost { color: var(--ink-soft); background: transparent; }
.btn-ghost:hover { color: var(--ink); background: rgba(21,32,31,.06); }
.btn-danger { color: var(--red); border-color: #e7c5c1; background: #fff; }
.btn-danger:hover { color: #fff; border-color: var(--red); background: var(--red); }
.btn-danger:disabled { color: #a78884; border-color: #eadbd9; background: #f4eeee; cursor: not-allowed; }
.btn-block { width: 100%; min-height: 46px; }
.btn-small { min-height: 33px; padding: 6px 10px; font-size: 12px; }
.icon-btn { width: 38px; height: 38px; display: inline-grid; place-items: center; border: 1px solid var(--line); border-radius: 10px; color: var(--ink-soft); background: #fff; }
.icon-btn:hover { color: var(--ink); background: var(--panel-soft); }

.demo-access { margin-top: 26px; padding-top: 22px; border-top: 1px solid var(--line); }
.demo-label { margin-bottom: 10px; color: var(--ink-soft); font-size: 12px; font-weight: 750; }
.demo-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; }
.demo-chip { min-height: 48px; text-align: left; padding: 8px 11px; border: 1px solid var(--line); border-radius: 10px; color: var(--ink); background: rgba(255,255,255,.65); }
.demo-chip:hover { border-color: #aab6b1; background: #fff; }
.demo-chip strong { display: block; font-size: 12px; }
.demo-chip span { display: block; color: var(--ink-soft); font-size: 11px; }
.login-error { margin: 0; min-height: 20px; color: var(--red); font-size: 12px; }
.security-note { display: flex; align-items: flex-start; gap: 11px; padding: 13px 14px; border: 1px solid #d3d3d6; border-radius: 10px; color: #4f5055; background: #f2f2f3; }
.security-note > svg { flex: 0 0 auto; margin-top: 2px; color: var(--mint); }
.security-note strong, .security-note span { display: block; }
.security-note strong { font-size: 12px; }
.security-note span { margin-top: 2px; color: #6a6b70; font-size: 11px; }
.password-requirements { display: grid; gap: 5px; padding: 13px 14px; border-radius: 10px; color: #4e605b; background: #eeefeb; font-size: 11px; }
.password-requirements strong { color: var(--ink); font-size: 12px; }
.password-requirements span { position: relative; padding-left: 15px; }
.password-requirements span::before { content: ""; position: absolute; left: 1px; top: 6px; width: 5px; height: 5px; border-radius: 50%; background: var(--mint); }
.mfa-secret { display: grid; gap: 7px; margin-bottom: 24px; padding: 16px; border: 1px solid var(--line-strong); border-radius: 12px; background: var(--panel-soft); }
.mfa-secret span { color: var(--ink-soft); font-size: 11px; font-weight: 700; }
.mfa-secret strong { margin-bottom: 7px; font-size: 13px; }
.mfa-secret code { display: block; padding: 11px 12px; border: 1px dashed #aeb4b1; border-radius: 8px; color: var(--ink); background: #fff; overflow-wrap: anywhere; font-size: 13px; font-weight: 800; letter-spacing: .08em; }
.mfa-secret .btn { width: fit-content; margin-top: 3px; }
.mfa-step { margin-bottom: 16px; }
.recovery-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; margin-bottom: 14px; }
.recovery-grid code { padding: 10px 8px; border: 1px solid var(--line); border-radius: 8px; color: var(--ink); background: var(--panel-soft); text-align: center; font-size: 12px; font-weight: 800; letter-spacing: .05em; }
.recovery-confirm { margin-top: 18px; }
.check-row { display: flex; align-items: flex-start; gap: 10px; color: var(--ink-soft); font-size: 12px; line-height: 1.45; }
.check-row input { flex: 0 0 auto; width: 17px; min-height: 17px; margin-top: 1px; }

.app-shell { min-height: 100vh; }
.sidebar {
  position: fixed;
  inset: 0 auto 0 0;
  width: var(--sidebar);
  display: flex;
  flex-direction: column;
  color: #d9e4df;
  background: var(--nav);
  z-index: 50;
}
.sidebar-head { padding: 27px 24px 22px; border-bottom: 1px solid rgba(255,255,255,.08); }
.sidebar-brand .brand-logo-mark { width: 40px; height: 40px; }
.sidebar-brand .brand-logo-wordmark { width: 126px; }
.workspace-label { margin-top: 8px; padding-left: 50px; color: #8f9095; font-size: 10px; letter-spacing: .12em; text-transform: uppercase; }
.nav { flex: 1; padding: 18px 12px; overflow-y: auto; }
.nav-section-label { padding: 15px 12px 8px; color: #85868b; font-size: 10px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }
.nav-link { width: 100%; min-height: 42px; display: flex; align-items: center; gap: 12px; margin: 2px 0; padding: 9px 12px; border: 0; border-radius: 9px; color: #b7b7bb; background: transparent; text-align: left; }
.nav-link:hover { color: #f1f1f2; background: rgba(255,255,255,.055); }
.nav-link.active { color: #fff; background: rgba(255,255,255,.105); }
.nav-link.active svg { color: #d7d7d9; }
.nav-link svg { width: 18px; color: #919297; }
.nav-badge { margin-left: auto; min-width: 21px; height: 21px; display: grid; place-items: center; border-radius: 20px; color: #fff; background: var(--accent); font-size: 10px; font-weight: 800; }
.sidebar-foot { padding: 14px 12px 18px; border-top: 1px solid rgba(255,255,255,.08); }
.user-menu { width: 100%; display: flex; align-items: center; gap: 10px; padding: 10px; border: 0; border-radius: 11px; color: #fff; background: transparent; text-align: left; }
.user-menu:hover { background: rgba(255,255,255,.06); }
.avatar { flex: 0 0 auto; width: 34px; height: 34px; display: grid; place-items: center; border-radius: 50%; color: #fff; background: #4b4c51; font-size: 11px; font-weight: 800; letter-spacing: .04em; }
.user-copy { min-width: 0; flex: 1; }
.user-copy strong, .user-copy span { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.user-copy strong { font-size: 12px; }
.user-copy span { color: #929399; font-size: 10px; }
.user-menu > svg { width: 15px; color: #8a8b90; }

.main { min-height: 100vh; margin-left: var(--sidebar); }
.topbar { position: sticky; top: 0; z-index: 40; height: 68px; display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 0 32px; border-bottom: 1px solid var(--line); background: rgba(243,242,239,.94); backdrop-filter: blur(16px); }
.breadcrumb { display: flex; align-items: center; gap: 8px; color: var(--ink-soft); font-size: 12px; }
.breadcrumb strong { color: var(--ink); }
.topbar-actions { display: flex; align-items: center; gap: 9px; }
.search-box { position: relative; width: 250px; }
.search-box svg { position: absolute; left: 12px; top: 50%; width: 16px; transform: translateY(-50%); color: #788681; }
.search-box input { min-height: 38px; padding: 8px 12px 8px 37px; background: rgba(255,255,255,.72); }
.mobile-menu { display: none; }

.content { width: min(1560px, 100%); margin: 0 auto; padding: 30px 32px 50px; }
.page-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; margin-bottom: 24px; }
.page-head h1 { margin: 0; font-family: Georgia, "Times New Roman", serif; font-size: 34px; line-height: 1.1; font-weight: 400; letter-spacing: -.025em; }
.page-head p { margin: 8px 0 0; color: var(--ink-soft); }
.page-actions { display: flex; align-items: center; gap: 9px; }
.inline-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 16px; }
.inline-head h2, .inline-head h3 { margin: 0; }
.section-title { margin: 0; font-family: Georgia, "Times New Roman", serif; font-size: 21px; font-weight: 400; }
.muted { color: var(--ink-soft); }
.tiny { font-size: 11px; }
.caption { color: var(--ink-soft); font-size: 12px; }

.grid { display: grid; gap: 18px; }
.grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-main { grid-template-columns: minmax(0, 1.7fr) minmax(320px, .8fr); }
.grid-finance { grid-template-columns: minmax(380px, .85fr) minmax(460px, 1.15fr); }
.grid-report { grid-template-columns: minmax(0, 1.3fr) minmax(300px, .7fr); }

.card { border: 1px solid var(--line); border-radius: var(--radius); background: var(--panel); box-shadow: var(--shadow-sm); }
.card-pad { padding: 20px; }
.card-pad-lg { padding: 24px; }
.card-head { min-height: 54px; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 15px 18px; border-bottom: 1px solid var(--line); }
.card-head h2, .card-head h3 { margin: 0; font-size: 14px; }
.kpi-card { position: relative; min-height: 136px; padding: 18px 19px; overflow: hidden; }
.kpi-icon { width: 35px; height: 35px; display: grid; place-items: center; margin-bottom: 18px; border-radius: 9px; color: var(--mint); background: var(--mint-soft); }
.kpi-icon svg { width: 17px; }
.kpi-card h3 { margin: 0; color: var(--ink-soft); font-size: 11px; font-weight: 750; letter-spacing: .04em; text-transform: uppercase; }
.kpi-row { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 7px 10px; margin-top: 5px; }
.kpi-value { white-space: nowrap; font-size: clamp(22px, 2vw, 27px); line-height: 1; font-weight: 720; letter-spacing: -.03em; }
.kpi-trend { display: inline-flex; align-items: center; gap: 3px; margin-left: auto; color: var(--mint); white-space: nowrap; font-size: 10px; font-weight: 700; }
.kpi-trend.warning { color: var(--amber); }

.status-pill, .tag, .role-pill, .score-pill, .priority-pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  max-width: 100%;
  border-radius: 99px;
  padding: 4px 8px;
  white-space: nowrap;
  font-size: 10px;
  font-weight: 780;
  letter-spacing: .02em;
}
.status-pill::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.status-slate, .tag-slate { color: #65736f; background: #edf0ee; }
.status-blue, .tag-blue { color: var(--blue); background: var(--blue-soft); }
.status-violet, .tag-violet { color: var(--violet); background: var(--violet-soft); }
.status-amber, .tag-amber { color: var(--amber); background: var(--amber-soft); }
.status-orange, .tag-orange { color: #b45d30; background: #f9e8dd; }
.status-rose, .tag-rose { color: #a75464; background: #f6e4e8; }
.status-teal, .tag-teal { color: var(--mint); background: var(--mint-soft); }
.status-green, .tag-green { color: #307662; background: #deefe8; }
.status-gray, .tag-gray { color: #6c7471; background: #eee; }
.status-red, .tag-red { color: var(--red); background: var(--red-soft); }
.score-pill { min-width: 44px; justify-content: center; color: #2f776c; background: var(--mint-soft); font-size: 11px; }
.score-pill.mid { color: var(--amber); background: var(--amber-soft); }
.score-pill.low { color: var(--red); background: var(--red-soft); }
.role-pill { color: var(--blue); background: var(--blue-soft); }
.role-pill.admin { color: var(--violet); background: var(--violet-soft); }
.priority-pill.high { color: var(--red); background: var(--red-soft); }
.priority-pill.medium { color: var(--amber); background: var(--amber-soft); }
.priority-pill.low { color: #65736f; background: #edf0ee; }
.row-actions { display: flex; justify-content: flex-end; gap: 6px; }

.pipeline-strip { display: grid; grid-template-columns: repeat(7, minmax(110px, 1fr)); border: 1px solid var(--line); border-radius: var(--radius); background: #fff; overflow: hidden; box-shadow: var(--shadow-sm); }
.pipeline-step { min-height: 104px; padding: 16px; border-right: 1px solid var(--line); }
.pipeline-step:last-child { border-right: 0; }
.pipeline-step .dot { width: 8px; height: 8px; margin-bottom: 13px; border-radius: 50%; background: #8b9995; }
.pipeline-step strong, .pipeline-step span { display: block; }
.pipeline-step strong { font-size: 21px; line-height: 1.1; }
.pipeline-step span { margin-top: 5px; color: var(--ink-soft); font-size: 10px; }
.pipeline-step small { display: block; margin-top: 8px; color: #7f8b87; font-size: 10px; }

.table-wrap { overflow-x: auto; }
.data-table { width: 100%; border-collapse: collapse; }
.data-table th { padding: 10px 15px; border-bottom: 1px solid var(--line); color: #6e7c78; background: #faf9f6; text-align: left; font-size: 10px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; }
.data-table td { padding: 13px 15px; border-bottom: 1px solid #ecece7; vertical-align: middle; }
.data-table tr:last-child td { border-bottom: 0; }
.data-table tbody tr[data-clickable="true"] { cursor: pointer; }
.data-table tbody tr[data-clickable="true"]:hover { background: #faf9f6; }
.company-cell { display: flex; align-items: center; gap: 11px; min-width: 190px; }
.company-logo { width: 34px; height: 34px; flex: 0 0 auto; display: grid; place-items: center; border-radius: 9px; color: var(--nav); background: #e8ebe6; font-size: 10px; font-weight: 850; letter-spacing: .04em; }
.company-copy strong, .company-copy span { display: block; }
.company-copy strong { font-size: 12px; }
.company-copy span { color: var(--ink-soft); font-size: 10px; }
.numeric { font-variant-numeric: tabular-nums; }

.task-list { display: grid; }
.task-row { display: grid; grid-template-columns: 24px 1fr auto; gap: 11px; align-items: start; padding: 13px 0; border-bottom: 1px solid #ecece7; }
.task-row:first-child { padding-top: 2px; }
.task-row:last-child { padding-bottom: 0; border-bottom: 0; }
.task-check { width: 20px; height: 20px; display: grid; place-items: center; margin-top: 2px; border: 1px solid #b7c0bb; border-radius: 6px; color: #fff; background: #fff; }
.task-check.done { border-color: var(--mint); background: var(--mint); }
.task-check svg { width: 12px; }
.task-copy strong { display: block; font-size: 12px; }
.task-copy span { display: block; margin-top: 3px; color: var(--ink-soft); font-size: 10px; }
.task-row.done .task-copy strong { color: #82908c; text-decoration: line-through; }

.insight-card { border-color: #d7d7da; background: #f5f5f6; }
.insight-head { display: flex; align-items: center; gap: 10px; }
.insight-icon { width: 34px; height: 34px; display: grid; place-items: center; border-radius: 50%; color: var(--mint); background: #e5e5e7; }
.insight-icon svg { width: 16px; }
.insight-list { display: grid; gap: 10px; margin-top: 17px; }
.insight-item { display: grid; grid-template-columns: 6px 1fr; gap: 10px; color: #505156; font-size: 12px; }
.insight-item::before { content: ""; width: 6px; height: 6px; margin-top: 6px; border-radius: 50%; background: var(--accent); }

.toolbar { display: flex; align-items: center; justify-content: space-between; gap: 15px; margin-bottom: 15px; }
.toolbar-left, .toolbar-right { display: flex; align-items: center; gap: 9px; }
.filter-select { min-width: 170px; min-height: 38px; }
.view-toggle { display: inline-flex; padding: 3px; border: 1px solid var(--line); border-radius: 9px; background: #fff; }
.view-toggle button { width: 32px; height: 30px; display: grid; place-items: center; border: 0; border-radius: 6px; color: var(--ink-soft); background: transparent; }
.view-toggle button.active { color: var(--ink); background: #eceeea; }
.view-toggle svg { width: 15px; }

.kanban { display: grid; grid-template-columns: repeat(6, minmax(270px, 1fr)); gap: 13px; overflow-x: auto; padding-bottom: 15px; }
.kanban-column { min-height: 520px; border: 1px solid var(--line); border-radius: var(--radius); background: #ecebe6; }
.kanban-head { display: flex; align-items: center; justify-content: space-between; padding: 13px 13px 10px; }
.kanban-title { display: flex; align-items: center; gap: 8px; font-size: 11px; font-weight: 800; text-transform: uppercase; letter-spacing: .035em; }
.kanban-count { min-width: 22px; height: 22px; display: grid; place-items: center; border-radius: 50%; color: var(--ink-soft); background: rgba(255,255,255,.72); font-size: 10px; }
.kanban-stack { display: grid; gap: 9px; padding: 0 9px 12px; }
.deal-card { padding: 14px; border: 1px solid #dedfd9; border-radius: 11px; background: #fff; box-shadow: 0 1px 2px rgba(20,30,29,.04); cursor: pointer; }
.deal-card:hover { border-color: #bfc7c2; transform: translateY(-1px); }
.deal-card-top { display: flex; justify-content: space-between; gap: 10px; }
.deal-card h3 { margin: 0; font-size: 13px; }
.deal-card p { margin: 4px 0 0; color: var(--ink-soft); font-size: 10px; }
.deal-card-metrics { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; margin-top: 14px; padding-top: 11px; border-top: 1px solid #ecece7; }
.deal-card-metrics span { display: block; color: var(--ink-soft); font-size: 9px; text-transform: uppercase; }
.deal-card-metrics strong { display: block; margin-top: 2px; font-size: 11px; }
.deal-card-foot { display: flex; align-items: center; justify-content: space-between; margin-top: 12px; }
.owner { display: flex; align-items: center; gap: 6px; color: var(--ink-soft); font-size: 10px; }
.owner .avatar { width: 24px; height: 24px; color: var(--nav); background: #e7eae5; font-size: 8px; }

.detail-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 24px; margin-bottom: 20px; }
.detail-title-row { display: flex; align-items: center; gap: 12px; }
.detail-title-row h1 { margin: 0; font-family: Georgia, "Times New Roman", serif; font-size: 33px; font-weight: 400; letter-spacing: -.025em; }
.detail-meta { display: flex; align-items: center; gap: 14px; margin-top: 8px; color: var(--ink-soft); font-size: 11px; }
.detail-meta span { display: inline-flex; align-items: center; gap: 5px; }
.detail-meta svg { width: 13px; }
.tabs { display: flex; gap: 4px; margin-bottom: 19px; padding: 4px; border: 1px solid var(--line); border-radius: 11px; background: rgba(255,255,255,.65); overflow-x: auto; }
.tab { min-height: 36px; display: inline-flex; align-items: center; gap: 7px; padding: 8px 13px; border: 0; border-radius: 8px; color: var(--ink-soft); background: transparent; white-space: nowrap; font-weight: 680; font-size: 12px; }
.tab.active { color: #fff; background: var(--nav); }
.tab svg { width: 14px; }

.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 15px; }
.form-grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.form-span-2 { grid-column: span 2; }
.form-span-3 { grid-column: span 3; }
.input-suffix { position: relative; }
.input-suffix input { padding-right: 42px; }
.input-suffix span { position: absolute; right: 12px; top: 50%; transform: translateY(-50%); color: #77847f; font-size: 11px; pointer-events: none; }
.form-actions { display: flex; justify-content: flex-end; gap: 9px; margin-top: 18px; padding-top: 16px; border-top: 1px solid var(--line); }

.score-summary { display: flex; align-items: center; gap: 20px; padding: 20px; border: 1px solid #d3d3d6; border-radius: var(--radius); background: #f3f3f4; }
.score-ring { position: relative; width: 92px; height: 92px; flex: 0 0 auto; display: grid; place-items: center; border-radius: 50%; background: conic-gradient(var(--mint) var(--score-progress, 0%), #dadadd 0); }
.score-ring::after { content: ""; position: absolute; inset: 8px; border-radius: 50%; background: #f3f3f4; }
.score-ring strong { position: relative; z-index: 1; font-size: 27px; letter-spacing: -.04em; }
.score-summary h3 { margin: 0; font-family: Georgia, "Times New Roman", serif; font-size: 22px; font-weight: 400; }
.score-summary p { margin: 6px 0 0; color: var(--ink-soft); font-size: 12px; }
.score-list { display: grid; gap: 1px; margin-top: 18px; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.score-row { display: grid; grid-template-columns: minmax(210px, 1.1fr) minmax(220px, 1fr) 64px 74px; align-items: center; gap: 16px; padding: 14px 16px; background: #fff; border-bottom: 1px solid var(--line); }
.score-row:last-child { border-bottom: 0; }
.score-label strong, .score-label span { display: block; }
.score-label strong { font-size: 12px; }
.score-label span { margin-top: 2px; color: var(--ink-soft); font-size: 10px; }
.range { appearance: none; height: 4px; min-height: 4px; padding: 0; border: 0; border-radius: 4px; background: #d9dfdb; }
.range::-webkit-slider-thumb { appearance: none; width: 17px; height: 17px; border: 3px solid #fff; border-radius: 50%; background: var(--mint); box-shadow: 0 0 0 1px var(--mint); }
.score-input { min-height: 35px; text-align: center; }
.weight-copy { color: var(--ink-soft); text-align: right; font-size: 11px; }

.metric-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.metric-box { padding: 14px; border: 1px solid var(--line); border-radius: 11px; background: var(--panel-soft); }
.metric-box span, .metric-box strong { display: block; }
.metric-box span { color: var(--ink-soft); font-size: 10px; text-transform: uppercase; letter-spacing: .04em; }
.metric-box strong { margin-top: 7px; font-size: 18px; letter-spacing: -.02em; }
.metric-box.good { border-color: #bddad0; background: #eef7f3; }
.metric-box.warning { border-color: #ead9af; background: #fbf5e7; }
.metric-box.danger { border-color: #ecc9c4; background: #fbeeed; }
.funding-bar { height: 14px; display: flex; margin: 18px 0 8px; border-radius: 10px; background: #e9e9e4; overflow: hidden; }
.funding-bar span { min-width: 0; }
.funding-equity { background: var(--nav); }
.funding-bank { background: var(--mint); }
.funding-seller { background: var(--accent); }
.funding-earnout { background: #d8af54; }
.legend { display: flex; flex-wrap: wrap; gap: 12px; color: var(--ink-soft); font-size: 10px; }
.legend span { display: inline-flex; align-items: center; gap: 5px; }
.legend i { width: 7px; height: 7px; border-radius: 50%; }
.finance-alert { display: flex; gap: 10px; margin-top: 16px; padding: 12px; border-radius: 10px; font-size: 11px; }
.finance-alert.good { color: #2b675a; background: var(--mint-soft); }
.finance-alert.warning { color: #885c13; background: var(--amber-soft); }
.finance-alert.danger { color: #8d3e37; background: var(--red-soft); }
.finance-alert svg { flex: 0 0 auto; width: 16px; }

.memo-paper { max-width: 930px; margin: 0 auto; padding: 42px 48px; border: 1px solid var(--line); background: #fff; box-shadow: var(--shadow-sm); }
.memo-brand { display: flex; align-items: center; justify-content: space-between; padding-bottom: 18px; border-bottom: 2px solid var(--nav); }
.memo-brand span { color: var(--ink-soft); font-size: 10px; text-transform: uppercase; }
.memo-paper h1 { margin: 32px 0 8px; font-family: Georgia, "Times New Roman", serif; font-size: 33px; font-weight: 400; }
.memo-paper h2 { margin: 27px 0 9px; font-size: 11px; text-transform: uppercase; letter-spacing: .08em; }
.memo-paper p { color: #3f4b49; }
.memo-facts { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin: 24px 0; }
.memo-fact { padding: 11px 0; border-top: 1px solid var(--line); }
.memo-fact span, .memo-fact strong { display: block; }
.memo-fact span { color: var(--ink-soft); font-size: 9px; text-transform: uppercase; }
.memo-fact strong { margin-top: 4px; font-size: 12px; }
.memo-notes { white-space: pre-wrap; line-height: 1.7; }

.decision-list { display: grid; gap: 15px; }
.decision-card { display: grid; grid-template-columns: minmax(0, 1fr) minmax(300px, 360px); gap: 24px; padding: 22px; }
.decision-card h3 { margin: 0; font-size: 15px; }
.decision-card p { margin: 7px 0 0; color: var(--ink-soft); font-size: 12px; }
.decision-title-row { align-items: flex-start; }
.decision-title-row .eyebrow { margin-bottom: 4px; }
.decision-meta { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 13px; color: var(--ink-soft); font-size: 10px; }
.decision-meta span { display: inline-flex; align-items: center; gap: 4px; }
.decision-meta svg { width: 13px; }
.decision-pipeline { display: grid; grid-template-columns: repeat(4, 1fr); margin: 16px 0; border: 1px solid var(--line); border-radius: 9px; overflow: hidden; }
.decision-pipeline-step { min-height: 54px; display: flex; align-items: center; gap: 7px; padding: 9px; border-right: 1px solid var(--line); color: #8a9692; background: #fafbf9; }
.decision-pipeline-step:last-child { border-right: 0; }
.decision-pipeline-step > span { width: 24px; height: 24px; flex: 0 0 auto; display: grid; place-items: center; border-radius: 50%; color: #788581; background: #e8ebe8; }
.decision-pipeline-step svg { width: 12px; }
.decision-pipeline-step strong { font-size: 9px; line-height: 1.2; }
.decision-pipeline-step.active { color: #4f5055; background: #f1f1f2; }
.decision-pipeline-step.active > span { color: #fff; background: var(--accent); }
.decision-pipeline-step.done { color: #2d6659; background: #eef7f3; }
.decision-pipeline-step.done > span { color: #fff; background: var(--mint); }
.resolution-proposal { padding: 13px 14px; border-left: 3px solid var(--nav); border-radius: 0 8px 8px 0; background: #f3f5f2; }
.resolution-proposal > span { color: var(--ink-soft); font-size: 9px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.resolution-proposal p { margin-top: 4px; color: var(--ink); line-height: 1.55; }
.decision-rationale { line-height: 1.55; }
.vote-panel { min-width: 220px; text-align: right; }
.vote-progress { display: flex; align-items: center; justify-content: flex-end; gap: 8px; margin-bottom: 12px; }
.vote-progress > div:first-child strong, .vote-progress > div:first-child span { display: block; }
.vote-progress > div:first-child span { margin-top: 2px; color: var(--ink-soft); font-size: 9px; }
.vote-dots { display: flex; gap: 5px; }
.vote-dot { width: 22px; height: 22px; display: grid; place-items: center; border-radius: 50%; color: #71807c; background: #e7e9e6; font-size: 8px; font-weight: 800; }
.vote-dot.yes { color: #fff; background: var(--mint); }
.vote-dot.no { color: #fff; background: var(--red); }
.vote-dot.abstain { color: #fff; background: #9b7c47; }
.vote-actions { display: flex; justify-content: flex-end; gap: 6px; }
.vote-actions .btn { min-width: 62px; }
.governance-panel { display: flex; flex-direction: column; gap: 12px; padding-left: 21px; border-left: 1px solid var(--line); text-align: left; }
.recommendation-box { padding: 14px; border: 1px solid var(--line); border-radius: 10px; background: #f7f8f6; }
.recommendation-box .inline-head { margin-bottom: 7px; }
.recommendation-box .inline-head span { color: var(--ink-soft); }
.recommendation-box b, .recommendation-box small { display: block; }
.recommendation-box b { color: var(--ink); font-size: 12px; }
.recommendation-box p { line-height: 1.45; }
.recommendation-box small { margin-top: 8px; color: var(--ink-soft); font-size: 9px; }
.recommendation-box.approve { border-color: #c1ddd3; background: #eef7f3; }
.recommendation-box.reject { border-color: #ead0cd; background: #fff3f1; }
.recommendation-box.conditional { border-color: #eadbbd; background: #fff9ec; }
.governance-panel .vote-progress { justify-content: space-between; margin: 0; }
.my-vote { padding: 12px; border-radius: 9px; background: #f3f5f2; }
.my-vote > span, .my-vote > strong { display: block; margin-bottom: 8px; font-size: 10px; }
.no-vote-note { display: flex; align-items: flex-start; gap: 8px; padding: 11px; border-radius: 9px; color: #5d6663; background: #eceeeb; font-size: 10px; }
.no-vote-note svg { width: 14px; flex: 0 0 auto; }
.table-note { display: block; margin-top: 2px; color: var(--ink-soft); font-size: 8px; }

.checkbox-field { margin: 0; padding: 13px; border: 1px solid var(--line); border-radius: 10px; }
.checkbox-field legend { padding: 0 5px; color: var(--ink); font-size: 11px; font-weight: 750; }
.checkbox-field > p { margin: 0 0 10px; color: var(--ink-soft); font-size: 10px; }
.checkbox-row { display: flex; align-items: flex-start; gap: 9px; padding: 7px 2px; color: var(--ink); font-size: 11px; }
.checkbox-row input { width: 16px; height: 16px; flex: 0 0 auto; margin-top: 1px; accent-color: var(--accent); }
.checkbox-row strong, .checkbox-row small { display: block; }
.checkbox-row small { margin-top: 2px; color: var(--ink-soft); font-size: 9px; }
.procedure-checks { margin-top: 16px; }
.recommendation-role-note { display: flex; gap: 11px; margin-bottom: 17px; padding: 13px; border-radius: 10px; color: #2e6559; background: #edf6f2; }
.recommendation-role-note svg { flex: 0 0 auto; width: 17px; }
.recommendation-role-note strong, .recommendation-role-note span { display: block; }
.recommendation-role-note span { margin-top: 3px; color: #587069; font-size: 10px; }

.resolution-screen { max-width: 980px; margin: 0 auto; }
.resolution-toolbar { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 16px; margin-bottom: 16px; }
.resolution-toolbar > div strong, .resolution-toolbar > div span { display: block; }
.resolution-toolbar > div strong { margin-top: 2px; }
.resolution-document { min-height: 1120px; padding: 62px 72px 48px; color: #161a19; background: #fff; box-shadow: var(--shadow-md); }
.resolution-letterhead { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; padding-bottom: 17px; border-bottom: 2px solid var(--nav); }
.resolution-letterhead > div:last-child { text-align: right; }
.resolution-letterhead > div:last-child strong, .resolution-letterhead > div:last-child span { display: block; }
.resolution-letterhead > div:last-child span { margin-top: 3px; color: #59635f; font-size: 9px; }
.resolution-number { margin-top: 30px; color: #59635f; font-size: 10px; font-weight: 750; letter-spacing: .08em; text-transform: uppercase; }
.resolution-document h1 { margin: 8px 0 12px; font-family: Georgia, "Times New Roman", serif; font-size: 33px; font-weight: 400; }
.resolution-document h2 { margin: 0 0 10px; font-size: 11px; letter-spacing: .06em; text-transform: uppercase; }
.resolution-intro, .resolution-section p { font-size: 11px; line-height: 1.65; }
.resolution-intro { max-width: 760px; color: #3d4643; }
.resolution-warning { display: flex; gap: 10px; margin: 22px 0; padding: 13px; border: 1px solid #e3c483; color: #745316; background: #fff9e9; }
.resolution-warning svg { flex: 0 0 auto; width: 16px; }
.resolution-warning strong { display: block; font-size: 11px; }
.resolution-warning p { margin: 3px 0 0; font-size: 9px; }
.resolution-section { margin-top: 27px; }
.resolution-table { width: 100%; border-collapse: collapse; margin: 12px 0; font-size: 10px; }
.resolution-table th, .resolution-table td { padding: 8px; border: 1px solid #cfd4d1; text-align: left; }
.resolution-table th { background: #f1f3f0; }
.advisor-statement { padding: 16px; border-left: 3px solid #97aaa4; background: #f5f7f5; }
.resolution-operative { padding: 19px; border: 2px solid var(--nav); }
.resolution-operative p { color: #161a19; font-size: 13px; font-weight: 650; }
.resolution-result { display: grid; grid-template-columns: repeat(4, 1fr); margin: 12px 0; border: 1px solid #cfd4d1; }
.resolution-result div { padding: 10px; border-right: 1px solid #cfd4d1; }
.resolution-result div:last-child { border-right: 0; }
.resolution-result span, .resolution-result strong { display: block; }
.resolution-result span { color: #59635f; font-size: 9px; }
.resolution-result strong { margin-top: 3px; font-size: 15px; }
.notary-box { margin-top: 25px; padding: 16px; border: 2px solid #9b382f; color: #762d28; }
.notary-box p { margin: 5px 0 0; font-size: 10px; line-height: 1.5; }
.resolution-signatures { margin-top: 42px; page-break-inside: avoid; }
.resolution-signatures > p { color: #4a5451; font-size: 10px; }
.signature-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 42px 34px; margin-top: 38px; }
.signature-grid.officers { margin-top: 52px; padding-top: 24px; border-top: 1px solid #d9ddda; }
.signature-line > span { display: block; height: 25px; border-bottom: 1px solid #343b39; }
.signature-line strong, .signature-line small { display: block; }
.signature-line strong { margin-top: 6px; font-size: 10px; }
.signature-line small { margin-top: 2px; color: #59635f; font-size: 8px; }
.resolution-footer { display: flex; justify-content: space-between; margin-top: 60px; padding-top: 10px; border-top: 1px solid #d9ddda; color: #6a7470; font-size: 8px; }

.reporting-banner { display: flex; align-items: center; justify-content: space-between; gap: 18px; margin-bottom: 18px; padding: 15px 18px; border: 1px solid #d2d2d5; border-radius: var(--radius); color: #505156; background: #f2f2f3; }
.reporting-banner div { display: flex; align-items: center; gap: 10px; }
.reporting-banner svg { color: var(--mint); }
.bar-chart { min-height: 280px; display: flex; align-items: end; gap: 14px; padding: 30px 10px 8px; border-bottom: 1px solid var(--line); }
.bar-group { flex: 1; height: 220px; display: flex; align-items: end; justify-content: center; gap: 4px; position: relative; }
.bar { width: min(18px, 35%); min-height: 3px; border-radius: 5px 5px 0 0; background: var(--mint); }
.bar.ebitda { background: var(--accent); }
.bar-label { position: absolute; bottom: -26px; color: var(--ink-soft); font-size: 10px; }
.chart-legend { display: flex; justify-content: center; gap: 18px; margin-top: 36px; color: var(--ink-soft); font-size: 10px; }
.chart-legend span { display: inline-flex; align-items: center; gap: 6px; }
.chart-legend i { width: 9px; height: 9px; border-radius: 3px; }
.ratio-list { display: grid; gap: 17px; }
.ratio-row-top { display: flex; justify-content: space-between; font-size: 11px; }
.ratio-row-top strong { font-size: 12px; }
.progress { height: 6px; margin-top: 7px; border-radius: 8px; background: #e4e6e2; overflow: hidden; }
.progress span { display: block; height: 100%; border-radius: 8px; background: var(--mint); }

.admin-tabs { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 18px; }
.admin-nav { height: fit-content; padding: 8px; }
.admin-nav button { width: 100%; min-height: 40px; display: flex; align-items: center; gap: 10px; padding: 8px 10px; border: 0; border-radius: 8px; color: var(--ink-soft); background: transparent; text-align: left; font-size: 12px; font-weight: 680; }
.admin-nav button:hover { background: var(--panel-soft); }
.admin-nav button.active { color: #fff; background: var(--nav); }
.admin-nav svg { width: 15px; }
.weight-row { display: grid; grid-template-columns: minmax(220px, 1fr) 110px; align-items: center; gap: 18px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.weight-row:last-child { border-bottom: 0; }
.weight-copy-main strong, .weight-copy-main span { display: block; }
.weight-copy-main strong { font-size: 12px; }
.weight-copy-main span { margin-top: 3px; color: var(--ink-soft); font-size: 10px; }
.weight-input { position: relative; }
.weight-input input { padding-right: 30px; text-align: right; }
.weight-input span { position: absolute; right: 11px; top: 50%; transform: translateY(-50%); color: var(--ink-soft); }
.weight-total { display: flex; justify-content: space-between; margin-top: 14px; padding: 12px; border-radius: 9px; color: #345f56; background: var(--mint-soft); font-weight: 750; }
.weight-total.invalid { color: #8f3d37; background: var(--red-soft); }
.learning-hero { display: grid; grid-template-columns: 1fr auto; gap: 28px; padding: 22px; border: 1px solid #d3d3d6; border-radius: var(--radius); background: #f3f3f4; }
.learning-hero h3 { margin: 0; font-family: Georgia, "Times New Roman", serif; font-size: 23px; font-weight: 400; }
.learning-hero p { margin: 8px 0 0; max-width: 640px; color: #606166; }
.confidence { width: 90px; height: 90px; display: grid; place-items: center; border: 7px solid #d9d9dc; border-top-color: var(--mint); border-radius: 50%; background: #fff; }
.confidence strong, .confidence span { display: block; text-align: center; }
.confidence strong { font-size: 19px; }
.confidence span { color: var(--ink-soft); font-size: 8px; text-transform: uppercase; }
.learning-table { margin-top: 16px; }
.delta { font-size: 11px; font-weight: 750; }
.delta.up { color: var(--mint); }
.delta.down { color: var(--red); }
.delta.flat { color: var(--ink-soft); }
.toggle { display: inline-flex; align-items: center; gap: 9px; }
.toggle input { display: none; }
.toggle-track { width: 42px; height: 24px; position: relative; border-radius: 30px; background: #c7ceca; transition: background .18s ease; }
.toggle-track::after { content: ""; position: absolute; width: 18px; height: 18px; left: 3px; top: 3px; border-radius: 50%; background: #fff; box-shadow: 0 1px 4px rgba(0,0,0,.2); transition: transform .18s ease; }
.toggle input:checked + .toggle-track { background: var(--mint); }
.toggle input:checked + .toggle-track::after { transform: translateX(18px); }
.audit-list { display: grid; }
.audit-row { display: grid; grid-template-columns: 34px minmax(0, 1fr) auto; gap: 11px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.audit-row:last-child { border-bottom: 0; }
.audit-icon { width: 32px; height: 32px; display: grid; place-items: center; border-radius: 50%; color: var(--ink-soft); background: #edf0ed; }
.audit-icon svg { width: 14px; }
.audit-copy strong, .audit-copy span { display: block; }
.audit-copy strong { font-size: 11px; }
.audit-copy span { margin-top: 2px; color: var(--ink-soft); font-size: 10px; }
.audit-time { color: var(--ink-soft); font-size: 10px; text-align: right; }
.share-center { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(330px, .8fr); gap: 24px; align-items: center; padding: 22px; border: 1px solid #d0d0d3; border-radius: var(--radius); background: #f2f2f3; box-shadow: var(--shadow-sm); }
.share-center-copy { display: flex; align-items: flex-start; gap: 15px; }
.share-center-copy .eyebrow { margin-bottom: 5px; }
.share-center-copy h2 { margin: 0; font-family: Georgia, "Times New Roman", serif; font-size: 24px; font-weight: 400; }
.share-center-copy p:last-child { margin: 7px 0 0; color: #636469; font-size: 11px; }
.share-icon { width: 42px; height: 42px; flex: 0 0 auto; display: grid; place-items: center; border-radius: 50%; color: var(--mint); background: #e2e2e4; }
.share-actions { display: grid; gap: 9px; }
.share-url { display: grid; grid-template-columns: 20px minmax(0, 1fr) 38px; gap: 8px; align-items: center; padding: 5px 5px 5px 11px; border: 1px solid #c9c9cc; border-radius: 10px; background: #fff; }
.share-url > svg { width: 15px; color: var(--mint); }
.share-url input { min-height: 34px; padding: 6px 2px; border: 0; box-shadow: none; background: transparent; font-size: 11px; }
.share-url .icon-btn { width: 34px; height: 34px; }

.empty-state { padding: 48px 24px; text-align: center; }
.empty-icon { width: 48px; height: 48px; display: grid; place-items: center; margin: 0 auto 14px; border-radius: 50%; color: var(--ink-soft); background: #eceeea; }
.empty-state h3 { margin: 0; font-size: 14px; }
.empty-state p { margin: 6px auto 0; max-width: 380px; color: var(--ink-soft); font-size: 12px; }

.modal-backdrop { position: fixed; inset: 0; z-index: 100; display: grid; place-items: center; padding: 24px; background: rgba(22, 22, 24, .68); backdrop-filter: blur(4px); }
.modal { width: min(650px, 100%); max-height: calc(100vh - 48px); overflow: auto; border-radius: var(--radius-lg); background: #fff; box-shadow: var(--shadow-md); }
.modal-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; padding: 22px 24px 17px; border-bottom: 1px solid var(--line); }
.modal-head h2 { margin: 0; font-family: Georgia, "Times New Roman", serif; font-size: 25px; font-weight: 400; }
.modal-head p { margin: 5px 0 0; color: var(--ink-soft); font-size: 11px; }
.modal-body { padding: 22px 24px 24px; }
.modal-close { border: 0; background: transparent; }

.toast-region { position: fixed; right: 22px; bottom: 22px; z-index: 200; display: grid; gap: 8px; pointer-events: none; }
.toast { min-width: 280px; max-width: 440px; display: flex; align-items: center; gap: 10px; padding: 12px 14px; border-radius: 10px; color: #fff; background: var(--nav); box-shadow: var(--shadow-md); animation: toast-in .2s ease-out; }
.toast.error { background: #7e3833; }
.toast svg { width: 16px; }
@keyframes toast-in { from { transform: translateY(8px); opacity: 0; } to { transform: translateY(0); opacity: 1; } }

.loading-screen { min-height: 100vh; display: grid; place-items: center; background: var(--paper); }
.loading-mark { text-align: center; }
.loading-brand { animation: pulse 1.2s ease-in-out infinite; }
.loading-brand .brand-logo-mark { width: 64px; height: 64px; }
.loading-brand .brand-logo-wordmark { width: 174px; }
@keyframes pulse { 50% { transform: scale(.92); opacity: .55; } }

@media (max-width: 1180px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .pipeline-strip { grid-template-columns: repeat(4, 1fr); }
  .pipeline-step:nth-child(4) { border-right: 0; }
  .pipeline-step:nth-child(-n+4) { border-bottom: 1px solid var(--line); }
  .grid-main, .grid-finance, .grid-report { grid-template-columns: 1fr; }
}

@media (max-width: 900px) {
  :root { --sidebar: 220px; }
  .sidebar-brand .brand-logo-mark { width: 36px; height: 36px; }
  .sidebar-brand .brand-logo-wordmark { width: 116px; }
  .workspace-label { padding-left: 46px; }
  .login-page { grid-template-columns: 1fr; }
  .login-brand { min-height: auto; padding: 38px; }
  .login-logo { width: min(360px, 90%); }
  .login-brand h1 { margin-top: 80px; font-size: 47px; }
  .brand-foot { margin-top: 80px; }
  .login-panel { min-height: auto; padding: 55px 36px; }
  .grid-3 { grid-template-columns: 1fr; }
  .form-grid-3 { grid-template-columns: repeat(2, 1fr); }
  .form-span-3 { grid-column: span 2; }
  .admin-tabs { grid-template-columns: 1fr; }
  .admin-nav { display: flex; overflow-x: auto; }
  .admin-nav button { width: auto; white-space: nowrap; }
  .share-center { grid-template-columns: 1fr; }
  .decision-card { grid-template-columns: 1fr; }
  .governance-panel { padding: 18px 0 0; border-top: 1px solid var(--line); border-left: 0; }
  .resolution-document { padding: 45px 42px; }
}

@media (max-width: 720px) {
  .sidebar { transform: translateX(-100%); transition: transform .2s ease; }
  .app-shell.mobile-nav-open .sidebar { transform: translateX(0); }
  .main { margin-left: 0; }
  .mobile-menu { display: inline-grid; }
  .topbar { padding: 0 16px; }
  .search-box { display: none; }
  .content { padding: 24px 16px 40px; }
  .page-head, .detail-head { align-items: flex-start; flex-direction: column; }
  .grid-4, .grid-2 { grid-template-columns: 1fr; }
  .pipeline-strip { grid-template-columns: repeat(2, 1fr); }
  .pipeline-step { border-bottom: 1px solid var(--line); }
  .pipeline-step:nth-child(2n) { border-right: 0; }
  .toolbar { align-items: stretch; flex-direction: column; }
  .toolbar-left, .toolbar-right { flex-wrap: wrap; }
  .form-grid, .form-grid-3 { grid-template-columns: 1fr; }
  .form-span-2, .form-span-3 { grid-column: span 1; }
  .score-row { grid-template-columns: 1fr 68px; }
  .score-row .range { grid-column: 1 / -1; grid-row: 2; }
  .weight-copy { display: none; }
  .metric-grid { grid-template-columns: 1fr 1fr; }
  .decision-card { grid-template-columns: 1fr; }
  .decision-pipeline { grid-template-columns: repeat(2, 1fr); }
  .decision-pipeline-step:nth-child(2) { border-right: 0; }
  .decision-pipeline-step:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
  .vote-panel { text-align: left; }
  .vote-progress, .vote-actions { justify-content: flex-start; }
  .memo-paper { padding: 27px 22px; }
  .memo-facts { grid-template-columns: repeat(2, 1fr); }
  .learning-hero { grid-template-columns: 1fr; }
  .resolution-toolbar { grid-template-columns: 1fr; }
  .resolution-document { padding: 32px 24px; }
  .resolution-letterhead { align-items: flex-start; flex-direction: column; }
  .resolution-letterhead > div:last-child { text-align: left; }
  .resolution-result { grid-template-columns: repeat(2, 1fr); }
  .resolution-result div:nth-child(2) { border-right: 0; }
  .resolution-result div:nth-child(-n+2) { border-bottom: 1px solid #cfd4d1; }
  .signature-grid { grid-template-columns: 1fr; }
}

@media (max-width: 460px) {
  .login-brand { padding: 28px 24px; }
  .login-logo { margin-left: -14px; }
  .login-brand h1 { margin-top: 60px; font-size: 38px; }
  .login-panel { padding: 42px 22px; }
  .demo-grid { grid-template-columns: 1fr; }
  .grid-4 { grid-template-columns: 1fr; }
  .pipeline-strip { grid-template-columns: 1fr; }
  .pipeline-step { border-right: 0; }
  .page-head h1 { font-size: 29px; }
  .metric-grid { grid-template-columns: 1fr; }
}

@page { size: A4; margin: 14mm 15mm 16mm; }

@media print {
  body { color: #000; background: #fff; }
  .sidebar, .topbar, .no-print, .toast-region, .modal-backdrop { display: none !important; }
  .main { margin: 0 !important; }
  .content { max-width: none; padding: 0 !important; }
  .resolution-screen { max-width: none; margin: 0; }
  .resolution-document { min-height: 0; padding: 0; box-shadow: none; }
  .resolution-letterhead { padding-bottom: 12px; }
  .resolution-document h1 { font-size: 26pt; }
  .resolution-section { page-break-inside: avoid; }
  .resolution-operative { border-color: #000; }
  .advisor-statement { border-left-color: #555; background: #f3f3f3 !important; print-color-adjust: exact; -webkit-print-color-adjust: exact; }
  .notary-box { color: #000; border-color: #000; }
  .resolution-footer { margin-top: 35px; }
}
