:root {
	color-scheme: light dark;
	--bg: #ffffff;
	--fg: #0b0d12;
	--muted: #5b6472;
	--accent: #2f6df6;
	--border: #e4e7ec;
	--danger: #b42318;
	--radius: 10px;
	--space: 1rem;
	--font: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

:root[data-theme="light"] {
	color-scheme: light;
}

:root[data-theme="dark"] {
	color-scheme: dark;
	--bg: #0b0d12;
	--fg: #f4f6fa;
	--muted: #9aa4b2;
	--accent: #6f9bff;
	--border: #232833;
	--danger: #ff9a8f;
}

* {
	box-sizing: border-box;
}

body {
	margin: 0;
	background: var(--bg);
	color: var(--fg);
	font-family: var(--font);
	line-height: 1.55;
	-webkit-font-smoothing: antialiased;
}

.shell {
	max-width: 42rem;
	margin: 0 auto;
	padding: calc(var(--space) * 3) var(--space);
}

h1 {
	margin: 0 0 0.5rem;
	font-size: clamp(1.6rem, 4vw, 2.25rem);
	letter-spacing: -0.02em;
}

.lede {
	margin: 0 0 0.75rem;
	font-size: 1.05rem;
}

.hint {
	margin: 0;
	color: var(--muted);
}

.btn {
	display: inline-flex;
	align-items: center;
	gap: 0.5rem;
	padding: 0.55rem 0.9rem;
	border: 1px solid transparent;
	border-radius: var(--radius);
	background: var(--accent);
	color: var(--on-accent, #fff);
	font: inherit;
	font-weight: 500;
	cursor: pointer;
}

.btn:hover {
	filter: brightness(1.05);
}

.btn-secondary {
	background: transparent;
	color: var(--fg);
	border-color: var(--border);
}

.card {
	padding: var(--space);
	border: 1px solid var(--border);
	border-radius: var(--radius);
	background: var(--bg);
}

.input,
.select,
.textarea {
	width: 100%;
	padding: 0.55rem 0.7rem;
	border: 1px solid var(--border);
	border-radius: var(--radius);
	background: var(--bg);
	color: var(--fg);
	font: inherit;
}

.field {
	display: grid;
	gap: 0.35rem;
	margin-bottom: var(--space);
}

.field > label {
	font-size: 0.875rem;
	color: var(--muted);
}

.stack {
	display: grid;
	gap: var(--space);
}

.row {
	display: flex;
	align-items: center;
	gap: 0.75rem;
	flex-wrap: wrap;
}

/*
 * 390px-safe. An unclamped minmax track overflows a 390px viewport once the
 * shell padding is subtracted, and nothing in the pipeline ever looked at a
 * phone-width layout, so every generated app inherited the horizontal scroll.
 * min() clamps the track to the container instead.
 */
.grid {
	display: grid;
	gap: var(--space);
	grid-template-columns: repeat(auto-fit, minmax(min(15rem, 100%), 1fr));
}

.list {
	display: grid;
	gap: 0.5rem;
	margin: 0;
	padding: 0;
	list-style: none;
}

.list-item {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 0.75rem;
	flex-wrap: wrap;
	padding: 0.7rem 0.85rem;
	border: 1px solid var(--border);
	border-radius: var(--radius);
}

.table {
	width: 100%;
	border-collapse: collapse;
}

.table th,
.table td {
	padding: 0.6rem 0.5rem;
	text-align: left;
	border-bottom: 1px solid var(--border);
}

.table th {
	font-size: 0.8125rem;
	color: var(--muted);
	font-weight: 600;
}

.empty {
	padding: calc(var(--space) * 2);
	text-align: center;
	color: var(--muted);
}

.empty-title {
	margin: 0 0 0.25rem;
	color: var(--fg);
	font-weight: 600;
}

/* Loading. Every fetch has one; without a primitive each app invented its own. */
.loading {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 0.6rem;
	padding: calc(var(--space) * 1.5);
	color: var(--muted);
}

.spinner {
	flex: none;
	width: 1.15rem;
	height: 1.15rem;
	border: 2px solid var(--border);
	border-top-color: var(--accent);
	border-radius: 50%;
	animation: fab-spin 0.7s linear infinite;
}

@keyframes fab-spin {
	to {
		transform: rotate(360deg);
	}
}

/* Placeholder for content whose shape is known before its data arrives. */
.skeleton {
	display: block;
	height: 1rem;
	border-radius: calc(var(--radius) / 2);
	background: linear-gradient(90deg, var(--border), transparent, var(--border));
	background-size: 200% 100%;
	animation: fab-shimmer 1.2s linear infinite;
}

@keyframes fab-shimmer {
	to {
		background-position: -200% 0;
	}
}

/* Error strip: a failure the user can see and retry, never a silent no-op. */
.alert {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 0.75rem;
	flex-wrap: wrap;
	padding: 0.7rem 0.85rem;
	border: 1px solid var(--border);
	border-left: 3px solid var(--muted);
	border-radius: var(--radius);
}

.alert-error {
	border-left-color: var(--danger);
	color: var(--danger);
}

.badge {
	display: inline-block;
	padding: 0.1rem 0.5rem;
	border: 1px solid var(--border);
	border-radius: 999px;
	font-size: 0.8125rem;
	color: var(--muted);
}

/*
 * The scaffold had exactly one @media rule (prefers-color-scheme) and no width
 * breakpoint at all, so the shell was a 42rem column at every size.
 * Mobile-first stays the default; these only widen it.
 */
@media (min-width: 48rem) {
	.shell {
		max-width: 52rem;
		padding: calc(var(--space) * 3) calc(var(--space) * 1.5);
	}
}

@media (min-width: 64rem) {
	.shell {
		max-width: 64rem;
	}
}

@media (prefers-reduced-motion: reduce) {
	.spinner,
	.skeleton {
		animation: none;
	}
}

:root { --font: "Figtree", ui-sans-serif, system-ui, sans-serif; --accent: #0f766e; --open: #15803d; --closed: #b42318; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.topbar { position: sticky; top: 0; z-index: 1100; background: var(--bg); border-bottom: 1px solid var(--border); }
.topbar-inner { max-width: 72rem; margin: 0 auto; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .5rem; padding: .5rem 1rem; }
.brand { display: flex; align-items: center; gap: .5rem; background: none; border: 0; font: inherit; font-weight: 800; font-size: 1.2rem; color: var(--fg); cursor: pointer; }
.nav { display: flex; flex-wrap: wrap; gap: .25rem; }
.nav button { background: none; border: 0; font: inherit; color: var(--muted); padding: .6rem .7rem; border-radius: 8px; cursor: pointer; min-height: 44px; }
.nav button[aria-current="page"] { color: var(--accent); font-weight: 700; background: color-mix(in srgb, var(--accent) 10%, transparent); }
.shell { max-width: 72rem; padding-top: 1.5rem; }
.display { font-size: clamp(2rem, 6vw, 3.4rem); line-height: 1.05; letter-spacing: -.03em; margin: 0 0 .5rem; font-weight: 800; }
.display-sm { font-size: clamp(1.8rem, 5vw, 2.6rem); }
.section-title { font-size: 1.35rem; margin: 0 0 .5rem; }
.search-row { display: flex; flex-wrap: wrap; gap: .5rem; margin: 1rem 0 .5rem; }
.search { flex: 1 1 14rem; min-height: 44px; font-size: 16px; }
.search-row .btn { min-height: 44px; }
@media (max-width: 30rem) { .search-row .btn { flex: 1 1 auto; } }
.search-msg { margin: .25rem 0 .75rem; padding: .7rem .9rem; border-radius: var(--radius); border: 1px solid var(--border); border-left: 4px solid #dc2626; background: var(--surface, var(--bg)); color: var(--fg); }
.search-hits { margin: .25rem 0 .9rem; padding: .75rem; border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface, var(--bg)); }
.search-hits-title { margin: 0 0 .5rem; font-weight: 600; color: var(--fg); }
.search-hits-list { list-style: none; margin: 0 0 .5rem; padding: 0; display: grid; gap: .4rem; }
.search-hit { display: flex; gap: .7rem; align-items: flex-start; width: 100%; min-height: 48px; padding: .6rem .75rem; text-align: left; font: inherit; color: var(--fg); background: var(--bg); border: 1px solid var(--border); border-radius: var(--radius); cursor: pointer; }
.search-hit:hover { border-color: var(--accent); }
.search-hit-kind { flex: none; font-size: .75rem; font-weight: 600; padding: .15rem .45rem; border-radius: 999px; background: var(--accent); color: var(--on-accent, #fff); margin-top: .1rem; }
.search-hit-text { display: grid; gap: .1rem; min-width: 0; overflow-wrap: anywhere; }
.search-hit-text small { color: var(--muted); }
.area-bar { display: flex; flex-wrap: wrap; gap: .4rem .9rem; align-items: center; justify-content: space-between; margin: 0 0 .6rem; padding: .55rem .8rem; border-radius: var(--radius); border: 1px solid var(--border); color: var(--fg); }
.chips { display: flex; flex-wrap: wrap; gap: .4rem; margin: .5rem 0; }
.chip { border: 1px solid var(--border); background: var(--bg); color: var(--fg); padding: .45rem .8rem; border-radius: 8px; font: inherit; cursor: pointer; min-height: 40px; }
.chip[aria-pressed="true"] { background: var(--accent); color: var(--on-accent, #fff); border-color: var(--accent); }
.notice, .callout { padding: .8rem 1rem; border-radius: var(--radius); background: color-mix(in srgb, var(--accent) 8%, transparent); margin: 1rem 0; }
.callout { display: flex; flex-wrap: wrap; gap: 1rem; align-items: center; justify-content: space-between; }
.callout p { margin: .25rem 0 0; }
.finder-grid { display: grid; gap: 1rem; margin-top: 1rem; }
@media (min-width: 60rem) { .finder-grid { grid-template-columns: 1.4fr 1fr; } .map-main { height: 620px !important; position: sticky; top: 5rem; } }
.map { width: 100%; border-radius: var(--radius); border: 1px solid var(--border); background: #e6ecea; z-index: 0; }
.map-main { height: 55vh; min-height: 320px; }
.map-small { height: 300px; }
.pin-wrap { background: none; border: 0; }
.pin { display: block; width: 26px; height: 26px; margin: 2px; border-radius: 50% 50% 50% 0; transform: rotate(-45deg); border: 3px solid #fff; box-shadow: 0 2px 6px rgba(0,0,0,.35); }
.pin-open { background: #16a34a; } .pin-closed { background: #dc2626; } .pin-draft { background: var(--accent); }
.pin-selected { outline: 3px solid var(--fg); }
.status.is-closed i { background: var(--closed); }
.brand { gap: .6rem; }
.brand-name { font-family: "EB Garamond", Georgia, serif; font-weight: 600; font-size: 1.35rem; letter-spacing: .08em; text-transform: uppercase; color: #a7588a; }
.logo-dots { flex-shrink: 0; }
@media (max-width: 26rem) { .logo-dots { width: 72px; height: 18px; } .brand-name { font-size: 1.1rem; } }
:root[data-theme="dark"] { --accent: #2dd4bf; --on-accent: #042f2e; --open: #4ade80; --closed: #f87171; --surface: #141923; --border: #2e3645; --muted: #a8b1bf; }
:root[data-theme="dark"] .card,
:root[data-theme="dark"] .dialog,
:root[data-theme="dark"] .input,
:root[data-theme="dark"] .select,
:root[data-theme="dark"] .textarea,
:root[data-theme="dark"] .kind-radio,
:root[data-theme="dark"] .chip:not([aria-pressed="true"]) { background: var(--surface); }
:root[data-theme="dark"] .input::placeholder,
:root[data-theme="dark"] .textarea::placeholder { color: #7d8797; }
:root[data-theme="dark"] .leaflet-popup-content-wrapper,
:root[data-theme="dark"] .leaflet-popup-tip { background: var(--surface); color: var(--fg); }
:root[data-theme="dark"] .dialog-backdrop { background: rgb(0 0 0 / .7); }
body, .topbar, .card, .input, .dialog { transition: background-color .2s, color .2s, border-color .2s; }
.theme-switch { display: inline-flex; gap: 2px; padding: 3px; border: 1px solid var(--border); border-radius: 999px; background: var(--bg); }
.theme-switch button { display: inline-flex; align-items: center; gap: .35rem; min-height: 36px; padding: .3rem .8rem; border: 0; border-radius: 999px;
	background: none; color: var(--muted); font: inherit; font-size: .875rem; font-weight: 600; cursor: pointer; }
.theme-switch button:hover { color: var(--fg); }
.geo-status { display: flex; align-items: flex-start; gap: .55rem; margin: 0; padding: .7rem .9rem; border-radius: var(--radius); border-left: 3px solid var(--border); background: var(--surface); line-height: 1.45; }
.geo-status.geo-found, .geo-status.geo-saved { border-left-color: var(--open); }
.geo-status.geo-multiple { border-left-color: #d97706; }
.geo-status.geo-none, .geo-status.geo-error { border-left-color: var(--danger); }
.geo-spin { width: 1rem; height: 1rem; flex: none; margin-top: .15rem; }
.geo-label { margin: 0; overflow-wrap: anywhere; }
.geo-results { display: grid; gap: .5rem; }
.geo-result { text-align: left; padding: .7rem .9rem; border: 1px solid var(--border); border-radius: var(--radius); background: var(--bg); color: var(--fg); font: inherit; cursor: pointer; overflow-wrap: anywhere; min-height: 44px; }
.geo-result.is-on { border-color: var(--accent); box-shadow: inset 0 0 0 1px var(--accent); }
.geo-actions { flex-wrap: wrap; gap: .75rem; align-items: center; }
.map.is-manual { outline: 2px dashed var(--accent); outline-offset: 2px; }
.map.is-manual .pin-wrap { cursor: grab; }
.theme-switch button[aria-pressed="true"] { background: var(--accent); color: var(--on-accent, #fff); }
@media (max-width: 47.99rem), (hover: none) and (pointer: coarse) { .theme-switch { display: none; } }
@media (prefers-reduced-motion: reduce) { body, .topbar, .card, .input, .dialog { transition: none; } }
:root[data-theme="dark"] .brand-name { color: #d58db8; }
:root[data-theme="dark"] .map { background: #1a1f28; }
:root[data-theme="dark"] .leaflet-tile-pane { filter: invert(1) hue-rotate(180deg) brightness(.9) contrast(.9); }
:root[data-theme="dark"] .leaflet-container .leaflet-control-attribution,
:root[data-theme="dark"] .leaflet-bar a { background: #1a1f28; color: #cbd5e1; }
:root[data-theme="dark"] .tag-hire { background: #3f3413; color: #fde68a; }
.status { display: inline-flex; flex-wrap: wrap; align-items: center; gap: .35rem; font-size: .9rem; }
.status i { width: 9px; height: 9px; border-radius: 50%; background: #8a94a3; }
.status.is-open i { background: var(--open); } .status.is-open strong { color: var(--open); }
.status.is-closed strong { color: var(--closed); } .status span { color: var(--muted); }
.count { color: var(--muted); margin: 0 0 .5rem; } .tnum { font-variant-numeric: tabular-nums; }
.plist { list-style: none; margin: 0; padding: 0; display: grid; gap: .5rem; }
.pitem { display: flex; border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; }
.pitem-main { flex: 1; display: grid; gap: .25rem; text-align: left; background: none; border: 0; padding: .8rem; font: inherit; color: var(--fg); cursor: pointer; }
.pitem-name { font-weight: 700; } .pitem-meta { color: var(--muted); font-size: .9rem; }
.pitem-call { display: flex; align-items: center; justify-content: center; width: 56px; color: var(--on-accent, #fff); background: var(--accent); }
.tag-hire { display: inline-block; padding: .15rem .5rem; border-radius: 6px; background: #fef3c7; color: #78350f; font-size: .85rem; font-weight: 600; width: fit-content; }
.detail { display: grid; gap: .6rem; }
.detail-title { font-size: 1.6rem; margin: 0; line-height: 1.15; }
.detail-address, .detail-desc { margin: 0; } .detail-address { color: var(--muted); }
.detail-h { margin: .8rem 0 .2rem; font-size: 1.05rem; }
.contact-row { display: flex; flex-wrap: wrap; gap: .5rem; }
.btn { min-height: 44px; text-decoration: none; } .btn:disabled { opacity: .6; cursor: default; }
.btn-call { background: var(--open); font-weight: 700; }
.btn-block { width: 100%; justify-content: center; }
.linkbtn { background: none; border: 0; padding: .4rem 0; color: var(--accent); font: inherit; font-weight: 600; cursor: pointer; text-align: left; }
.photo-strip { display: flex; gap: .5rem; overflow-x: auto; }
.photo-strip img { height: 160px; aspect-ratio: 4/3; object-fit: cover; border-radius: 8px; background: var(--border); }
.hours-table { width: 100%; border-collapse: collapse; }
.hours-table th, .hours-table td { text-align: left; padding: .35rem .25rem; border-bottom: 1px solid var(--border); font-variant-numeric: tabular-nums; }
.hours-table th { font-weight: 500; } .hours-table .is-today { font-weight: 700; color: var(--accent); }
.hiring { border-top: 1px solid var(--border); padding-top: .5rem; }
.apply { display: grid; gap: .6rem; } .apply p { margin: 0; }
.success { padding: .7rem .9rem; border-radius: var(--radius); border-left: 3px solid var(--open); background: color-mix(in srgb, var(--open) 10%, transparent); }
.job-grid, .kind-grid, .photo-grid { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fill, minmax(min(17rem, 100%), 1fr)); margin-top: 1rem; }
.job-card { display: grid; gap: .5rem; align-content: start; padding: 1rem; border: 1px solid var(--border); border-radius: var(--radius); }
.job-title { margin: 0; font-size: 1.15rem; } .job-meta, .job-snippet { margin: 0; color: var(--muted); }
.section { margin-top: 2.5rem; }
.auth { max-width: 28rem; margin: 0 auto; }
.tabs { display: flex; gap: .25rem; margin: 1rem 0; border-bottom: 1px solid var(--border); }
.tabs button { flex: 1; background: none; border: 0; border-bottom: 3px solid transparent; padding: .6rem; font: inherit; color: var(--muted); cursor: pointer; }
.tabs button[aria-selected="true"] { color: var(--accent); border-bottom-color: var(--accent); font-weight: 700; }
.kind-card { display: grid; gap: .4rem; text-align: left; padding: 1.2rem; border: 2px solid var(--border); border-radius: var(--radius); background: var(--bg); color: var(--fg); font: inherit; cursor: pointer; }
.kind-card:hover { border-color: var(--accent); } .kind-card strong { font-size: 1.15rem; } .kind-card span { color: var(--muted); }
fieldset.card { margin: 0; } fieldset legend { font-weight: 700; padding: 0 .3rem; }
.form-grid { display: grid; gap: 0 1rem; grid-template-columns: repeat(auto-fit, minmax(min(14rem, 100%), 1fr)); }
.hours-edit { display: grid; gap: .5rem; }
.hours-row { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem; padding: .4rem 0; border-bottom: 1px solid var(--border); }
.hours-day { width: 6.5rem; font-weight: 600; }
.slot { display: inline-flex; align-items: center; gap: .3rem; } .time { width: auto; }
.check { display: flex; align-items: flex-start; gap: .5rem; cursor: pointer; line-height: 1.4; }
.req { color: var(--closed, #dc2626); margin-left: .15rem; font-weight: 700; }
.opt { color: var(--muted); font-weight: 400; font-size: .875em; }
.field-error { color: var(--closed, #dc2626); font-size: .85rem; margin: .3rem 0 0; }
.input[aria-invalid="true"] { border-color: var(--closed, #dc2626); }
.pw-wrap { position: relative; display: flex; }
.pw-wrap .input { flex: 1; padding-right: 3rem; }
.pw-toggle { position: absolute; right: .25rem; top: 50%; transform: translateY(-50%); background: none; border: 0; color: var(--muted); cursor: pointer; padding: .4rem .5rem; font: inherit; font-size: .85rem; }
.pw-rules { margin: .2rem 0 .4rem; padding-left: 1.1rem; color: var(--muted); font-size: .85rem; }
.pw-rules li.ok { color: var(--open, #16a34a); }
.pw-rules li.ok::marker { content: "✓ "; }
.kind-radios { border: 0; padding: 0; margin: 0 0 1rem; display: grid; gap: .6rem; }
.kind-radios legend { font-weight: 700; margin-bottom: .5rem; }
.kind-radio { display: flex; align-items: center; gap: .6rem; padding: .85rem 1rem; border: 1px solid var(--border); border-radius: var(--radius); cursor: pointer; font-weight: 600; background: var(--bg); }
.kind-radio:hover { border-color: var(--accent); }
.kind-radio.is-on { border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent); }
.kind-radio input { accent-color: var(--accent); width: 18px; height: 18px; }
.kind-radios legend.kind-legend { display: block; margin-bottom: .9rem; padding: 0; }
.kind-title { display: block; font-size: 1.2rem; font-weight: 700; line-height: 1.3; }
.kind-lead { display: block; margin-top: .25rem; color: var(--muted); font-weight: 400; }
.kind-radios { gap: .75rem; }
.kind-radio { align-items: flex-start; gap: .9rem; padding: 1rem 1.1rem; font-weight: 400; transition: border-color .15s, background-color .15s; }
.kind-radio input { flex: none; margin: .2rem 0 0; }
.kind-radio.is-on { background: color-mix(in srgb, var(--accent) 6%, var(--bg)); }
.kind-body { display: flex; flex-direction: column; gap: .2rem; min-width: 0; }
.kind-name { font-size: 1.05rem; font-weight: 700; line-height: 1.3; }
.kind-sub { font-size: .85rem; font-weight: 600; color: var(--accent); line-height: 1.3; }
.kind-text { font-size: .925rem; color: var(--muted); line-height: 1.45; }
.two-col { display: grid; gap: 0 1rem; grid-template-columns: 1fr; }
@media (min-width: 30rem) { .two-col { grid-template-columns: 1fr 1fr; } }
.sub-legend { font-weight: 700; margin: .5rem 0 .25rem; }
.field-link { font-size: .85rem; color: var(--accent); }
.consents { border: 0; border-top: 1px solid var(--border); padding: 1rem 0 0; margin: 1rem 0 0; display: grid; gap: .6rem; }
.consents legend { font-weight: 700; padding: 0; }
.consents a { color: var(--accent); }
.consents-optional { margin-bottom: 1rem; padding: .9rem 1rem; border: 1px dashed var(--border); border-radius: var(--radius); background: color-mix(in srgb, var(--accent) 5%, transparent); }
.consents-optional legend { padding: 0 .3rem; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.btn-spin { display: inline-block; width: 1em; height: 1em; margin-right: .5rem; border: 2px solid currentColor; border-right-color: transparent; border-radius: 50%; animation: vaspin .7s linear infinite; vertical-align: -2px; }
@keyframes vaspin { to { transform: rotate(360deg); } }
.auth-switch { text-align: center; margin-top: 1rem; color: var(--muted); }
.auth-switch a { color: var(--accent); font-weight: 600; }
.welcome { max-width: 40rem; margin: 0 auto; }
.mail-state { margin: 0 0 .6rem; padding: .6rem .8rem; border-radius: var(--radius); border-left: 3px solid var(--muted); }
.mail-state.is-ok { border-left-color: var(--open); background: color-mix(in srgb, var(--open) 10%, transparent); }
.mail-state.is-wait { border-left-color: #d97706; background: color-mix(in srgb, #d97706 10%, transparent); }
.mail-state.is-bad { border-left-color: var(--closed); background: color-mix(in srgb, var(--closed) 10%, transparent); }
.settings { max-width: 40rem; margin: 1.5rem auto 0; }
.settings-list { display: grid; gap: .6rem; margin: 0; }
.settings-list div { display: grid; gap: .1rem; }
.settings-list dt { color: var(--muted); font-size: .85rem; }
.settings-list dd { margin: 0; overflow-wrap: anywhere; }
.stack-sm { display: grid; gap: .5rem; }
.sub-title { margin: .5rem 0 0; font-size: 1.05rem; }
.danger-zone { padding-top: 1rem; border-top: 1px solid var(--border); }
.btn.btn-danger { background: #dc2626; border-color: #dc2626; color: #fff; }
.btn.btn-danger:hover:not(:disabled) { background: #b91c1c; border-color: #b91c1c; }
.btn.btn-danger:disabled { opacity: .7; }
.dialog-backdrop { position: fixed; inset: 0; z-index: 1000; background: rgb(0 0 0 / .5); display: flex; align-items: flex-start; justify-content: center; padding: 1rem; overflow-y: auto; }
.dialog { width: 100%; max-width: 32rem; margin: 2rem 0; background: var(--bg); }
.del-list { margin: 0; padding-left: 1.2rem; display: grid; gap: .35rem; color: var(--muted); font-size: .92rem; }
.dialog-actions { justify-content: flex-end; flex-wrap: wrap; gap: .5rem; }
.flash { display: flex; align-items: center; justify-content: space-between; gap: .75rem; margin: 0 0 1rem; padding: .75rem 1rem; border-radius: var(--radius); border-left: 3px solid var(--open); background: color-mix(in srgb, var(--open) 12%, transparent); font-weight: 600; }
.flash-close { background: none; border: 0; font-size: 1.4rem; line-height: 1; cursor: pointer; color: inherit; min-width: 44px; min-height: 44px; }
.mail-preview { width: 100%; min-height: 34rem; border: 1px solid var(--border); border-radius: var(--radius); background: #fff; }
.legal { max-width: 46rem; margin: 0 auto; line-height: 1.6; }
.legal-note { color: var(--muted); font-style: italic; }
.kind-grid { display: grid; gap: .75rem; }
.check input { width: 18px; height: 18px; accent-color: var(--accent); }
.photo-item { margin: 0; display: grid; gap: .4rem; }
.photo-item img { width: 100%; aspect-ratio: 4/3; object-fit: cover; border-radius: 8px; background: var(--border); }
.file-btn { width: fit-content; cursor: pointer; }
.app-card { border: 1px solid var(--border); border-radius: var(--radius); padding: 1rem; display: grid; gap: .4rem; }
.app-card p { margin: 0; } .app-card blockquote { margin: 0; padding-left: .8rem; border-left: 3px solid var(--border); }
.between { justify-content: space-between; }
.foot { max-width: 72rem; margin: 2rem auto 0; padding: 1.5rem 1rem; display: flex; flex-wrap: wrap; gap: .5rem 1.5rem; justify-content: space-between; color: var(--muted); font-size: .875rem; border-top: 1px solid var(--border); }

:where(a, button, input, select, textarea):focus-visible {
	outline: 2px solid var(--accent);
	outline-offset: 2px;
}
