/* ---------- 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: #f0f4ff;
	outline: 1px dashed #b9c8ea;
}
.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: #fff;
	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: #eef2ff;
	border: 1px solid #d8dffb;
	border-radius: 999px;
	font-size: 13px;
	line-height: 1;
	color: #1a1a1a;
	transition: background 0.12s ease;
}
.speaker-chip:hover {
	background: #e0e8ff;
}
.speaker-chip .role {
	color: #5f6a8a;
	font-size: 12px;
}
.speaker-chip .remove {
	width: 16px;
	height: 16px;
	border-radius: 50%;
	border: none;
	background: transparent;
	cursor: pointer;
	color: #5f6a8a;
	font-size: 14px;
	padding: 0;
	line-height: 1;
}
.speaker-chip .remove:hover {
	background: #c9d3f5;
	color: #1a1a1a;
}
.speaker-add {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	padding: 4px 10px;
	background: transparent;
	border: 1px dashed #b9c8ea;
	border-radius: 999px;
	font-size: 13px;
	cursor: pointer;
	color: #5f6a8a;
}
.speaker-add:hover {
	border-color: var(--accent, #0f5fff);
	color: var(--accent, #0f5fff);
	background: #f5f8ff;
}
.speaker-add-form {
	display: inline-flex;
	gap: 6px;
	align-items: center;
	background: #fff;
	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 #e3e5e8;
	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: #f0f4ff;
	outline: 1px dashed #b9c8ea;
}
.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: #fff;
	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: #eef3ff;
	align-self: flex-start;
}
.chat-msg .applied {
	display: block;
	margin-top: 6px;
	color: var(--muted, #5f6368);
	font-size: 12px;
}
.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: #fffbe6;
	border: 1px solid #ffeaa7;
	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: #fff;
	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 -------- */
:root {
	--ink: #1a1a1a;
	--muted: #5f6368;
	--line: #e3e5e8;
	--accent: #0f5fff;
	--accent-hover: #0a4ed1;
	--bg: #ffffff;
	--bg-soft: #f7f8fa;
	--bg-hover: #f0f2f5;
	--danger: #d62728;
	--success: #2a9d3f;
	--warn: #f59f0a;

	/* type scale */
	--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;
	--font-stack:
		-apple-system, BlinkMacSystemFont, "Inter", "Segoe UI", Roboto,
		"Helvetica Neue", Arial, sans-serif;
	--font-mono: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}

* {
	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-size: var(--fs-h1);
	margin: 0 0 12px;
	letter-spacing: -0.01em;
	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: #fff;
	position: sticky;
	top: 0;
	z-index: 10;
}
.nav-inner {
	max-width: var(--container);
	margin: 0 auto;
	padding: 0 var(--gutter);
	display: flex;
	align-items: center;
	gap: 28px;
	height: 56px;
}
.nav-logo {
	font-weight: 600;
	color: var(--ink);
	font-size: 15px;
	letter-spacing: -0.005em;
	text-decoration: none;
}
.nav-logo:hover {
	text-decoration: none;
}
.nav-links {
	display: flex;
	gap: 4px;
}
.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;
	display: flex;
	align-items: center;
	gap: 12px;
	font-size: 13px;
	color: var(--muted);
}
.nav-email {
	color: var(--muted);
}

/* -------- 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: #fff;
	border-color: var(--accent);
}
.btn-primary:hover:not(:disabled) {
	background: var(--accent-hover);
	border-color: var(--accent-hover);
	text-decoration: none;
}
.btn-secondary {
	background: #fff;
	color: var(--ink);
	border-color: var(--line);
}
.btn-secondary:hover:not(:disabled) {
	background: var(--bg-soft);
	border-color: #c8ccd1;
	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: #fff;
	color: var(--danger);
	border-color: var(--line);
}
.btn-danger:hover:not(:disabled) {
	background: #fdf2f2;
	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: #fff;
	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 rgba(15, 95, 255, 0.12);
}

/* 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: rgba(15, 95, 255, 0.04);
	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: #fff;
	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: #f0f2f5;
	color: #5f6368;
	border-color: #e3e5e8;
}
.pill-archiving {
	background: #eef4ff;
	color: #1948b3;
	border-color: #d6e2fb;
}
.pill-uploading_gemini {
	background: #eef4ff;
	color: #1948b3;
	border-color: #d6e2fb;
}
.pill-transcribing {
	background: #fff5e0;
	color: #8a5a06;
	border-color: #f6e1a8;
}
.pill-analyzing {
	background: #fff5e0;
	color: #8a5a06;
	border-color: #f6e1a8;
}
.pill-done {
	background: #e8f6ec;
	color: #1f7a31;
	border-color: #c6e6cf;
}
.pill-failed {
	background: #fbe9ea;
	color: #a01e23;
	border-color: #f0c4c6;
}

/* action-item statuses */
.pill-todo {
	background: #f0f2f5;
	color: #5f6368;
	border-color: #e3e5e8;
}
.pill-in_progress {
	background: #fff5e0;
	color: #8a5a06;
	border-color: #f6e1a8;
}
.pill-cancelled {
	background: #fbe9ea;
	color: #a01e23;
	border-color: #f0c4c6;
}
/* (.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: #fff;
}
.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: #fbe9ea;
	border-color: #f0c4c6;
	color: #a01e23;
}
.alert-success {
	background: #e8f6ec;
	border-color: #c6e6cf;
	color: #1f7a31;
}
.alert-warn {
	background: #fff5e0;
	border-color: #f6e1a8;
	color: #8a5a06;
}

/* -------- 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-size: 44px;
	letter-spacing: -0.02em;
	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: 14px;
		height: 52px;
	}
	.nav-links {
		gap: 0;
	}
	.nav-link {
		padding: 6px 8px;
		font-size: 13px;
	}
	.nav-right {
		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;
	}
}

/* -------- print (UI screens are not docs; just don't be hostile) -------- */
@media print {
	.nav,
	.btn,
	.no-print {
		display: none !important;
	}
	body {
		background: #fff;
	}
	.container {
		padding: 0;
		max-width: none;
	}
}
