@font-face {
  font-family: Yekan;
  src: url("/fonts/YekanBakh.woff2") format("woff2");
  font-weight: 100 950;
  font-display: swap;
}
:root {
  --bg: #f7f8f4;
  --paper: #fff;
  --ink: #223832;
  --muted: #7b8780;
  --line: #e5e9e2;
  --green: #244f46;
  --lime: #dcebb9;
  --soft: #eef4e7;
  --orange: #ba8150;
  --shadow: 0 12px 40px #243e3510;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font:
    15px/1.8 Yekan,
    Tahoma,
    sans-serif;
}
button,
input,
textarea,
select {
  font: inherit;
}
button,
a,
input,
textarea,
select {
  -webkit-tap-highlight-color: transparent;
}
button,
a {
  touch-action: manipulation;
}
button {
  cursor: pointer;
}
a {
  color: inherit;
  text-decoration: none;
}
button:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}
button:focus-visible,
a:focus-visible {
  outline: 3px solid #98b46b;
  outline-offset: 4px;
}
svg {
  width: 21px;
  height: 21px;
  flex-shrink: 0;
}
h1,
h2,
h3,
p {
  margin: 0;
}
h1 {
  font-size: 31px;
  font-weight: 750;
  line-height: 1.55;
  letter-spacing: -0.8px;
}
h2 {
  font-size: 20px;
  font-weight: 750;
}
h3 {
  font-size: 16px;
  font-weight: 700;
}
small,
.small {
  font-size: 12px;
}
.muted {
  color: var(--muted);
}
.eyebrow {
  font-size: 12px;
  color: var(--muted);
  letter-spacing: 0.2px;
}
.row {
  display: flex;
  align-items: center;
  gap: 12px;
}
.between {
  justify-content: space-between;
}
.wrap {
  flex-wrap: wrap;
}
.grow {
  flex: 1;
  min-width: 0;
}
.stack {
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.spacer {
  flex: 1;
}
.ltr {
  direction: ltr;
}
.btn {
  display: inline-flex;
  gap: 9px;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line);
  background: white;
  padding: 10px 18px;
  border-radius: 12px;
  color: var(--ink);
  font-weight: 600;
  white-space: nowrap;
  transition: 0.18s;
}
.btn:hover {
  border-color: #b4c6ad;
  transform: translateY(-1px);
  box-shadow: 0 4px 14px #244f460a;
}
.btn.primary {
  background: var(--green);
  color: #fff;
  border-color: var(--green);
}
.btn.light {
  background: var(--lime);
  color: var(--green);
  border-color: var(--lime);
}
.btn.ghost {
  background: transparent;
  border-color: transparent;
  box-shadow: none;
}
.btn.danger {
  color: #a64242;
  border-color: #ead3d3;
  background: #fff6f6;
}
.btn.sm {
  padding: 6px 11px;
  font-size: 12px;
  border-radius: 9px;
}
.icon-btn {
  padding: 9px;
  background: none;
  border: 0;
  display: inline-flex;
  color: var(--muted);
  border-radius: 10px;
}
.icon-btn:hover {
  background: var(--soft);
  color: var(--green);
}
.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  padding: 3px 10px;
  border-radius: 7px;
  background: var(--soft);
  color: #516447;
  white-space: nowrap;
}
.badge.warn {
  background: #fbf1e5;
  color: #996d39;
}
.badge.error {
  background: #fff0ed;
  color: #a34635;
}
.dot {
  width: 7px;
  height: 7px;
  background: #9fb976;
  border-radius: 50%;
  display: inline-block;
}
.dot.red {
  background: #ca6d65;
}
.sidebar {
  position: fixed;
  right: 0;
  top: 0;
  bottom: 0;
  width: 244px;
  background: #fdfefb;
  border-left: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  padding: 32px 22px;
  max-height: 100dvh;
  overflow-y: auto;
  overflow-x: hidden;
  overscroll-behavior-y: contain;
  scrollbar-width: thin;
  z-index: 20;
}
.sidebar > :not(.spacer) {
  flex-shrink: 0;
}
.brand {
  display: flex;
  gap: 13px;
  align-items: center;
}
.brand img {
  width: 43px;
  height: 43px;
}
.brand strong {
  font-size: 26px;
  font-weight: 800;
  line-height: 1.2;
}
.brand small {
  display: block;
  font-size: 10px;
  color: var(--muted);
}
.nav {
  margin-top: 38px;
  display: flex;
  flex-direction: column;
  gap: 7px;
}
.nav a {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 11px 14px;
  border-radius: 11px;
  font-weight: 550;
  color: #6b7972;
}
.nav a.active {
  background: var(--green);
  color: #fff;
}
.nav a:not(.active):hover {
  background: var(--soft);
}
.nav .count {
  margin-right: auto;
  font-size: 12px;
  opacity: 0.7;
}
.nav-label {
  font-size: 11px;
  color: #8b978e;
  padding: 18px 14px 4px;
}
.sidebar-note {
  border: 1px solid #e2e9d8;
  background: #f5f8ee;
  border-radius: 14px;
  padding: 15px;
  margin-top: 25px;
}
.sidebar-note p {
  font-size: 11px;
  color: #7c8871;
  margin-top: 5px;
}
.profile {
  border-top: 1px solid var(--line);
  padding-top: 22px;
  margin-top: 20px;
  display: flex;
  gap: 10px;
  align-items: center;
}
.avatar {
  height: 37px;
  width: 37px;
  border-radius: 12px;
  background: #e9edde;
  display: grid;
  place-items: center;
  font-weight: 700;
  color: var(--green);
  flex-shrink: 0;
}
.main {
  margin-right: 244px;
  min-height: 100vh;
}
.topbar {
  height: 88px;
  padding: 0 42px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--line);
  background: #ffffff80;
}
.topbar .path {
  font-size: 13px;
  color: var(--muted);
}
.topbar .path span {
  color: var(--ink);
}
.topbar-date {
  font-size: 12px;
  color: var(--muted);
}
.content {
  max-width: 1450px;
  margin: auto;
  padding: 34px 42px 60px;
}
.page-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  margin-bottom: 25px;
}
.page-head p {
  color: var(--muted);
  font-size: 13px;
  margin-top: 6px;
}
.hero {
  position: relative;
  overflow: hidden;
  background: var(--green);
  color: white;
  border-radius: 20px;
  padding: 34px 36px;
  display: flex;
  gap: 25px;
  justify-content: space-between;
  align-items: center;
  min-height: 192px;
}
.hero p {
  color: #cedbd4;
  font-size: 13px;
  max-width: 480px;
  margin-top: 8px;
}
.hero .btn {
  margin-top: 21px;
}
.hero-art {
  min-width: 175px;
  position: relative;
  display: flex;
  gap: 6px;
  align-items: center;
  justify-content: center;
  height: 125px;
  direction: ltr;
}
.hero-art:before {
  content: "";
  width: 160px;
  height: 160px;
  position: absolute;
  border: 1px solid #ffffff17;
  border-radius: 50%;
}
.hero-art:after {
  content: "";
  width: 210px;
  height: 210px;
  position: absolute;
  border: 1px solid #ffffff0b;
  border-radius: 50%;
}
.hero-art i {
  background: #dcebb9;
  width: 6px;
  border-radius: 20px;
  opacity: 0.8;
  height: var(--h);
}
.metrics {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 15px;
  margin: 23px 0 30px;
}
.metric {
  background: white;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 17px 20px;
}
.metric .value {
  font-size: 29px;
  font-weight: 700;
  line-height: 1.5;
  margin-top: 11px;
}
.metric .label {
  font-size: 12px;
  color: var(--muted);
}
.metric svg {
  color: #829275;
  width: 18px;
}
.metric small {
  font-size: 10px;
  color: var(--muted);
}
.columns {
  display: grid;
  grid-template-columns: minmax(0, 1.8fr) minmax(270px, 1fr);
  gap: 24px;
}
.panel {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 17px;
  padding: 23px;
}
.panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
  gap: 10px;
}
.panel-head h2 {
  font-size: 17px;
}
.empty {
  text-align: center;
  padding: 43px 22px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}
.empty .empty-icon {
  width: 63px;
  height: 63px;
  border: 1px solid #e1e8d8;
  border-radius: 20px;
  background: #f4f7ef;
  display: grid;
  place-items: center;
  margin-bottom: 7px;
  color: #8c9f79;
}
.empty-icon svg {
  width: 27px;
  height: 27px;
}
.empty h3 {
  font-size: 16px;
}
.empty p {
  font-size: 12px;
  color: var(--muted);
  max-width: 330px;
}
.empty .btn {
  margin-top: 10px;
}
.step {
  display: flex;
  gap: 13px;
  margin: 21px 0;
}
.step b {
  display: grid;
  place-items: center;
  flex-shrink: 0;
  width: 29px;
  height: 29px;
  background: #f0f3e9;
  border-radius: 10px;
  font-size: 12px;
  color: #84966c;
}
.step p {
  font-size: 11px;
  color: var(--muted);
  margin-top: 3px;
}
.step h3 {
  font-size: 13px;
}
.section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 25px 0 15px;
}
.cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}
.case-card {
  display: block;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 23px;
  transition: 0.2s;
  min-height: 203px;
}
.case-card:hover {
  border-color: #afc3a3;
  transform: translateY(-3px);
  box-shadow: var(--shadow);
}
.case-symbol {
  height: 42px;
  width: 42px;
  background: #eff3e8;
  border-radius: 13px;
  display: grid;
  place-items: center;
  color: #667c58;
}
.case-card h3 {
  margin: 16px 0 4px;
  font-size: 17px;
}
.case-card p {
  font-size: 12px;
  color: var(--muted);
}
.case-card footer {
  display: flex;
  gap: 15px;
  align-items: center;
  margin-top: 23px;
  padding-top: 14px;
  border-top: 1px solid #f0f2ed;
  font-size: 11px;
  color: #809078;
}
.case-card footer svg {
  width: 15px;
}
.search {
  position: relative;
  min-width: 250px;
}
.search input {
  padding-right: 40px;
}
.search svg {
  position: absolute;
  right: 13px;
  top: 12px;
  width: 17px;
  color: var(--muted);
}
input,
textarea,
select {
  background: #fff;
  border: 1px solid #dfe5dc;
  border-radius: 10px;
  padding: 10px 12px;
  color: var(--ink);
  width: 100%;
  outline: none;
}
input:focus,
textarea:focus,
select:focus {
  border-color: #789c6c;
  box-shadow: 0 0 0 3px #8aa87915;
}
textarea {
  resize: vertical;
  line-height: 1.9;
  min-height: 115px;
}
label {
  display: block;
  font-size: 12px;
  font-weight: 600;
  margin-bottom: 7px;
}
.field {
  margin-bottom: 17px;
}
.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.form-grid .field {
  margin-bottom: 0;
}
.tabs {
  display: flex;
  gap: 24px;
  border-bottom: 1px solid var(--line);
  margin: 25px 0;
}
.tabs button {
  border: 0;
  background: transparent;
  padding: 12px 3px 15px;
  color: var(--muted);
  position: relative;
  font-size: 13px;
}
.tabs button.active {
  color: var(--green);
  font-weight: 700;
}
.tabs button.active:after {
  position: absolute;
  content: "";
  height: 3px;
  bottom: -1px;
  left: 0;
  right: 0;
  background: var(--green);
  border-radius: 5px;
}
.session-row {
  display: flex;
  align-items: center;
  gap: 13px;
  padding: 17px 0;
  border-bottom: 1px solid #edf0e9;
}
.session-row:last-child {
  border: 0;
}
.session-row:hover h3 {
  color: #7e945f;
}
.session-row h3 {
  font-size: 14px;
}
.session-row p {
  font-size: 11px;
  color: var(--muted);
}
.session-row .session-symbol {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background: #f5f6f0;
  display: grid;
  place-items: center;
  color: #91a07e;
}
.session-row .chevron {
  margin-right: auto;
  color: #b8c0b1;
}
.action-row {
  padding: 14px 0;
  display: flex;
  gap: 12px;
  border-bottom: 1px solid #edf0e9;
  align-items: flex-start;
}
.action-row:last-child {
  border: 0;
}
.check {
  margin-top: 4px;
  width: 19px;
  height: 19px;
  border: 1px solid #cdd8c6;
  border-radius: 6px;
  background: white;
  display: grid;
  place-items: center;
  padding: 0;
  flex-shrink: 0;
}
.check.done {
  background: var(--green);
  border-color: var(--green);
  color: #fff;
}
.check svg {
  width: 13px;
}
.action-row.done h3 {
  text-decoration: line-through;
  color: var(--muted);
}
.action-row h3 {
  font-size: 13px;
  font-weight: 550;
}
.action-row p {
  font-size: 11px;
  color: var(--muted);
}
.callout {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 14px 17px;
  background: #f2f5eb;
  border: 1px solid #e3e9d9;
  border-radius: 12px;
  font-size: 12px;
  color: #68765d;
}
.callout.warn {
  background: #fff8ee;
  border-color: #efdfc7;
  color: #967442;
}
.callout svg {
  width: 18px;
  margin-top: 2px;
}
.room-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.75fr) minmax(280px, 1fr);
  gap: 22px;
}
.record-bar {
  background: var(--green);
  color: white;
  border-radius: 15px;
  padding: 18px 22px;
  display: flex;
  align-items: center;
  gap: 17px;
  margin-bottom: 24px;
}
.record-bar p {
  font-size: 11px;
  color: #c8d7ce;
}
.record-bar .timer {
  font-size: 26px;
  font-variant-numeric: tabular-nums;
  letter-spacing: 1px;
  direction: ltr;
}
.record-button {
  display: grid;
  place-items: center;
  background: #e3efc8;
  width: 49px;
  height: 49px;
  border-radius: 50%;
  border: 0;
  color: var(--green);
}
.record-button.live {
  background: #fae5df;
  color: #a8493d;
  animation: pulse 2s infinite;
}
.record-bar .btn {
  background: #ffffff12;
  border-color: #ffffff20;
  color: white;
}
.room-grid .panel {
  min-height: 240px;
}
.transcript {
  white-space: pre-wrap;
  line-height: 2.25;
  font-size: 14px;
  max-height: 500px;
  overflow: auto;
  padding: 8px 0;
}
.transcript-placeholder {
  min-height: 260px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: #98a18f;
  gap: 15px;
}
.transcript-placeholder p {
  font-size: 12px;
  text-align: center;
  max-width: 300px;
}
.note-area {
  border: 0;
  background: #fbfbf6;
  min-height: 180px;
  font-size: 13px;
  padding: 15px;
  box-shadow: none !important;
}
.private-label {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 10px;
  color: #96927c;
}
.private-label svg {
  width: 13px;
}
.guide {
  background: #f3f6eb;
  border-color: #e0e8d3;
}
.guide p {
  font-size: 12px;
  color: #7e8973;
}
.guide .generated {
  color: var(--ink);
  font-size: 13px;
  white-space: pre-wrap;
  margin: 12px 0;
}
.save-status {
  font-size: 10px;
  color: var(--muted);
  margin-top: 8px;
  min-height: 20px;
}
.source {
  font-size: 10px;
  background: #edf2e5;
  border-radius: 6px;
  padding: 3px 7px;
  display: inline-block;
  margin: 3px;
}
.source-list {
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px solid var(--line);
}
.chat-messages {
  display: flex;
  flex-direction: column;
  gap: 20px;
  min-height: 180px;
  max-height: 550px;
  overflow: auto;
  margin-bottom: 20px;
}
.chat-q {
  background: var(--green);
  color: #fff;
  border-radius: 15px 15px 3px 15px;
  padding: 14px 18px;
  align-self: flex-start;
  max-width: 85%;
  font-size: 13px;
}
.chat-a {
  background: #f4f6ef;
  border-radius: 15px 15px 15px 3px;
  padding: 18px;
  align-self: flex-end;
  max-width: 95%;
  font-size: 13px;
  white-space: pre-wrap;
}
.chat-input {
  display: flex;
  gap: 10px;
  align-items: flex-end;
}
.chat-input textarea {
  min-height: 55px;
  height: 55px;
}
.suggestions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 16px;
}
.suggestions button {
  font-size: 11px;
  background: white;
  border: 1px solid var(--line);
  padding: 7px 12px;
  border-radius: 20px;
  color: #738468;
}
.upload-area {
  border: 1px dashed #bfcbb4;
  border-radius: 13px;
  padding: 24px;
  text-align: center;
  background: #fafcf6;
  cursor: pointer;
  display: block;
}
.upload-area p {
  font-size: 11px;
  color: var(--muted);
}
.file-input {
  display: none;
}
.file-row {
  padding: 17px 0;
  border-bottom: 1px solid var(--line);
}
.file-row .file-icon {
  padding: 10px;
  border-radius: 10px;
  background: var(--soft);
  display: flex;
}
.file-row p {
  font-size: 11px;
  color: var(--muted);
}
.file-row h3 {
  font-size: 13px;
  overflow-wrap: anywhere;
}
.modal-backdrop {
  position: fixed;
  inset: 0;
  background: #18382d66;
  backdrop-filter: blur(5px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 100;
  padding: 25px;
}
.modal {
  width: 510px;
  max-width: 100%;
  max-height: 90vh;
  overflow: auto;
  background: #fff;
  border-radius: 20px;
  box-shadow: 0 20px 100px #0f2e3130;
  padding: 28px;
}
.modal.large {
  width: 720px;
}
.modal-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 23px;
}
.modal-head h2 {
  font-size: 20px;
}
.modal-foot {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 25px;
}
.modal .hint {
  font-size: 11px;
  color: var(--muted);
  margin-top: 6px;
}
.modal-error {
  color: #a33e35;
  font-size: 12px;
  margin-top: 10px;
  min-height: 20px;
}
#toast {
  position: fixed;
  bottom: 28px;
  left: 30px;
  background: #223e35;
  color: #fff;
  padding: 12px 23px;
  border-radius: 12px;
  box-shadow: var(--shadow);
  z-index: 200;
  max-width: 420px;
  font-size: 13px;
  opacity: 0;
  transform: translateY(15px);
  pointer-events: none;
  transition: 0.2s;
}
#toast.visible {
  opacity: 1;
  transform: translateY(0);
}
.auth {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 1fr 1fr;
  direction: ltr;
}
.auth-story {
  background: var(--green);
  color: #fff;
  padding: 65px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  direction: rtl;
  position: relative;
  overflow: hidden;
}
.auth-story .brand img {
  width: 48px;
  height: 48px;
}
.auth-story .brand small {
  color: #bbd0c4;
}
.auth-story h1 {
  font-size: 46px;
  line-height: 1.65;
  max-width: 450px;
}
.auth-story p {
  color: #c2d4c8;
  max-width: 360px;
  margin: 22px 0;
  line-height: 2.2;
  font-size: 15px;
}
.auth-story .hero-art {
  justify-content: flex-start;
  margin: 45px 0 20px;
  min-height: 150px;
}
.auth-story .hero-art:before,
.auth-story .hero-art:after {
  display: none;
}
.auth-story footer {
  font-size: 11px;
  color: #a3b9a9;
}
.auth-form-wrap {
  direction: rtl;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 50px;
  background: #fafbf7;
}
.auth-form {
  max-width: 370px;
  width: 100%;
}
.auth-form h2 {
  font-size: 29px;
}
.auth-form > p {
  color: var(--muted);
  font-size: 13px;
  margin: 8px 0 30px;
}
.auth-form .btn.primary {
  width: 100%;
  margin-top: 6px;
}
.auth-switch {
  font-size: 12px;
  text-align: center;
  color: var(--muted);
  margin-top: 20px;
}
.auth-switch button {
  color: var(--green);
  border: 0;
  background: none;
  font-weight: 700;
}
.auth-tip {
  margin-top: 32px;
  border-top: 1px solid var(--line);
  padding-top: 20px;
  font-size: 11px;
  color: #89937f;
  display: flex;
  align-items: center;
  gap: 9px;
}
.boot {
  height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  font-size: 35px;
  color: var(--green);
  font-weight: 800;
}
.boot span {
  font-size: 12px;
  font-weight: 400;
  color: var(--muted);
  margin-top: 15px;
}
.display-page {
  min-height: 100vh;
  padding: 45px 65px;
  background: #f7f9f1;
}
.display-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid #dce3d4;
  padding-bottom: 30px;
  margin-bottom: 45px;
}
.display-page h1 {
  font-size: 36px;
}
.display-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: 45px;
}
.display-grid h2 {
  font-size: 18px;
  color: #8a997b;
  margin-bottom: 25px;
}
.display-text {
  font-size: 25px;
  line-height: 2.2;
  white-space: pre-wrap;
  max-height: 68vh;
  overflow: auto;
}
.display-summary {
  font-size: 20px;
  line-height: 2.3;
  white-space: pre-wrap;
}
.settings-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 25px;
}
.usage-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 12px;
}
.usage-table th,
.usage-table td {
  text-align: right;
  padding: 15px 12px;
  border-bottom: 1px solid var(--line);
}
.usage-table th {
  color: var(--muted);
  font-weight: 500;
}
.spinner {
  width: 18px;
  height: 18px;
  border: 2px solid #a7b993;
  border-top-color: transparent;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}
.error-block {
  margin: 15px 0;
  background: #fff0ed;
  color: #a34635;
  padding: 13px 17px;
  border-radius: 10px;
  font-size: 12px;
}
.view-mode {
  display: inline-flex;
  padding: 4px;
  background: #eef2e7;
  border-radius: 11px;
  gap: 5px;
}
.view-mode span {
  padding: 4px 11px;
  font-size: 11px;
  background: white;
  border-radius: 8px;
}
.view-mode .muted {
  background: none;
}
.meta-line {
  font-size: 11px;
  color: var(--muted);
  margin-top: 10px;
}
.mobile-brand {
  display: none;
}
.no-margin {
  margin: 0;
}
.mt {
  margin-top: 20px;
}
.pre {
  white-space: pre-wrap;
}
.stats-inline {
  display: flex;
  gap: 24px;
  margin: 20px 0;
  color: var(--muted);
  font-size: 12px;
}
.recovery {
  border: 1px solid #dbc698;
  background: #fff8e9;
  padding: 15px;
  border-radius: 12px;
  margin-bottom: 20px;
  font-size: 12px;
}
@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}
@keyframes pulse {
  50% {
    box-shadow: 0 0 0 9px #fbe0d215;
  }
}
@media (min-width: 1550px) {
  .content {
    padding-top: 45px;
  }
  .hero {
    min-height: 220px;
  }
  .hero h2 {
    font-size: 26px;
  }
}
@media (max-width: 1150px) {
  .sidebar {
    width: 205px;
    padding: 26px 15px;
  }
  .main {
    margin-right: 205px;
  }
  .content {
    padding: 28px;
  }
  .topbar {
    padding: 0 28px;
  }
  .cards {
    grid-template-columns: repeat(2, 1fr);
  }
  .room-grid,
  .columns {
    grid-template-columns: 1.4fr 1fr;
  }
  .hero {
    padding: 26px;
  }
  .hero-art {
    min-width: 120px;
  }
  .metrics {
    gap: 10px;
  }
  .metric {
    padding: 15px;
  }
  .auth-story {
    padding: 40px;
  }
  .auth-story h1 {
    font-size: 37px;
  }
}
@media (max-width: 850px) {
  .sidebar {
    width: 78px;
    padding: 25px 12px;
  }
  .sidebar .brand strong,
  .sidebar .brand small,
  .nav a span,
  .nav .count,
  .nav-label,
  .sidebar-note,
  .profile .grow,
  .profile .icon-btn {
    display: none;
  }
  .sidebar .brand {
    justify-content: center;
  }
  .nav {
    margin-top: 35px;
  }
  .nav a {
    justify-content: center;
    padding: 14px 8px;
  }
  .sidebar .profile {
    justify-content: center;
  }
  .main {
    margin-right: 78px;
  }
  .columns,
  .room-grid,
  .settings-grid {
    grid-template-columns: 1fr;
  }
  .room-grid > .stack {
    display: grid;
    grid-template-columns: 1fr 1fr;
  }
  .hero-art {
    display: none;
  }
  .metrics {
    grid-template-columns: repeat(2, 1fr);
  }
  .topbar-date {
    display: none;
  }
  .auth {
    grid-template-columns: 1fr;
  }
  .auth-story {
    display: none;
  }
  .auth-form-wrap {
    min-height: 100vh;
    padding: 30px;
  }
  .mobile-brand {
    display: flex;
    margin-bottom: 40px;
  }
  .display-page {
    padding: 25px;
  }
  .display-grid {
    grid-template-columns: 1fr;
  }
  .display-text {
    font-size: 21px;
    max-height: 40vh;
  }
  .display-summary {
    font-size: 18px;
  }
}
@media (max-width: 560px) {
  .sidebar {
    position: fixed;
    top: auto;
    bottom: 0;
    left: 0;
    right: 0;
    width: auto;
    height: 65px;
    overflow: hidden;
    display: block;
    padding: 0 10px;
    border-top: 1px solid var(--line);
    border-left: 0;
  }
  .sidebar > .brand,
  .sidebar > .spacer,
  .sidebar > .profile {
    display: none;
  }
  .nav {
    margin: 0;
    flex-direction: row;
    justify-content: flex-start;
    overflow-x: auto;
    overscroll-behavior-x: contain;
    scrollbar-width: thin;
    gap: 0;
    height: 65px;
    align-items: center;
  }
  .nav a {
    flex-shrink: 0;
    padding: 12px;
  }
  .main {
    margin: 0 0 65px;
  }
  .topbar {
    height: 64px;
    padding: 0 18px;
  }
  .content {
    padding: 23px 18px 40px;
  }
  h1 {
    font-size: 24px;
  }
  .page-head {
    align-items: flex-start;
    gap: 12px;
    flex-wrap: wrap;
  }
  .page-head .btn {
    font-size: 12px;
    padding: 9px 12px;
  }
  .hero {
    padding: 25px;
    min-height: 185px;
  }
  .hero h2 {
    font-size: 20px;
  }
  .hero p {
    font-size: 12px;
  }
  .cards {
    grid-template-columns: 1fr;
  }
  .panel {
    padding: 19px;
  }
  .room-grid > .stack {
    display: flex;
  }
  .record-bar {
    flex-wrap: wrap;
    padding: 16px;
    gap: 12px;
  }
  .record-bar .timer {
    font-size: 23px;
  }
  .record-bar > .spacer {
    display: none;
  }
  .record-bar .btn {
    margin-right: auto;
  }
  .form-grid {
    grid-template-columns: 1fr;
  }
  .tabs {
    gap: 19px;
    overflow: auto;
    white-space: nowrap;
  }
  .search {
    min-width: 100%;
    width: 100%;
  }
  .modal {
    padding: 23px;
  }
  .modal-backdrop {
    padding: 14px;
  }
  .display-head .brand {
    display: none;
  }
  .display-page h1 {
    font-size: 26px;
  }
  .usage-table {
    font-size: 10px;
  }
  .usage-table td,
  .usage-table th {
    padding: 10px 4px;
  }
  .metrics {
    margin-top: 17px;
    gap: 10px;
  }
  .metric .value {
    font-size: 25px;
  }
  .content > .callout {
    margin-bottom: 15px;
  }
  #toast {
    bottom: 80px;
    left: 18px;
    right: 18px;
    max-width: none;
  }
  .session-row .badge {
    display: none;
  }
}
.package-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 20px;
  margin: 24px 0;
}
.package-card {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.package-card .btn {
  margin-top: auto;
}
.package-price {
  font-size: 30px;
  font-weight: 800;
  color: var(--green, #244f46);
}
.package-price small {
  font-size: 14px;
  font-weight: 400;
}
.admin-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
  gap: 24px;
}
.admin-grid h2 {
  margin-bottom: 20px;
}
.admin-grid select {
  width: 100%;
  margin: 10px 0 20px;
}
.onboarding-steps {
  line-height: 2.8;
  margin-top: 30px;
  opacity: 0.8;
}
.table-scroll {
  overflow: auto;
}
.row input[type="checkbox"] {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}
.admin-grid .session-row {
  overflow-wrap: anywhere;
}
@media (max-width: 850px) {
  .admin-grid {
    grid-template-columns: 1fr;
  }
  .package-grid {
    grid-template-columns: 1fr;
  }
}

/* All sign-in steps share one centered, responsive card. */
.auth.auth-centered {
  min-height: 100vh;
  min-height: 100dvh;
  grid-template-columns: minmax(0, 1fr);
  place-items: center;
  padding: 32px 20px;
  direction: rtl;
  background: radial-gradient(ellipse at top, #e7eee5 0%, #f7f8f4 65%);
}
.markdown { white-space: normal; line-height: 2.1; overflow-wrap: anywhere; }
.markdown > :first-child { margin-top: 0; }
.markdown p, .markdown ul, .markdown ol, .markdown blockquote { margin: 12px 0; }
.markdown ul, .markdown ol { padding-inline-start: 26px; }
.markdown h1, .markdown h2, .markdown h3, .markdown h4 { margin: 22px 0 10px; line-height: 1.7; }
.markdown h1 { font-size: 24px; }
.markdown h2 { font-size: 21px; }
.markdown h3 { font-size: 18px; }
.markdown blockquote { border-inline-start: 3px solid #9cb5a8; padding-inline-start: 16px; color: var(--muted); }
.markdown pre { direction: ltr; text-align: left; overflow-x: auto; background: #f4f6f2; padding: 16px; border-radius: 12px; }
.markdown table { border-collapse: collapse; display: block; overflow-x: auto; max-width: 100%; }
.markdown td, .markdown th { padding: 8px 12px; border: 1px solid var(--line); }
.markdown a { color: #336c9c; text-decoration: underline; }
.record-bar.paused { background: #fff4dc; border-color: #d7ae60; color: #684e1f; }
.record-bar.paused p { color: #755f37; }
.record-bar.paused .btn { color: #684e1f; border-color: #d7ae60; background: #fff; }
.record-bar.paused .record-button { animation: none; background: #947029; color: white; }
.transcript { overflow-anchor: none; }
.speaker-turn { white-space: normal; padding: 14px 0; border-bottom: 1px solid var(--line); }
.speaker-turn p { margin: 10px 0 0; white-space: pre-wrap; }
.speaker-name { display: inline-flex; align-items: center; gap: 8px; color: var(--green); background: #edf3e6; border: 0; border-radius: 20px; padding: 4px 12px; cursor: pointer; font-weight: 700; }
.speaker-name svg { width: 14px; height: 14px; }
.report-layout { display: grid; gap: 22px; }
.report-section { min-width: 0; }
.report-section > h2 { margin-bottom: 20px; }
.report-nav { display: flex; flex-wrap: wrap; gap: 6px; margin: 20px 0; }
.report-metrics { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 18px; }
.report-metrics > div { display: grid; gap: 8px; padding: 18px; background: #f5f7f1; border-radius: 14px; }
.report-metrics strong { font-size: 25px; color: var(--green); }
.report-metrics span { color: var(--muted); font-size: 12px; }
#report-map { width: 100%; height: 480px; direction: ltr; }
#report-map { --markmap-font: 400 16px/26px Yekan, Tahoma, sans-serif; }
#report-map .markmap-foreign { direction: ltr; }
#report-map .markmap-foreign > div { text-align: left; }
#report-map .markmap-foreign > div > div { direction: rtl; text-align: right; }
#report-cloud { max-width: 820px; margin: auto; }
#report-cloud svg { width: 100%; height: auto; }
.shared-report { max-width: 1100px; margin: auto; padding: 45px 24px; }
.shared-report header { margin-bottom: 32px; }
.share-sections { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin: 22px 0; }
.share-sections label { display: flex; align-items: center; gap: 10px; }
.share-sections input { width: 18px; height: 18px; }
.share-row { display: flex; justify-content: space-between; gap: 12px; border-top: 1px solid var(--line); padding: 14px 0; font-size: 12px; }
@media (max-width: 650px) {
  .report-metrics { grid-template-columns: 1fr 1fr; gap: 10px; }
  #report-map { height: 350px; }
  .shared-report { padding: 24px 16px; }
}
@media print {
  .sidebar, .topbar, .report-nav, .map-tools, .page-head .row, #toast, #modal-root { display: none !important; }
  .content, .shared-report { padding: 0; margin: 0; max-width: none; }
  .report-section { break-inside: avoid; box-shadow: none; }
  .app-layout { display: block; }
}
.auth-centered .auth-main {
  width: 100%;
  max-width: 440px;
  min-width: 0;
}
.auth-centered .auth-card {
  padding: 36px;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: #fff;
  box-shadow: 0 16px 48px #244f4610;
}
.auth-centered .brand {
  justify-content: center;
  margin-bottom: 32px;
}
.auth-centered h2 {
  text-align: center;
  font-size: 26px;
}
.auth-centered .auth-card > p {
  text-align: center;
  color: var(--muted);
  font-size: 13px;
  line-height: 2;
  margin: 10px 0 28px;
}
.auth-centered .btn.primary { width: 100%; }
.auth-centered #bootstrap-link { text-align: center; margin-top: 16px; }

/* Meeting controls stay in the viewport; only the reading panes scroll. */
.main.meeting-workspace { height: 100dvh; min-height: 0; display: flex; flex-direction: column; overflow: hidden; }
.meeting-workspace .topbar { height: 54px; flex: 0 0 auto; }
.meeting-workspace .content { width: 100%; max-width: none; min-height: 0; flex: 1; display: flex; flex-direction: column; padding: 16px 24px; }
.meeting-heading { flex: 0 0 auto; }
.meeting-heading .page-head { gap: 12px; margin-bottom: 12px; }
.meeting-heading h1 { font-size: 23px; line-height: 1.5; overflow-wrap: anywhere; }
.meeting-heading .page-head p { max-height: 44px; overflow: auto; margin-top: 4px; }
.meeting-heading .record-bar { padding: 10px 16px; margin-bottom: 10px; gap: 12px; }
.meeting-workspace .tabs { flex: 0 0 auto; margin-bottom: 12px; }
.meeting-workspace .content > .callout, .meeting-workspace .content > .error-block { max-height: 72px; overflow: auto; flex-shrink: 0; }
.meeting-workspace .room-grid { flex: 1; min-height: 0; gap: 16px; grid-template-columns: minmax(0, 1.7fr) minmax(270px, 1fr); }
.meeting-workspace .room-grid > .panel, .meeting-workspace .room-grid > .stack { min-height: 0; min-width: 0; overflow-y: auto; overscroll-behavior-y: contain; scrollbar-gutter: stable; }
.meeting-workspace .room-grid > .stack { display: flex; flex-direction: column; gap: 16px; }
.meeting-workspace .room-grid > .stack > .panel { flex-shrink: 0; min-height: 0; }
.meeting-workspace .panel { padding: 16px; }
.meeting-workspace .panel-head { flex-wrap: wrap; margin-bottom: 10px; }
.meeting-workspace .panel-head > .row { flex-wrap: wrap; }
.meeting-workspace .meeting-panel[data-tab="transcript"] { display: flex; flex-direction: column; overflow: hidden; }
.meeting-workspace .meeting-panel[data-tab="transcript"] > :not(.transcript) { flex-shrink: 0; }
.meeting-workspace #transcript-content { flex: 1; min-height: 0; max-height: none; overflow-y: auto; overscroll-behavior-y: contain; scrollbar-gutter: stable; }
.meeting-workspace .meeting-panel[data-tab="summary"] .transcript { max-height: none; overflow: visible; }
@media (max-width: 1000px) {
  .meeting-workspace .content { padding: 12px; }
  .meeting-heading .page-head { flex-wrap: wrap; }
  .meeting-workspace .room-grid { display: block; overflow-y: auto; overscroll-behavior-y: contain; }
  .meeting-workspace .meeting-panel { margin-bottom: 16px; }
  .meeting-workspace #transcript-content { flex: auto; min-height: 220px; max-height: 55dvh; }
  .meeting-workspace .room-grid > .stack { overflow: visible; }
}
@media (max-width: 560px) {
  .main.meeting-workspace { height: calc(100dvh - 65px); margin-bottom: 65px; }
  .meeting-workspace .topbar { display: none; }
  .meeting-heading h1 { font-size: 18px; }
  .meeting-heading .eyebrow, .meeting-heading .page-head p { display: none; }
  .meeting-heading .page-head > .row { flex-wrap: nowrap; overflow-x: auto; width: 100%; }
  .meeting-heading .page-head > .row .btn { flex-shrink: 0; }
  .meeting-heading .record-bar { padding: 8px; gap: 8px; }
  .meeting-heading .record-bar p { font-size: 11px; }
  .meeting-workspace .tabs { gap: 4px; }
  .meeting-workspace .tabs button { padding: 8px 6px; font-size: 12px; }
}
.auth-centered input { min-width: 0; }
.auth-centered input[dir="ltr"] { text-align: center; letter-spacing: 1px; }
@media (max-width: 480px) {
  .auth.auth-centered { padding: 20px 16px; }
  .auth-centered .auth-card { padding: 28px 22px; border-radius: 20px; }
}
