/* Signed-in app shell + dashboard pages (Google Workspace style) */
:root { --surface: #fff; --surface-2: #f8fafd; --hover: #f1f3f4; --sel: #c2e7ff; --sel-text: #001d35; --green: #188038; --amber: #e37400; }
@media (prefers-color-scheme: dark) { :root { --surface: #1f1f1f; --surface-2: #131314; --hover: #2d2e30; --sel: #004a77; --sel-text: #c2e7ff; } }

#app { display: grid; grid-template-columns: 256px 1fr; grid-template-rows: 64px 1fr; min-height: 100vh; background: var(--surface-2); }
.app-top { grid-column: 1 / -1; display: flex; align-items: center; gap: 12px; padding: 0 16px; background: var(--surface-2); position: sticky; top: 0; z-index: 20; }
.app-top .brand { font-size: 20px; min-width: 200px; }
.search-box { flex: 1; max-width: 720px; display: flex; align-items: center; gap: 10px; background: var(--hover); border-radius: 24px; height: 46px; padding: 0 16px; }
.search-box:focus-within { background: var(--surface); box-shadow: 0 1px 3px rgba(0,0,0,.2); }
.search-box input { flex: 1; border: 0; background: none; outline: 0; font: inherit; font-size: 15px; color: var(--text); }
.search-box .ms { color: var(--muted); }
.top-right { margin-left: auto; display: flex; align-items: center; gap: 8px; }
.avatar-btn { border: 0; background: none; padding: 4px; border-radius: 50%; }
.avatar-btn:hover { background: var(--hover); }
.av { border-radius: 50%; display: inline-grid; place-items: center; color: #fff; font-size: 13px; font-weight: 500; flex: none; }
.pop-wrap { position: relative; }
.popover { position: absolute; right: 0; top: 48px; background: var(--surface); border-radius: 16px; box-shadow: 0 4px 16px rgba(0,0,0,.2); min-width: 280px; max-width: 380px; z-index: 40; padding: 8px 0; max-height: 70vh; overflow: auto; }
.popover.left { left: 0; right: auto; top: 54px; }
.pop-head { font-weight: 500; padding: 8px 16px; }
.menu-item { display: flex; gap: 14px; align-items: center; padding: 12px 18px; width: 100%; border: 0; background: none; text-align: left; color: var(--text); text-decoration: none; font-size: 14px; }
.menu-item:hover { background: var(--hover); }
.menu-item .ms { color: var(--muted); font-size: 20px; }
.me-card { padding: 12px 18px; border-bottom: 1px solid var(--line); margin-bottom: 4px; }
.notif { display: block; padding: 10px 16px; text-decoration: none; color: var(--text); font-size: 14px; border-left: 3px solid transparent; }
.notif.unread { border-left-color: var(--blue); background: rgba(26,115,232,.06); }
.notif:hover { background: var(--hover); }
.notif time { display: block; font-size: 12px; color: var(--muted); margin-top: 2px; }
.pad { padding: 8px 16px; }

.sidenav { padding: 8px 12px 24px 0; display: flex; flex-direction: column; gap: 2px; position: sticky; top: 64px; height: calc(100vh - 64px); overflow: auto; }
.sidenav a { display: flex; align-items: center; gap: 18px; height: 40px; padding: 0 16px 0 24px; border-radius: 0 20px 20px 0; color: var(--text); text-decoration: none; font-size: 14px; font-weight: 500; }
.sidenav a:hover { background: var(--hover); }
.sidenav a.active { background: var(--sel); color: var(--sel-text); }
.sidenav a .ms { font-size: 20px; }
.nav-count { margin-left: auto; background: var(--blue); color: #fff; font-size: 11px; border-radius: 10px; padding: 1px 7px; font-weight: 500; }
.tab .nav-count, .seg .nav-count { margin-left: 6px; }

.page { padding: 8px 24px 48px 8px; min-width: 0; outline: 0; }
.page-head { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; margin: 8px 0 16px; }
.page-head h1, .md-head h1 { font-size: 28px; font-weight: 400; margin: 0; }
.page-head p { margin: 4px 0 0; }
.loading { display: grid; place-items: center; padding: 64px; gap: 12px; }
.card { background: var(--surface); border-radius: 16px; padding: 20px 24px; margin-bottom: 16px; min-width: 0; }
.card h2 { font-size: 18px; font-weight: 500; margin: 0 0 12px; }
.card h3 { font-size: 15px; font-weight: 500; margin: 18px 0 8px; }
.card.narrow { max-width: 720px; }
.card-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 8px; }
.card-head h2 { margin: 0; }
.btn.big { height: 48px; border-radius: 24px; padding: 0 24px; }
.btn.outline { border: 1px solid var(--line); color: var(--blue); }
.btn.outline:hover { background: rgba(26,115,232,.06); }
.btn.danger, .danger { color: var(--red) !important; }
.btn.disabled { pointer-events: none; opacity: .5; }
.btn.small { border-radius: 16px; }
.row-btns { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.row-item { display: flex; align-items: center; gap: 14px; padding: 10px 8px; border-radius: 10px; color: var(--text); text-decoration: none; }
.row-item.link:hover { background: var(--hover); }
.row-item .ic { color: var(--blue); }
.grow { flex: 1; min-width: 0; }
.title-link { font-weight: 500; color: var(--text); text-decoration: none; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; display: block; }
a.title-link:hover { color: var(--blue); }
.tag { font-size: 11px; font-weight: 500; border-radius: 10px; padding: 2px 8px; background: var(--hover); color: var(--muted); white-space: nowrap; }
.tag.ai, .ai-tag { background: rgba(26,115,232,.1); color: var(--blue); }
@media (prefers-color-scheme: dark) { .tag.ai, .ai-tag { color: #8ab4f8; } }
.ai-tag { font-size: 11px; font-weight: 500; border-radius: 10px; padding: 2px 8px; display: inline-block; }
.tag.live { background: var(--red); color: #fff; }
.tag.high { background: #fce8e6; color: #c5221f; } .tag.medium { background: #fef7e0; color: #b06000; } .tag.low { background: #e6f4ea; color: #137333; }
.empty { text-align: center; padding: 28px 12px; color: var(--muted); }
.empty .ms { font-size: 40px; opacity: .5; }
.empty p { margin: 8px 0; }
.upsell { display: flex; align-items: center; gap: 12px; background: rgba(26,115,232,.06); border-radius: 12px; padding: 12px 16px; margin: 8px 0 12px; font-size: 14px; }
.upsell .ms { color: var(--blue); } .upsell div { flex: 1; }
.kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)); gap: 12px; margin-bottom: 16px; }
.kpi { background: var(--surface-2); border-radius: 12px; padding: 14px 16px; }
.kpi b { display: block; font-size: 26px; font-weight: 400; }
.kpi span { color: var(--muted); font-size: 13px; }
.bars { display: flex; align-items: flex-end; gap: 3px; height: 80px; }
.bar { flex: 1; background: var(--blue); border-radius: 3px 3px 0 0; min-height: 2px; opacity: .85; }
.bar:hover { opacity: 1; }
.meter { height: 8px; background: var(--hover); border-radius: 4px; overflow: hidden; margin: 8px 0; }
.meter span { display: block; height: 100%; background: var(--blue); }

/* forms */
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px 16px; }
.form-grid label, .field-row { display: flex; flex-direction: column; gap: 6px; font-size: 13px; color: var(--muted); }
.form-grid .full { grid-column: 1 / -1; }
.form-grid input, .form-grid select, .form-grid textarea, .inline-form input, .inline-form select, .field-row select, .field-row input, .page select, #modalCard select {
  font: inherit; font-size: 14px; color: var(--text); background: var(--surface); border: 1px solid var(--line); border-radius: 8px; padding: 9px 12px; }
.form-grid input:focus, .form-grid select:focus, .form-grid textarea:focus, .inline-form input:focus { outline: 2px solid var(--blue); border-color: transparent; }
.form-grid input[type=color] { padding: 2px; height: 40px; }
.field.area { height: auto; padding: 12px; font-family: inherit; line-height: 1.5; resize: vertical; width: 100%; }
.notes-area { min-height: 360px; }
.inline-form { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; margin: 8px 0; }
.inline-form input { flex: 1 1 160px; }
.form-error { color: var(--red); font-size: 13px; min-height: 1em; margin: 0; }
.mini-input { width: 120px; padding: 6px 8px !important; }
.mini-select { font: inherit; font-size: 13px; padding: 4px; border-radius: 6px; border: 1px solid var(--line); background: var(--panel); color: var(--panel-text); max-width: 150px; }
.switch-row { display: flex; justify-content: space-between; align-items: center; padding: 10px 0; font-size: 14px; gap: 16px; position: relative; cursor: pointer; }
.switch-row input { position: absolute; opacity: 0; }
.switch { width: 36px; height: 20px; background: var(--line); border-radius: 10px; position: relative; flex: none; transition: background .15s; }
.switch::after { content: ""; position: absolute; left: 2px; top: 2px; width: 16px; height: 16px; border-radius: 50%; background: #fff; transition: transform .15s; box-shadow: 0 1px 2px rgba(0,0,0,.3); }
.switch-row input:checked + .switch { background: var(--blue); }
.switch-row input:checked + .switch::after { transform: translateX(16px); }
.switch-row input:focus-visible + .switch { outline: 2px solid var(--blue); outline-offset: 2px; }
.switch-row input:disabled + .switch { opacity: .5; }
.radio-list { display: flex; flex-direction: column; gap: 10px; font-size: 14px; margin-bottom: 8px; }
.radio-list input { accent-color: var(--blue); margin-right: 8px; }
.seg { display: flex; gap: 4px; flex-wrap: wrap; margin: 0 0 16px; }
.seg a { padding: 8px 16px; border-radius: 18px; text-decoration: none; color: var(--text); font-size: 14px; font-weight: 500; border: 1px solid var(--line); background: var(--surface); }
.seg a.on { background: var(--sel); color: var(--sel-text); border-color: transparent; }
.search-inline { display: flex; align-items: center; gap: 8px; background: var(--surface); border: 1px solid var(--line); border-radius: 20px; padding: 0 14px; height: 40px; min-width: 240px; }
.search-inline input { border: 0; outline: 0; background: none; font: inherit; color: var(--text); flex: 1; }
.search-inline .ms { color: var(--muted); font-size: 20px; }
.copy-box { display: flex; align-items: center; gap: 8px; background: var(--hover); border-radius: 8px; padding: 4px 4px 4px 12px; font-size: 14px; margin: 8px 0; }
.copy-box span { flex: 1; word-break: break-all; font-family: Roboto, monospace; font-size: 13px; }
.copy-box.small { font-size: 12px; }
.center { text-align: center; }

/* modal */
.modal { position: fixed; inset: 0; background: rgba(0,0,0,.45); display: grid; place-items: center; z-index: 60; padding: 16px; animation: fade .15s; }
@keyframes fade { from { opacity: 0; } }
.modal-card { background: var(--surface); color: var(--text); border-radius: 24px; padding: 24px; width: min(480px, 100%); max-height: 90vh; overflow: auto; box-shadow: 0 8px 32px rgba(0,0,0,.3); }
.modal-card.wide { width: min(680px, 100%); }
.modal-card h2 { font-weight: 400; font-size: 22px; margin: 0 0 12px; }
.modal-actions { display: flex; justify-content: flex-end; gap: 8px; margin-top: 16px; }
.avail { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.avail-tag { border-radius: 10px; padding: 2px 8px; font-size: 12px; background: var(--hover); }
.avail-tag.free { background: #e6f4ea; color: #137333; } .avail-tag.busy { background: #fce8e6; color: #c5221f; }

/* calendar */
.cal-title { font-size: 20px; font-weight: 400; margin: 0 8px; min-width: 160px; }
.cal-layout { display: grid; grid-template-columns: 1fr 300px; gap: 16px; }
.cal-grid { background: var(--surface); border-radius: 16px; overflow: hidden; }
.cal-dow { display: grid; grid-template-columns: repeat(7, 1fr); font-size: 11px; color: var(--muted); text-transform: uppercase; text-align: center; padding: 8px 0; }
.cal-cells { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); grid-auto-rows: minmax(96px, 1fr); }
.cal-cell { border-top: 1px solid var(--line); border-left: 1px solid var(--line); padding: 4px; display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.cal-cell:nth-child(7n+1) { border-left: 0; }
.cal-cell.dim { background: var(--surface-2); }
.cal-cell.dim .cal-num { opacity: .5; }
.cal-num { font-size: 12px; font-weight: 500; text-align: center; width: 24px; height: 24px; line-height: 24px; border-radius: 50%; align-self: center; }
.cal-cell.today .cal-num { background: var(--blue); color: #fff; }
.cal-ev { border: 0; background: var(--blue); color: #fff; font-size: 11px; text-align: left; border-radius: 4px; padding: 2px 6px; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.cal-ev.org { background: var(--green); }
.cal-cell .more { font-size: 11px; color: var(--muted); padding-left: 4px; }
.agenda-item { display: flex; flex-direction: column; text-align: left; border: 0; background: none; padding: 8px; border-radius: 8px; width: 100%; color: var(--text); gap: 2px; }
.agenda-item:hover { background: var(--hover); }
.sync-box { border-top: 1px solid var(--line); margin-top: 12px; padding-top: 4px; }
pre.agenda, pre.code { white-space: pre-wrap; font-family: inherit; font-size: 14px; background: var(--surface-2); border-radius: 8px; padding: 10px 12px; margin: 6px 0; }
pre.code { font-family: Roboto Mono, monospace; font-size: 12px; overflow-x: auto; white-space: pre; }

/* meeting detail */
.md-head { display: flex; gap: 12px; align-items: flex-start; margin: 8px 0 12px; flex-wrap: wrap; }
.md-head h1[contenteditable]:hover, .md-head h1[contenteditable]:focus { background: var(--hover); border-radius: 6px; outline: 0; }
.md-head p { margin: 4px 0; }
.people-row { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 6px; }
.person-chip { display: inline-flex; gap: 6px; align-items: center; background: var(--surface); border-radius: 14px; padding: 2px 10px 2px 2px; font-size: 13px; }
.person-chip .av { font-size: 11px; }
.tabs { display: flex; gap: 4px; overflow-x: auto; border-bottom: 1px solid var(--line); margin-bottom: 16px; scrollbar-width: thin; }
.tab { border: 0; background: none; padding: 10px 14px; display: flex; gap: 6px; align-items: center; color: var(--muted); font-weight: 500; font-size: 14px; border-bottom: 3px solid transparent; white-space: nowrap; }
.tab .ms { font-size: 18px; }
.tab.on { color: var(--blue); border-bottom-color: var(--blue); }
.tab:hover { background: var(--hover); }
.notes-layout { display: grid; grid-template-columns: 1fr 300px; gap: 16px; align-items: start; }
.note-sec h3 { display: flex; gap: 8px; align-items: center; }
.note-sec h3 .ms { font-size: 20px; color: var(--blue); }
.note-sec ul { margin: 0; padding-left: 22px; line-height: 1.6; }
.note-sec li { margin-bottom: 6px; }
button.ts, a.ts { border: 0; background: none; color: var(--blue); font: inherit; font-size: 12px; font-weight: 500; cursor: pointer; padding: 0 2px; text-decoration: none; }
button.ts:hover { text-decoration: underline; }
.chapters, .highlights { padding-left: 18px; font-size: 14px; line-height: 1.8; }
.tr-list { display: flex; flex-direction: column; gap: 2px; max-height: 65vh; overflow-y: auto; }
.tr-line { display: grid; grid-template-columns: 56px 24px 1fr; gap: 10px; align-items: start; padding: 6px 8px; border-radius: 8px; font-size: 14px; line-height: 1.5; }
.tr-line:hover { background: var(--hover); }
.tr-line.uncertain .tr-text { text-decoration: underline dotted var(--amber); }
.tr-line.flash { animation: flash 1.5s; }
@keyframes flash { 0%, 40% { background: rgba(26,115,232,.2); } }
.ts-btn { border: 0; background: none; color: var(--blue); font: 12px Roboto, monospace; cursor: pointer; padding: 3px 0; text-align: left; }
.unc { display: inline-grid; place-items: center; width: 16px; height: 16px; border-radius: 50%; background: var(--amber); color: #fff; font-size: 11px; font-style: normal; font-weight: 700; }
mark { background: #fde293; color: inherit; border-radius: 2px; }
.task-row { display: flex; gap: 10px; align-items: flex-start; padding: 10px 4px; border-bottom: 1px solid var(--line); }
.task-row:last-of-type { border-bottom: 0; }
.task-row.done .task-title { text-decoration: line-through; color: var(--muted); }
.task-row.proposed { background: rgba(26,115,232,.05); border-radius: 10px; padding: 10px; margin-bottom: 6px; border-bottom: 0; }
.task-row .chk { color: var(--blue); width: 32px; height: 32px; }
.task-title { font-size: 14px; font-weight: 500; padding: 4px 0; }
.task-title[contenteditable] { border-radius: 4px; }
.task-title[contenteditable]:focus { outline: 1px solid var(--blue); background: var(--surface); }
.ai-ic { color: var(--blue); padding: 6px; }
.ms.tiny { font-size: 14px; vertical-align: -2px; margin: 0 2px; }
.quote { font-style: italic; margin-top: 4px; border-left: 2px solid var(--line); padding-left: 8px; }
.draft { border: 1px solid var(--line); border-radius: 12px; padding: 14px 16px; margin-top: 14px; font-size: 14px; line-height: 1.6; }
.draft h4 { margin: 12px 0 4px; } .draft ul { padding-left: 20px; margin: 4px 0; } .draft p { margin: 6px 0; }
h4.ai-sugg { color: var(--blue); }
.kind-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 10px; margin: 12px 0; }
.kind { display: flex; flex-direction: column; align-items: flex-start; gap: 8px; border: 1px solid var(--line); background: var(--surface); color: var(--text); border-radius: 12px; padding: 14px; font-size: 14px; font-weight: 500; text-align: left; }
.kind:hover { border-color: var(--blue); background: rgba(26,115,232,.04); }
.kind .ms { color: var(--blue); }
.ask-card .chat-list { min-height: 200px; }
.ask-card .chat-form input { color: var(--text); }
.share-list { display: flex; flex-direction: column; gap: 14px; }
.share-row { display: flex; gap: 12px; align-items: center; }
.share-top { display: flex; justify-content: space-between; font-size: 14px; margin-bottom: 4px; }
.share-bar { height: 8px; background: var(--hover); border-radius: 4px; overflow: hidden; }
.share-bar span { display: block; height: 100%; background: var(--blue); border-radius: 4px; }
.tips { font-size: 14px; line-height: 1.6; }
.rec-item { margin-bottom: 16px; }
.rec-item video { width: 100%; max-height: 60vh; background: #000; border-radius: 12px; }
dl.details { display: grid; grid-template-columns: 120px 1fr; gap: 10px 16px; font-size: 14px; margin: 0 0 16px; }
dl.details dt { color: var(--muted); } dl.details dd { margin: 0; }

/* memory */
.memory-hero { text-align: center; padding: 24px 0 8px; }
.memory-hero h1 { font-weight: 400; font-size: 32px; margin: 4px 0; }
.big-ic { font-size: 48px; color: var(--blue); }
.mem-search { display: flex; align-items: center; gap: 10px; max-width: 720px; margin: 20px auto 12px; background: var(--surface); border-radius: 28px; padding: 6px 6px 6px 18px; box-shadow: 0 1px 6px rgba(0,0,0,.12); }
.mem-search input { flex: 1; border: 0; outline: 0; background: none; font: inherit; font-size: 16px; color: var(--text); }
.mem-search .btn { border-radius: 22px; }
.chips.center { justify-content: center; margin-bottom: 16px; }
.chips .chip { color: var(--text); }
.answer { line-height: 1.6; font-size: 15px; }
.answer ul { padding-left: 20px; }
.mem-group { padding: 10px 0; border-bottom: 1px solid var(--line); }
.mem-hit { display: flex; gap: 8px; align-items: baseline; font-size: 14px; padding: 4px 0 4px 8px; }

/* workspace & admin */
.table { width: 100%; border-collapse: collapse; font-size: 14px; }
.table th { text-align: left; font-weight: 500; color: var(--muted); font-size: 12px; padding: 8px; border-bottom: 1px solid var(--line); }
.table td { padding: 8px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.table.small td { font-size: 13px; }
.table tr.inactive { opacity: .55; }
.table .right { text-align: right; white-space: nowrap; }
.trunc { max-width: 220px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cell-user { display: flex; gap: 10px; align-items: center; }
.admin-layout { display: grid; grid-template-columns: 220px 1fr; gap: 16px; align-items: start; }
.admin-nav { display: flex; flex-direction: column; gap: 2px; position: sticky; top: 72px; }
.admin-nav a { display: flex; gap: 12px; align-items: center; padding: 10px 14px; border-radius: 20px; text-decoration: none; color: var(--text); font-size: 14px; }
.admin-nav a .ms { font-size: 20px; color: var(--muted); }
.admin-nav a.on { background: var(--sel); color: var(--sel-text); }
.admin-nav a:hover { background: var(--hover); }
.tpl { padding: 8px 0; border-bottom: 1px solid var(--line); } .tpl summary { cursor: pointer; }
.brand-preview { display: flex; align-items: center; gap: 10px; background: var(--surface-2); border-radius: 12px; padding: 14px; color: var(--text) !important; flex-direction: row !important; }
.danger-text { color: var(--red); }

/* meeting-room additions */
.rec-badge { position: absolute; top: 14px; left: 16px; z-index: 7; background: rgba(32,33,36,.85); color: #fff; border-radius: 6px; padding: 4px 10px; font-size: 13px; font-weight: 500; display: flex; gap: 6px; align-items: center; }
.dot-red { width: 10px; height: 10px; border-radius: 50%; background: var(--red); animation: pulse 1.4s infinite; }
@keyframes pulse { 50% { opacity: .35; } }
.rec-warning { color: var(--red); display: flex; gap: 6px; align-items: center; font-size: 14px; margin: 0; }
.captions .tr { font-size: 15px; color: #c6dafc; margin: 2px 0 6px; }
.captions .ai-tag { margin-right: 6px; font-size: 10px; color: #d0bcff; background: rgba(161,66,244,.25); }
.captions .unc { margin-left: 6px; }
.msg.ai .body button.ts { color: var(--blue); }
textarea.field { width: 100%; }

@media (max-width: 1100px) { .notes-layout, .cal-layout { grid-template-columns: 1fr; } }
@media (max-width: 800px) {
  #app { grid-template-columns: 1fr; }
  .sidenav { position: fixed; left: 0; top: 64px; bottom: 0; width: 260px; background: var(--surface); z-index: 30; transform: translateX(-100%); transition: transform .2s; box-shadow: 2px 0 12px rgba(0,0,0,.2); }
  body.nav-open .sidenav { transform: none; }
  .app-top .brand { min-width: 0; } .app-top .brand b, .plan-chip { display: none; }
  .search-box { height: 40px; }
  .page { padding: 8px 16px 48px; }
  .form-grid { grid-template-columns: 1fr; }
  .admin-layout { grid-template-columns: 1fr; } .admin-nav { flex-direction: row; overflow-x: auto; position: static; }
  .admin-nav a { white-space: nowrap; }
  .cal-cells { grid-auto-rows: minmax(64px, 1fr); } .cal-ev { font-size: 0; height: 6px; padding: 0; }
  .table { display: block; overflow-x: auto; }
  dl.details { grid-template-columns: 1fr; }
}

.btn-spin { width: 16px; height: 16px; border: 2px solid rgba(255,255,255,.4); border-top-color: #fff; border-radius: 50%; animation: spin .8s linear infinite; }
.btn:disabled .btn-spin { opacity: 1; }
@media (prefers-reduced-motion: reduce) { .btn-spin { animation-duration: 3s; } }

/* checkout */
.co-wrap { display: grid; grid-template-columns: 1fr 380px; gap: 20px; align-items: start; max-width: 1180px; }
.co-steps { display: flex; gap: 8px; margin-bottom: 16px; flex-wrap: wrap; }
.co-step { display: flex; align-items: center; gap: 8px; font-size: 14px; color: var(--muted); font-weight: 500; }
.co-step b { width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; background: var(--hover); font-size: 13px; }
.co-step.on { color: var(--text); } .co-step.on b { background: var(--blue); color: #fff; }
.co-step.done b { background: var(--green); color: #fff; }
.co-step + .co-step::before { content: ""; width: 28px; height: 1px; background: var(--line); margin-right: 4px; }
.plan-pick { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-bottom: 16px; }
.plan-opt { border: 1px solid var(--line); border-radius: 14px; padding: 14px; background: var(--surface); color: var(--text); text-align: left; display: flex; flex-direction: column; gap: 4px; }
.plan-opt.on { border: 2px solid var(--blue); padding: 13px; background: rgba(26,115,232,.05); }
.plan-opt b { font-size: 16px; } .plan-opt span { font-size: 13px; color: var(--muted); }
.seat-ctl { display: inline-flex; align-items: center; border: 1px solid var(--line); border-radius: 20px; overflow: hidden; }
.seat-ctl button { border: 0; background: none; color: var(--text); width: 40px; height: 38px; font-size: 20px; }
.seat-ctl button:hover { background: var(--hover); }
.seat-ctl input { background: transparent; color: var(--text); font: inherit; width: 80px; text-align: center; border: 0 !important; border-radius: 0 !important; font-size: 16px !important; }
.opt-list { display: flex; flex-direction: column; gap: 8px; margin: 8px 0 16px; }
.opt { display: flex; gap: 12px; align-items: center; border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; font-size: 14px; cursor: pointer; background: var(--surface); }
.opt:has(input:checked) { border-color: var(--blue); background: rgba(26,115,232,.05); }
.opt input { accent-color: var(--blue); width: 18px; height: 18px; }
.opt .price-r { margin-left: auto; color: var(--muted); white-space: nowrap; }
.summary { position: sticky; top: 80px; }
.sum-line { display: flex; justify-content: space-between; gap: 12px; font-size: 14px; padding: 6px 0; }
.sum-line.total { font-size: 18px; font-weight: 500; border-top: 1px solid var(--line); margin-top: 6px; padding-top: 12px; }
.sum-line.disc { color: var(--green); }
.sum-notes { font-size: 12px; color: var(--muted); padding-left: 16px; margin: 10px 0 0; }
.pay-box { border: 1px dashed var(--line); border-radius: 12px; padding: 14px; display: flex; gap: 12px; align-items: flex-start; font-size: 14px; margin: 12px 0; }
.pay-box .ms { color: var(--blue); }
.secure { display: flex; gap: 6px; align-items: center; font-size: 12px; color: var(--muted); justify-content: center; margin-top: 10px; }
.success { text-align: center; padding: 32px 16px; }
.check-anim { width: 84px; height: 84px; border-radius: 50%; background: var(--green); display: grid; place-items: center; margin: 0 auto 16px; animation: pop .45s cubic-bezier(.2,1.6,.4,1); }
.check-anim .ms { color: #fff; font-size: 52px; }
@keyframes pop { from { transform: scale(0); } }
@media (max-width: 1000px) { .co-wrap { grid-template-columns: 1fr; } .summary { position: static; } .plan-pick { grid-template-columns: 1fr; } }

/* ---- meeting: tiers, quality, activities ---- */
:root { --brand: #1a73e8; --gold: #c9a227; }
.q-chip { font: 600 11px Roboto, sans-serif; letter-spacing: .4px; border: 1px solid #5f6368; border-radius: 4px; padding: 1px 5px; color: #e8eaed; align-self: center; }
.tier-chip { display: inline-flex; align-items: center; gap: 5px; font-size: 13px; color: #e8eaed; }
.tier-chip .ms { font-size: 16px; color: #8ab4f8; }
.watermark { position: absolute; inset: 0; z-index: 4; pointer-events: none; overflow: hidden; display: flex; flex-wrap: wrap; gap: 90px 140px; padding: 40px; transform: rotate(-24deg) scale(1.4); opacity: .07; }
.watermark span { color: #fff; font-size: 15px; white-space: nowrap; font-weight: 500; }
.ent-note { display: flex; gap: 6px; align-items: center; font-size: 13px; color: var(--muted); margin: 0; }
.ent-note .ms { color: var(--blue); font-size: 18px; }
.act-tabs { display: flex; gap: 4px; background: rgba(128,128,128,.12); border-radius: 20px; padding: 3px; margin-bottom: 8px; }
.act-tabs button { flex: 1; border: 0; background: none; border-radius: 16px; padding: 7px 4px; font-size: 13px; font-weight: 500; color: var(--panel-text); }
.act-tabs button.on { background: var(--panel); box-shadow: 0 1px 2px rgba(0,0,0,.2); color: var(--blue); }
.act-form { display: flex; flex-direction: column; gap: 8px; border: 1px solid var(--line); border-radius: 12px; padding: 12px; margin-bottom: 12px; }
.act-form input:not([type=checkbox]), .act-form textarea { font: inherit; font-size: 14px; border: 1px solid var(--line); border-radius: 8px; padding: 8px 10px; background: transparent; color: var(--panel-text); }
.act-form .btn { align-self: flex-end; }
.poll { border: 1px solid var(--line); border-radius: 12px; padding: 12px; margin-bottom: 10px; display: flex; flex-direction: column; gap: 6px; }
.poll-q { font-weight: 500; }
.poll-opt { position: relative; overflow: hidden; display: flex; justify-content: space-between; border: 1px solid var(--line); background: none; color: var(--panel-text); border-radius: 8px; padding: 9px 12px; font-size: 14px; text-align: left; }
.poll-opt span, .poll-opt b { position: relative; z-index: 1; }
.poll-fill { position: absolute !important; inset: 0 auto 0 0; background: rgba(26,115,232,.15); z-index: 0 !important; transition: width .4s; }
.poll-opt.mine { border-color: var(--blue); }
.poll-opt:disabled { cursor: default; }
.qa-item { display: flex; gap: 10px; align-items: flex-start; padding: 10px 0; border-bottom: 1px solid var(--line); font-size: 14px; }
.qa-item.answered { opacity: .55; }
.qa-vote { display: flex; flex-direction: column; align-items: center; border: 1px solid var(--line); background: none; color: var(--panel-text); border-radius: 8px; padding: 2px 8px; font-size: 12px; }
.qa-vote .ms { font-size: 16px; }
.upsell.dark { color: var(--panel-text); }
.person .icon-btn.on { color: var(--blue-light); }
.pulse { animation: pulse 1s 3; }

/* ---- app shell: plan label + collapsible sidebar ---- */
.tier-badge { margin: 4px 0 8px 24px; font-size: 12px; color: var(--muted); display: flex; align-items: center; gap: 6px; }
.tier-badge .ms { font-size: 16px; }
.org-card { margin: auto 12px 8px 24px; padding: 10px 0; display: flex; gap: 10px; align-items: center; font-size: 13px; border-top: 1px solid var(--line); }
.org-card .logo { width: 28px; height: 28px; border-radius: 8px; flex: none; }
.org-card .logo .ms { font-size: 16px; }
.org-card small { display: block; color: var(--muted); }
#app { transition: grid-template-columns .22s ease; }
@media (min-width: 801px) {
  body.nav-collapsed #app { grid-template-columns: 76px 1fr; }
  body.nav-collapsed .sidenav a { padding: 0; justify-content: center; border-radius: 20px; margin: 0 12px; width: 52px; gap: 0; font-size: 0; }
  body.nav-collapsed .sidenav a .ms { font-size: 22px; }
  body.nav-collapsed .sidenav .nav-count { position: absolute; margin: -18px 0 0 22px; font-size: 10px; }
  body.nav-collapsed .sidenav a { position: relative; }
  body.nav-collapsed .tier-badge, body.nav-collapsed .org-card div{ display: none; }
  body.nav-collapsed .org-card { margin: auto 0 8px 0; justify-content: center; border: 0; }
  body.nav-collapsed .sidenav a:hover::after { content: attr(data-label); position: absolute; left: 60px; background: #3c4043; color: #fff; font-size: 12px; padding: 4px 8px; border-radius: 4px; white-space: nowrap; z-index: 50; }
}
.sidenav > * { flex-shrink: 0; }
