@font-face {
  font-family: Vazirmatn;
  src: url('/static/Vazirmatn-Variable.woff2') format('woff2');
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
}

:root {
  --canvas: #f4f6f3;
  --surface: #ffffff;
  --ink: #142c28;
  --muted: #51645f;
  --brand: #126350;
  --deep: #0d3029;
  --brand-hover: #094f40;
  --soft: #e4f2eb;
  --line: #d6e1da;
  --input-line: #8b9d95;
  --inverse-muted: #bfd7cf;
  --active: #234b40;
  --accent: #d9efb2;
  --danger: #a13136;
  --danger-soft: #fbe9ea;
  --warning: #fff0cb;
  --warning-ink: #684800;
  --focus: #147c65;
  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-6: 24px;
  --space-8: 32px;
  --radius-control: 8px;
  --radius-panel: 16px;
  --radius-feature: 24px;
  --nav-width: 228px;
  --header-height: 72px;
  font: 14px/1.8 Vazirmatn, Tahoma, sans-serif;
  color: var(--ink);
  background: var(--canvas);
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
body { margin: 0; }
h1, h2, h3 { line-height: 1.45; margin: 0 0 var(--space-3); }
h1 { font-size: clamp(26px, 4vw, 38px); font-weight: 850; }
h2 { font-size: 21px; font-weight: 780; }
h3 { font-size: 17px; font-weight: 740; }
p { margin: 0 0 var(--space-3); }
a { color: var(--brand); text-decoration: none; }
a:hover:not(.cta) { color: var(--brand-hover); }
:focus-visible { outline: 2px solid var(--focus); outline-offset: 3px; }
.row { display: flex; align-items: center; flex-wrap: wrap; gap: var(--space-2); }
.muted { color: var(--muted); }
.label, .current { color: var(--brand); font-weight: 750; }
pre { font: inherit; white-space: pre-wrap; overflow-wrap: anywhere; }
audio { width: 100%; }
details { margin: var(--space-3) 0; }
summary { cursor: pointer; font-weight: 700; }
summary:focus-visible { border-radius: var(--radius-control); }

button, .cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  min-height: 34px;
  padding: 4px 12px;
  border: 1px solid transparent;
  border-radius: var(--radius-control);
  background: var(--brand);
  color: var(--surface);
  font: inherit;
  font-weight: 680;
  text-decoration: none;
  cursor: pointer;
}
button:hover, .cta:hover { background: var(--brand-hover); }
button.secondary, .cta.outline { color: var(--brand); background: var(--surface); border-color: var(--line); }
button.secondary:hover, .cta.outline:hover { background: var(--soft); border-color: var(--input-line); }
button.danger { background: var(--danger); }
button.danger:hover { background: #82262b; }
button:disabled { opacity: .62; cursor: not-allowed; }

form { display: grid; gap: var(--space-3); margin: var(--space-3) 0; }
label { display: grid; gap: var(--space-1); font-weight: 600; }
label input, label select, label textarea { font-weight: 400; }
input, textarea, select {
  width: 100%;
  min-height: 44px;
  padding: 8px 12px;
  border: 1px solid var(--input-line);
  border-radius: var(--radius-control);
  background: var(--surface);
  color: var(--ink);
  font: inherit;
}
input:focus, select:focus, textarea:focus { border-color: var(--focus); }
input[type="checkbox"] { width: 18px; height: 18px; min-height: auto; accent-color: var(--brand); }
textarea { min-height: 104px; resize: vertical; }
#minutes textarea { min-height: 230px; }
.member { display: inline-flex; flex-direction: row; align-items: center; gap: var(--space-2); min-height: 40px; margin-inline-end: var(--space-4); }
.panel, article {
  min-width: 0;
  padding: var(--space-6);
  margin-bottom: var(--space-4);
  border: 1px solid var(--line);
  border-radius: var(--radius-panel);
  background: var(--surface);
  overflow-wrap: anywhere;
}
.panel article { margin-bottom: var(--space-2); padding: var(--space-4); border-radius: var(--radius-control); }
.panel article:last-child { margin-bottom: 0; }
.panel h2 + form, details[open] > summary + form { margin-top: var(--space-4); }
#message {
  position: sticky;
  top: 8px;
  z-index: 7;
  padding: 10px 14px;
  border-inline-start: 3px solid var(--brand);
  border-radius: var(--radius-control);
  background: var(--soft);
  overflow-wrap: anywhere;
}

body > header {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  min-height: var(--header-height);
  padding: 10px clamp(14px, 3vw, 40px);
  border-bottom: 1px solid var(--line);
  background: var(--surface);
}
#user { margin-inline-start: auto; color: var(--muted); font-size: 13px; }
#logout, #menu-toggle { color: var(--brand); background: var(--surface); border-color: var(--line); }
#logout:hover, #menu-toggle:hover { background: var(--soft); }
.brand, .public-brand {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  padding: 0;
  background: transparent;
  color: var(--ink);
  text-align: start;
  text-decoration: none;
}
.brand:hover { background: transparent; }
.brand img, .public-brand img { width: 42px; height: 42px; }
.brand strong, .brand small { display: block; }
.brand strong, .public-brand { font-size: 23px; font-weight: 850; line-height: 1.25; }
.brand small { font-size: 11px; color: var(--muted); font-weight: 500; }
.workspace { display: grid; grid-template-columns: var(--nav-width) minmax(0, 1fr); min-height: calc(100dvh - var(--header-height)); }
.workspace main { width: 100%; max-width: 1280px; min-width: 0; margin: 0 auto; padding: 34px clamp(16px, 4vw, 52px); }
#menu-toggle { display: none; }

.page-heading { display: flex; justify-content: space-between; align-items: center; gap: var(--space-3); margin-bottom: var(--space-6); }
.page-heading h1 { margin: 0; }
.tab-bar {
  display: flex;
  gap: var(--space-1);
  overflow-x: auto;
  margin-bottom: var(--space-4);
  padding: 4px 5px;
  border-bottom: 1px solid var(--line);
  scrollbar-width: thin;
}
.tab-bar button { flex: 0 0 auto; white-space: nowrap; color: var(--muted); background: transparent; border-bottom: 2px solid transparent; }
.tab-bar button:hover { background: var(--surface); color: var(--brand); }
.tab-bar button[aria-selected="true"] { color: var(--brand); background: var(--soft); border-bottom-color: var(--brand); }
.meeting-search { max-width: 390px; margin-bottom: var(--space-4); }
.meeting-list .meeting-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: var(--space-1) var(--space-4); }
.meeting-row a { font-weight: 780; font-size: 17px; }
.meeting-row .muted { grid-column: 1; font-size: 13px; }
.meeting-row .state-pill { grid-column: 2; grid-row: 1 / 3; }
.meeting-counts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); margin-bottom: var(--space-6); border: 1px solid var(--line); border-radius: var(--radius-control); background: var(--canvas); }
.meeting-counts div { display: grid; gap: var(--space-1); padding: 12px 16px; }
.meeting-counts div + div { border-inline-start: 1px solid var(--line); }
.meeting-counts span { font-size: 13px; color: var(--muted); }
.meeting-counts strong { font-size: 27px; line-height: 1.2; font-variant-numeric: tabular-nums; color: var(--brand); }
.empty { padding: var(--space-6); border: 1px dashed var(--input-line); border-radius: var(--radius-control); background: var(--canvas); }
.empty p { margin: var(--space-1) 0 0; color: var(--muted); }
.workflow { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: var(--space-3); margin-bottom: var(--space-4); padding: 12px 15px; border-inline-start: 3px solid var(--brand); border-radius: var(--radius-control); background: var(--soft); }
.state-pill { display: inline-flex; align-items: center; width: fit-content; min-height: 25px; padding: 2px 10px; border-radius: 999px; background: var(--canvas); color: var(--muted); font-size: 12px; font-weight: 700; }
.state-pill[data-state="live"], .state-pill[data-state="published"], .state-pill[data-state="approved"] { color: var(--brand); background: var(--soft); }
.state-pill[data-state="review"], .state-pill[data-state="open"], .state-pill[data-state="deferred"] { color: var(--warning-ink); background: var(--warning); }
.state-pill[data-state="cancelled"], .state-pill[data-state="rejected"] { color: var(--danger); background: var(--danger-soft); }
.segments { max-height: 430px; overflow: auto; }
.segments details { padding: var(--space-2) var(--space-3); border: 1px solid var(--line); border-radius: var(--radius-control); }

.signed-out header { display: none; }
.signed-out .workspace { display: block; }
.signed-out .workspace main { max-width: 1340px; padding: 0 var(--space-6); }
.signed-out #message { max-width: 900px; margin: var(--space-3) auto; }
.landing { max-width: 1210px; margin: auto; padding-block-end: 12px; }
.public-nav { display: flex; align-items: center; gap: clamp(14px,3vw,34px); min-height: 74px; border-bottom: 1px solid var(--line); }
.public-nav .public-features { color: var(--ink); text-decoration: none; font-size: .92rem; }
.public-login { margin-inline-start: auto; }
.hero { display: grid; grid-template-columns: 1fr minmax(0,.9fr); align-items: center; gap: clamp(24px,5vw,78px); margin-block: 26px 58px; padding: clamp(22px,4.8vw,63px); border-radius: 28px; color: #f8fcf8; background: radial-gradient(ellipse at 16% 16%,#27584e,#0b2d29 61%); overflow: hidden; }
.hero-copy { min-width: 0; }
.hero-copy .hero-kicker { font-size: .92rem; color: #c9e9b0; font-weight: 730; margin-bottom: 11px; }
.hero-copy h1 { font-size: clamp(25px,3.1vw,37px); font-weight: 850; line-height: 1.2; margin: 0 0 21px; letter-spacing: -.028em; }
.hero-copy h1 em { color: #c9e9b0; font-style: normal; }
.hero-copy > p:not(.hero-kicker) { font-size: clamp(15px,1.4vw,17px); line-height: 1.9; max-width: 44ch; color: #d2e5de; }
.hero-actions { margin-block-start: 25px; gap: 14px 20px; }
.hero-actions .cta { color: #173829; background: #d6efb9; padding-inline: 16px; min-height: 46px; }
.hero-actions .cta:hover { background: #e5f7d0; }
.hero-actions > a:not(.cta) { color: #e1f3eb; }
.hero-portrait { margin: 0; border-radius: 19px; overflow: hidden; border: 1px solid #a2c8b35c; background: #abc3b1; box-shadow: 0 18px 40px #061b1780; position: relative; }
.hero-portrait img { display: block; width: 100%; height: auto; }
.hero-portrait figcaption { position: absolute; inset-inline-start: 11px; bottom: 10px; display: grid; gap: 1px; padding: 5px 9px; border-radius: 8px; background: #f1f8ed; color: #183d32; line-height: 1.45; }
.hero-portrait figcaption span { font-size: .74rem; color: #36594a; }
.features { scroll-margin-top: 18px; padding-bottom: 36px; }
.feature-heading h2,.landing-next h2 { font-size: clamp(20px,2.4vw,26px); margin-bottom: 5px; }
.feature-heading p { color: var(--muted); }
.feature-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); margin-block-start: 21px; border-block: 1px solid var(--line); }
.feature-grid article { background: transparent; border: 0; border-radius: 0; padding: 20px clamp(12px,2.2vw,28px); margin: 0; }
.feature-grid article + article { border-inline-start: 1px solid var(--line); }
.feature-grid h3 { font-size: 19px; margin: 2px 0 6px; }
.feature-grid p { margin: 0; color: var(--muted); font-size: .94rem; }
.feature-icon { width: 37px; height: 37px; display: grid; place-items: center; background: var(--soft); color: var(--brand); border-radius: 9px; margin-bottom: 10px; }
.feature-stage { color: var(--brand); font-size: .82rem; font-weight: 730; }
.landing-next { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 14px; background: #e4efe6; border-radius: 15px; padding: clamp(14px,3vw,24px); margin-bottom: 24px; }
.landing-next h2 { margin: 0; font-size: clamp(20px,2.5vw,27px); }
.landing footer { display: flex; justify-content: space-between; align-items: center; gap: 8px; padding: 13px 0; border-top: 1px solid var(--line); color: var(--muted); font-size: .86rem; }
.landing footer .public-brand { font-size: 18px; }
.landing footer img { width: 29px; height: 29px; }
@media(max-width: 760px) {
 .landing .hero { grid-template-columns: 1fr; margin-block: 16px 30px; gap: 20px; border-radius: 19px; }
 .landing .hero-copy h1 { font-size: clamp(24px,6vw,30px); }
 .hero-portrait { max-width: 500px; width: 100%; justify-self: center; }
 .landing .feature-grid { grid-template-columns: 1fr; }
 .feature-grid article + article { border-inline-start: 0; border-block-start: 1px solid var(--line); }
 .public-nav .public-login { padding-inline: 10px; font-size: .86rem; }
}

@media (max-width: 760px) {
  .workspace { display: block; }
  .workspace main { padding: 20px 14px; }
  body > header { position: relative; z-index: 11; }
  .hero, .feature-grid { grid-template-columns: 1fr; }
  .signed-out .workspace main { padding: 0 14px; }
  .panel { padding: var(--space-4); }
}
@media (max-width: 520px) {
  .brand small, #user { display: none; }
  #menu-toggle { margin-inline-start: auto; }
  .meeting-counts div { padding: 8px; }
  .meeting-counts span { font-size: 11px; }
  .meeting-list .meeting-row { grid-template-columns: 1fr; }
  .meeting-row .state-pill { grid-column: 1; grid-row: auto; }
}
@media print {
  body { background: white; }
  header, #sidebar, .workflow, .tab-bar, button, form, summary, #message, main > div > p, section:not(:has(pre)) { display: none !important; }
  .workspace { display: block; }
  .workspace main { max-width: none; padding: 0; }
  .panel { border: 0; padding: 0; }
}

.schedule-fields { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: var(--space-3); margin-bottom: var(--space-4); }
.calendar-row { display: grid; grid-template-columns: minmax(132px,auto) 1fr minmax(100px,auto); align-items: center; gap: var(--space-3); }
.action-board { display: grid; grid-template-columns: repeat(5,minmax(200px,1fr)); gap: var(--space-3); overflow-x: auto; padding: 5px; }
.action-board > section { background: var(--canvas); border: 1px solid var(--line); padding: var(--space-3); border-radius: var(--radius-control); }
.action-board form { margin-bottom: 0; }
#doc-preview pre { max-height: 360px; overflow: auto; padding: var(--space-4); border: 1px solid var(--line); border-radius: var(--radius-control); }
@media(max-width: 650px){ .schedule-fields,.calendar-row { grid-template-columns: 1fr; } }

.desk-intro { padding: 20px 24px; background: var(--deep); color: var(--surface); border-radius: var(--radius-control); margin-bottom: var(--space-4); }
.desk-intro p { color: var(--inverse-muted); margin: 0; }
.desk-grid { display: grid; grid-template-columns: 1.12fr 1fr; gap: var(--space-4); }
.desk-grid > section { min-width: 0; border: 1px solid var(--line); padding: var(--space-4); border-radius: var(--radius-control); background: var(--canvas); }
.desk-grid .page-heading { margin-bottom: var(--space-3); }
.desk-grid h3 { margin: 0; }
@media(max-width: 700px) { .desk-grid { grid-template-columns: 1fr; } }

.official-signatures { margin-top: var(--space-6); padding-top: var(--space-4); border-top: 1px solid var(--line); }
.official-signatures bdi { overflow-wrap: anywhere; }
@media print { section.official-signatures { display: block !important; } }

#video-tiles { display: grid; grid-template-columns: repeat(auto-fit,minmax(180px,1fr)); gap: var(--space-3); margin-top: var(--space-4); }
#video-tiles figure { margin: 0; min-width: 0; background: var(--deep); color: var(--surface); border-radius: var(--radius-control); overflow: hidden; }
#video-tiles video { width: 100%; aspect-ratio: 16/9; display: block; object-fit: contain; }
#video-tiles figcaption { padding: var(--space-2) var(--space-3); overflow-wrap: anywhere; }

.library-form { display:grid; gap: .85rem; margin-block: 1rem }
.library-fields { display:grid; grid-template-columns:repeat(auto-fit,minmax(min(100%,11rem),1fr));gap:.75rem }
.library-form textarea { min-height:4.5rem }
#library-items { margin-block-start:1rem }

body:not(.signed-out) { --nav-width: 256px; --header-height: 64px; background: #f2f5f7; }
body:not(.signed-out) > header { position: sticky; top: 0; z-index: 11; }
body:not(.signed-out) .brand img { width: 34px; height: 34px; }
body:not(.signed-out) .brand strong { font-size: 19px; }
body:not(.signed-out) .workspace main { max-width: 1540px; padding: 24px clamp(18px,3vw,42px); }
.nav-label { font-weight: inherit; }
.workspace-tabs { display: none; }
.workspace h1 { font-size: clamp(20px,2.4vw,26px); }
.workspace-desk.panel,.composer.panel { background: transparent; padding: 0; border: none; box-shadow: none; }
.workspace-desk .desk-intro { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 14px; background: #17483e; color: #fff; border-radius: 14px; padding: 22px 26px; margin: 0 0 22px; }
.workspace-desk .desk-intro h2 { margin: 0 0 3px; font-size: clamp(19px,2.2vw,24px); }
.workspace-desk .desk-intro p { color: #d9ece4; margin: 0; }
.workspace-desk .desk-intro > span { padding: 7px 12px; border: 1px solid #7aa394; border-radius: 8px; font-size: .87rem; }
.desk-section { margin: 17px 0 12px; font-size: 17px; }
.workspace-desk .desk-grid { grid-template-columns: repeat(3,minmax(0,1fr)); gap: 14px; }
.workspace-desk .desk-grid > section,.desk-alert,.composer-card,.composer-footer { background: #fff; border: 1px solid #dce6e8; padding: 15px; border-radius: 12px; box-shadow: 0 2px 5px #173e4610; }
.workspace-desk .desk-grid > section { min-height: 145px; }
.workspace-desk .desk-grid .page-heading,.composer-card .page-heading { flex-wrap: wrap; gap: 4px 10px; }
.workspace-desk .desk-grid h3 { font-size: 15px; }
.workspace-desk .desk-grid a { font-size: 13px; }
.desk-alert { margin-block-start: 14px; }
.desk-alert p { margin: 0; }
.desk-metrics { display: grid; gap: 14px; grid-template-columns: repeat(4,minmax(0,1fr)); }
.desk-stat { display: grid; grid-template-columns: 1fr auto; gap: 11px; padding: 15px 16px; border-radius: 12px; text-decoration: none; color: #fff; background: #246358; min-height: 108px; }
.desk-stat:hover { filter: brightness(.92); }
.desk-stat strong { font-size: 26px; line-height: 1.2; }
.desk-stat small { grid-column: 1 / -1; font-size: .87rem; }
.tone-1 { background: #38518a; } .tone-2 { background: #634d81; } .tone-3 { background: #805134; }
.composer-grid { display: grid; grid-template-columns: minmax(0,1.15fr) minmax(0,1fr); gap: 16px; align-items: start; }
.composer-card { display: grid; gap: 9px; padding: clamp(14px,2.1vw,24px); }
.composer-card h2 { margin: 0; font-size: 18px; }
.composer-card .page-heading { margin: 0; }
.composer-footer { grid-column: 1 / -1; display: flex; justify-content: flex-end; align-items: center; gap: 16px; }
.contact-toolbar { display: grid; grid-template-columns: repeat(auto-fit,minmax(min(100%,180px),1fr)); gap: 12px; }
.composer-card .schedule-fields { grid-template-columns: repeat(auto-fit,minmax(min(100%,150px),1fr)); }
.selected-count { background: #e5f2ed; border-radius: 8px; color: #17483e; font-size: .88rem; padding: 7px 11px; margin: 0; }
.participant-list { max-height: 310px; overflow: auto; border: 1px solid #dce6e8; border-radius: 9px; padding: 7px 10px; }
.participant-list h3 { font-size: 12px; color: #496267; margin: 8px 2px 4px; }
.contact-row,.participant { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin: 0; padding: 8px 6px; border-bottom: 1px solid #e5ecee; }
.participant { justify-content: flex-start; }
.participant:has(input:checked) { background: #edf7f3; }
.contact-row small,.participant small { display: block; color: #4a6267; overflow-wrap: anywhere; }
#contact-results h2 { margin: 16px 0 4px; }
.contact-dialog { width: min(480px,calc(100% - 24px)); max-height: calc(100dvh - 24px); border: 1px solid #cfdfdf; color: var(--ink); border-radius: 15px; padding: 20px; box-shadow: 0 15px 60px #041f3460; }
.contact-dialog::backdrop { background: #102a3d88; }
.contact-dialog .page-heading { margin: 0; }
.contact-dialog h2 { margin: 0; }
#contact-error { color: var(--danger); }
@media(max-width:980px) { .composer-grid { grid-template-columns: 1fr; } }
@media(max-width:760px) {
  body:not(.signed-out) .workspace main { padding: 16px 12px; }
  .workspace-desk .desk-grid { grid-template-columns: 1fr; }
  .workspace-desk .desk-grid > section { min-height: 0; }
  .desk-metrics { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 8px; }
  .desk-stat { padding: 10px; min-height: 85px; }
  #user { max-width: 32vw; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
}

.speech-interim { background: var(--soft); border-inline-start: 3px solid var(--brand); padding: 8px 12px; color: var(--ink); }
.speech-alert { background: var(--warning); color: var(--warning-ink); padding: 8px 12px; border-radius: var(--radius-control); }

.participant-row,.participant-head { display:grid; grid-template-columns:minmax(0,1fr) 64px; align-items:center; }
.participant-head { font-size:11px; color:var(--muted); padding:0 6px; }
.participant-head span:last-child,.participant-vote { text-align:center; justify-self:center; }
.participant-row { border-bottom:1px solid var(--line); }
.participant-row .participant { border-bottom:0; min-width:0; }
.participant-vote { margin:0; }
.plan-voters { border:1px solid var(--line); border-radius:8px; padding:8px 12px; }
.auto-dictation { margin-block-start:12px; }
.capture-panel { display:flex; flex-wrap:wrap; justify-content:space-between; align-items:center; gap:10px; background:#f4f7f5; border:1px solid var(--line); padding:12px; border-radius:10px; margin-block:10px; }
.capture-panel p { margin:5px 0 0; }
.capture-badge { display:inline-flex; align-items:center; gap:6px; color:var(--muted); font-size:12px; background:#eef1ef; border-radius:999px; padding:3px 8px; }
.capture-badge::before { content:""; background:currentColor; width:7px; height:7px; border-radius:50%; }
.capture-badge[data-capture=recording] { background:#ffe9e8; color:#a32336; }
.capture-badge[data-capture=recording]::before { animation:capture-pulse 1.6s ease-out infinite; }
.capture-badge[data-capture=offline],.capture-badge[data-capture=pending],.capture-badge[data-capture=stalled] { background:#fff0cf; color:#74470b; }
.capture-badge[data-capture=archived] { background:#e0f0e7; color:#145941; }
.capture-badge[data-capture=interrupted] { background:#a32336; color:#fff; }
@keyframes capture-pulse { 50% { opacity:.45; } }
@media(prefers-reduced-motion:reduce) { .capture-badge::before { animation:none!important; } }
.audio-evidence-row .evidence-text { margin-block: .45rem; white-space: pre-wrap; }
.audio-evidence-row audio { margin-block-start: .5rem; max-width: 440px; }

/* Calendar, action board, reports and directory */
.workspace-surface.panel { background: transparent; border: 0; box-shadow: none; padding: 0; }
.view-toolbar,.report-filters { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 12px 16px; margin: 0 0 12px; }
.view-toolbar { display: flex; flex-wrap: wrap; align-items: end; justify-content: flex-start; gap: 12px; }
.view-toolbar > label,.view-toolbar > .jalali-field { flex: 0 1 220px; min-width: 145px; }
.view-toolbar > label:has(input[type=search]) { flex: 1 1 230px; }
.view-toolbar > label.task-mine { display: inline-flex; flex: 0 0 auto; align-items: center; min-height: 44px; }
.calendar-nav,.calendar-modes,.jalali-input,.contact-person,.table-pager { display: flex; align-items: center; gap: 7px; }
.calendar-nav strong { padding-inline: 6px; }
.calendar-modes { margin-inline-start: auto; }
.calendar-modes button[aria-pressed=true],.report-presets button[aria-pressed=true] { background: var(--soft); color: var(--brand-hover); border-color: var(--brand); }
.jalali-field { position: relative; display: grid; gap: 6px; }
.jalali-field label { min-width: 0; }
.jalali-input { gap: 0; width: 100%; }
.jalali-input input { min-width: 0; direction: ltr; text-align: right; border-radius: 0 var(--radius-control) var(--radius-control) 0; }
.jalali-input button { border-radius: var(--radius-control) 0 0 var(--radius-control); min-width: 42px; border-inline-start: 0; }
.jalali-pop { position: absolute; z-index: 8; top: calc(100% + 5px); inset-inline-start: 0; width: min(288px,calc(100vw - 42px)); background: white; border: 1px solid var(--line); border-radius: 13px; padding: 10px; box-shadow: 0 8px 27px #173e462b; }
.jalali-pop .calendar-nav { justify-content: space-between; }
.jalali-pop button { min-height: 32px; padding: 1px 8px; background: transparent; border-color: transparent; color: var(--ink); }
.jalali-pop button:hover { background: var(--soft); }
.picker-grid { display: grid; grid-template-columns: repeat(7,minmax(0,1fr)); gap: 3px; text-align: center; padding: 6px 0; }
.picker-grid > span { font-size: .78rem; color: var(--muted); }
.picker-grid button[aria-current=date],.month-cell button[aria-current=date] { border-color: var(--brand); }
.picker-grid button[aria-pressed=true] { background: var(--brand); color: #fff; }
.calendar-scroll,.table-scroll { overflow: auto; border: 1px solid var(--line); border-radius: 12px; background: white; }
.timeline { max-height: 61vh; min-height: 310px; }
.timeline table,.workspace-table { border-collapse: separate; border-spacing: 0; width: 100%; }
.timeline table { table-layout: fixed; min-width: 780px; }
.timeline table:has(thead th:nth-child(2):last-child) { min-width: 330px; }
.timeline th,.timeline td { border-inline-end: 1px solid #e2e9e6; border-block-end: 1px solid #e2e9e6; padding: 5px; vertical-align: top; }
.timeline thead { position: sticky; top: 0; background: white; z-index: 1; }
.timeline td { height: 40px; }
.timeline th:first-child { width: 62px; font-size: .8rem; color: var(--muted); }
.timeline th button { width: 100%; padding: 3px; font-size: .8rem; min-height: 32px; border: 0; background: transparent; }
.calendar-today { background: #f0f8f5; }
.calendar-event { display: block; margin: 3px 0; padding: 5px 7px; border-radius: 6px; font-size: .81rem; line-height: 1.55; background: #e6f3ef; color: #184a40; border-inline-start: 3px solid #3d8d7a; text-decoration: none; overflow-wrap: anywhere; }
.calendar-event:hover { background: #d5ebe3; }
.calendar-event[data-meeting-state=live] { background: #fff0cb; border-color: #ab7200; }
.calendar-event[data-meeting-state=review] { background: #eee8f7; border-color: #735593; }
.calendar-event[data-meeting-state=cancelled] { background: #f4eeee; color: var(--muted); border-color: #a98989; }
.calendar-event small { display: block; }
.month-grid { display: grid; grid-template-columns: repeat(7,minmax(0,1fr)); min-width: 660px; }
.month-grid > * { border-inline-end: 1px solid #e2e9e6; border-block-end: 1px solid #e2e9e6; padding: 7px; }
.month-grid > strong { text-align: center; font-size: .8rem; }
.month-cell,.month-outside { min-height: 92px; }
.month-cell > button { min-height: 29px; padding: 1px 8px; }
.month-outside { background: #f5f7f7; }
.calendar-agenda,.calendar-empty { background: white; border: 1px solid var(--line); border-radius: 12px; padding: 12px 16px; margin-bottom: 10px; }
.action-lanes { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 12px; }
.action-lane { background: #f6f8f8; border: 1px solid var(--line); border-radius: 14px; min-width: 0; }
.action-lane > header { display: flex; align-items: center; justify-content: space-between; padding: 12px 14px; border-block-end: 1px solid var(--line); }
.action-lane h2 { font-size: 15px; margin: 0; display: flex; gap: 7px; align-items: center; }
.action-lane h2::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: #71827e; }
.action-lane[data-tone=running] h2::before { background: #385c96; }
.action-lane[data-tone=closed] h2::before { background: #1c836b; }
.action-lane header > span { background: white; padding: 1px 9px; border-radius: 20px; border: 1px solid var(--line); }
.lane-cards { padding: 10px; min-height: 275px; max-height: 65vh; overflow: auto; }
.panel .action-ticket { border-inline-start: 3px solid #4f827d; padding: 12px; }
.panel .action-ticket[data-overdue=true] { border-inline-start-color: #b16c17; }
.action-ticket small { display: block; color: var(--muted); margin-block: 6px; }
.action-ticket > details { margin-block-end: 0; font-size: .86rem; }
.deadline { color: var(--muted); font-size: .83em; }
[data-overdue=true] .deadline { color: #825117; background: #fff0d9; padding: 1px 7px; border-radius: 7px; }
.lane-empty { text-align: center; color: var(--muted); margin: 35px 0; }
.report-filters .view-toolbar { border: 0; padding: 0; margin: 0; }
.report-range h2 { margin: 18px 0 4px; }
.report-metrics { grid-template-columns: repeat(3,minmax(0,1fr)); }
.report-metrics .desk-stat { min-height: 135px; }
.report-details { margin-top: 16px; background: white; border: 1px solid var(--line); padding: 14px; border-radius: 12px; }
.workspace-table th,.workspace-table td { padding: 10px 12px; text-align: start; border-block-end: 1px solid #e1e9e5; }
.workspace-table th { background: #f3f7f6; white-space: nowrap; font-weight: 720; font-size: .88rem; }
.workspace-table tr:last-child td { border: 0; }
.contacts-table { min-width: 740px; }
.contacts-table .row { flex-wrap: nowrap; }
.contacts-table button { min-height: 35px; padding: 3px 8px; white-space: nowrap; }
.contact-person small { display: block; color: var(--muted); }
.table-pager { justify-content: center; margin-block: 10px 0; }
.profile-avatar { position: relative; display: inline-block; width: 39px; height: 39px; flex: 0 0 39px; border-radius: 50%; overflow: hidden; background: #dcece7; color: #507c73; }
.profile-avatar::before,.profile-avatar::after { content: ""; position: absolute; background: currentColor; left: 50%; transform: translateX(-50%); }
.profile-avatar::before { width: 11px; height: 11px; border-radius: 50%; top: 8px; }
.profile-avatar::after { width: 22px; height: 12px; border-radius: 12px 12px 3px 3px; top: 21px; }
.profile-avatar img { position: relative; z-index: 1; width: 100%; height: 100%; object-fit: cover; }
.account-avatar { margin-block: 10px; }
#avatar-error { color: var(--danger); }
@media(max-width:850px) {
 .action-lanes { grid-template-columns: repeat(3,minmax(220px,1fr)); overflow: auto; }
}
@media(max-width:640px) {
 .calendar-modes { margin-inline-start: 0; flex-wrap: wrap; }
 .view-toolbar,.report-filters { padding: 9px; }
 .report-metrics { grid-template-columns: repeat(2,minmax(0,1fr)); }
 .action-lanes { grid-template-columns: 1fr; }
 .lane-cards { min-height: 90px; max-height: none; }
 .lane-empty { margin: 14px 0; }
}
.minute-style-tools { display: flex; flex-wrap: wrap; gap: 12px; padding: 12px 16px; }
.minute-style-tools label { flex: 0 1 230px; }
.minute-style-grid { display: grid; grid-template-columns: minmax(0, .94fr) minmax(0, 1.06fr); gap: 15px; align-items: start; }
.minute-style-grid .panel { padding: clamp(12px, 2vw, 20px); }
.minute-controls fieldset { border: 1px solid var(--line); border-radius: 9px; }
.minute-controls legend { padding-inline: 6px; }
.minute-controls #minute-logo { padding-block-start: 14px; border-block-start: 1px solid var(--line); }
.minute-preview { position: sticky; top: 76px; }
.minute-preview .page-heading { margin-bottom: 9px; }
.minute-preview .page-heading h2 { margin: 0; }
#minute-sample { background: #ebf0f3; max-height: 69vh; overflow: auto; padding: 12px; border-radius: 9px; }
#minute-sample .minute-paper { box-shadow: 0 3px 12px #182f3c22; font-size: 12px; padding: clamp(9px, 2.1vw, 24px); }
#minute-sample .minute-compact { font-size: 10.5px; }
@media(max-width:900px) { .minute-style-grid { grid-template-columns: 1fr; } .minute-preview { position: static; } }

/* Floating dashboard navigation, based on the Tamin Aval drawer. */
#sidebar { position: sticky; top: var(--header-height); align-self: start; height: calc(100dvh - var(--header-height)); min-width: 0; z-index: 5; }
.sidebar-card { height: calc(100% - 16px); margin: 8px; display: flex; flex-direction: column; position: relative; overflow: hidden; border: 1px solid #ffffff26; border-radius: 24px; box-shadow: 0 12px 32px #1a202a40; color: white;
 background: radial-gradient(circle at 20% 0%,#ffffff29,transparent 17rem),linear-gradient(120deg,#ffffff0d,transparent 35%),linear-gradient(180deg,#285d4f 0%,#1c493f 49%,#10352e 100%); }
.sidebar-brand { display: flex; min-height: 73px; align-items: center; gap: 8px; padding: 16px 6px; margin: 0 16px 8px; border-block-end: 1px solid #ffffff26; color: #fff; text-decoration: none; font-weight: 830; }
.sidebar-identity-icon { display:grid; place-items:center; width:32px; height:32px; flex:0 0 32px; border-radius:50%; background:#ffffff26; }
.sidebar-identity-icon svg { width:17px; height:17px; }
#side-links { flex: 1 1 auto; min-height: 0; overflow-y: auto; padding: 8px 10px; scrollbar-width: thin; scrollbar-color: #b1cbbd85 transparent; }
#side-links a,.sidebar-group-toggle { color: #ffffffd0; display: flex; align-items: center; gap: 12px; min-height: 36px; border: 0; border-radius: 12px; width: 100%; background: transparent; padding: 8px 13px; text-decoration: none; font-size: .875rem; margin-block-end: 4px; }
#side-links a:hover,.sidebar-group-toggle:hover { background: #ffffff21; color: #fff; }
#side-links a[aria-current=page] { background: #fffffff2; color: #153f35; font-weight: 850; box-shadow: 0 7px 22px #0000001a; }
#side-links a svg,.sidebar-group-toggle svg { flex-shrink: 0; }
.sidebar-group-toggle { display: grid; grid-template-columns: 20px minmax(0,1fr) 16px; text-align: right; font-weight: 780; }
.group-chevron { display: inline-flex; transition: transform .18s; }
.group-chevron svg { width: 15px; height: 15px; }
.sidebar-group-toggle[aria-expanded=true] .group-chevron { transform: rotate(-90deg); }
.sidebar-children { border-inline-start: 1px solid #ffffff33; margin: 0 20px 8px 0; padding-inline-start: 7px; }
.sidebar-children a { padding-inline: 8px; }
.nav-label { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; }
.sidebar-profile { display:flex; flex-shrink:0; align-items:center; gap:10px; min-height:76px; padding:15px 22px; border-block-start:1px solid #ffffff26; background:#0000000d; color:#fff; font-size:1.15rem; font-weight:760; }
#sidebar-org-icon { background:#ffffff40; }
.sidebar-profile .nav-label { white-space:normal; overflow-wrap:anywhere; line-height:1.45; }
#sidebar-close,#sidebar-backdrop { display: none; }
#sidebar-collapse { position: absolute; top: 32px; left: 8px; transform: translateX(-50%); z-index: 1; width: 28px; height: 28px; min-height: 0; padding: 0; border-radius: 50%; border: 1px solid #0000000d; background: white; color: #183d34; box-shadow: 0 4px 8px #0002; }
#sidebar-collapse svg { width: 15px; height: 15px; }
#sidebar :focus-visible:not(#sidebar-collapse) { outline-color: #e1f5a5; outline-offset: -2px; }
@media(min-width:640px) {
 body:not(.signed-out) .workspace { display: grid; transition: grid-template-columns .2s; }
 body.rail-compact:not(.signed-out) { --nav-width: 76px; }
 .rail-compact #sidebar .nav-label,.rail-compact #sidebar .group-chevron { display: none; }
 .rail-compact #sidebar .sidebar-children { border: 0; margin: 0 0 7px; padding: 0; }
 .rail-compact #side-links a,.rail-compact .sidebar-brand,.rail-compact .sidebar-profile { justify-content: center; padding-inline: 0; }
 .rail-compact .sidebar-brand { margin-inline: 7px; }
 .rail-compact .sidebar-group-toggle { grid-template-columns: 20px; justify-content: center; padding-inline: 0; }
}
@media(max-width:639px) {
 #menu-toggle:not([hidden]) { display: inline-flex; padding-inline: 10px; }
 #sidebar { position: fixed; inset: 0 0 0 auto; width: min(320px,calc(100vw - 40px)); height: 100dvh; z-index: 1001; transform: translateX(110%); visibility: hidden; transition: transform .2s,visibility .2s; }
 #sidebar.is-open { transform: translateX(0); visibility: visible; }
 #sidebar-backdrop:not([hidden]) { display: block; position: fixed; inset: 0; z-index: 1000; background: #0006; }
 #sidebar-close { display: inline-flex; position: absolute; top: 11px; left: 11px; width: 36px; min-height: 36px; padding: 0; color: #fff; background: #ffffff22; border-radius: 12px; z-index: 1; }
 .sidebar-brand { padding-inline-end: 40px; }
 #sidebar-collapse { display: none; }
 body.sidebar-mobile-open { overflow: hidden; }
}
@media(prefers-reduced-motion:reduce) {
 #sidebar,.group-chevron,body:not(.signed-out) .workspace { transition: none; }
}

.service-current { display:flex; flex-wrap:wrap; justify-content:space-between; align-items:center; gap:12px 22px; padding:20px 24px; background:#eaf6f1; border:1px solid #aad2c3; border-radius:18px; margin-bottom:22px; }
.service-current h2,.service-current p { margin:0; }
.service-current strong,.service-current small { display:block; }
.service-current .state-pill { color:#164c3f; background:#d4eee1; }
.plan-heading { margin-bottom:10px; }
.plan-heading h2 { margin:0; }
.plan-builder { grid-template-columns:minmax(0,1fr) minmax(255px,340px); align-items:start; gap:16px; }
.plan-option { padding:15px 17px; border-radius:16px; margin-bottom:12px; }
.plan-option output { color:var(--brand); font-weight:800; }
.plan-option input[type=range] { padding:0; min-height:28px; accent-color:var(--brand); }
.plan-stepper,.plan-toggle { display:flex; justify-content:space-between; align-items:center; gap:12px; }
.plan-stepper p,.plan-toggle small { margin:0; color:var(--muted); }
.plan-toggle small { display:block; }
.plan-stepper input { width:74px; text-align:center; }
.plan-summary { position:sticky; top:78px; }
.plan-terms { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:4px; }
.plan-terms label { cursor:pointer; border:1px solid var(--line); border-radius:8px; padding:6px 3px; text-align:center; }
.plan-terms label:has(input:checked) { border-color:var(--brand); background:var(--soft); }
.plan-terms label input { position:absolute; width:1px; height:1px; min-height:0; opacity:0; }
.plan-terms small { display:block; color:var(--brand); }
.plan-summary dl>div { display:flex; align-items:center; justify-content:space-between; gap:6px; margin-block:6px; }
.plan-summary dd { margin:0; text-align:end; }
.plan-summary .plan-total { border-block-start:1px solid var(--line); padding-block-start:8px; font-weight:850; }
.plan-summary>button { width:100%; }
.service-orders .page-heading { margin-bottom:6px; }
.payment-card { display:inline-block; font-weight:780; background:var(--soft); padding:1px 8px; border-radius:6px; }
.ticket-filters { display:flex; justify-content:center; flex-wrap:wrap; gap:7px; margin:0 0 14px; }
.ticket-filters button { flex-direction:column; gap:1px; min-width:102px; }
.ticket-filters button[aria-pressed=true] { border-color:var(--brand); background:var(--soft); }
.ticket-filter-mark { font-size:1.55rem; line-height:1.2; }
[data-status=reviewing] .ticket-filter-mark,[data-priority=high] { color:#836008; }
[data-status=closed] .ticket-filter-mark,[data-priority=urgent] { color:#a33237; }
.tickets-table { min-width:540px; }
.tickets-table td small { display:block; color:var(--muted); }
.tickets-table .ticket-empty { text-align:center; padding:18px; color:var(--muted); }
.ticket-message { margin-inline-end: min(14%,100px); padding:14px 18px; }
.ticket-message[data-staff=true] { margin-inline-start:min(14%,100px); margin-inline-end:0; background:#eef7f1; border-color:#bed8ca; }
.ticket-message .page-heading { margin-bottom:6px; }
.ticket-message p { white-space:pre-wrap; }
#ticket-create-error { color:var(--danger); }
@media(max-width:880px) { .plan-builder { grid-template-columns:1fr; } .plan-summary { position:static; } }
@media(max-width:560px) { .plan-stepper { flex-wrap:wrap; } .ticket-filters button{flex:1 1 40%;} }

/* Compact navigation and sign-in overlay */
.dashboard-topbar { justify-content:space-between; padding:0 clamp(11px,2.2vw,25px); background:#ffffffef; backdrop-filter:blur(12px); border-color:#e3e8e6; box-shadow:0 5px 20px #153c3210; }
.topbar-start,.topbar-end { display:flex; align-items:center; gap:8px; min-width:0; }
.topbar-end { margin-inline-start:auto; }
#header-profile { display:flex; align-items:center; gap:8px; width:max-content; min-width:min(29vw,265px); max-width:min(46vw,490px); min-height:35px; border:1px solid var(--line); border-radius:10px; color:var(--ink); padding:5px 12px; white-space:nowrap; }
#header-profile-icon,.bell-wrap #bell-icon { display:grid; place-items:center; }
#header-profile-icon { flex-shrink:0; }
.dashboard-topbar #user { overflow:hidden; text-overflow:ellipsis; font-size:12px; }
.dashboard-topbar #logout { padding:5px 8px; min-height:35px; }
.bell-wrap { position:relative; }
.bell-wrap button#bell-toggle { position:relative; min-height:35px; min-width:35px; padding:4px; border-radius:10px; }
#bell-count { position:absolute; inset-inline-end:-5px; top:-5px; min-width:16px; padding:0 2px; height:16px; line-height:16px; border-radius:9px; background:#a23b44; color:white; font-size:10px; }
.bell-panel { position:absolute; inset-inline-end:0; top:calc(100% + 9px); width:min(320px, calc(100vw - 30px)); max-height:65vh; overflow:auto; padding:12px; border:1px solid var(--line); border-radius:14px; background:white; box-shadow:0 12px 42px #213b3630; }
.bell-panel .page-heading { margin:0 0 8px; }
.bell-panel h2 { margin:0; font-size:15px; }
.bell-panel button { min-height:27px; padding:1px 7px; font-size:11px; }
.bell-item { display:grid; gap:0; border-radius:8px; margin:3px 0; padding:6px 9px; color:var(--ink); }
.bell-item[data-unread=true] { background:#e7f2ed; }
.bell-item small { color:var(--muted); font-size:11px; }
#auth-dialog { position:relative; width:min(415px,calc(100% - 24px)); max-height:calc(100dvh - 30px); border:1px solid #e4e9e7; border-radius:19px; padding:16px 20px 20px; color:var(--ink); background:#fff; box-shadow:0 20px 72px #121d2259; }
#auth-dialog::backdrop { background:#18202a69; backdrop-filter:blur(3px); }
#auth-dialog #close-auth { position:absolute; top:11px; inset-inline-end:11px; min-width:32px; min-height:32px; padding:3px; background:#edf2f0; color:#253b34; }
.auth-brand { display:flex; align-items:center; gap:7px; margin-bottom:8px; font-size:17px; }
.auth-brand img { width:33px; height:33px; object-fit:contain; }
#auth-dialog h2 { font-size:18px; margin-bottom:3px; }
#auth-dialog form { gap:8px; }
#auth-dialog button,#auth-dialog input,#auth-dialog select { min-height:36px; }
#auth-dialog #auth-message { border-radius:8px; color:var(--danger); background:var(--danger-soft); padding:5px 9px; margin-bottom:8px; }
.persian-clock { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:7px; margin:0; padding:0 6px 6px; border:1px solid var(--line); border-radius:8px; }
.persian-clock legend { margin-inline-start:4px; padding-inline:5px; font-size:12px; color:var(--muted); }
.persian-clock label { min-width:0; font-size:11px; }
.persian-clock select { min-height:34px; padding:2px 5px; }
.meeting-date-place { align-items:start; }
.meeting-date-place > label { align-self:start; }
.routine-toolbar { display:flex; align-items:end; flex-wrap:wrap; gap:9px; padding:13px; }
.routine-toolbar label { min-width:min(260px,100%); }
.composer-card h2 svg,.routine-toolbar svg { vertical-align:middle; }
.landing .hero { padding:clamp(17px,4vw,44px); grid-template-columns:minmax(0,1fr) minmax(0,.79fr); }
.landing .hero-portrait img { max-height:410px; object-fit:contain; }
.landing .hero-portrait { background:#adbfaf; }
@media(max-width:760px){ .landing .hero { grid-template-columns:1fr; } }
@media(max-width:639px){
 .dashboard-topbar #logout span { display:none; }
 .topbar-end { gap:5px; }
 #header-profile svg,.dashboard-topbar #logout svg { width:16px; height:16px; }
 .bell-panel { position:fixed; inset-inline-start:10px; inset-inline-end:auto; top:58px; }
}
.tab-bar button:has(svg) { display:inline-flex; align-items:center; gap:5px; }
.tab-bar button svg { flex:none; width:15px; height:15px; }
.hero-actions > a:not(.cta):hover { color:#fff; }
#side-links a:hover,#side-links a:focus-visible,.sidebar-brand:hover,.sidebar-profile:hover { color:white; }
#side-links a[aria-current=page]:hover { color:#153f35; }

.desk-plan { display:flex; align-items:center; justify-content:space-between; gap:10px; background:#dcece3; color:#214d40; border:1px solid #b6d2c2; border-radius:13px; padding:13px 16px; margin:15px 0; }
.desk-plan small { display:block; color:#3b5f53; }
.desk-plan b { font-size:18px; }
.desk-activity-heading { margin-bottom:8px; }
.desk-activity-heading h2 { margin:0; }
.desk-performance { grid-template-columns:repeat(3,minmax(0,1fr)); }
.analytics-grid { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:13px; margin-top:13px; align-items:start; }
.analytics-wide { grid-column:1/-1; }
.analytics-card { margin:0; padding:14px; border-radius:12px; }
.analytics-card h3 { margin:0 0 9px; color:var(--ink); }
.analytics-table { font-size:12px; }
.analytics-table th,.analytics-table td { padding:7px 9px; }
.analytics-bars { display:grid; gap:7px; margin:8px 0; }
.analytics-bars > div { display:grid; grid-template-columns:minmax(90px,116px) minmax(35px,1fr) 37px; align-items:center; gap:7px; }
.analytics-bars meter { display:block; width:100%; height:12px; accent-color:#356d5d; }
.analytics-bars meter::-webkit-meter-bar { background:#edf3ef; border:0; border-radius:7px; }
.analytics-bars meter::-webkit-meter-optimum-value { background:#356d5d; border-radius:7px; }
.analytics-donut { display:flex; align-items:center; flex-wrap:wrap; gap:9px 14px; }
.analytics-donut svg { width:115px; height:115px; transform:rotate(-90deg); }
.analytics-donut ul { list-style:none; padding:0; margin:0; }
.analytics-donut li { position:relative; padding-inline-start:13px; font-size:12px; }
.analytics-donut li::before { content:""; position:absolute; inset-inline-start:0; top:.6em; width:7px; height:7px; border-radius:50%; background:var(--chart-key,#206e58); }
.analytics-donut [data-series="1"]{--chart-key:#5271a4}.analytics-donut [data-series="2"]{--chart-key:#98631f}.analytics-donut [data-series="3"]{--chart-key:#73528c}.analytics-donut [data-series="4"]{--chart-key:#427b82}.analytics-donut [data-series="5"]{--chart-key:#7a8180}
.analytics-insight { margin-top:14px; padding:14px 17px; }
.analytics-insight .page-heading { margin-bottom:7px; }
.analytics-insight .page-heading h2 { margin:0; }
.analytics-insight pre { margin-bottom:0; }
:root { font-size:13px; }
h1,.workspace h1 { font-size:clamp(17px,2.1vw,23px); }
h2,.feature-heading h2,.landing-next h2,.workspace-desk .desk-intro h2 { font-size:clamp(15px,1.65vw,18px); }
h3,.feature-grid h3,.composer-card h2,.desk-section { font-size:14px; }
.landing .hero-copy h1 { font-size:clamp(22px,2.55vw,32px); }
.hero-copy > p:not(.hero-kicker) { font-size:14px; }
.desk-stat strong { font-size:19px; }
.report-metrics .desk-stat { min-height:100px; }
@media(max-width:760px){ .analytics-grid{grid-template-columns:1fr}.analytics-wide{grid-column:auto}.desk-performance{grid-template-columns:repeat(2,minmax(0,1fr));} }
.analytics-monthly { grid-template-columns:repeat(auto-fit,minmax(min(100%,240px),1fr)); margin:0 0 9px; }
.analytics-monthly .panel { border:0; padding:0 8px; box-shadow:none; }
.analytics-section { margin-block-start: 22px; }
.analytics-section > h2 { display:flex; align-items:center; gap:7px; padding-block-end:8px; border-block-end:1px solid var(--line); margin:0; }
.analytics-section > h2 svg { width:16px; height:16px; }
.participant-row:has(.contact-participant-role) { grid-template-columns:minmax(0,1fr) auto 64px; }
.contact-participant-role { width:auto; min-width:0; max-width:100%; padding:3px 6px; min-height:30px; font-size:11px; }
.contact-plan-row { display:flex; flex-wrap:wrap; gap:10px; align-items:center; }
.contact-plan-row .member { margin:0; }
@media(max-width:480px) {
 .participant-row:has(.contact-participant-role) { grid-template-columns:minmax(0,1fr) 54px; }
 .participant-row:has(.contact-participant-role) .participant-vote { grid-column:2; grid-row:1; }
 .contact-participant-role { grid-column:1; margin:0 8px 6px; justify-self:start; }
}
.meeting-roster { margin-block:10px 14px; }
.meeting-roster tbody th { font-weight:650; text-align:start; }
.meeting-roster tbody tr:nth-child(even) { background:#f4f8f5; }
.meeting-roster .state-pill { white-space:nowrap; }
.meeting-roster select { width:auto; min-width:82px; margin:0; }
.contact-icon-row { display:flex; align-items:center; flex-wrap:wrap; gap:5px; }
.contact-icon { display:inline-grid; place-items:center; width:32px; min-height:32px; padding:0; border-radius:8px; }
.contact-icon svg { width:16px; height:16px; }
.contact-icon[aria-pressed=true] { color:#865709; background:#fff0cc; }
.speaker-control { padding:10px 12px; margin:12px 0; border:1px solid var(--line); border-radius:10px; background:#f7faf8; }
.speaker-control h3 { margin:0 0 8px; }
.speaker-control p { margin:6px 0 0; }
.speaker-chip { display:inline-flex; align-items:center; gap:5px; }
.speaker-chip svg { width:15px; height:15px; }
.speaker-chip[aria-pressed=true] { color:#fff; background:var(--brand); border-color:var(--brand); }

/* Header controls and meeting conversation */
body:not(.signed-out) .dashboard-topbar .brand img { width:60px; height:60px; object-fit:contain; }
.dashboard-topbar .brand { flex-shrink:0; text-align:start; gap:12px; }
.dashboard-topbar .brand strong { font-size:17px; }
#header-home { display:inline-flex; align-items:center; gap:5px; margin-inline-start:14px; padding:5px 8px; border-radius:8px; color:var(--muted); white-space:nowrap; }
#header-home:hover { background:var(--soft); color:var(--brand); }
#header-home-icon { display:grid; place-items:center; }
#header-home svg,.header-tool svg { width:17px; height:17px; }
.header-tool.secondary { display:grid; place-items:center; flex:none; width:35px; min-height:35px; padding:0; }
.header-tool[aria-pressed=true] { background:var(--soft); border-color:var(--input-line); }
.header-identity { display:flex; align-items:center; gap:8px; min-width:0; line-height:1.45; }
.dashboard-topbar .header-identity #user { display:block; flex-shrink:0; margin:0; }
#header-org { padding-inline-start:8px; border-inline-start:1px solid var(--line); color:var(--muted); font-size:11px; overflow:hidden; text-overflow:ellipsis; }
#header-org:empty { display:none; }
.sidebar-identity { display:grid; gap:2px; min-width:0; }
.sidebar-identity strong,.sidebar-identity small { overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.sidebar-identity small { font-size:10px; color:#e0eee9; font-weight:500; }
@media (max-width:639px) {
 body:not(.signed-out) .dashboard-topbar .brand img { width:39px; height:39px; }
 .dashboard-topbar .brand { gap:6px; }
 .dashboard-topbar .brand strong { font-size:15px; }
 #header-home { margin-inline-start:3px; padding-inline:4px; }
 #header-home > span:last-child { display:none; }
 #header-profile { min-width:0; min-height:34px; padding-inline:8px; }
 .dashboard-topbar .header-identity #user { flex-shrink:1; }
 .topbar-start { gap:3px; }
 .header-tool.secondary { width:31px; min-height:33px; }
}
@media (max-width:479px) { .header-identity { display:none; } }
@media (max-width:360px) { .topbar-end { gap:3px; } .dashboard-topbar { padding-inline:7px; } }

.speaker-heading { display:flex; align-items:center; justify-content:space-between; flex-wrap:wrap; gap:8px; margin-bottom:8px; }
.speaker-heading h3 { margin:0; }
.speaker-heading button { min-height:31px; padding:3px 9px; }
.draft-mode button[aria-pressed=true] { background:var(--soft); border-color:var(--input-line); }
.draft-conversation { min-height:170px; max-height:320px; overflow:auto; overflow-wrap:anywhere; padding:9px 12px; margin-block:6px 12px; background:var(--surface); border:1px solid var(--input-line); border-radius:var(--radius-control); }
.draft-line { white-space:pre-wrap; min-height:1.8em; padding-block:3px; }
.speaker-tag { display:inline-flex; align-items:center; padding:0 8px; border-radius:999px; font-size:.87em; font-weight:700; background:var(--soft); color:var(--muted); }
.speaker-tag[data-speaker-color]:not([data-speaker-color=unknown]) { background:hsl(var(--speaker-hue) 65% 90%); color:hsl(var(--speaker-hue) 65% 23%); }

:root[data-theme=dark] {
 color-scheme:dark;
 --canvas:#101316;
 --surface:#1a2024;
 --ink:#eef3f1;
 --muted:#b5c5bf;
 --brand:#84d6b9;
 --brand-hover:#b1ead6;
 --soft:#253831;
 --line:#364642;
 --input-line:#61766e;
 --deep:#102320;
 --danger:#ffb7b9;
 --danger-soft:#43292e;
 --warning:#412f14;
 --warning-ink:#ffdc98;
 --focus:#91edcc;
}
[data-theme=dark] body:not(.signed-out) { background:var(--canvas); }
[data-theme=dark] .dashboard-topbar { background:#171c20; border-color:var(--line); box-shadow:none; }
[data-theme=dark] #auth-dialog,[data-theme=dark] :is(.workspace-desk .desk-grid > section,.desk-alert,.composer-card,.composer-footer,.bell-panel,.jalali-pop,.calendar-scroll,.table-scroll,.timeline thead,.calendar-agenda,.calendar-empty,.report-details,.action-lane header > span) { background:var(--surface); border-color:var(--line); }
[data-theme=dark] #auth-dialog #close-auth,[data-theme=dark] :is(.workspace-table th,.meeting-roster tbody tr:nth-child(even),.month-outside,.action-lane,.capture-panel,.speaker-control,.participant:has(input:checked),.selected-count,.desk-plan,.service-current,.ticket-message[data-staff=true],.bell-item[data-unread=true],.landing-next,.calendar-today) { background:var(--soft); border-color:var(--line); color:var(--ink); }
[data-theme=dark] :is(.desk-plan small,.participant-list h3,.contact-row small,.participant small) { color:var(--muted); }
[data-theme=dark] .capture-badge { background:var(--soft); color:var(--muted); }
[data-theme=dark] :is(.calendar-event,.calendar-event:hover,.capture-badge[data-capture=archived],.service-current .state-pill) { background:var(--soft); color:var(--brand); }
[data-theme=dark] :is(.calendar-event[data-meeting-state=live],.capture-badge[data-capture=offline],.capture-badge[data-capture=pending],.capture-badge[data-capture=stalled]) { background:var(--warning); color:var(--warning-ink); }
[data-theme=dark] :is(.calendar-event[data-meeting-state=review],.calendar-event[data-meeting-state=cancelled]) { background:var(--surface); color:var(--muted); }
[data-theme=dark] :is(.capture-badge[data-capture=recording],.capture-badge[data-capture=interrupted]) { background:var(--danger-soft); color:var(--danger); }
[data-theme=dark] :is(button,.cta):not(.secondary,.outline,.danger) { color:#10251e; }
[data-theme=dark] :is(.brand,#menu-toggle,#logout,#sidebar-close,#sidebar-collapse,.sidebar-group-toggle,.tab-bar button,.picker-grid button:not([aria-pressed=true])) { color:var(--ink); }
[data-theme=dark] #sidebar-collapse { background:var(--surface); border-color:var(--line); }
[data-theme=dark] #side-links a[aria-current=page] { background:#c4e6d9; }
[data-theme=dark] .speaker-chip[aria-pressed=true] { color:#10251e; }
[data-theme=dark] .speaker-tag[data-speaker-color]:not([data-speaker-color=unknown]) { background:hsl(var(--speaker-hue) 45% 22%); color:hsl(var(--speaker-hue) 80% 86%); }
@media print { .draft-mode { display:none !important; } }

.speaker-heading .speaker-chip,.speaker-heading [data-action="speaker-test"] { min-height:31px; }
.speaker-tag-button { display:inline-flex; padding:0; min-height:24px; background:none; color:inherit; border-radius:999px; }
.speaker-tag-button:hover { background:var(--soft); outline:1px solid var(--input-line); }
.speaker-picker { background:var(--surface); border-color:var(--line); }
.speaker-options { display:grid; grid-template-columns:repeat(auto-fit,minmax(min(100%,135px),1fr)); gap:8px; }
.speaker-options button { justify-content:flex-start; min-width:0; }
.speaker-options svg { flex:none; width:16px; height:16px; }
.minutes-timeline { display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); list-style:none; margin:0 0 12px; padding:0; gap:4px; }
.minutes-timeline li { position:relative; display:grid; justify-items:center; gap:4px; padding:6px 2px; border-radius:8px; color:var(--muted); font-size:11px; text-align:center; }
.minutes-timeline li:not(:last-child)::after { content:""; position:absolute; inset-inline-start:calc(50% + 20px); inset-inline-end:calc(-50% + 16px); top:18px; border-top:1px solid var(--line); }
.minutes-timeline li > span { display:grid; place-items:center; width:24px; height:24px; border-radius:50%; color:var(--muted); background:var(--canvas); border:1px solid var(--line); }
.minutes-timeline li svg { width:14px; height:14px; }
.minutes-timeline .complete > span { color:var(--brand); background:var(--soft); }
.minutes-timeline [aria-current=step] { color:var(--brand); font-weight:750; background:var(--soft); }
.minutes-timeline [aria-current=step] > span { color:var(--surface); background:var(--brand); border-color:var(--brand); }
.meeting-ai-usage { display:flex; align-items:center; flex-wrap:wrap; gap:6px; margin-block:0 10px; color:var(--muted); font-size:11px; }
.meeting-ai-usage strong { color:var(--ink); font-size:13px; }
.meeting-ai-usage small { font-size:inherit; }
.sidebar-organization { display:grid; gap:2px; font-size:12px; }
.sidebar-organization small { color:var(--inverse-muted); font-size:10px; font-weight:500; }
[data-sample-preview] { width:100%; max-width:360px; }

input:not([type=checkbox],[type=radio]):focus-visible,select:focus-visible,textarea:focus-visible { outline:none; border-color:var(--focus); }
input:is([type=checkbox],[type=radio]):focus-visible { outline:2px solid var(--focus); outline-offset:0; }
button.quick-start { background:#a65715; color:#fff; }
button.quick-start:hover { background:#85410d; color:#fff; }
.ticket-filter-mark svg,.calendar-nav button svg,.meeting-ai-usage > svg { width:18px; height:18px; vertical-align:middle; }
.calendar-event[draggable=true] { cursor:grab; }
.calendar-event[draggable=true]:active { cursor:grabbing; }
.calendar-drop-target { outline:2px solid var(--focus); outline-offset:-2px; background:var(--soft); }
#meeting-ai-usage { width:fit-content; max-width:100%; padding:7px 10px; background:var(--soft); border:1px solid var(--line); border-radius:9px; gap:8px 14px; }
#meeting-ai-usage strong { margin-inline-start:3px; }
.quick-title { margin-block-end:10px; }

.meeting-invite { margin-block:12px; padding:12px; background:var(--soft); border:1px solid var(--line); border-radius:10px; }
.meeting-invite [aria-pressed=true] { border-color:var(--brand); color:var(--brand); font-weight:700; }
.meeting-invite ul { margin-block:5px; }

.roboco-mark { display:block; flex:none; width:38px; height:38px; object-fit:contain; background:#e9f7f2; border-radius:9px; }
#hub-brand-icon { display:flex; }
.dashboard-topbar #home > img { display:none; }
#header-agent { padding-inline-start:10px; border-inline-start:1px solid var(--line); color:var(--muted); white-space:nowrap; font-size:12px; }
.roboco-hero { background:linear-gradient(130deg,#123f34,#0b2421 72%); }
.roboco-agents { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:14px; }
.roboco-agent { background:var(--surface); border:1px solid var(--line); border-radius:16px; padding:18px; min-width:0; }
.roboco-agent-top { display:flex; justify-content:space-between; align-items:flex-start; gap:12px; }
.roboco-agent-area { margin:8px 0 2px; color:var(--muted); font-size:.85rem; }
.roboco-agent h3 { font-size:1.25rem; margin:0 0 6px; }
.roboco-agent-description { margin:0 0 12px; line-height:1.8; }
.roboco-agent-activity { margin-top:14px; border-top:1px solid var(--line); padding-top:11px; }
.roboco-agent-activity h4,.roboco-agent-activity p { margin:0 0 6px; }
.roboco-agent-activity ul { list-style:none; margin:0; padding:0; }
.roboco-agent-activity li+li { border-top:1px solid var(--line); }
.roboco-agent-activity a { display:grid; grid-template-columns:1fr auto; gap:2px 8px; padding-block:7px; }
.roboco-agent-activity a span { grid-column:1/-1; }
.roboco-agent-activity time { font-size:.78rem; color:var(--muted); }
.roboco-back { display:inline-flex; align-items:center; gap:4px; }
.roboco-back svg { width:15px;height:15px; }
@media(max-width:640px){.roboco-agents{grid-template-columns:1fr}#header-agent{display:none}}

.roboco-landing .robo-hero-portrait { background:radial-gradient(ellipse at 50% 50%,#256757,transparent 72%); border:none; box-shadow:none; }
.roboco-landing .robo-hero-portrait img { height:clamp(210px,32vw,345px); width:100%; object-fit:contain; }
.robo-portrait { object-fit:contain; display:block; }
.robo-sidebar-portrait { width:30px;height:34px;flex:0 0 30px; }
.robo-card-portrait { width:60px;height:66px; }
.robo-secretary-desk { width:72px;height:83px;object-fit:contain; }
.robo-today { display:flex;align-items:center;gap:6px;font-size:11px;color:var(--muted); }
.robo-today svg,.robo-attention h2 svg { width:16px;height:16px; }
.robo-attention { border:1px solid var(--line);border-radius:12px;padding:12px 16px;min-width:0;background:var(--surface); }
.robo-attention h2 { display:flex;align-items:center;gap:6px;margin:0 0 6px; }
.robo-attention p { margin:0; }
.robo-attention ul { padding:0;margin:0;list-style:none; }
.robo-attention li+li { border-top:1px solid var(--line); }
.robo-attention a { display:flex;align-items:center;gap:8px;padding:6px 0;font-size:12px; }
.robo-attention a strong { overflow-wrap:anywhere; }
.robo-attention a time { margin-inline-start:auto;white-space:nowrap;color:var(--muted); }
.robo-attention a svg { width:14px;height:14px;flex:none; }
.robo-attention-type { flex:none;font-size:10px;padding:2px 5px;border-radius:5px;background:var(--soft); }
.robo-picker { margin-bottom:16px; }
.robo-agent-strip { display:grid;grid-auto-flow:column;grid-auto-columns:minmax(93px,1fr);gap:8px;overflow-x:auto;padding:2px 2px 7px; }
.robo-agent-tile { display:grid;justify-items:center;gap:5px;padding:7px 4px;border:1px solid var(--line);border-radius:12px;background:var(--surface);color:var(--ink);white-space:nowrap;font-size:12px; }
.robo-agent-tile:hover { border-color:var(--brand);background:var(--soft); }
.robo-picker-portrait { width:100%;height:clamp(65px,9vw,110px); }


.robo-briefing { display:grid; grid-template-columns:clamp(112px,20vw,196px) minmax(0,1fr); align-items:start; gap:12px; margin-bottom:16px; }
.robo-coworker { aspect-ratio:1; border:1px solid var(--line); border-radius:14px; overflow:hidden; background:radial-gradient(ellipse at 50% 40%,var(--surface),var(--soft)); }
.robo-coworker img { display:block; width:100%; height:100%; object-fit:contain; object-position:center bottom; padding:6px 6px 0; }
.robo-briefing h1 { margin:4px 0 10px; font-size:17px; }
.robo-briefing-group h3 { margin:5px 0 3px; color:var(--muted); font-size:12px; }
.robo-type { display:inline-grid; }
.robo-type > span { grid-area:1 / 1; }
.robo-type:not(.robo-typing) > span[aria-hidden] { display:none; }
.robo-typing > span:first-child { opacity:0; }
@media(max-width:520px) {
 .robo-briefing { grid-template-columns:76px minmax(0,1fr); gap:7px; }
 .robo-attention { padding:9px; }
 .robo-attention a { flex-wrap:wrap; gap:4px; }
}

.roboco-mark { width:24px; height:24px; background:none; border-radius:0; }
.robo-coworker { background:var(--soft); }
.robo-coworker img { padding:10%; object-position:center; }
.robo-briefing > .robo-attention { position:relative; margin-inline-start:7px; padding:14px 16px; background:var(--surface); }
.robo-briefing > .robo-attention::before { content:""; position:absolute; inset-inline-start:-6px; top:26px; width:10px; height:10px; rotate:45deg; background:var(--surface); border-block-start:1px solid var(--line); border-inline-start:1px solid var(--line); }
.robo-message-meta { display:flex; align-items:center; justify-content:space-between; gap:6px 12px; flex-wrap:wrap; }
.robo-message-meta strong { font-size:11px; color:var(--muted); }
.own-profile { margin-block:14px; }
.own-profile-fields { display:grid; grid-template-columns:repeat(auto-fit,minmax(min(100%,200px),1fr)); gap:9px 12px; }
#profile-phone-verification { align-items:end; margin-block:8px; }
#profile-phone-verification[hidden] { display:none; }
@media(max-width:520px) {
 .robo-briefing > .robo-attention { padding:9px; margin-inline-start:3px; }
}

.hub-calendar { margin-block:16px; scroll-margin-top:76px; }
.hub-calendar-scroll { overflow-x:auto; }
.hub-calendar .month-grid { min-width:590px; border:1px solid var(--line); border-radius:8px; overflow:hidden; }
.hub-calendar .month-grid > * { border-color:var(--line); }
.hub-calendar-day { min-height:65px; }
.hub-calendar-day > strong { font-size:12px; }
.hub-calendar-day [aria-current="date"] { color:var(--brand); }
.hub-calendar ul { padding:0; list-style:none; margin:5px 0 0; }
.hub-calendar .hub-calendar-legend { display:flex; flex-wrap:wrap; gap:7px 16px; margin:0 0 10px; font-size:11px; }
.hub-calendar-legend li { display:flex; align-items:center; gap:5px; }
.hub-calendar-legend li::before { content:""; width:8px; height:8px; border-radius:50%; background:var(--agent-color,var(--brand)); }
.hub-calendar [data-agent="secretary"] { --agent-color:#379273; }
.hub-calendar [data-agent="assistant"] { --agent-color:#865cad; }
.hub-calendar [data-agent="sales"] { --agent-color:#b47728; }
.hub-calendar [data-agent="finance"] { --agent-color:#567fbb; }
.hub-calendar [data-agent="communications"] { --agent-color:#b95778; }
.hub-calendar-day li { border-inline-start:3px solid var(--agent-color,var(--brand)); margin-block:4px; border-radius:4px; background:var(--soft); }
.hub-calendar-day a { display:block; padding:3px 5px; font-size:11px; overflow-wrap:anywhere; }
.hub-calendar-day small { display:block; color:var(--muted); }
.hub-calendar [data-calendar-status] { margin-block:7px 0; font-size:12px; }
.hub-calendar [data-calendar-status]:empty { display:none; }

.roboco-wordmark { display:inline-flex; align-items:baseline; gap:5px; white-space:nowrap; }
.roboco-wordmark strong, .dashboard-topbar .brand .roboco-wordmark strong { font-size:15px; }
.roboco-wordmark small, .dashboard-topbar .brand .roboco-wordmark small { display:inline; font-size:10px; color:var(--muted); font-weight:500; }
body:not(.signed-out) .dashboard-topbar .brand img.roboco-mark,
.roboco-landing .public-brand img.roboco-mark { width:24px; height:24px; }
.robo-picker-portrait { width:100%; height:clamp(40px,6vw,65px); }
.sidebar-organization small { font-size:12px; }
.sidebar-organization strong { font-size:11px; }
.roboco-landing .hero-copy h1 { font-size:clamp(25px,3.4vw,42px); line-height:1.42; }
.roboco-landing .robo-hero-portrait { margin:0; }
.robo-workflow { margin-block:26px 32px; padding-block:18px; border-block:1px solid var(--line); }
.robo-workflow h2 { margin:0 0 4px; }
.robo-workflow p { margin:0; color:var(--muted); }
.robo-workflow ol { list-style:none; display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:16px; margin:14px 0 0; padding:0; }
.robo-workflow li { display:grid; grid-template-columns:24px minmax(0,1fr); align-items:center; gap:4px 9px; }
.robo-workflow li svg { color:var(--brand); width:20px; height:20px; }
.robo-workflow li span { grid-column:2; color:var(--muted); }
.roboco-landing footer { flex-wrap:wrap; gap:12px 24px; }
.roboco-landing footer p { margin:5px 0 0; }
.roboco-landing footer address { display:flex; flex-wrap:wrap; gap:6px 16px; font-style:normal; }
@media(max-width:580px) {
 .roboco-landing .public-nav { gap:9px; }
 .roboco-landing .public-features { display:none; }
 .robo-workflow ol { grid-template-columns:1fr; gap:12px; }
}
