/* Virtual Meet dashboard and public pages: light, calm, indigo for actions. */
:root {
  --bg: #f4f6fb; --card: #ffffff; --ink: #0f172a; --muted: #64748b; --rule: #e3e8f2; --soft: #eef1f8;
  --brand: #4f46e5; --brand-ink: #ffffff; --brand-soft: #eceafe; --ok: #16a34a; --warn: #b45309;
  --r: 14px; --font: 'Segoe UI', system-ui, -apple-system, Helvetica, Arial, sans-serif;
}
* { box-sizing: border-box; }
html, body { margin: 0; background: var(--bg); color: var(--ink); font: 400 15px/1.5 var(--font); -webkit-font-smoothing: antialiased; }
a { color: var(--brand); }
h1 { font-size: 26px; line-height: 1.2; margin: 0 0 8px; letter-spacing: -.01em; }
h2 { font-size: 17px; margin: 0 0 10px; }
input, select, textarea, button { font: inherit; color: inherit; }
input[type=text], input[type=email], input[type=password], input[type=datetime-local], input[type=number], select, textarea {
  width: 100%; padding: 10px 12px; border: 1px solid #cfd6e4; border-radius: 10px; background: #fff; }
input:focus, select:focus, textarea:focus { outline: 2px solid var(--brand-soft); border-color: var(--brand); }
textarea { resize: vertical; }
label { display: block; font-weight: 600; font-size: 14px; margin: 0 0 12px; }
label > input, label > select, label > textarea { margin-top: 5px; font-weight: 400; }
label small { font-weight: 400; color: var(--muted); }
.btn { display: inline-flex; align-items: center; gap: 7px; padding: 9px 15px; border-radius: 10px; border: 1px solid #cfd6e4; background: #fff; cursor: pointer; text-decoration: none; color: var(--ink); font-weight: 600; font-size: 14px; }
.btn:hover { border-color: var(--brand); }
.btn.primary { background: var(--brand); border-color: var(--brand); color: var(--brand-ink); }
.btn.primary:hover { background: #4338ca; }
.btn.big { padding: 13px 22px; font-size: 16px; }
.btn.ghost { border-color: transparent; background: transparent; color: var(--muted); }
.btn.ghost:hover { color: var(--ink); background: var(--soft); }
.btn.danger { color: #b42318; }
.btn:disabled { opacity: .5; cursor: not-allowed; }
.muted { color: var(--muted); }
.small { font-size: 13px; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 18px; }
.brand.small { font-size: 15px; margin-bottom: 18px; }
.logo { display: inline-grid; place-items: center; width: 34px; height: 34px; border-radius: 10px; background: var(--brand); color: #fff; font-size: 13px; font-weight: 800; letter-spacing: .5px; }
.brand.small .logo { width: 28px; height: 28px; font-size: 11px; }

/* public pages */
.landing { max-width: 760px; margin: 0 auto; padding: 64px 24px; }
.landing h1 { font-size: 40px; margin: 40px 0 12px; }
.landing .lede { font-size: 19px; color: #334155; max-width: 620px; }
.ticks { list-style: none; padding: 0; margin: 32px 0 0; display: grid; gap: 10px; }
.ticks li::before { content: '✓'; color: var(--brand); font-weight: 800; margin-right: 10px; }
.card { background: var(--card); border: 1px solid var(--rule); border-radius: 18px; padding: 28px; box-shadow: 0 6px 24px rgba(15, 23, 42, .05); }
.card.narrow, .card.join { max-width: 560px; margin: 48px auto; }
.join .meta { color: var(--muted); margin: 0 0 18px; }
.agenda { background: var(--soft); border-radius: var(--r); padding: 14px 18px; margin: 0 0 20px; }
.agenda h2 { font-size: 15px; text-transform: none; }
.agenda ol { margin: 0; padding-left: 20px; }
.agenda li { margin: 6px 0; }
.agenda li span { color: var(--muted); }
.agenda li em { float: right; font-style: normal; color: var(--muted); font-size: 13px; }

/* app shell */
.top { display: flex; align-items: center; gap: 14px; padding: 14px 28px; background: #fff; border-bottom: 1px solid var(--rule); position: sticky; top: 0; z-index: 5; }
.top .sp { flex: 1; }
main.app { max-width: 1040px; margin: 0 auto; padding: 28px 24px 80px; }
.row { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.row.end { justify-content: flex-end; }
.spread { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; }
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.grid3 { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 14px; }
@media (max-width: 720px) { .grid2, .grid3 { grid-template-columns: 1fr; } .top { padding: 12px 16px; } }
.panel { background: var(--card); border: 1px solid var(--rule); border-radius: 18px; padding: 22px; margin: 0 0 18px; }
.panel h2 .muted { font-weight: 400; font-size: 14px; }
.list { list-style: none; margin: 0; padding: 0; }
.list > li { display: flex; align-items: center; gap: 14px; padding: 14px 4px; border-top: 1px solid var(--rule); }
.list > li:first-child { border-top: 0; }
.list .when { width: 92px; flex: none; text-align: center; background: var(--soft); border-radius: 12px; padding: 7px 4px; line-height: 1.15; }
.list .when b { display: block; font-size: 20px; }
.list .when span { font-size: 12px; color: var(--muted); text-transform: uppercase; letter-spacing: .04em; }
.list .info { flex: 1; min-width: 0; }
.list .info b { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pill { display: inline-block; padding: 2px 9px; border-radius: 999px; background: var(--soft); color: var(--muted); font-size: 12px; font-weight: 600; }
.pill.ok { background: #dcfce7; color: #166534; }
.pill.brand { background: var(--brand-soft); color: var(--brand); }
.empty { text-align: center; padding: 28px 10px; color: var(--muted); }

/* agenda builder */
.items { list-style: none; margin: 0 0 10px; padding: 0; counter-reset: it; }
.items li { display: grid; grid-template-columns: 26px 1fr 92px 150px auto; gap: 8px; align-items: center; padding: 6px 0; }
.items li::before { counter-increment: it; content: counter(it); color: var(--muted); font-weight: 700; text-align: center; }
.items input { padding: 8px 10px; }
.items .ops { display: flex; gap: 2px; }
.items .ops button { border: 0; background: transparent; cursor: pointer; padding: 6px; border-radius: 8px; color: var(--muted); }
.items .ops button:hover { background: var(--soft); color: var(--ink); }
@media (max-width: 720px) { .items li { grid-template-columns: 22px 1fr 70px auto; } .items li .own { display: none; } }
.ways { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin: 0 0 16px; }
@media (max-width: 720px) { .ways { grid-template-columns: 1fr; } }
.way { display: flex; gap: 10px; align-items: center; padding: 14px; border-radius: 14px; border: 1px solid var(--rule); background: #fff; cursor: pointer; text-align: left; }
.way:hover { border-color: var(--brand); }
.way .ic { font-size: 22px; }
.way b { display: block; font-size: 14.5px; }
.way small { color: var(--muted); }
.chips { display: flex; flex-wrap: wrap; gap: 6px; margin: 8px 0 0; }
.chip { display: inline-flex; align-items: center; gap: 6px; padding: 5px 6px 5px 11px; border-radius: 999px; background: var(--soft); font-size: 13.5px; }
.chip button { border: 0; background: transparent; cursor: pointer; color: var(--muted); padding: 0 4px; font-size: 15px; }
.chip label { display: inline-flex; gap: 4px; align-items: center; margin: 0; font-weight: 600; font-size: 12px; color: var(--muted); }
.chip.co { background: var(--brand-soft); }

/* modal */
.modal-back { position: fixed; inset: 0; background: rgba(15, 23, 42, .45); display: grid; place-items: center; padding: 16px; z-index: 50; }
.modal { width: min(640px, 100%); max-height: 92vh; overflow: auto; background: #fff; border-radius: 20px; padding: 24px; box-shadow: 0 30px 80px rgba(15, 23, 42, .35); }
.modal h2 { font-size: 21px; }
.mic { width: 92px; height: 92px; border-radius: 50%; border: 0; background: var(--brand); color: #fff; font-size: 38px; cursor: pointer; display: grid; place-items: center; margin: 10px auto; box-shadow: 0 10px 30px rgba(79, 70, 229, .35); }
.mic.on { background: #e11d48; animation: pulse 1.3s infinite; }
@keyframes pulse { 50% { box-shadow: 0 0 0 14px rgba(225, 29, 72, .15); } }
.heard { min-height: 60px; background: var(--soft); border-radius: 12px; padding: 10px 12px; color: #334155; white-space: pre-wrap; }
.preview { margin: 12px 0; }
.preview ol { margin: 6px 0 0; padding-left: 20px; }
.tabs { display: flex; gap: 6px; margin: 0 0 14px; border-bottom: 1px solid var(--rule); }
.tabs button { border: 0; background: transparent; padding: 8px 12px; cursor: pointer; font-weight: 600; color: var(--muted); border-bottom: 2px solid transparent; }
.tabs button.on { color: var(--brand); border-color: var(--brand); }
.prev-list { list-style: none; margin: 0; padding: 0; max-height: 320px; overflow: auto; }
.prev-list li { padding: 10px; border: 1px solid var(--rule); border-radius: 12px; margin: 0 0 8px; cursor: pointer; }
.prev-list li:hover { border-color: var(--brand); }
.toast { position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%); background: #0f172a; color: #fff; padding: 11px 18px; border-radius: 12px; z-index: 60; box-shadow: 0 10px 30px rgba(0, 0, 0, .25); }
.copy { display: flex; gap: 8px; }
.copy input { font-size: 13.5px; background: var(--soft); }
.snaps { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 10px; }
.snaps figure { margin: 0; }
.snaps img { width: 100%; border-radius: 10px; border: 1px solid var(--rule); }
.snaps figcaption { font-size: 13px; color: var(--muted); }
.outcome { color: #334155; font-size: 14px; border-left: 3px solid var(--brand); padding-left: 10px; margin: 4px 0 0; white-space: pre-wrap; }
.auth { max-width: 420px; margin: 64px auto; }
.err { color: #b42318; font-size: 14px; min-height: 20px; }
