/**
 * DevLogicOrbit admin. Reads only tokens from tokens.css (a copy of the
 * website's src/styles/tokens.css — run scripts/sync-admin-assets.mjs).
 */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body {
	font-family: var(--font-sans); font-size: 15px; line-height: 1.55;
	color: var(--text); background: var(--dlo-surface);
	-webkit-font-smoothing: antialiased;
}
img, svg { display: block; max-width: 100%; }
input, button, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
a { color: var(--link); text-underline-offset: 0.2em; }
a:hover { color: var(--link-hover); }
:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; border-radius: 4px; }
code { font-family: var(--font-mono); font-size: 0.88em; background: var(--dlo-gray-100); padding: 0.1em 0.35em; border-radius: 4px; }
h1 { font-size: 1.6rem; line-height: 1.2; letter-spacing: -0.02em; color: var(--heading); }
h2, h3 { color: var(--heading); letter-spacing: -0.01em; line-height: 1.3; }

.sr-only { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip-link { position: absolute; left: 1rem; top: -100px; z-index: 10; padding: 0.6rem 1rem; background: var(--dlo-ink); color: #fff; border-radius: var(--radius); }
.skip-link:focus { top: 0.75rem; color: #fff; }
.muted { color: var(--text-muted); }
.small { font-size: 0.8125rem; }
.nowrap { white-space: nowrap; }
.wrap { word-break: break-all; white-space: normal; }

/* Logo ----------------------------------------------------------------- */
.logo { display: inline-flex; align-items: center; gap: 0.6rem; text-decoration: none; }
.logo__word { font-weight: 700; font-size: 1.15rem; letter-spacing: -0.03em; color: #F4F7FB; }
.logo__word span { color: var(--dlo-cyan); }

/* Shell ------------------------------------------------------------------ */
.shell { display: grid; grid-template-columns: 248px 1fr; min-height: 100vh; }
.sidebar {
	position: sticky; top: 0; height: 100vh; overflow-y: auto;
	display: flex; flex-direction: column; gap: 1.5rem;
	padding: 1.25rem 1rem; background: var(--dlo-ink); color: #D5DEEA;
}
.sidebar__brand { text-decoration: none; padding: 0.25rem 0.5rem; }
.sidebar__nav { list-style: none; padding: 0; display: grid; gap: 2px; }
.sidebar__nav a, .sidebar__nav span {
	display: block; padding: 0.55rem 0.75rem; border-radius: var(--radius-sm);
	color: #D5DEEA; text-decoration: none; font-weight: 500;
}
.sidebar__nav a:hover { background: var(--dlo-ink-3); color: #fff; }
.sidebar__nav a[aria-current] { background: var(--dlo-ink-3); color: #fff; box-shadow: inset 3px 0 0 var(--dlo-cyan); }
.sidebar__nav--soon span { color: var(--dlo-gray-400); font-weight: 400; }
.sidebar__heading { margin: 1.25rem 0.75rem 0.4rem; font-size: 0.7rem; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; color: var(--dlo-gray-400); }
.sidebar__site { margin-top: auto; padding: 0.55rem 0.75rem; color: var(--dlo-cyan); text-decoration: none; font-size: 0.875rem; }
.sidebar__site:hover { color: #7FE8FA; }

.main { min-width: 0; display: flex; flex-direction: column; }
.topbar {
	display: flex; align-items: center; justify-content: space-between; gap: 1rem;
	padding: 0.75rem 2rem; background: #fff; border-bottom: 1px solid var(--border);
}
.topbar__title { font-weight: 600; color: var(--text-muted); }
.topbar__user { display: flex; align-items: center; gap: 0.75rem; }
.topbar__user > a { color: var(--text); text-decoration: none; font-weight: 500; }
.content { padding: 2rem; display: grid; grid-template-columns: minmax(0, 1fr); gap: 1.75rem; align-content: start; max-width: 1200px; width: 100%; }
@media (max-width: 480px) { .content { padding: 1.25rem 1rem; } }
.content:focus { outline: none; }

@media (max-width: 860px) {
	.shell { grid-template-columns: 1fr; }
	.sidebar { position: static; height: auto; flex-direction: row; flex-wrap: wrap; align-items: center; gap: 0.5rem 1rem; }
	.sidebar nav { flex-basis: 100%; }
	.sidebar__nav { display: flex; flex-wrap: wrap; }
	.sidebar__heading, .sidebar__nav--soon { display: none; }
	.sidebar__site { margin: 0 0 0 auto; }
	.topbar, .content { padding-inline: 1rem; }
	.topbar__title { display: none; }
}

/* Page blocks ------------------------------------------------------------- */
.page-head { display: grid; gap: 0.35rem; }
.page-head--row { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: end; gap: 1rem; }
.section-title { font-size: 1rem; margin-bottom: 0.75rem; }
.section-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 0.75rem; margin-bottom: 0.75rem; }
.section-head .section-title, .section-head .panel__title { margin: 0; }
.cards { display: grid; gap: 1.25rem; grid-template-columns: repeat(auto-fit, minmax(min(100%, 380px), 1fr)); align-items: start; }
.panel { background: #fff; border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 1.5rem; display: grid; grid-template-columns: minmax(0, 1fr); gap: 1rem; align-content: start; }
.panel--narrow { max-width: 620px; }
.panel__title { font-size: 1.05rem; }

.stats { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); }
.stat { background: #fff; border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 1rem 1.25rem; }
.stat__label { font-size: 0.8125rem; color: var(--text-muted); }
.stat__value { font-size: 1.75rem; font-weight: 700; letter-spacing: -0.02em; color: var(--heading); }
.stat__value--warn { color: var(--dlo-warning); }
.stats + .small { margin-top: 0.75rem; }

.facts { display: grid; grid-template-columns: max-content 1fr; gap: 0.5rem 1.25rem; }
.facts dt { color: var(--text-muted); }
.facts dd { margin: 0; }

/* Buttons ----------------------------------------------------------------- */
.btn {
	display: inline-flex; align-items: center; justify-content: center; gap: 0.4rem;
	min-height: 40px; padding: 0.55rem 1rem; border: 1px solid transparent; border-radius: var(--radius);
	font-weight: 600; font-size: 0.9rem; line-height: 1.2; text-decoration: none; white-space: nowrap;
	transition: background var(--dur) var(--ease), border-color var(--dur) var(--ease);
}
.btn--primary { background: var(--dlo-ink); color: #fff; }
.btn--primary:hover { background: var(--dlo-orbit-navy); color: #fff; }
.btn--secondary { background: #fff; color: var(--dlo-ink); border-color: var(--border-strong); }
.btn--secondary:hover { border-color: var(--dlo-cyan-text); color: var(--dlo-ink); }
.btn--danger { background: var(--dlo-danger); color: #fff; }
.btn--danger:hover { background: #8E1B12; color: #fff; }
.btn--sm { min-height: 34px; padding: 0.35rem 0.75rem; font-size: 0.8125rem; }
.btn--block { width: 100%; }
.actions { display: flex; flex-wrap: wrap; gap: 0.6rem; align-items: center; }

/* Forms ------------------------------------------------------------------- */
.form { display: grid; gap: 1rem; }
.field { display: grid; gap: 0.35rem; border: 0; padding: 0; min-width: 0; }
.field label, .field legend { font-weight: 600; font-size: 0.875rem; color: var(--heading); }
.field legend { margin-bottom: 0.35rem; }
input[type=text], input[type=email], input[type=password], input[type=search], select, textarea {
	width: 100%; min-height: 42px; padding: 0.55rem 0.75rem;
	background: #fff; border: 1px solid var(--border-strong); border-radius: var(--radius);
}
input:focus, select:focus, textarea:focus { outline: 2px solid var(--focus); outline-offset: 0; border-color: var(--focus); }
.input--code { font-family: var(--font-mono); font-size: 1.25rem; letter-spacing: 0.3em; text-align: center; }
.hint { font-size: 0.8125rem; color: var(--text-muted); }
.choice { display: flex; gap: 0.6rem; align-items: flex-start; padding: 0.5rem 0; font-weight: 400 !important; cursor: pointer; }
.choice input { margin-top: 0.3rem; accent-color: var(--dlo-ink); }
.filters { display: flex; flex-wrap: wrap; gap: 1rem; align-items: end; }
.filters .field { min-width: 220px; }
.disclosure summary { cursor: pointer; color: var(--link); font-weight: 600; padding: 0.25rem 0; }
.disclosure[open] summary { margin-bottom: 0.75rem; }

/* Alerts & tags ----------------------------------------------------------- */
.alert { padding: 0.8rem 1rem; border-radius: var(--radius); border: 1px solid; font-size: 0.9rem; }
.alert ul { margin: 0; padding-left: 1.1rem; }
.alert--success { background: #EAF6F0; border-color: #A9D9C1; color: #0B5C3B; }
.alert--error { background: #FDEEEC; border-color: #F2B8B1; color: #8E1B12; }
.alert--warning { background: #FFF6E5; border-color: #F3D19A; color: #6E4100; }
.tag { display: inline-block; padding: 0.1em 0.55em; border-radius: var(--radius-sm); font-size: 0.75rem; font-weight: 600; background: var(--dlo-gray-100); color: var(--dlo-orbit-navy); }
.tag--ok { background: #EAF6F0; color: #0B5C3B; }
.tag--warn { background: #FFF6E5; color: #6E4100; }
.tag--off { background: var(--dlo-gray-100); color: var(--dlo-gray-500); }

/* Tables ------------------------------------------------------------------ */
.table-wrap { position: relative; overflow-x: auto; background: #fff; border: 1px solid var(--border); border-radius: var(--radius-lg); }
.table { width: 100%; border-collapse: collapse; font-size: 0.875rem; }
.table th { text-align: left; font-weight: 600; color: var(--text-muted); font-size: 0.75rem; letter-spacing: 0.06em; text-transform: uppercase; background: var(--dlo-gray-50); }
.table th, .table td { padding: 0.7rem 1rem; border-bottom: 1px solid var(--border); vertical-align: top; }
.table tr:last-child td { border-bottom: 0; }
.pager { display: flex; gap: 1rem; align-items: center; justify-content: center; }

/* MFA ---------------------------------------------------------------------- */
.steps { display: grid; gap: 1rem; padding-left: 1.25rem; }
.secret code { display: inline-block; margin: 0.5rem 0; padding: 0.6rem 0.9rem; font-size: 1.1rem; letter-spacing: 0.08em; }
.codes { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.5rem; }
.codes code { display: block; text-align: center; padding: 0.5rem; font-size: 1rem; letter-spacing: 0.06em; }

/* Bare layout (sign-in, errors) -------------------------------------------- */
.bare { min-height: 100vh; display: grid; place-content: center; gap: 1rem; padding: 2rem 1rem; background: var(--dlo-gradient-night); }
.bare__card { width: min(420px, calc(100vw - 2rem)); background: #fff; border-radius: var(--radius-lg); box-shadow: var(--shadow-lg); padding: 2rem; display: grid; gap: 1.1rem; }
.bare__brand { background: var(--dlo-ink); margin: -2rem -2rem 0.25rem; padding: 1.1rem 2rem; border-radius: var(--radius-lg) var(--radius-lg) 0 0; }
.bare__title { font-size: 1.35rem; }
.bare__alt { text-align: center; font-size: 0.875rem; }
.bare__foot { text-align: center; font-size: 0.8125rem; color: var(--dlo-gray-400); }
.bare__foot a { color: var(--dlo-cyan); }

/* Content editor (Phase 3) ----------------------------------------------- */
.btn--xs { min-height: 28px; padding: 0.2rem 0.55rem; font-size: 0.75rem; }
.btn[disabled] { opacity: 0.45; cursor: not-allowed; }
.stat--link { text-decoration: none; color: inherit; transition: border-color var(--dur) var(--ease); }
.stat--link:hover { border-color: var(--dlo-cyan-text); color: inherit; }
.stat__note { margin-top: 0.25rem; display: flex; gap: 0.35rem; flex-wrap: wrap; min-height: 1.4em; }
.editor { display: grid; gap: 1.25rem; align-items: start; }
@media (min-width: 1100px) { .editor { grid-template-columns: minmax(0, 1fr) 300px; } .editor__side { position: sticky; top: 1rem; } }
.editor__main { gap: 1.25rem; }
.editor__side { display: grid; gap: 1rem; }
.form--editor .field > label .req, .form--editor legend .req { color: var(--dlo-danger); }
.field--list, .field--group { border: 1px solid var(--border); border-radius: var(--radius); padding: 1rem; display: grid; gap: 0.9rem; }
.field--list > legend, .field--group > legend { padding: 0 0.35rem; }
.row { border: 1px solid var(--border); border-left: 3px solid var(--dlo-cyan-strong); border-radius: var(--radius); padding: 0.9rem 1rem 1rem; display: grid; gap: 0.8rem; background: var(--dlo-gray-50); }
.row--block { border-left-color: var(--dlo-orbit-navy); background: #fff; }
.row__head { display: flex; justify-content: space-between; align-items: center; gap: 0.75rem; flex-wrap: wrap; }
.row__title { font-weight: 600; font-size: 0.875rem; }
.row__ops { display: flex; gap: 0.35rem; }
.field--error > input, .field--error > textarea, .field--error > select, .field--error .icon-pick select { border-color: var(--dlo-danger); }
.row.field--error, .field--list.field--error { border-color: var(--dlo-danger); }
.field__error { color: var(--dlo-danger); font-size: 0.8125rem; font-weight: 600; }
.input--md { font-family: var(--font-mono); font-size: 0.85rem; line-height: 1.5; }
textarea { resize: vertical; }
.icon-pick { display: flex; gap: 0.6rem; align-items: center; }
.icon-pick select { flex: 1; }
.icon-pick__preview { flex: none; color: var(--dlo-cyan-text); fill: none; stroke: currentColor; stroke-width: 1.75; stroke-linecap: round; stroke-linejoin: round; }
.panel--danger { border-color: #F2B8B1; }
.changes { list-style: none; padding: 0; display: grid; gap: 0.6rem; }
.changes li { display: flex; flex-wrap: wrap; gap: 0.25rem 0.6rem; align-items: baseline; }

/* Media library & workflow (Phase 5) -------------------------------------- */
.tag--review { background: #E7F1FB; color: #1D4F86; }
.form--inline { grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); align-items: start; }
.form--inline .actions { align-self: end; padding-bottom: 1.6rem; }
input[type=file] { width: 100%; padding: 0.45rem; border: 1px dashed var(--border-strong); border-radius: var(--radius); background: var(--dlo-gray-50); }
.media-grid { list-style: none; padding: 0; display: grid; gap: 1rem; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); }
.media-tile { display: grid; gap: 0.35rem; padding: 0.6rem; background: #fff; border: 1px solid var(--border); border-radius: var(--radius-lg); text-decoration: none; color: var(--text); }
.media-tile:hover { border-color: var(--dlo-cyan-text); color: var(--text); }
.media-tile img { width: 100%; height: auto; aspect-ratio: 16 / 10; object-fit: cover; border-radius: var(--radius-sm); background: var(--dlo-gray-100); }
.media-tile__name { font-weight: 600; font-size: 0.8125rem; word-break: break-all; }
.media-tile__meta { font-size: 0.75rem; color: var(--text-muted); }
.media-preview { width: 100%; height: auto; border-radius: var(--radius); border: 1px solid var(--border); }
.image-pick { display: flex; gap: 0.75rem; align-items: center; }
.image-pick select { flex: 1; min-width: 0; }
.image-pick__thumb { flex: none; width: 96px; height: 60px; max-width: none; object-fit: cover; border-radius: var(--radius-sm); border: 1px solid var(--border); }

/* Inquiries (Phase 6) ------------------------------------------------------ */
.pipeline { display: flex; flex-wrap: wrap; gap: 0.4rem; }
.pipeline a { display: inline-flex; gap: 0.45rem; align-items: center; padding: 0.4rem 0.8rem; border-radius: var(--radius-pill); border: 1px solid var(--border); background: #fff; color: var(--text); text-decoration: none; font-size: 0.875rem; font-weight: 500; }
.pipeline a span { font-weight: 700; color: var(--text-muted); }
.pipeline a[aria-current] { background: var(--dlo-ink); border-color: var(--dlo-ink); color: #fff; }
.pipeline a[aria-current] span { color: var(--dlo-cyan); }
.pipeline__spam { margin-left: auto; }
.tag--st-new { background: #E7F1FB; color: #1D4F86; }
.tag--st-under_review, .tag--st-discussion { background: #FFF6E5; color: #6E4100; }
.tag--st-proposal_sent { background: #EEE9FB; color: #4A2F8A; }
.tag--st-won { background: #EAF6F0; color: #0B5C3B; }
.tag--st-closed { background: var(--dlo-gray-100); color: var(--dlo-gray-500); }
.tag--st-spam { background: #FDEEEC; color: #8E1B12; }
.message { white-space: normal; line-height: 1.65; padding: 1rem 1.1rem; background: var(--dlo-gray-50); border-radius: var(--radius); border: 1px solid var(--border); overflow-wrap: anywhere; }
.panel__sub { font-size: 0.9rem; }
.timeline { list-style: none; padding: 0; display: grid; gap: 0.75rem; }
.timeline li { padding-left: 0.9rem; border-left: 2px solid var(--border); }
.inline-form { display: inline; margin-left: 0.5rem; }
.editor__side .panel .form + .form { margin-top: 0.75rem; padding-top: 0.75rem; border-top: 1px solid var(--border); }

/* ---- Phase 7: integrations & payment links ---- */
.linklist { list-style: none; margin: 0 0 0.75rem; padding: 0; display: grid; gap: 0.45rem; }
.field-error { color: var(--dlo-danger); font-weight: 600; margin-top: 0.25rem; }
code.break { word-break: break-all; }
.block-gap { margin-top: 1.5rem; }
.facts dd { overflow-wrap: anywhere; }

/* ---- Phase 8: SEO overview (search-result preview) ---- */
.serp__title { color: #1A0DAB; font-size: 1rem; line-height: 1.3; }
.serp__url { color: #0A6630; font-size: 0.8125rem; margin: 0.1rem 0; word-break: break-all; }
.serp__desc { color: var(--text); font-size: 0.875rem; line-height: 1.45; max-width: 60ch; }
