/* Admin core module (dashboard, users, settings, hero, media, page text, logs, login).
   All classes are prefixed .ac- so they never clash with other modules. */

/* Login / bare pages */
.ac-bare-title { font-size: 1.5rem; margin-bottom: .25em; }
.ac-stack { display: flex; flex-direction: column; gap: 14px; margin-top: 16px; }
.ac-wide { justify-content: center; width: 100%; padding: 12px 16px; font-size: 1rem; }
.ac-bare-foot { margin: 18px 0 0; text-align: center; }
.ac-center { text-align: center; }

/* Layout helpers */
.ac-mt { margin-top: 16px; }
.ac-actions { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.ac-2col { grid-template-columns: 1fr 1fr !important; gap: 12px; }
.ac-block { display: block; }
.ac-right { float: right; }
.ac-grow { flex: 1; }
.ac-nowrap { white-space: nowrap; }
.ac-break { word-break: break-word; max-width: 520px; }
.ac-pager { display: flex; align-items: center; justify-content: center; gap: 14px; margin: 18px 0; }

/* Dashboard */
.ac-greet { margin-bottom: 18px; }
.ac-greet h2 { font-size: 1.7rem; margin-bottom: .15em; }
.ac-greet p { margin: 0; }
.ac-tiles { margin-bottom: 22px; }
.panel-body.ac-list, .panel-body.ac-check { padding: 4px 20px 8px; }
.ac-list li { display: flex; align-items: baseline; gap: 4px 12px; flex-wrap: wrap; padding: 12px 0; }
.ac-list .ac-main { flex: 1 1 260px; min-width: 0; }
.ac-list .ac-main .badge-a { margin-left: 4px; }
.ac-list .ac-right { float: none; flex: none; white-space: nowrap; }
.ac-list .ac-block { margin-top: 2px; }
.ac-check li { display: flex; align-items: center; gap: 12px; padding: 12px 0; }
.ac-dot { width: 26px; height: 26px; border-radius: 50%; border: 2px solid #DDCBB6; display: inline-grid; place-items: center; flex: none; background: #fff; }
.ac-check li.is-done .ac-dot { background: var(--sage); border-color: var(--sage); color: #fff; }
.ac-check li.is-done .ac-grow { color: var(--ink-soft); }
.ac-check .ac-dot .icon { width: 14px; height: 14px; stroke-width: 3; }

/* Users */
.ac-temp { border: 2px solid var(--honey); }
.ac-temp-row { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.ac-temp-pw { font-size: 1.35rem; padding: 6px 14px; letter-spacing: .05em; user-select: all; }
.ac-role { padding: 10px 0; border-bottom: 1px solid #F1E7DA; }
.ac-role:last-of-type { border-bottom: 0; }
.ac-checks { display: grid; gap: 8px 18px; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); }
fieldset.fs.has-err { border-color: #C2372A; }

/* Settings */
.ac-help { background: #FBF6EE; border-radius: 10px; padding: 10px 14px; }
.ac-help summary { cursor: pointer; font-weight: 700; color: var(--terracotta); }
.ac-help ol { margin: 10px 0 4px; padding-left: 20px; }
.ac-integration { display: flex; flex-direction: column; gap: 4px; }
.ac-integration p { margin: 4px 0 0; }

/* Hero editor + preview (mirrors the public .hero look, scoped) */
.ac-hero { position: relative; min-height: 340px; border-radius: 14px; overflow: hidden; background: var(--walnut); color: #fff; display: flex; align-items: flex-end; }
.ac-hero-bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.ac-hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(43,33,28,.15) 0%, rgba(43,33,28,.35) 45%, rgba(43,33,28,.86) 100%), linear-gradient(90deg, rgba(43,33,28,.55) 0%, rgba(43,33,28,0) 65%); }
.ac-hero-content { position: relative; z-index: 1; padding: 60px 32px 32px; max-width: 640px; }
.ac-hero-eyebrow { margin: 0 0 8px; font-size: .78rem; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; color: var(--honey); }
.ac-hero-h1 { margin: 0 0 10px; font-family: "Lora", Georgia, serif; font-size: clamp(1.8rem, 3.4vw, 2.8rem); line-height: 1.1; color: #FFF8EE; max-width: 14ch; text-shadow: 0 2px 30px rgba(0,0,0,.25); }
.ac-hero-lead { margin: 0; color: #F3E7DA; max-width: 36ch; font-size: 1.1rem; }
.ac-hero-btns { display: flex; flex-wrap: wrap; gap: 10px; margin: 20px 0 0; }
.ac-hero-btn { display: inline-block; padding: 10px 20px; border-radius: 999px; font-weight: 800; font-size: .95rem; }
.ac-hero-btn:empty { display: none; }
.ac-hero-btn-1 { background: var(--terracotta); color: #fff; }
.ac-hero-btn-2 { border: 2px solid rgba(255,255,255,.75); color: #fff; }
.ac-hero-tag { position: absolute; top: 12px; right: 12px; z-index: 2; background: rgba(43,33,28,.8); color: #fff; font-size: .8rem; font-weight: 700; padding: 4px 10px; border-radius: 999px; }
.ac-choice-row { display: grid; gap: 12px; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); }
.ac-current { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.ac-pick-grid { display: grid; gap: 10px; grid-template-columns: repeat(auto-fill, minmax(110px, 1fr)); margin-top: 12px; }
.ac-pick { position: relative; cursor: pointer; border-radius: 10px; overflow: hidden; border: 3px solid transparent; background: var(--sand); }
.ac-pick input { position: absolute; opacity: 0; }
.ac-pick img { display: block; width: 100%; aspect-ratio: 4/3; object-fit: cover; }
.ac-pick-none { display: grid; place-items: center; aspect-ratio: 4/3; font-weight: 700; font-size: .85rem; color: var(--ink-soft); }
.ac-pick:has(input:checked) { border-color: var(--terracotta); }
.ac-pick:has(input:focus-visible) { outline: 3px solid var(--honey); }

/* Media library */
.ac-media .media-item { display: flex; flex-direction: column; }
.ac-media .ac-noalt { outline: 2px solid #EDC7C2; }
.ac-name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ac-alt { display: flex; gap: 6px; }
.ac-alt input { flex: 1; min-width: 0; font: inherit; font-size: .82rem; padding: 6px 8px; border: 1.5px solid #DDCBB6; border-radius: 8px; }
.ac-media-actions { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 4px; }
.ac-video-thumb { display: grid; place-items: center; aspect-ratio: 4/3; background: var(--walnut); color: #fff; text-decoration: none; font-weight: 700; }
.ac-video-thumb .icon { width: 36px; height: 36px; }

/* Page text preview */
.ac-prose { line-height: 1.7; }
.ac-prose > :first-child { margin-top: 0; }
.ac-prose blockquote { margin: 1em 0; padding: .5em 1em; border-left: 4px solid var(--honey); background: #FBF6EE; }

/* Logs */
.ac-log td { font-size: .9rem; }

/* Logo choice (Settings > Logo) */
.ac-logo-pick { display: grid; gap: 14px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); margin-top: 6px; }
.ac-logo-opt { display: flex; align-items: center; gap: 16px; padding: 16px 18px; border: 2px solid var(--line); border-radius: 14px; background: #fff; cursor: pointer; }
.ac-logo-opt:has(input:checked) { border-color: var(--terracotta); background: #FFF9F0; }
.ac-logo-opt input { width: 18px; height: 18px; accent-color: var(--terracotta); flex: none; }
.ac-logo-opt img { border-radius: 18px; flex: none; }
.ac-logo-opt strong { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; color: var(--walnut); }
.ac-logo-opt small { display: block; color: var(--ink-soft); margin-top: 4px; line-height: 1.4; }

/* Test mailbox */
.ac-mailbox summary { cursor: pointer; padding: 4px 0; line-height: 1.5; }
.ac-mailbox summary .muted { font-size: .9rem; margin-left: 6px; }
.ac-mail-body { margin-top: 12px; padding: 16px 18px; background: #FBF6EE; border-radius: 10px; word-break: break-word; line-height: 1.6; }
