@import url("/css/lumio-fonts.css"); /* Lumio brand fonts (Darker Grotesque + Inter) */

/* ---------- references strip ---------- */
.refs-card {
	margin-top: 14px;
	padding: 12px 14px;
	background: var(--bg-soft);
	border: 1px solid var(--line-soft);
	border-radius: 10px;
}
.refs-header {
	display: flex;
	justify-content: space-between;
	align-items: center;
	flex-wrap: wrap;
	gap: 8px;
	margin-bottom: 8px;
}
.refs-label {
	font-size: 14px;
	font-weight: 500;
	color: var(--ink);
}
.refs-actions {
	display: flex;
	gap: 6px;
	flex-wrap: wrap;
}
.refs-list {
	display: flex;
	flex-direction: column;
	gap: 6px;
}
.refs-list:empty {
	display: none;
}
.refs-empty {
	font-size: 12px;
	color: var(--muted);
	padding: 4px 0;
}
.refs-list:not(:empty) + .refs-empty {
	display: none;
}
.ref-row {
	display: flex;
	align-items: center;
	gap: 10px;
	padding: 8px 10px;
	background: var(--surface);
	border: 1px solid var(--line-soft);
	border-radius: 8px;
	font-size: 13px;
}
.ref-row .ref-icon {
	flex: 0 0 auto;
	font-size: 16px;
}
.ref-row .ref-name {
	flex: 1;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
	color: var(--ink);
}
.ref-row .ref-meta {
	flex: 0 0 auto;
	color: var(--muted);
	font-size: 12px;
}
.ref-row .ref-link {
	flex: 0 0 auto;
	color: var(--accent, #0f5fff);
	text-decoration: none;
	font-size: 12px;
}
.ref-row .ref-remove {
	flex: 0 0 auto;
	width: 22px;
	height: 22px;
	border-radius: 50%;
	border: none;
	background: transparent;
	cursor: pointer;
	color: var(--muted);
	font-size: 16px;
	padding: 0;
}
.ref-row .ref-remove:hover {
	background: var(--danger-bg);
	color: var(--danger);
}
.ref-card {
	display: flex;
	flex-direction: column;
	gap: 4px;
	padding: 8px 10px;
	background: var(--surface);
	border: 1px solid var(--line-soft);
	border-radius: 8px;
	font-size: 13px;
}
.ref-card .ref-row {
	background: transparent;
	border: none;
	padding: 0;
}
.ref-instr-row {
	display: flex;
	align-items: flex-start;
	gap: 6px;
	margin-left: 26px;
	font-size: 12px;
	color: var(--muted);
}
.ref-instr-row .instr-label {
	flex: 0 0 auto;
	font-weight: 500;
	color: var(--ink);
}
.ref-instr-row .instr-display {
	flex: 1;
	cursor: text;
	padding: 2px 6px;
	margin: -2px -6px;
	border-radius: 4px;
	transition: background 0.12s ease;
}
.ref-instr-row .instr-display:hover {
	background: var(--accent-soft);
	outline: 1px dashed var(--dash-line);
}
.ref-instr-row .instr-display.placeholder {
	color: var(--faint);
	font-style: italic;
}
.ref-instr-row textarea.instr-input {
	flex: 1;
	min-height: 36px;
	font: inherit;
	font-size: 12px;
	padding: 4px 6px;
	border: 1.5px solid var(--accent, #0f5fff);
	border-radius: 4px;
	background: var(--surface);
	outline: none;
	resize: vertical;
}

/* ---------- editable title + speaker chips ---------- */
.editable-title {
	cursor: text;
	display: inline-block;
	padding: 2px 6px;
	margin: -2px -6px;
	border-radius: 6px;
	transition: background 0.12s ease;
	max-width: 100%;
}
.editable-title:hover {
	background: var(--accent-soft);
	outline: 1px dashed var(--dash-line);
}
.title-input {
	width: 100%;
	font: inherit;
	color: inherit;
	padding: 2px 6px;
	margin: -2px -6px;
	border: 1.5px solid var(--accent, #0f5fff);
	border-radius: 6px;
	background: var(--surface);
	outline: none;
	box-sizing: border-box;
}
.speaker-chips {
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
	margin-top: 8px;
}
.speaker-chip {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	padding: 4px 10px;
	background: var(--chip-bg);
	border: 1px solid var(--chip-line);
	border-radius: 999px;
	font-size: 13px;
	line-height: 1;
	color: var(--ink);
	transition: background 0.12s ease;
}
.speaker-chip:hover {
	background: var(--chip-hover);
}
.speaker-chip .role {
	color: var(--muted);
	font-size: 12px;
}
.speaker-chip .remove {
	width: 16px;
	height: 16px;
	border-radius: 50%;
	border: none;
	background: transparent;
	cursor: pointer;
	color: var(--muted);
	font-size: 14px;
	padding: 0;
	line-height: 1;
}
.speaker-chip .remove:hover {
	background: var(--chip-hover);
	color: var(--ink);
}
.speaker-add {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	padding: 4px 10px;
	background: transparent;
	border: 1px dashed var(--dash-line);
	border-radius: 999px;
	font-size: 13px;
	cursor: pointer;
	color: var(--muted);
}
.speaker-add:hover {
	border-color: var(--accent, #0f5fff);
	color: var(--accent, #0f5fff);
	background: var(--accent-soft);
}
.speaker-add-form {
	display: inline-flex;
	gap: 6px;
	align-items: center;
	background: var(--surface);
	border: 1.5px solid var(--accent, #0f5fff);
	border-radius: 999px;
	padding: 2px 6px;
}
.speaker-add-form input {
	border: none;
	outline: none;
	font: inherit;
	font-size: 13px;
	min-width: 90px;
}
.speaker-add-form input.role-input {
	min-width: 70px;
	border-left: 1px solid var(--line);
	padding-left: 6px;
}

/* ---------- editable action-item cells ---------- */
.editable-cell {
	position: relative;
	cursor: text;
}
.editable-cell .cell-display {
	display: inline-block;
	min-width: 40px;
	padding: 2px 4px;
	border-radius: 4px;
	transition: background 0.12s ease;
}
.editable-cell:hover .cell-display {
	background: var(--accent-soft);
	outline: 1px dashed var(--dash-line);
}
.editable-cell.editing .cell-display {
	display: none;
}
.editable-cell.saving {
	opacity: 0.6;
}
.editable-cell .cell-input {
	width: 100%;
	min-width: 100px;
	padding: 2px 4px;
	font: inherit;
	color: inherit;
	border: 1px solid var(--accent, #0f5fff);
	border-radius: 4px;
	background: var(--surface);
	outline: none;
	box-sizing: border-box;
}

/* ---------- chat correction panel ---------- */
.chat-history {
	display: flex;
	flex-direction: column;
	gap: 10px;
	max-height: 320px;
	overflow-y: auto;
	margin: 12px 0;
}
.chat-msg {
	padding: 10px 12px;
	border-radius: 10px;
	font-size: 14px;
	line-height: 1.45;
	max-width: 90%;
}
.chat-msg.user {
	background: var(--bg-soft, #f7f8fa);
	align-self: flex-end;
}
.chat-msg.assistant {
	background: var(--accent-soft);
	align-self: flex-start;
}
.chat-msg .applied {
	display: block;
	margin-top: 6px;
	color: var(--muted, #5f6368);
	font-size: 12px;
}
/* Shared richtext.js (renderRichText) elements inside a correction-chat bubble.
   richtext.js self-injects the table / copy-icon / md-msg-actions base styles +
   the light/data-os theme overrides; these fill the few md-* pieces it leaves to
   the host surface (inline code, fenced blocks, links, emphasis). Theme tokens
   ride both surfaces: the meetings dark site AND the OS-light skin (html[data-os]
   flips the same --tokens), so no per-surface fork is needed. */
.chat-msg .chat-msg-text {
	white-space: pre-wrap;
	word-wrap: break-word;
	overflow-wrap: anywhere;
}
.chat-msg .md-link {
	color: var(--accent, #0f5fff);
	text-decoration: none;
	word-break: break-word;
}
.chat-msg .md-link:hover {
	text-decoration: underline;
}
.chat-msg strong {
	font-weight: 700;
}
.chat-msg em {
	font-style: italic;
}
.chat-msg s {
	opacity: 0.75;
}
.chat-msg .md-code {
	font-family: var(--font-mono);
	font-size: 0.88em;
	padding: 1px 5px;
	border-radius: 5px;
	background: var(--bg-soft);
	border: 1px solid var(--line);
}
.chat-msg .md-pre {
	margin: 6px 0;
	padding: 10px 12px;
	border-radius: 8px;
	background: var(--bg-soft);
	border: 1px solid var(--line);
	overflow-x: auto;
	max-width: 100%;
}
.chat-msg .md-pre code {
	font-family: var(--font-mono);
	font-size: 12.5px;
	line-height: 1.5;
	color: var(--ink);
	white-space: pre;
	background: none;
	border: 0;
	padding: 0;
}
.chat-row {
	display: flex;
	gap: 10px;
	align-items: flex-start;
}
.chat-row textarea {
	flex: 1;
	padding: 10px;
	font: inherit;
	border: 1px solid var(--line, #e3e5e8);
	border-radius: 8px;
	resize: vertical;
}
.chat-row button {
	flex-shrink: 0;
}
.chat-proposal {
	margin-top: 12px;
	padding: 12px 14px;
	background: var(--warn-bg);
	border: 1px solid var(--warn-line);
	border-radius: 8px;
}
.chat-proposal-header {
	display: flex;
	justify-content: space-between;
	align-items: baseline;
	margin-bottom: 8px;
}
.chat-diff {
	max-height: 280px;
	overflow: auto;
	font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
	font-size: 12px;
	line-height: 1.4;
	background: var(--surface);
	padding: 10px;
	border-radius: 6px;
	border: 1px solid var(--line, #e3e5e8);
	white-space: pre;
}
.chat-actions-list {
	margin: 8px 0 0;
	padding-left: 18px;
	font-size: 13px;
}

/*
 * Lumio Meetings — design system
 *
 * Shared by every page. Loaded as <link rel="stylesheet" href="/css/app.css">.
 *
 * Aesthetic reference: samples/Monday Core Meeting May 25th 2026.analysis.html
 *   - System font stack, generous whitespace, restrained palette, blue accent.
 *   - This UI sits alongside that print-styled analysis output and should feel
 *     like part of the same product.
 */

/* -------- design tokens (two themes) --------
 * Bare :root = Lumio dark (the DEFAULT — premium dark-editorial brand).
 * :root[data-theme="light"] = the original light look (opt-in via the nav toggle).
 * Grounded in the lumio-design system (lumio.css palette + brand fonts). All
 * components reference these tokens; never hardcode a color in a rule.
 */
:root {
	/* fonts (brand — same in both themes) */
	--font-stack: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI",
		Roboto, "Helvetica Neue", Arial, sans-serif;
	--font-display: "Darker Grotesque", "Arial Narrow", "Inter", sans-serif;
	--font-mono: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;

	/* type scale + geometry (theme-independent) */
	--fs-body: 15px;
	--fs-small: 13px;
	--fs-tiny: 12px;
	--fs-h1: 28px;
	--fs-h2: 19px;
	--fs-h3: 16px;
	--container: 1100px;
	--gutter: 32px;
	--radius: 6px;
	--radius-lg: 10px;

	/* --- DARK theme (default) --- */
	--bg: #000000;
	--surface: #0a0a0a;
	--bg-soft: #060606;
	--bg-hover: #0e0e0e;
	--ink: #ffffff;
	--body: #dadadc;
	--body2: #c4c4c4;
	--muted: #a7a9ac;
	--faint: #7e8186;
	--ghost: #4d4d4d;
	--line: rgba(255, 255, 255, 0.09);
	--line-soft: rgba(255, 255, 255, 0.055);
	--accent: #ff7a1a;
	--accent-hover: #ff9445;
	--accent-soft: rgba(255, 122, 26, 0.12);
	--accent-line: rgba(255, 122, 26, 0.34);
	--on-accent: #1a0d00;
	--focus-ring: rgba(255, 122, 26, 0.3);
	--signal: #ff7a1a;
	--signal-soft: rgba(255, 122, 26, 0.2);
	--warn-soft: rgba(255, 176, 32, 0.18);
	--danger: #ff6b6b;
	--success: #82f213;
	--warn: #ffb020;
	/* chips / dashed affordances */
	--chip-bg: #0e0e0e;
	--chip-line: rgba(255, 255, 255, 0.09);
	--chip-hover: #161616;
	--dash-line: rgba(255, 255, 255, 0.18);
	/* status (bg / fg / border) */
	--neutral-bg: #0e0e0e;
	--neutral-fg: #a7a9ac;
	--neutral-line: rgba(255, 255, 255, 0.09);
	--info-bg: rgba(74, 158, 255, 0.12);
	--info-fg: #4a9eff;
	--info-line: rgba(74, 158, 255, 0.3);
	--warn-bg: rgba(255, 176, 32, 0.12);
	--warn-fg: #ffb020;
	--warn-line: rgba(255, 176, 32, 0.35);
	--success-bg: rgba(130, 242, 19, 0.1);
	--success-fg: #82f213;
	--success-line: rgba(130, 242, 19, 0.3);
	--danger-bg: rgba(214, 39, 40, 0.16);
	--danger-fg: #ff8a8a;
	--danger-line: rgba(214, 39, 40, 0.42);
}

:root[data-theme="light"] {
	--bg: #ffffff;
	--surface: #ffffff;
	--bg-soft: #f7f8fa;
	--bg-hover: #f0f2f5;
	--ink: #1a1a1a;
	--body: #2f2f2f;
	--body2: #4a4a4a;
	--muted: #5f6368;
	--faint: #93a0c1;
	--ghost: #aab0bd;
	--line: #e3e5e8;
	--line-soft: #e3e7f6;
	--accent: #0f5fff;
	--accent-hover: #0a4ed1;
	--accent-soft: #f0f4ff;
	--accent-line: #b9c8ea;
	--on-accent: #ffffff;
	--focus-ring: rgba(15, 95, 255, 0.12);
	--signal: #0f5fff;
	--signal-soft: rgba(15, 95, 255, 0.12);
	--warn-soft: rgba(245, 159, 10, 0.14);
	--danger: #d62728;
	--success: #2a9d3f;
	--warn: #f59f0a;
	--chip-bg: #eef2ff;
	--chip-line: #d8dffb;
	--chip-hover: #e0e8ff;
	--dash-line: #b9c8ea;
	--neutral-bg: #f0f2f5;
	--neutral-fg: #5f6368;
	--neutral-line: #e3e5e8;
	--info-bg: #eef4ff;
	--info-fg: #1948b3;
	--info-line: #d6e2fb;
	--warn-bg: #fff5e0;
	--warn-fg: #8a5a06;
	--warn-line: #f6e1a8;
	--success-bg: #e8f6ec;
	--success-fg: #1f7a31;
	--success-line: #c6e6cf;
	--danger-bg: #fbe9ea;
	--danger-fg: #a01e23;
	--danger-line: #f0c4c6;
}

* {
	box-sizing: border-box;
}
html,
body {
	margin: 0;
	padding: 0;
}
body {
	font-family: var(--font-stack);
	color: var(--ink);
	line-height: 1.55;
	font-size: var(--fs-body);
	background: var(--bg);
	-webkit-font-smoothing: antialiased;
}

a {
	color: var(--accent);
	text-decoration: none;
}
a:hover {
	text-decoration: underline;
}

/* -------- typography -------- */
h1 {
	font-family: var(--font-display);
	font-size: var(--fs-h1);
	margin: 0 0 12px;
	letter-spacing: -0.02em;
	font-weight: 600;
}
h2 {
	font-size: var(--fs-h2);
	margin: 24px 0 8px;
	letter-spacing: -0.005em;
	font-weight: 600;
}
h3 {
	font-size: var(--fs-h3);
	margin: 18px 0 6px;
	font-weight: 600;
}
p {
	margin: 8px 0;
}
small,
.muted {
	color: var(--muted);
	font-size: var(--fs-small);
}
.tiny {
	font-size: var(--fs-tiny);
	color: var(--muted);
}

code {
	background: var(--bg-soft);
	padding: 1px 5px;
	border-radius: 3px;
	font-size: 0.92em;
	font-family: var(--font-mono);
}

hr {
	border: 0;
	border-top: 1px solid var(--line);
	margin: 24px 0;
}

/* -------- layout -------- */
.container {
	max-width: var(--container);
	margin: 0 auto;
	padding: 24px var(--gutter);
}
.container-narrow {
	max-width: 720px;
	margin: 0 auto;
	padding: 24px var(--gutter);
}

.stack > * + * {
	margin-top: 16px;
}
.row {
	display: flex;
	align-items: center;
	gap: 12px;
}
.row.between {
	justify-content: space-between;
}
.row.wrap {
	flex-wrap: wrap;
}
.spacer {
	flex: 1;
}
.hidden {
	display: none !important;
}

/* -------- top nav -------- */
.nav {
	border-bottom: 1px solid var(--line);
	background: var(--surface);
	position: sticky;
	top: 0;
	z-index: 10;
}
.nav-inner {
	/* Full-bleed top bar: spans the viewport so the full link set always fits
	   (no max-width clip) and the bar is identical on container pages and
	   full-width pages (chat). */
	width: 100%;
	margin: 0;
	padding: 0 24px;
	display: flex;
	align-items: center;
	gap: 20px;
	height: 56px;
}
.nav-logo {
	font-family: var(--font-display);
	font-weight: 700;
	color: var(--ink);
	font-size: 19px;
	letter-spacing: -0.01em;
	text-decoration: none;
	white-space: nowrap;
	flex: 0 0 auto;
}
.nav-logo:hover {
	text-decoration: none;
}
.nav-links {
	display: flex;
	gap: 4px;
	/* If the full link set can't fit the width, let it scroll rather than clip
	   so every option stays reachable. No scrollbar chrome on desktop. */
	min-width: 0;
	overflow-x: auto;
	scrollbar-width: none;
}
.nav-links::-webkit-scrollbar {
	display: none;
}
.nav-link {
	color: var(--muted);
	text-decoration: none;
	padding: 6px 10px;
	border-radius: var(--radius);
	font-size: 14px;
}
.nav-link:hover {
	background: var(--bg-soft);
	color: var(--ink);
	text-decoration: none;
}
.nav-link.active {
	color: var(--ink);
	background: var(--bg-soft);
	font-weight: 500;
}
.nav-right {
	margin-left: auto;
	flex: 0 0 auto;
	display: flex;
	align-items: center;
	gap: 12px;
	font-size: 13px;
	color: var(--muted);
}
.nav-email {
	color: var(--muted);
	max-width: 200px;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}
.nav-theme-toggle {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 32px;
	height: 32px;
	border: 1px solid var(--line);
	border-radius: 50%;
	background: transparent;
	color: var(--muted);
	cursor: pointer;
	font-size: 15px;
	line-height: 1;
	transition:
		border-color 0.12s,
		color 0.12s,
		background 0.12s;
}
.nav-theme-toggle:hover {
	border-color: var(--accent);
	color: var(--accent);
}

/* -------- buttons -------- */
.btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	padding: 9px 16px;
	border-radius: var(--radius);
	border: 1px solid transparent;
	font-family: inherit;
	font-size: 14px;
	font-weight: 500;
	line-height: 1.2;
	cursor: pointer;
	text-decoration: none;
	transition:
		background 0.12s,
		border-color 0.12s,
		color 0.12s;
	background: transparent;
	color: var(--ink);
}
.btn:disabled {
	opacity: 0.5;
	cursor: not-allowed;
}
.btn-primary {
	background: var(--accent);
	color: var(--on-accent);
	border-color: var(--accent);
}
.btn-primary:hover:not(:disabled) {
	background: var(--accent-hover);
	border-color: var(--accent-hover);
	text-decoration: none;
}
.btn-secondary {
	background: var(--surface);
	color: var(--ink);
	border-color: var(--line);
}
.btn-secondary:hover:not(:disabled) {
	background: var(--bg-soft);
	border-color: var(--muted);
	text-decoration: none;
}
.btn-ghost {
	background: transparent;
	color: var(--muted);
	border-color: transparent;
}
.btn-ghost:hover:not(:disabled) {
	background: var(--bg-soft);
	color: var(--ink);
	text-decoration: none;
}
.btn-danger {
	background: var(--surface);
	color: var(--danger);
	border-color: var(--line);
}
.btn-danger:hover:not(:disabled) {
	background: var(--danger-bg);
	border-color: var(--danger);
}
.btn-lg {
	padding: 12px 22px;
	font-size: 15px;
}
.btn-sm {
	padding: 6px 10px;
	font-size: 13px;
}

/* -------- form inputs -------- */
.field {
	display: block;
	margin-bottom: 14px;
}
.field label,
label.label {
	display: block;
	font-size: 13px;
	font-weight: 500;
	color: var(--ink);
	margin-bottom: 6px;
}
.field .hint {
	color: var(--muted);
	font-size: 12px;
	margin-top: 4px;
}

input[type="text"],
input[type="email"],
input[type="date"],
input[type="search"],
input[type="url"],
textarea,
select {
	width: 100%;
	padding: 9px 12px;
	border: 1px solid var(--line);
	border-radius: var(--radius);
	font-family: inherit;
	font-size: 14px;
	color: var(--ink);
	background: var(--surface);
	transition:
		border-color 0.12s,
		box-shadow 0.12s;
}
textarea {
	min-height: 96px;
	resize: vertical;
	line-height: 1.5;
}
input[type="text"]:focus,
input[type="email"]:focus,
input[type="date"]:focus,
input[type="search"]:focus,
input[type="url"]:focus,
textarea:focus,
select:focus {
	outline: none;
	border-color: var(--accent);
	box-shadow: 0 0 0 3px var(--focus-ring);
}

/* file drop zone */
.dropzone {
	border: 2px dashed var(--line);
	border-radius: var(--radius-lg);
	padding: 36px 24px;
	text-align: center;
	background: var(--bg-soft);
	cursor: pointer;
	transition:
		border-color 0.15s,
		background 0.15s;
	color: var(--muted);
}
.dropzone:hover,
.dropzone.is-drag {
	border-color: var(--accent);
	background: var(--accent-soft);
	color: var(--ink);
}
.dropzone .dropzone-title {
	font-size: 15px;
	font-weight: 500;
	color: var(--ink);
	margin-bottom: 4px;
}
.dropzone input[type="file"] {
	display: none;
}
.dropzone.has-file {
	border-style: solid;
	border-color: var(--accent);
	background: var(--surface);
	color: var(--ink);
}

/* -------- status pills --------
 * Maps the backend status lifecycle to color-coded chips.
 * Used both for meeting statuses (queued..done/failed) and action-item statuses (todo/in_progress/done/cancelled).
 */
.pill {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	padding: 3px 9px;
	border-radius: 999px;
	font-size: 12px;
	font-weight: 500;
	line-height: 1.4;
	white-space: nowrap;
	background: var(--bg-soft);
	color: var(--muted);
	border: 1px solid var(--line);
}
.pill::before {
	content: "";
	width: 6px;
	height: 6px;
	border-radius: 50%;
	background: currentColor;
	opacity: 0.7;
}
.pill-queued {
	background: var(--neutral-bg);
	color: var(--neutral-fg);
	border-color: var(--neutral-line);
}
.pill-archiving {
	background: var(--info-bg);
	color: var(--info-fg);
	border-color: var(--info-line);
}
.pill-uploading_gemini {
	background: var(--info-bg);
	color: var(--info-fg);
	border-color: var(--info-line);
}
.pill-transcribing {
	background: var(--warn-bg);
	color: var(--warn-fg);
	border-color: var(--warn-line);
}
.pill-analyzing {
	background: var(--warn-bg);
	color: var(--warn-fg);
	border-color: var(--warn-line);
}
.pill-done {
	background: var(--success-bg);
	color: var(--success-fg);
	border-color: var(--success-line);
}
.pill-failed {
	background: var(--danger-bg);
	color: var(--danger-fg);
	border-color: var(--danger-line);
}

/* action-item statuses */
.pill-todo {
	background: var(--neutral-bg);
	color: var(--neutral-fg);
	border-color: var(--neutral-line);
}
.pill-in_progress {
	background: var(--warn-bg);
	color: var(--warn-fg);
	border-color: var(--warn-line);
}
.pill-cancelled {
	background: var(--danger-bg);
	color: var(--danger-fg);
	border-color: var(--danger-line);
}
/* (.pill-done already defined above) */

/* -------- tables -------- */
table.list,
table.data {
	width: 100%;
	border-collapse: collapse;
	font-size: 14px;
}
table.list th,
table.list td,
table.data th,
table.data td {
	border-bottom: 1px solid var(--line);
	padding: 10px 12px;
	text-align: left;
	vertical-align: top;
}
table.list th,
table.data th {
	background: var(--bg-soft);
	font-weight: 600;
	font-size: 12px;
	text-transform: uppercase;
	letter-spacing: 0.04em;
	color: var(--muted);
	border-bottom: 1px solid var(--line);
}
table.list tbody tr {
	cursor: pointer;
	transition: background 0.08s;
}
table.list tbody tr:hover td {
	background: var(--bg-soft);
}
table.list td a {
	color: var(--ink);
}

/* -------- cards -------- */
.card {
	border: 1px solid var(--line);
	border-radius: var(--radius-lg);
	padding: 20px 24px;
	background: var(--surface);
}
.card-soft {
	background: var(--bg-soft);
	border: 1px solid var(--line);
	border-radius: var(--radius-lg);
	padding: 16px 20px;
}

/* -------- alerts / banners -------- */
.alert {
	padding: 12px 16px;
	border-radius: var(--radius);
	font-size: 14px;
	border: 1px solid var(--line);
	background: var(--bg-soft);
	color: var(--ink);
}
.alert-error {
	background: var(--danger-bg);
	border-color: var(--danger-line);
	color: var(--danger-fg);
}
.alert-success {
	background: var(--success-bg);
	border-color: var(--success-line);
	color: var(--success-fg);
}
.alert-warn {
	background: var(--warn-bg);
	border-color: var(--warn-line);
	color: var(--warn-fg);
}

/* -------- empty states -------- */
.empty {
	text-align: center;
	padding: 64px 24px;
	color: var(--muted);
}
.empty .empty-icon {
	font-size: 32px;
	margin-bottom: 12px;
	opacity: 0.55;
}
.empty .empty-title {
	font-size: 17px;
	color: var(--ink);
	margin-bottom: 6px;
	font-weight: 500;
}
.empty .empty-body {
	font-size: 14px;
	max-width: 420px;
	margin: 0 auto 18px;
}

/* -------- loading / spinner -------- */
.spinner {
	display: inline-block;
	width: 14px;
	height: 14px;
	border: 2px solid var(--line);
	border-top-color: var(--accent);
	border-radius: 50%;
	animation: spin 0.7s linear infinite;
}
@keyframes spin {
	to {
		transform: rotate(360deg);
	}
}

/* -------- index (landing) -------- */
.hero {
	text-align: center;
	padding: 96px 24px 48px;
	max-width: 640px;
	margin: 0 auto;
}
.hero .product {
	font-size: 13px;
	text-transform: uppercase;
	letter-spacing: 0.12em;
	color: var(--muted);
	margin-bottom: 14px;
}
.hero h1 {
	font-family: var(--font-display);
	font-size: 56px;
	letter-spacing: -0.03em;
	line-height: 0.98;
	margin-bottom: 16px;
}
.hero .lede {
	font-size: 17px;
	color: var(--muted);
	margin-bottom: 36px;
	line-height: 1.5;
}
.hero .signin-row {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 10px;
}
.hero .domain-note {
	font-size: 12px;
	color: var(--muted);
}
.features {
	max-width: 560px;
	margin: 0 auto;
	padding: 32px 24px 64px;
}
.features ul {
	list-style: none;
	padding: 0;
	margin: 0;
}
.features li {
	padding: 12px 0;
	border-bottom: 1px solid var(--line);
	font-size: 15px;
	color: var(--ink);
}
.features li:last-child {
	border-bottom: 0;
}
.footer-thin {
	text-align: center;
	padding: 32px 24px;
	color: var(--muted);
	font-size: 12px;
}

/* -------- mobile -------- */
@media (max-width: 640px) {
	:root {
		--gutter: 18px;
	}
	.nav-inner {
		gap: 10px;
		height: 52px;
	}
	/* Let the link row scroll horizontally instead of wrapping/clipping when the
	 * full set (New/Meetings/Tasks/Glossary/Settings/+admin) overflows a phone. */
	.nav-links {
		gap: 0;
		flex: 1 1 auto;
		min-width: 0;
		overflow-x: auto;
		flex-wrap: nowrap;
		-webkit-overflow-scrolling: touch;
		scrollbar-width: none;
	}
	.nav-links::-webkit-scrollbar {
		display: none;
	}
	.nav-link {
		padding: 6px 8px;
		font-size: 13px;
		white-space: nowrap;
	}
	.nav-logo {
		flex: 0 0 auto;
	}
	.nav-right {
		flex: 0 0 auto;
		font-size: 12px;
		gap: 8px;
	}
	.nav-email {
		display: none;
	}
	.hero {
		padding: 56px 18px 32px;
	}
	.hero h1 {
		font-size: 32px;
	}
	.hero .lede {
		font-size: 15px;
	}
	table.list th,
	table.list td,
	table.data th,
	table.data td {
		padding: 8px 8px;
	}
	.card {
		padding: 16px;
	}

	/* iOS zooms the page when focusing an input whose font-size < 16px. Bump all
	 * form controls to 16px on small screens to stop that jarring zoom. */
	input[type="text"],
	input[type="email"],
	input[type="date"],
	input[type="search"],
	input[type="url"],
	textarea,
	select {
		font-size: 16px;
	}

	/* Comfortable touch targets. */
	.btn {
		min-height: 44px;
	}
	.btn-sm {
		min-height: 36px;
	}

	/* Toasts: full-width-ish at the top so they don't run off a narrow screen. */
	#toast-root {
		left: 12px !important;
		right: 12px !important;
		top: 64px !important;
	}
	#toast-root .alert {
		min-width: 0 !important;
		max-width: none !important;
	}
}

/* -------- print (UI screens are not docs; just don't be hostile) -------- */
@media print {
	/* Paper is always light, independent of the runtime light/dark theme. Pin
	   the token palette to light values here so every token-colored element
	   (not just body) prints legibly — otherwise dark-default users print
	   white-on-white. (CSS vars aren't scoped by @media, so override them.) */
	:root {
		--bg: #ffffff;
		--surface: #ffffff;
		--bg-soft: #f7f8fa;
		--bg-hover: #f0f2f5;
		--ink: #1a1a1a;
		--body: #2f2f2f;
		--body2: #4a4a4a;
		--muted: #5f6368;
		--faint: #93a0c1;
		--line: #e3e5e8;
		--line-soft: #e3e7f6;
	}
	.nav,
	.btn,
	.no-print {
		display: none !important;
	}
	body {
		background: #ffffff;
		color: #1a1a1a;
	}
	.container {
		padding: 0;
		max-width: none;
	}
}
