/* savemy.io */

:root {
	--bg: #f4f5fa;
	--surface: #ffffff;
	--surface-2: #f7f8fc;
	--surface-3: #eef0f6;
	--border: #e3e6ef;
	--border-strong: #cfd4e0;
	--text: #1b2232;
	--muted: #667085;
	--brand: #4f46e5;
	--brand-hover: #4338ca;
	--brand-soft: #eef0ff;
	--brand-2: #0ea5e9;
	--ring: rgba(79, 70, 229, .2);
	--ok: #16a34a;
	--ok-hover: #15803d;
	--ok-soft: #e8f7ee;
	--bad: #dc2626;
	--bad-soft: #fdecec;
	--warn-soft: #fff7e0;
	--warn-border: #f2d38b;
	--code-bg: #f6f8fa;
	--paper: #ffffff;
	--paper-text: #24292f;
	--shadow-sm: 0 1px 2px rgba(16, 24, 40, .05);
	--shadow: 0 1px 3px rgba(16, 24, 40, .06), 0 12px 32px -8px rgba(16, 24, 40, .1);
	--radius: 16px;
	--radius-sm: 10px;
	--font: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
	--display: 'Poppins', var(--font);
	--mono: ui-monospace, SFMono-Regular, 'JetBrains Mono', Menlo, Consolas, 'Liberation Mono', monospace;
	color-scheme: light;
}

@media (prefers-color-scheme: dark) {
	:root {
		--bg: #0c0f16;
		--surface: #151a24;
		--surface-2: #1a202c;
		--surface-3: #222a39;
		--border: #262e3e;
		--border-strong: #364055;
		--text: #e7eaf0;
		--muted: #98a2b3;
		--brand: #7f78ff;
		--brand-hover: #9690ff;
		--brand-soft: #23244a;
		--ring: rgba(127, 120, 255, .3);
		--ok: #22c55e;
		--ok-hover: #16a34a;
		--ok-soft: #10261a;
		--bad: #f05252;
		--bad-soft: #341818;
		--warn-soft: #2b2413;
		--warn-border: #66561f;
		--code-bg: #0d1117;
		--shadow-sm: 0 1px 2px rgba(0, 0, 0, .3);
		--shadow: 0 1px 3px rgba(0, 0, 0, .35), 0 12px 32px -8px rgba(0, 0, 0, .5);
		color-scheme: dark;
	}
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
	margin: 0;
	min-height: 100vh;
	display: flex;
	flex-direction: column;
	font: 15px/1.6 var(--font);
	color: var(--text);
	background:
		radial-gradient(1200px 400px at 10% -10%, color-mix(in srgb, var(--brand) 9%, transparent), transparent 70%),
		radial-gradient(900px 360px at 100% -5%, color-mix(in srgb, var(--brand-2) 8%, transparent), transparent 70%),
		var(--bg);
	background-repeat: no-repeat;
	-webkit-font-smoothing: antialiased;
}

a { color: var(--brand); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3 { line-height: 1.2; }
code { font-family: var(--mono); font-size: .9em; background: var(--surface-3); padding: 1px 6px; border-radius: 6px; }
kbd {
	font: 600 11px var(--font);
	padding: 1px 6px;
	border: 1px solid var(--border-strong);
	border-bottom-width: 2px;
	border-radius: 5px;
	background: var(--surface);
	color: var(--muted);
}

.hidden { display: none !important; }
[data-show=""] { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }

.i {
	width: 1.1em;
	height: 1.1em;
	flex: none;
	fill: none;
	stroke: currentColor;
	stroke-width: 2;
	stroke-linecap: round;
	stroke-linejoin: round;
}

/* ---- top bar ---------------------------------------------------------------- */

.topbar {
	position: sticky;
	top: 0;
	z-index: 100;
	background: color-mix(in srgb, var(--surface) 82%, transparent);
	backdrop-filter: saturate(1.6) blur(12px);
	-webkit-backdrop-filter: saturate(1.6) blur(12px);
	border-bottom: 1px solid var(--border);
}
.topbar-inner {
	max-width: 1080px;
	margin: 0 auto;
	padding: 0 20px;
	height: 62px;
	display: flex;
	align-items: center;
	gap: 12px;
}
.brand {
	display: flex;
	align-items: center;
	gap: 10px;
	font: 600 20px var(--display);
	color: var(--text);
	letter-spacing: -.01em;
}
.brand:hover { text-decoration: none; }
.brand img { border-radius: 9px; box-shadow: 0 4px 12px -4px rgba(79, 70, 229, .5); }
.brand-dot { color: var(--brand); }
.group-pill {
	font-size: 12.5px;
	font-weight: 600;
	color: var(--brand);
	background: var(--brand-soft);
	padding: 3px 10px;
	border-radius: 999px;
	max-width: 160px;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}
.nav { margin-left: auto; display: flex; gap: 4px; }
.nav a {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	padding: 7px 12px;
	border-radius: 9px;
	color: var(--muted);
	font-size: 14px;
	font-weight: 500;
}
.nav a:hover { color: var(--text); background: var(--surface-3); text-decoration: none; }
body[data-page="create"] .nav [data-nav="create"],
body[data-page="list"] .nav [data-nav="list"] { color: var(--text); background: var(--surface-3); }

/* ---- page frame -------------------------------------------------------------- */

.container {
	width: 100%;
	max-width: 1080px;
	margin: 0 auto;
	padding: 40px 20px 64px;
	flex: 1;
}

.site-footer { border-top: 1px solid var(--border); color: var(--muted); font-size: 13px; }
.footer-inner {
	max-width: 1080px;
	margin: 0 auto;
	padding: 20px;
	display: flex;
	flex-wrap: wrap;
	justify-content: space-between;
	gap: 8px;
}

.eyebrow { margin: 0; color: var(--muted); font-size: 13px; font-weight: 500; word-break: break-all; }

/* ---- hero -------------------------------------------------------------------- */

.hero { margin-bottom: 28px; }
.hero h1 {
	font: 700 clamp(32px, 4.5vw, 46px) var(--display);
	letter-spacing: -.025em;
	margin: 0 0 10px;
}
.grad {
	background: linear-gradient(100deg, var(--brand), var(--brand-2));
	-webkit-background-clip: text;
	background-clip: text;
	color: transparent;
}
.lead { font-size: 16.5px; color: var(--muted); max-width: 680px; margin: 0 0 6px; }
.lead-sub { color: var(--muted); margin: 0; font-size: 14.5px; }

/* ---- cards ------------------------------------------------------------------- */

.card {
	background: var(--surface);
	border: 1px solid var(--border);
	border-radius: var(--radius);
	box-shadow: var(--shadow);
}
.card-body { padding: 26px 28px 28px; }
.card-foot {
	display: flex;
	align-items: center;
	gap: 14px;
	padding: 16px 28px;
	border-top: 1px solid var(--border);
}

/* ---- form controls ------------------------------------------------------------- */

.grid-2 { display: grid; grid-template-columns: 1.15fr 1fr; gap: 18px; }
.field { min-width: 0; }
.label { display: block; font-size: 13px; font-weight: 600; margin-bottom: 7px; }
.optional { font-weight: 500; color: var(--muted); font-size: 12px; margin-left: 4px; }
.help { margin: 7px 0 0; font-size: 12.5px; line-height: 1.45; color: var(--muted); }

.input, .select {
	width: 100%;
	height: 42px;
	padding: 0 13px;
	font: inherit;
	font-size: 15px;
	color: var(--text);
	background: var(--surface);
	border: 1px solid var(--border-strong);
	border-radius: var(--radius-sm);
	transition: border-color .15s, box-shadow .15s;
}
.input::placeholder { color: color-mix(in srgb, var(--muted) 70%, transparent); }
.input:focus, .select:focus, .url-input:focus-within {
	outline: none;
	border-color: var(--brand);
	box-shadow: 0 0 0 4px var(--ring);
}
.input-lg { height: 50px; font-size: 16px; }
.select { width: auto; height: 36px; padding: 0 30px 0 11px; font-size: 14px; cursor: pointer; }

.url-input {
	display: flex;
	align-items: stretch;
	height: 42px;
	background: var(--surface);
	border: 1px solid var(--border-strong);
	border-radius: var(--radius-sm);
	overflow: hidden;
	transition: border-color .15s, box-shadow .15s;
}
.url-prefix {
	display: flex;
	align-items: center;
	padding: 0 2px 0 13px;
	color: var(--muted);
	font-size: 14.5px;
	white-space: nowrap;
	max-width: 58%;
	overflow: hidden;
	text-overflow: ellipsis;
	flex: none;
}
.url-input input {
	flex: 1;
	min-width: 60px;
	border: 0;
	outline: 0;
	background: transparent;
	font: inherit;
	font-size: 15px;
	font-weight: 600;
	color: var(--text);
	padding: 0 4px 0 0;
}
.name-status {
	display: flex;
	align-items: center;
	padding: 0 12px;
	font-size: 12.5px;
	font-weight: 600;
	white-space: nowrap;
}
.name-status.ok { color: var(--ok); }
.name-status.bad { color: var(--bad); }

.pw { position: relative; }
.pw .input { padding-right: 44px; }
.pw-toggle {
	position: absolute;
	right: 5px;
	top: 50%;
	transform: translateY(-50%);
	width: 34px;
	height: 34px;
	display: grid;
	place-items: center;
	border: 0;
	border-radius: 8px;
	background: transparent;
	color: var(--muted);
	cursor: pointer;
}
.pw-toggle:hover { background: var(--surface-3); color: var(--text); }

.switch { display: flex; align-items: center; gap: 11px; cursor: pointer; font-size: 14px; line-height: 1.35; }
.switch input {
	appearance: none;
	-webkit-appearance: none;
	flex: none;
	width: 38px;
	height: 22px;
	margin: 0;
	border-radius: 999px;
	background: var(--border-strong);
	position: relative;
	cursor: pointer;
	transition: background .2s;
}
.switch input::before {
	content: '';
	position: absolute;
	top: 3px;
	left: 3px;
	width: 16px;
	height: 16px;
	border-radius: 50%;
	background: #fff;
	box-shadow: 0 1px 3px rgba(0, 0, 0, .25);
	transition: transform .2s;
}
.switch input:checked { background: var(--brand); }
.switch input:checked::before { transform: translateX(16px); }
.switch input:focus-visible { outline: none; box-shadow: 0 0 0 4px var(--ring); }

/* ---- buttons --------------------------------------------------------------------- */

.btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	height: 38px;
	padding: 0 16px;
	font: inherit;
	font-size: 14px;
	font-weight: 600;
	white-space: nowrap;
	border: 1px solid transparent;
	border-radius: var(--radius-sm);
	cursor: pointer;
	text-decoration: none !important;
	transition: background .15s, border-color .15s, color .15s, box-shadow .15s, transform .05s;
}
.btn:active { transform: translateY(1px); }
.btn:focus-visible { outline: none; box-shadow: 0 0 0 4px var(--ring); }
.btn:disabled { opacity: .6; cursor: progress; }
.btn-primary { background: var(--brand); color: #fff; box-shadow: 0 6px 16px -6px color-mix(in srgb, var(--brand) 70%, transparent); }
.btn-primary:hover { background: var(--brand-hover); }
.btn-success { background: var(--ok); color: #fff; }
.btn-success:hover { background: var(--ok-hover); }
.btn-secondary { background: var(--surface); color: var(--text); border-color: var(--border-strong); }
.btn-secondary:hover { background: var(--surface-2); border-color: var(--muted); }
.btn-ghost { background: transparent; color: var(--muted); }
.btn-ghost:hover { background: var(--surface-3); color: var(--text); }
.btn-lg { height: 46px; padding: 0 24px; font-size: 15px; }
.btn-sm { height: 32px; padding: 0 12px; font-size: 13px; }

/* ---- create ---------------------------------------------------------------------- */

.segmented {
	display: inline-flex;
	gap: 4px;
	padding: 4px;
	margin: 24px 0 16px;
	background: var(--surface-3);
	border-radius: 12px;
}
.tab {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding: 8px 16px;
	border: 0;
	border-radius: 9px;
	background: transparent;
	color: var(--muted);
	font: inherit;
	font-size: 14px;
	font-weight: 600;
	cursor: pointer;
	transition: background .15s, color .15s, box-shadow .15s;
}
.tab:hover { color: var(--text); }
.t-short { display: none; }
.tab.active { background: var(--surface); color: var(--brand); box-shadow: 0 1px 3px rgba(16, 24, 40, .12); }

.link-pane {
	padding: 26px;
	border: 1px dashed var(--border-strong);
	border-radius: 12px;
	background: var(--surface-2);
}

.options { padding: 22px 28px 26px; border-top: 1px solid var(--border); background: var(--surface-2); }
.options-head { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 12px; margin-bottom: 16px; }
.options-head h2 { margin: 0; font-size: 15px; font-weight: 600; }
.options-head span { color: var(--muted); font-size: 13px; }
.options-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px 20px; }
.options-grid .checks { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: 12px 28px; }

.form-error { margin: 0 auto 0 0; color: var(--bad); font-size: 14px; font-weight: 500; }
.hint { color: var(--muted); font-size: 12px; white-space: nowrap; }
.card-foot .hint { margin-left: auto; }
.card-foot .form-error:not(:empty) + .hint { margin-left: 0; }

.created { padding: 40px 32px; text-align: center; }
.created-icon {
	width: 56px;
	height: 56px;
	margin: 0 auto 16px;
	display: grid;
	place-items: center;
	border-radius: 50%;
	background: var(--ok-soft);
	color: var(--ok);
	font-size: 26px;
}
.created h2 { font: 700 24px var(--display); margin: 0 0 6px; }
.created > p { color: var(--muted); margin: 0 0 20px; }
.share {
	display: flex;
	max-width: 560px;
	margin: 0 auto 20px;
	border: 1px solid var(--border-strong);
	border-radius: 12px;
	overflow: hidden;
	background: var(--surface-2);
}
.share a {
	flex: 1;
	min-width: 0;
	display: flex;
	align-items: center;
	padding: 0 16px;
	font-weight: 600;
	font-size: 15.5px;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}
.share .btn { border-radius: 0; border: 0; border-left: 1px solid var(--border-strong); height: 48px; }
.created-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; }
.created .note { color: var(--muted); font-size: 13px; margin: 16px 0 0; }

/* ---- editors ----------------------------------------------------------------------- */

.rich-source { width: 100%; min-height: 360px; }
.tox.tox-tinymce { border: 1px solid var(--border-strong) !important; border-radius: 12px !important; }

.code-editor {
	position: relative;
	height: 460px;
	border: 1px solid var(--border-strong);
	border-radius: 12px;
	background: var(--code-bg);
	overflow: hidden;
	resize: vertical;
	transition: border-color .15s, box-shadow .15s;
}
.code-editor:focus-within { border-color: var(--brand); box-shadow: 0 0 0 4px var(--ring); }
.code-editor pre, .code-editor textarea {
	position: absolute;
	inset: 0;
	margin: 0;
	padding: 16px 18px;
	border: 0;
	font-family: var(--mono);
	font-size: 13.5px;
	line-height: 21px;
	tab-size: 4;
	white-space: pre;
	overflow: auto;
	word-wrap: normal;
	letter-spacing: normal;
}
.code-editor pre { pointer-events: none; overflow: hidden; background: transparent; }
.code-editor pre code.hljs { background: transparent; padding: 0; overflow: visible; display: inline; font: inherit; }
.code-editor textarea { color: transparent; caret-color: var(--text); background: transparent; resize: none; outline: none; }
.code-editor textarea::selection { background: color-mix(in srgb, var(--brand) 30%, transparent); color: transparent; }
.code-editor textarea::placeholder { color: var(--muted); }
.code-editor.plain textarea { color: var(--text); }
.code-editor.plain pre { display: none; }

/* ---- document view ----------------------------------------------------------------- */

.doc-header { margin-bottom: 20px; }
.doc-title-row { display: flex; flex-wrap: wrap; align-items: flex-start; justify-content: space-between; gap: 16px; }
.doc-title-wrap { min-width: 0; }
.doc-title { font: 700 clamp(26px, 3.6vw, 36px) var(--display); letter-spacing: -.02em; margin: 2px 0 4px; word-break: break-word; }
.doc-desc { margin: 0; color: var(--muted); font-size: 15.5px; }
.doc-desc:empty { display: none; }
.doc-actions { display: flex; gap: 8px; }
.doc-meta { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.doc-meta:empty { display: none; }

.badge {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	height: 27px;
	padding: 0 11px;
	border-radius: 999px;
	font-size: 12.5px;
	font-weight: 500;
	color: var(--muted);
	background: var(--surface);
	border: 1px solid var(--border);
	white-space: nowrap;
}
.badge .i { width: 13px; height: 13px; }
.badge-brand { color: var(--brand); background: var(--brand-soft); border-color: transparent; font-weight: 600; }
.badge-lock { color: #b45309; background: color-mix(in srgb, #f59e0b 14%, var(--surface)); border-color: transparent; }

.doc-toolbar {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 10px 16px;
	padding: 10px;
	margin-bottom: 16px;
	background: var(--surface);
	border: 1px solid var(--border);
	border-radius: 14px;
	box-shadow: var(--shadow-sm);
}
.tool-row { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.tool-spacer { flex: 1; }
.tool-label { display: inline-flex; align-items: center; gap: 6px; color: var(--muted); font-size: 13px; font-weight: 500; }

.version-banner {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 10px;
	padding: 10px 12px 10px 16px;
	margin-bottom: 14px;
	background: var(--warn-soft);
	border: 1px solid var(--warn-border);
	border-radius: 12px;
	font-size: 14px;
}
.version-banner > span { display: inline-flex; align-items: center; gap: 8px; margin-right: auto; font-weight: 500; }

.doc-content {
	background: var(--paper);
	color: var(--paper-text);
	border: 1px solid var(--border);
	border-radius: var(--radius);
	box-shadow: var(--shadow);
	padding: 36px 40px;
	font-size: 15.5px;
	line-height: 1.7;
	overflow-wrap: anywhere;
	overflow-x: auto;
}
.doc-content > :first-child { margin-top: 0; }
.doc-content > :last-child { margin-bottom: 0; }
.doc-content h1, .doc-content h2, .doc-content h3 { font-family: var(--display); color: #111827; margin: 1.4em 0 .5em; }
.doc-content a { color: #4f46e5; }
.doc-content img { max-width: 100%; height: auto; border-radius: 6px; }
.doc-content li { list-style-type: circle; }
.doc-content table { border-collapse: collapse; max-width: 100%; }
.doc-content table[border] td, .doc-content table[border] th { border: 1px solid #d0d7de; padding: 6px 10px; }
.doc-content pre { background: #f6f8fa; padding: 14px 16px; border-radius: 8px; overflow-x: auto; font-size: 13.5px; }
.doc-content code { background: #f0f2f5; color: inherit; }
.doc-content pre code { background: none; padding: 0; }
.doc-content blockquote { margin: 1em 0; padding: 4px 16px; border-left: 3px solid #c7cbe8; color: #4b5563; }
@media (prefers-color-scheme: dark) {
	.doc-content pre code.hljs { color: #24292e; }
}

.code-view {
	background: var(--code-bg);
	border: 1px solid var(--border);
	border-radius: var(--radius);
	box-shadow: var(--shadow);
	overflow: hidden;
}
.code-bar {
	display: flex;
	align-items: center;
	gap: 10px;
	padding: 8px 10px 8px 16px;
	background: var(--surface-2);
	border-bottom: 1px solid var(--border);
	font-size: 12.5px;
	color: var(--muted);
}
.code-bar .lang {
	font-size: 11px;
	font-weight: 700;
	letter-spacing: .06em;
	text-transform: uppercase;
	color: var(--brand);
	background: var(--brand-soft);
	padding: 3px 8px;
	border-radius: 6px;
}
.code-bar .meta { margin-right: auto; }
.code-body { display: flex; overflow: auto; max-height: 78vh; }
.code-gutter, .code-body pre {
	margin: 0;
	font-family: var(--mono);
	font-size: 13.5px;
	line-height: 21px;
	tab-size: 4;
}
.code-gutter {
	flex: none;
	position: sticky;
	left: 0;
	padding: 16px 12px 16px 16px;
	text-align: right;
	white-space: pre;
	color: color-mix(in srgb, var(--muted) 65%, transparent);
	background: var(--code-bg);
	border-right: 1px solid var(--border);
	user-select: none;
}
.code-body pre { flex: 1; padding: 16px 20px 16px 16px; white-space: pre; overflow: visible; }
.code-body pre code.hljs { background: transparent; padding: 0; overflow: visible; }

.link-card { padding: 24px 28px; display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.link-card a { font-weight: 600; word-break: break-all; }

/* ---- password prompt ------------------------------------------------------------------ */

.auth { max-width: 420px; margin: 24px auto; padding: 32px; text-align: center; }
.auth-icon {
	width: 52px;
	height: 52px;
	margin: 0 auto 14px;
	display: grid;
	place-items: center;
	border-radius: 50%;
	background: var(--brand-soft);
	color: var(--brand);
	font-size: 22px;
}
.auth h2 { font: 700 21px var(--display); margin: 0 0 6px; }
.auth > p { color: var(--muted); margin: 0 0 20px; font-size: 14.5px; word-break: break-word; }
.auth .field { text-align: left; margin-bottom: 14px; }
.auth-actions { display: flex; gap: 8px; justify-content: center; margin-top: 6px; }
.auth-actions .btn-primary { flex: 1; }
.auth .form-error { margin: 12px 0 0; text-align: center; }
.auth .form-error:empty { display: none; }

/* ---- list ---------------------------------------------------------------------------------- */

.page-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 20px; }
.page-head h1 { font: 700 clamp(28px, 4vw, 38px) var(--display); letter-spacing: -.02em; margin: 2px 0 6px; }
.page-head .lead { margin: 0; }
.search { position: relative; width: 280px; max-width: 100%; }
.search .i { position: absolute; left: 13px; top: 50%; transform: translateY(-50%); color: var(--muted); }
.search .input { padding-left: 38px; }

.list-card { overflow: hidden; }
.list-table { width: 100%; border-collapse: collapse; }
.list-table th {
	text-align: left;
	font-size: 11.5px;
	font-weight: 600;
	letter-spacing: .05em;
	text-transform: uppercase;
	color: var(--muted);
	padding: 12px 18px;
	background: var(--surface-2);
	border-bottom: 1px solid var(--border);
	white-space: nowrap;
}
.list-table td { padding: 13px 18px; border-bottom: 1px solid var(--border); vertical-align: middle; }
.list-table tr:last-child td { border-bottom: 0; }
.list-table tbody tr { transition: background .12s; }
.list-table tbody tr:hover { background: var(--surface-2); }
.item-name { font-weight: 600; color: var(--text); }
.item-desc { color: var(--muted); font-size: 13px; margin-top: 1px; }
.item-link { color: var(--muted); font-size: 13.5px; word-break: break-all; }
.col-narrow { width: 1%; white-space: nowrap; }
.lock-yes { color: #b45309; display: inline-flex; align-items: center; gap: 5px; font-size: 13px; }
.lock-no { color: var(--muted); font-size: 13px; }

.empty { text-align: center; padding: 56px 24px; }
.empty-icon {
	width: 56px;
	height: 56px;
	margin: 0 auto 14px;
	display: grid;
	place-items: center;
	border-radius: 50%;
	background: var(--surface-3);
	color: var(--muted);
	font-size: 24px;
}
.empty h2 { font: 600 19px var(--display); margin: 0 0 6px; }
.empty p { color: var(--muted); margin: 0 0 18px; }

/* ---- feedback -------------------------------------------------------------------------------- */

.loading { display: flex; align-items: center; justify-content: center; gap: 10px; padding: 56px 0; color: var(--muted); }
.spinner {
	width: 18px;
	height: 18px;
	border-radius: 50%;
	border: 2px solid var(--border-strong);
	border-top-color: var(--brand);
	animation: spin .7s linear infinite;
	display: inline-block;
	flex: none;
}
.btn-primary .spinner, .btn-success .spinner { width: 15px; height: 15px; border-color: rgba(255, 255, 255, .35); border-top-color: #fff; }
.btn-secondary .spinner { width: 14px; height: 14px; }
@keyframes spin { to { transform: rotate(360deg); } }

.toast-stack {
	position: fixed;
	left: 50%;
	bottom: 24px;
	transform: translateX(-50%);
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 8px;
	z-index: 2000;
	width: max-content;
	max-width: calc(100vw - 32px);
	pointer-events: none;
}
.toast {
	display: flex;
	align-items: center;
	gap: 8px;
	padding: 10px 16px;
	border-radius: 12px;
	background: #1b2232;
	color: #fff;
	font-size: 14px;
	font-weight: 500;
	box-shadow: 0 12px 32px -8px rgba(0, 0, 0, .35);
	animation: toast-in .22s cubic-bezier(.2, .9, .3, 1.2);
}
.toast.ok { background: var(--ok); }
.toast.error { background: var(--bad); }
@keyframes toast-in { from { transform: translateY(10px) scale(.97); opacity: 0; } }

/* ---- small screens ------------------------------------------------------------------------- */

@media (max-width: 760px) {
	.grid-2, .options-grid { grid-template-columns: 1fr; }
}

@media (max-width: 600px) {
	.topbar-inner { padding: 0 14px; gap: 8px; }
	.nav a { padding: 7px 9px; }
	.nav a span { display: none; }
	.nav a .i { width: 19px; height: 19px; }
	.container { padding: 26px 14px 48px; }
	.card-body { padding: 18px; }
	.options { padding: 18px; }
	.card-foot { padding: 14px 18px; flex-wrap: wrap; }
	.card-foot .hint { display: none; }
	.card-foot .btn-lg { width: 100%; }
	.segmented { display: flex; }
	.tab { flex: 1; justify-content: center; padding: 8px 6px; font-size: 13px; }
	.tab .i { display: none; }
	.t-full { display: none; }
	.t-short { display: inline; }
	.url-prefix { max-width: 48%; font-size: 13.5px; }
	.doc-content { padding: 22px 20px; }
	.doc-toolbar .hint { display: none; }
	.code-editor { height: 340px; }
	.list-table .hide-sm { display: none; }
	.list-table td, .list-table th { padding: 12px 14px; }
	.created { padding: 30px 18px; }
	.auth { padding: 26px 20px; }
}

@media (prefers-color-scheme: dark) {
	.badge-lock, .lock-yes { color: #fbbf24; }
	.badge-lock { background: color-mix(in srgb, #f59e0b 16%, var(--surface)); }
}
