:root {
  color-scheme: light;
  font-family: Vazirmatn, "Noto Sans Arabic", Tahoma, sans-serif;
  color: #172b3a;
  background: #f5f8f7;
  font-synthesis: none;
  text-rendering: optimizeLegibility;
  font-optical-sizing: auto;
  --ink: #172b3a;
  --muted: #74838b;
  --line: #e5ece9;
  --green: #177967;
  --green-dark: #105d51;
  --paper: #fff;
}

* { box-sizing: border-box; }

body {
  min-height: 100vh;
  margin: 0;
  background:
    radial-gradient(ellipse at 49% 14%, #e3f2ed 0, transparent 34rem),
    linear-gradient(180deg, #f8faf9 0, #f3f7f5 100%);
}

a { color: inherit; }

.topbar {
  height: 76px;
  padding: 0 max(24px, calc((100% - 1120px) / 2));
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgb(255 255 255 / 82%);
  border-bottom: 1px solid rgb(224 234 230 / 85%);
  backdrop-filter: blur(12px);
}

.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none; font-size: 19px; font-weight: 800; }
.brand-mark { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 12px; color: white; background: var(--green); font-size: 21px; box-shadow: 0 5px 12px #17796735; }
.brand-divider { width: 1px; height: 22px; margin-inline: 4px; background: #dfe8e4; }
.brand-caption,.topbar-note { color: #75858b; font-size: 12px; font-weight: 500; }
.topbar-note { display: inline-flex; align-items: center; gap: 8px; }
.topbar-note i,.eyebrow-dot { width: 8px; height: 8px; display: inline-block; border-radius: 50%; background: #39a98b; box-shadow: 0 0 0 4px #39a98b1c; }

.container { max-width: 1120px; margin: 0 auto; padding: 74px 24px 64px; }
.hero { position: relative; isolation: isolate; text-align: center; padding: 16px 0 36px; }
.hero-orbit { position: absolute; z-index: -1; border: 1px solid #d9e9e3; border-radius: 50%; pointer-events: none; }
.orbit-one { width: 250px; height: 250px; top: -25px; right: 7%; opacity: .6; }
.orbit-two { width: 160px; height: 160px; top: 18px; right: calc(7% + 45px); opacity: .5; }
.eyebrow { display: inline-flex; align-items: center; gap: 9px; margin: 0 0 19px; padding: 9px 14px; border: 1px solid #dcece6; border-radius: 999px; background: #f8fcfa; color: var(--green-dark); font-size: 12px; font-weight: 700; }
.eyebrow-dot { width: 7px; height: 7px; box-shadow: none; }
.hero h1,.page-heading h1,.panel h1 { margin: 0 0 13px; color: var(--ink); font-size: clamp(31px, 5vw, 47px); font-weight: 800; line-height: 1.55; letter-spacing: -.045em; }
.hero h1 span { color: var(--green); }
.muted { color: var(--muted); line-height: 1.9; }
.hero .muted { margin: 0; font-size: 15px; }

.role-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px; max-width: 900px; margin: 23px auto 0; }
.role-card,.panel,.meeting-card { background: var(--paper); border: 1px solid var(--line); border-radius: 22px; box-shadow: 0 14px 44px rgb(25 57 47 / 6%); }
.role-card { position: relative; display: flex; min-height: 275px; flex-direction: column; align-items: flex-start; overflow: hidden; padding: 28px 30px 25px; color: var(--ink); text-decoration: none; transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease; }
.role-card::before { position: absolute; inset: 0 0 auto; height: 4px; content: ""; background: linear-gradient(90deg, #61bea4, #177967); opacity: .75; }
.participant-card::before { background: linear-gradient(90deg, #e9b66d, #d98249); }
.role-card:hover { transform: translateY(-5px); border-color: #c7ded5; box-shadow: 0 22px 55px rgb(25 57 47 / 11%); }
.role-icon { display: grid; place-items: center; width: 54px; height: 54px; margin-bottom: 17px; border: 1px solid #dcefe8; border-radius: 17px; background: #edf7f3; color: var(--green); }
.role-icon svg { width: 29px; height: 29px; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.participant-card .role-icon { border-color: #f3e5d5; background: #fcf4e9; color: #bd743b; }
.role-overline { color: #81908f; font-size: 11px; font-weight: 700; }
.role-card h2 { margin: 6px 0 3px; font-size: 22px; font-weight: 800; letter-spacing: -.02em; }
.role-card p { max-width: 340px; min-height: 48px; margin: 0; color: var(--muted); font-size: 13px; line-height: 1.9; }
.card-action { display: inline-flex; align-items: center; gap: 10px; margin-top: auto; padding-top: 17px; color: var(--green); font-size: 13px; font-weight: 800; }
.participant-card .card-action { color: #a76532; }
.card-action b { font-size: 18px; transition: transform .2s ease; }
.role-card:hover .card-action b { transform: translateX(-4px); }
.card-decoration { position: absolute; left: 20px; bottom: 6px; color: #e8f1ed; font-size: 92px; line-height: 1; pointer-events: none; }
.participant-card .card-decoration { color: #faf0e4; }
.home-footnote { display: flex; align-items: center; justify-content: center; gap: 9px; margin: 27px 0 0; color: #899790; font-size: 11px; }
.home-footnote span { color: #49a68e; font-size: 10px; }

.narrow { max-width: 560px; margin: 0 auto; }
.panel { padding: 28px; }
.panel form { margin-top: 22px; }
.panel label,.field label { display: block; margin: 0 0 8px; font-size: 14px; font-weight: 600; }
.panel input,.field input,.field textarea,.field select { width: 100%; border: 1px solid #d7e2dd; border-radius: 11px; outline: none; padding: 12px 13px; background: #fff; color: #18332d; font: inherit; }
.panel input:focus,.field input:focus,.field textarea:focus,.field select:focus { border-color: #58a994; box-shadow: 0 0 0 3px #e5f3ee; }
.panel form label:not(:first-child) { margin-top: 17px; }
.button { display: inline-flex; align-items: center; justify-content: center; gap: 7px; border: 0; border-radius: 11px; padding: 11px 17px; font: inherit; font-weight: 700; text-decoration: none; white-space: nowrap; cursor: pointer; transition: transform .15s ease, box-shadow .15s ease; }
.button:hover { transform: translateY(-1px); }
.primary { background: var(--green); color: #fff; box-shadow: 0 6px 15px #17796728; }
.secondary { background: #eaf4f0; color: #176b5b; }
.ghost { border: 1px solid #dce5e1; background: #fff; color: #53677e; }
.danger { background: #fff0ef; color: #b64038; }
.disabled { background: #edf1f0; color: #8b9996; cursor: not-allowed; }
.full { width: 100%; margin-top: 18px; }
.page-heading { display: flex; align-items: center; justify-content: space-between; gap: 22px; margin-bottom: 30px; }
.page-heading h1 { margin-bottom: 3px; font-size: clamp(25px, 4vw, 34px); }
.heading-actions,.actions { display: flex; align-items: center; gap: 10px; }
.heading-actions form,.detail-actions form { margin: 0; }
.section-title { margin: 28px 0 14px; font-size: 19px; }
.meeting-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 16px; }
.meeting-card { padding: 19px; }
.card-top { display: flex; align-items: center; justify-content: space-between; }
.meeting-card h3 { margin: 16px 0 3px; font-size: 18px; }
.small { font-size: 12px; }
.badge { display: inline-block; border-radius: 30px; padding: 5px 10px; font-size: 12px; font-weight: 700; }
.badge.scheduled { background: #fff4da; color: #a87500; }
.badge.live { background: #e3f6ed; color: #1b805b; }
.badge.ended { background: #edf0f4; color: #66758a; }
.countdown { color: #346cb4; font-size: 13px; font-weight: 600; }
.empty { margin-top: 20px; text-align: center; }
.empty h3 { margin-top: 0; }
.back { display: inline-block; margin-bottom: 16px; color: #67809a; text-decoration: none; }
.field { margin: 17px 0; }
.field small,.hint { display: block; margin-top: 6px; color: #7e8ea1; font-size: 12px; }
.field ul.errorlist,.errorlist { padding-right: 20px; color: #b64038; font-size: 13px; }
.hidden { display: none; }
.actions { margin-top: 23px; }
.meeting-detail { padding: 26px; }
.phone-list { display: flex; flex-wrap: wrap; gap: 9px; }
.phone-list span { border-radius: 9px; padding: 8px 12px; background: #f0f4f8; font-size: 13px; }
.detail-actions,.artifact-form,.artifacts { border-top: 1px solid #e8edf3; }
.detail-actions { padding-top: 20px; }
.artifact-form { margin-top: 26px; padding-top: 5px; }
.artifacts { margin-top: 28px; padding-top: 5px; line-height: 1.9; }
.summary { border-radius: 12px; padding: 17px; background: #f5f8fc; line-height: 2; }
.artifacts a { color: #286ab9; overflow-wrap: anywhere; }
.notices { margin-bottom: 16px; }
.notice { margin-bottom: 8px; border-radius: 10px; padding: 11px 14px; background: #eaf3ff; color: #315a87; }
.notice.success { background: #e7f7ef; color: #20724f; }
.notice.error,.notice.warning { background: #fff0ed; color: #a74338; }
footer { padding: 21px; color: #96a39e; font-size: 11px; text-align: center; }
footer span { padding-inline-start: 5px; color: #54a48d; }

@media (max-width: 800px) {
  .meeting-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .page-heading { align-items: flex-start; }
  .heading-actions { flex-direction: column; align-items: stretch; }
  .orbit-one { right: 0; }
  .orbit-two { right: 45px; }
}

@media (max-width: 580px) {
  .topbar { height: 64px; padding: 0 17px; }
  .brand { gap: 8px; font-size: 17px; }
  .brand-caption { display: none; }
  .topbar-note { font-size: 10px; }
  .container { padding: 48px 16px 44px; }
  .role-grid,.meeting-grid { grid-template-columns: 1fr; }
  .role-grid { gap: 14px; }
  .role-card { min-height: 250px; padding: 25px; }
  .hero { padding: 9px 0 24px; }
  .hero h1 { font-size: clamp(29px, 9vw, 39px); }
  .hero .muted { max-width: 320px; margin: auto; font-size: 13px; }
  .orbit-one { width: 155px; height: 155px; top: 0; }
  .orbit-two { width: 100px; height: 100px; top: 27px; right: 28px; }
  .page-heading { display: block; }
  .heading-actions { flex-direction: row; margin-top: 16px; }
  .panel { padding: 21px; }
  .meeting-detail { padding: 18px; }
  .detail-actions { align-items: stretch; flex-direction: column; }
  .detail-actions .button,.detail-actions form,.detail-actions form button { width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
  *,*::before,*::after { scroll-behavior: auto !important; transition-duration: .01ms !important; }
}
