/* =====================================================================
   Coinquire portal styles
   ===================================================================== */
:root {
  --navy: #142B4A;
  --navy-2: #1D3A60;
  --blue: #285B91;
  --blue-dark: #1E4673;
  --blue-soft: #EAF1F9;
  --ink: #1D2939;
  --ink-2: #344054;
  --muted: #5D6B7E;
  --faint: #8A96A8;
  --line: #E4E8EE;
  --line-soft: #EEF1F5;
  --bg: #F4F6F9;
  --surface: #FFFFFF;
  --green-bg: #E7F5EE;  --green-fg: #146C4A;
  --amber-bg: #FEF3E2;  --amber-fg: #8A4F07;
  --red-bg:   #FDECEA;  --red-fg:   #A8251B;
  --blue-bg:  #E8F0FA;  --blue-fg:  #1E4E87;
  --grey-bg:  #EEF1F5;  --grey-fg:  #475467;
  --radius: 14px;
  --radius-sm: 9px;
  --shadow: 0 1px 2px rgba(20, 43, 74, .04), 0 6px 24px rgba(20, 43, 74, .05);
  --display: Manrope, Inter, system-ui, sans-serif;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; scroll-padding-top: 120px; }

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

h1, h2, h3, h4 { margin: 0; font-family: var(--display); color: var(--navy); letter-spacing: -0.015em; }
h1 { font-size: 28px; font-weight: 800; line-height: 1.2; }
h2 { font-size: 17px; font-weight: 700; }
h3 { font-size: 15px; font-weight: 700; }
p { margin: 0; }
a { color: var(--blue); }
a:hover { color: var(--blue-dark); }
:focus-visible { outline: 3px solid #9DB4FF; outline-offset: 2px; }
code { font-size: 0.92em; }

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.mono { font-family: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 12.5px; }

/* ---------- Brand ---------- */
.brand {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--display); font-weight: 800; font-size: 19px;
  letter-spacing: -0.02em; color: var(--navy); text-decoration: none;
}
.brand:hover { color: var(--navy); }
.brand-name span { color: var(--blue); }
.dark .brand, .auth-brand .brand { color: #fff; }
.dark .brand-name span, .auth-brand .brand-name span { color: #9DB4FF; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 7px;
  min-height: 40px; padding: 0 14px; border-radius: var(--radius-sm);
  border: 1px solid transparent; font: inherit; font-size: 13.5px; font-weight: 600;
  cursor: pointer; text-decoration: none; white-space: nowrap; line-height: 1;
  transition: background .15s, border-color .15s, color .15s;
}
.btn svg { width: 16px; height: 16px; flex: none; }
.btn:disabled { opacity: .55; cursor: not-allowed; }
.btn-primary { background: var(--navy); color: #fff; }
.btn-primary:hover:not(:disabled) { background: var(--navy-2); color: #fff; }
.btn-secondary { background: var(--surface); border-color: #D3DAE3; color: var(--navy); }
.btn-secondary:hover:not(:disabled) { background: var(--bg); color: var(--navy); }
.btn-soft { background: var(--blue-soft); color: var(--blue-dark); }
.btn-soft:hover:not(:disabled) { background: #DCE8F5; color: var(--blue-dark); }
.btn-ghost { background: transparent; color: var(--blue); padding: 0 10px; }
.btn-ghost:hover:not(:disabled) { background: var(--blue-soft); }
.btn-danger { background: transparent; color: var(--red-fg); padding: 0 10px; }
.btn-danger:hover:not(:disabled) { background: var(--red-bg); }
.btn-sm { min-height: 34px; padding: 0 11px; font-size: 13px; }
.btn-block { width: 100%; }
.btn-icon { width: 34px; min-height: 34px; padding: 0; }
.dark .btn-ghost { color: #E6EAF0; }
.dark .btn-ghost:hover { background: rgba(255,255,255,.08); color: #fff; }
label.btn { position: relative; overflow: hidden; }
label.btn:focus-within { outline: 3px solid #9DB4FF; outline-offset: 2px; }
.table-wrap, .subnav-inner { position: relative; }

/* ---------- Fields ---------- */
.field { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.field > label, .label { font-size: 13px; font-weight: 600; color: var(--ink-2); }
input[type="text"], input[type="email"], input[type="date"], input[type="search"],
input[type="number"], select, textarea {
  width: 100%; min-height: 42px; padding: 0 12px;
  border: 1px solid #D3DAE3; border-radius: var(--radius-sm);
  font: inherit; font-size: 14px; color: var(--ink); background: var(--surface);
}
textarea { padding: 10px 12px; min-height: 80px; resize: vertical; }
input:focus, select:focus, textarea:focus { border-color: var(--blue); outline: 3px solid rgba(40, 91, 145, .15); outline-offset: 0; }
input::placeholder, textarea::placeholder { color: #8A96A8; }
.code-input { font-size: 22px; letter-spacing: .3em; text-align: center; }
.hint { font-size: 13px; color: var(--muted); }
.msg { font-size: 13px; color: var(--muted); }
.msg:empty { display: none; }
.msg.error { color: var(--red-fg); }
.msg.ok { color: var(--green-fg); }
.warning { background: var(--amber-bg); color: var(--amber-fg); border-radius: 10px; padding: 12px 14px; font-size: 14px; }

/* ---------- Pills / chips ---------- */
.pill {
  display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; border-radius: 999px;
  font-size: 12px; font-weight: 600; white-space: nowrap; line-height: 1.4;
}
.pill::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; opacity: .8; }
.pill-green { background: var(--green-bg); color: var(--green-fg); }
.pill-amber { background: var(--amber-bg); color: var(--amber-fg); }
.pill-red   { background: var(--red-bg);   color: var(--red-fg); }
.pill-blue  { background: var(--blue-bg);  color: var(--blue-fg); }
.pill-grey  { background: var(--grey-bg);  color: var(--grey-fg); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; border-radius: 999px; background: var(--grey-bg); color: var(--grey-fg); font-size: 12px; font-weight: 500; }

/* ---------- Top bar ---------- */
.topbar { position: sticky; top: 0; z-index: 20; background: var(--surface); border-bottom: 1px solid var(--line); }
.topbar.dark { background: var(--navy); border-bottom: 0; color: #fff; }
.topbar-inner {
  max-width: 1240px; margin: 0 auto; padding: 10px 24px;
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 20px;
}
.topbar-left, .topbar-right { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }
.who { display: flex; align-items: center; gap: 10px; font-size: 13px; color: var(--muted); }
.dark .who { color: #C7CFDB; }
.avatar {
  width: 32px; height: 32px; border-radius: 50%; flex: none;
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--blue-soft); color: var(--blue-dark); font-size: 12px; font-weight: 700;
}
.tag { padding: 3px 9px; border-radius: 999px; background: rgba(255,255,255,.12); color: #E6EAF0; font-size: 12px; font-weight: 600; }
.company-select { width: auto; min-width: 240px; min-height: 38px; font-weight: 600; background: var(--bg); }

.subnav { border-top: 1px solid var(--line-soft); background: var(--surface); }
.subnav-inner { max-width: 1240px; margin: 0 auto; padding: 0 24px; display: flex; gap: 4px; overflow-x: auto; }
.subnav a {
  display: inline-flex; align-items: center; min-height: 44px; padding: 0 12px;
  color: var(--muted); text-decoration: none; font-size: 13.5px; font-weight: 600; white-space: nowrap;
  border-bottom: 2px solid transparent;
}
.subnav a:hover { color: var(--navy); border-bottom-color: var(--line); }
.subnav a .count { margin-left: 6px; min-width: 20px; padding: 0 6px; border-radius: 999px; background: var(--amber-bg); color: var(--amber-fg); font-size: 11.5px; line-height: 20px; text-align: center; }

/* ---------- Page ---------- */
.page { max-width: 1240px; margin: 0 auto; padding: 28px 24px 64px; display: flex; flex-direction: column; gap: 22px; }
.eyebrow { font-size: 11.5px; font-weight: 700; letter-spacing: .09em; text-transform: uppercase; color: var(--faint); }

.hero {
  background: linear-gradient(180deg, #fff, #fff), var(--surface);
  border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow);
  padding: 24px 26px; display: flex; flex-wrap: wrap; gap: 18px 28px; align-items: center; justify-content: space-between;
  position: relative; overflow: hidden;
}
.hero::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 5px; background: var(--navy); }
.hero-main { display: flex; flex-direction: column; gap: 8px; min-width: 0; flex: 1 1 420px; }
.hero-meta { color: var(--muted); font-size: 14px; display: flex; flex-wrap: wrap; gap: 4px 14px; }
.hero-meta span { white-space: nowrap; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 8px; }

.alert {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 20px;
  padding: 14px 18px; border-radius: var(--radius); border: 1px solid #F3D9A8; background: #FFF8EC; color: var(--amber-fg);
}
.alert strong { color: #6B3B02; }
.alert-red { border-color: #F5C2BD; background: #FFF4F3; color: var(--red-fg); }
.alert-body { display: flex; align-items: center; gap: 12px; font-size: 14px; }
.alert-body svg { width: 20px; height: 20px; flex: none; }

.metrics { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.metric {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow);
  padding: 16px 18px; display: flex; gap: 14px; align-items: center; min-width: 0;
}
.metric-icon { width: 40px; height: 40px; border-radius: 10px; flex: none; display: flex; align-items: center; justify-content: center; background: var(--blue-soft); color: var(--blue); }
.metric-icon svg { width: 20px; height: 20px; }
.metric-icon.amber { background: var(--amber-bg); color: var(--amber-fg); }
.metric-icon.red { background: var(--red-bg); color: var(--red-fg); }
.metric-icon.green { background: var(--green-bg); color: var(--green-fg); }
.metric-label { font-size: 12.5px; color: var(--muted); }
.metric-value { font-family: var(--display); font-size: 24px; font-weight: 800; color: var(--navy); line-height: 1.15; }

.grid-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px; align-items: start; }

.card {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow);
  padding: 20px 22px; display: flex; flex-direction: column; gap: 16px; min-width: 0;
}
.card-head { display: flex; flex-wrap: wrap; gap: 10px 16px; align-items: flex-start; justify-content: space-between; }
.card-title { display: flex; flex-direction: column; gap: 3px; }
.card-sub { font-size: 13px; color: var(--muted); }
.card-actions { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }

.note { background: var(--blue-soft); border: 1px solid #D5E3F2; border-radius: 10px; padding: 10px 14px; color: #34557A; font-size: 13px; display: flex; gap: 10px; align-items: flex-start; }
.note svg { width: 16px; height: 16px; flex: none; margin-top: 2px; }
.note-amber { background: var(--amber-bg); border-color: #F3D9A8; color: var(--amber-fg); }
.empty { color: var(--muted); font-size: 14px; padding: 18px; text-align: center; border: 1px dashed var(--line); border-radius: 10px; background: #FAFBFC; }

/* ---------- Tables ---------- */
.table-wrap { overflow-x: auto; margin: 0 -22px; padding: 0 22px; }
.table { width: 100%; border-collapse: collapse; font-size: 13.5px; }
.table th {
  text-align: left; font-size: 11.5px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase;
  color: var(--faint); padding: 0 12px 10px; border-bottom: 1px solid var(--line); white-space: nowrap;
}
.table td { padding: 13px 12px; border-bottom: 1px solid var(--line-soft); vertical-align: middle; }
.table tr:last-child td { border-bottom: 0; }
.table th:first-child, .table td:first-child { padding-left: 0; }
.table th:last-child, .table td:last-child { padding-right: 0; }
.table tbody tr:hover td { background: #FAFBFD; }
.table .strong { font-weight: 600; color: var(--ink); }
.table .sub { display: block; color: var(--muted); font-size: 12.5px; margin-top: 2px; }
.table .overdue { color: var(--red-fg); font-weight: 600; }
.table .num { text-align: right; }
.table .actions { text-align: right; white-space: nowrap; }
.table.min-640 { min-width: 640px; }
.table.min-760 { min-width: 760px; }

.filters { display: flex; flex-wrap: wrap; gap: 6px; }
.filter {
  min-height: 32px; padding: 0 12px; border-radius: 999px; border: 1px solid #D3DAE3; background: var(--surface);
  font: inherit; font-size: 12.5px; font-weight: 600; color: var(--ink-2); cursor: pointer;
}
.filter[aria-pressed="true"] { background: var(--navy); border-color: var(--navy); color: #fff; }
.filter .n { opacity: .65; margin-left: 4px; }

/* ---------- Lists ---------- */
.list { display: flex; flex-direction: column; }
.list-item { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 16px; padding: 13px 0; border-top: 1px solid var(--line-soft); }
.list-item:first-child { border-top: 0; padding-top: 2px; }
.list-main { display: flex; gap: 12px; align-items: center; min-width: 0; flex: 1 1 260px; }
.list-text { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.list-title { font-weight: 600; color: var(--ink); }
.list-meta { font-size: 12.5px; color: var(--muted); }
.date-badge {
  flex: none; width: 50px; height: 54px; border-radius: 10px; border: 1px solid var(--line); background: #FAFBFD;
  display: flex; flex-direction: column; align-items: center; justify-content: center; line-height: 1.1;
}
.date-badge b { font-family: var(--display); font-size: 18px; color: var(--navy); }
.date-badge span { font-size: 11px; font-weight: 600; text-transform: uppercase; color: var(--muted); }

.doc-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 10px; }
.doc-tile {
  display: flex; gap: 12px; align-items: center; padding: 12px; border: 1px solid var(--line); border-radius: 11px;
  text-decoration: none; color: var(--ink); background: var(--surface); min-width: 0; transition: border-color .15s, box-shadow .15s;
}
a.doc-tile:hover { border-color: #A9C0D8; box-shadow: 0 2px 10px rgba(20,43,74,.06); color: var(--ink); }
.doc-ext {
  flex: none; width: 40px; height: 46px; border-radius: 7px; background: var(--blue-soft); color: var(--blue-dark);
  display: flex; align-items: flex-end; justify-content: center; padding-bottom: 7px;
  font-size: 10.5px; font-weight: 800; letter-spacing: .03em; position: relative;
}
.doc-ext::before { content: ""; position: absolute; top: 0; right: 0; border-width: 0 10px 10px 0; border-style: solid; border-color: var(--bg) var(--bg) #C9DAEC #C9DAEC; border-radius: 0 7px 0 3px; }
.doc-ext.pdf { background: #FDECEA; color: var(--red-fg); }
.doc-ext.pdf::before { border-color: var(--bg) var(--bg) #F3C2BC #F3C2BC; }
.doc-ext.xls { background: #E7F5EE; color: var(--green-fg); }
.doc-ext.xls::before { border-color: var(--bg) var(--bg) #BFE3D0 #BFE3D0; }
.doc-text { display: flex; flex-direction: column; gap: 2px; min-width: 0; flex: 1; }
.doc-title { font-weight: 600; font-size: 13.5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.doc-meta { font-size: 12px; color: var(--muted); }

.files { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 6px; }
.file {
  display: inline-flex; align-items: center; gap: 6px; max-width: 100%; font-size: 12.5px; padding: 4px 9px;
  border: 1px solid var(--line); border-radius: 7px; color: var(--ink-2); text-decoration: none; background: #FAFBFD;
}
.file:hover { border-color: var(--blue); color: var(--blue-dark); }
.file span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.file small { color: var(--faint); }
.note-inline { margin-top: 6px; background: var(--red-bg); color: var(--red-fg); border-radius: 8px; padding: 7px 10px; font-size: 13px; }

/* ---------- Company profile ---------- */
.details-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0; border: 1px solid var(--line-soft); border-radius: 11px; overflow: hidden; }
.detail { padding: 13px 15px; border-right: 1px solid var(--line-soft); border-bottom: 1px solid var(--line-soft); min-width: 0; }
.detail.wide { grid-column: span 2; }
.detail-label { font-size: 11.5px; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; color: var(--faint); }
.detail-value { font-weight: 600; color: var(--ink); margin-top: 3px; overflow-wrap: anywhere; }
.detail-value.missing { color: var(--faint); font-weight: 400; }

.people-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 10px; }
.person { display: flex; gap: 12px; align-items: center; padding: 12px; border: 1px solid var(--line); border-radius: 11px; min-width: 0; }
.person .avatar { width: 40px; height: 40px; font-size: 13px; }
.person-text { display: flex; flex-direction: column; gap: 1px; min-width: 0; flex: 1; }
.person-name { font-weight: 600; }
.person-meta { font-size: 12.5px; color: var(--muted); }
.person-actions { display: flex; gap: 2px; }

.share-bar { height: 6px; border-radius: 999px; background: var(--line-soft); overflow: hidden; min-width: 80px; }
.share-bar > div { height: 6px; background: var(--blue); border-radius: 999px; }

.footer-note { display: flex; align-items: center; justify-content: center; gap: 8px; color: var(--faint); font-size: 12.5px; padding-top: 6px; text-align: center; }
.footer-note svg { width: 14px; height: 14px; }

.state-box { max-width: 560px; margin: 56px auto; text-align: center; display: flex; flex-direction: column; gap: 12px; align-items: center; }
.loading { color: var(--muted); padding: 40px 0; text-align: center; }

/* ---------- Team (admin) ---------- */
.admin-layout { max-width: 1340px; margin: 0 auto; padding: 22px 24px 64px; display: flex; flex-wrap: wrap; gap: 22px; align-items: flex-start; }
.sidebar { flex: 1 1 260px; max-width: 100%; position: sticky; top: 76px; display: flex; flex-direction: column; gap: 12px; }
.sidebar .card { padding: 16px; gap: 12px; }
.company-list { display: flex; flex-direction: column; gap: 2px; max-height: calc(100vh - 290px); min-height: 120px; overflow-y: auto; margin: 0 -6px; padding: 0 6px; }
.company-btn {
  display: flex; flex-direction: column; align-items: flex-start; gap: 1px; width: 100%; text-align: left;
  min-height: 44px; padding: 8px 10px; border: 0; border-radius: 8px; background: transparent; font: inherit; cursor: pointer; color: var(--ink-2);
}
.company-btn:hover { background: var(--bg); }
.company-btn .cb-name { font-size: 13.5px; font-weight: 600; }
.company-btn .cb-meta { font-size: 12px; color: var(--muted); }
.company-btn[aria-current="true"] { background: var(--blue-soft); color: var(--navy); box-shadow: inset 3px 0 0 var(--navy); }
.admin-main { flex: 999 1 640px; min-width: 0; display: flex; flex-direction: column; gap: 18px; }

.tabs { display: flex; gap: 2px; overflow-x: auto; border-bottom: 1px solid var(--line); }
.tab {
  min-height: 44px; padding: 0 14px; border: 0; border-bottom: 2px solid transparent; background: none;
  font: inherit; font-size: 13.5px; font-weight: 600; color: var(--muted); cursor: pointer; white-space: nowrap;
}
.tab:hover { color: var(--navy); }
.tab[aria-selected="true"] { color: var(--navy); border-bottom-color: var(--navy); }
.tab .count { margin-left: 6px; padding: 0 6px; border-radius: 999px; background: var(--grey-bg); color: var(--grey-fg); font-size: 11.5px; }
.tab .count.hot { background: var(--amber-bg); color: var(--amber-fg); }
.tab-panel { display: flex; flex-direction: column; gap: 18px; }

.member-row { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 11px 0; border-top: 1px solid var(--line-soft); }
.member-row:first-child { border-top: 0; }
.inline-form { display: flex; flex-wrap: wrap; gap: 10px; align-items: flex-end; }
.inline-form .field { flex: 1 1 200px; }

/* ---------- Dialog ---------- */
dialog.modal {
  border: 0; border-radius: 16px; padding: 0; width: min(620px, calc(100vw - 32px));
  box-shadow: 0 24px 60px rgba(20, 43, 74, .28); color: var(--ink);
}
dialog.modal::backdrop { background: rgba(14, 26, 43, .5); }
.modal-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 18px 22px; border-bottom: 1px solid var(--line); }
.modal-body { padding: 20px 22px; max-height: min(70vh, 640px); overflow-y: auto; }
.modal-foot { display: flex; justify-content: flex-end; gap: 8px; padding: 14px 22px; border-top: 1px solid var(--line); background: #FAFBFC; border-radius: 0 0 16px 16px; }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.form-grid .wide { grid-column: 1 / -1; }
.req { color: var(--red-fg); }

/* ---------- Sign-in page ---------- */
.auth { min-height: 100vh; display: flex; flex-wrap: wrap; }
.auth-brand {
  flex: 1 1 480px; min-width: 0; background: var(--navy); color: #fff; padding: 48px 56px;
  display: flex; flex-direction: column; justify-content: space-between; gap: 40px;
  background-image: radial-gradient(circle at 85% 15%, rgba(40, 91, 145, .45), transparent 45%);
}
.auth-brand .eyebrow { color: #9DB4FF; }
.auth-brand h1 { color: #fff; font-size: 42px; line-height: 1.12; max-width: 520px; }
.auth-brand .lead { font-size: 17px; line-height: 1.6; color: #C7CFDB; max-width: 520px; }
.auth-brand ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 12px; color: #E6EAF0; }
.auth-brand li { display: flex; gap: 10px; align-items: center; }
.auth-brand .foot { font-size: 13px; color: #9AA5B5; }
.auth-panel { flex: 1 1 440px; min-width: 0; display: flex; align-items: center; justify-content: center; padding: 48px 24px; background: var(--bg); }
.auth-card { width: 100%; max-width: 420px; display: flex; flex-direction: column; gap: 20px; background: var(--surface); border: 1px solid var(--line); border-radius: 18px; padding: 32px; box-shadow: var(--shadow); }
.auth-card form { display: flex; flex-direction: column; gap: 14px; }
.auth-card h2 { font-size: 26px; }
.divider { display: flex; align-items: center; gap: 12px; font-size: 13px; color: var(--muted); }
.divider::before, .divider::after { content: ""; flex: 1; height: 1px; background: var(--line); }

/* ---------- Responsive ---------- */
@media (max-width: 1000px) {
  .metrics { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .details-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .sidebar { position: static; }
  .company-list { max-height: 260px; }
}
@media (max-width: 820px) {
  .grid-2 { grid-template-columns: 1fr; }
}
@media (max-width: 600px) {
  .topbar-inner, .subnav-inner, .page, .admin-layout { padding-left: 16px; padding-right: 16px; }
  .page { padding-top: 18px; }
  h1 { font-size: 23px; }
  .hero { padding: 20px; }
  .card { padding: 18px 16px; }
  .table-wrap { margin: 0 -16px; padding: 0 16px; }
  .metrics { gap: 10px; }
  .metric { padding: 12px; gap: 10px; }
  .metric-icon { width: 34px; height: 34px; }
  .metric-value { font-size: 20px; }
  .details-grid { grid-template-columns: 1fr; }
  .detail.wide { grid-column: auto; }
  .form-grid { grid-template-columns: 1fr; }
  .company-select { min-width: 0; width: 100%; }
  .who .email { display: none; }
  .auth-brand { padding: 32px 20px; }
  .auth-brand h1 { font-size: 30px; }
  .auth-brand ul { display: none; }
  .auth-card { padding: 24px 20px; }
}

/* Coinquire wordmark in topbars */
.brand-logo { display: block; height: 24px; width: auto; }
@media (max-width: 560px) { .brand-logo { height: 19px; } }
