@font-face { font-family: "Gilroy"; src: url("/static/fonts/Gilroy-Regular.woff") format("woff"); font-style: normal; font-weight: 400; font-display: swap; }
@font-face { font-family: "Gilroy"; src: url("/static/fonts/Gilroy-Medium.woff") format("woff"); font-style: normal; font-weight: 500; font-display: swap; }
@font-face { font-family: "Gilroy"; src: url("/static/fonts/Gilroy-Semibold.woff") format("woff"); font-style: normal; font-weight: 600 800; font-display: swap; }

:root {
  --paper: #f8faf6; --paper-deep: #eef3e9; --surface: #ffffff; --surface-soft: #f4faec;
  --ink: #101923; --ink-soft: #33373d; --muted: #69727d;
  --line: rgba(69, 69, 69, .12); --line-strong: rgba(69, 69, 69, .21);
  --blue: #85c44f; --blue-hover: #72b33b; --blue-soft: #e6f1d8; --cyan: #a9d67d;
  --success: #4f982f; --warning: #a36c12;
  --font: "Gilroy", "Segoe UI Variable", "Segoe UI", Arial, sans-serif;
  --brand-green: #85c44f; --brand-green-deep: #67a438; --brand-graphite: #63656c; --brand-cream: #f4faec;
}

body {
  letter-spacing: 0;
  background:
    linear-gradient(rgba(133, 196, 79, .045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(133, 196, 79, .045) 1px, transparent 1px),
    radial-gradient(circle at 13% 10%, rgba(133, 196, 79, .14), transparent 26rem),
    radial-gradient(circle at 88% 88%, rgba(128, 166, 241, .08), transparent 31rem), var(--paper);
  background-size: 56px 56px, 56px 56px, auto, auto, auto;
}
::selection { color: var(--ink); background: rgba(133, 196, 79, .35); }
:focus-visible { outline-color: rgba(133, 196, 79, .58); }

.topbar { min-height: 74px; border-bottom-color: rgba(133, 196, 79, .17); background: rgba(255, 255, 255, .9); box-shadow: 0 1px 0 rgba(133, 196, 79, .08); }
.brand { gap: 13px; }
.brand-logo { width: min(250px, 34vw); height: auto; display: block; }
.brand-product { min-height: 31px; display: inline-flex; align-items: center; padding-left: 13px; border-left: 1px solid rgba(69, 69, 69, .18); color: var(--ink); font-size: 13px; font-weight: 600; letter-spacing: .01em; white-space: nowrap; }
.navlink { font-weight: 500; }
.navlink:hover { color: var(--brand-green-deep); background: var(--brand-cream); }
#navArch, #navAnalytics, body.home-mode #navHome { color: var(--brand-green-deep); }

.home-mode .topbar { min-height: 74px; }
.home-hub { min-height: calc(100dvh - 74px); padding-bottom: 72px; }
.home-shell { width: min(650px, 100%); }
.home-logo { width: min(350px, 76vw); height: auto; margin-bottom: 12px; }
.home-heading p, .lobby-kicker, .protocol-kicker, .share-kicker { color: var(--brand-green-deep); font-weight: 600; letter-spacing: .075em; }
.home-heading h1 { max-width: 620px; margin-inline: auto; font-weight: 600; letter-spacing: -.025em; }
.home-heading > span { max-width: 520px; color: #5f6872; }
.home-actions::after { border-color: var(--paper); background: var(--brand-green); box-shadow: 0 0 0 1px rgba(133,196,79,.2); }
.home-action { border-radius: 23px; border-color: rgba(69,69,69,.1); background: rgba(255,255,255,.9); box-shadow: 0 14px 38px rgba(16,25,35,.07), inset 0 1px rgba(255,255,255,.9); }
.home-action:not(:disabled):hover { border-color: rgba(133,196,79,.5); box-shadow: 0 19px 45px rgba(58,95,30,.12); }
.home-action-primary { border-color: rgba(133,196,79,.38); background: linear-gradient(145deg, #fff 25%, #f0f8e7 100%); }
.home-action-primary .home-action-icon { color: var(--brand-green-deep); background: var(--blue-soft); }
.home-action-icon { border-radius: 15px; }
.home-action strong { font-weight: 600; }
.home-action-disabled { background: rgba(240,243,237,.8); }

.btn-primary { border-color: var(--brand-green); background: var(--brand-green); box-shadow: 0 10px 24px rgba(103,164,56,.24), inset 0 1px rgba(255,255,255,.2); }
.btn-primary:hover { border-color: var(--brand-green-deep); background: var(--brand-green-deep); }
.field input:focus, .field select:focus, .home-join input:focus { border-color: rgba(133,196,79,.82); box-shadow: 0 0 0 4px rgba(133,196,79,.15); }
.switch input:checked + .slider { background: var(--brand-green); }

.lobby-brand { width: min(210px, 52vw); height: auto; }
.lobby-icon { width: auto; height: auto; border-radius: 0; background: transparent; box-shadow: none; }
.lobby-head h1 { font-weight: 600; letter-spacing: -.035em; }
.lobby-card > .field, .lobby-card > .grid2, .lobby-card > .devices, .lobby-card > .switch-field, .preview-row { border-color: rgba(133,196,79,.16); }

.call-brand { gap: 7px; font-weight: 600; }
.call-brand-logo { width: 21px; height: 21px; display: block; }
.room-tag { border-color: rgba(133,196,79,.22); }
.pill:hover, .ctrl:hover { border-color: rgba(133,196,79,.45); }
.ctrl.on, .pill.on, .stage-copy { color: #102012; background: var(--brand-green); }
.tile.speaking { box-shadow: 0 0 0 3px var(--brand-green), 0 16px 40px rgba(0,0,0,.35); }

.tab.active { color: var(--brand-green-deep); border-color: var(--brand-green); }
.protocol-section li::marker, .card-eyebrow, .analytics-kicker { color: var(--brand-green-deep); }
.protocol-lead { border-color: rgba(133,196,79,.35); background: linear-gradient(135deg,#fff,#f3faeb); }
.public-protocol-page { background: radial-gradient(circle at 50% -10%, rgba(133,196,79,.14), transparent 34rem), var(--paper); }
.archive-lock-icon { color: var(--brand-green-deep); background: var(--blue-soft); }

@media (max-width: 760px) {
  .topbar { min-height: 62px; padding-inline: 14px; }
  .home-mode .topbar { min-height: 62px; }
  .home-hub { min-height: calc(100dvh - 62px); }
  .brand-logo { width: 145px; }
  .brand-product { display: none; }
  .topbar nav { gap: 0; }
  .navlink { padding-inline: 9px; font-size: 12px; }
  .home-logo { width: min(300px, 82vw); }
}

@media (prefers-reduced-motion: reduce) { body { background-attachment: scroll; } }

/* Authentication and personal workspace */
.auth-mode, .account-mode { min-height: 100dvh; }
.auth-topbar, .account-topbar { position: relative; }
.auth-page {
  width: min(1120px, calc(100% - 40px));
  min-height: calc(100dvh - 74px);
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(340px, .85fr);
  align-items: center;
  gap: clamp(42px, 8vw, 110px);
  margin: 0 auto;
  padding: 54px 0 76px;
}
.auth-intro { max-width: 590px; }
.auth-kicker, .account-eyebrow { margin: 0 0 10px; color: var(--brand-green-deep); font-size: 11px; font-weight: 600; letter-spacing: .09em; text-transform: uppercase; }
.auth-intro h1 { max-width: 560px; margin: 0; color: var(--ink); font-size: clamp(40px, 6vw, 68px); font-weight: 600; line-height: .99; letter-spacing: -.045em; text-wrap: balance; }
.auth-intro > p:not(.auth-kicker) { max-width: 520px; margin: 22px 0 0; color: var(--muted); font-size: 17px; line-height: 1.55; }
.auth-signal { height: 90px; display: flex; align-items: flex-end; gap: 13px; margin-top: 38px; }
.auth-signal i { width: 10px; border-radius: 999px; background: var(--brand-green); box-shadow: 0 0 0 6px rgba(133,196,79,.08); }
.auth-signal i:nth-child(1) { height: 22px; }.auth-signal i:nth-child(2) { height: 47px; }.auth-signal i:nth-child(3) { height: 72px; }.auth-signal i:nth-child(4) { height: 42px; }.auth-signal i:nth-child(5) { height: 61px; }
.auth-card { padding: clamp(28px, 4vw, 42px); border: 1px solid rgba(133,196,79,.2); border-radius: 28px; background: rgba(255,255,255,.9); box-shadow: 0 28px 80px rgba(42,63,31,.12), inset 0 1px #fff; backdrop-filter: blur(22px); }
.auth-card-head > span { color: var(--brand-green-deep); font-size: 11px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; }
.auth-card-head h2 { margin: 7px 0 5px; font-size: 30px; font-weight: 600; letter-spacing: -.025em; }
.auth-card-head p { margin: 0 0 26px; color: var(--muted); font-size: 13px; }
.auth-card form { display: grid; gap: 8px; }
.auth-card label { margin-top: 7px; color: var(--ink-soft); font-size: 12px; font-weight: 600; }
.auth-card input, .account-join input { width: 100%; min-height: 50px; border: 1px solid var(--line-strong); border-radius: 14px; padding: 0 15px; color: var(--ink); background: rgba(255,255,255,.86); outline: 0; }
.auth-card input:focus, .account-join input:focus { border-color: var(--brand-green); box-shadow: 0 0 0 4px rgba(133,196,79,.14); }
.password-field { position: relative; }
.password-field input { padding-right: 90px; }
.password-field button { position: absolute; inset: 5px 6px 5px auto; border: 0; border-radius: 10px; padding: 0 11px; color: var(--muted); background: transparent; font-size: 11px; font-weight: 600; }
.password-field button:hover { color: var(--brand-green-deep); background: var(--brand-cream); }
.auth-submit { width: 100%; margin-top: 4px; }
.auth-error { min-height: 18px; margin: 3px 0 0; color: var(--danger); font-size: 12px; }
.auth-guest-note { display: grid; gap: 3px; margin-top: 24px; padding-top: 20px; border-top: 1px solid var(--line); }
.auth-guest-note strong { font-size: 12px; }.auth-guest-note span { color: var(--muted); font-size: 12px; line-height: 1.45; }

.account-logout { min-height: 38px; border: 1px solid var(--line); border-radius: 11px; padding: 0 14px; color: var(--muted); background: rgba(255,255,255,.62); font-size: 12px; font-weight: 500; }
.account-logout:hover { color: var(--ink); border-color: var(--line-strong); background: #fff; }
.account-page { width: min(1120px, calc(100% - 40px)); margin: 0 auto; padding: 60px 0 90px; }
.account-heading { display: flex; align-items: flex-end; justify-content: space-between; gap: 30px; margin-bottom: 34px; }
.account-heading h1 { margin: 0; font-size: clamp(38px, 5vw, 58px); font-weight: 600; line-height: 1; letter-spacing: -.045em; }
.account-heading > div:first-child > p:last-child { margin: 12px 0 0; color: var(--muted); }
.account-user { display: flex; align-items: center; gap: 11px; padding: 10px 14px 10px 10px; border: 1px solid var(--line); border-radius: 16px; background: rgba(255,255,255,.75); }
.account-user > span { width: 38px; height: 38px; display: grid; place-items: center; border-radius: 12px; color: #fff; background: var(--brand-green); font-weight: 600; }
.account-user div { display: grid; }.account-user small { color: var(--muted); font-size: 10px; }.account-user strong { font-size: 13px; }
.account-grid { display: grid; grid-template-columns: 1.08fr .92fr; gap: 18px; }
.account-create, .account-join { min-height: 330px; border: 1px solid rgba(69,69,69,.11); border-radius: 27px; padding: clamp(26px, 4vw, 38px); background: rgba(255,255,255,.88); box-shadow: 0 18px 50px rgba(16,25,35,.07); }
.account-create { position: relative; overflow: hidden; border-color: rgba(133,196,79,.35); background: linear-gradient(145deg,#fff 20%,#eef8e4); }
.account-create::after { content: ""; position: absolute; width: 230px; height: 230px; right: -95px; top: -105px; border: 1px solid rgba(133,196,79,.2); border-radius: 50%; box-shadow: 0 0 0 28px rgba(133,196,79,.045), 0 0 0 58px rgba(133,196,79,.025); pointer-events: none; }
.account-card-icon { width: 54px; height: 54px; display: grid; place-items: center; margin-bottom: 28px; border-radius: 17px; color: var(--brand-green-deep); background: var(--blue-soft); }
.account-card-icon svg { width: 28px; height: 28px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.account-create h2, .account-join h2, .account-section h2 { margin: 0; font-size: 27px; font-weight: 600; letter-spacing: -.025em; }
.account-create > p:not(.account-eyebrow):not(.auth-error), .account-join > div > p:last-child { max-width: 430px; margin: 10px 0 24px; color: var(--muted); }
.account-title-field { position: relative; z-index: 1; display: grid; gap: 7px; max-width: 430px; margin: 0 0 14px; color: var(--ink); font-size: 12px; font-weight: 600; }
.account-title-field input { width: 100%; min-height: 50px; border: 1px solid var(--line-strong); border-radius: 14px; padding: 0 15px; color: var(--ink); background: rgba(255,255,255,.9); outline: 0; }
.account-title-field input:focus { border-color: var(--brand-green); box-shadow: 0 0 0 4px rgba(133,196,79,.14); }
.account-primary { min-width: 190px; }

.meeting-title-control { display: grid; gap: 7px; margin-bottom: 18px; }
.account-join { display: flex; flex-direction: column; justify-content: space-between; }
.account-join form { display: flex; gap: 8px; }.account-join form input { min-width: 0; flex: 1; }.account-join form .btn { flex: none; }
.account-section { margin-top: 20px; padding: clamp(24px, 4vw, 34px); border: 1px solid var(--line); border-radius: 27px; background: rgba(255,255,255,.78); }
.account-section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; margin-bottom: 20px; }
.account-section-head a { color: var(--brand-green-deep); font-size: 13px; font-weight: 600; text-decoration: none; }
.account-recent { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 10px; }
.account-meeting { min-width: 0; display: grid; gap: 4px; padding: 17px; border: 1px solid var(--line); border-radius: 17px; color: var(--ink); background: #fff; text-decoration: none; }
.account-meeting:hover { border-color: rgba(133,196,79,.45); box-shadow: 0 10px 24px rgba(51,81,30,.08); }
.account-meeting span, .account-meeting small { color: var(--muted); font-size: 11px; }.account-meeting strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.account-empty { grid-column: 1 / -1; display: grid; gap: 4px; padding: 28px; border: 1px dashed rgba(133,196,79,.38); border-radius: 18px; background: var(--brand-cream); text-align: center; }
.account-empty span { color: var(--muted); font-size: 12px; }

@media (max-width: 820px) {
  .auth-page { grid-template-columns: 1fr; gap: 32px; padding-top: 38px; }
  .auth-intro { text-align: center; margin: 0 auto; }.auth-intro h1 { font-size: clamp(36px,10vw,54px); }.auth-intro > p:not(.auth-kicker) { margin-inline: auto; }
  .auth-signal { display: none; }
  .account-grid { grid-template-columns: 1fr; }.account-create, .account-join { min-height: 290px; }
  .account-recent { grid-template-columns: 1fr; }
  .account-topbar .brand-product { display: none; }
}
@media (max-width: 580px) {
  .auth-page, .account-page { width: min(100% - 24px, 1120px); }
  .auth-page { padding: 28px 0 48px; }.auth-card { padding: 24px; border-radius: 22px; }
  .account-topbar { align-items: flex-start; gap: 8px; padding-block: 10px; }.account-topbar nav { flex-wrap: wrap; justify-content: flex-end; }.account-topbar .navlink { min-height: 32px; padding-inline: 7px; }
  .account-heading { align-items: flex-start; flex-direction: column; }.account-user { align-self: stretch; }
  .account-page { padding-top: 38px; }.account-create, .account-join, .account-section { border-radius: 21px; }
  .account-join form { flex-direction: column; }.account-join form .btn { width: 100%; }
  .account-section-head { align-items: flex-start; flex-direction: column; }
}

/* Team access */
.users-page { width: min(1160px, calc(100% - 40px)); margin: 0 auto; padding: 58px 0 90px; }
.users-heading { display: flex; align-items: flex-end; justify-content: space-between; gap: 28px; margin-bottom: 30px; }
.users-heading h1 { margin: 0; font-size: clamp(38px, 5vw, 58px); font-weight: 600; line-height: 1; letter-spacing: -.045em; }
.users-heading > div > p:last-child { max-width: 620px; margin: 12px 0 0; color: var(--muted); }
.users-add { min-width: 190px; }
.credential-panel { position: relative; display: grid; grid-template-columns: minmax(220px,1fr) minmax(300px,1.25fr) auto; align-items: center; gap: 24px; margin-bottom: 18px; padding: 24px 58px 24px 26px; border: 1px solid rgba(133,196,79,.4); border-radius: 23px; background: linear-gradient(135deg,#f3faeb,#fff); box-shadow: 0 16px 38px rgba(61,95,37,.08); }
.credential-panel p { margin: 0; color: var(--brand-green-deep); font-size: 10px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; }
.credential-panel h2 { margin: 4px 0; font-size: 20px; font-weight: 600; }.credential-panel > div > span { color: var(--muted); font-size: 12px; }
.credential-panel dl { display: grid; grid-template-columns: 1fr 1.3fr; gap: 8px; margin: 0; }.credential-panel dl div { min-width: 0; padding: 10px 13px; border: 1px solid var(--line); border-radius: 13px; background: #fff; }
.credential-panel dt { color: var(--muted); font-size: 9px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; }.credential-panel dd { overflow: hidden; margin: 2px 0 0; font-family: ui-monospace, SFMono-Regular, Consolas, monospace; font-size: 13px; font-weight: 700; text-overflow: ellipsis; white-space: nowrap; }
.credential-close { position: absolute; right: 13px; top: 12px; width: 34px; height: 34px; border: 0; border-radius: 10px; color: var(--muted); background: transparent; font-size: 22px; }.credential-close:hover { color: var(--ink); background: rgba(0,0,0,.05); }
.users-create-panel { margin-bottom: 18px; padding: 28px; border: 1px solid rgba(133,196,79,.28); border-radius: 24px; background: rgba(255,255,255,.92); box-shadow: 0 22px 60px rgba(16,25,35,.1); }
.users-panel-head { display: flex; align-items: flex-start; justify-content: space-between; margin-bottom: 22px; }.users-panel-head h2, .users-list-head h2 { margin: 0; font-size: 25px; font-weight: 600; letter-spacing: -.025em; }
.users-panel-head > button { width: 38px; height: 38px; border: 0; border-radius: 12px; color: var(--muted); background: var(--surface-soft); font-size: 24px; }
.users-create-panel form { display: grid; grid-template-columns: 1fr 1fr .8fr; gap: 16px; align-items: start; }.users-create-panel label { display: grid; gap: 7px; color: var(--ink-soft); font-size: 12px; font-weight: 600; }
.users-create-panel input, .users-create-panel select { width: 100%; min-height: 48px; border: 1px solid var(--line-strong); border-radius: 13px; padding: 0 14px; color: var(--ink); background: #fff; outline: 0; }.users-create-panel input:focus, .users-create-panel select:focus { border-color: var(--brand-green); box-shadow: 0 0 0 4px rgba(133,196,79,.13); }
.users-create-panel label small { color: var(--muted); font-size: 10px; font-weight: 400; line-height: 1.4; }.users-form-actions { grid-column: 1 / -1; display: flex; justify-content: flex-end; gap: 8px; }.users-create-panel .auth-error { grid-column: 1 / -1; text-align: right; }
.users-list-section { padding: 28px; border: 1px solid var(--line); border-radius: 27px; background: rgba(255,255,255,.8); }
.users-list-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; margin-bottom: 18px; }.users-list-head > span { color: var(--muted); font-size: 12px; }
.users-list { display: grid; gap: 8px; }.user-row { min-width: 0; display: grid; grid-template-columns: 44px minmax(150px,1.15fr) minmax(180px,1fr) 120px minmax(260px,auto); align-items: center; gap: 13px; padding: 13px 15px; border: 1px solid var(--line); border-radius: 17px; background: #fff; transition: opacity .16s ease, border-color .16s ease; }
.user-row:hover { border-color: rgba(133,196,79,.35); }.user-row.is-blocked { opacity: .62; background: #f6f7f5; }
.user-avatar { width: 42px; height: 42px; display: grid; place-items: center; border-radius: 13px; color: #fff; background: linear-gradient(135deg,var(--brand-green),var(--brand-green-deep)); font-weight: 600; }
.user-identity { min-width: 0; display: grid; }.user-identity strong { overflow: hidden; font-size: 13px; text-overflow: ellipsis; white-space: nowrap; }.user-identity strong em { margin-left: 5px; padding: 2px 6px; border-radius: 999px; color: var(--brand-green-deep); background: var(--brand-cream); font-size: 9px; font-style: normal; }.user-identity span { color: var(--muted); font-size: 11px; }
.user-meta { min-width: 0; display: grid; justify-items: start; gap: 4px; }.user-role { padding: 3px 7px; border-radius: 8px; color: #59626c; background: #eef0f2; font-size: 9px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; }.user-role.admin { color: #5d8f36; background: var(--blue-soft); }.user-meta small { overflow: hidden; max-width: 100%; color: var(--muted); font-size: 10px; text-overflow: ellipsis; white-space: nowrap; }
.user-status { display: inline-flex; align-items: center; gap: 6px; color: var(--muted); font-size: 11px; }.user-status i { width: 7px; height: 7px; border-radius: 50%; background: #aab0b5; }.user-status.active { color: #4b8831; }.user-status.active i { background: var(--brand-green); }.user-status.blocked { color: #a44b4b; }.user-status.blocked i { background: #d15a5a; }
.user-actions { display: flex; justify-content: flex-end; gap: 5px; }.user-actions button { min-height: 34px; border: 1px solid var(--line); border-radius: 10px; padding: 0 9px; color: var(--ink-soft); background: #fff; font-size: 10px; font-weight: 600; }.user-actions button:hover { border-color: rgba(133,196,79,.45); background: var(--brand-cream); }.user-actions button.danger { color: #a54545; }.user-actions button.success { color: #4d8b31; }.user-self-note { color: var(--muted); font-size: 10px; }

@media (max-width: 1040px) {
  .user-row { grid-template-columns: 44px minmax(160px,1fr) 150px 110px; }.user-actions { grid-column: 2 / -1; justify-content: flex-start; }.credential-panel { grid-template-columns: 1fr 1.2fr; }.credential-panel > .btn { grid-column: 2; justify-self: start; }
}
@media (max-width: 760px) {
  .users-page { width: min(100% - 24px,1160px); padding-top: 38px; }.users-heading { align-items: flex-start; flex-direction: column; }.users-add { width: 100%; }
  .credential-panel { grid-template-columns: 1fr; padding: 23px; }.credential-panel dl { grid-template-columns: 1fr; }.credential-panel > .btn { grid-column: 1; width: 100%; }.credential-close { right: 8px; top: 8px; }
  .users-create-panel form { grid-template-columns: 1fr; }.users-form-actions, .users-create-panel .auth-error { grid-column: 1; }.users-form-actions .btn { flex: 1; }
  .users-list-section { padding: 18px 12px; }.user-row { grid-template-columns: 44px 1fr auto; }.user-meta { grid-column: 2 / -1; }.user-status { grid-column: 3; grid-row: 1; }.user-actions { grid-column: 2 / -1; flex-wrap: wrap; }.user-actions button { flex: 1 1 135px; }
}
