@font-face {
  font-family: Vazirmatn;
  src: url("assets/Vazirmatn.woff2") format("woff2");
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
}
:root {
  color-scheme: light;
  --ink: #18302f;
  --muted: #526763;
  --subtle: #697a76;
  --canvas: #f5f7f5;
  --surface: #fff;
  --wash: #f0f4f1;
  --line: #e0e8e2;
  --primary: #176b58;
  --primary-dark: #10513f;
  --nav: #112e2c;
  --nav-text: #b7cac4;
  --mint: #bdebd0;
  --radius: 12px;
  --shadow: 0 2px 4px #142d2010;
  --rail: 224px;
  --header: 66px;
}
*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { min-width: 280px; }
body {
  margin: 0;
  background: var(--canvas);
  color: var(--ink);
  font: 14px/1.65 Vazirmatn, "Segoe UI", Tahoma, sans-serif;
  font-variant-numeric: tabular-nums;
  text-align: start;
}
h1, h2, h3, p { margin: 0; }
h1 { font-size: clamp(25px, 3vw, 34px); font-weight: 820; line-height: 1.35; }
h2 { font-size: 17px; font-weight: 780; line-height: 1.55; }
h3 { font-size: 14px; font-weight: 750; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
:focus-visible { outline: 2px solid #19836b; outline-offset: 3px; }
svg { flex-shrink: 0; vertical-align: middle; }
.skip { position: fixed; inset: 10px 10px auto auto; z-index: 10; padding: 8px 14px; background: white; transform: translateY(-160%); }
.skip:focus { transform: none; }
.shell { display: grid; grid-template-columns: var(--rail) minmax(0, 1fr); min-height: 100vh; }
.sidebar {
  position: sticky;
  inset-block-start: 0;
  height: 100dvh;
  display: flex;
  flex-direction: column;
  overflow: auto;
  padding: 24px 14px 16px;
  background: var(--nav);
  color: var(--nav-text);
  --icon-fill: var(--nav);
}
.brand { display: flex; align-items: center; gap: 10px; margin: 1px 9px 24px; color: #fff; }
.brand img { width: 37px; height: 37px; }
.brand strong { display: block; font-size: 21px; line-height: 1.04; font-weight: 800; letter-spacing: -.65px; }
.brand small { display: block; font-size: 10px; margin-top: 3px; color: #c0d6cc; }
.nav-group { margin-block: 0 18px; }
.nav-group h2 { color: #a2bbb2; font-size: 11px; font-weight: 550; margin: 0 11px 7px; }
.nav-item {
  position: relative;
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 41px;
  padding: 7px 11px;
  margin-block-end: 2px;
  border: 1px solid transparent;
  border-radius: 7px;
  color: #d0dfd9;
  font-size: 12.5px;
  font-weight: 560;
}
.nav-item svg { color: #a0bdb1; }
.nav-item:hover, .nav-item[aria-current] { background: #22443d; color: white; }
.nav-item[aria-current] { border-color: #3b5e52; font-weight: 730; }
.nav-item[aria-current]::before { position: absolute; inset: 9px 0 9px auto; width: 3px; background: var(--mint); content: ""; border-radius: 4px; }
.nav-item[aria-current] svg { color: var(--mint); }
.sidebar :focus-visible, .market-banner :focus-visible { outline-color: var(--mint); }
.workspace-card {
  display: flex;
  align-items: center;
  gap: 9px;
  margin-top: auto;
  padding: 10px;
  border: 1px solid #446056;
  border-radius: 9px;
  min-height: 54px;
  overflow-wrap: anywhere;
}
.workspace-card:hover { background: #22443d; }
.workspace-card strong { display: block; color: #f1f8f4; font-size: 12px; }
.workspace-card small { color: #b7cac4; font-size: 10px; }
.workspace-card > svg { margin-inline-start: auto; }
.workspace-icon { color: var(--mint); display: grid; place-items: center; width: 32px; height: 32px; background: #2b4b40; border-radius: 7px; flex-shrink: 0; }
.workspace { min-width: 0; }
.topbar {
  position: sticky;
  z-index: 3;
  inset-block-start: 0;
  min-height: var(--header);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 10px 30px;
  background: var(--surface);
  border-bottom: 1px solid var(--line);
}
.breadcrumb, .top-actions, .actions, .inline { display: flex; align-items: center; gap: 9px; }
.breadcrumb { font-size: 12px; white-space: nowrap; }
.breadcrumb a, .breadcrumb svg { color: var(--subtle); }
.breadcrumb a:hover { color: var(--primary); }
.breadcrumb strong { font-weight: 680; }
.top-actions { gap: 12px; min-width: 0; }
.global-search { width: clamp(205px, 24vw, 325px); }
.search-field {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 39px;
  padding-inline: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--muted);
  background: #f7f9f7;
}
.search-field:focus-within { border-color: var(--primary); box-shadow: 0 0 0 2px #186b5820; }
.search-field button { background: none; border: 0; color: inherit; padding: 0; }
.search-field input { width: 100%; min-width: 0; padding: 7px 0; border: 0; background: transparent; outline: none; font-size: 12px; }
::placeholder { color: #60736c; opacity: 1; }
kbd { padding: 1px 5px; border: 1px solid var(--line); border-radius: 4px; color: var(--muted); background: white; font: 10px/1.4 "Segoe UI", sans-serif; white-space: nowrap; }
.avatar { display: inline-grid; place-items: center; width: 33px; height: 33px; background: #dceee2; color: #245d46; border-radius: 50%; font-weight: 750; flex-shrink: 0; border: 0; }
.menu-toggle { display: none !important; }
.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  width: max-content;
  max-width: 100%;
  padding: 3px 8px;
  border-radius: 6px;
  background: var(--wash);
  color: #456058;
  line-height: 1.55;
  font-size: 10.5px;
  font-weight: 630;
}
.badge i { flex: 0 0 5px; height: 5px; border-radius: 50%; background: currentColor; }
.badge--green { color: #1b6748; background: #e3f3e9; }
.badge--blue { color: #315b85; background: #eaf1fa; }
.badge--amber { color: #825513; background: #fff2d9; }
.badge--red { color: #963f37; background: #fbeae5; }
.badge--violet { color: #634e8b; background: #f1ecfa; }
.main { width: 100%; max-width: 1440px; min-width: 0; margin: 0 auto; padding: 25px 30px 54px; }
.main:focus { outline: none; }
.page-head { display: flex; align-items: end; justify-content: space-between; gap: 13px; margin-bottom: 18px; }
.page-head p, .panel-head p, .muted { color: var(--muted); }
.page-head p { margin-top: 4px; }
.actions { flex-wrap: wrap; }
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  min-height: 37px;
  padding: 6px 12px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: var(--surface);
  color: var(--ink);
  font-size: 12px;
  font-weight: 680;
  text-align: center;
}
.button:hover { background: var(--wash); }
.button--primary { background: var(--primary); color: #fff; border-color: var(--primary); }
.button--primary:hover { background: var(--primary-dark); }
.button--mint { background: var(--mint); border-color: var(--mint); color: #194b39; }
.button--mint:hover { background: #d9f4e4; }
.button--text { border-color: transparent; background: transparent; color: var(--primary); }
.button--danger { color: #963f37; }
.button--icon { width: 37px; padding: 0; }
.button--small { min-height: 32px; padding-block: 3px; padding-inline: 8px; font-size: 11px; }
.button:disabled { opacity: .55; cursor: default; }
.stack { display: grid; align-content: start; gap: 16px; min-width: 0; }
.panel { min-width: 0; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); }
.panel-head { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 14px 17px 13px; }
.panel-head p { font-size: 11.5px; margin-top: 2px; }
.pad { padding: 17px; }
.table-scroll { position: relative; overflow-x: auto; min-width: 0; }
.table-scroll:focus-visible { outline-offset: -2px; }
table { border-collapse: collapse; text-align: start; width: 100%; font-size: 12px; }
.table-wide { min-width: 780px; }
th, td { text-align: start; padding: 10px 14px; border-top: 1px solid var(--line); }
th:first-child, td:first-child { padding-inline-start: 17px; }
th:last-child, td:last-child { padding-inline-end: 17px; }
th { color: #50655d; background: #f6f9f6; font-size: 11px; font-weight: 700; white-space: nowrap; }
tbody tr:hover { background: #f9fbf9; }
.entity-link { display: inline-flex; align-items: center; gap: 9px; overflow-wrap: anywhere; }
.entity-link:hover strong { color: var(--primary); text-decoration: underline; text-underline-offset: 3px; }
.entity-link strong { font-weight: 740; }
.entity-link small, .row-note { display: block; color: var(--muted); font-size: 10.5px; }
.entity-icon, .tile-icon {
  width: 35px;
  height: 35px;
  display: inline-grid;
  place-items: center;
  border: 1px solid #e3ebe6;
  border-radius: 8px;
  background: #edf2ee;
  color: #47695b;
  flex-shrink: 0;
}
.entity-icon--fund { background: #e9f4ee; color: #257054; }
.two-col { display: grid; grid-template-columns: minmax(0, 1.7fr) minmax(0, 1fr); gap: 16px; align-items: start; }
.bottom-note { padding: 9px 17px; border-top: 1px solid var(--line); color: var(--muted); font-size: 11px; }
.notice { display: flex; align-items: start; gap: 8px; background: #eaf3ed; border: 1px solid #d5e5da; color: #315d49; padding: 10px 13px; border-radius: 8px; font-size: 12px; }
.notice--warning { background: #fff6e2; border-color: #efdcb8; color: #79501b; }
.notice svg { margin-top: 2px; }
#storage-notice:not([hidden]) { margin: 14px 30px 0; }
.market-banner {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(270px, 1fr);
  align-items: center;
  gap: 24px;
  padding: 24px 26px;
  min-height: 163px;
  border-radius: 13px;
  background: #143b33;
  color: #f6faf7;
}
.market-banner::before {
  position: absolute;
  inset: 0 42% 0 0;
  content: "";
  background-image: linear-gradient(#bdebd014 1px, transparent 1px), linear-gradient(90deg, #bdebd014 1px, transparent 1px);
  background-size: 22px 22px;
  mask-image: linear-gradient(90deg, #000b, transparent);
  z-index: -1;
}
.market-banner h2 { font-size: clamp(21px, 2.4vw, 28px); font-weight: 800; }
.market-banner p { color: #caddd3; font-size: 12px; margin: 5px 0 14px; }
.workflow { display: flex; align-items: start; justify-content: center; gap: 10px; text-align: center; }
.workflow a { display: grid; justify-items: center; gap: 7px; min-width: 60px; color: #e3f4e8; font-size: 11px; }
.workflow a:hover { color: var(--mint); text-decoration: underline; }
.workflow .flow-icon { display: grid; place-items: center; width: 45px; height: 45px; border-radius: 10px; background: #245448; border: 1px solid #548475; color: var(--mint); }
.workflow > svg { margin-top: 13px; color: #9abdaf; }
.metrics { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.metric { display: grid; grid-template-columns: 1fr auto; align-items: start; gap: 8px; padding: 13px 15px; }
.metric:hover { border-color: #a4c2b2; }
.metric .tile-icon { background: #e7f4ed; color: #27634c; border-color: transparent; }
.metric:nth-child(2) .tile-icon { background: #edf0fa; color: #4d6198; }
.metric:nth-child(3) .tile-icon { background: #fff2dc; color: #8c652a; }
.metric:nth-child(4) .tile-icon { background: #f2eef8; color: #6f5290; }
.metric span { color: var(--muted); font-size: 11.5px; }
.metric strong { display: block; margin-top: 2px; font-size: 28px; font-weight: 790; line-height: 1.3; }
.metric small { grid-column: 1 / -1; display: block; color: var(--subtle); font-size: 10.5px; }
.task-list { list-style: none; padding: 0; margin: 0; }
.task-row { display: flex; justify-content: space-between; align-items: start; gap: 8px; padding: 11px 16px; border-top: 1px solid var(--line); overflow-wrap: anywhere; }
.task-row > div { min-width: 0; }
.task-row h3 { font-size: 12.5px; margin-bottom: 2px; }
.task-row .entity-link { color: var(--muted); font-size: 11px; }
.task-row .entity-link strong { font-weight: 520; }
.task-row .task-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin-top: 5px; }
.task-row .button { margin-top: 2px; }
.done-title { text-decoration: line-through; }
.segment-bar { display: flex; gap: 4px; height: 9px; margin: 3px 17px 11px; overflow: hidden; border-radius: 10px; }
.segment-bar span { display: block; }
.pipeline-legend { display: flex; flex-wrap: wrap; justify-content: space-between; padding: 0 17px 13px; gap: 5px; }
.pipeline-legend a { display: flex; gap: 6px; align-items: center; padding: 4px 0; color: var(--muted); font-size: 11px; }
.pipeline-legend a:hover { color: var(--primary); text-decoration: underline; }
.pipeline-legend i { width: 8px; height: 8px; border-radius: 3px; }
.pipeline-legend strong { color: var(--ink); }
.empty { padding: 29px 16px; display: grid; justify-items: center; gap: 6px; text-align: center; }
.empty .tile-icon { margin-bottom: 3px; }
.empty p { max-width: 45ch; color: var(--muted); font-size: 12px; }
.empty .button { margin-top: 5px; }
.loading { display: flex; justify-content: center; align-items: center; gap: 10px; min-height: 260px; color: var(--muted); }
.toolbar { display: flex; flex-wrap: wrap; align-items: end; gap: 9px; padding: 13px 17px; border-block-end: 1px solid var(--line); }
.toolbar > label { display: grid; align-content: end; gap: 3px; font-size: 11px; font-weight: 620; }
.toolbar .grow { flex: 1 0 190px; }
.toolbar .button { min-height: 39px; }
.field {
  min-height: 39px;
  width: 100%;
  min-width: 0;
  padding: 6px 9px;
  border: 1px solid #cedbd3;
  border-radius: 7px;
  background: white;
  color: var(--ink);
  font-size: 12px;
}
textarea.field { min-height: 95px; resize: vertical; }
.field[dir=ltr] { text-align: left; }
.tabs {
  display: flex;
  align-items: stretch;
  gap: 16px;
  overflow-x: auto;
  padding: 0 15px;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: white;
}
.tabs a { display: inline-flex; align-items: center; min-height: 43px; padding: 5px 6px 3px; border-bottom: 3px solid transparent; color: var(--muted); font-weight: 620; font-size: 12px; white-space: nowrap; }
.tabs a:focus-visible { outline-offset: -3px; }
.tabs a:hover, .tabs a[aria-current] { color: var(--primary-dark); }
.tabs a[aria-current] { border-bottom-color: var(--primary); font-weight: 760; }
.profile-head { display: flex; justify-content: space-between; align-items: end; gap: 16px; padding: 20px; }
.profile-identity { display: flex; align-items: start; gap: 13px; min-width: 0; }
.profile-identity .entity-icon { width: 54px; height: 54px; margin-top: 2px; }
.profile-identity h1 { font-size: clamp(20px, 2.7vw, 30px); overflow-wrap: anywhere; }
.profile-identity p { color: var(--muted); margin: 4px 0 7px; }
.profile-back { justify-self: start; padding-inline-start: 0; min-height: 28px; }
.facts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 9px; margin: 0; padding: 0 17px 8px; }
.facts > div { min-width: 0; padding: 10px 3px; border-top: 1px solid var(--line); }
.facts dt { color: var(--muted); font-size: 11px; }
.facts dd { margin: 5px 0 0; overflow-wrap: anywhere; font-weight: 680; font-size: 12.5px; }
.detail-row { display: flex; align-items: start; justify-content: space-between; gap: 10px; padding: 10px 16px; border-top: 1px solid var(--line); overflow-wrap: anywhere; }
.detail-row p { color: var(--muted); font-size: 11.5px; margin-top: 2px; }
.detail-row > div { min-width: 0; }
.timeline { list-style: none; padding: 0 17px 6px; margin: 0; }
.timeline li { position: relative; display: flex; gap: 10px; padding: 10px 0 12px; }
.timeline li:not(:last-child)::after { position: absolute; inset: 40px 14px 0 auto; width: 1px; background: var(--line); content: ""; }
.timeline-icon { display: grid; place-items: center; flex: 0 0 29px; height: 29px; border-radius: 7px; background: #eaf4ec; color: var(--primary); }
.timeline-meta { display: flex; flex-wrap: wrap; gap: 12px; color: var(--muted); font-size: 10.5px; }
.timeline p { color: var(--muted); font-size: 12px; white-space: pre-line; overflow-wrap: anywhere; }
.timeline strong { font-size: 12.5px; overflow-wrap: anywhere; }
.timeline small { display: block; margin-top: 3px; }
.list-layout { display: grid; grid-template-columns: minmax(190px, .7fr) minmax(0, 2fr); gap: 16px; align-items: start; }
.local-nav { display: grid; gap: 5px; padding: 0 10px 10px; }
.local-nav a { display: flex; justify-content: space-between; align-items: center; gap: 7px; padding: 9px; border-radius: 7px; overflow-wrap: anywhere; font-size: 12px; }
.local-nav a:hover, .local-nav a[aria-current] { background: #eaf3ed; color: var(--primary-dark); }
.local-nav a[aria-current] { font-weight: 750; }
.board { display: grid; grid-auto-columns: minmax(208px, 1fr); grid-auto-flow: column; gap: 9px; overflow-x: auto; padding: 11px 13px 14px; }
.board-column { min-width: 0; padding: 8px; background: var(--wash); border-radius: 9px; border-top: 3px solid var(--stage-color); }
.board-column > h3 { display: flex; justify-content: space-between; gap: 5px; margin: 0 0 8px; }
.board-column > p { padding: 10px 3px; text-align: center; font-size: 11px; color: var(--muted); }
.op-card { display: grid; gap: 6px; padding: 10px; overflow-wrap: anywhere; }
.op-card + .op-card { margin-top: 7px; }
.op-card p, .op-card label { color: var(--muted); font-size: 11px; }
.op-card .field, .compact.field { min-height: 32px; }
.setting-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
dialog {
  width: min(520px, calc(100% - 26px));
  max-height: 92dvh;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 14px;
  color: var(--ink);
  box-shadow: 0 16px 64px #102d3455;
}
dialog::backdrop { background: #112e2c92; }
.dialog-head { display: flex; justify-content: space-between; align-items: start; gap: 12px; padding: 17px 19px 13px; border-bottom: 1px solid var(--line); }
.dialog-head p { margin-top: 3px; font-size: 12px; color: var(--muted); }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; padding: 15px 19px; }
.form-grid label { display: grid; align-content: start; gap: 4px; font-size: 12px; font-weight: 630; }
.form-grid .full, .form-error { grid-column: 1 / -1; }
.form-error { color: #963f37; font-size: 12px; }
.dialog-actions { display: flex; gap: 8px; justify-content: end; padding: 12px 19px; border-top: 1px solid var(--line); }
.check-line { display: flex !important; align-items: center; gap: 7px !important; }
input[type=checkbox] { width: 17px; height: 17px; accent-color: var(--primary); }
.toast:not(:empty) { position: fixed; inset: auto auto 18px 22px; z-index: 5; max-width: min(420px, calc(100% - 44px)); padding: 10px 15px; border-radius: 9px; background: var(--nav); color: white; box-shadow: var(--shadow); }
.scrim { position: fixed; inset: 0; z-index: 6; border: 0; background: #112e2c80; }
@media (max-width: 1160px) {
  :root { --rail: 193px; }
  .topbar, .main { padding-inline: 21px; }
  .top-actions { gap: 8px; }
}
@media (max-width: 1000px) {
  .two-col { grid-template-columns: 1fr; }
  .profile-head { align-items: start; flex-direction: column; }
}
@media (max-width: 800px) {
  .shell { display: block; }
  .sidebar { display: none; position: fixed; inset: 0 0 0 auto; z-index: 7; width: min(260px, 82vw); }
  .sidebar.is-open { display: flex; }
  .menu-toggle { display: inline-flex !important; }
  .topbar { padding: 8px 15px; flex-wrap: wrap; gap: 7px; }
  .top-actions { margin-inline-start: auto; }
  .global-search { width: min(40vw, 270px); }
}
@media (max-width: 570px) {
  .topbar { position: static; min-height: 59px; }
  .top-actions { display: contents; }
  .top-actions .badge { margin-inline-start: auto; }
  .top-actions .avatar { display: none; }
  .global-search { order: 1; width: 100%; }
  .main { padding: 16px 13px 33px; }
  .page-head { align-items: start; flex-direction: column; margin-bottom: 12px; gap: 8px; }
  .page-head p { font-size: 12px; }
  .market-banner { grid-template-columns: 1fr; padding: 17px; gap: 15px; }
  .market-banner::before { inset-inline: 0; }
  .metrics { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 7px; }
  .metric { padding: 10px; gap: 5px; }
  .metric strong { font-size: 23px; }
  .metric .tile-icon { width: 28px; height: 28px; }
  .metric .tile-icon svg { width: 16px; }
  .panel-head { align-items: start; padding-inline: 12px; }
  .overview-table td, .overview-table th { padding-inline: 8px; }
  .overview-table .entity-icon { display: none; }
  .overview-table .date-col { display: none; }
  .setting-grid, .list-layout { grid-template-columns: 1fr; }
  .tabs { gap: 7px; padding-inline: 8px; }
  .profile-head + .tabs { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 8px; }
  .profile-head + .tabs a { justify-content: center; min-height: 38px; }
  .profile-head { padding: 13px; }
  .profile-identity .entity-icon { width: 39px; height: 39px; }
  .button { min-height: 40px; }
  .button--small { min-height: 34px; }
  .form-grid { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { scroll-behavior: auto !important; } }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.sr-only-cell { width: 1%; }
.count { padding: 1px 6px; border-radius: 5px; background: #e4ede7; color: #33564a; font-size: 10px; }
.text-link { color: var(--primary); text-decoration: underline; text-underline-offset: 2px; }
.date-pill { display: inline-flex; align-items: center; gap: 7px; padding: 5px 9px; border: 1px solid var(--line); border-radius: 7px; background: white; color: var(--muted); font-size: 11px; }
.brand-row { display: flex; align-items: start; justify-content: space-between; min-width: 0; }
.drawer-close { display: none !important; }
.breadcrumb .crumb-home, .breadcrumb svg { color: var(--subtle); }
#main { scroll-margin-top: calc(var(--header) + 12px); }
.dialog-actions > .button--text { margin-inline-end: auto; }
.menu-open { overflow: hidden; }
@media (max-width: 800px) {
  .drawer-close { display: inline-flex !important; background: transparent; color: white; border-color: #446056; }
  .drawer-close:hover { background: #22443d; }
}
@media (max-width: 370px) {
  .breadcrumb .crumb-home, .breadcrumb > svg { display: none; }
  .workflow { gap: 6px; }
}
.pagination { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 10px 17px; border-top: 1px solid var(--line); font-size: 12px; color: var(--muted); }
.chart { display: grid; gap: 7px; padding: 0 17px 15px; }
.chart-axis { display: flex; justify-content: space-between; margin: 0 min(23%, 140px) 2px 48px; border-block-end: 1px solid var(--line); color: var(--muted); font-size: 10.5px; }
.chart-row { display: grid; grid-template-columns: minmax(75px, .78fr) minmax(30px, 3fr) minmax(38px, auto); gap: 4px 9px; align-items: center; font-size: 11.5px; }
.chart-row > span:first-child { overflow-wrap: anywhere; }
.chart-row strong { text-align: end; }
.chart-row small { grid-column: 2 / -1; color: var(--muted); font-size: 10.5px; }
.chart-track { position: relative; border-radius: 4px; background: #edf3ee; height: 12px; display: block; overflow: hidden; }
.chart-track i, .chart-track b { position: absolute; inset: 0 0 0 auto; border-radius: 3px; display: block; }
.chart-track i { background: #679b90; }
.chart-track b { background: #2a5d51; }
.source-cells { display: grid; grid-template-columns: repeat(auto-fit, minmax(120px, 1fr)); gap: 6px; margin: 0; }
.source-cells div, .cell-values span { border-radius: 5px; padding: 4px 6px; background: var(--wash); overflow-wrap: anywhere; }
.source-cells dt, .cell-values small { color: var(--muted); font-size: 10px; }
.source-cells dd { margin: 0; }
.cell-values { display: flex; flex-wrap: wrap; gap: 4px; }
.cell-values small { padding-inline-end: 5px; }
.picker { display: grid; gap: 7px; }
.profile-head h1 { line-height: 1.5; }
.sidebar nav { flex-shrink: 0; }
@media (min-width: 571px) {
  .metrics:has(> .metric:nth-child(3):last-child) { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 570px) {
  .chart { padding-inline: 12px; }
  .chart-axis { margin-inline-start: 75px; }
  .pagination { padding-inline: 12px; }
  .pagination span { font-size: 11px; }
}

.analysis-filters .toolbar { background: #fafcfb; border-radius: var(--radius) var(--radius) 0 0; }
.analysis-metric { grid-template-columns: minmax(0, 1fr) auto; }
.analysis-metric strong { font-size: clamp(19px, 2.35vw, 29px); line-height: 1.35; }
.analysis-metric strong .amount { color: inherit; font-size: inherit; }
.amount { unicode-bidi: isolate; white-space: nowrap; }
.analysis-up { color: #17624d; font-weight: 680; }
.analysis-down { color: #983d33; font-weight: 680; }
.analysis-audit { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; padding: 0 16px 14px; }
.analysis-audit > div { background: var(--wash); border-radius: 7px; padding: 9px; min-width: 0; }
.analysis-audit strong, .analysis-audit span { display: block; }
.analysis-audit strong { font-weight: 780; }
.analysis-audit .amount { display: inline; }
.analysis-audit span:not(.amount) { color: var(--muted); font-size: 11px; }
.category-cell { display: flex; justify-content: space-between; gap: 7px; min-width: 120px; font-size: 11px; padding-block: 3px; }
.trend-scroll { --trend-height: 115px; display: flex; align-items: start; gap: 5px; overflow-x: auto; padding: 8px 14px 16px; }
.trend-scale { height: var(--trend-height); flex: 0 0 40px; position: sticky; inset-inline-start: 0; background: white; z-index: 1; display: flex; flex-direction: column; justify-content: space-between; text-align: end; padding-inline-end: 4px; font-size: 9px; color: var(--muted); }
.trend-chart { flex: 1; min-width: max-content; display: grid; grid-auto-flow: column; grid-auto-columns: minmax(30px, 1fr); column-gap: 3px; align-items: end; position: relative; }
.trend-chart::before { position: absolute; inset: 0 0 auto; height: var(--trend-height); content: ""; background: repeating-linear-gradient(to bottom, var(--line) 0 1px, transparent 1px 25%); pointer-events: none; border-bottom: 1px solid var(--line); }
.trend-point { min-height: calc(var(--trend-height) + 23px); display: flex; position: relative; flex-direction: column; justify-content: end; align-items: center; text-align: center; padding: 0 2px; font-size: 9px; line-height: 1.2; }
.trend-point i { display: block; min-block-size: 1px; inline-size: 66%; position: absolute; inset: auto auto 23px;
  block-size: calc(var(--trend-height) * var(--fraction, 0)); background: #528a7b; border-radius: 3px 3px 0 0; }
.trend-point small { min-height: 18px; display: grid; place-items: center; margin-top: 4px; color: var(--muted); white-space: nowrap; }
.trend-point.is-selected i, .trend-point:hover i, .trend-point:focus-visible i { background: #124f43; }
.trend-point.is-selected small { font-weight: 800; color: var(--primary-dark); }
.trend-point.is-missing i { background: transparent; border-top: 2px dashed #819888; min-height: 0; }
@media (max-width: 700px) {
  .analysis-audit { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .analysis-metric strong { font-size: 20px; }
  .analysis-metric .amount { white-space: normal; overflow-wrap: anywhere; }
}

.dividend-metrics { margin-block: 0 13px; }
.dividend-metric .tile-icon { background: #e8f1f4; color: #356778; }
.dividend-metric:hover { border-color: #a7c4b5; }
.dividend-notice { display: flex; align-items: center; gap: 8px 14px; flex-wrap: wrap; margin-block: 0 13px; padding: 10px 14px; border: 1px solid #eddcb9; border-radius: 9px; background: #fffaf0; color: #76591e; font-size: 11.5px; }
.dividend-tabs { display: flex; gap: 7px; overflow-x: auto; margin-block: 0 12px; padding: 0 3px; }
.dividend-tabs a { display: inline-flex; justify-content: center; align-items: center; min-height: 37px; padding: 6px 12px; border: 1px solid var(--line); border-radius: 7px; background: white; color: var(--muted); font-size: 11.5px; white-space: nowrap; }
.dividend-tabs a:hover, .dividend-tabs a[aria-current] { border-color: #a7c4b5; background: #eaf4ec; color: var(--primary-dark); }
.dividend-tabs a[aria-current] { font-weight: 760; }
.dividend-layout { display: grid; grid-template-columns: minmax(310px, .95fr) minmax(0, 1.05fr); gap: 14px; align-items: start; margin-block-end: 14px; }
.dividend-calendar-panel, .dividend-focus { min-width: 0; overflow: hidden; }
.dividend-month-head { display: flex; align-items: center; justify-content: space-between; gap: 7px; padding: 12px 14px; }
.dividend-month-head h2 { margin: 0; font-size: 14px; }
.dividend-month-head .button { gap: 5px; min-height: 31px; }
.dividend-calendar { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 4px; padding: 0 11px 11px; }
.dividend-weekday { display: grid; place-items: center; min-height: 28px; color: var(--muted); font-size: 10px; font-weight: 680; }
.dividend-weekday abbr { display: none; text-decoration: none; }
.dividend-day { display: flex; min-width: 0; min-height: 48px; flex-direction: column; align-items: center; gap: 3px; padding: 5px 2px 3px; border: 1px solid transparent; border-radius: 7px; color: var(--ink); text-align: center; }
.dividend-day:hover { border-color: #a8c9b4; background: #f1f7f2; }
.dividend-day.is-outside { color: #9aa8a2; }
.dividend-day.is-today { border-color: #3f816d; font-weight: 800; }
.dividend-day.is-selected { background: #e2f0e6; box-shadow: inset 0 0 0 1px #4a8b71; }
.dividend-day-number { font-size: 12px; line-height: 1.4; }
.dividend-day-count { display: flex; align-items: center; justify-content: center; gap: 2px; color: #1f684a; font-size: 8.5px; line-height: 1.2; white-space: nowrap; }
.dividend-day-count i { display: inline-block; width: 5px; height: 5px; border-radius: 50%; background: #378460; }
.dividend-calendar-foot { display: flex; justify-content: space-between; align-items: center; gap: 6px; padding: 9px 14px; border-top: 1px solid var(--line); color: var(--muted); font-size: 10.5px; }
.dividend-focus .table-scroll { padding-inline: 4px; }
.dividend-upcoming-table { min-width: 0; }
.dividend-upcoming-table td { vertical-align: top; }
.dividend-upcoming-table th { white-space: nowrap; }
.dividend-upcoming-table td strong { overflow-wrap: anywhere; font-size: 11.5px; }
.dividend-upcoming-table .row-note, .dividend-upcoming-amount > span:not(.muted) { display: block; color: var(--muted); font-size: 10px; }
.dividend-upcoming-amount { white-space: nowrap; }
.dividend-upcoming-date { color: var(--primary-dark); font-weight: 700; }
.dividend-focus .bottom-note { margin-inline: 14px; }
.dividend-table-panel { overflow: hidden; }
.disclosure-filters { display: flex; align-items: end; gap: 8px; flex-wrap: wrap; width: 100%; }
.disclosure-filters > label { display: grid; flex: 1 1 145px; gap: 3px; font-size: 11px; font-weight: 650; }
.disclosure-filters button { min-height: 39px; }
.disclosure-report { display: grid; justify-items: start; gap: 10px; padding: 0 16px 16px; }
.disclosure-report h3 { margin: 0; }
.disclosure-note { margin: 0; padding: 0 16px 12px; color: var(--muted); }
.disclosure-active { background: var(--wash); }
.disclosure-table th { white-space: nowrap; }
.disclosure-table td { vertical-align: top; }
.two-col .disclosure-table { min-width: 365px; }
.dividend-table { min-width: 1050px; }
.dividend-table th { white-space: nowrap; }
.dividend-table td { vertical-align: top; }
.dividend-company { display: block; max-width: 24ch; overflow-wrap: anywhere; }
.dividend-table .badge { white-space: normal; }
.dividend-table .row-note { max-width: 30ch; }
.dividend-source-details { margin-top: 7px; min-width: 190px; color: var(--muted); font-size: 10.5px; }
.dividend-source-details summary { color: var(--primary-dark); cursor: pointer; font-weight: 680; }
.dividend-source-body { display: grid; gap: 8px; padding: 8px; background: #f8faf8; border: 1px solid var(--line); border-radius: 7px; overflow-wrap: anywhere; }
.dividend-resolution-details { display: grid; gap: 5px; padding: 8px; background: #eef4f0; border: 1px solid var(--line); border-radius: 6px; }
.dividend-resolution-details p { margin: 0; }
.dividend-evidence-quote { margin: 0; padding: 7px 9px; border-inline-start: 3px solid #76aa8e; background: #edf5ef; color: var(--ink); white-space: pre-wrap; }
@media (max-width: 950px) { .dividend-layout { grid-template-columns: 1fr; } .dividend-day { min-height: 44px; } }
@media (max-width: 570px) {
  .dividend-notice { align-items: start; }
  .dividend-calendar { gap: 2px; padding-inline: 7px; }
  .dividend-weekday { font-size: 9px; }
  .dividend-weekday span { display: none; }
  .dividend-weekday abbr { display: inline; }
  .dividend-day { min-height: 39px; padding-top: 4px; }
  .dividend-day-number { font-size: 11px; }
  .dividend-day-count { font-size: 7.5px; }
  .dividend-day-count i { width: 4px; height: 4px; }
  .dividend-month-head { padding-inline: 8px; }
  .dividend-calendar-foot { align-items: start; flex-direction: column; }
  .disclosure-filters { display: grid; grid-template-columns: 1fr 1fr; }
  .disclosure-filters > label { min-width: 0; }
  .disclosure-filters button { grid-column: 1 / -1; }
  .dividend-source-details { min-width: 0; }
}

/* Authentication and user management */
.auth-body { min-height: 100vh; display: grid; place-items: center; padding: 20px 16px; background: var(--canvas); }
.auth-card { width: min(100%, 420px); padding: 26px 24px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); }
.auth-brand { display: flex; align-items: center; gap: 10px; margin-bottom: 18px; color: var(--nav); }
.auth-brand strong { display: block; font-size: 22px; line-height: 1.1; font-weight: 800; }
.auth-brand small { color: var(--muted); font-size: 11px; }
.auth-tabs { margin-bottom: 14px; }
.auth-tabs button { flex: 1; padding: 9px; background: none; border: 0; border-bottom: 2px solid transparent; font-weight: 650; color: var(--muted); }
.auth-tabs button[aria-selected=true] { color: var(--primary); border-bottom-color: var(--primary); }
.auth-form { display: grid; gap: 13px; }
.auth-form label { display: grid; gap: 5px; font-size: 12px; font-weight: 650; }
.auth-form small { font-weight: 400; font-size: 11px; }
.auth-form .button { min-height: 41px; justify-content: center; }
.auth-row { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.auth-message { margin-bottom: 12px; padding: 9px 12px; border-radius: 8px; background: #fbeae5; color: #963f37; font-size: 12px; }
.auth-message--wait { background: #fff2d9; color: #825513; }
.auth-message--ok { background: #e3f3e9; color: #1b6748; }
.user-actions { display: flex; gap: 6px; flex-wrap: wrap; }
.user-filters { display: flex; gap: 6px; flex-wrap: wrap; padding: 0 17px 12px; }
.logout-button { margin-top: 8px; width: 100%; justify-content: center; background: transparent; color: var(--nav-text); border-color: #446056; }
.logout-button:hover { background: #22443d; }
@media (max-width: 480px) { .auth-row { grid-template-columns: 1fr; } }
