:root {
	--bg: #f5f1e9;
	--bg-2: #efe6d9;
	--surface: #ffffff;
	--surface-2: #f7f2ea;
	--text: #1f2522;
	--muted: #5f6b64;
	--border: #e1d7c8;
	--accent: #2f6b5e;
	--accent-2: #d97741;
	--shadow: 0 18px 35px rgba(31, 37, 34, 0.12);
	--shadow-soft: 0 10px 20px rgba(31, 37, 34, 0.08);
}
* { box-sizing: border-box; }
body {
	margin: 0;
	min-height: 100vh;
	font-family: 'IBM Plex Sans', 'Segoe UI', sans-serif;
	color: var(--text);
	background: radial-gradient(circle at top, #fff8ee 0%, var(--bg) 40%, var(--bg-2) 100%);
}
label {
	letter-spacing: 0.05em;
}
.app {
	max-width: none;
	margin: 0;
	padding: 6px 12px 10px;
	min-height: 100vh;
	display: flex;
	flex-direction: column;
	gap: 8px;
}
.topbar {
	background: var(--surface);
	border: 1px solid var(--border);
	border-radius: 18px;
	padding: 12px 16px;
	box-shadow: var(--shadow-soft);
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	flex-wrap: wrap;
}
.topbar-left,
.topbar-right {
	display: flex;
	align-items: center;
	gap: 16px;
	flex-wrap: wrap;
}
.topbar-zoom {
	display: flex;
	align-items: center;
	gap: 6px;
	flex-wrap: wrap;
	padding: 6px;
	border: 1px solid var(--border);
	border-radius: 12px;
	background: var(--surface-2);
}
.topbar-export {
	display: flex;
	align-items: center;
	gap: 12px;
	flex-wrap: wrap;
	padding: 8px 10px;
	border: 1px solid var(--border);
	border-radius: 12px;
	background: var(--surface-2);
}
.topbar-export-actions {
	margin-left: auto;
	display: flex;
	align-items: center;
}
.topbar-export .topbar-field {
	display: flex;
	flex-direction: column;
	gap: 6px;
}
.topbar-export label {
	font-weight: 600;
	color: var(--muted);
	font-size: 11px;
	text-transform: uppercase;
	letter-spacing: 0.05em;
}
.topbar-export select {
	padding: 6px 10px;
	border-radius: 10px;
	border: 1px solid var(--border);
	background: var(--surface);
	font-size: 13px;
	color: var(--text);
}
#output-format {
	min-width: 78px;
}
.brand-compact {
	display: flex;
	flex-direction: column;
	gap: 4px;
}
.brand-link {
	display: flex;
	flex-direction: column;
	gap: 4px;
	color: inherit;
	text-decoration: none;
}
.brand-link:hover {
	color: inherit;
	text-decoration: none;
}
.brand-link:focus-visible {
	outline: 2px solid var(--accent-2);
	outline-offset: 3px;
	border-radius: 10px;
}
.brand-compact .eyebrow {
	text-transform: uppercase;
	letter-spacing: 0.28em;
	font-size: 10px;
	font-weight: 600;
	color: var(--muted);
}
.brand-compact .title {
	display: flex;
	flex-direction: column;
	gap: 2px;
	margin: 0;
}
.brand-compact .title-brand {
	font-family: 'Space Grotesk', 'Trebuchet MS', sans-serif;
	font-size: 24px;
	font-weight: 700;
	letter-spacing: 0.04em;
	color: var(--text);
	line-height: 1.2;
}
.brand-compact .title-product {
	font-family: 'IBM Plex Sans', 'Segoe UI', sans-serif;
	font-size: 12px;
	font-weight: 600;
	letter-spacing: 0.08em;
	text-transform: none;
	color: var(--muted);
}
.upload-inline {
	display: flex;
	align-items: center;
	gap: 10px;
	flex-wrap: wrap;
	padding: 8px 10px;
	border: 1px solid var(--border);
	border-radius: 12px;
	background: var(--surface-2);
}
.sidebar .upload-inline { width: 100%; }
.upload-button.compact {
	padding: 8px 12px;
	border-radius: 10px;
	font-size: 13px;
	box-shadow: 0 6px 12px rgba(47, 107, 94, 0.22);
}
.workspace {
	display: grid;
	grid-template-columns: 280px minmax(0, 1fr);
	gap: 16px;
	align-items: start;
	flex: 1;
	min-height: 0;
}
.sidebar {
	background: var(--surface);
	border: 1px solid var(--border);
	border-radius: 16px;
	padding: 12px;
	box-shadow: var(--shadow-soft);
	display: flex;
	flex-direction: column;
	gap: 10px;
	position: sticky;
	top: 20px;
	max-height: calc(100vh - 140px);
	overflow: auto;
}
.sidebar-section {
	background: var(--surface-2);
	border: 1px solid var(--border);
	border-radius: 12px;
	padding: 10px 12px;
}
.sidebar-section-title {
	font-weight: 600;
	color: var(--muted);
	font-size: 12px;
	text-transform: uppercase;
	letter-spacing: 0.12em;
}
.sidebar-card {
	background: #fffaf0;
	border: 1px solid #d9c9b2;
	border-radius: 14px;
	padding: 12px;
	box-shadow: var(--shadow-soft);
}
.sidebar-card .card-title {
	font-family: 'Space Grotesk', 'Trebuchet MS', sans-serif;
	font-size: 14px;
	font-weight: 700;
	margin: 0 0 10px;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: var(--accent);
}
.sidebar-card .field + .field {
	margin-top: 5px;
}
.sidebar-section summary {
	list-style: none;
	cursor: pointer;
	font-weight: 600;
	color: var(--muted);
	font-size: 12px;
	text-transform: uppercase;
	letter-spacing: 0.12em;
	display: flex;
	align-items: center;
	justify-content: space-between;
}
.sidebar-section summary::-webkit-details-marker {
	display: none;
}
.sidebar-section summary::after {
	content: '+';
	font-weight: 700;
}
.sidebar-section[open] summary::after {
	content: '-';
}
.sidebar-section-body {
	display: flex;
	flex-direction: column;
	gap: 10px;
	padding-top: 10px;
}
.sidebar .field {
	display: flex;
	flex-direction: column;
	gap: 6px;
}
.sidebar label {
	font-weight: 600;
	color: var(--muted);
	font-size: 12px;
	text-transform: uppercase;
	letter-spacing: 0.05em;
}
.sidebar select {
	padding: 8px 10px;
	border-radius: 10px;
	border: 1px solid var(--border);
	background: var(--surface);
	font-size: 14px;
	color: var(--text);
}
.sidebar-actions {
	display: flex;
	gap: 10px;
	flex-wrap: wrap;
}
.mode-toggle-group {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 8px;
}
.mode-button {
	padding: 0;
	height: 44px;
	border-radius: 12px;
	border: 1px solid var(--border);
	background: var(--surface);
	box-shadow: none;
	display: inline-flex;
	align-items: center;
	justify-content: center;
}
.mode-button img,
.mode-button svg {
	width: 24px;
	height: 24px;
	display: block;
}
.mode-button[aria-pressed="true"] {
	background: var(--accent);
	color: #fff;
	border-color: var(--accent);
	box-shadow: 0 8px 16px rgba(47, 107, 94, 0.25);
}
.mode-button[aria-pressed="true"] img,
.mode-button[aria-pressed="true"] svg {
	filter: brightness(0) invert(1);
}
.mode-button:focus-visible {
	outline: 2px solid var(--accent-2);
	outline-offset: 2px;
}
.history-panel {
	display: flex;
	flex-direction: column;
	gap: 8px;
}
.history-modal {
	width: min(640px, 94vw);
	max-height: 72vh;
	display: flex;
	flex-direction: column;
	gap: 12px;
	overflow: hidden;
}
.history-modal-header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
}
.history-modal-body {
	display: flex;
	flex-direction: column;
	gap: 10px;
	overflow: auto;
}
.history-panel summary {
	list-style: none;
	cursor: pointer;
	font-weight: 600;
	color: var(--muted);
	font-size: 12px;
	text-transform: uppercase;
	letter-spacing: 0.12em;
	display: flex;
	align-items: center;
	justify-content: space-between;
}
.history-panel summary::-webkit-details-marker {
	display: none;
}
.history-panel summary::after {
	content: '+';
	font-weight: 700;
}
.history-panel[open] summary::after {
	content: '-';
}
.history-body {
	display: flex;
	flex-direction: column;
	gap: 8px;
	padding-top: 6px;
}
.history-title {
	font-size: 11px;
	text-transform: uppercase;
	letter-spacing: 0.12em;
	color: var(--muted);
	font-weight: 600;
}
.history-list {
	display: flex;
	flex-direction: column;
	gap: 8px;
}
.history-item {
	border: 1px solid var(--border);
	border-radius: 12px;
	padding: 10px;
	background: #fff;
	display: flex;
	flex-direction: row;
	align-items: flex-start;
	justify-content: space-between;
	gap: 12px;
}
.history-item.is-active {
	border-color: var(--accent);
	box-shadow: 0 6px 14px rgba(47, 107, 94, 0.12);
}
.history-meta {
	display: flex;
	flex-direction: column;
	gap: 4px;
	flex: 1;
	min-width: 0;
}
.history-name {
	font-size: 13px;
	font-weight: 600;
	color: var(--text);
}
.history-date {
	font-size: 10px;
	text-transform: uppercase;
	letter-spacing: 0.1em;
	color: var(--muted);
}
.history-status {
	align-self: flex-start;
	font-size: 10px;
	text-transform: uppercase;
	letter-spacing: 0.12em;
	background: rgba(47, 107, 94, 0.14);
	color: var(--accent);
	padding: 2px 6px;
	border-radius: 999px;
	font-weight: 600;
}
.history-actions {
	display: flex;
	gap: 6px;
	flex-wrap: wrap;
	justify-content: flex-end;
	align-items: flex-start;
	flex-shrink: 0;
}
.history-action {
	padding: 6px 10px;
	font-size: 12px;
	border-radius: 8px;
	background: transparent;
	border: 1px solid var(--border);
	box-shadow: none;
}
.history-action.icon-only {
	padding: 6px;
	min-width: 0;
	display: inline-flex;
	align-items: center;
	justify-content: center;
}
.history-action img {
	width: 16px;
	height: 16px;
	display: block;
}
.history-action:hover {
	background: var(--surface-2);
	transform: none;
	box-shadow: none;
}
.history-action.danger {
	border-color: #d6b7b3;
	color: #9e3b2f;
}
.history-action.danger:hover {
	background: #f6e9e7;
	transform: none;
	box-shadow: none;
}
.history-empty {
	font-size: 12px;
	color: var(--muted);
}
@media (max-width: 520px) {
	.history-item {
		flex-direction: column;
	}
	.history-actions {
		justify-content: flex-start;
	}
}
.canvas-panel {
	display: flex;
	flex-direction: column;
	gap: 10px;
	min-height: 0;
	position: relative;
}
.canvas-shell {
	position: relative;
	flex: 1;
	min-height: 0;
	display: flex;
}
.empty-state {
	position: absolute;
	inset: 12px;
	border-radius: 18px;
	border: 1px dashed #cfbfa8;
	background: linear-gradient(135deg, rgba(255, 248, 236, 0.9), rgba(247, 242, 234, 0.95));
	display: flex;
	align-items: center;
	justify-content: center;
	text-align: center;
	padding: 18px;
	z-index: 2;
}
.empty-state.hidden {
	display: none;
}
.canvas-shell.dragging .empty-state {
	border-color: var(--accent);
	background: linear-gradient(135deg, rgba(234, 247, 243, 0.95), rgba(247, 242, 234, 0.96));
}
.empty-card {
	background: var(--surface);
	border: 1px solid var(--border);
	border-radius: 16px;
	padding: 24px;
	box-shadow: var(--shadow-soft);
	display: flex;
	flex-direction: column;
	gap: 12px;
	align-items: center;
	max-width: 420px;
}
.empty-title {
	font-family: 'Space Grotesk', 'Trebuchet MS', sans-serif;
	font-size: 22px;
	margin: 0;
}
.empty-subtitle {
	margin: 0;
	color: var(--muted);
	line-height: 1.5;
}
.empty-note {
	margin: 0;
	color: var(--muted);
	font-size: 12px;
}
.app-header {
	display: flex;
	flex-wrap: wrap;
	align-items: flex-end;
	justify-content: space-between;
	gap: 24px;
	margin-bottom: 24px;
}
.brand { max-width: 520px; }
.brand .eyebrow {
	text-transform: uppercase;
	letter-spacing: 0.25em;
	font-size: 12px;
	font-weight: 600;
	color: var(--muted);
}
.brand h1 {
	font-family: 'Space Grotesk', 'Trebuchet MS', sans-serif;
	font-size: 38px;
	margin: 6px 0 10px;
}
.brand p {
	margin: 0;
	line-height: 1.6;
	color: var(--muted);
}
.upload-card {
	background: var(--surface);
	border: 1px solid var(--border);
	border-radius: 16px;
	padding: 16px 18px;
	box-shadow: var(--shadow-soft);
	display: flex;
	flex-direction: column;
	gap: 10px;
	min-width: 240px;
}
.upload-meta { font-size: 13px; color: var(--muted); }
.file-name {
	font-size: 13px;
	color: var(--text);
	font-weight: 500;
	word-break: break-word;
}
#upload {
	position: absolute;
	width: 1px;
	height: 1px;
	opacity: 0;
	pointer-events: none;
}
.upload-button {
	background: #1f5c4f;
	color: #fff;
	border: none;
	padding: 10px 16px;
	border-radius: 12px;
	font-weight: 600;
	cursor: pointer;
	text-decoration: none;
	display: inline-flex;
	align-items: center;
	gap: 8px;
	box-shadow: 0 8px 16px rgba(47, 107, 94, 0.3);
	font-size: 14px;
	transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}
.upload-button:hover { background: #194a40; transform: translateY(-1px); }
.upload-button.new-document {
	background: #0017DB;
	color: #fff;
	box-shadow: 0 8px 16px rgba(31, 61, 91, 0.3);
}
.upload-button.new-document:hover { background: #162d44; }
.controls {
	background: var(--surface);
	border: 1px solid var(--border);
	border-radius: 16px;
	padding: 16px;
	display: flex;
	flex-direction: column;
	gap: 12px;
	box-shadow: var(--shadow-soft);
	margin-bottom: 14px;
}
.controls-row {
	display: flex;
	flex-wrap: wrap;
	gap: 12px 16px;
	align-items: center;
}
.controls-row.download-row {
	justify-content: flex-end;
}
.controls .group { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.controls label {
	font-weight: 600;
	color: var(--muted);
	font-size: 12px;
	text-transform: uppercase;
	letter-spacing: 0.05em;
}
.controls select {
	padding: 8px 10px;
	border-radius: 10px;
	border: 1px solid var(--border);
	background: var(--surface-2);
	font-size: 14px;
	color: var(--text);
}
button {
	border: none;
	border-radius: 10px;
	padding: 10px 16px;
	background: var(--surface-2);
	color: var(--text);
	font-weight: 600;
	cursor: pointer;
	box-shadow: 0 6px 12px rgba(31, 37, 34, 0.08);
	transition: transform 0.12s ease, box-shadow 0.12s ease, background 0.12s ease;
}
button:hover {
	transform: translateY(-1px);
	box-shadow: 0 10px 18px rgba(31, 37, 34, 0.12);
}
button:disabled {
	cursor: not-allowed;
	opacity: 0.5;
	box-shadow: none;
	transform: none;
}
button:disabled:hover {
	transform: none;
	box-shadow: none;
}
button.primary { background: var(--accent); color: #fff; }
button.primary:hover { background: #295b50; }
#org-logo {
	position: absolute;
	width: 1px;
	height: 1px;
	padding: 0;
	margin: -1px;
	overflow: hidden;
	clip: rect(0 0 0 0);
	border: 0;
	white-space: nowrap;
}
button.danger { background: #9e3b2f; color: #fff; }
button.danger:hover { background: #862f25; }
button.cta-glow {
	background: linear-gradient(135deg, #2b665a 0%, #3a8b77 55%, #2b665a 100%);
	color: #fff;
	box-shadow: 0 10px 22px rgba(47, 107, 94, 0.22);
	letter-spacing: 0.01em;
}
button.cta-glow:hover {
	background: linear-gradient(135deg, #275b50 0%, #347c6b 55%, #275b50 100%);
	box-shadow: 0 14px 26px rgba(47, 107, 94, 0.28);
}
.icon-button {
	width: 40px;
	height: 40px;
	padding: 0;
	min-width: 40px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 6px;
	line-height: 0;
}
.icon-button svg,
.icon-button img {
	width: 28px;
	height: 28px;
	display: block;
	fill: currentColor;
}
.icon-button:disabled img,
.icon-button:disabled svg {
	opacity: 0.35;
	filter: grayscale(1);
}
#delete-selected { }
.status-bar {
	display: flex;
	align-items: center;
	gap: 12px;
	margin: 6px 0 10px;
	min-height: 24px;
}
.status-bar.is-hidden {
	display: none;
	margin: 0;
	min-height: 0;
}
#status { color: var(--muted); font-size: 14px; }
.progress {
	flex: 1;
	height: 8px;
	background: #e6dccd;
	border-radius: 999px;
	overflow: hidden;
	opacity: 0;
	transform: scaleY(0.7);
	transition: opacity 0.2s ease, transform 0.2s ease;
}
.progress.active { opacity: 1; transform: scaleY(1); }
.progress-bar {
	height: 100%;
	width: 0%;
	background: linear-gradient(90deg, var(--accent), var(--accent-2));
	transition: width 0.2s ease;
}
#canvas-container {
	display: flex;
	flex-direction: column;
	align-items: center;
	border: 1px solid var(--border);
	border-radius: 18px;
	width: 100%;
	min-height: 0;
	overflow: auto;
	padding: 12px;
	background: var(--surface);
	box-shadow: var(--shadow);
	flex: 1;
	min-height: 420px;
	position: relative;
	z-index: 1;
}
canvas {
	border: 1px solid #d7cbb8;
	box-shadow: 0 8px 18px rgba(31, 37, 34, 0.1);
	margin: 12px 0;
	cursor: crosshair;
	user-select: none;
	border-radius: 6px;
	background: #fff;
}
.zoom-group { align-items: center; }
.zoom-controls {
	display: flex;
	align-items: center;
	gap: 6px;
}
.zoom-button {
	padding: 8px 10px;
	min-width: 40px;
	background: #fff;
	border: 1px solid var(--border);
}
.zoom-select { min-width: 72px; }
.text-layer-proxy {
	position: absolute;
	top: 0;
	left: 0;
	transform-origin: 0 0;
	line-height: 1;
}
.text-layer-proxy span {
	position: absolute;
	white-space: pre;
	transform-origin: 0 0;
}
#toast {
	position: fixed;
	right: 24px;
	bottom: 24px;
	background: #1f2522;
	color: #fff;
	padding: 10px 14px;
	border-radius: 12px;
	box-shadow: 0 12px 24px rgba(31, 37, 34, 0.2);
	opacity: 0;
	transform: translateY(10px);
	transition: opacity 0.2s ease, transform 0.2s ease;
	pointer-events: none;
	font-size: 14px;
	z-index: 80;
}
#toast.show { opacity: 1; transform: translateY(0); }
#toast.toast-error {
	background: #c0392b;
	box-shadow: 0 12px 24px rgba(192, 57, 43, 0.25);
}
.modal-overlay {
	position: fixed;
	inset: 0;
	background: rgba(19, 24, 21, 0.45);
	backdrop-filter: blur(2px);
	display: flex;
	align-items: center;
	justify-content: center;
	opacity: 0;
	pointer-events: none;
	transition: opacity 0.2s ease;
	z-index: 50;
}
.modal-overlay.show {
	opacity: 1;
	pointer-events: auto;
}
.modal {
	background: var(--surface);
	border: 1px solid var(--border);
	border-radius: 16px;
	width: min(420px, 92vw);
	box-shadow: var(--shadow);
	display: flex;
	flex-direction: column;
	overflow: hidden;
	padding: 0;
}
.modal-header {
	padding: 16px 20px 0;
	display: flex;
	align-items: flex-start;
	justify-content: space-between;
	gap: 12px;
	position: relative;
}
.modal-header > div {
	flex: 1;
	min-width: 0;
}
.modal-header h2 {
	font-family: 'Space Grotesk', 'Trebuchet MS', sans-serif;
	margin: 0;
	font-size: 22px;
}
.modal-body {
	padding: 16px 20px 20px;
	display: flex;
	flex-direction: column;
	gap: 12px;
}
.modal-body p {
	margin: 0;
	color: var(--muted);
	line-height: 1.5;
}
.history-modal-body.modal-body {
	gap: 10px;
}
.modal-actions {
	display: flex;
	justify-content: flex-end;
	gap: 10px;
	flex-wrap: wrap;
	margin: 0;
}
.admin-modal {
	width: min(960px, 94vw);
	max-height: 88vh;
	display: flex;
	flex-direction: column;
	gap: 12px;
	padding: 24px;
}
.admin-modal-header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
}
.admin-modal-body {
	display: flex;
	flex-direction: column;
	gap: 12px;
	max-height: calc(88vh - 120px);
	overflow: hidden;
}
.admin-controls {
	display: flex;
	flex-wrap: wrap;
	gap: 12px;
	align-items: center;
}
.admin-search-field {
	flex: 1;
	min-width: 240px;
	display: flex;
	flex-direction: column;
	gap: 6px;
}
.admin-search-field label {
	font-size: 11px;
	text-transform: uppercase;
	letter-spacing: 0.05em;
	color: var(--muted);
}
.admin-search-field input {
	border: 1px solid var(--border);
	border-radius: 12px;
	padding: 10px 14px;
	background: var(--surface);
	font-size: 13px;
	color: var(--text);
}
.admin-loading,
.admin-error,
.admin-account-empty {
	font-size: 13px;
	color: var(--muted);
}
.admin-account-empty.admin-hidden {
	display: none;
}
.admin-error {
	color: #9e3b2f;
}
.admin-account-list {
	display: flex;
	flex-direction: column;
	gap: 12px;
	overflow: auto;
	max-height: 60vh;
	padding-right: 4px;
}
.admin-account-card {
	background: var(--surface);
	border: 1px solid var(--border);
	border-radius: 14px;
	padding: 16px;
	display: flex;
	flex-direction: column;
	gap: 10px;
	box-shadow: 0 12px 24px rgba(31, 37, 34, 0.08);
}
.admin-card-header {
	display: flex;
	justify-content: space-between;
	align-items: flex-start;
	gap: 16px;
	flex-wrap: wrap;
}
.admin-account-name {
	font-size: 18px;
	font-weight: 600;
	color: var(--text);
}
.admin-account-meta {
	font-size: 12px;
	color: var(--muted);
}
.admin-plan-pill {
	background: rgba(47, 107, 94, 0.12);
	border-radius: 12px;
	padding: 6px 12px;
	color: var(--accent);
	text-transform: uppercase;
	letter-spacing: 0.12em;
	font-size: 11px;
	font-weight: 600;
}
.admin-usage-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
	gap: 8px;
}
.admin-usage-item {
	font-size: 13px;
	color: var(--muted);
	line-height: 1.4;
}
.admin-usage-item strong {
	color: var(--text);
	font-weight: 600;
}
.admin-bonus-note {
	font-size: 12px;
	color: var(--accent);
	letter-spacing: 0.08em;
	text-transform: uppercase;
}
.admin-users-section {
	border-top: 1px solid var(--border);
	padding-top: 10px;
	display: flex;
	flex-direction: column;
	gap: 6px;
}
.admin-users-title {
	font-size: 11px;
	text-transform: uppercase;
	letter-spacing: 0.16em;
	color: var(--muted);
	font-weight: 600;
}
.admin-users-list {
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
}
.admin-user-chip {
	border-radius: 999px;
	border: 1px solid var(--border);
	padding: 4px 10px;
	background: var(--surface-2);
	font-size: 12px;
	display: inline-flex;
	align-items: center;
	gap: 6px;
}
.admin-user-chip span {
	font-weight: 600;
}
.admin-account-actions {
	display: flex;
	justify-content: flex-end;
}
.admin-adjust {
	border-top: 1px solid var(--border);
	padding-top: 10px;
	display: flex;
	flex-direction: column;
	gap: 8px;
}
.admin-adjust-row {
	display: flex;
	gap: 8px;
	flex-wrap: wrap;
	align-items: center;
}
.admin-adjust-row input {
	flex: 1;
	min-width: 140px;
	padding: 10px 12px;
	font-size: 13px;
	border-radius: 10px;
	border: 1px solid var(--border);
	background: var(--surface);
	color: var(--text);
}
.admin-adjust-row button {
	min-width: 160px;
	flex-shrink: 0;
}
.admin-adjust-hint {
	font-size: 12px;
	color: var(--muted);
}
@media (max-width: 980px) {
	.workspace { grid-template-columns: 1fr; }
	.sidebar {
		position: static;
		max-height: none;
	}
}
@media (max-width: 800px) {
	.topbar { align-items: flex-start; }
	.topbar-left,
	.topbar-right {
		width: 100%;
		justify-content: space-between;
	}
	.upload-inline { width: 100%; }
}
@media (max-width: 640px) {
	.topbar { padding: 12px; }
	.topbar-zoom { width: 100%; justify-content: space-between; }
	.topbar-export { width: 100%; }
	button:not(.icon-button):not(.zoom-button),
	.upload-button {
		width: 100%;
		justify-content: center;
	}
	.zoom-controls { width: 100%; }
	.zoom-select { flex: 1; }
	.account-columns { grid-template-columns: 1fr; }
	.account-grid { grid-template-columns: 1fr; }
	.account-full { grid-column: span 1; }
	.user-tier-grid { grid-template-columns: 1fr; }
}
.app-footer {
	margin-top: 6px;
	padding-top: 0;
	padding-left: 6px;
	padding-right: 6px;
	border-top: 1px solid var(--border);
	display: flex;
	justify-content: space-between;
	align-items: center;
	gap: 12px;
	flex-wrap: wrap;
	color: var(--muted);
	font-size: 13px;
}
.footer-links {
	display: flex;
	gap: 24px;
	flex-wrap: wrap;
	align-items: center;
}
.footer-version {
	font-weight: 600;
	color: var(--text);
	font-size: 13px;
}
.app-footer a {
	color: var(--accent);
	text-decoration: none;
	font-weight: 600;
}
.app-footer a:hover { text-decoration: underline; }
body.auth-locked .app {
	filter: blur(1px);
	pointer-events: none;
	user-select: none;
}
#user-card {
	position: relative;
	display: none;
}
#user-card.show {
	display: block;
}
#user-card summary {
	list-style: none;
	cursor: pointer;
	border: 1px solid var(--border);
	background: var(--surface-2);
	border-radius: 14px;
	padding: 8px 12px;
	display: flex;
	align-items: center;
	gap: 10px;
	font-weight: 600;
	color: var(--text);
	box-shadow: var(--shadow-soft);
	min-width: 220px;
	transition: box-shadow 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}
#user-card summary:hover {
	border-color: rgba(47, 107, 94, 0.35);
	background: #f5efe4;
}
#user-card summary:focus-visible {
	outline: 2px solid var(--accent-2);
	outline-offset: 2px;
}
#user-card summary::-webkit-details-marker {
	display: none;
}
#user-card summary::after {
	content: '';
	margin-left: auto;
	width: 8px;
	height: 8px;
	border-right: 2px solid var(--muted);
	border-bottom: 2px solid var(--muted);
	transform: rotate(45deg);
	transition: transform 0.2s ease, border-color 0.2s ease;
}
#user-card[open] summary {
	border-color: rgba(47, 107, 94, 0.5);
	box-shadow: 0 14px 26px rgba(31, 37, 34, 0.14);
}
#user-card[open] summary::after {
	transform: rotate(-135deg);
	border-color: var(--accent);
}
.account-avatar {
	width: 34px;
	height: 34px;
	border-radius: 50%;
	background: linear-gradient(135deg, #2f6b5e 0%, #4c9b86 100%);
	color: #fff;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	font-weight: 700;
	letter-spacing: 0.08em;
	font-size: 12px;
	box-shadow: 0 8px 16px rgba(47, 107, 94, 0.22);
}
.account-avatar.account-avatar-lg {
	width: 42px;
	height: 42px;
	font-size: 13px;
}
.org-badge {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	margin-top: 6px;
	font-size: 12px;
	color: var(--muted);
}
.org-header-badge {
	display: inline-flex;
	align-items: center;
	padding: 6px 10px;
	border-radius: 999px;
	border: 1px solid var(--border);
	background: var(--surface-2);
}
.org-header-logo {
	width: 28px;
	height: 28px;
	border-radius: 8px;
	object-fit: cover;
	border: 1px solid var(--border);
	background: #fff;
}
.org-logo {
	width: 22px;
	height: 22px;
	border-radius: 6px;
	object-fit: cover;
	border: 1px solid var(--border);
	background: #fff;
}
.org-section {
	display: flex;
	flex-direction: column;
	gap: 12px;
}
.org-row {
	display: flex;
	align-items: center;
	gap: 10px;
	flex-wrap: wrap;
}
.org-logo-preview {
	width: 46px;
	height: 46px;
	border-radius: 10px;
	object-fit: cover;
	border: 1px solid var(--border);
	background: #fff;
}
.org-logo-actions {
	display: flex;
	align-items: center;
	gap: 8px;
}
.org-logo-upload {
	text-transform: none;
	letter-spacing: 0.06em;
}
.org-logo-remove {
	padding: 8px 14px;
	font-size: 13px;
	border-radius: 10px;
	box-shadow: 0 6px 12px rgba(158, 59, 47, 0.2);
	border: 1px solid rgba(158, 59, 47, 0.35);
}
.org-logo-remove:hover {
	background: #862f25;
}
.org-logo-remove:disabled {
	box-shadow: none;
}
.org-helper {
	font-size: 12px;
	color: var(--muted);
}
.org-hidden {
	display: none;
}
.account-hidden {
	display: none;
}
.account-summary-text {
	display: flex;
	flex-direction: column;
	gap: 4px;
	min-width: 0;
}
.account-summary-label {
	font-size: 10px;
	text-transform: uppercase;
	letter-spacing: 0.2em;
	color: var(--muted);
	font-weight: 600;
}
.account-summary-email {
	font-size: 13px;
	font-weight: 600;
	color: var(--text);
	max-width: 160px;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}
#user-card .account-dropdown {
	position: absolute;
	top: calc(100% + 10px);
	right: 0;
	background: var(--surface);
	border: 1px solid var(--border);
	border-radius: 16px;
	box-shadow: var(--shadow);
	padding: 14px;
	min-width: 260px;
	display: flex;
	flex-direction: column;
	gap: 12px;
	z-index: 10;
	opacity: 0;
	transform: translateY(-6px);
	pointer-events: none;
	transition: opacity 0.2s ease, transform 0.2s ease;
}
#user-card[open] .account-dropdown {
	opacity: 1;
	transform: translateY(0);
	pointer-events: auto;
}
.account-dropdown-header {
	display: flex;
	align-items: center;
	gap: 12px;
}
#user-card .user-meta {
	font-size: 10px;
	text-transform: uppercase;
	letter-spacing: 0.2em;
	color: var(--muted);
	font-weight: 600;
}
#user-card .user-email {
	font-size: 14px;
	font-weight: 600;
	color: var(--text);
	word-break: break-word;
}
.account-status {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	font-size: 11px;
	color: var(--muted);
}
.account-status .status-dot {
	width: 8px;
	height: 8px;
	border-radius: 50%;
	background: #2f6b5e;
	box-shadow: 0 0 0 3px rgba(47, 107, 94, 0.12);
}
.account-divider {
	height: 1px;
	background: var(--border);
	opacity: 0.9;
}
.account-actions {
	display: flex;
	flex-direction: column;
	gap: 8px;
}
.account-actions .account-action {
	width: 100%;
	display: inline-flex;
	align-items: center;
	gap: 8px;
	justify-content: flex-start;
	text-align: left;
	box-shadow: none;
	padding: 10px 12px;
	border-radius: 10px;
}
.account-actions .account-action.ghost {
	background: var(--surface-2);
	border: 1px solid var(--border);
}
.account-actions .account-action.admin-hidden {
	display: none;
}
.account-actions .account-action.ghost:hover {
	background: #e1e9f0;
}
.account-actions .account-action.danger {
	box-shadow: none;
}
button.ghost {
	background: transparent;
	box-shadow: none;
}
button.ghost:hover {
	background: #eaeaea;
}
button.accent-button,
label.accent-button {
	background: #2f6b5e;
	color: #fff;
	border: 1px solid rgba(47, 107, 94, 0.35);
	box-shadow: 0 6px 12px rgba(31, 37, 34, 0.2);
	padding: 10px 18px;
	border-radius: 10px;
	font-weight: 600;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	text-decoration: none;
	cursor: pointer;
	text-transform: none;
	transition: transform 0.12s ease, box-shadow 0.12s ease, background 0.12s ease;
}
button.accent-button:hover,
label.accent-button:hover {
	background: #2a5b4f;
	transform: translateY(-1px);
	box-shadow: 0 8px 18px rgba(31, 37, 34, 0.25);
}
button.accent-button.compact,
label.accent-button.compact {
	padding: 8px 14px;
	font-size: 13px;
}
button.accent-button:focus-visible,
label.accent-button:focus-visible {
	outline: 2px solid rgba(216, 125, 75, 0.7);
	outline-offset: 3px;
}
.account-actions .account-action.accent-button {
	background: #2f6b5e;
	color: #fff;
	border: 1px solid rgba(47, 107, 94, 0.3);
	box-shadow: 0 6px 12px rgba(31, 37, 34, 0.2);
}
.account-modal {
	width: min(1100px, 94vw);
	max-height: min(86vh, 900px);
	display: flex;
	flex-direction: column;
	overflow: hidden;
}
#account-overlay {
	align-items: center;
	justify-content: center;
	padding: 12px;
}
#account-overlay .account-modal {
	width: min(1100px, 94vw);
	max-height: min(86vh, 900px);
	border-radius: 18px;
}
.account-form {
	display: flex;
	flex-direction: column;
	gap: 12px;
	overflow: auto;
	padding-right: 20px;
}
#account-overlay .account-form {
	flex: 1;
}
.account-modal-header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
}
.modal-close {
	width: 34px;
	height: 34px;
	padding: 0;
	border-radius: 10px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	margin: 0;
	position: absolute;
	top: 8px;
	right: 8px;
}
.modal-close img {
	width: 16px;
	height: 16px;
	display: block;
}
.account-columns {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 12px;
}
.account-column {
	display: flex;
	flex-direction: column;
	gap: 12px;
	min-width: 0;
}
.account-section {
	border: 1px solid var(--border);
	border-radius: 14px;
	padding: 10px;
	background: var(--surface-2);
	display: flex;
	flex-direction: column;
	gap: 8px;
}
.account-section.account-hidden,
.account-section.org-hidden {
	display: none;
}
.account-email-section {
	gap: 6px;
}
.account-email-row {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 10px;
	flex-wrap: wrap;
}
.account-email-info {
	display: flex;
	align-items: baseline;
	gap: 6px;
	min-width: 0;
}
.account-email-value {
	font-weight: 600;
	word-break: break-word;
}
.account-email-status {
	font-size: 0.85rem;
	color: var(--muted);
	white-space: nowrap;
	display: none;
}
.account-email-status:not(:empty) {
	display: inline;
}
.account-email-status-warning {
	color: #dc2626;
}
.account-email-actions {
	display: flex;
	align-items: center;
	gap: 6px;
}
.account-email-actions .compact {
	padding: 4px 12px;
	font-size: 0.8rem;
	line-height: 1;
}
.account-email-helper {
	font-size: 0.85rem;
	color: var(--muted);
}
.account-email-form {
	display: flex;
	align-items: center;
	gap: 8px;
	flex-wrap: wrap;
	margin-top: 4px;
}
.account-email-form.account-hidden {
	display: none;
}
.account-email-input {
	flex: 1;
	min-width: 200px;
	border-radius: 10px;
	border: 1px solid var(--border);
	background: #fff;
	box-shadow: inset 0 0 0 1px rgba(0,0,0,0.05);
	padding: 8px 12px;
	font-size: 0.95rem;
}
.account-email-submit {
	font-size: 0.85rem;
	padding: 8px 12px;
}
.account-email-actions .ghost {
	padding: 6px 10px;
	font-size: 0.8rem;
	line-height: 1;
	border-radius: 999px;
	background: rgba(0, 0, 0, 0.04);
	color: var(--text);
	border-color: transparent;
	box-shadow: none;
}
.account-email-actions .ghost:hover,
.account-email-actions .ghost:focus-visible {
	background: rgba(0, 0, 0, 0.08);
}
.account-section-title {
	font-size: 11px;
	text-transform: uppercase;
	letter-spacing: 0.2em;
	color: var(--muted);
	font-weight: 600;
}
.account-grid {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 10px;
}
.account-full {
	grid-column: span 2;
}
.account-field {
	display: flex;
	flex-direction: column;
	gap: 3px;
}
.account-field label {
	font-size: 11px;
	text-transform: uppercase;
	letter-spacing: 0.05em;
	color: var(--muted);
	font-weight: 600;
}
.account-field label.accent-button {
	text-transform: none;
	color: #fff;
	letter-spacing: 0.05em;
}
.account-field input,
.account-field select {
	padding: 8px 10px;
	border-radius: 10px;
	border: 1px solid var(--border);
	background: var(--surface);
	font-size: 13px;
	color: var(--text);
}
.account-note {
	font-size: 12px;
	color: var(--muted);
	margin: 0;
}
.seat-manager {
	margin-top: 12px;
	display: flex;
	flex-direction: column;
	gap: 6px;
}
.seat-summary-row {
	display: flex;
	align-items: center;
	gap: 12px;
}
.seat-summary {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(140px, max-content));
	gap: 10px;
	width: fit-content;
}
.seat-tile {
	border: 1px solid var(--border);
	border-radius: 12px;
	background: var(--surface);
	padding: 10px 12px;
	display: flex;
	flex-direction: column;
	gap: 6px;
}
.seat-tile-label {
	font-size: 10px;
	text-transform: uppercase;
	letter-spacing: 0.12em;
	color: var(--muted);
	font-weight: 600;
}
.seat-tile-value {
	font-size: 18px;
	font-weight: 700;
}
.seat-tile-next {
	font-size: 12px;
	color: var(--muted);
}
.seat-actions {
	display: flex;
	gap: 10px;
	flex-wrap: wrap;
	margin-left: auto;
}
.seat-note {
	font-size: 12px;
	color: var(--muted);
}
.plan-section {
	background: linear-gradient(135deg, rgba(255, 255, 255, 0.94), rgba(247, 242, 234, 0.96));
	border-color: rgba(47, 107, 94, 0.25);
	box-shadow: 0 12px 24px rgba(31, 37, 34, 0.08);
}
.plan-summary {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	flex-wrap: wrap;
	background: #fff;
	border: 1px solid var(--border);
	border-radius: 12px;
	padding: 10px 12px;
}
.plan-summary-main {
	display: flex;
	flex-direction: column;
	gap: 6px;
}
.plan-summary-meta {
	display: flex;
	flex-direction: column;
	align-items: flex-end;
	text-align: right;
	gap: 4px;
}
.plan-meta-label {
	font-size: 10px;
	text-transform: uppercase;
	letter-spacing: 0.16em;
	color: var(--muted);
	font-weight: 600;
}
.plan-summary-meta .plan-details {
	color: var(--text);
	font-weight: 600;
}
.plan-metrics {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 10px;
}
.plan-metric {
	background: #fff;
	border: 1px solid var(--border);
	border-radius: 12px;
	padding: 10px 12px;
	display: flex;
	flex-direction: column;
	gap: 6px;
	min-height: 58px;
}
.plan-metric-label {
	font-size: 10px;
	text-transform: uppercase;
	letter-spacing: 0.16em;
	color: var(--muted);
	font-weight: 600;
}
.plan-metric .plan-details {
	color: var(--text);
	font-weight: 600;
}
.plan-name {
	font-size: 16px;
	font-weight: 700;
}
.plan-status {
	font-size: 11px;
	text-transform: uppercase;
	letter-spacing: 0.14em;
	color: var(--muted);
	font-weight: 600;
}
.plan-status.is-canceled {
	color: #9e3b2f;
}
.plan-details {
	font-size: 13px;
	color: var(--muted);
}
.plan-actions {
	display: flex;
	align-items: center;
	gap: 8px;
	flex-wrap: wrap;
}
.plan-section .seat-manager {
	background: rgba(255, 255, 255, 0.85);
	border: 1px solid var(--border);
	border-radius: 12px;
	padding: 10px;
}
.plan-section .seat-summary-row {
	flex-wrap: wrap;
}
.plan-section .seat-actions button.ghost {
	background: var(--surface-2);
	border: 1px solid var(--border);
}
.plan-section .seat-actions button.ghost:hover {
	background: #e8ded0;
}
.plan-cancel {
	border: 1px dashed var(--border);
	border-radius: 12px;
	padding: 6px 8px;
	background: transparent;
}
.plan-cancel summary {
	list-style: none;
	cursor: pointer;
	display: flex;
	align-items: center;
	gap: 6px;
	font-size: 12px;
	font-weight: 600;
	color: var(--muted);
	text-transform: uppercase;
	letter-spacing: 0.12em;
}
.plan-cancel summary::-webkit-details-marker {
	display: none;
}
.plan-cancel summary::after {
	content: '+';
	margin-left: auto;
	color: var(--muted);
}
.plan-cancel[open] summary::after {
	content: '-';
}
.plan-cancel-body {
	margin-top: 8px;
	display: flex;
	flex-direction: column;
}
.plan-cancel-warning {
	font-size: 12px;
	color: var(--muted);
	margin: 0;
}
.plan-note {
	font-size: 12px;
	color: var(--muted);
	margin: 0;
}
.plan-note.plan-auto {
	margin-top: 6px;
}
.plan-change-note {
	font-size: 12px;
	color: var(--muted);
	margin: 8px 0 0;
	display: none;
}
@media (max-width: 720px) {
	.plan-metrics {
		grid-template-columns: minmax(0, 1fr);
	}
	.plan-summary-meta {
		align-items: flex-start;
		text-align: left;
	}
}
.plan-change-modal {
	width: min(520px, 92vw);
}
.plan-change-form {
	display: flex;
	flex-direction: column;
	gap: 12px;
}
.plan-change-field {
	display: flex;
	flex-direction: column;
	gap: 6px;
}
.plan-change-label {
	font-size: 12px;
	text-transform: uppercase;
	letter-spacing: 0.2em;
	color: var(--muted);
	font-weight: 600;
}
.plan-change-options {
	display: flex;
	flex-direction: column;
	gap: 10px;
}
.plan-option {
	border: 1px solid var(--border);
	border-radius: 12px;
	padding: 10px 12px;
	background: #fff;
	display: flex;
	align-items: center;
	gap: 12px;
	cursor: pointer;
}
.plan-option:hover,
.plan-option:focus-within {
	border-color: rgba(0, 0, 0, 0.35);
	box-shadow: 0 4px 10px rgba(0, 0, 0, 0.08);
}
.plan-option input {
	accent-color: var(--brand);
}
.plan-option-info {
	display: flex;
	flex-direction: column;
	gap: 4px;
	min-width: 0;
}
.plan-option-description {
	font-size: 12px;
	color: var(--muted);
}
.plan-option-name {
	font-weight: 600;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
	display: flex;
	align-items: center;
	gap: 6px;
}
.plan-option-status {
	font-size: 11px;
	font-weight: 600;
	color: var(--muted);
	letter-spacing: 0.1em;
	text-transform: uppercase;
}
.plan-option-price {
	margin-left: auto;
	font-weight: 600;
	color: var(--text);
	white-space: nowrap;
}
.plan-change-summary {
	background: #fff;
	border: 1px solid var(--border);
	border-radius: 12px;
	padding: 10px 12px;
	font-size: 12px;
	color: var(--muted);
	line-height: 1.4;
}
.plan-change-billing {
	background: var(--surface-2);
	border: 1px solid var(--border);
	border-radius: 12px;
	padding: 10px 12px;
	display: flex;
	flex-direction: column;
	gap: 8px;
	font-size: 13px;
	color: var(--text);
}
.plan-change-field-seats {
	padding-bottom: 2px;
}
.plan-seat-input-row {
	display: flex;
	flex-direction: column;
	gap: 6px;
}
.plan-seat-input-row input {
	max-width: 160px;
	padding: 10px 12px;
	border-radius: 12px;
	border: 1px solid var(--border);
	background: #fff;
	font-size: 14px;
	color: var(--text);
}
.plan-seat-note {
	font-size: 12px;
	color: var(--muted);
	line-height: 1.4;
}
.plan-seat-total {
	display: flex;
	align-items: center;
	gap: 6px;
	min-height: 20px;
	font-size: 13px;
	font-weight: 600;
	color: var(--accent);
	letter-spacing: 0.01em;
}
.plan-card-status {
	font-weight: 600;
}
.plan-card-actions {
	display: flex;
	justify-content: flex-end;
	gap: 8px;
}
.plan-card-hidden {
	display: none !important;
}
.plan-card-form {
	display: flex;
	flex-direction: column;
	gap: 6px;
}
.plan-card-form-hidden {
	display: none;
}
.plan-card-element {
	border: 1px solid var(--border);
	border-radius: 10px;
	padding: 10px;
	background: #fff;
}
.plan-card-error {
	color: #9e3b2f;
	font-size: 12px;
	min-height: 18px;
}
.plan-card-note {
	font-size: 11px;
	color: var(--muted);
}
.welcome-modal {
	width: min(540px, 92vw);
}
.welcome-modal h2 {
	margin: 0 0 6px;
	font-size: 22px;
}
.welcome-modal p {
	margin: 0;
	color: var(--muted);
	line-height: 1.5;
}
.welcome-list {
	margin: 12px 0;
	padding-left: 18px;
	display: flex;
	flex-direction: column;
	gap: 8px;
	color: var(--muted);
	font-size: 13px;
	line-height: 1.5;
}
.welcome-actions {
	display: flex;
	gap: 10px;
	flex-wrap: wrap;
	justify-content: flex-end;
	margin-top: 16px;
}
.users-modal {
	width: min(960px, 96vw);
	max-width: 960px;
	max-height: 90vh;
	display: flex;
	flex-direction: column;
	overflow: hidden;
}
.users-body {
	display: flex;
	flex-direction: column;
	gap: 8px;
	flex: 1;
	min-height: 0;
	overflow: hidden;
}
.seat-confirm-modal {
	width: min(540px, 92vw);
	max-width: 540px;
	transform: translateY(10px) scale(0.98);
	transition: transform 0.2s ease;
}
.modal-overlay.show .seat-confirm-modal {
	transform: translateY(0) scale(1);
}
.seat-confirm-header {
	background: linear-gradient(135deg, rgba(47, 107, 94, 0.12), rgba(217, 119, 65, 0.12));
	border-bottom: 1px solid var(--border);
	padding-bottom: 12px;
}
.seat-confirm-eyebrow {
	font-size: 10px;
	text-transform: uppercase;
	letter-spacing: 0.18em;
	font-weight: 600;
	color: var(--muted);
}
.seat-confirm-header h2 {
	margin: 6px 0 6px;
}
.seat-confirm-header p {
	margin: 0;
	color: var(--muted);
	font-size: 13px;
	line-height: 1.5;
}
.seat-confirm-body {
	gap: 14px;
}
.seat-confirm-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
	gap: 10px;
}
.seat-confirm-tile {
	border: 1px solid var(--border);
	border-radius: 14px;
	padding: 10px 12px;
	background: #fff;
}
.seat-confirm-tile.is-highlight {
	border-color: rgba(47, 107, 94, 0.35);
	background: rgba(47, 107, 94, 0.08);
	box-shadow: 0 10px 20px rgba(47, 107, 94, 0.12);
}
.seat-confirm-label {
	font-size: 10px;
	text-transform: uppercase;
	letter-spacing: 0.12em;
	color: var(--muted);
	font-weight: 600;
	margin-bottom: 4px;
}
.seat-confirm-value {
	font-size: 16px;
	font-weight: 700;
	color: var(--text);
}
.seat-confirm-bill {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	padding: 10px 12px;
	border: 1px solid var(--border);
	border-radius: 14px;
	background: var(--surface-2);
}
.seat-confirm-note {
	font-size: 12px;
	color: var(--muted);
	margin: 0;
}
.seat-confirm-meta {
	font-size: 12px;
	color: var(--muted);
	margin: 0;
}
.users-seat-section {
	display: flex;
	justify-content: space-between;
	gap: 12px;
	flex-wrap: wrap;
	align-items: stretch;
}
.users-seat-panel {
	border: 1px solid var(--border);
	border-radius: 18px;
	padding: 14px;
	background: var(--surface);
	box-shadow: var(--shadow-soft);
	display: flex;
	flex-direction: column;
	gap: 12px;
	width: 100%;
}
.users-seat-panel-body {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
	gap: 12px;
	align-items: start;
}
.users-seat-item {
	border: 1px solid var(--border);
	border-radius: 14px;
	padding: 10px 12px;
	background: #fff;
}
.users-seat-item.is-primary {
	border-color: rgba(47, 107, 94, 0.35);
	background: rgba(47, 107, 94, 0.08);
	box-shadow: 0 8px 18px rgba(47, 107, 94, 0.12);
}
.users-seat-label {
	font-size: 10px;
	text-transform: uppercase;
	letter-spacing: 0.12em;
	color: var(--muted);
	font-weight: 600;
	margin-bottom: 4px;
}
.users-seat-value {
	font-size: 14px;
	font-weight: 600;
	color: var(--text);
}
.users-seat-adjust {
	display: flex;
	flex-direction: column;
	gap: 8px;
	padding: 10px 12px;
	border: 1px solid rgba(47, 107, 94, 0.18);
	border-radius: 14px;
	background: var(--surface-2);
}
.users-seat-panel-header {
	display: flex;
	align-items: flex-start;
	justify-content: space-between;
	gap: 10px;
}
.users-seat-panel-title {
	font-size: 12px;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.12em;
	color: var(--accent);
}
.users-seat-panel-subtitle {
	font-size: 12px;
	color: var(--muted);
}
.users-seat-adjust label {
	font-size: 12px;
	font-weight: 600;
	margin-bottom: 0;
}
.users-seat-current-value {
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
	align-items: center;
	line-height: 1.3;
	margin: 0;
}
.users-seat-pill {
	display: inline-flex;
	align-items: center;
	padding: 2px 10px;
	border-radius: 999px;
	border: 1px solid rgba(15, 23, 42, 0.12);
	background: rgba(255, 255, 255, 0.8);
	font-size: 11px;
	font-weight: 600;
	color: var(--text);
}
.users-seat-pill.is-muted {
	color: var(--muted);
	background: rgba(255, 255, 255, 0.55);
}
.users-seat-pill.is-accent {
	border-color: rgba(47, 107, 94, 0.35);
	background: rgba(47, 107, 94, 0.1);
	color: var(--accent);
}
.users-seat-adjust-row {
	display: flex;
	align-items: center;
	gap: 10px;
	flex-wrap: wrap;
}
.users-seat-stepper {
	flex: 0 0 auto;
	display: inline-grid;
	grid-template-columns: 32px minmax(4ch, 4.5ch) 32px;
	align-items: stretch;
	border: 1px solid var(--border);
	border-radius: 12px;
	background: var(--surface);
	overflow: hidden;
	width: max-content;
}
.users-seat-step {
	border: none;
	background: transparent;
	color: var(--text);
	font-size: 18px;
	font-weight: 600;
	width: 32px;
	height: 34px;
	cursor: pointer;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 0;
}
.users-seat-step:focus-visible {
	outline: 2px solid var(--accent);
	outline-offset: 2px;
}
.users-seat-stepper input {
	border: none;
	background: transparent;
	text-align: center;
	font-size: 15px;
	padding: 0 6px;
	height: 34px;
	color: var(--text);
	width: 100%;
	min-width: 6ch;
}
#users-seat-input {
	margin: 0;
	width: 4ch;
	-moz-appearance: textfield;
}
#users-seat-input::-webkit-outer-spin-button,
#users-seat-input::-webkit-inner-spin-button {
	-webkit-appearance: none;
	margin: 0;
}
#plan-change-seat-input {
	margin: 0;
	-moz-appearance: textfield;
	appearance: textfield;
}

#plan-change-seat-input::-webkit-outer-spin-button,
#plan-change-seat-input::-webkit-inner-spin-button {
	-webkit-appearance: none;
	margin: 0;
}
#users-seat-update {
	min-width: 160px;
	padding: 8px 14px;
	flex: 0 0 auto;
}
.users-seat-adjust-note {
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
	font-size: 11px;
	color: var(--muted);
	margin: 0;
}
.users-seat-adjust-note span {
	padding: 2px 8px;
	border-radius: 999px;
	border: 1px solid rgba(47, 107, 94, 0.2);
	background: rgba(47, 107, 94, 0.1);
	color: var(--accent);
}
.users-seat-difference {
	font-size: 12px;
	color: var(--muted);
	margin: 0;
	min-height: 18px;
	padding: 6px 10px;
	border-radius: 12px;
	border: 1px solid transparent;
	background: transparent;
}
.users-seat-difference[data-tone="increase"] {
	color: var(--accent);
	background: rgba(47, 107, 94, 0.08);
	border-color: rgba(47, 107, 94, 0.25);
}
.users-seat-difference[data-tone="decrease"] {
	color: var(--accent-2);
	background: rgba(217, 119, 65, 0.1);
	border-color: rgba(217, 119, 65, 0.25);
}
.users-seat-difference[data-tone="neutral"] {
	color: var(--muted);
	background: rgba(255, 255, 255, 0.55);
	border-color: rgba(15, 23, 42, 0.08);
}
.users-roster-panel {
	border: 1px solid var(--border);
	border-radius: 18px;
	background: var(--surface);
	box-shadow: var(--shadow-soft);
	padding: 10px 12px;
	display: flex;
	flex-direction: column;
	gap: 10px;
	min-height: 0;
	overflow: hidden;
}
.users-roster-toolbar {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 10px;
}
.users-roster-heading {
	font-size: 11px;
	text-transform: uppercase;
	letter-spacing: 0.12em;
	color: var(--muted);
	font-weight: 700;
	white-space: nowrap;
}
.users-invite-panel {
	padding: 12px 14px;
	border: 1px solid rgba(15, 23, 42, 0.08);
	border-radius: 14px;
	background: #fff;
	flex: 1 1 320px;
	max-width: 420px;
	box-shadow: 0 12px 28px rgba(15, 23, 42, 0.08);
}
.users-invite-form {
	display: flex;
	flex-direction: column;
	gap: 6px;
}
.users-invite-label-note {
	font-size: 12px;
	color: var(--muted);
	margin-left: 6px;
	display: inline;
	font-weight: 400;
}
.users-invite-row {
	display: flex;
	gap: 8px;
	align-items: center;
	flex-wrap: nowrap;
}
.users-invite-row input {
	flex: 1;
	min-width: 0;
	border-radius: 999px;
	padding: 8px 14px;
	border: 1px solid var(--border);
	background: var(--surface-2);
}
.users-invite-row button {
	padding: 8px 18px;
	border-radius: 999px;
	font-size: 14px;
	white-space: nowrap;
}
.users-search {
	flex: 1 1 240px;
	min-width: 200px;
	max-width: 340px;
	width: 100%;
	margin-left: auto;
}
.users-search input {
	width: 100%;
	border-radius: 999px;
	padding: 8px 14px;
	border: 1px solid var(--border);
	background: var(--surface);
	box-shadow: 0 8px 18px rgba(31, 37, 34, 0.08);
	transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.users-search input:focus {
	border-color: var(--accent);
	box-shadow: 0 10px 22px rgba(31, 37, 34, 0.12);
	outline: none;
}
@media (max-width: 720px) {
	.users-search {
		max-width: none;
	}
}
.users-invite-list {
	margin-top: 12px;
	display: flex;
	flex-direction: column;
	gap: 6px;
}
.users-invite-entry {
	display: flex;
	justify-content: space-between;
	align-items: center;
	padding: 8px 10px;
	border-radius: var(--radius);
	background: #f6f6f8;
	gap: 12px;
}
.users-invite-email {
	font-size: 14px;
	font-weight: 500;
	color: var(--text);
	flex: 1;
	min-width: 0;
}
.users-invite-meta button {
	padding: 4px 10px;
	font-size: 13px;
}
.users-invite-empty {
	font-size: 13px;
	color: var(--muted);
}
.user-tier-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
	gap: 12px;
	overflow: hidden;
}
.users-roster-panel .user-tier-grid {
	overflow: visible;
}
.user-tier-column {
	border: 1px solid var(--border);
	border-radius: 16px;
	background: var(--surface-2);
	padding: 10px 12px;
	display: flex;
	flex-direction: column;
	gap: 6px;
	min-height: 220px;
	min-width: 0;
	overflow: hidden;
}
.user-tier-header {
	display: flex;
	align-items: baseline;
	justify-content: space-between;
	gap: 6px;
}
.user-tier-title {
	font-size: 11px;
	text-transform: uppercase;
	letter-spacing: 0.16em;
	color: var(--muted);
	font-weight: 600;
}
.user-tier-count {
	font-size: 12px;
	color: var(--muted);
}
.user-tier-list {
	display: flex;
	flex-direction: column;
	gap: 6px;
	flex: 1;
	min-height: 0;
	max-height: min(420px, 60vh);
	overflow-y: auto;
	padding: 4px 0;
}
.user-card {
	border: 1px solid var(--border);
	border-radius: 14px;
	background: var(--surface);
	padding: 10px 12px;
	display: flex;
	flex-direction: column;
	gap: 8px;
	box-shadow: 0 8px 18px rgba(31, 37, 34, 0.05);
	width: 100%;
	min-width: 0;
}
.user-card.invite {
	border-style: dashed;
	background: #f8fafc;
	box-shadow: none;
	flex-direction: row;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	padding: 8px 12px;
}
.user-card-top {
	display: flex;
	justify-content: space-between;
	gap: 8px;
	align-items: center;
}
.user-card.invite .user-card-top {
	flex: 1;
	margin-right: 8px;
	flex-wrap: nowrap;
}
.user-email {
	font-size: 13px;
	font-weight: 600;
	flex: 1;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}
.user-tags {
	display: flex;
	flex-wrap: nowrap;
	gap: 6px;
	justify-content: flex-end;
	align-items: center;
}
.user-tag {
	font-size: 10px;
	text-transform: uppercase;
	letter-spacing: 0.12em;
	padding: 3px 6px;
	border-radius: 999px;
	border: 1px solid var(--border);
	background: var(--surface-2);
	color: var(--muted);
}
.user-tag.admin {
	border-color: rgba(47, 107, 94, 0.4);
	color: var(--accent);
	background: rgba(47, 107, 94, 0.08);
}
.user-tag.pending {
	border-style: dashed;
}
.user-tag.invite {
	border-color: rgba(47, 107, 94, 0.35);
	color: #2f6b5e;
	background: rgba(47, 107, 94, 0.06);
}
.invite-meta {
	display: flex;
	align-items: center;
	gap: 8px;
	flex-wrap: nowrap;
}
.user-card-actions {
	display: flex;
	flex-wrap: nowrap;
	gap: 6px;
	align-items: center;
	justify-content: flex-end;
}
.user-card-actions button {
	padding: 3px 8px;
	font-size: 11px;
	border-radius: 999px;
	white-space: nowrap;
}
.invite-icon-button {
	width: 34px;
	height: 34px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	border-radius: 999px;
	border: 1px solid rgba(15, 23, 42, 0.2);
	background: #fff;
}
.invite-icon-button img {
	width: 16px;
	height: 16px;
}
.admin-toggle {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	font-size: 11px;
	color: var(--muted);
}
.admin-toggle input {
	accent-color: var(--accent);
}
.user-empty {
	border: 1px dashed var(--border);
	border-radius: 10px;
	background: var(--surface);
	padding: 8px;
	font-size: 12px;
	color: var(--muted);
	text-align: center;
}
.users-actions {
	align-items: center;
	justify-content: flex-end;
	gap: 10px;
}
.users-note {
	margin-right: auto;
	font-size: 12px;
	color: var(--muted);
}
#history-open {
	background: var(--accent);
	color: #fff;
	border-color: var(--accent);
}
#history-open:hover {
	background: #295b50;
}
