:root {
  font-family: 'Open Sans', sans-serif;
  color: #25364a;
  background: #f6f8fa;
  font-synthesis: none;
  text-rendering: optimizeLegibility;
  --ink: #1e4682;
  --muted: #68798d;
  --line: #dfe6ee;
  --blue: #1e4682;
  --blue-dark: #153665;
  --green: #466450;
  --green-dark: #354e3e;
  --green-light: #afc5b5;
  --blue-light: #b7cde8;
}

* { box-sizing: border-box; }
body { margin: 0; min-width: 320px; min-height: 100vh; }
button, input { font: inherit; }
button { color: inherit; }
button:focus-visible, a:focus-visible, input:focus-visible { outline: 3px solid #b1d986; outline-offset: 3px; }
.hidden { display: none !important; }
.visually-hidden { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }

.app-shell { display: grid; grid-template-columns: 248px minmax(0, 1fr); min-height: 100vh; max-width: 1800px; margin: 0 auto; }
.sidebar { display: flex; flex-direction: column; min-height: 100vh; padding: 30px 18px 19px; background: #fff; border-right: 1px solid var(--line); }
.brand { display: inline-flex; align-items: center; gap: 8px; width: fit-content; color: var(--ink); text-decoration: none; letter-spacing: 0; }
.brand-logo { display: block; width: 156px; height: auto; mix-blend-mode: multiply; }
.brand-product { flex: none; color: var(--green); font-family: 'Montserrat', sans-serif; font-size: 8px; font-weight: 700; letter-spacing: .5px; }
.workspace-label { margin: 42px 10px 15px; color: #8593a1; font-size: 9px; font-weight: 700; letter-spacing: 1px; }
.main-nav { display: grid; gap: 6px; }
.nav-link { display: flex; align-items: center; gap: 13px; width: 100%; padding: 11px 12px; border: 0; border-radius: 5px; background: transparent; color: #737e76; text-align: left; text-decoration: none; font-size: 13px; font-weight: 600; cursor: pointer; }
.nav-link svg, .icon-button svg, .help-icon svg, .meta-icon svg, .card-icon svg, .join-submit svg, .participant-count svg, .copy-link-button svg, .chat-empty-icon svg, .chat-form button svg, .control-icon svg, .leave-button svg { width: 19px; height: 19px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.nav-link.active { background: #eaf0f8; color: var(--blue); }
.nav-link.active svg { stroke-width: 2; }
.sidebar-bottom { margin-top: auto; }
.help-card { padding: 16px 14px; border: 1px solid #e5e9e4; border-radius: 6px; background: #f7f9f6; }
.help-icon { display: grid; place-items: center; width: 30px; height: 30px; margin-bottom: 12px; border-radius: 5px; background: #e8efea; color: var(--green); }
.help-icon svg { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; }
.help-card strong, .help-card span { display: block; }
.help-card strong { font-family: 'Montserrat', sans-serif; font-size: 12px; }
.help-card > span { margin-top: 5px; color: var(--muted); font-size: 11px; line-height: 1.55; }
.text-action { display: flex; align-items: center; gap: 7px; padding: 11px 0 0; border: 0; background: transparent; color: var(--blue); font-size: 11px; font-weight: 700; cursor: pointer; }
.profile-row { display: flex; align-items: center; gap: 10px; padding: 18px 3px 0; margin-top: 16px; border-top: 1px solid var(--line); }
.avatar { display: grid; place-items: center; width: 35px; height: 35px; flex: none; border-radius: 50%; font-family: 'Montserrat', sans-serif; font-size: 13px; font-weight: 700; }
.avatar-you { background: #dce7df; color: var(--green-dark); }
.profile-name { display: grid; gap: 3px; flex: 1; min-width: 0; }
.profile-name strong { font-size: 11px; }
.profile-name span { color: var(--muted); font-size: 10px; }
.icon-button { display: grid; place-items: center; width: 35px; height: 35px; flex: none; border: 0; border-radius: 5px; background: transparent; color: #78827b; cursor: pointer; }
.icon-button:hover { background: #f0f3ef; color: var(--ink); }
.icon-button svg { width: 18px; height: 18px; }
.profile-menu { width: 28px; }
.profile-menu svg { width: 17px; height: 17px; }

.home-main { min-width: 0; display: flex; flex-direction: column; padding: 0 6.4%; }
.topbar { display: flex; align-items: center; justify-content: space-between; min-height: 74px; border-bottom: 1px solid var(--line); }
.crumb { display: flex; align-items: center; gap: 10px; color: #89928c; font-size: 11px; }
.crumb strong { color: var(--ink); font-weight: 600; }
.crumb-divider { color: #c3cac3; }
.topbar-right { display: flex; align-items: center; gap: 19px; }
.secure-label { display: flex; align-items: center; gap: 7px; color: #7d8981; font-size: 10px; }
.secure-dot { display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: #71ac7d; box-shadow: 0 0 0 3px #e6f1e7; }
.topbar .icon-button { border: 1px solid var(--line); }
.welcome-section { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(270px, .95fr); align-items: center; gap: 30px; margin: 30px 0 45px; padding: 34px; background: var(--blue); }
.eyebrow, .section-kicker, .stage-label { color: #72859c; font-size: 9px; font-weight: 700; letter-spacing: 1.35px; }
.welcome-section .eyebrow { color: #d3deec; }
.eyebrow { display: flex; align-items: center; gap: 9px; }
.eyebrow-line { width: 20px; height: 2px; background: var(--green-light); }
h1, h2, h3, p { margin: 0; }
.welcome-copy h1 { margin-top: 18px; color: #fff; font-family: 'Montserrat', sans-serif; font-size: clamp(32px, 3.1vw, 46px); font-weight: 600; line-height: 1.16; letter-spacing: 0; }
.welcome-copy h1 span { color: #b6ceb9; }
.welcome-copy > p { max-width: 410px; margin-top: 14px; color: #d8e2ee; font-size: 13px; line-height: 1.75; }
.welcome-meta { display: flex; align-items: center; gap: 8px; margin-top: 21px; color: #e0e8f1; font-size: 10px; }
.meta-icon { display: grid; place-items: center; width: 20px; height: 20px; border-radius: 50%; background: #dce8df; color: var(--green); }
.hero-cta { margin-top: 20px; }
.meta-icon svg { width: 12px; height: 12px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.visual-panel { position: relative; display: grid; place-items: center; min-height: 235px; overflow: hidden; border: 1px solid rgb(255 255 255 / 18%); border-radius: 4px; background-color: #244e85; background-image: radial-gradient(rgb(191 211 235 / 28%) 0.65px, transparent .65px); background-size: 12px 12px; }
.visual-panel::after { position: absolute; inset: 0; background: linear-gradient(135deg, rgb(255 255 255 / 8%), transparent 55%, rgb(10 35 73 / 22%)); content: ''; pointer-events: none; }
.visual-orbit { position: absolute; width: 190px; height: 190px; border: 1px solid rgb(213 228 242 / 36%); border-radius: 50%; }
.orbit-one { transform: scaleX(1.48) rotate(-23deg); }
.orbit-two { transform: scaleX(1.48) rotate(23deg); }
.visual-core { position: relative; display: grid; place-items: center; width: 125px; height: 125px; z-index: 1; }
.core-sun { position: absolute; width: 88px; height: 88px; border-radius: 50%; background: radial-gradient(circle at 34% 30%, #dce8df 0 8%, #afc5b5 32%, #779381 72%, #466450 100%); box-shadow: 0 12px 30px rgb(9 30 63 / 30%); }
.core-ring { position: absolute; width: 122px; height: 49px; border: 1px solid rgb(73 117 86 / 60%); border-radius: 50%; transform: rotate(-32deg); }
.core-caption { position: absolute; top: 137px; width: 200px; color: #e0e8f1; text-align: center; font-size: 9px; letter-spacing: .3px; }
.visual-float { position: absolute; z-index: 2; display: flex; align-items: center; gap: 7px; padding: 9px 11px; border: 1px solid rgb(255 255 255 / 75%); border-radius: 4px; background: rgb(255 255 255 / 93%); box-shadow: 0 5px 16px rgb(10 35 73 / 18%); color: var(--green); font-size: 8px; font-weight: 700; letter-spacing: .6px; }
.float-one { top: 27px; right: 24px; }
.float-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--green); }
.float-two { bottom: 25px; left: 23px; font-weight: 500; letter-spacing: 0; text-transform: none; }
.wave-bars { display: flex; align-items: center; gap: 2px; height: 12px; }
.wave-bars i { width: 2px; height: 5px; border-radius: 2px; background: var(--green); }
.wave-bars i:nth-child(2), .wave-bars i:nth-child(4) { height: 9px; }
.wave-bars i:nth-child(3) { height: 12px; }
.visual-plus { position: absolute; z-index: 1; color: #cfdfd2; font-size: 17px; font-weight: 400; }
.plus-one { top: 40px; left: 22%; }.plus-two { right: 21%; bottom: 35px; }

.meeting-section { padding: 0 0 45px; }
.calendar-section { padding: 30px 0 44px; border-top: 1px solid var(--line); }
.calendar-section-heading { display: flex; align-items: end; justify-content: space-between; gap: 16px; margin-bottom: 20px; }
.calendar-section-heading h2 { margin-top: 7px; color: var(--blue); font-family: 'Montserrat', sans-serif; font-size: 20px; font-weight: 600; }
.calendar-local-note { margin-top: 5px; color: #8592a0; font-size: 9px; line-height: 1.5; }
.calendar-section-heading .primary-button { gap: 12px; }
.calendar-layout { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(250px, .75fr); gap: 25px; }
.calendar-board { min-width: 0; overflow: hidden; border: 1px solid var(--line); border-radius: 5px; background: #fff; }
.calendar-toolbar { display: flex; align-items: center; gap: 7px; min-height: 54px; padding: 8px 11px; border-bottom: 1px solid var(--line); }
.calendar-toolbar h3 { min-width: 150px; color: var(--blue); text-align: center; font-family: 'Montserrat', sans-serif; font-size: 13px; font-weight: 700; text-transform: capitalize; }
.calendar-toolbar .icon-button { width: 30px; height: 30px; }
.calendar-today-button { min-height: 29px; margin-left: auto; padding: 0 9px; border: 1px solid var(--line); border-radius: 4px; background: #fff; color: var(--blue); font-size: 10px; font-weight: 600; cursor: pointer; }
.calendar-today-button:hover { background: #eaf0f8; }
.calendar-weekdays, .calendar-days { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); }
.calendar-weekdays span { padding: 9px 4px; border-right: 1px solid var(--line); color: #78889a; text-align: center; font-size: 9px; font-weight: 700; }
.calendar-weekdays span:last-child { border-right: 0; }
.calendar-days { border-top: 1px solid var(--line); }
.calendar-day { display: flex; flex-direction: column; min-width: 0; min-height: 78px; gap: 5px; padding: 6px; border: 0; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); background: #fff; color: #344a63; text-align: left; cursor: pointer; }
.calendar-day:nth-child(7n) { border-right: 0; }
.calendar-day:hover { background: #f5f8fb; }
.calendar-day.is-outside { background: #fafbfd; color: #a6b0bb; }
.calendar-day.is-selected { background: #edf3fa; box-shadow: inset 0 0 0 1px #b8cce2; }
.calendar-day-number { display: grid; place-items: center; width: 23px; height: 23px; border-radius: 50%; font-size: 10px; }
.calendar-day.is-today .calendar-day-number { background: var(--blue); color: #fff; font-weight: 700; }
.calendar-day-events { display: grid; gap: 3px; min-width: 0; }
.calendar-day-event { display: flex; align-items: center; gap: 4px; min-width: 0; color: var(--green); font-size: 8px; line-height: 1.3; }
.calendar-day-event::before { width: 5px; height: 5px; flex: none; border-radius: 50%; background: var(--green); content: ''; }
.calendar-day-event span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.calendar-day-more { color: #738399; font-size: 8px; }
.calendar-agenda { min-width: 0; padding: 5px 0 0 20px; border-left: 2px solid #e8efea; }
.calendar-agenda-heading { display: grid; gap: 6px; padding-bottom: 12px; border-bottom: 1px solid var(--line); }
.calendar-agenda-heading h3 { color: var(--blue); font-family: 'Montserrat', sans-serif; font-size: 15px; font-weight: 700; text-transform: capitalize; }
.agenda-meeting-count { color: #83909e; font-size: 9px; }
.scheduled-meetings { display: grid; align-content: start; gap: 0; }
.calendar-empty { padding: 20px 0; color: #7d8996; font-size: 10px; line-height: 1.6; }
.scheduled-meeting { display: grid; gap: 7px; padding: 13px 0; border-bottom: 1px solid var(--line); }
.scheduled-meeting-heading { display: flex; justify-content: space-between; gap: 10px; }
.scheduled-meeting-time { color: var(--green); font-size: 9px; font-weight: 700; }
.scheduled-meeting-title { margin-top: 3px; color: #314259; font-family: 'Montserrat', sans-serif; font-size: 11px; font-weight: 700; overflow-wrap: anywhere; }
.scheduled-meeting-meta { color: #78889a; font-size: 9px; }
.scheduled-agenda { display: grid; gap: 3px; margin: 0; padding-left: 14px; color: #66778a; font-size: 9px; }
.scheduled-actions { display: flex; flex-wrap: wrap; gap: 6px; }
.scheduled-action { min-height: 28px; padding: 0 8px; border: 1px solid var(--line); border-radius: 4px; background: #fff; color: var(--blue); font-size: 9px; font-weight: 600; cursor: pointer; }
.scheduled-action:hover { background: #f1f5f9; }
.scheduled-action.is-danger { color: #9c4c45; }
.scheduled-action.is-danger:hover { background: #fbf0ee; }
.section-heading { display: flex; align-items: end; justify-content: space-between; gap: 16px; margin-bottom: 19px; }
.section-heading h2 { margin-top: 7px; color: var(--blue); font-family: 'Montserrat', sans-serif; font-size: 20px; font-weight: 600; letter-spacing: 0; }
.availability { display: flex; align-items: center; gap: 7px; margin-bottom: 3px; color: #819087; font-size: 10px; }
.availability span { width: 6px; height: 6px; border-radius: 50%; background: #7aaf80; }
.meeting-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 15px; }
.meeting-card { position: relative; display: flex; flex-direction: column; min-height: 204px; overflow: hidden; padding: 19px; border: 1px solid var(--line); border-radius: 5px; background: #fff; }
.card-icon { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 5px; }
.card-icon svg { width: 19px; height: 19px; }
.create-icon { background: #e8efea; color: var(--green); }
.join-icon { background: #eaf0f8; color: var(--blue); }
.card-copy { position: relative; z-index: 1; margin-top: 13px; }
.card-copy h3 { color: var(--blue); font-family: 'Montserrat', sans-serif; font-size: 13px; font-weight: 700; }
.card-copy p { max-width: 265px; margin-top: 5px; color: #879089; font-size: 10px; line-height: 1.55; }
.primary-button { display: inline-flex; align-items: center; justify-content: center; gap: 23px; width: fit-content; min-height: 38px; padding: 0 14px; border: 0; border-radius: 4px; background: var(--green); color: #fff; font-size: 11px; font-weight: 600; cursor: pointer; transition: background .18s ease, transform .18s ease; }
.primary-button:hover { background: var(--green-dark); transform: translateY(-1px); }
.create-card > .primary-button { margin-top: auto; }
.card-decoration { position: absolute; right: 12px; bottom: 2px; width: 94px; height: 94px; border: 1px solid rgb(116 155 108 / 10%); border-radius: 50%; pointer-events: none; }
.card-decoration::before, .card-decoration::after { position: absolute; inset: 10px; border: inherit; border-radius: inherit; content: ''; }
.card-decoration::after { inset: 23px; }
.decoration-create { right: -16px; bottom: -48px; border-color: rgb(97 140 86 / 13%); }
.decoration-join { right: -23px; bottom: -51px; border-color: rgb(196 131 93 / 12%); }
.join-form { position: relative; z-index: 1; display: flex; width: min(100%, 290px); height: 36px; margin-top: auto; border: 1px solid #e7eae5; border-radius: 4px; background: #fcfdfa; }
.join-form:focus-within { border-color: #8db598; box-shadow: 0 0 0 3px rgb(141 181 152 / 15%); }
.join-form input { width: 100%; min-width: 0; padding: 0 10px; border: 0; outline: 0; background: transparent; color: var(--ink); font-size: 10px; }
.join-form input::placeholder { color: #afb6af; }
.join-submit { display: grid; place-items: center; width: 35px; flex: none; margin: 3px; border: 0; border-radius: 3px; background: #eaf0f8; color: var(--blue); cursor: pointer; }
.join-submit:hover { background: #dce6f2; }
.join-submit svg { width: 16px; height: 16px; }
.home-footer { display: flex; align-items: center; gap: 9px; min-height: 50px; margin-top: auto; border-top: 1px solid var(--line); color: #a0a9a2; font-size: 9px; }
.footer-dot { color: #c4cbc4; }
.footer-spacer { flex: 1; }
.home-footer button { padding: 5px 0 5px 13px; border: 0; background: transparent; color: #849087; font-size: 9px; cursor: pointer; }
.home-footer button:hover { color: var(--green); }

/* In-call view */
.call-shell { display: flex; flex-direction: column; width: 100%; height: 100vh; min-height: 540px; overflow: hidden; background: #f4f6f3; }
.call-header { display: flex; align-items: center; justify-content: space-between; height: 65px; flex: none; padding: 0 29px; border-bottom: 1px solid #e2e7e1; background: #fff; }
.call-brand .brand-logo { width: 128px; }
.call-brand .brand-product { font-size: 7px; }
.call-room-info { display: flex; align-items: center; gap: 13px; color: #7b867d; font-size: 10px; }
.live-indicator { display: flex; align-items: center; gap: 6px; padding: 5px 7px; border-radius: 3px; background: #edf4eb; color: #527b59; font-size: 8px; font-weight: 700; letter-spacing: .6px; }
.live-indicator i { width: 5px; height: 5px; border-radius: 50%; background: #6fa478; }
.call-room-name strong { color: #3d4d42; font-weight: 600; }
.call-divider { width: 1px; height: 14px; background: #e2e7e1; }
.call-header-actions { display: flex; align-items: center; gap: 9px; }
.copy-link-button { display: flex; align-items: center; gap: 7px; min-height: 34px; padding: 0 10px; border: 1px solid #e2e7e1; border-radius: 4px; background: #fff; color: #5e6f62; font-size: 10px; font-weight: 600; cursor: pointer; }
.copy-link-button:hover { border-color: #b8cdb8; background: #f8faf6; }
.copy-link-button svg { width: 14px; height: 14px; }
.call-more { border: 1px solid #e2e7e1; }
.call-body { display: flex; flex: 1; min-height: 0; padding: 26px 28px 17px; }
.stage-area { display: flex; flex: 1; flex-direction: column; min-width: 0; }
.stage-topline { display: flex; align-items: center; justify-content: space-between; padding: 0 0 17px; }
.stage-label { font-size: 8px; }
.stage-topline h1 { margin-top: 6px; color: var(--blue); font-family: 'Montserrat', sans-serif; font-size: 19px; font-weight: 600; letter-spacing: 0; }
.participant-count { display: flex; align-items: center; gap: 7px; padding: 6px 8px; border: 0; border-radius: 4px; background: transparent; color: #738077; font-size: 11px; cursor: pointer; }
.participant-count:hover, .participant-count.is-active { background: #eaf0f8; color: var(--blue); }
.participant-count svg { width: 17px; height: 17px; }
.video-grid { display: grid; flex: 1; min-height: 0; grid-template-columns: minmax(0, 1fr); grid-template-rows: minmax(0, 1fr); grid-auto-rows: minmax(0, 1fr); gap: 10px; }
.video-grid:has(.video-tile:nth-child(2)) { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.video-grid:has(.video-tile:nth-child(5)) { grid-template-columns: repeat(3, minmax(0, 1fr)); grid-template-rows: repeat(2, minmax(0, 1fr)); }
.video-grid:has(.video-tile:nth-child(3)):not(:has(.video-tile:nth-child(4))) .video-tile:last-child { grid-column: 1 / -1; width: calc(50% - 5px); justify-self: center; }
.video-grid:has(.video-tile:nth-child(5)):not(:has(.video-tile:nth-child(6))) { grid-template-columns: repeat(6, minmax(0, 1fr)); grid-template-rows: repeat(2, minmax(0, 1fr)); }
.video-grid:has(.video-tile:nth-child(5)):not(:has(.video-tile:nth-child(6))) .video-tile { grid-column: span 2; }
.video-grid:has(.video-tile:nth-child(5)):not(:has(.video-tile:nth-child(6))) .video-tile:nth-child(4) { grid-column: 2 / span 2; }
.video-grid:has(.video-tile:nth-child(5)):not(:has(.video-tile:nth-child(6))) .video-tile:nth-child(5) { grid-column: 4 / span 2; }
.video-tile { position: relative; display: grid; min-width: 0; min-height: 120px; overflow: hidden; place-items: center; border: 1px solid #dfe6dc; border-radius: 5px; background: #e8eee6; }
.video-tile video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; background: #e7ede5; }
.remote-audio { position: absolute; width: 1px; height: 1px; opacity: 0; pointer-events: none; }
.video-placeholder { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; color: #748477; font-size: 10px; }
.placeholder-avatar { display: grid; place-items: center; width: 56px; height: 56px; border: 3px solid rgb(255 255 255 / 75%); border-radius: 50%; background: #dce7df; color: var(--green-dark); font-family: 'Montserrat', sans-serif; font-size: 20px; font-weight: 700; box-shadow: 0 5px 16px rgb(30 70 130 / 10%); }
.local-tile .placeholder-avatar { background: #e4eaf3; color: var(--blue); }
.video-tile:not(.camera-off) .video-placeholder { display: none; }
.tile-overlay { position: absolute; right: 0; bottom: 0; left: 0; display: flex; align-items: center; justify-content: space-between; gap: 10px; min-height: 38px; padding: 7px 10px; background: linear-gradient(transparent, rgb(17 25 19 / 60%)); color: #fff; }
.tile-name { display: flex; align-items: center; gap: 6px; min-width: 0; overflow: hidden; font-size: 10px; font-weight: 500; text-overflow: ellipsis; white-space: nowrap; }
.tile-speaking { width: 5px; height: 5px; flex: none; border-radius: 50%; background: #a8d98b; }
.tile-status { color: #f6d2c8; font-size: 9px; }
.camera-off video { visibility: hidden; }
.connection-note { display: flex; align-items: center; gap: 8px; height: 31px; flex: none; color: #849088; font-size: 9px; }
.connection-note .secure-dot { width: 6px; height: 6px; }
.participants-panel { display: flex; flex: 0 0 310px; flex-direction: column; min-width: 0; margin-left: 18px; border: 1px solid #e2e7e1; border-radius: 5px; background: #fff; }
.participants-heading { display: flex; align-items: center; justify-content: space-between; min-height: 65px; padding: 0 13px; border-bottom: 1px solid #edf0ec; }
.participants-heading .section-kicker { font-size: 8px; }
.participants-heading h2 { margin-top: 4px; color: var(--blue); font-family: 'Montserrat', sans-serif; font-size: 14px; font-weight: 700; }
.participants-list { display: grid; align-content: start; gap: 2px; min-height: 0; overflow-y: auto; padding: 8px 12px; }
.participant-row { display: grid; grid-template-columns: 30px minmax(0, 1fr) auto; align-items: center; gap: 8px; padding: 10px 0; border-bottom: 1px solid #edf0ec; }
.participant-avatar { display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; background: #eaf0f8; color: var(--blue); font-family: 'Montserrat', sans-serif; font-size: 10px; font-weight: 700; }
.participant-avatar.is-host { background: #e8efea; color: var(--green); }
.participant-identity { display: flex; align-items: center; gap: 6px; min-width: 0; }
.participant-identity strong { overflow: hidden; color: #33475e; font-size: 10px; font-weight: 600; text-overflow: ellipsis; white-space: nowrap; }
.participant-role { flex: none; padding: 3px 5px; border-radius: 3px; background: #edf3ee; color: var(--green); font-size: 8px; font-weight: 700; }
.participant-statuses { display: flex; grid-column: 2 / -1; flex-wrap: wrap; gap: 5px 9px; color: #758394; font-size: 9px; }
.participant-status { display: inline-flex; align-items: center; gap: 5px; }
.participant-status::before { width: 6px; height: 6px; border-radius: 50%; background: #a1aab2; content: ''; }
.participant-status[data-state="active"], .participant-status[data-state="connected"] { color: var(--green); }
.participant-status[data-state="active"]::before, .participant-status[data-state="connected"]::before { background: #6b9b75; }
.participant-status[data-state="muted"], .participant-status[data-state="disconnected"], .participant-status[data-state="failed"] { color: #a64e47; }
.participant-status[data-state="muted"]::before, .participant-status[data-state="disconnected"]::before, .participant-status[data-state="failed"]::before { background: #c77769; }
.participant-status[data-state="connecting"] { color: #a2763e; }
.participant-status[data-state="connecting"]::before { background: #d3a45e; }
.participant-action { grid-column: 2 / -1; justify-self: start; min-height: 28px; margin-top: 2px; padding: 0 8px; border: 1px solid #dfe6ee; border-radius: 4px; background: #fff; color: var(--blue); font-size: 9px; font-weight: 600; cursor: pointer; }
.participant-action:hover { border-color: #b7c8dc; background: #f5f8fb; }
.participant-action.is-revoking { color: #a64e47; }
.chat-panel { display: flex; flex: 0 0 285px; flex-direction: column; min-width: 0; margin-left: 18px; border: 1px solid #e2e7e1; border-radius: 5px; background: #fff; }
.chat-heading { display: flex; align-items: center; justify-content: space-between; min-height: 65px; padding: 0 13px; border-bottom: 1px solid #edf0ec; }
.chat-heading .section-kicker { font-size: 8px; }
.chat-heading h2 { margin-top: 4px; color: var(--blue); font-family: 'Montserrat', sans-serif; font-size: 14px; font-weight: 700; }
.chat-heading .icon-button { width: 30px; height: 30px; }
.chat-messages { display: flex; flex: 1; flex-direction: column; gap: 13px; min-height: 0; overflow: auto; padding: 14px 12px; }
.chat-empty { display: flex; flex: 1; flex-direction: column; align-items: center; justify-content: center; padding: 15px 6px; color: #879188; text-align: center; }
.chat-empty-icon { display: grid; place-items: center; width: 37px; height: 37px; margin-bottom: 12px; border-radius: 50%; background: #eef3eb; color: #68866b; }
.chat-empty-icon svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.chat-empty strong { color: #536157; font-size: 10px; }
.chat-empty span { max-width: 155px; margin-top: 5px; font-size: 9px; line-height: 1.5; }
.message-item { padding: 9px; border-radius: 4px; background: #f5f7f3; }
.message-heading { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.message-heading strong { color: #526457; font-size: 9px; }
.message-heading time { color: #9da69f; font-size: 8px; }
.message-item p { margin-top: 5px; overflow-wrap: anywhere; color: #5e685f; font-size: 10px; line-height: 1.55; }
.chat-form { display: flex; align-items: center; gap: 6px; margin: 10px; padding: 4px; border: 1px solid #e7ebe5; border-radius: 4px; }
.chat-form input { width: 100%; min-width: 0; height: 29px; padding: 0 6px; border: 0; outline: none; color: var(--ink); font-size: 9px; }
.chat-form input::placeholder { color: #a4ada5; }
.chat-form button { display: grid; place-items: center; width: 30px; height: 29px; flex: none; border: 0; border-radius: 3px; background: #e9f0e2; color: #557b59; cursor: pointer; }
.chat-form button:hover { background: #dce9d3; }
.chat-form button svg { width: 15px; height: 15px; }
.call-controls { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; min-height: 84px; flex: none; padding: 10px 30px; border-top: 1px solid #e2e7e1; background: #fff; }
.controls-left, .controls-right { display: flex; align-items: center; gap: 10px; color: #89938b; font-size: 9px; }
.control-time { color: #526055; font-variant-numeric: tabular-nums; font-size: 10px; font-weight: 600; }
.controls-separator { width: 1px; height: 15px; background: #e2e7e1; }
.control-room { color: #7f8981; }
.control-buttons { display: flex; align-items: center; gap: 8px; }
.control-button { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; width: 57px; height: 57px; border: 0; border-radius: 5px; background: transparent; color: #69756c; cursor: pointer; }
.control-button:hover, .control-button.is-active { background: #edf3e9; color: #4a7852; }
.control-button.is-off { color: #cd6c59; }
.control-icon { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: #f0f3ef; }
.control-icon svg { width: 17px; height: 17px; }
.control-button.is-off .control-icon { background: #f9eae5; }
.control-label { font-size: 8px; }
.leave-button { display: flex; align-items: center; justify-content: center; gap: 7px; height: 38px; margin-left: 6px; padding: 0 14px; border: 0; border-radius: 4px; background: #d96f5b; color: #fff; font-size: 10px; font-weight: 600; cursor: pointer; }
.leave-button:hover { background: #c75c49; }
.leave-button svg { width: 15px; height: 15px; }
.controls-right { justify-content: flex-end; }
.network-indicator { display: flex; align-items: center; gap: 2px; height: 13px; }
.network-indicator i { width: 3px; height: 5px; border-radius: 1px; background: #79a880; }
.network-indicator i:nth-child(2) { height: 8px; }.network-indicator i:nth-child(3) { height: 11px; }

.toast { position: fixed; z-index: 10; right: 24px; bottom: 24px; max-width: min(380px, calc(100vw - 32px)); padding: 12px 16px; transform: translateY(10px); border: 1px solid #dfe7dc; border-radius: 4px; background: #fff; box-shadow: 0 8px 26px rgb(36 57 40 / 12%); color: #536257; font-size: 11px; opacity: 0; pointer-events: none; transition: opacity .2s ease, transform .2s ease; }
.toast.visible { transform: translateY(0); opacity: 1; }
.modal-backdrop { position: fixed; z-index: 20; inset: 0; display: grid; place-items: center; overflow-y: auto; padding: 16px; background: rgb(26 39 29 / 35%); }
.alias-dialog { position: relative; display: grid; gap: 10px; width: min(100%, 400px); padding: 28px; border: 1px solid #e6eae4; border-radius: 6px; background: #fff; box-shadow: 0 20px 70px rgb(29 44 31 / 18%); }
.alias-dialog h2 { max-width: 290px; margin: 0; color: var(--blue); font-family: 'Montserrat', sans-serif; font-size: 20px; font-weight: 700; }
.alias-dialog > p { margin: 0 0 5px; color: #718094; font-size: 11px; line-height: 1.6; }
.alias-dialog > label { color: #42566f; font-size: 10px; font-weight: 700; }
.alias-dialog > input { width: 100%; height: 40px; padding: 0 11px; border: 1px solid #dfe6ee; border-radius: 4px; background: #fff; color: var(--ink); font-size: 12px; }
.alias-dialog > input:focus { border-color: #6a88ae; outline: 0; box-shadow: 0 0 0 3px rgb(30 70 130 / 12%); }
.alias-error { color: #a64e47; font-size: 10px; }
.alias-actions { display: flex; justify-content: flex-end; gap: 9px; margin-top: 9px; }
.alias-cancel { min-height: 38px; padding: 0 13px; border: 1px solid #dfe6ee; border-radius: 4px; background: #fff; color: #53657b; font-size: 11px; font-weight: 600; cursor: pointer; }
.alias-cancel:hover { background: #f5f7f9; }
.schedule-dialog { position: relative; display: grid; gap: 13px; width: min(100%, 560px); max-height: calc(100dvh - 32px); overflow-y: auto; padding: 27px; border: 1px solid #e6eae4; border-radius: 6px; background: #fff; box-shadow: 0 20px 70px rgb(29 44 31 / 18%); }
.schedule-dialog h2 { color: var(--blue); font-family: 'Montserrat', sans-serif; font-size: 20px; font-weight: 700; }
.schedule-field { display: grid; gap: 6px; min-width: 0; color: #42566f; font-size: 10px; font-weight: 700; }
.schedule-field input { width: 100%; min-width: 0; height: 37px; padding: 0 9px; border: 1px solid #dfe6ee; border-radius: 4px; background: #fff; color: var(--ink); font-size: 11px; }
.schedule-field input:focus, .agenda-attendee-row input:focus { border-color: #6a88ae; outline: 0; box-shadow: 0 0 0 3px rgb(30 70 130 / 10%); }
.schedule-time-fields { display: grid; grid-template-columns: 1.1fr 1fr .8fr; gap: 10px; }
.turns-toggle { display: flex; align-items: center; gap: 10px; padding: 11px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); cursor: pointer; }
.turns-toggle input { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0, 0, 0, 0); }
.turns-switch { position: relative; width: 34px; height: 19px; flex: none; border-radius: 10px; background: #c8d0d8; transition: background .16s ease; }
.turns-switch::after { position: absolute; top: 3px; left: 3px; width: 13px; height: 13px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgb(0 0 0 / 18%); content: ''; transition: transform .16s ease; }
.turns-toggle input:checked + .turns-switch { background: var(--green); }
.turns-toggle input:checked + .turns-switch::after { transform: translateX(15px); }
.turns-toggle input:focus-visible + .turns-switch { outline: 3px solid #b1c8df; outline-offset: 2px; }
.turns-toggle > span:last-child { display: grid; gap: 3px; }
.turns-toggle strong { color: #33475e; font-size: 10px; }
.turns-toggle small { color: #7c8997; font-size: 9px; }
.turns-editor { display: grid; gap: 9px; }
.turns-editor[hidden] { display: none; }
.turns-editor-heading { display: grid; grid-template-columns: minmax(0, 1fr) 78px auto; align-items: center; gap: 8px; color: #738399; font-size: 9px; font-weight: 700; }
.add-attendee-button { min-height: 28px; padding: 0 8px; border: 1px solid #dfe6ee; border-radius: 4px; background: #fff; color: var(--blue); font-size: 9px; font-weight: 600; cursor: pointer; }
.agenda-attendees { display: grid; gap: 7px; }
.agenda-attendee-row { display: grid; grid-template-columns: minmax(0, 1fr) 78px 30px; align-items: center; gap: 8px; }
.agenda-attendee-row input { width: 100%; min-width: 0; height: 34px; padding: 0 8px; border: 1px solid #dfe6ee; border-radius: 4px; color: #33475e; font-size: 10px; }
.remove-attendee { display: grid; place-items: center; width: 30px; height: 30px; border: 0; border-radius: 4px; background: transparent; color: #9c4c45; font-size: 17px; cursor: pointer; }
.remove-attendee:hover { background: #fbf0ee; }
.allocation-summary { display: flex; justify-content: space-between; gap: 10px; color: #60738a; font-size: 9px; }
.allocation-error { color: #a64e47; font-size: 10px; }
.schedule-actions { display: flex; justify-content: flex-end; gap: 9px; margin-top: 4px; }
.preview-dialog { position: relative; width: min(100%, 440px); max-height: calc(100dvh - 32px); overflow-y: auto; padding: 27px; border: 1px solid #e6eae4; border-radius: 6px; background: #fff; box-shadow: 0 20px 70px rgb(29 44 31 / 18%); }
.preview-dialog h2 { margin-top: 7px; color: var(--blue); font-family: 'Montserrat', sans-serif; font-size: 20px; font-weight: 700; }
.modal-close { position: absolute; top: 17px; right: 17px; }
.preview-video-wrap { position: relative; display: grid; place-items: center; height: 220px; margin-top: 19px; overflow: hidden; border: 1px solid #e4e9e1; border-radius: 4px; background: #edf1e9; }
.preview-video-wrap video { width: 100%; height: 100%; object-fit: cover; }
.preview-placeholder { position: absolute; display: flex; flex-direction: column; align-items: center; gap: 10px; color: #77877a; font-size: 10px; }
.preview-placeholder svg { width: 28px; height: 28px; fill: none; stroke: currentColor; stroke-width: 1.4; stroke-linecap: round; stroke-linejoin: round; }
.preview-checks { display: grid; gap: 8px; margin: 13px 0 16px; }
.preview-check { display: grid; grid-template-columns: 30px minmax(0, 1fr) minmax(76px, 112px); align-items: center; gap: 9px; min-height: 48px; padding: 7px 9px; border: 1px solid #e7ebe5; border-radius: 4px; background: #fcfdfa; }
.preview-check-icon { display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; background: #edf1e9; color: #78837a; }
.preview-check-icon svg { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.preview-check-copy { display: grid; gap: 3px; min-width: 0; }
.preview-check-copy strong { color: #314259; font-size: 10px; }
.preview-check-copy small { overflow: hidden; color: #89949e; font-size: 9px; text-overflow: ellipsis; white-space: nowrap; }
.preview-check[data-state="ready"] .preview-check-icon { background: #e8efea; color: var(--green); }
.preview-check[data-state="ready"] .preview-check-copy small { color: var(--green); }
.preview-check[data-state="unavailable"] .preview-check-icon { background: #f7e9e7; color: #a64e47; }
.preview-check[data-state="unavailable"] .preview-check-copy small { color: #a64e47; }
.preview-mic-meter { height: 6px; overflow: hidden; border-radius: 4px; background: #e8ece8; }
.preview-mic-meter span { display: block; width: 0; height: 100%; border-radius: inherit; background: var(--green); transition: width 80ms linear; }
.preview-enable { width: 100%; justify-content: space-between; }
.preview-enable.button-done { background: #e8efea; color: var(--green); }
.preview-enable:disabled { cursor: progress; opacity: .7; }

@media (min-width: 1500px) {
  .home-main { padding-right: 8%; padding-left: 8%; }
  .welcome-section { padding-top: 66px; padding-bottom: 59px; }
  .visual-panel { min-height: 270px; }
  .meeting-card { min-height: 220px; padding: 22px; }
}
@media (max-width: 1000px) {
  .app-shell { grid-template-columns: 205px minmax(0, 1fr); }
  .sidebar { padding-right: 14px; padding-left: 14px; }
  .home-main { padding-right: 4%; padding-left: 4%; }
  .welcome-section { grid-template-columns: minmax(0, 1fr) minmax(220px, .8fr); gap: 20px; }
  .welcome-copy h1 { font-size: 36px; }
  .visual-panel { min-height: 210px; }
  .controls-right { display: none; }
  .call-controls { grid-template-columns: .7fr auto .7fr; }
}
@media (max-width: 720px) {
  .app-shell { display: flex; flex-direction: column; }
  .sidebar { min-height: 0; flex-direction: row; align-items: center; justify-content: space-between; padding: 13px 18px; border-right: 0; border-bottom: 1px solid var(--line); }
  .brand { font-size: 20px; }
  .workspace-label, .sidebar-bottom, .main-nav .nav-link:not(.active):not(#nav-meetings) { display: none; }
  .main-nav { display: flex; }
  .nav-link { width: auto; padding: 8px; font-size: 0; }
  .nav-link svg { width: 19px; height: 19px; }
  .home-main { padding: 0 20px; }
  .topbar { min-height: 56px; }
  .topbar-right { gap: 10px; }
  .secure-label { font-size: 0; }
  .secure-dot { margin: 4px; }
  .welcome-section { grid-template-columns: 1fr; gap: 22px; margin: 20px 0 30px; padding: 25px 20px; }
  .welcome-copy h1 { font-size: 36px; }
  .welcome-copy > p { font-size: 12px; }
  .visual-panel { min-height: 195px; }
  .meeting-section { padding-bottom: 28px; }
  .section-heading { align-items: start; }
  .section-heading h2 { font-size: 18px; }
  .availability { font-size: 0; }
  .availability span { width: 8px; height: 8px; }
  .meeting-grid { grid-template-columns: 1fr; gap: 10px; }
  .meeting-card { min-height: 188px; }
  .calendar-section { padding-top: 24px; }
  .calendar-section-heading { align-items: start; }
  .calendar-section-heading h2 { font-size: 17px; }
  .calendar-section-heading .primary-button { min-height: 34px; gap: 7px; padding: 0 9px; font-size: 10px; }
  .calendar-layout { grid-template-columns: minmax(0, 1fr); gap: 16px; }
  .calendar-toolbar { gap: 3px; padding: 7px 5px; }
  .calendar-toolbar h3 { min-width: 0; flex: 1; font-size: 11px; }
  .calendar-toolbar .icon-button { width: 28px; height: 28px; }
  .calendar-today-button { min-height: 27px; padding: 0 7px; font-size: 9px; }
  .calendar-weekdays span { padding: 8px 2px; font-size: 8px; }
  .calendar-day { min-height: 53px; gap: 2px; padding: 4px; }
  .calendar-day-number { width: 21px; height: 21px; font-size: 9px; }
  .calendar-day-events { display: flex; flex-wrap: wrap; gap: 3px; }
  .calendar-day-event { width: 6px; height: 6px; overflow: hidden; }
  .calendar-day-event span, .calendar-day-more { display: none; }
  .calendar-agenda { padding: 13px 0 0; border-top: 2px solid #e8efea; border-left: 0; }
  .calendar-agenda-heading h3 { font-size: 14px; }
  .schedule-dialog { gap: 11px; padding: 24px 18px; }
  .schedule-time-fields { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .schedule-field:last-child { grid-column: 1 / -1; }
  .turns-editor-heading { grid-template-columns: minmax(0, 1fr) 64px; }
  .turns-editor-heading .add-attendee-button { grid-column: 1 / -1; justify-self: start; }
  .agenda-attendee-row { grid-template-columns: minmax(0, 1fr) 64px 30px; gap: 5px; }
  .home-footer { flex-wrap: wrap; min-height: 54px; }
  .footer-spacer { flex-basis: 100%; height: 0; }
  .home-footer button:first-of-type { margin-left: auto; }
  .call-shell { min-height: 100dvh; height: 100dvh; }
  .call-header { height: 57px; padding: 0 13px; }
  .call-brand { font-size: 16px; }
  .call-brand .brand-mark { width: 19px; height: 19px; }
  .call-room-info { gap: 7px; font-size: 9px; }
  .live-indicator { font-size: 0; padding: 6px; }
  .live-indicator i { width: 6px; height: 6px; }
  .call-header-actions { gap: 5px; }
  .copy-link-button { width: 34px; min-height: 34px; justify-content: center; padding: 0; }
  .copy-link-button span { display: none; }
  .call-more { display: none; }
  .call-body { padding: 16px 12px 8px; }
  .stage-topline { padding-bottom: 12px; }
  .stage-topline h1 { max-width: 235px; font-size: 16px; }
  .video-grid { gap: 6px; }
  .video-grid:has(.video-tile:nth-child(2)) { grid-template-columns: 1fr; grid-template-rows: repeat(2, minmax(0, 1fr)); }
  .video-grid:has(.video-tile:nth-child(4)) { grid-template-columns: repeat(2, minmax(0, 1fr)); grid-template-rows: repeat(2, minmax(0, 1fr)); }
  .video-grid:has(.video-tile:nth-child(5)) { grid-template-columns: repeat(2, minmax(0, 1fr)); grid-template-rows: repeat(3, minmax(0, 1fr)); }
  .video-grid:has(.video-tile:nth-child(5)):not(:has(.video-tile:nth-child(6))) { grid-template-columns: repeat(2, minmax(0, 1fr)); grid-template-rows: repeat(3, minmax(0, 1fr)); }
  .video-grid:has(.video-tile:nth-child(5)):not(:has(.video-tile:nth-child(6))) .video-tile { grid-column: auto; width: auto; }
  .video-grid:has(.video-tile:nth-child(5)):not(:has(.video-tile:nth-child(6))) .video-tile:nth-child(4),
  .video-grid:has(.video-tile:nth-child(5)):not(:has(.video-tile:nth-child(6))) .video-tile:nth-child(5) { grid-column: auto; }
  .video-grid:has(.video-tile:nth-child(5)):not(:has(.video-tile:nth-child(6))) .video-tile:last-child { grid-column: 1 / -1; width: calc(50% - 3px); justify-self: center; }
  .video-tile { min-height: 90px; }
  .placeholder-avatar { width: 46px; height: 46px; font-size: 16px; }
  .video-placeholder { gap: 7px; font-size: 9px; }
  .tile-overlay { min-height: 31px; padding: 5px 7px; }
  .tile-name { font-size: 9px; }
  .chat-panel { position: absolute; z-index: 3; top: 65px; right: 10px; bottom: 95px; width: min(300px, calc(100vw - 20px)); margin: 0; box-shadow: 0 10px 30px rgb(28 43 31 / 15%); }
  .participants-panel { position: absolute; z-index: 3; top: 65px; right: 10px; bottom: 95px; width: min(320px, calc(100vw - 20px)); margin: 0; box-shadow: 0 10px 30px rgb(28 43 31 / 15%); }
  .call-controls { grid-template-columns: 1fr; min-height: 78px; padding: 7px 8px; }
  .controls-left, .controls-right { display: none; }
  .control-buttons { justify-content: center; gap: 5px; }
  .control-button { width: 53px; height: 57px; }
  #enable-audio-button { width: 38px; }
  #enable-audio-button .control-label { display: none; }
  .leave-button { height: 37px; padding: 0 11px; }
  .connection-note { height: 25px; font-size: 8px; }
}
@media (max-width: 380px) {
  .home-main { padding-right: 15px; padding-left: 15px; }
  .call-room-name { max-width: 88px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .control-buttons { gap: 1px; }
  .control-button { width: 47px; }
  #enable-audio-button { width: 34px; }
  .leave-button { gap: 5px; padding: 0 9px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; }
}