:root {
    --bg: #f7fafc;
    --surface: #ffffff;
    --surface-soft: #f8fbff;
    --surface-tint: #f3f8fb;
    --ink: #111827;
    --muted: #5f6f82;
    --muted-strong: #445265;
    --line: rgba(17, 24, 39, 0.08);
    --line-strong: rgba(17, 24, 39, 0.14);
    --shadow: 0 18px 42px rgba(17, 24, 39, 0.08);
    --shadow-soft: 0 10px 26px rgba(17, 24, 39, 0.05);
    --radius-xl: 24px;
    --radius-lg: 18px;
    --radius-md: 14px;
    --radius-sm: 10px;
    --header-height: 70px;
    --container: 1080px;
}

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

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font: 15px/1.55 Manrope, sans-serif;
    color: var(--ink);
    background:
        radial-gradient(circle at top left, rgba(220, 38, 38, 0.08), transparent 24%),
        radial-gradient(circle at top right, rgba(6, 214, 160, 0.12), transparent 22%),
        linear-gradient(180deg, #fbfdff 0%, #f4f8fb 100%);
}

a {
    color: inherit;
    text-decoration: none;
}

img {
    display: block;
    max-width: 100%;
}

button,
input,
textarea,
select {
    font: inherit;
}

dialog {
    border: 0;
    padding: 0;
    background: transparent;
}

[hidden] {
    display: none !important;
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip-path: inset(50%);
}

.container {
    width: min(var(--container), calc(100% - 28px));
    margin: 0 auto;
}

.narrow {
    width: min(820px, calc(100% - 28px));
}

.site-main {
    min-height: calc(100vh - var(--header-height));
}

.section {
    padding: 22px 0;
}

.section--tight {
    padding: 14px 0;
}

.stack-gap > * + * {
    margin-top: 12px;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 40;
    background: rgba(250, 252, 255, 0.88);
    border-bottom: 1px solid rgba(17, 24, 39, 0.05);
    backdrop-filter: blur(18px);
}

.site-header__inner {
    min-height: var(--header-height);
    padding: 10px 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
}

.brand-mark,
.eyebrow,
h1,
h2,
h3 {
    font-family: "Space Grotesk", sans-serif;
}

.brand-mark {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-size: 1.04rem;
    font-weight: 700;
    letter-spacing: -0.045em;
}

.brand-mark::before {
    content: "";
    width: 12px;
    height: 12px;
    border-radius: 999px;
    background: linear-gradient(135deg, var(--brand-primary), #ef4444);
    box-shadow: 0 0 0 5px rgba(220, 38, 38, 0.08);
}

.site-nav {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.site-nav a:not(.button) {
    padding: 8px 10px;
    border-radius: 0;
    color: var(--muted);
    font-size: 0.92rem;
    background: transparent;
    transition: color .18s ease;
}

.site-nav a:not(.button):hover {
    color: var(--ink);
    background: transparent;
}

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin: 0 0 10px;
    color: var(--brand-primary);
    font-size: 0.73rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.09em;
}

.eyebrow::before {
    content: "";
    width: 20px;
    height: 1px;
    background: rgba(220, 38, 38, 0.35);
}

h1,
h2,
h3 {
    margin: 0;
    color: var(--ink);
    letter-spacing: -0.05em;
    line-height: 1.03;
}

h1 {
    font-size: clamp(1.95rem, 4.4vw, 3rem);
}

h2 {
    font-size: clamp(1.2rem, 2.2vw, 1.7rem);
}

h3 {
    font-size: 1rem;
}

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

.shell-card,
.tool-card,
.mini-card,
.blog-card,
.prose-card,
.admin-sidebar,
.admin-content,
.login-shell,
.login-card {
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(255, 255, 255, 0.9));
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-soft);
}

.tool-card,
.mini-card,
.blog-card,
.prose-card,
.admin-content,
.login-card {
    padding: 16px;
}

.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 46px;
    padding: 0 16px;
    border: 0;
    border-radius: 14px;
    background: var(--brand-primary);
    color: #fff;
    font-weight: 700;
    cursor: pointer;
    box-shadow: 0 12px 24px color-mix(in srgb, var(--brand-primary) 18%, transparent);
}

.button--ghost {
    background: rgba(17, 24, 39, 0.04);
    border: 1px solid var(--line);
    color: var(--ink);
    box-shadow: none;
}

.button--soft {
    background: rgba(6, 214, 160, 0.14);
    border: 1px solid rgba(6, 214, 160, 0.18);
    color: var(--ink);
    box-shadow: none;
}

.pill,
.flash-pill {
    display: inline-flex;
    align-items: center;
    min-height: 28px;
    padding: 0 10px;
    border-radius: 999px;
    border: 1px solid rgba(17, 24, 39, 0.08);
    background: rgba(17, 24, 39, 0.03);
    color: var(--muted-strong);
    font-size: 0.76rem;
    font-weight: 700;
}

.flash-pill--success {
    background: rgba(6, 214, 160, 0.14);
    color: #13695d;
}

.flash-pill--error {
    background: rgba(220, 38, 38, 0.1);
    color: #991b1b;
}

.hero {
    padding: 18px 0 10px;
}

.hero-stack,
.result-grid,
.admin-grid,
.admin-grid--wide,
.admin-shell {
    display: grid;
    gap: 14px;
}

.hero-panel {
    padding: 22px;
    background:
        radial-gradient(circle at top right, rgba(6, 214, 160, 0.08), transparent 32%),
        linear-gradient(180deg, rgba(255, 255, 255, 0.99), rgba(255, 255, 255, 0.92));
}

.hero-panel h1 {
    max-width: 14ch;
    margin-bottom: 10px;
}

.hero-copy {
    max-width: 62ch;
    margin-bottom: 14px;
    color: var(--muted-strong);
}

.tool-form {
    display: grid;
    gap: 12px;
}

.tool-form input,
.admin-content input,
.admin-content textarea,
.admin-content select,
.login-card input {
    width: 100%;
    min-height: 46px;
    padding: 12px 14px;
    border: 1px solid rgba(17, 24, 39, 0.1);
    border-radius: 14px;
    background: #fff;
    color: var(--ink);
}

.tool-input-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto auto;
    gap: 10px;
}

.tool-preview-card,
.tool-status-card,
.hero-support,
.result-status-card,
.result-side__block {
    border: 1px solid rgba(17, 24, 39, 0.08);
    border-radius: 16px;
    background: rgba(247, 250, 252, 0.86);
    padding: 14px;
}

.tool-preview-card {
    display: grid;
    grid-template-columns: 84px minmax(0, 1fr);
    gap: 12px;
    align-items: center;
}

.tool-preview-card img {
    width: 84px;
    height: 84px;
    object-fit: cover;
    border-radius: 12px;
}

.tool-preview-card h3,
.tool-status-card strong,
.result-status-card strong {
    display: block;
    margin-bottom: 4px;
}

.hero-support {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
}

.hero-support__copy {
    display: grid;
    gap: 4px;
}

.hero-support__meta {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.hero-speedline {
    color: var(--muted-strong);
    font-size: 0.92rem;
}

.benefit-row,
.step-row,
.card-grid {
    display: grid;
    gap: 12px;
}

.benefit-row,
.step-row {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.benefit-card,
.step-card {
    padding: 15px;
}

.benefit-card__icon,
.step-card__number {
    width: 34px;
    height: 34px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 10px;
    border-radius: 11px;
    background: linear-gradient(135deg, rgba(220, 38, 38, 0.12), rgba(6, 214, 160, 0.18));
    color: var(--ink);
    font-size: 0.84rem;
    font-weight: 800;
}

.benefit-card h3,
.step-card h3 {
    margin-bottom: 6px;
}

.section-head {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 14px;
    margin-bottom: 12px;
}

.section-head p {
    max-width: 52ch;
}

.guides-shell {
    display: grid;
    gap: 12px;
    grid-template-columns: minmax(0, 1fr) 300px;
}

.guides-panel,
.summary-panel {
    padding: 16px;
}

.card-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.blog-card {
    display: grid;
    gap: 8px;
    padding: 14px;
}

.list-stack {
    display: grid;
}

.list-link,
.table-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 10px 0;
    border-bottom: 1px solid rgba(17, 24, 39, 0.08);
}

.list-link:last-child,
.table-row:last-child {
    border-bottom: 0;
}

.list-link span:last-child,
.table-row span:last-child {
    color: var(--muted);
    font-size: 0.84rem;
}

.faq-list {
    display: grid;
    gap: 8px;
}

.faq-item {
    padding: 10px 14px;
    border: 1px solid rgba(17, 24, 39, 0.08);
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.78);
}

.faq-item summary {
    position: relative;
    padding-right: 22px;
    cursor: pointer;
    list-style: none;
    font-weight: 700;
}

.faq-item summary::after {
    content: "+";
    position: absolute;
    right: 0;
    top: 0;
    color: var(--muted);
}

.faq-item[open] summary::after {
    content: "-";
}

.faq-item div,
.faq-item p {
    margin-top: 8px;
    color: var(--muted);
    font-size: 0.94rem;
}

.prose {
    color: var(--ink);
}

.prose p,
.prose li {
    color: var(--muted);
}

.prose > * + * {
    margin-top: 14px;
}

.prose ul,
.prose ol {
    padding-left: 18px;
}

.prose img,
.feature-image,
.result-thumb {
    border-radius: 14px;
}

.prose a,
.list-link,
.blog-card a {
    color: var(--brand-primary);
    text-decoration: none;
}

.prose a:hover,
.list-link:hover,
.blog-card a:hover {
    color: var(--brand-secondary);
    text-decoration: none;
}

.blog-layout {
    display: grid;
    gap: 28px;
    align-items: start;
}

.blog-layout--with-sidebar {
    grid-template-columns: minmax(0, 1fr) 320px;
}

.blog-layout--single {
    grid-template-columns: minmax(0, 860px);
    justify-content: center;
}

.blog-post-card,
.blog-related-card {
    padding: 30px 32px;
}

.blog-related-card {
    gap: 14px;
    margin-top: 22px;
}

.blog-related-card--bottom {
    margin-top: 0;
}

.blog-related-card .list-stack {
    margin-top: 12px;
}

.blog-post-card .lead {
    margin-top: 10px;
    margin-bottom: 18px;
}

.blog-post-card .feature-image {
    margin: 18px 0 22px;
}

.blog-toc {
    margin: 6px 0 24px;
    padding: 18px 20px;
    border: 1px solid var(--line);
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.74);
}

.blog-toc__summary {
    position: relative;
    cursor: pointer;
    list-style: none;
}

.blog-toc__summary::-webkit-details-marker {
    display: none;
}

.blog-toc__summary::after {
    content: "+";
    position: absolute;
    right: 20px;
    top: 22px;
    color: var(--brand-primary);
    font-size: 1.15rem;
    font-weight: 700;
}

.blog-toc[open] .blog-toc__summary::after {
    content: "−";
}

.blog-toc__head {
    position: relative;
    padding-right: 26px;
    margin-bottom: 10px;
}

.blog-toc__head h2 {
    font-size: 1.15rem;
    margin-bottom: 0;
}

.blog-toc__list {
    display: grid;
    gap: 8px;
    padding-top: 4px;
}

.blog-toc__link {
    display: block;
    color: var(--brand-primary);
    text-decoration: none;
    font-weight: 700;
}

.blog-toc__link--h3 {
    padding-left: 16px;
    font-weight: 600;
    color: var(--muted-strong);
}

.blog-toc__link:hover {
    color: var(--brand-secondary);
}

.blog-post-card .faq-list {
    margin-top: 14px;
}

.blog-post-card p,
.blog-post-card li {
    color: var(--muted-strong);
}

.blog-post-card a,
.blog-related-card a {
    color: var(--brand-primary);
    text-decoration: none;
    transition: color .18s ease;
}

.blog-post-card a:hover,
.blog-related-card a:hover {
    color: var(--brand-secondary);
    text-decoration: none;
}

.blog-related-card h3 {
    margin-bottom: 4px;
}

.result-grid {
    grid-template-columns: 270px minmax(0, 1fr) 230px;
    align-items: start;
}

.result-meta,
.status-panel,
.result-side {
    padding: 16px;
}

.result-meta .result-thumb {
    width: 100%;
    aspect-ratio: 16 / 9;
    object-fit: cover;
    margin: 0 0 14px;
}

.result-meta__title {
    margin-bottom: 6px;
}

.meta-stack {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-top: 10px;
}

.meta-list {
    display: grid;
    gap: 7px;
    margin-top: 14px;
}

.meta-row {
    display: flex;
    justify-content: space-between;
    gap: 10px;
    color: var(--muted);
    font-size: 0.88rem;
}

.status-panel {
    background:
        radial-gradient(circle at top right, rgba(6, 214, 160, 0.1), transparent 28%),
        linear-gradient(180deg, rgba(255, 255, 255, 0.99), rgba(255, 255, 255, 0.92));
}

.result-status-card {
    padding: 18px;
}

.progress {
    width: 100%;
    height: 10px;
    margin: 12px 0 8px;
    border-radius: 999px;
    overflow: hidden;
    background: rgba(17, 24, 39, 0.08);
}

.progress span {
    display: block;
    height: 100%;
    background: linear-gradient(90deg, var(--brand-primary), #06b6d4);
}

.status-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-top: 12px;
}

.result-side {
    display: grid;
    gap: 12px;
}

.ad-slot {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: fit-content;
    max-width: 100%;
    min-height: 0;
    padding: 8px;
    border: 1px dashed rgba(17, 24, 39, 0.14);
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.7);
    text-align: center;
    margin: 0 auto;
}

.ad-slot--desktop {
    display: block;
}

.ad-slot--mobile {
    display: none;
}

.site-footer {
    margin-top: 18px;
    border-top: 1px solid rgba(17, 24, 39, 0.05);
    background: rgba(250, 252, 255, 0.76);
}

.site-footer__inner {
    padding: 16px 0 22px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    color: var(--muted);
    font-size: 0.9rem;
}

.site-footer nav {
    display: flex;
    gap: 14px;
    flex-wrap: wrap;
}

.login-body,
.admin-body {
    background:
        radial-gradient(circle at top left, rgba(220, 38, 38, 0.05), transparent 28%),
        #f3f7fb;
}

.login-shell {
    width: min(440px, calc(100% - 28px));
    margin: 56px auto;
    padding: 18px;
}

.login-card {
    display: grid;
    gap: 12px;
    padding: 20px;
}

.error-text {
    color: color-mix(in srgb, var(--brand-primary) 72%, #0f172a);
    font-size: 0.92rem;
}

.admin-topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 12px 18px;
    border-bottom: 1px solid rgba(17, 24, 39, 0.06);
    background: rgba(255, 255, 255, 0.86);
    backdrop-filter: blur(16px);
}

.admin-topbar__actions {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.admin-shell {
    min-height: calc(100vh - 70px);
    padding: 14px;
    grid-template-columns: 248px minmax(0, 1fr);
}

.admin-sidebar {
    position: sticky;
    top: 84px;
    max-height: calc(100vh - 98px);
    overflow: auto;
    padding: 14px;
    display: grid;
    align-content: start;
    gap: 12px;
}

.admin-sidebar__brand {
    padding: 2px 2px 10px;
    border-bottom: 1px solid rgba(17, 24, 39, 0.08);
}

.admin-sidebar__brand p {
    margin-top: 4px;
    font-size: 0.86rem;
}

.admin-nav-group {
    display: grid;
    gap: 5px;
}

.admin-nav-label {
    padding: 3px 2px 4px;
    color: var(--muted);
    font-size: 0.7rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.admin-nav-link {
    display: block;
    padding: 9px 11px;
    border-radius: 11px;
    color: var(--muted-strong);
    font-size: 0.92rem;
    transition: background-color .18s ease, color .18s ease;
}

.admin-nav-link:hover {
    background: rgba(17, 24, 39, 0.04);
    color: var(--ink);
}

.admin-nav-link.is-active {
    background: linear-gradient(135deg, #ff1b0a, #ff5a44);
    color: #fff;
    font-weight: 700;
    box-shadow: 0 10px 22px rgba(255, 27, 10, 0.18);
}

.admin-content {
    padding: 16px;
}

.admin-stat-grid,
.form-grid,
.compact-grid {
    display: grid;
    gap: 12px;
}

.admin-stat-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    margin-bottom: 14px;
}

.admin-stat-card,
.admin-form-section,
.faq-builder-item {
    padding: 14px;
    border: 1px solid rgba(17, 24, 39, 0.08);
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.72);
}

.admin-stat-card strong {
    display: block;
    font-size: 1.4rem;
    line-height: 1;
    margin-bottom: 4px;
}

.admin-form-sections,
.admin-form-card,
.admin-list-card,
.settings-grid,
.faq-builder-card,
.editor-wrap {
    display: grid;
    gap: 12px;
}

.form-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.form-grid .full {
    grid-column: 1 / -1;
}

.compact-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.field-stack {
    display: grid;
    gap: 6px;
}

.field-stack span,
.form-grid label span,
.mini-card label span {
    color: var(--muted);
    font-size: 0.78rem;
    font-weight: 700;
}

.ceditor-editor,
.faq-builder-item,
.table-card {
    display: grid;
    gap: 12px;
}

.ceditor-toolbar,
.ceditor-image-tools {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    padding: 10px;
    border: 1px solid rgba(17, 24, 39, 0.08);
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.72);
}

.ceditor-toolbar button,
.ceditor-toolbar__upload span,
.ceditor-image-tools button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 34px;
    padding: 0 10px;
    border: 1px solid rgba(17, 24, 39, 0.08);
    border-radius: 10px;
    background: #fff;
    color: var(--ink);
    cursor: pointer;
}

.ceditor-toolbar__upload {
    position: relative;
    overflow: hidden;
}

.ceditor-toolbar__upload input {
    position: absolute;
    inset: 0;
    opacity: 0;
    cursor: pointer;
}

.ceditor-surface {
    min-height: 300px;
}

@media (max-width: 1080px) {
    .guides-shell,
    .result-grid,
    .admin-shell {
        grid-template-columns: 1fr;
    }

    .blog-layout {
        grid-template-columns: 1fr;
    }

    .admin-sidebar {
        position: static;
        max-height: none;
    }
}

@media (max-width: 760px) {
    .ad-slot--desktop {
        display: none;
    }

    .ad-slot--mobile {
        display: block;
    }

    .benefit-row,
    .step-row,
    .card-grid,
    .admin-stat-grid,
    .form-grid,
    .compact-grid,
    .tool-input-row {
        grid-template-columns: 1fr;
    }

    .site-header__inner,
    .site-footer__inner,
    .admin-topbar {
        flex-direction: column;
        align-items: flex-start;
    }

    .site-nav {
        width: 100%;
    }
}



/* === Landing / result refinement patch === */
:root {
    --ytw-red: var(--brand-primary);
    --ytw-green: var(--brand-secondary);
    --ytw-text: #171717;
    --ytw-muted: #64748b;
    --ytw-line: rgba(23, 23, 23, 0.08);
    --ytw-bg: #ffffff;
}

body {
    background: #f6f7f8;
    color: var(--ytw-text);
}

.site-header {
    position: relative;
    top: auto;
    background: rgba(255,255,255,0.96);
    border-bottom: 1px solid rgba(0,0,0,0.05);
    backdrop-filter: blur(12px);
}

.site-header__inner {
    min-height: 86px;
    padding: 14px 0;
}

.brand-logo {
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

.brand-logo img {
    height: 56px;
    width: auto;
}

.brand-logo__name {
    color: #0f172a;
    font-family: "Space Grotesk", sans-serif;
    font-size: 1.02rem;
    font-weight: 700;
    letter-spacing: -0.03em;
    white-space: nowrap;
}

.site-nav {
    gap: 6px;
}

.site-nav a {
    font-weight: 600;
}

.site-nav a:not(.site-nav__admin) {
    padding: 8px 12px;
    border-radius: 0;
    color: #3f3f46;
    background: transparent;
}

.site-nav__admin {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 40px;
    padding: 0 14px;
    border-radius: 999px;
    border: 1px solid rgba(0,0,0,0.08);
    color: #111827;
    background: #fff;
    font-weight: 700;
}

.hero--single {
    padding: 18px 0 8px;
}

.hero-stack--single {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    max-width: var(--container);
    width: 100%;
    margin: 0 auto;
    text-align: center;
    justify-items: center;
}

.hero-copy--center {
    max-width: 720px;
    margin: 0 auto 10px;
}

.eyebrow--red {
    color: var(--ytw-red);
}

.eyebrow--red::before {
    background: color-mix(in srgb, var(--brand-primary) 35%, transparent);
}

.hero-copy--center h1 {
    font-size: 28px;
    font-weight: 800;
    letter-spacing: -0.04em;
    line-height: 1.1;
}

.hero-copy__lead {
    max-width: 700px;
    margin: 6px auto 0;
    font-size: 14px;
    line-height: 1.55;
    color: var(--ytw-muted);
}

.hero-stack--single .hero-tool-card {
    display: block;
    width: 100%;
    max-width: 100%;
    margin: 0 auto;
    padding: 14px;
    border-radius: 16px;
    border: 1px solid rgba(0,0,0,0.07);
    box-shadow: 0 14px 28px rgba(0,0,0,0.05);
    background: linear-gradient(180deg, rgba(255,255,255,0.98), rgba(255,255,255,0.93));
}

.tool-form--inline {
    display: grid;
    gap: 10px;
}

.tool-form--inline .tool-input-row--inline {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 180px;
    gap: 8px;
    width: min(760px, 100%);
    margin: 0 auto;
}

.tool-form--inline input[type="url"] {
    min-height: 48px;
    padding: 0 15px;
    font-size: 14px;
    border-radius: 10px;
}

.tool-form--inline .button {
    min-height: 48px;
    padding: 0 16px;
    font-size: 14px;
    border-radius: 10px;
    box-shadow: 0 8px 18px color-mix(in srgb, var(--brand-primary) 16%, transparent);
}

.tool-form--stack .tool-input-row--stack {
    display: block;
}

.tool-form--stack input[type="url"] {
    width: 100%;
    min-height: 58px;
    padding: 0 18px;
    border-radius: 16px;
    border: 1px solid rgba(0,0,0,0.12);
    background: #fff;
    color: #111827;
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.7);
}

.tool-form--stack input[type="url"]:focus {
    outline: none;
    border-color: color-mix(in srgb, var(--brand-primary) 45%, transparent);
    box-shadow: 0 0 0 4px color-mix(in srgb, var(--brand-primary) 9%, transparent);
}

.tool-button-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin-top: 12px;
}

.button {
    min-height: 50px;
    border-radius: 14px;
    background: var(--ytw-red);
    box-shadow: 0 10px 24px color-mix(in srgb, var(--brand-primary) 18%, transparent);
}

.button--soft {
    background: var(--ytw-green);
    border: 0;
    color: #062c20;
    box-shadow: 0 10px 24px color-mix(in srgb, var(--brand-secondary) 18%, transparent);
}

.button--ghost {
    background: #fff;
    border: 1px solid rgba(0,0,0,0.08);
    color: #111827;
    box-shadow: none;
}

.hero-speedline {
    max-width: 760px;
    margin: 9px auto 0;
    font-size: 13px;
    color: #6b7280;
}

.tool-feedback--stack {
    width: min(760px, 100%);
    margin: 14px auto 0;
    display: grid;
    gap: 12px;
}

.wav-process-inline {
    margin-top: 10px;
    padding: 8px 0 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
    text-align: center;
}

.tool-preview-card,
.tool-status-card {
    text-align: left;
    padding: 14px;
    border-radius: 18px;
    border: 1px solid rgba(0,0,0,0.08);
    background: #fbfbfc;
}

.tool-preview-card img,
.result-thumb {
    width: 100%;
    border-radius: 16px;
    aspect-ratio: 16 / 9;
    object-fit: cover;
}

.home-guide-card__thumb-link {
    display: block;
}

.home-guide-card__thumb {
    width: 100%;
    aspect-ratio: 16 / 9;
    object-fit: cover;
    border-radius: 14px;
    margin-bottom: 8px;
}

.tool-preview-card h3 {
    margin-top: 12px;
    font-size: 1.05rem;
}

.ad-slot-wrap {
    margin-top: 12px;
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    text-align: center;
}

.ad-slot > * {
    max-width: 100%;
    margin-left: auto;
    margin-right: auto;
}

.ad-slot iframe,
.ad-slot img,
.ad-slot ins,
.ad-slot a {
    display: block;
    max-width: 100%;
    margin-left: auto;
    margin-right: auto;
}

.section--tight {
    padding: 10px 0;
}

.section-head--compact {
    margin-bottom: 10px;
}

.section-head--compact h2 {
    font-size: 22px;
    letter-spacing: -0.03em;
}

.benefit-row--compact,
.step-row--compact {
    gap: 12px;
}

.benefit-card--compact,
.step-card,
.blog-card--compact,
.result-support-card {
    padding: 14px;
    border-radius: 16px;
}

.benefit-card--compact h3,
.step-card h3,
.blog-card--compact h3 {
    margin-bottom: 6px;
}

.guide-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
}

.blog-card--compact p {
    margin-top: 8px;
}

.text-link {
    font-weight: 700;
    color: var(--ytw-red);
}

.faq-list--compact {
    display: grid;
    gap: 10px;
}

.faq-item {
    border-radius: 16px;
    border: 1px solid rgba(0,0,0,0.08);
    background: rgba(255,255,255,0.96);
    box-shadow: 0 8px 20px rgba(0,0,0,0.03);
    overflow: hidden;
}

.faq-item summary {
    list-style: none;
    cursor: pointer;
    padding: 13px 14px;
    font-weight: 700;
    color: #111827;
}

.faq-item .prose {
    padding: 0 14px 14px;
}

.result-page {
    padding-top: 14px;
}

.result-stack {
    padding: 18px;
    text-align: center;
}

.result-meta__title--center {
    max-width: 760px;
    margin: 12px auto 0;
    font-size: 20px;
    font-weight: 800;
    line-height: 1.18;
    letter-spacing: -0.04em;
    color: #0f2b63;
}

.result-thumb-wrap--center {
    width: min(320px, 100%);
    margin: 10px auto 0;
}

.result-pills {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 8px;
    margin: 12px 0 0;
}

.result-status-card--stack {
    width: min(420px, 100%);
    margin: 10px auto 0;
    padding: 0;
    border-radius: 18px;
    text-align: center;
}

.progress {
    width: 100%;
    margin: 10px auto 6px;
    height: 6px;
    border-radius: 999px;
    background: rgba(0,0,0,0.08);
    overflow: hidden;
}

.progress span {
    display: block;
    height: 100%;
    border-radius: inherit;
    background: linear-gradient(90deg, var(--brand-primary), color-mix(in srgb, var(--brand-primary) 72%, white));
}

.status-actions--center {
    margin-top: 12px;
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 10px;
}

.status-actions--center .button,
.status-actions--center .button--ghost {
    min-width: 180px;
    min-height: 46px;
    padding: 0 16px;
    border-radius: 10px;
    font-size: 14px;
}

.result-bottom-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}

.list-stack {
    display: grid;
    gap: 10px;
}

.list-link {
    display: flex;
    justify-content: space-between;
    gap: 10px;
    padding: 12px 14px;
    border-radius: 14px;
    background: #fbfbfc;
    border: 1px solid rgba(0,0,0,0.06);
    font-weight: 600;
}

.list-link span:last-child {
    color: #64748b;
    font-size: 0.85rem;
}

.site-footer {
    margin-top: 28px;
    border-top: 1px solid rgba(0,0,0,0.06);
    background: rgba(255,255,255,0.85);
}

.site-footer__inner {
    min-height: 74px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 14px 0;
}

.site-footer nav {
    display: flex;
    gap: 14px;
    flex-wrap: wrap;
}

@media (max-width: 900px) {
    .site-header__inner {
        flex-direction: column;
        align-items: flex-start;
    }

    .brand-logo img {
        height: 48px;
    }

    .brand-logo__name {
        font-size: 0.95rem;
    }

    .guide-grid,
    .benefit-row,
    .step-row,
    .result-bottom-grid {
        grid-template-columns: 1fr;
    }

    .tool-button-row {
        grid-template-columns: 1fr;
    }

    .site-footer__inner {
        flex-direction: column;
        align-items: flex-start;
    }
}

@media (max-width: 640px) {
    .container {
        width: min(var(--container), calc(100% - 20px));
    }

    .hero--single {
        padding-top: 22px;
    }

    .tool-form--inline .tool-input-row--inline {
        grid-template-columns: 1fr;
    }

    .hero-tool-card,
    .result-stack {
        padding: 14px;
        border-radius: 18px;
    }

    .site-nav {
        gap: 4px;
    }

    .site-nav a:not(.site-nav__admin) {
        padding: 7px 10px;
        font-size: 0.9rem;
    }

    .site-nav__admin {
        min-height: 36px;
        padding: 0 12px;
    }

    .hero-copy--center h1 {
        font-size: 24px;
    }

    .result-thumb-wrap--center {
        width: min(100%, 300px);
    }

    .result-meta__title--center {
        font-size: 18px;
    }

    .status-actions--center .button,
    .status-actions--center .button--ghost {
        min-width: 100%;
    }
}

.wav-process-eyebrow {
    justify-content: center;
}

.wav-process-eyebrow::before {
    display: none;
}

.wav-process-thumb-wrap {
    width: min(420px, 100%);
    margin: 6px auto 0;
}

.wav-process-thumb {
    width: 100%;
    aspect-ratio: 16 / 9;
    object-fit: cover;
    border-radius: 18px;
}

.wav-process-title {
    max-width: 760px;
    margin: 4px auto 0;
    font-size: 1.1rem;
    line-height: 1.28;
}

.wav-process-status {
    margin-top: 8px;
    font-size: 0.95rem;
    color: #64748b;
}

.wav-process-progress {
    width: min(560px, 100%);
    margin: 10px auto 0;
}

.download-progress-block {
    display: grid;
    gap: 8px;
}

.download-progress-track {
    height: 8px;
    border-radius: 999px;
    overflow: hidden;
    background: rgba(0, 0, 0, 0.08);
}

.download-progress-track span {
    display: block;
    height: 100%;
    background: var(--ytw-red);
    border-radius: inherit;
}

.wav-process-note {
    margin-top: 10px;
    font-size: 0.9rem;
    font-weight: 600;
}

.wav-process-note a {
    color: #4b5563;
}

.wav-process-actions {
    margin-top: 12px;
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 10px;
}

.button--brand-green {
    background: var(--ytw-green);
    color: #062c20;
    box-shadow: 0 10px 24px color-mix(in srgb, var(--brand-secondary) 20%, transparent);
}

.button--brand-red {
    background: var(--ytw-red);
    color: #fff;
    box-shadow: 0 10px 24px color-mix(in srgb, var(--brand-primary) 20%, transparent);
}

/* Reference-style admin + auth */
.admin-page-body,
.admin-page-body button,
.admin-page-body input,
.admin-page-body textarea,
.admin-page-body select {
    font-family: "Plus Jakarta Sans", sans-serif;
}

.admin-page-body {
    background: #f9fafb;
}

.admin-main {
    min-height: auto;
}

.admin-panel-section {
    padding-top: 24px;
    padding-bottom: 30px;
}

.admin-shell-container {
    width: min(1320px, calc(100% - 28px));
}

.admin-toolbar-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    margin-bottom: 12px;
}

.admin-toolbar-actions {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.admin-toolbar-link {
    color: var(--brand-primary);
    font-size: 14px;
    font-weight: 600;
    line-height: 1;
}

.admin-toolbar-link:hover {
    text-decoration: underline;
    text-underline-offset: 3px;
}

.admin-toolbar-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    background: #fff;
    color: var(--brand-primary);
    box-shadow: 0 8px 20px rgba(15, 23, 42, 0.05);
    transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}

.admin-toolbar-icon:hover {
    transform: translateY(-1px);
    border-color: color-mix(in srgb, var(--brand-primary) 22%, #e5e7eb);
    box-shadow: 0 12px 24px rgba(15, 23, 42, 0.08);
}

.admin-toolbar-icon svg {
    width: 18px;
    height: 18px;
    stroke: currentColor;
    stroke-width: 2;
    fill: none;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.admin-brand-mark img {
    height: 42px;
    width: auto;
}

.admin-page-grid,
.admin-page-grid-dashboard,
.admin-page-grid-inner {
    display: grid;
    grid-template-columns: 252px minmax(0, 1fr);
    gap: 18px;
    align-items: start;
}

.admin-menu-card,
.admin-page-panel,
.admin-activity-card,
.admin-page-content > .shell-card,
.admin-page-content > .mini-card,
.admin-page-content .admin-stat-card,
.admin-page-content .mini-card,
.admin-page-content .shell-card {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 14px;
    box-shadow: 0 10px 30px rgba(15, 23, 42, 0.05);
}

.admin-page-panel,
.admin-activity-card {
    padding: 16px 18px;
}

.admin-menu-card {
    padding: 10px;
    position: sticky;
    top: 18px;
}

.admin-menu-head {
    padding: 4px 6px 10px;
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 10px;
}

.admin-menu-head h1 {
    margin: 0;
    color: #0a1a3a;
    font-size: 18px;
    letter-spacing: -0.02em;
}

.admin-menu-head__link {
    color: var(--brand-primary);
    font-size: 12px;
    font-weight: 600;
    line-height: 1;
}

.admin-menu-head__link.is-active {
    text-decoration: underline;
    text-underline-offset: 2px;
}

.admin-page-nav {
    display: grid;
    gap: 6px;
}

.admin-page-nav a {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    border-radius: 10px;
    color: #0a1a3a;
    font-weight: 600;
}

.admin-page-nav a.active {
    background: linear-gradient(135deg, #ff1b0a, #ff5a44);
    color: #fff;
    box-shadow: 0 10px 22px rgba(255, 27, 10, 0.18);
}

.admin-page-content {
    display: grid;
    gap: 14px;
}

.admin-page-content .section-head {
    margin-bottom: 0;
}

.admin-page-content .section-head h1 {
    color: #0a1a3a;
    font-size: 28px;
    letter-spacing: -0.03em;
}

.admin-page-content .eyebrow {
    color: var(--ytw-red);
}

.admin-page-content .mini-card,
.admin-page-content .shell-card,
.admin-page-content .admin-content,
.admin-page-content .admin-list-card,
.admin-page-content .admin-form-card {
    padding: 16px 18px;
}

.admin-grid,
.admin-grid--wide {
    grid-template-columns: 320px minmax(0, 1fr);
    gap: 14px;
}

.admin-grid--wide {
    grid-template-columns: 320px minmax(0, 1fr);
}

.admin-stat-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;
}

.admin-stat-card {
    padding: 14px 16px;
}

.admin-stat-card strong {
    display: block;
    font-size: 17px;
    color: #0a1a3a;
    margin-bottom: 2px;
}

.admin-stat-card span {
    color: #6b7280;
}

.admin-form-section,
.faq-builder-item {
    padding: 14px;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    background: #fff;
    box-shadow: none;
}

.admin-form-section__head {
    display: grid;
    gap: 4px;
    margin-bottom: 10px;
}

.admin-form-section__head h2,
.admin-form-section__head h3 {
    margin: 0;
    color: #0a1a3a;
    font-size: 15px;
}

.admin-form-section__head p,
.admin-entry__meta,
.table-row span:last-child,
.admin-page-content p {
    color: #6b7280;
}

.admin-form-sections,
.admin-form-card,
.admin-list-card,
.settings-grid,
.faq-builder-card,
.editor-wrap {
    display: grid;
    gap: 12px;
}

.form-grid,
.compact-grid,
.admin-two-col-grid {
    display: grid;
    gap: 12px;
}

.form-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.compact-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.form-grid label,
.field-stack,
.mini-card label,
.admin-field-stack,
.faq-admin-field {
    display: grid;
    gap: 8px;
    color: #0a1a3a;
    font-weight: 700;
}

.form-grid label span,
.field-stack span,
.mini-card label span,
.admin-field-stack label,
.admin-field-stack > label,
.faq-admin-field label {
    color: #0a1a3a;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: normal;
}

.admin-page-content input[type="text"],
.admin-page-content input[type="email"],
.admin-page-content input[type="url"],
.admin-page-content input[type="number"],
.admin-page-content input[type="password"],
.admin-page-content input[type="datetime-local"],
.admin-page-content input[type="file"],
.admin-page-content textarea,
.admin-page-content select {
    width: 100%;
    min-height: 40px;
    padding: 9px 12px;
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    background: #fff;
    color: #0a1a3a;
    box-shadow: none;
    font-weight: 400;
    font-size: 14px;
}

.admin-page-content textarea {
    min-height: 96px;
    resize: vertical;
}

.admin-page-content input:focus,
.admin-page-content textarea:focus,
.admin-page-content select:focus {
    outline: none;
    border-color: color-mix(in srgb, var(--brand-secondary) 45%, transparent);
    box-shadow: 0 0 0 3px color-mix(in srgb, var(--brand-secondary) 12%, transparent);
}

.admin-page-content input[type="radio"],
.admin-page-content input[type="checkbox"] {
    width: 16px;
    height: 16px;
    min-height: 0;
    padding: 0;
    margin: 0;
    accent-color: var(--brand-secondary);
    box-shadow: none;
}

.admin-page-content .button {
    min-height: 44px;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 700;
    transition: transform .18s ease, box-shadow .18s ease, filter .18s ease, border-color .18s ease;
}

.admin-page-content .button:hover,
.admin-topbar .button:hover,
.admin-mobile-menu-toggle:hover,
.home-faq-row__actions .button:hover {
    transform: translateY(-1px);
    filter: saturate(1.02);
}

.admin-page-content .button--ghost {
    border: 1px solid #e5e7eb;
    background: #fff;
    color: #0a1a3a;
}

.dashboard-head-meta {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.dashboard-head-pill {
    display: inline-flex;
    align-items: center;
    min-height: 28px;
    padding: 0 10px;
    border-radius: 999px;
    background: color-mix(in srgb, var(--brand-secondary) 16%, #fff);
    border: 1px solid color-mix(in srgb, var(--brand-secondary) 24%, #e5e7eb);
    color: #0a1a3a;
    font-size: 12px;
    font-weight: 700;
}

.dashboard-refresh-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    border: 1px solid #e5e7eb;
    border-radius: 999px;
    background: #fff;
    color: var(--brand-primary);
    cursor: pointer;
    transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}

.dashboard-refresh-button:hover {
    transform: translateY(-1px);
    border-color: color-mix(in srgb, var(--brand-primary) 20%, #e5e7eb);
    box-shadow: 0 8px 18px rgba(15, 23, 42, 0.08);
}

.dashboard-refresh-button.is-loading svg {
    animation: dashboard-spin .8s linear infinite;
}

.dashboard-refresh-button svg {
    width: 15px;
    height: 15px;
    stroke: currentColor;
    stroke-width: 2;
    fill: none;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.dashboard-stat-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;
    margin-top: 14px;
}

.dashboard-stat-card {
    position: relative;
    overflow: hidden;
    padding: 16px;
    min-height: 110px;
}

.dashboard-stat-card::before {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    top: 0;
    height: 3px;
}

.dashboard-stat-card--blue::before {
    background: #3b82f6;
}

.dashboard-stat-card--green::before {
    background: var(--brand-secondary);
}

.dashboard-stat-card--red::before {
    background: var(--brand-primary);
}

.dashboard-stat-card--amber::before {
    background: #f59e0b;
}

.dashboard-stat-card__label {
    display: inline-block;
    margin-bottom: 10px;
    color: #6b7280;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

.dashboard-stat-card strong {
    display: block;
    margin: 0 0 6px;
    font-size: 28px;
    line-height: 1;
    color: #0a1a3a;
}

.dashboard-stat-card small {
    color: #6b7280;
    font-size: 13px;
}

.dashboard-summary-grid,
.dashboard-bottom-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
    margin-top: 14px;
}

.dashboard-card {
    padding: 14px 16px;
    transition: transform .18s ease, box-shadow .18s ease;
}

.dashboard-card:hover,
.dashboard-stat-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 16px 30px rgba(15, 23, 42, 0.08);
}

.dashboard-card__head {
    margin-bottom: 10px;
}

.dashboard-log-list,
.dashboard-content-list,
.dashboard-country-list {
    display: grid;
    gap: 8px;
}

.dashboard-log-item,
.dashboard-content-item {
    padding: 9px 0;
    border-bottom: 1px solid #eef2f7;
}

.dashboard-log-item:last-child,
.dashboard-content-item:last-child {
    border-bottom: 0;
    padding-bottom: 0;
}

.dashboard-log-item__meta,
.dashboard-content-item__top,
.dashboard-country-row__top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 4px;
}

.dashboard-log-item__meta--solo {
    justify-content: flex-end;
    margin-bottom: 6px;
}

.dashboard-log-item__type,
.dashboard-content-pill {
    display: inline-flex;
    align-items: center;
    min-height: 22px;
    padding: 0 8px;
    border-radius: 999px;
    background: #f8fafc;
    border: 1px solid #e5e7eb;
    color: var(--brand-primary);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.04em;
}

.dashboard-log-item__time,
.dashboard-content-time {
    color: #94a3b8;
    font-size: 11px;
    font-weight: 500;
    white-space: nowrap;
}

.dashboard-log-item strong,
.dashboard-content-item strong,
.dashboard-country-row strong {
    color: #0a1a3a;
    font-size: 13px;
    font-weight: 500;
    line-height: 1.35;
}

.dashboard-log-item p,
.dashboard-content-item p {
    margin: 3px 0 0;
    color: #6b7280;
    font-size: 13px;
}

.dashboard-country-row {
    display: grid;
    gap: 5px;
}

.dashboard-country-row__top span {
    color: #6b7280;
    font-size: 13px;
    font-weight: 700;
}

.dashboard-country-row__bar {
    height: 8px;
    border-radius: 999px;
    background: #eef2f7;
    overflow: hidden;
}

.dashboard-country-row__bar span {
    display: block;
    height: 100%;
    border-radius: 999px;
    background: linear-gradient(90deg, color-mix(in srgb, var(--brand-secondary) 78%, #fff), var(--brand-secondary));
}

.dashboard-metric-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
}

.dashboard-mini-metric {
    padding: 12px 10px;
    border: 1px solid #eef2f7;
    border-radius: 12px;
    background: #fbfdff;
}

.dashboard-mini-metric strong {
    display: block;
    margin-bottom: 3px;
    color: #0a1a3a;
    font-size: 22px;
    line-height: 1;
}

.dashboard-mini-metric span {
    color: #6b7280;
    font-size: 13px;
}

.dashboard-empty {
    color: #6b7280;
    font-size: 14px;
}

.dashboard-bottom-grid--compact {
    grid-template-columns: 1.2fr 1fr 1fr;
}

.dashboard-bottom-grid--compact .dashboard-card {
    min-height: 100%;
}

.dashboard-bottom-grid--compact .dashboard-log-list {
    gap: 2px;
}

.dashboard-bottom-grid--compact .dashboard-country-list {
    gap: 8px;
}

@keyframes dashboard-spin {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

.admin-list-scroll {
    max-height: 760px;
    overflow: auto;
}

.admin-entry {
    display: grid;
    gap: 4px;
    padding: 10px 0;
    border-bottom: 1px solid #e5e7eb;
}

.admin-entry:last-child,
.table-row:last-child {
    border-bottom: 0;
}

.admin-entry__title,
.table-row span:first-child {
    color: #0a1a3a;
    font-weight: 600;
}

.table-card {
    display: grid;
    gap: 0;
}

.table-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 13px 14px;
    border-bottom: 1px solid #e5e7eb;
}

.auth-shell {
    background: #f9fafb;
}

.auth-section {
    padding: 56px 0 76px;
}

.auth-container-tight {
    max-width: 500px;
}

.auth-card {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 18px;
    box-shadow: 0 18px 40px rgba(10, 26, 58, 0.08);
}

.auth-card-compact {
    padding: 32px 30px;
}

.auth-card-head {
    display: grid;
    gap: 10px;
    margin-bottom: 22px;
}

.auth-brand-mark {
    display: flex;
    justify-content: center;
    margin-bottom: 4px;
    transition: transform .18s ease;
}

.auth-brand-mark:hover {
    transform: translateY(-1px);
}

.auth-brand-mark img {
    max-width: 240px;
    width: auto;
    height: 34px;
}

.auth-card-head h1 {
    margin: 0;
    font-size: clamp(32px, 4vw, 44px);
    line-height: 1.08;
    letter-spacing: -0.03em;
    color: #0a1a3a;
}

.auth-card-head p {
    margin: 0;
    color: #6b7280;
    font-size: 15px;
}

.auth-card-head.centered {
    text-align: center;
}

.alert {
    padding: 12px 14px;
    border-radius: 8px;
    margin-bottom: 14px;
}

.alert.error {
    background: color-mix(in srgb, var(--brand-primary) 10%, white);
    border: 1px solid color-mix(in srgb, var(--brand-primary) 18%, white);
    color: color-mix(in srgb, var(--brand-primary) 72%, #0f172a);
}

.alert.success {
    background: color-mix(in srgb, var(--brand-secondary) 10%, white);
    border: 1px solid color-mix(in srgb, var(--brand-secondary) 18%, white);
    color: color-mix(in srgb, var(--brand-secondary) 72%, #0f172a);
}

.auth-alert {
    margin-bottom: 16px;
}

.auth-form-grid {
    display: grid;
    gap: 16px;
}

.auth-actions {
    display: flex;
    justify-content: center;
    margin-top: 6px;
}

.auth-submit {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 148px;
    min-height: 48px;
    padding: 0 18px;
    border: 0 !important;
    border-radius: 12px;
    background: #ff1b0a !important;
    background-image: linear-gradient(135deg, #ff1b0a, #ff5a44) !important;
    color: #fff !important;
    font-size: 14px;
    font-weight: 700;
    box-shadow: 0 12px 24px rgba(255, 27, 10, 0.18) !important;
    cursor: pointer;
    appearance: none;
    -webkit-appearance: none;
    text-align: center;
    transition: transform .18s ease, box-shadow .18s ease, filter .18s ease;
}

.auth-submit:hover {
    transform: translateY(-1px);
    box-shadow: 0 18px 34px rgba(255, 27, 10, 0.22) !important;
    filter: saturate(1.03);
}

.auth-field {
    display: grid;
    gap: 8px;
}

.auth-field label {
    font-weight: 700;
    color: #0a1a3a;
}

.auth-field input {
    width: 100%;
    min-height: 52px;
    padding: 13px 14px;
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    background: #fff;
    color: #0a1a3a;
    font-weight: 400;
}

.auth-field input:focus {
    outline: none;
    border-color: color-mix(in srgb, var(--brand-secondary) 45%, transparent);
    box-shadow: 0 0 0 3px color-mix(in srgb, var(--brand-secondary) 12%, transparent);
}

.admin-mobile-menu-toggle {
    display: none;
}

.admin-form-single {
    padding: 18px;
    display: grid;
    gap: 16px;
}

.admin-form-single--compact {
    padding: 0;
    gap: 12px;
}

.admin-settings-panel {
    gap: 10px;
    padding-left: 24px;
    padding-right: 24px;
}

.admin-settings-form-flat {
    padding: 0 6px;
    background: transparent;
    border: 0;
    box-shadow: none;
}

.admin-settings-form-flat .admin-actions-row {
    padding-top: 6px;
}

.admin-two-colors,
.admin-two-col-grid,
.admin-brand-color-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
}

.admin-field-stack small {
    color: #6b7280;
    font-size: 12px;
    font-weight: 500;
}

.admin-section-divider {
    border-top: 1px solid #e5e7eb;
    margin: 4px 0 18px;
}

.admin-actions-row {
    display: flex;
    justify-content: flex-start;
}

.admin-inline-limit {
    max-width: 320px;
}

.admin-entity-panel {
    display: grid;
    gap: 12px;
}

.admin-entity-form-section,
.admin-entity-list-section {
    padding: 0;
    border: 0;
    background: transparent;
    box-shadow: none;
    border-radius: 0;
}

.admin-entity-form-section {
    padding-bottom: 12px;
    border-bottom: 1px solid #e5e7eb;
}

.admin-entity-list-section {
    padding-top: 2px;
}

.admin-page-panel .admin-panel-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
    margin-bottom: 14px;
    padding-bottom: 6px;
}

.admin-page-panel .admin-panel-head h2 {
    margin: 0;
}

.maintenance-body {
    margin: 0;
    min-height: 100vh;
    display: grid;
    place-items: center;
    padding: 24px;
    background:
        radial-gradient(circle at top left, color-mix(in srgb, var(--brand-primary) 9%, transparent), transparent 26%),
        radial-gradient(circle at top right, color-mix(in srgb, var(--brand-secondary) 14%, transparent), transparent 24%),
        linear-gradient(180deg, #fbfdff 0%, #f4f8fb 100%);
}

.maintenance-shell {
    width: 100%;
    display: flex;
    justify-content: center;
}

.maintenance-card {
    width: min(760px, 100%);
    padding: 56px 48px;
    border: 1px solid rgba(17, 24, 39, 0.08);
    border-radius: 22px;
    background: rgba(255, 255, 255, 0.96);
    box-shadow: 0 24px 54px rgba(17, 24, 39, 0.08);
    text-align: center;
}

.maintenance-eyebrow {
    margin: 0 0 22px;
    color: var(--brand-primary);
    font-size: 0.95rem;
    font-weight: 700;
}

.maintenance-logo {
    display: block;
    margin: 0 auto 24px;
    max-width: min(260px, 72%);
    height: auto;
}

.maintenance-card h1 {
    margin: 0 0 18px;
    font-size: clamp(2rem, 4vw, 3rem);
}

.maintenance-card p:last-child {
    max-width: 34ch;
    margin: 0 auto;
    color: #475569;
    font-size: 1.06rem;
}

.admin-post-editor-section {
    padding-top: 12px;
    border-top: 1px solid #e5e7eb;
}

.admin-post-header-links {
    margin-left: auto;
    justify-content: flex-end;
    align-self: flex-start;
}

.admin-post-editor-section .admin-form-section,
.admin-post-editor-section .faq-builder-card {
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
}

.admin-post-editor-section .admin-form-section + .admin-form-section {
    padding-top: 10px;
    border-top: 1px solid #eef2f7;
}

.admin-post-editor-section .admin-form-section__head {
    margin-bottom: 8px;
}

.admin-entity-table strong {
    color: #0a1a3a;
}

.admin-post-table td,
.admin-post-table th {
    vertical-align: top;
    padding: 10px 8px;
}

.admin-post-table {
    table-layout: fixed;
    width: 100%;
}

.admin-post-table th:nth-child(1),
.admin-post-table td:nth-child(1) {
    width: 31%;
}

.admin-post-table th:nth-child(2),
.admin-post-table td:nth-child(2) {
    width: 10%;
}

.admin-post-table th:nth-child(3),
.admin-post-table td:nth-child(3) {
    width: 8%;
}

.admin-post-table th:nth-child(4),
.admin-post-table td:nth-child(4) {
    width: 7%;
}

.admin-post-table th:nth-child(5),
.admin-post-table td:nth-child(5) {
    width: 82px;
}

.admin-post-table th:nth-child(6),
.admin-post-table td:nth-child(6) {
    width: 72px;
}

.admin-post-table td:first-child strong,
.admin-post-table td:first-child .table-subtext {
    display: block;
    overflow-wrap: anywhere;
}

.admin-table-title-link {
    color: #0a1a3a;
    text-decoration: none;
}

.admin-table-title-link:hover {
    color: var(--brand-primary);
}

.admin-post-table td:last-child,
.admin-post-table th:last-child {
    white-space: nowrap;
    text-align: left;
}

.admin-table-wrap {
    overflow-x: auto;
}

.admin-table-subtext {
    margin-top: 3px;
    color: #64748b;
    font-size: 13px;
    line-height: 1.45;
}

.admin-inline-actions {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: nowrap;
}

.admin-inline-actions--tight {
    gap: 8px;
}

.admin-inline-actions form {
    margin: 0;
}

.admin-text-link {
    display: inline-flex;
    align-items: center;
    min-height: 18px;
    padding: 0;
    border: 0;
    background: transparent;
    color: var(--brand-primary);
    font-weight: 600;
    cursor: pointer;
    text-decoration: none;
}

.admin-text-link:hover {
    text-decoration: underline;
}

.admin-text-link--danger {
    color: var(--brand-primary);
}

.admin-post-form {
    display: grid;
    gap: 12px;
}

.admin-post-submit-row {
    padding-top: 4px;
}

.admin-post-editor-section .editor-wrap {
    gap: 14px;
}

.admin-post-editor-section .ceditor-editor {
    display: grid;
    gap: 10px;
    padding: 12px;
    border: 1px solid #e8edf5;
    border-radius: 16px;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(248, 250, 252, 0.9));
    box-shadow: 0 10px 24px rgba(15, 23, 42, 0.04);
}

.admin-post-editor-section .ceditor-toolbar,
.admin-post-editor-section .ceditor-image-tools {
    padding: 10px;
    border: 1px solid #e7ecf3;
    border-radius: 12px;
    background: #fff;
    gap: 6px;
}

.admin-post-editor-section .ceditor-toolbar button,
.admin-post-editor-section .ceditor-toolbar__upload span,
.admin-post-editor-section .ceditor-image-tools button {
    min-height: 34px;
    padding: 0 11px;
    border-radius: 10px;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.01em;
    border: 1px solid #dbe3ee;
    background: #fff;
    color: #0f172a;
    box-shadow: none;
}

.admin-post-editor-section .ceditor-surface {
    min-height: 380px;
    padding: 18px 20px;
    border: 1px solid #e7ecf3;
    border-radius: 14px;
    background: #fff;
    color: #0f172a;
    box-shadow: none;
    font-size: 15px;
    line-height: 1.7;
}

.admin-post-editor-section .ceditor-surface:focus {
    outline: none;
    border-color: color-mix(in srgb, var(--brand-secondary) 45%, transparent);
    box-shadow: 0 0 0 3px color-mix(in srgb, var(--brand-secondary) 12%, transparent);
}

.admin-post-editor-section .ceditor-surface p,
.admin-post-editor-section .ceditor-surface li {
    margin: 0 0 10px;
    color: #334155;
}

.admin-post-editor-section .ceditor-surface h2,
.admin-post-editor-section .ceditor-surface h3 {
    margin: 18px 0 10px;
    color: #0f172a;
    line-height: 1.2;
}

.admin-post-editor-section .ceditor-surface h2 {
    font-size: 1.5rem;
}

.admin-post-editor-section .ceditor-surface h3 {
    font-size: 1.2rem;
}

.admin-post-editor-section .ceditor-surface ul,
.admin-post-editor-section .ceditor-surface ol {
    padding-left: 22px;
}

.admin-post-editor-section .ceditor-surface a {
    color: var(--brand-primary);
}

.admin-post-editor-section .ceditor-image-tools input,
.admin-post-editor-section .ceditor-link-dialog input,
.admin-post-editor-section .ceditor-link-dialog textarea,
.admin-post-editor-section .ceditor-link-dialog select {
    background: #fff;
    color: #0f172a;
    border: 1px solid #d7dde5;
}

.admin-post-editor-section .faq-builder-head {
    margin-bottom: 8px;
}

.admin-post-editor-section .faq-builder-actions {
    margin-left: auto;
}

.admin-editor-shortcode {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 12px;
    padding: 10px 12px;
    border: 1px solid #e7ecf3;
    border-radius: 12px;
    background: #f8fafc;
}

.admin-editor-shortcode__label,
.faq-shortcode-note {
    color: #64748b;
    font-size: 0.88rem;
}

.admin-editor-shortcode code,
.faq-shortcode-note code {
    padding: 3px 8px;
    border-radius: 999px;
    background: rgba(15, 23, 42, 0.06);
    color: #0f172a;
    font-family: "Space Grotesk", sans-serif;
    font-size: 0.86rem;
    font-weight: 700;
}

.faq-shortcode-note {
    margin-top: 6px;
}

.admin-text-link--muted {
    color: #6b7280;
}

.admin-post-editor-section .faq-builder-item {
    padding: 10px 0;
    border: 0;
    border-top: 1px solid #eef2f7;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
}

.admin-post-editor-section .faq-builder-item:first-of-type {
    padding-top: 0;
    border-top: 0;
}

.faq-builder-item__actions {
    display: flex;
    justify-content: flex-end;
    margin-top: -2px;
}

.admin-post-editor-section .faq-builder-card .section-head {
    align-items: center;
    margin-bottom: 0;
}

.admin-media-upload-form {
    gap: 10px;
}

.admin-media-upload-form .form-grid {
    gap: 10px 12px;
}

.admin-media-table-wrap {
    margin-top: 2px;
}

.admin-media-table th,
.admin-media-table td {
    white-space: nowrap;
}

.admin-media-table td:first-child,
.admin-media-table th:first-child,
.admin-media-table td:nth-child(3),
.admin-media-table th:nth-child(3) {
    white-space: normal;
}

.admin-ads-form {
    gap: 10px;
}

.admin-ads-table td:first-child,
.admin-ads-table th:first-child {
    white-space: normal;
}

.admin-check-inline {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #0f172a;
    font-size: 14px;
    font-weight: 600;
}

.admin-check-inline input {
    margin: 0;
}

.admin-post-editor-section .ceditor-toolbar strong,
.admin-post-editor-section .ceditor-toolbar em {
    color: inherit;
}

.admin-post-editor-section .ceditor-toolbar button:hover,
.admin-post-editor-section .ceditor-toolbar__upload span:hover,
.admin-post-editor-section .ceditor-image-tools button:hover {
    border-color: color-mix(in srgb, var(--brand-primary) 16%, #d7dde5);
    background: color-mix(in srgb, var(--brand-primary) 6%, white);
}

.admin-post-editor-section .ceditor-link-dialog {
    border: 1px solid #e5e7eb;
    background: #fff;
    color: #0f172a;
}

.admin-post-editor-section .ceditor-link-dialog::backdrop {
    background: rgba(15, 23, 42, 0.28);
}

.contact-phone-field {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    align-items: stretch;
    overflow: hidden;
    border: 1px solid rgba(17, 24, 39, 0.1);
    border-radius: 12px;
    background: #fff;
}

.contact-form-grid label {
    display: grid;
    gap: 6px;
}

.contact-form-grid input,
.contact-form-grid textarea {
    width: 100%;
    min-height: 46px;
    padding: 12px 14px;
    border: 1px solid rgba(17, 24, 39, 0.1);
    border-radius: 14px;
    background: #fff;
    color: var(--ink);
    transition: border-color .18s ease, box-shadow .18s ease;
}

.contact-form-grid textarea {
    min-height: 140px;
    resize: vertical;
}

.contact-form-grid input:focus,
.contact-form-grid textarea:focus {
    outline: 0;
    border-color: color-mix(in srgb, var(--brand-secondary) 45%, transparent);
    box-shadow: 0 0 0 3px color-mix(in srgb, var(--brand-secondary) 12%, transparent);
}

.contact-phone-select {
    min-width: 184px;
    min-height: 44px;
    padding: 0 36px 0 12px;
    border-right: 1px solid rgba(17, 24, 39, 0.08);
    background: #fff;
    color: #334155;
    font-size: 14px;
    border: 0 !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    appearance: none;
}

.contact-phone-field input {
    border: 0 !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    min-height: 44px;
}

.contact-phone-field:focus-within {
    border-color: color-mix(in srgb, var(--brand-secondary) 45%, transparent);
    box-shadow: 0 0 0 3px color-mix(in srgb, var(--brand-secondary) 12%, transparent);
}

.contact-page {
    padding-top: 26px;
}

.contact-page__stack {
    display: grid;
    gap: 16px;
}

.contact-intro-card,
.contact-form-card {
    padding: 22px;
}

.contact-intro-card h1 {
    margin-bottom: 12px;
}

.contact-intro-copy {
    color: var(--muted);
}

.contact-form-card .section-head {
    margin-bottom: 14px;
}

.contact-form-grid {
    margin-top: 0;
}

.contact-form-actions {
    display: flex;
    justify-content: flex-start;
    padding-top: 4px;
}

.color-input-row {
    display: flex;
    align-items: center;
    gap: 10px;
}

.color-input-row-clickable {
    position: relative;
}

.color-chip {
    width: 42px;
    height: 42px;
    border-radius: 10px;
    border: 1px solid #e5e7eb;
    flex: 0 0 auto;
}

.color-chip-button {
    cursor: pointer;
}

.color-picker-native {
    position: absolute;
    inset: 0 auto 0 0;
    width: 42px;
    opacity: 0;
    cursor: pointer;
    min-height: 42px !important;
    padding: 0 !important;
    border: 0 !important;
}

.branding-upload-card {
    display: grid;
    gap: 10px;
    padding: 12px;
    border: 1px solid #e5e7eb;
    border-radius: 14px;
    background: #fff;
}

.branding-upload-preview {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    min-height: 76px;
    padding: 10px 12px;
    border: 1px dashed #dbe2ea;
    border-radius: 12px;
    background: #fafcfe;
}

.branding-upload-preview img {
    max-width: 220px;
    max-height: 44px;
    width: auto;
    height: auto;
}

.branding-upload-preview--favicon {
    justify-content: center;
}

.branding-upload-preview--favicon img {
    max-width: 44px;
    max-height: 44px;
}

.admin-brand-color-grid input[type="text"] {
    min-width: 0;
}

.setting-switch-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 18px;
    padding: 2px 0 16px;
    border-bottom: 1px solid #e5e7eb;
}

.setting-switch-row:last-of-type {
    border-bottom: 0;
    padding-bottom: 0;
}

.setting-switch-row strong {
    display: block;
    color: #0a1a3a;
    font-size: 15px;
    margin-bottom: 2px;
}

.setting-switch-row p {
    margin: 0;
    color: #6b7280;
}

.switch-control {
    position: relative;
    display: inline-flex;
    width: 44px;
    height: 26px;
    flex: 0 0 auto;
}

.switch-control input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.switch-slider {
    width: 100%;
    height: 100%;
    border-radius: 999px;
    background: #e5e7eb;
    position: relative;
    transition: background-color .2s ease;
}

.switch-slider::before {
    content: "";
    position: absolute;
    top: 3px;
    left: 4px;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: #fff;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.18);
    transition: transform .2s ease;
}

.switch-control input:checked + .switch-slider {
    background: var(--brand-secondary);
}

.switch-control input:checked + .switch-slider::before {
    transform: translateX(16px);
}

.admin-inline-action-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
}

.admin-snippet-action-label {
    min-width: 220px;
}

.admin-snippet-action-group {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.admin-snippet-inline-form {
    margin: 0;
}

.admin-snippet-section textarea {
    min-height: 220px;
}

.admin-code-textarea {
    min-height: 220px;
    padding: 14px 16px 14px 18px !important;
    border: 1px solid #d9e1ec !important;
    border-radius: 14px !important;
    background:
        linear-gradient(90deg, #f5f8fc 0, #f5f8fc 52px, #ffffff 52px, #ffffff 100%) !important;
    color: #0f172a !important;
    font: 13px/1.7 Consolas, "SFMono-Regular", Menlo, Monaco, monospace !important;
    tab-size: 4;
    white-space: pre;
    overflow: auto;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.9);
}

.admin-code-textarea::placeholder {
    color: #94a3b8;
}

.admin-code-textarea:focus {
    border-color: color-mix(in srgb, var(--brand-secondary) 42%, #d9e1ec) !important;
    box-shadow:
        0 0 0 3px color-mix(in srgb, var(--brand-secondary) 12%, transparent),
        inset 0 1px 0 rgba(255, 255, 255, 0.9) !important;
}

.admin-code-textarea--compact {
    min-height: 132px;
}

.admin-code-editor {
    position: relative;
    border: 1px solid #d9e1ec;
    border-radius: 14px;
    background: #ffffff;
    overflow: hidden;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.9);
}

.admin-code-editor:focus-within {
    border-color: color-mix(in srgb, var(--brand-secondary) 42%, #d9e1ec);
    box-shadow:
        0 0 0 3px color-mix(in srgb, var(--brand-secondary) 12%, transparent),
        inset 0 1px 0 rgba(255, 255, 255, 0.9);
}

.admin-code-editor__gutter {
    position: absolute;
    inset: 0 auto 0 0;
    width: 56px;
    padding: 14px 8px 14px 0;
    border-right: 1px solid #e8edf3;
    background: #f6f9fc;
    color: #94a3b8;
    text-align: right;
    font: 13px/1.7 Consolas, "SFMono-Regular", Menlo, Monaco, monospace;
    user-select: none;
    overflow: hidden;
    white-space: pre;
}

.admin-code-editor__gutter-inner {
    display: block;
}

.admin-code-editor__surface {
    position: relative;
    min-height: 220px;
    margin-left: 56px;
}

.admin-code-editor--compact .admin-code-editor__surface {
    min-height: 132px;
}

.admin-code-editor__highlight,
.admin-code-editor .admin-code-textarea {
    margin: 0;
    min-height: inherit;
    padding: 14px 16px 14px 18px !important;
    font: 13px/1.7 Consolas, "SFMono-Regular", Menlo, Monaco, monospace !important;
    white-space: pre;
    word-wrap: normal;
    overflow: auto;
    tab-size: 4;
}

.admin-code-editor__highlight {
    position: absolute;
    inset: 0;
    color: #0f172a;
    background: transparent;
    pointer-events: none;
}

.admin-code-editor .admin-code-textarea {
    position: relative;
    z-index: 1;
    width: 100%;
    height: 100%;
    border: 0 !important;
    border-radius: 0 !important;
    background: transparent !important;
    color: transparent !important;
    caret-color: #0f172a;
    box-shadow: none !important;
    resize: vertical;
}

.admin-code-editor .admin-code-textarea::selection {
    background: rgba(59, 130, 246, 0.2);
}

.admin-code-editor .admin-code-textarea::-webkit-scrollbar,
.admin-code-editor__highlight::-webkit-scrollbar {
    width: 12px;
    height: 12px;
}

.admin-code-editor .admin-code-textarea::-webkit-scrollbar-thumb,
.admin-code-editor__highlight::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 999px;
}

.admin-code-token-comment {
    color: #6b7280;
}

.admin-code-token-tag,
.admin-code-token-bracket {
    color: #dc2626;
}

.admin-code-token-attr {
    color: #2563eb;
}

.admin-code-token-string {
    color: #047857;
}

.admin-code-token-keyword {
    color: #7c3aed;
}

.admin-code-token-number {
    color: #b45309;
}

.snippet-link,
.table-link {
    color: var(--brand-primary);
    font-weight: 600;
    word-break: break-word;
}

.snippet-link:hover,
.table-link:hover {
    color: color-mix(in srgb, var(--brand-primary) 78%, #0f172a);
}

.table-subtext,
.transcript-logs-toolbar-note,
.profile-form-note {
    color: #6b7280;
    font-size: 13px;
}

.status-chip {
    display: inline-flex;
    align-items: center;
    min-height: 24px;
    padding: 0 10px;
    border-radius: 999px;
    background: rgba(15, 23, 42, 0.06);
    color: #475569;
    font-size: 12px;
    font-weight: 700;
}

.status-chip.is-active {
    background: color-mix(in srgb, var(--brand-secondary) 18%, white);
    color: color-mix(in srgb, var(--brand-secondary) 72%, #0f172a);
}

.status-chip.is-danger {
    background: color-mix(in srgb, var(--brand-primary) 14%, white);
    color: color-mix(in srgb, var(--brand-primary) 72%, #0f172a);
}

.profile-settings-form {
    gap: 16px;
}

.profile-form-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
}

.profile-form-grid-password {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.media-logs-panel {
    display: grid;
    gap: 14px;
}

.media-logs-panel .admin-panel-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.media-logs-panel .admin-panel-head h2 {
    margin: 0;
}

.media-log-head-links {
    display: flex;
    align-items: center;
    gap: 14px;
    flex-wrap: wrap;
}

.media-log-stat-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;
}

.media-log-stat-card {
    min-height: 110px;
}

.media-log-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
}

.media-log-clear-link {
    padding: 0;
    border: 0;
    background: transparent;
    color: var(--brand-primary);
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
}

.media-log-clear-link:hover {
    text-decoration: underline;
}

.media-log-filter-form {
    flex: 1 1 720px;
}

.media-log-filter-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.7fr) 160px 160px 110px;
    gap: 10px;
}

.media-log-filter-grid input[type="text"],
.media-log-filter-grid input[type="date"] {
    min-height: 42px;
    padding: 10px 12px;
    border-radius: 10px;
    background: #fff;
}

.media-log-filter-grid input[type="date"] {
    appearance: none;
    -webkit-appearance: none;
}

.media-log-action-btn {
    min-height: 42px !important;
    padding: 0 18px !important;
    border-radius: 10px !important;
    background: #ff1b0a !important;
    background-image: linear-gradient(135deg, #ff1b0a, #ff5a44) !important;
    color: #fff !important;
    box-shadow: 0 12px 24px rgba(255, 27, 10, 0.18) !important;
}

.media-log-table-wrap {
    margin-top: 0;
}

.media-log-table th,
.media-log-table td {
    padding: 12px 10px;
    vertical-align: top;
}

.media-log-table thead th {
    font-size: 12px;
    font-weight: 700;
    color: #0a1a3a;
}

.media-log-table td strong {
    color: #0a1a3a;
    font-size: 13px;
}

.media-log-table .table-link {
    color: var(--brand-primary);
}

.media-log-table .table-link:hover {
    text-decoration: underline;
}

.media-log-status-link {
    color: var(--brand-primary);
    text-decoration: none;
    font-weight: 600;
}

.media-log-status-link:hover {
    text-decoration: underline;
    color: color-mix(in srgb, var(--brand-primary) 78%, #0f172a);
}

.media-log-status-link:hover {
    text-decoration: underline;
}

.admin-table-flat-wrap {
    margin-top: 4px;
}

.admin-table-flat {
    border-collapse: collapse;
    width: 100%;
    table-layout: auto;
}

.admin-table-tight th,
.admin-table-tight td {
    padding: 13px 14px;
    font-size: 13px;
    border-bottom: 1px solid #e5e7eb;
}

.admin-table-tight thead th {
    color: #0a1a3a;
    background: transparent;
    text-align: left;
}

.compact-table-wrap {
    overflow: auto;
    width: 100%;
}

.admin-entity-table {
    width: 100%;
    table-layout: fixed;
}

.admin-entity-table th,
.admin-entity-table td {
    white-space: normal;
}

.admin-entity-table th:nth-last-child(1),
.admin-entity-table td:nth-last-child(1) {
    text-align: right;
    white-space: nowrap;
    width: 1%;
}

.admin-entity-table th:nth-last-child(2),
.admin-entity-table td:nth-last-child(2) {
    width: 108px;
}

.table-datetime {
    display: inline-grid;
    gap: 2px;
    line-height: 1.2;
    white-space: normal;
    font-size: 12px;
}

.table-datetime span {
    display: block;
}

.admin-entity-table th:first-child,
.admin-entity-table td:first-child {
    width: 42%;
}

.admin-entity-table th:nth-child(2),
.admin-entity-table td:nth-child(2) {
    width: 14%;
}

.admin-entity-table th:nth-child(3),
.admin-entity-table td:nth-child(3) {
    width: 22%;
}

.admin-entity-table th:nth-child(4),
.admin-entity-table td:nth-child(4) {
    width: 12%;
}

.admin-entity-table th:nth-child(5),
.admin-entity-table td:nth-child(5) {
    width: 14%;
    white-space: nowrap;
}

.home-faq-list {
    display: grid;
    gap: 10px;
}

.home-faq-empty {
    padding: 14px 16px;
    border: 1px dashed #d1d5db;
    border-radius: 12px;
    color: #6b7280;
    background: #fafafa;
}

.home-faq-row {
    display: grid;
    grid-template-columns: 22px minmax(0, 1fr) auto;
    gap: 12px;
    align-items: center;
    padding: 14px 16px;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    background: #fff;
}

.home-faq-row.is-dragging {
    opacity: 0.55;
}

.home-faq-row__drag {
    color: #94a3b8;
    font-size: 18px;
    line-height: 1;
    cursor: grab;
    user-select: none;
}

.home-faq-row__content {
    display: grid;
    gap: 5px;
}

.home-faq-row__question {
    color: #0a1a3a;
    font-weight: 700;
}

.home-faq-row__answer {
    color: #6b7280;
    font-size: 13px;
}

.home-faq-row__actions {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.home-faq-row__actions .button {
    min-height: 38px;
    padding: 0 13px;
}

.home-faq-dialog {
    max-width: 640px;
    width: calc(100% - 24px);
}

.home-faq-dialog::backdrop {
    background: rgba(15, 23, 42, 0.45);
}

.home-faq-dialog__card {
    display: grid;
    gap: 14px;
    padding: 22px;
    border: 1px solid #e5e7eb;
    border-radius: 18px;
    background: #fff;
    box-shadow: 0 18px 40px rgba(10, 26, 58, 0.12);
}

.home-faq-dialog__head h3 {
    margin: 0;
    color: #0a1a3a;
    font-size: 22px;
}

.home-faq-dialog__body {
    display: grid;
    gap: 14px;
}

.home-faq-dialog__actions {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
}

.landing-page-shell {
    padding-top: 26px;
}

.landing-page-wrap {
    display: grid;
    gap: 16px;
}

.landing-hero-card,
.landing-content-card,
.landing-faq-card {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 20px;
    box-shadow: 0 16px 40px rgba(15, 23, 42, 0.05);
}

.landing-hero-card {
    padding: 26px 26px 22px;
    text-align: center;
}

.landing-hero-title {
    max-width: 18ch;
    margin: 0 auto;
    font-size: clamp(2rem, 4.4vw, 3.3rem);
    letter-spacing: -0.055em;
    line-height: 1.02;
}

.landing-hero-lead {
    max-width: 700px;
    margin: 10px auto 0;
    color: #64748b;
    font-size: 1rem;
}

.landing-ad-wrap {
    margin-top: 14px;
}

.landing-benefits-strip {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
}

.landing-benefit-pill {
    padding: 14px 16px;
    border: 1px solid #e5e7eb;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.92);
    box-shadow: 0 10px 24px rgba(15, 23, 42, 0.04);
}

.landing-benefit-pill p {
    color: #334155;
    font-weight: 600;
}

.landing-content-card {
    padding: 24px 24px 26px;
}

.landing-content-card > *:first-child {
    margin-top: 0;
}

.landing-content-card h2 {
    margin-top: 24px;
    font-size: clamp(1.35rem, 2.3vw, 1.85rem);
}

.landing-content-card h3 {
    margin-top: 20px;
    font-size: 1.08rem;
}

.landing-content-card p,
.landing-content-card li {
    color: #475569;
}

.landing-faq-card {
    padding: 22px 22px 18px;
}

@media (max-width: 900px) {
    .admin-toolbar-row,
    .admin-toolbar-actions {
        flex-direction: column;
        align-items: stretch;
    }

    .admin-page-grid,
    .admin-page-grid-dashboard,
    .admin-page-grid-inner,
    .admin-grid,
    .admin-grid--wide,
    .form-grid,
    .compact-grid,
    .admin-stat-grid,
    .dashboard-stat-grid,
    .dashboard-summary-grid,
    .dashboard-bottom-grid,
    .dashboard-metric-grid,
    .admin-two-colors,
    .admin-two-col-grid,
    .admin-brand-color-grid,
    .profile-form-grid,
    .profile-form-grid-password {
        grid-template-columns: 1fr;
    }

    .admin-inline-action-row,
    .admin-snippet-action-group,
    .setting-switch-row {
        flex-direction: column;
        align-items: stretch;
    }

    .home-faq-row {
        grid-template-columns: 1fr;
    }

    .home-faq-row__drag {
        display: none;
    }

    .home-faq-dialog__actions {
        flex-direction: column;
        align-items: stretch;
    }

    .media-log-stat-grid,
    .media-log-filter-grid {
        grid-template-columns: 1fr;
    }

    .media-log-toolbar {
        align-items: stretch;
    }

    .landing-benefits-strip {
        grid-template-columns: 1fr;
    }

    .admin-mobile-menu-toggle {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        width: 100%;
        min-height: 44px;
        margin-bottom: 12px;
        border: 1px solid #e5e7eb;
        border-radius: 10px;
        background: #fff;
        color: #0a1a3a;
        font-weight: 700;
    }

    .admin-menu-card {
        display: none;
        position: static;
    }

    .admin-menu-card.is-open {
        display: block;
    }
}

@media (max-width: 640px) {
    .auth-section {
        padding: 40px 0 56px;
    }

    .auth-card-compact {
        padding: 24px 18px;
    }

    .admin-settings-panel {
        padding-left: 18px;
        padding-right: 18px;
    }

    .admin-settings-form-flat {
        padding-left: 0;
        padding-right: 0;
    }
}

/* Homepage cosmetic pass */
.site-header {
    position: sticky;
    top: 0;
    z-index: 60;
    background: rgba(255, 255, 255, 0.94);
    border-bottom: 1px solid rgba(15, 23, 42, 0.06);
    backdrop-filter: blur(14px);
}

.site-header__inner {
    min-height: 66px;
    padding: 8px 0;
}

.brand-logo img {
    height: 42px;
}

.site-nav {
    gap: 8px;
}

.site-nav a:not(.site-nav__admin) {
    padding: 6px 8px;
    color: #52525b;
    font-size: 12px;
    font-weight: 500;
}

.site-nav__admin {
    min-height: 32px;
    padding: 0 12px;
    font-size: 12px;
}

.hero--single {
    padding-top: 26px;
    padding-bottom: 12px;
    background:
        radial-gradient(circle at 50% 18%, rgba(255, 255, 255, 0.98), rgba(255, 255, 255, 0.72) 36%, rgba(246, 247, 248, 0) 72%),
        linear-gradient(180deg, rgba(255, 255, 255, 0.82), rgba(255, 255, 255, 0));
}

.hero-stack--single {
    gap: 10px;
}

.hero-copy--center {
    max-width: 860px;
    margin-bottom: 8px;
}

.hero-badge {
    min-height: 28px;
    padding: 0 12px;
    border: 1px solid color-mix(in srgb, var(--brand-secondary) 22%, transparent);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.95);
    box-shadow: 0 8px 18px rgba(15, 23, 42, 0.04);
}

.hero-badge::before {
    width: 6px;
    height: 6px;
    border-radius: 999px;
    background: var(--brand-secondary);
}

.hero-copy--center h1 {
    max-width: 860px;
    margin: 0 auto;
    font-size: 36px;
    line-height: 1.12;
    letter-spacing: -0.05em;
}

.hero-copy__lead {
    max-width: 820px;
    margin-top: 8px;
    font-size: 16px;
}

.hero-tool-card {
    width: min(700px, 100%);
    padding: 0;
    border: 0;
    border-radius: 0;
    box-shadow: none;
    background: transparent;
}

.tool-form--inline .tool-input-row--inline {
    width: 100%;
    grid-template-columns: 1fr;
    gap: 8px;
}

.tool-input-row--embedded {
    max-width: 700px;
    margin: 0 auto;
}

.tool-input-shell {
    position: relative;
    display: flex;
    align-items: center;
    width: 100%;
    min-height: 66px;
    padding: 8px 12px;
    border: 1px solid color-mix(in srgb, var(--brand-primary) 16%, white);
    border-radius: 22px;
    background: rgba(255, 255, 255, 0.98);
    box-shadow: 0 14px 30px color-mix(in srgb, var(--brand-primary) 8%, transparent);
    overflow: hidden;
}

.tool-input-shell:focus-within {
    border-color: color-mix(in srgb, var(--brand-secondary) 45%, transparent);
    box-shadow: 0 0 0 4px color-mix(in srgb, var(--brand-secondary) 12%, transparent), 0 14px 30px color-mix(in srgb, var(--brand-primary) 8%, transparent);
}

.tool-form--inline input[type="url"] {
    min-height: 50px;
    width: 100%;
    padding: 0 210px 0 42px;
    border-radius: 16px;
    border: 0;
    background: transparent;
    font-size: 14px;
    box-shadow: none;
}

.tool-form--inline input[type="url"]:focus {
    outline: none;
    box-shadow: none;
}

.tool-form--inline .button {
    min-height: 50px;
    border-radius: 16px;
    font-size: 14px;
}

.tool-input-submit {
    position: absolute;
    top: 50%;
    right: 12px;
    transform: translateY(-50%);
    min-width: 170px;
    height: 50px;
    margin: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 10px 22px color-mix(in srgb, var(--brand-primary) 18%, transparent);
}

.tool-input-shell::before {
    content: "🔗";
    position: absolute;
    left: 18px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 14px;
    opacity: 0.72;
}

.hero-speedline {
    margin-top: 6px;
    font-size: 12px;
    line-height: 1.8;
    font-weight: 600;
    color: #475569;
}

.hero-speedline span {
    color: var(--brand-secondary);
    font-size: 16px;
    font-weight: 800;
    vertical-align: middle;
}

.benefit-row--compact {
    max-width: 980px;
    gap: 10px;
}

.home-benefit-card {
    background: #fff;
    border: 1px solid #e5e7eb;
    box-shadow: 0 10px 24px rgba(15, 23, 42, 0.04);
}

.home-benefit-card h3 {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
}

.home-benefit-card h3::before {
    content: "✓";
    width: 18px;
    height: 18px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    background: color-mix(in srgb, var(--brand-primary) 8%, transparent);
    color: var(--brand-primary);
    font-size: 11px;
    font-weight: 700;
}

.home-benefit-card p,
.home-step-card p,
.home-guide-card p {
    font-size: 13px;
    line-height: 1.55;
}

.home-section-band {
    border-top: 1px solid rgba(15, 23, 42, 0.07);
    padding-top: 22px;
    padding-bottom: 22px;
}

.section-head--compact {
    max-width: 980px;
    margin-left: auto;
    margin-right: auto;
}

.section-head--compact h2 {
    max-width: 980px;
    font-size: 22px;
    line-height: 1.18;
}

.home-copy-block {
    max-width: 980px;
    margin: 0 auto;
}

.home-copy-block p,
.home-copy-block li {
    color: #475569;
    font-size: 14px;
    line-height: 1.8;
}

.home-copy-block ul {
    margin: 10px 0 0;
    padding-left: 18px;
}

.home-copy-block li::marker {
    color: var(--brand-secondary);
}

.step-row--compact {
    max-width: 980px;
    gap: 10px;
}

.home-step-card {
    background: #fff;
    border: 1px solid #e5e7eb;
    box-shadow: 0 10px 24px rgba(15, 23, 42, 0.04);
}

.home-howto-band .section-head--compact,
.home-howto-band .home-step-grid {
    max-width: 980px;
    margin-left: auto;
    margin-right: auto;
}

.home-step-card .step-card__number {
    width: auto;
    height: auto;
    margin-bottom: 0;
    border-radius: 0;
    background: transparent;
    color: var(--brand-primary);
    font-size: 11px;
    font-weight: 800;
}

.home-step-head {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 8px;
}

.home-step-card h3 {
    font-size: 15px;
    margin: 0;
}

.home-guide-grid {
    max-width: 980px;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
}

.home-guide-card {
    background: #fff;
    border: 1px solid #e5e7eb;
    box-shadow: 0 10px 24px rgba(15, 23, 42, 0.04);
}

.home-related-block {
    max-width: 980px;
    margin-left: auto;
    margin-right: auto;
}

.home-related-link {
    padding: 10px 14px;
    border-radius: 14px;
    background: #fff;
    border: 1px solid #e5e7eb;
    box-shadow: 0 8px 20px rgba(15, 23, 42, 0.03);
}

.home-faq-list-public {
    max-width: 980px;
    margin: 0 auto;
}

.home-faq-list-public .faq-item {
    border-radius: 0;
    border-left: 0;
    border-right: 0;
    border-top: 0;
    box-shadow: none;
}

.home-faq-list-public .faq-item summary {
    padding: 14px 0;
    font-size: 12px;
}

.home-faq-list-public .faq-item .prose {
    padding: 0 0 14px;
}

.site-footer {
    margin-top: 18px;
    background: #fff;
}

.site-footer__inner {
    min-height: 56px;
    padding: 12px 0;
}

.site-footer__brand img {
    height: 24px;
    width: auto;
}

.site-footer__copy {
    font-size: 12px;
    color: #6b7280;
}

.site-footer nav a {
    font-size: 13px;
}

@media (max-width: 900px) {
    .site-header__inner,
    .site-footer__inner {
        align-items: center;
        text-align: center;
    }

    .home-guide-grid,
    .benefit-row--compact,
    .step-row--compact {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 640px) {
    .site-nav {
        justify-content: center;
    }

    .site-nav__admin {
        display: none;
    }

    .hero-copy--center h1 {
        font-size: 28px;
    }

    .tool-form--inline .tool-input-row--inline {
        grid-template-columns: 1fr;
    }

    .tool-input-shell {
        min-height: auto;
        padding: 8px;
    }

    .tool-form--inline input[type="url"] {
        min-height: 46px;
        padding: 0 12px;
    }

    .tool-input-submit {
        position: static;
        width: 100%;
        min-width: 0;
        margin-top: 8px;
    }
}


/* ===== Homepage premium polish patch ===== */
body {
    background:
        radial-gradient(circle at top left, color-mix(in srgb, var(--brand-primary) 6%, transparent), transparent 22%),
        radial-gradient(circle at top right, color-mix(in srgb, var(--brand-secondary) 8%, transparent), transparent 20%),
        linear-gradient(180deg, #fbfcfe 0%, #f3f6fa 100%);
}

.site-header {
    background: rgba(255, 255, 255, 0.92);
    border-bottom: 1px solid rgba(15, 23, 42, 0.06);
    backdrop-filter: blur(14px);
}

.site-header__inner {
    min-height: 78px;
    gap: 14px;
}

.brand-logo img {
    height: 34px;
    width: auto;
}

.site-nav {
    gap: 8px;
}

.site-nav a:not(.site-nav__admin) {
    padding: 6px 4px;
    font-weight: 700;
    color: #475569;
    position: relative;
    background: transparent;
    border-radius: 0;
    transition: color .18s ease, transform .18s ease;
}

.site-nav a:not(.site-nav__admin):hover {
    color: var(--brand-primary);
    background: transparent;
    transform: translateY(-1px);
}

.site-nav a.is-active:not(.site-nav__admin) {
    color: var(--brand-primary);
}

.site-nav a.is-active:not(.site-nav__admin)::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: -8px;
    height: 2px;
    border-radius: 999px;
    background: var(--brand-secondary);
}

.site-nav__admin {
    min-height: 38px;
    padding: 0 14px;
    border-radius: 999px;
    border: 1px solid rgba(15, 23, 42, 0.08);
    background: #fff;
    color: #0f172a;
    font-weight: 700;
    box-shadow: none;
}

.hero--single {
    padding: 26px 0 12px;
}

.home-hero-copy {
    max-width: 780px;
}

.hero-badge {
    margin-bottom: 8px;
}

.hero-copy--center h1 {
    max-width: 17ch;
    margin-inline: auto;
    font-size: clamp(2rem, 4.1vw, 3.2rem);
    line-height: 1.02;
    letter-spacing: -0.055em;
    color: #0f172a;
}

.hero-copy__lead {
    max-width: 720px;
    font-size: 15px;
    line-height: 1.7;
}

.home-hero-tool {
    width: min(880px, 100%);
    margin-top: 6px;
    padding: 18px;
    border-radius: 24px;
    border: 1px solid rgba(15, 23, 42, 0.06);
    box-shadow: 0 18px 44px rgba(15, 23, 42, 0.06);
    background:
        radial-gradient(circle at top right, color-mix(in srgb, var(--brand-secondary) 6%, transparent), transparent 28%),
        linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(255, 255, 255, 0.95));
}

.tool-input-row--embedded {
    max-width: 760px;
}

.tool-input-shell {
    min-height: 70px;
    padding: 8px;
    border: 1px solid color-mix(in srgb, var(--brand-primary) 16%, transparent);
    border-radius: 24px;
    background: #fff;
    box-shadow: 0 16px 32px color-mix(in srgb, var(--brand-primary) 8%, transparent);
}

.tool-input-shell::before {
    left: 18px;
    font-size: 13px;
    opacity: 0.65;
}

.tool-form--inline input[type="url"] {
    min-height: 54px;
    padding: 0 200px 0 42px;
    font-size: 14px;
    color: #0f172a;
}

.tool-form--inline input[type="url"]::placeholder {
    color: #94a3b8;
}

.tool-input-submit {
    top: 8px;
    right: 8px;
    min-width: 172px;
    min-height: 54px;
    border-radius: 16px;
    background: #ff1b0a;
    background-image: linear-gradient(135deg, #ff1b0a, #ff5a44);
    box-shadow: 0 14px 30px rgba(255, 27, 10, 0.18);
    transition: transform .18s ease, box-shadow .18s ease, filter .18s ease;
}

.tool-input-submit:hover {
    transform: translateY(-1px);
    box-shadow: 0 18px 34px rgba(255, 27, 10, 0.22);
    filter: saturate(1.03);
}

.hero-speedline {
    margin-top: 8px;
    font-size: 12px;
    color: #64748b;
    display: grid;
    gap: 4px;
}

.hero-speedline__primary {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 18px;
    flex-wrap: wrap;
}

.hero-speedline__item {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    line-height: 1.2;
}

.hero-speedline__item strong {
    font-weight: 700;
    color: #475569;
}

.hero-speedline__dot {
    width: 6px;
    height: 6px;
    flex: 0 0 6px;
    border-radius: 999px;
    background: var(--brand-secondary);
}

.hero-speedline__secondary {
    font-weight: 400;
    line-height: 1.55;
}

.home-benefit-section {
    padding-top: 6px;
}

.benefit-row--compact {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.home-benefit-card {
    position: relative;
    padding: 16px 16px 15px;
    border-radius: 18px;
    border: 1px solid rgba(15, 23, 42, 0.06);
    box-shadow: 0 10px 24px rgba(15, 23, 42, 0.04);
    overflow: hidden;
}

.home-benefit-card::before {
    content: "";
    position: absolute;
    inset: 0 0 auto;
    height: 3px;
    background: var(--brand-secondary);
}

.home-benefit-card h3 {
    font-size: 14px;
    color: #0f172a;
}

.home-benefit-card p,
.home-step-card p,
.home-guide-card p {
    color: #64748b;
}

.home-section-band {
    padding-top: 18px;
    padding-bottom: 18px;
    border-top: 1px solid rgba(15, 23, 42, 0.06);
}

.home-copy-card {
    max-width: 980px;
    margin: 0 auto;
    padding: 18px 20px;
    border-radius: 20px;
    border: 1px solid rgba(15, 23, 42, 0.06);
    box-shadow: 0 12px 28px rgba(15, 23, 42, 0.04);
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(255, 255, 255, 0.94));
}

.home-copy-card--compact {
    padding-block: 16px;
}

.home-copy-block p,
.home-copy-block li {
    font-size: 14px;
    line-height: 1.75;
    color: #475569;
}

.home-copy-block p + p {
    margin-top: 10px;
}

.home-copy-block ul {
    margin: 12px 0 0;
    padding-left: 19px;
}

.home-copy-block li + li {
    margin-top: 4px;
}

.home-howto-band .step-row--compact {
    gap: 14px;
}

.home-step-card {
    position: relative;
    padding: 18px 16px 16px;
    border-radius: 18px;
    border: 1px solid rgba(15, 23, 42, 0.06);
    box-shadow: 0 12px 26px rgba(15, 23, 42, 0.04);
    overflow: hidden;
}

.home-step-card::before {
    content: "";
    position: absolute;
    inset: 0 0 auto;
    height: 3px;
    background: var(--brand-secondary);
}

.home-step-card .step-card__number {
    width: 34px;
    height: 34px;
    margin-bottom: 10px;
    border-radius: 999px;
    background: color-mix(in srgb, var(--brand-primary) 8%, transparent);
    color: var(--brand-primary);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    font-weight: 800;
}

.home-step-card h3 {
    font-size: 15px;
    color: #0f172a;
}

.home-two-panel-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
}

.home-panel {
    display: grid;
    gap: 10px;
}

.home-discovery-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 12px;
    align-items: start;
}

.home-guide-grid {
    max-width: none;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
    width: 100%;
}

.home-guide-card {
    padding: 18px;
    border-radius: 18px;
    border: 1px solid rgba(15, 23, 42, 0.06);
    box-shadow: 0 10px 24px rgba(15, 23, 42, 0.04);
    transition: transform .18s ease, box-shadow .18s ease;
}

.home-guide-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 18px 36px rgba(15, 23, 42, 0.06);
}

.home-guide-card h3 {
    font-size: 17px;
    line-height: 1.3;
}

.home-guide-card p {
    font-size: 15px;
    line-height: 1.65;
}

.home-guide-card__thumb {
    width: 100%;
    aspect-ratio: 16 / 9;
    object-fit: cover;
}

.category-layout {
    display: grid;
    gap: 18px;
    max-width: 1280px;
}

.category-guide-grid {
    width: 100%;
    align-items: stretch;
}

.category-layout .section-head {
    margin-bottom: 2px;
}

.category-layout .section-head p {
    max-width: 72ch;
}

.category-guide-card h2 {
    font-size: 18px;
    line-height: 1.32;
}

.category-guide-card {
    min-height: 100%;
}

.category-guide-card p {
    font-size: 15px;
    line-height: 1.65;
}

.home-guide-card h3 a:hover {
    color: var(--brand-primary);
}

.home-related-block {
    margin-top: 0;
    padding: 16px;
    border-radius: 20px;
    border: 1px solid rgba(15, 23, 42, 0.06);
    box-shadow: 0 12px 28px rgba(15, 23, 42, 0.04);
}

.home-related-head {
    margin-bottom: 8px;
}

.home-related-link {
    padding: 12px 14px;
    border-radius: 14px;
    border: 1px solid rgba(15, 23, 42, 0.06);
    transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}

.home-related-link:hover {
    transform: translateY(-1px);
    border-color: color-mix(in srgb, var(--brand-primary) 16%, transparent);
    box-shadow: 0 12px 24px rgba(15, 23, 42, 0.05);
}

.home-faq-band {
    padding-bottom: 22px;
}

.home-faq-card-wrap {
    max-width: 980px;
    margin: 0 auto;
    padding: 8px 18px;
    border-radius: 20px;
    border: 1px solid rgba(15, 23, 42, 0.06);
    box-shadow: 0 12px 28px rgba(15, 23, 42, 0.04);
    background: linear-gradient(180deg, rgba(255,255,255,0.98), rgba(255,255,255,0.95));
}

.home-faq-list-public .faq-item {
    padding: 0;
    border-left: 0;
    border-right: 0;
    border-top: 0;
    border-radius: 0;
    box-shadow: none;
    background: transparent;
}

.home-faq-list-public .faq-item summary {
    padding: 15px 0;
    font-size: 14px;
    color: #0f172a;
}

.home-faq-list-public .faq-item .prose {
    padding: 0 0 15px;
}

.home-faq-list-public .faq-item[open] summary {
    color: var(--brand-primary);
}

.site-footer {
    margin-top: 22px;
    background: rgba(255, 255, 255, 0.92);
    border-top: 1px solid rgba(15, 23, 42, 0.06);
}

.site-footer__inner {
    min-height: 62px;
    padding: 14px 0;
}

.site-footer__brand img {
    height: 26px;
}

.site-footer__copy {
    font-size: 12px;
    color: #64748b;
}

.site-footer nav a {
    color: #64748b;
    font-weight: 600;
}

.site-footer nav a:hover {
    color: #0f172a;
}

.back-to-top {
    position: fixed;
    right: 22px;
    bottom: 22px;
    z-index: 70;
    width: 50px;
    height: 50px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 0;
    border-radius: 18px;
    background: var(--brand-secondary);
    color: #fff;
    box-shadow: 0 14px 28px rgba(15, 23, 42, 0.18);
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: opacity .2s ease, transform .2s ease, visibility .2s ease;
}

.back-to-top span {
    font-size: 22px;
    line-height: 1;
    font-weight: 800;
}

.back-to-top.is-visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

@media (max-width: 960px) {
    .home-two-panel-grid,
    .home-discovery-grid {
        grid-template-columns: 1fr;
    }

    .home-guide-grid,
    .benefit-row--compact,
    .step-row--compact {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 760px) {
    .home-guide-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 900px) {
    .site-header__inner,
    .site-footer__inner {
        align-items: center;
        text-align: center;
    }

    .site-nav {
        justify-content: center;
    }
}

@media (max-width: 640px) {
    .hero--single {
        padding-top: 18px;
    }

    .hero-copy--center h1 {
        font-size: 2rem;
    }

    .home-hero-tool {
        padding: 14px;
        border-radius: 20px;
    }

    .tool-input-shell {
        min-height: auto;
        display: grid;
        gap: 8px;
        padding: 10px;
    }

    .tool-input-shell::before {
        left: 14px;
        font-size: 13px;
    }

    .tool-form--inline input[type="url"] {
        min-height: 48px;
        padding: 0 14px 0 34px;
    }

    .tool-input-submit {
        position: static;
        width: 100%;
        min-width: 0;
        min-height: 48px;
        height: 48px;
        margin-top: 0;
        transform: none;
    }

    .home-copy-card,
    .home-related-block,
    .home-faq-card-wrap {
        padding-inline: 14px;
    }

    .back-to-top {
        right: 16px;
        bottom: 16px;
        width: 46px;
        height: 46px;
        border-radius: 16px;
    }
}

/* Final homepage how-to alignment override */
.home-howto-band .container {
    max-width: 980px;
}

.home-howto-band .section-head--compact {
    width: 100%;
    max-width: 980px;
    margin-left: auto;
    margin-right: auto;
}

.home-howto-band .home-step-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
    width: 100%;
    max-width: 980px;
    margin: 0 auto;
}

.home-howto-band .home-step-card {
    display: grid;
    align-content: start;
}

.home-howto-band .home-step-head {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
}

.home-howto-band .home-step-card .step-card__number {
    width: 34px;
    height: 34px;
    min-width: 34px;
    margin: 0;
    border-radius: 999px;
    background: color-mix(in srgb, var(--brand-primary) 8%, transparent);
    color: var(--brand-primary);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    font-weight: 800;
}

.home-howto-band .home-step-card h3 {
    margin: 0;
    line-height: 1.2;
}

@media (max-width: 960px) {
    .home-howto-band .home-step-grid {
        grid-template-columns: 1fr;
    }
}

/* Final hero input/button alignment override */
.home-hero-tool .tool-input-row--embedded {
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.home-hero-tool .tool-input-shell {
    position: relative;
    min-height: 68px;
    padding: 8px 12px;
    display: block;
    overflow: hidden;
}

.home-hero-tool .tool-form--inline input[type="url"] {
    width: 100%;
    min-height: 52px;
    padding: 0 210px 0 42px;
    line-height: 52px;
}

.home-hero-tool .tool-input-submit {
    position: absolute;
    top: 8px;
    right: 12px;
    bottom: 8px;
    transform: none;
    min-width: 170px;
    height: auto;
    margin: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.home-hero-tool .tool-input-shell::before {
    top: 50%;
    left: 16px;
    transform: translateY(-50%);
}

.home-hero-tool .tool-input-submit__icon {
    font-size: 16px;
    line-height: 1;
    font-weight: 800;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

@media (max-width: 640px) {
    .home-hero-tool .tool-input-shell {
        display: grid;
        gap: 8px;
        min-height: auto;
        padding: 10px;
    }

    .home-hero-tool .tool-form--inline input[type="url"] {
        min-height: 48px;
        padding: 0 14px 0 40px;
        line-height: 48px;
    }

    .home-hero-tool .tool-input-shell::before {
        top: 34px;
        left: 16px;
        transform: translateY(-50%);
    }

    .home-hero-tool .tool-input-submit {
        position: static;
        width: 100%;
        min-width: 0;
        min-height: 48px;
        margin: 0;
    }
}

/* Final inline process area styling override */
.wav-process-inline {
    --wav-process-width: min(600px, 100%);
    margin-top: 14px;
    padding: 4px 0 0;
    border: 0;
    background: transparent;
    box-shadow: none;
}

.wav-process-eyebrow {
    justify-content: center;
    text-align: center;
}

.wav-process-eyebrow::before {
    display: none;
}

.wav-process-title {
    max-width: 760px;
    margin: 8px auto 0;
    text-align: center;
    font-size: 1.15rem;
    line-height: 1.24;
}

.wav-process-thumb-wrap {
    width: var(--wav-process-width);
    margin: 10px auto 0;
}

.wav-process-thumb {
    width: 100%;
    aspect-ratio: 16 / 9;
    object-fit: cover;
    border-radius: 20px;
}

.wav-process-status {
    width: var(--wav-process-width);
    margin: 10px auto 0;
    text-align: left;
    font-size: 0.95rem;
    color: #475569;
}

.wav-process-progress {
    width: var(--wav-process-width);
    margin: 6px auto 0;
}

.download-progress-block {
    display: grid;
    gap: 4px;
}

.download-progress-track {
    height: 7px;
    border-radius: 999px;
    overflow: hidden;
    background: rgba(0, 0, 0, 0.08);
}

.download-progress-track span {
    display: block;
    height: 100%;
    background: var(--brand-secondary);
    border-radius: inherit;
}

.wav-process-note {
    width: var(--wav-process-width);
    margin: 8px auto 0;
    text-align: left;
    font-size: 0.9rem;
    font-weight: 600;
}

.wav-process-note a {
    color: #4b5563;
}

.wav-process-actions {
    width: var(--wav-process-width);
    margin: 12px auto 0;
    display: grid;
    grid-template-columns: minmax(0, 1fr) 190px;
    align-items: stretch;
    gap: 10px;
}

.button--brand-green {
    background: var(--brand-secondary);
    color: #fff;
    box-shadow: 0 10px 24px rgba(15, 23, 42, 0.08);
}

.button--brand-white {
    background: #fff;
    color: #111827;
    border: 1px solid #d7dde5;
    box-shadow: none;
}

.wav-process-save,
.wav-process-reset {
    min-height: 38px;
    border-radius: 16px;
    font-size: 14px;
    font-weight: 700;
}

.wav-process-save {
    width: 100%;
    min-width: 0;
    margin: 0;
    padding: 0 18px;
    gap: 8px;
    justify-self: stretch;
    transition: transform .18s ease, box-shadow .18s ease, background-color .18s ease;
}

.wav-process-reset {
    width: 100%;
    min-width: 0;
    margin: 0;
    padding: 0 16px;
    justify-self: stretch;
    transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}

.wav-process-save:hover,
.wav-process-reset:hover {
    transform: translateY(-1px);
}

.wav-process-save:hover {
    box-shadow: 0 14px 28px color-mix(in srgb, var(--brand-secondary) 22%, transparent);
}

.wav-process-reset:hover {
    border-color: color-mix(in srgb, var(--brand-primary) 14%, #d7dde5);
    box-shadow: 0 10px 22px rgba(15, 23, 42, 0.06);
}

.wav-process-button-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    line-height: 1;
}

@media (max-width: 640px) {
    .wav-process-thumb-wrap,
    .wav-process-status,
    .wav-process-progress,
    .wav-process-note,
    .wav-process-actions {
        width: 100%;
    }

    .wav-process-actions {
        grid-template-columns: 1fr;
    }

    .wav-process-save,
    .wav-process-reset {
        width: 100%;
        min-width: 0;
    }
}
.video-fallback {
  position: relative;
  max-width: 800px;
  margin: 20px auto;
}

.video-fallback img {
  width: 100%;
  border-radius: 8px;
}

.video-fallback .play-button {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: 48px;
  color: white;
  background: rgba(0,0,0,0.6);
  padding: 10px 20px;
  border-radius: 50%;
}
