:root {
    --forest: #164b3b;
    --forest-dark: #103c30;
    --forest-soft: #dce8de;
    --terracotta: #c85f42;
    --terracotta-dark: #a9472f;
    --cream: #faf8f3;
    --surface: #fffefa;
    --charcoal: #202522;
    --muted: #68716b;
    --line: #dedfd9;
    --sidebar-width: 248px;
}

html { font-size: 15px; }
html, body { min-height: 100%; }
body {
    margin: 0;
    background: var(--cream);
    color: var(--charcoal);
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    line-height: 1.55;
}
a { color: var(--forest); }
.btn { min-height: 44px; border-radius: .45rem; font-weight: 650; }
.btn-primary { background: var(--terracotta); border-color: var(--terracotta); }
.btn-primary:hover, .btn-primary:focus { background: var(--terracotta-dark); border-color: var(--terracotta-dark); }
.form-control:focus, .form-select:focus, .btn:focus-visible, a:focus-visible {
    border-color: var(--forest);
    box-shadow: 0 0 0 .22rem rgba(22, 75, 59, .18);
}

/* Editorial text uses two restrained heading levels. Keep the editor preview
   aligned with the published article/news body instead of browser defaults. */
.ck-editor__editable_inline h2,
.article-editor-content h2,
.article-body h2 {
    font-size: 1.2rem;
    font-weight: 700;
    line-height: 1.35;
    margin: 1.35rem 0 .55rem;
}

.ck-editor__editable_inline h3,
.article-editor-content h3,
.article-body h3 {
    font-size: 1.05rem;
    font-weight: 700;
    line-height: 1.4;
    margin: 1.1rem 0 .45rem;
}

.app-shell.is-authenticated { margin-left: var(--sidebar-width); min-height: 100vh; }
.admin-main { width: min(100%, 1320px); padding: 2.25rem 2.5rem 6rem; margin: 0 auto; }
.admin-sidebar {
    --bs-offcanvas-width: var(--sidebar-width);
    position: fixed; inset: 0 auto 0 0; width: var(--sidebar-width); height: 100vh;
    color: #fff; background: var(--forest); z-index: 1040; border: 0;
}
.admin-sidebar .offcanvas-header { display: flex; padding: 1.6rem 1.35rem 1.2rem; }
.admin-sidebar .offcanvas-body { display: flex; min-height: 0; flex-direction: column; padding: 0 .9rem 1rem; overflow: hidden; }
.admin-brand { display: flex; gap: .7rem; align-items: center; color: #fff; text-decoration: none; font-size: 1.05rem; font-weight: 750; }
.admin-brand > i { font-size: 1.55rem; color: #dce8c6; }
.admin-brand span { display: flex; flex-direction: column; line-height: 1.05; }
.admin-brand small { color: #cbdccf; font-size: .68rem; font-weight: 650; letter-spacing: .12em; text-transform: uppercase; }
.admin-nav { display: flex; min-height: 0; flex: 1 1 auto; flex-direction: column; gap: .18rem; padding-right: .25rem; overflow-x: hidden; overflow-y: auto; overscroll-behavior: contain; scrollbar-color: rgba(255,255,255,.35) transparent; scrollbar-width: thin; }
.admin-nav::-webkit-scrollbar { width: 6px; }
.admin-nav::-webkit-scrollbar-thumb { border-radius: 999px; background: rgba(255,255,255,.35); }
.admin-nav-intro { display: flex; flex-direction: column; gap: .1rem; padding: .15rem .75rem .35rem; color: #fff; }
.admin-nav-intro span { font-size: .7rem; font-weight: 750; letter-spacing: .08em; text-transform: uppercase; }
.admin-nav-intro small { color: #b9d0c6; font-size: .75rem; }
.admin-nav-heading { display: flex; align-items: center; justify-content: space-between; width: 100%; margin: .85rem 0 .2rem; padding: .45rem .75rem; border: 0; color: #b9d0c6; background: transparent; text-align: left; }
.admin-nav-heading > span { display: flex; flex-direction: column; gap: .1rem; min-width: 0; }
.admin-nav-heading strong { color: #b9d0c6; font-size: .68rem; font-weight: 750; letter-spacing: .08em; line-height: 1.25; text-transform: uppercase; }
.admin-nav-heading small { color: rgba(238,245,241,.68); font-size: .72rem; font-weight: 450; letter-spacing: 0; line-height: 1.25; text-transform: none; }
.admin-nav-heading i { transition: transform .2s ease; }
.admin-nav-heading[aria-expanded="true"] i { transform: rotate(180deg); }
.admin-nav-heading:hover, .admin-nav-heading:hover strong { color: #fff; }
.admin-help-button { align-items: center; background: #fff; border: 1px solid #d8e3dd; border-radius: 999px; box-shadow: 0 4px 14px rgba(24,75,58,.12); color: var(--forest); display: inline-flex; height: 2.7rem; justify-content: center; position: fixed; right: 1.5rem; top: 1.25rem; width: 2.7rem; z-index: 1040; }
.admin-help-button:hover, .admin-help-button:focus { background: var(--forest); border-color: var(--forest); color: #fff; }
.admin-help-button:focus-visible { outline: 3px solid rgba(22,75,59,.3); outline-offset: 3px; }
.admin-help-panel { background: #fff; border: 1px solid #d8e3dd; border-radius: .85rem; box-shadow: 0 16px 44px rgba(24,75,58,.2); max-height: calc(100dvh - 5.25rem); overflow-y: auto; padding: 1.15rem 1.25rem 1rem; position: fixed; right: 1.5rem; top: 4.25rem; width: min(760px, calc(100vw - 3rem)); z-index: 1039; }
.admin-help-panel-header { align-items: flex-start; border-bottom: 1px solid #e8eeeb; display: flex; justify-content: space-between; margin-bottom: 1rem; padding-bottom: .85rem; }
.admin-help-kicker { color: var(--muted); font-size: .72rem; font-weight: 750; letter-spacing: .08em; text-transform: uppercase; }
.admin-help-panel h2 { color: var(--forest); font-size: 1.2rem; margin: 0; }
.admin-help-close { background: transparent; border: 0; color: var(--muted); font-size: 1.6rem; line-height: 1; padding: 0 .2rem; }
.admin-help-close:hover, .admin-help-close:focus { color: var(--forest); }
.admin-help-steps { display: grid; gap: .6rem; }
.admin-help-details { background: #f7faf8; border: 1px solid #e2eae5; border-radius: .7rem; }
.admin-help-details summary { align-items: center; cursor: pointer; display: flex; gap: .65rem; list-style: none; padding: .75rem .8rem; }
.admin-help-details summary::-webkit-details-marker { display: none; }
.admin-help-details summary::after { color: var(--muted); content: '+'; font-size: 1.1rem; margin-left: auto; }
.admin-help-details[open] summary::after { content: '−'; }
.admin-help-details-body { border-top: 1px solid #e2eae5; padding: .75rem .8rem .85rem 3.15rem; }
.admin-help-details-body p, .admin-help-details-body li { color: var(--muted); font-size: .84rem; line-height: 1.45; }
.admin-help-details-body ol { margin-bottom: 0; padding-left: 1.15rem; }
.admin-help-details-body li { margin-bottom: .25rem; }
.admin-help-step { background: #f7faf8; border: 1px solid #e2eae5; border-radius: .7rem; display: flex; gap: .75rem; padding: .8rem; }
.admin-help-step-number { align-items: center; background: var(--forest); border-radius: 999px; color: #fff; display: inline-flex; flex: 0 0 1.65rem; font-size: .8rem; font-weight: 750; height: 1.65rem; justify-content: center; }
.admin-help-step-content { min-width: 0; }
.admin-help-step h3 { font-size: .95rem; margin: .08rem 0 .35rem; }
.admin-help-step p { color: var(--muted); font-size: .84rem; line-height: 1.45; margin-bottom: .65rem; }
.admin-help-image { background: #fff; border: 1px solid #dfe7e2; border-radius: .4rem; display: block; max-height: 110px; max-width: 100%; object-fit: contain; width: auto; }
.admin-help-panel-footer { align-items: center; color: var(--muted); display: flex; font-size: .78rem; gap: 1rem; justify-content: space-between; margin-top: 1rem; }
.admin-help-full-link { color: var(--forest); font-weight: 650; }
.admin-nav-group { padding-bottom: .15rem; }
.admin-nav-link { display: flex; align-items: center; gap: .8rem; min-height: 44px; padding: .65rem .75rem; color: #eef5f1; border-radius: .45rem; text-decoration: none; font-weight: 560; }
.admin-nav-link-with-badge { justify-content: flex-start; }
.admin-nav-link i { width: 1.35rem; font-size: 1.2rem; text-align: center; }
.admin-nav-link:hover { color: #fff; background: rgba(255,255,255,.09); }
.admin-nav-link.active { color: #fff; background: rgba(255,255,255,.17); box-shadow: inset 3px 0 #dce8c6; }
.nav-alert-dot { width: .56rem; height: .56rem; margin-left: auto; border-radius: 50%; background: #ff3b30; box-shadow: 0 0 0 2px rgba(255,255,255,.2); }
.admin-nav-sublink { display: flex; align-items: center; min-height: 38px; margin-left: 2.9rem; padding: .4rem .55rem; color: #d9e8e1; border-radius: .35rem; text-decoration: none; font-size: .88rem; line-height: 1.25; }
.admin-nav-sublink:hover { color: #fff; background: rgba(255,255,255,.09); }
.admin-nav-sublink.active { color: #fff; background: rgba(255,255,255,.16); font-weight: 700; }
.sidebar-user { flex: 0 0 auto; margin-top: .65rem; padding-top: .65rem; border-top: 1px solid rgba(255,255,255,.16); }
.sidebar-user-button { display: flex; align-items: center; width: 100%; gap: .65rem; padding: .35rem; border: 0; color: #fff; background: transparent; text-align: left; }
.sidebar-user-button span:not(.user-avatar) { display: flex; min-width: 0; flex-direction: column; }
.sidebar-user-button strong, .sidebar-user-button small { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sidebar-user-button small { color: #cbdccf; }
.sidebar-alert-dot { display: inline-flex; width: .55rem; height: .55rem; border-radius: 50%; background: #ff3b30; }
.user-avatar { display: grid; place-items: center; flex: 0 0 38px; width: 38px; height: 38px; border-radius: 50%; color: #fff; background: rgba(255,255,255,.17); font-size: .78rem; font-weight: 750; }
.mobile-header, .mobile-bottom-nav { display: none; }

/* Contextual navigation: workspace selection is one level, functions another. */
.admin-workspace-bar { position: fixed; top: 0; right: 0; left: var(--sidebar-width); z-index: 1025; display: flex; align-items: stretch; gap: .2rem; min-height: 64px; padding: .55rem 2.2rem; border-bottom: 1px solid #dfe8e2; background: rgba(255,254,250,.96); box-shadow: 0 4px 18px rgba(28,45,36,.06); backdrop-filter: blur(14px); }
.admin-workspace-bar a { display: inline-flex; align-items: center; gap: .45rem; min-height: 42px; padding: .55rem .85rem; border: 1px solid transparent; border-radius: .55rem; color: #5d6c65; font-size: .82rem; font-weight: 700; text-decoration: none; white-space: nowrap; }
.admin-workspace-bar a:hover { color: var(--forest); background: #f1f6f2; }
.admin-workspace-bar a.active { color: #fff; border-color: var(--forest); background: var(--forest); box-shadow: 0 5px 14px rgba(22,75,59,.18); }
.admin-workspace-bar a i { font-size: 1rem; }
.admin-context-bar { gap: .35rem; overflow-x: auto; scrollbar-width: thin; }
.admin-context-bar-title { display: inline-flex; align-items: center; padding: 0 .65rem 0 .1rem; color: var(--forest); font-size: .72rem; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; white-space: nowrap; }
.admin-context-bar-divider { display: inline-flex; align-items: center; margin-left: .35rem; padding-left: .7rem; border-left: 1px solid #d9e3dc; color: #89958f; font-size: .68rem; font-weight: 800; letter-spacing: .04em; text-transform: uppercase; white-space: nowrap; }
.admin-context-bar a:not(:has(i)) { min-height: 34px; padding: .4rem .6rem; font-size: .76rem; }
.admin-context-nav { gap: .22rem; }
.admin-context-nav .admin-context-heading { display: flex; flex-direction: column; gap: .15rem; margin: .1rem .35rem .7rem; padding: .6rem .7rem .75rem; border-bottom: 1px solid rgba(255,255,255,.15); }
.admin-context-heading span { color: #b9d0c6; font-size: .67rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; }
.admin-context-heading strong { color: #fff; font-size: 1rem; letter-spacing: -.01em; }
.admin-context-divider { margin: .95rem .45rem .2rem; padding: .35rem .3rem .2rem; border-top: 1px solid rgba(255,255,255,.14); color: #a9c2b7; font-size: .68rem; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; }
.admin-context-nav .admin-nav-sublink { margin-left: 1.25rem; }
.admin-sidebar-tools { margin-top: 1rem; padding-top: 1rem; border-top: 1px solid rgba(217, 227, 220, .75); }
.admin-nav-section-label { padding: .8rem .75rem .25rem; color: #89958f; font-size: .68rem; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; }
.admin-nav-legacy { display: none !important; }
.app-shell.is-authenticated .admin-main { padding-top: 5.3rem; }
.admin-context-nav .admin-nav-link.active { box-shadow: inset 3px 0 #e0a12d; }

@media (max-width: 991.98px) {
    .admin-context-bar { top: var(--mobile-header-height); left: 0; min-height: 52px; padding: .35rem .5rem; }
    .admin-context-bar-title { display: none; }
    .admin-context-bar a { min-height: 36px; padding: .45rem .65rem; font-size: .76rem; }
    .app-shell.is-authenticated .admin-main { padding-top: 4.8rem; }
    .admin-context-nav .admin-context-heading { margin-top: 0; }
}

/* Bootstrap gör responsiva offcanvas-paneler transparenta på desktop.
   Sidomenyn är en permanent yta där och måste därför återställa sin bakgrund. */
@media (min-width: 992px) {
    .admin-sidebar.offcanvas-lg {
        background: var(--forest) !important;
        color: #fff !important;
    }
    .admin-sidebar.offcanvas-lg .offcanvas-header {
        display: flex;
    }
    .admin-sidebar.offcanvas-lg .offcanvas-body {
        flex-grow: 1;
        padding: 0 .9rem 1rem;
        overflow: hidden;
        background: var(--forest) !important;
    }
}

/* Recipe workflow */
#editTabs { display: flex; flex-wrap: nowrap; gap: 0; margin: 1.5rem 0 0 !important; border: 0; overflow-x: auto; scrollbar-width: none; }
#editTabs::-webkit-scrollbar { display: none; }
#editTabs .nav-item { flex: 1 0 auto; }
#editTabs .nav-link { position: relative; width: 100%; min-height: 48px; padding: .7rem 1rem; border: 0; border-bottom: 2px solid var(--line); border-radius: 0; color: var(--muted); background: transparent; white-space: nowrap; }
#editTabs .nav-link:hover { color: var(--forest); border-bottom-color: var(--forest-soft); }
#editTabs .nav-link.active { color: var(--forest); border-bottom-color: var(--forest); background: transparent; font-weight: 750; }
#editTabs .nav-link.disabled { color: #a6aaa7; }
.tab-content { border: 0 !important; padding: 2rem 0 !important; }

.recipe-image-workspace { max-width: 1080px; }
.image-step-intro { display: flex; align-items: flex-start; justify-content: space-between; gap: 1rem; margin-bottom: 1.6rem; }
.image-step-intro h3 { margin: .15rem 0 .35rem; font-size: clamp(1.6rem, 3vw, 2.05rem); font-weight: 760; }
.image-step-intro p { max-width: 650px; margin: 0; color: var(--muted); }
.step-kicker { color: var(--forest); font-size: .78rem; font-weight: 750; letter-spacing: .04em; text-transform: uppercase; }
.draft-badge { display: inline-flex; align-items: center; gap: .45rem; padding: .35rem .65rem; border: 1px solid #ead8bd; border-radius: 999px; color: #665237; background: #fff6e7; font-size: .78rem; font-weight: 650; }
.draft-badge i { color: #d59a3a; font-size: .5rem; }
.draft-badge.is-published { border-color: #bad8c3; color: #245b36; background: #eef8f1; }
.draft-badge.is-published i { color: #36a361; }
.image-editor-grid { display: grid; grid-template-columns: minmax(0, 1.7fr) minmax(260px, .8fr); gap: 1.35rem; align-items: start; }
.image-canvas { position: relative; display: grid; place-items: center; min-height: 470px; overflow: hidden; border: 1px dashed #a9b6ae; border-radius: .65rem; background: #f1f2ed; }
.image-canvas img { width: 100%; height: 100%; max-height: 620px; object-fit: cover; cursor: crosshair; }
.image-canvas.has-image { border-style: solid; }
.image-canvas.has-image::after { position: absolute; inset: 0; pointer-events: none; box-shadow: inset 0 0 calc(var(--edge-blur-preview, 0) * 70px) calc(var(--edge-blur-preview, 0) * 18px) rgba(255,255,255,.72); content: ""; }
.crop-guide { position: absolute; inset: 9%; border: 2px dashed rgba(255,255,255,.92); border-radius: .2rem; pointer-events: none; box-shadow: 0 0 0 999px rgba(15,30,24,.14); }
.focus-dot { position: absolute; display: none; width: 26px; height: 26px; border: 3px solid #fff; border-radius: 50%; background: var(--terracotta); box-shadow: 0 2px 8px rgba(0,0,0,.25); pointer-events: none; transform: translate(-50%, -50%); }
.image-empty-state { display: flex; align-items: center; flex-direction: column; gap: .4rem; color: var(--muted); text-align: center; }
.image-empty-state i { color: var(--forest); font-size: 2.4rem; }
.no-picture-placeholder { display: flex; align-items: center; justify-content: center; width: 100%; min-height: 58px; border: 1px dashed #b9c2bc; border-radius: .65rem; color: var(--muted); background: #f1f2ed; font-size: .8rem; font-weight: 750; text-align: center; }
.no-picture-placeholder.is-thumb { flex: 0 0 76px; width: 76px; height: 58px; min-height: 58px; border-radius: .7rem; font-size: .68rem; line-height: 1.05; }
.no-picture-placeholder.is-focus { width: 180px; height: 120px; min-height: 120px; }
.no-picture-placeholder.is-card-desktop { height: 180px; min-height: 180px; border-width: 0 0 1px; border-radius: 0; }
.no-picture-placeholder.is-card-mobile { height: 120px; min-height: 120px; border-width: 0 0 1px; border-radius: 0; }
.no-picture-placeholder.is-summary { min-height: 160px; margin-bottom: 1rem; }
.image-help { display: flex; gap: .5rem; margin: .65rem 0 0; color: var(--muted); font-size: .86rem; }
.image-actions-panel form { display: flex; flex-direction: column; gap: .7rem; }
.btn-camera, .btn-library, .btn-save-image { display: inline-flex; justify-content: center; align-items: center; gap: .65rem; width: 100%; min-height: 52px; }
.btn-camera { color: #fff; background: var(--terracotta); border-color: var(--terracotta); font-size: 1rem; }
.btn-camera:hover { color: #fff; background: var(--terracotta-dark); border-color: var(--terracotta-dark); }
.btn-library { color: var(--forest); background: transparent; border: 1px solid var(--forest); }
.btn-library:hover { color: #fff; background: var(--forest); }
.btn-save-image { margin-top: .15rem; color: #fff; background: var(--forest); border-color: var(--forest); }
.btn-save-image:disabled { color: #7b827e; background: #e7e9e5; border-color: #e7e9e5; }
.action-help { margin: -.35rem 0 .35rem; color: var(--muted); font-size: .8rem; text-align: center; }
.recipe-card-preview { margin-top: 2rem; overflow: hidden; border: 1px solid var(--line); border-radius: .65rem; background: var(--surface); }
.recipe-card-preview h4 { margin: 0; padding: .8rem .9rem; border-bottom: 1px solid var(--line); font-size: .92rem; }
.recipe-card-preview img { width: 100%; aspect-ratio: 16/9; object-fit: cover; }
.recipe-card-preview > div { display: flex; flex-direction: column; gap: .15rem; padding: .75rem .9rem; }
.recipe-card-preview small { display: -webkit-box; overflow: hidden; color: var(--muted); -webkit-box-orient: vertical; -webkit-line-clamp: 2; }

@media (max-width: 991.98px) {
    .admin-help-button { right: 1rem; top: 4.4rem; }
    .admin-help-panel { max-height: calc(100dvh - 8.4rem); right: 1rem; top: 7.4rem; width: calc(100vw - 2rem); }
    .admin-help-steps { grid-template-columns: 1fr; }
    :root { --mobile-header-height: 62px; --mobile-nav-height: 72px; }
    body { padding-top: var(--mobile-header-height); padding-bottom: calc(var(--mobile-nav-height) + env(safe-area-inset-bottom)); }
    .app-shell.is-authenticated { margin-left: 0; }
    .admin-main { padding: 1.35rem 1rem 2rem; }
    .mobile-header { position: fixed; inset: 0 0 auto; z-index: 1035; display: grid; grid-template-columns: 44px 1fr 44px; align-items: center; height: var(--mobile-header-height); padding: 0 .75rem; color: #fff; background: var(--forest); box-shadow: 0 2px 10px rgba(16,60,48,.16); }
    .mobile-menu-button { display: grid; place-items: center; width: 44px; height: 44px; border: 0; color: #fff; background: transparent; font-size: 1.55rem; }
    .mobile-brand { color: #fff; text-decoration: none; text-align: center; font-size: 1.05rem; font-weight: 720; }
    .mobile-brand span { color: #dce8c6; font-size: .78rem; }
    .mobile-header .user-avatar { width: 34px; height: 34px; justify-self: end; }
    .admin-sidebar { position: fixed; z-index: 1055; height: 100dvh; max-width: min(86vw, var(--sidebar-width)); }
    .admin-sidebar .offcanvas-body { overflow-y: auto; }
    .admin-sidebar .admin-nav { overflow-y: visible; }
    .mobile-bottom-nav { position: fixed; inset: auto 0 0; z-index: 1030; display: grid; grid-template-columns: repeat(5, 1fr); height: calc(var(--mobile-nav-height) + env(safe-area-inset-bottom)); padding: .35rem .25rem env(safe-area-inset-bottom); border-top: 1px solid var(--line); background: rgba(255,254,250,.97); box-shadow: 0 -4px 16px rgba(28,37,32,.08); }
    .mobile-bottom-nav a, .mobile-bottom-nav button { display: flex; align-items: center; flex-direction: column; justify-content: center; gap: .1rem; border: 0; color: #657069; background: transparent; text-decoration: none; font-size: .68rem; }
    .mobile-bottom-nav i { font-size: 1.25rem; }
    .mobile-bottom-nav .active { color: var(--forest); font-weight: 750; }
    .mobile-bottom-nav .mobile-create i { display: grid; place-items: center; width: 42px; height: 42px; margin-top: -1.25rem; border-radius: 50%; color: #fff; background: var(--forest); }
    .image-editor-grid { grid-template-columns: 1fr; }
    .image-canvas { min-height: 360px; }
    .image-actions-panel { display: flex; flex-direction: column; }
    .image-actions-panel form { order: 0; }
    .recipe-card-preview { order: 1; margin-top: 1.25rem; }
}

@media (max-width: 575.98px) {
    html { font-size: 16px; }
    .admin-main > h2 { font-size: 1.45rem; }
    #editTabs { margin-left: -1rem !important; margin-right: -1rem !important; padding: 0 .5rem; }
    #editTabs .nav-link { padding-inline: .75rem; font-size: .83rem; }
    .tab-content { padding-top: 1.25rem !important; }
    .image-step-intro { margin-bottom: 1rem; }
    .draft-badge { display: none; }
    .image-canvas { min-height: 0; aspect-ratio: 4/3; border-radius: .5rem; }
    .btn-camera, .btn-library, .btn-save-image { min-height: 54px; }
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; }
}

/* Ingredient verification workspace */
.ingredient-review-header { display:flex; align-items:flex-start; justify-content:space-between; gap:1rem; margin-bottom:1.15rem; }
.ingredient-review-header h1 { margin:.1rem 0 .35rem; color:#20352c; font-size:clamp(1.55rem,3vw,2.25rem); letter-spacing:-.03em; }
.ingredient-review-header h1 span { color:var(--terracotta); }
.ingredient-review-header p { max-width:680px; margin:0; color:var(--muted); }
.ingredient-review-kicker { display:block; color:var(--forest); font-size:.72rem; font-weight:800; letter-spacing:.08em; text-transform:uppercase; }
.ingredient-review-status { display:inline-flex; align-items:center; gap:.45rem; padding:.55rem .8rem; border-radius:999px; font-size:.8rem; font-weight:750; white-space:nowrap; }
.ingredient-review-status.is-draft { color:#805b16; background:#fff4d8; border:1px solid #ecd399; }
.ingredient-review-status.is-published { color:#21623a; background:#e8f7ed; border:1px solid #b8dec4; }
.ingredient-review-overview, .ingredient-current-values, .ingredient-search-panel, .ingredient-source-section { margin:0 0 1.2rem; padding:1.15rem; border:1px solid #dfe8e2; border-radius:1rem; background:#fff; box-shadow:0 5px 20px rgba(24,75,58,.055); }
.ingredient-review-overview { display:grid; grid-template-columns:minmax(200px,.75fr) minmax(0,1.65fr); gap:1.3rem; align-items:center; background:linear-gradient(135deg,#f2faf5,#fffaf1); }
.ingredient-overview-copy h2, .ingredient-section-heading h2, .ingredient-current-heading h2 { margin:.1rem 0 .3rem; color:#20352c; font-size:1.2rem; }
.ingredient-overview-copy p, .ingredient-section-heading p { margin:0; color:var(--muted); font-size:.86rem; line-height:1.45; }
.ingredient-review-steps { display:grid; grid-template-columns:repeat(4,1fr); gap:.65rem; list-style:none; padding:0; margin:0; }
.ingredient-review-steps li { position:relative; display:flex; flex-direction:column; gap:.22rem; padding:.7rem .65rem .7rem 2.4rem; min-height:74px; border:1px solid #e3e9e4; border-radius:.7rem; background:#fff; }
.ingredient-review-steps li > span { position:absolute; top:.7rem; left:.65rem; display:grid; place-items:center; width:1.35rem; height:1.35rem; border-radius:50%; color:#52635a; background:#edf1ee; font-size:.72rem; font-weight:800; }
.ingredient-review-steps li.is-current { border-color:#b7d8c4; box-shadow:inset 0 0 0 1px #d6ede0; }
.ingredient-review-steps li.is-current > span { color:#fff; background:var(--forest); }
.ingredient-review-steps strong { color:#2b4037; font-size:.8rem; line-height:1.15; }
.ingredient-review-steps small { color:var(--muted); font-size:.7rem; line-height:1.2; }
.ingredient-current-heading, .ingredient-section-heading { display:flex; align-items:flex-start; justify-content:space-between; gap:1rem; margin-bottom:.85rem; }
.ingredient-unit-note, .ingredient-result-count { color:var(--muted); font-size:.78rem; font-weight:700; }
.ingredient-value-grid { display:grid; grid-template-columns:repeat(6,1fr); gap:.65rem; }
.ingredient-value-grid > div { padding:.7rem; border:1px solid #e7ece8; border-radius:.7rem; background:#fbfcfb; }
.ingredient-value-grid span, .ingredient-value-grid em { display:block; color:var(--muted); font-size:.72rem; font-style:normal; }
.ingredient-value-grid strong { display:block; margin:.2rem 0; color:var(--forest); font-size:1.3rem; }
.ingredient-value-grid strong small { font-size:.7rem; font-weight:700; }
.ingredient-section-heading.compact { margin-bottom:.55rem; }
.source-value-chips { display:flex; flex-wrap:wrap; gap:.3rem; min-width:260px; }
.source-value-chips span { padding:.18rem .4rem; border-radius:999px; color:#41554b; background:#eef4ef; font-size:.7rem; white-space:nowrap; }
.ingredient-source-section table { margin-bottom:0; vertical-align:middle; }
.ingredient-source-section table th { color:#68766e; font-size:.72rem; letter-spacing:.03em; text-transform:uppercase; }
.ingredient-source-section table td { color:#2d4037; font-size:.86rem; }
@media (max-width: 900px) { .ingredient-review-overview { grid-template-columns:1fr; } .ingredient-review-steps { grid-template-columns:repeat(2,1fr); } .ingredient-value-grid { grid-template-columns:repeat(3,1fr); } }
@media (max-width: 650px) { .ingredient-review-header { flex-direction:column; } .ingredient-review-overview, .ingredient-current-values, .ingredient-search-panel, .ingredient-source-section { padding:.9rem; border-radius:.8rem; } .ingredient-review-steps { grid-template-columns:1fr; } .ingredient-value-grid { grid-template-columns:repeat(2,1fr); } .source-value-chips { min-width:0; } .ingredient-source-section { overflow-x:auto; } .ingredient-source-section table { min-width:760px; } }

/* Recipe editor workspace */
.recipe-editor-heading { align-items: flex-start; display: flex; justify-content: space-between; margin: 0 auto 1.5rem; max-width: 1250px; }
.recipe-editor-actions { align-items: center; display: flex; flex-wrap: wrap; gap: .55rem; justify-content: flex-end; }
.recipe-editor-actions .btn { min-height: 40px; }
.recipe-flow-summary { align-items: baseline; display: flex; gap: .7rem; margin: 0 auto .6rem; max-width: 1250px; }
.recipe-flow-summary span { color: var(--forest); font-size: .72rem; font-weight: 750; letter-spacing: .08em; text-transform: uppercase; }
.recipe-flow-summary strong { color: #28362f; font-size: .95rem; }
.recipe-flow-summary small { color: var(--muted); }
.recipe-editor-tabs { background: #f5f8f6; border: 1px solid #e1e8e4; border-radius: 1rem 1rem 0 0; flex-wrap: nowrap; margin: 0 auto !important; max-width: 1250px; overflow-x: auto; padding: .65rem .65rem 0; scrollbar-width: thin; }
.recipe-stepper .nav-item { counter-increment: recipe-step; }
.recipe-stepper { counter-reset: recipe-step; }
.recipe-stepper .nav-link { align-items: center; display: inline-flex; flex-wrap: wrap; }
.recipe-stepper .nav-link::before { align-items: center; background: #e3ebe6; border-radius: 999px; color: #627169; content: counter(recipe-step); display: inline-flex; flex: 0 0 1.35rem; font-size: .72rem; font-weight: 750; height: 1.35rem; justify-content: center; margin-right: .4rem; width: 1.35rem; }
.recipe-step-label { line-height: 1.15; }
.recipe-step-status { color: #75827b; flex-basis: 100%; font-size: .68rem; font-weight: 500; margin-left: 1.75rem; margin-top: .16rem; }
.recipe-stepper .nav-link.active .recipe-step-status { color: var(--forest); }
.recipe-next-step { align-items: center; border-top: 1px solid #e5ece8; display: flex; flex-wrap: wrap; gap: .6rem; justify-content: flex-end; margin-top: 1.25rem; padding-top: 1rem; }
.recipe-stepper .nav-link.active::before { background: var(--forest); color: #fff; }
.recipe-stepper .nav-link.disabled::before { opacity: .65; }
.recipe-editor-tabs .nav-link { border: 0; border-radius: .7rem .7rem 0 0; color: #59665f; font-weight: 600; padding: .8rem 1rem; white-space: nowrap; }
.recipe-editor-tabs .nav-link:hover { background: #eaf2ee; color: #176b50; }
.recipe-editor-tabs .nav-link.active { background: #fff; color: #176b50; box-shadow: 0 -2px 8px rgba(24,75,58,.06); }
.recipe-editor-content { background: #fff; border: 1px solid #e1e8e4; border-radius: 0 0 1rem 1rem; box-shadow: 0 8px 28px rgba(24,75,58,.07); margin: 0 auto; max-width: 1250px; padding: 1.25rem; }
.recipe-editor-content .card { border-radius: 1rem; }
.recipe-image-workspace .mobile-preview { max-width: 330px; }
.recipe-image-workspace .mobile-preview img { height: 120px; }
.recipe-image-workspace .crop-guide { left: 50%; top: 50%; transform: translate(-50%,-50%); transition: width .15s ease,height .15s ease; }
@media (max-width: 767.98px) { .recipe-editor-heading { flex-direction: column; } .recipe-editor-actions { justify-content: flex-start; width: 100%; } .recipe-editor-actions .btn { flex: 1 1 auto; } .recipe-editor-content { padding: .85rem; } .recipe-editor-tabs .nav-link { padding: .7rem .8rem; } }
.creation-choice-grid { display: grid; gap: .85rem; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.creation-choice { align-items: flex-start; border: 1px solid #dfe8e2; border-radius: .75rem; display: flex; gap: .75rem; padding: 1rem; }
.creation-choice-manual { background: #fbfcfb; }
.creation-choice-ai { background: #f4f9ff; border-color: #cbdcff; }
.creation-choice-icon { align-items: center; background: #e6eee9; border-radius: .55rem; color: var(--forest); display: inline-flex; flex: 0 0 2.2rem; height: 2.2rem; justify-content: center; }
.creation-choice-ai .creation-choice-icon { background: #e5edff; color: #365edc; }
.creation-choice h3 { font-size: .98rem; margin: .05rem 0 .25rem; }
.creation-choice p { color: var(--muted); font-size: .82rem; line-height: 1.4; margin-bottom: .65rem; }
.ai-create-panel:empty { display: none; }
@media (max-width: 767.98px) { .recipe-flow-summary { align-items: flex-start; flex-direction: column; gap: .15rem; } .creation-choice-grid { grid-template-columns: 1fr; } }

/* Website settings */
.settings-page { max-width: 1180px; margin: 0 auto; }
.settings-header { display: flex; align-items: flex-start; justify-content: space-between; gap: 2rem; margin-bottom: 1.75rem; }
.settings-header h1 { margin: .15rem 0 .35rem; font-size: clamp(1.8rem, 3vw, 2.35rem); font-weight: 780; letter-spacing: -.035em; }
.settings-header p { margin: 0; color: var(--muted); }
.settings-eyebrow { color: var(--terracotta); font-size: .76rem; font-weight: 780; letter-spacing: .1em; text-transform: uppercase; }
.settings-view-site { display: inline-flex; align-items: center; gap: .55rem; border: 1px solid var(--line); color: var(--forest); background: var(--surface); }
.settings-view-site:hover { color: #fff; background: var(--forest); border-color: var(--forest); }
.settings-toast { display: flex; align-items: center; gap: .7rem; margin: -1rem 0 1.25rem; padding: .8rem 1rem; border: 1px solid #bad8c3; border-radius: .65rem; color: #1f6737; background: #eef8f1; }
.settings-tabs { display: inline-flex; gap: .3rem; margin-bottom: 1.4rem; padding: .3rem; border: 1px solid var(--line); border-radius: .7rem; background: #eeeee9; }
.settings-tabs a { display: inline-flex; align-items: center; gap: .5rem; min-height: 42px; padding: .55rem .9rem; border-radius: .48rem; color: var(--muted); text-decoration: none; font-weight: 650; }
.settings-tabs a:hover { color: var(--forest); }
.settings-tabs a.active { color: var(--forest); background: var(--surface); box-shadow: 0 1px 4px rgba(26,45,36,.1); }
.hero-settings-form { display: grid; grid-template-columns: minmax(340px, .78fr) minmax(520px, 1.3fr); gap: 1.25rem; align-items: start; }
.settings-editor-card, .hero-preview-panel { border: 1px solid var(--line); border-radius: .85rem; background: var(--surface); box-shadow: 0 8px 28px rgba(28,45,36,.05); }
.settings-editor-card { padding: 1.4rem; }
.settings-card-heading { display: flex; align-items: flex-start; gap: .8rem; margin-bottom: 1.35rem; padding-bottom: 1.1rem; border-bottom: 1px solid var(--line); }
.settings-card-heading h2 { margin: 0 0 .18rem; font-size: 1.15rem; font-weight: 760; }
.settings-card-heading p { margin: 0; color: var(--muted); font-size: .88rem; }
.settings-icon { display: grid; place-items: center; flex: 0 0 38px; width: 38px; height: 38px; border-radius: .55rem; color: var(--forest); background: var(--forest-soft); font-size: 1.05rem; }
.settings-field { margin-bottom: 1.1rem; }
.settings-field > label { display: flex; justify-content: space-between; margin-bottom: .38rem; font-size: .87rem; font-weight: 700; }
.settings-field small { display: block; margin-top: .3rem; color: var(--muted); font-size: .76rem; text-align: right; }
.settings-field .form-control { min-height: 46px; border-color: #cfd3ce; border-radius: .5rem; background: #fff; }
.hero-upload-zone { display: flex !important; align-items: center; gap: .75rem; min-height: 76px; padding: .75rem; border: 1px dashed #9eaaa2; border-radius: .6rem; background: #f8f8f4; cursor: pointer; }
.hero-upload-zone > i { color: var(--forest); font-size: 1.55rem; }
.hero-upload-zone > span:nth-child(2) { display: flex; min-width: 0; flex: 1; flex-direction: column; }
.hero-upload-zone small { margin: 0; text-align: left; }
.hero-upload-zone .btn { display: inline-flex; align-items: center; min-height: 38px; }
.upload-file-name { display: flex; align-items: center; gap: .6rem; margin-top: .5rem; padding: .5rem .65rem; border-radius: .45rem; color: var(--forest); background: var(--forest-soft); font-size: .82rem; }
.upload-file-name span { min-width: 0; flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.upload-file-name button { border: 0; color: var(--forest); background: transparent; }
.focus-controls { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.focus-controls output { color: var(--forest); font-weight: 750; }
.focus-controls input[type="range"] { width: 100%; accent-color: var(--forest); }
.settings-form-actions { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin: 1.35rem -1.4rem -1.4rem; padding: 1rem 1.4rem; border-top: 1px solid var(--line); border-radius: 0 0 .85rem .85rem; background: #fafaf7; }
.settings-form-actions > span { color: var(--muted); font-size: .8rem; }
.settings-form-actions .btn { display: inline-flex; align-items: center; gap: .5rem; white-space: nowrap; }
.hero-preview-panel { position: sticky; top: 1.25rem; overflow: hidden; }
.preview-toolbar { display: flex; align-items: center; justify-content: space-between; padding: .85rem 1rem; border-bottom: 1px solid var(--line); background: #fafaf7; }
.preview-toolbar > div { display: grid; grid-template-columns: auto auto; align-items: center; column-gap: .5rem; }
.preview-toolbar small { grid-column: 2; color: var(--muted); font-size: .72rem; }
.preview-live-dot { grid-row: 1 / span 2; width: 8px; height: 8px; border-radius: 50%; background: #36a361; box-shadow: 0 0 0 4px #dff3e6; }
.preview-toolbar .btn { min-height: 34px; color: var(--muted); font-size: .78rem; }
.site-hero-preview { min-height: 390px; background: #fcf9f2; }
.settings-page-image-grid { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: .8rem; }
.settings-page-image-field { display: flex; flex-direction: column; gap: .4rem; padding: .75rem; border: 1px solid var(--line); border-radius: .7rem; background: #fbfcfa; }
.settings-page-image-field strong { font-size: .85rem; }
.settings-page-image-preview { display: block; aspect-ratio: 16 / 9; overflow: hidden; border-radius: .5rem; background: #eee; }
.settings-page-image-preview img { width: 100%; height: 100%; object-fit: cover; }
.settings-page-image-field input[type=file] { width: 100%; font-size: .72rem; }
.settings-page-image-field small { color: var(--muted); font-size: .7rem; line-height: 1.25; }
.preview-hero-image { height: 205px; overflow: hidden; border-radius: 0 0 48% 0; }
.preview-hero-image img { width: 100%; height: 100%; object-fit: cover; }
.preview-hero-content { padding: 1.15rem 1.3rem 1.3rem; }
.preview-hero-content h2 { margin: 0; color: #36200e; font-family: Georgia, serif; font-size: clamp(1.6rem, 3.2vw, 2.35rem); font-weight: 700; letter-spacing: -.035em; }
.preview-hero-content > p { margin: .2rem 0 .8rem; color: #765b49; font-size: .8rem; }
.preview-finder { display: grid; grid-template-columns: repeat(3, 1fr) auto; gap: .45rem; padding: .55rem; border: 1px solid #ead8bd; border-radius: .65rem; background: #fff; }
.preview-finder span { display: flex; flex-direction: column; padding: .25rem .45rem; border-right: 1px solid #eee5d9; font-size: .67rem; }
.preview-finder b { margin-bottom: .15rem; color: #382313; font-size: .66rem; }
.preview-finder button { border: 0; border-radius: 999px; padding: .45rem .7rem; color: #fff; background: #ee9711; font-size: .65rem; font-weight: 750; white-space: nowrap; }
.preview-pills { display: flex; justify-content: flex-end; gap: .35rem; margin-top: .6rem; }
.preview-pills span { padding: .28rem .55rem; border: 1px solid #ead8bd; border-radius: 999px; color: #6b4b32; font-size: .62rem; }
.preview-note { margin: 0; padding: .65rem 1rem; border-top: 1px solid var(--line); color: var(--muted); background: #fafaf7; font-size: .75rem; text-align: center; }
.settings-single-column { max-width: 720px; }
.settings-dashboard-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1.25rem; align-items: start; }
.settings-inline-form { display: flex; gap: .65rem; margin-bottom: 1.2rem; }
.settings-list { overflow: hidden; border: 1px solid var(--line); border-radius: .55rem; }
.settings-list > div, .publish-row { display: flex; align-items: center; justify-content: space-between; gap: .75rem; padding: .7rem .8rem; border-bottom: 1px solid var(--line); }
.settings-list > div:last-child, .publish-row:last-child { border-bottom: 0; }
.settings-list span, .publish-row > span { display: flex; min-width: 0; flex-direction: column; }
.settings-list small, .publish-row small { overflow: hidden; color: var(--muted); font-size: .75rem; text-overflow: ellipsis; white-space: nowrap; }
.settings-list a { display: grid; place-items: center; width: 36px; height: 36px; border-radius: .4rem; text-decoration: none; }
.settings-list a:hover { background: var(--forest-soft); }
.publish-groups { margin-top: 1rem; }
.publish-groups details { border-bottom: 1px solid var(--line); }
.publish-groups summary { display: flex; justify-content: space-between; padding: .8rem .15rem; cursor: pointer; font-weight: 720; list-style: none; }
.publish-groups summary span { display: grid; place-items: center; min-width: 24px; height: 24px; border-radius: 999px; color: var(--forest); background: var(--forest-soft); font-size: .72rem; }
.publish-row { padding-inline: .15rem; }
.publish-row small::before { display: inline-block; width: 6px; height: 6px; margin-right: .35rem; border-radius: 50%; background: #b4b9b5; content: ""; }
.publish-row small.is-published { color: #287143; }
.publish-row small.is-published::before { background: #36a361; }
.publish-row .btn { min-height: 34px; border: 1px solid var(--line); font-size: .74rem; }

/* Admin review queues */
.review-page { max-width: 1180px; margin: 0 auto; }
.review-header { display: flex; align-items: flex-start; justify-content: space-between; gap: 1.5rem; margin-bottom: 1.35rem; }
.review-header h1 { margin: .15rem 0 .35rem; font-size: clamp(1.8rem, 3vw, 2.35rem); font-weight: 780; letter-spacing: 0; }
.review-header p { max-width: 720px; margin: 0; color: var(--muted); }
.review-eyebrow { color: var(--terracotta); font-size: .76rem; font-weight: 780; letter-spacing: .1em; text-transform: uppercase; }
.review-summary { display: grid; grid-template-columns: repeat(3, minmax(88px, 1fr)); gap: .55rem; min-width: 310px; }
.review-summary span { display: flex; flex-direction: column; justify-content: center; min-height: 76px; padding: .75rem .85rem; border: 1px solid var(--line); border-radius: .5rem; background: var(--surface); box-shadow: 0 6px 18px rgba(28,45,36,.05); }
.review-summary strong { color: var(--forest); font-size: 1.55rem; line-height: 1; }
.review-summary small { margin-top: .25rem; color: var(--muted); font-size: .74rem; font-weight: 700; text-transform: uppercase; }
.review-empty { display: grid; place-items: center; min-height: 280px; padding: 2rem; border: 1px dashed #b8c2bc; border-radius: .5rem; background: #f7f7f2; text-align: center; }
.review-empty i { color: #2f8f52; font-size: 2.6rem; }
.review-empty h2 { margin: .6rem 0 .2rem; font-size: 1.25rem; }
.review-empty p { margin: 0; color: var(--muted); }
.review-list, .issue-list { display: flex; flex-direction: column; gap: .85rem; }
.review-row, .issue-row { border: 1px solid var(--line); border-left-width: 4px; border-radius: .5rem; background: var(--surface); box-shadow: 0 8px 22px rgba(28,45,36,.05); }
.review-row { padding: 1rem; }
.review-row.is-ready { border-left-color: #36a361; }
.review-row.is-blocked { border-left-color: var(--terracotta); }
.review-row-main { display: grid; grid-template-columns: minmax(0, 1fr) 220px; gap: 1rem; align-items: start; }
.review-title-block h2 { margin: .35rem 0 .2rem; font-size: 1.2rem; font-weight: 760; }
.review-title-block p { display: -webkit-box; max-width: 760px; margin: 0; overflow: hidden; color: var(--muted); -webkit-box-orient: vertical; -webkit-line-clamp: 2; }
.review-state { display: inline-flex; align-items: center; gap: .4rem; min-height: 30px; padding: .22rem .55rem; border-radius: 999px; font-size: .76rem; font-weight: 750; }
.review-state.is-ready { color: #1f6737; background: #e8f6ed; }
.review-state.is-blocked { color: #8d3a24; background: #fff0e8; }
.review-progress { align-self: center; }
.review-progress span { display: block; margin-bottom: .35rem; color: var(--muted); font-size: .78rem; font-weight: 750; text-align: right; }
.review-progress-bar { height: 8px; overflow: hidden; border-radius: 999px; background: #eceee9; }
.review-progress-bar span { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, var(--forest), #3f8a60); }
.review-check-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(128px, 1fr)); gap: .45rem; margin-top: 1rem; }
.review-check { display: inline-flex; align-items: center; justify-content: center; gap: .4rem; min-height: 38px; padding: .45rem .55rem; border-radius: .42rem; font-size: .82rem; font-weight: 720; text-decoration: none; }
.review-check.is-ok { color: #1f6737; background: #edf8f0; }
.review-check.is-missing { border: 1px solid #efc6b8; color: #8d3a24; background: #fff8f5; }
.review-check.is-missing:hover { color: #fff; background: var(--terracotta); border-color: var(--terracotta); }
.review-issue-panel { display: flex; gap: .75rem; margin-top: .85rem; padding: .75rem .85rem; border: 1px solid #eed1c6; border-radius: .45rem; color: #693421; background: #fff8f4; }
.review-issue-panel > i { margin-top: .15rem; color: var(--terracotta); }
.review-issue-panel strong { display: block; margin-bottom: .15rem; }
.review-issue-panel ul, .review-issue-panel p { margin: 0; padding-left: 1rem; }
.review-issue-panel p { padding-left: 0; }
.review-actions { display: flex; align-items: center; justify-content: flex-end; gap: .55rem; margin-top: 1rem; padding-top: .85rem; border-top: 1px solid var(--line); }
.review-actions form { margin: 0; }
.review-actions .btn, .issue-actions .btn { display: inline-flex; align-items: center; justify-content: center; gap: .4rem; min-height: 38px; }
.issue-row { display: grid; grid-template-columns: 46px minmax(0, 1fr) auto; gap: .85rem; align-items: start; padding: .9rem; border-left-color: var(--terracotta); }
.issue-icon { display: grid; place-items: center; width: 42px; height: 42px; border-radius: .5rem; color: var(--terracotta); background: #fff0e8; font-size: 1.15rem; }
.issue-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: .75rem; }
.issue-heading h2 { margin: 0 0 .2rem; font-size: 1.08rem; font-weight: 760; }
.issue-heading p, .issue-muted { margin: 0; color: var(--muted); font-size: .86rem; }
.issue-badge { flex: 0 0 auto; padding: .25rem .55rem; border-radius: 999px; color: var(--forest); background: var(--forest-soft); font-size: .74rem; font-weight: 750; }
.issue-recipes { display: flex; flex-wrap: wrap; gap: .35rem; margin-top: .65rem; }
.issue-recipes span { max-width: 280px; overflow: hidden; padding: .28rem .5rem; border: 1px solid #e1e4df; border-radius: 999px; color: #425047; background: #f6f7f3; font-size: .78rem; text-overflow: ellipsis; white-space: nowrap; }
.issue-actions { display: flex; align-items: stretch; gap: .45rem; }
.issue-actions form { margin: 0; }

/* Ingredient import and AI handoff */
.ingredient-import-page { max-width: 1180px; }
.import-flow-guide { display: grid; grid-template-columns: repeat(3, 1fr); gap: .75rem; margin: 0 0 1.35rem; }
.import-flow-guide > div { display: grid; grid-template-columns: 30px 1fr; column-gap: .6rem; align-items: center; min-height: 72px; padding: .75rem .85rem; border: 1px solid var(--line); border-radius: .6rem; background: #fafaf7; }
.import-flow-guide span { grid-row: 1 / span 2; display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; color: #fff; background: var(--forest); font-weight: 800; }
.import-flow-guide strong { font-size: .88rem; }
.import-flow-guide small { color: var(--muted); font-size: .78rem; }
.import-search-form { max-width: 760px; }
.ai-create-card { display: flex; gap: 1rem; align-items: flex-start; padding: 1.15rem 1.2rem; border: 1px solid #d8e6de; border-left: 4px solid var(--forest); border-radius: .7rem; background: #f4faf6; }
.ai-create-icon { display: grid; place-items: center; flex: 0 0 42px; width: 42px; height: 42px; border-radius: .6rem; color: var(--forest); background: #e1f2e8; font-size: 1.2rem; }
.ai-create-content { min-width: 0; }
.ai-create-content h2 { margin: .12rem 0 .25rem; font-size: 1.15rem; }
.ai-create-content p { max-width: 760px; margin: 0; color: var(--muted); }
.ai-create-note { margin-top: .55rem !important; color: #53665b !important; font-size: .82rem; }
.nutrition-blocker-alert { border-left: 4px solid #b7472d; }
.nutrition-blocker-alert p { white-space: pre-line; }
.ai-image-prompt-card { margin-bottom: 1rem; padding: 1rem; border: 1px solid #d8e6de; border-left: 4px solid var(--forest); border-radius: .7rem; background: #f4faf6; }
.ai-image-prompt-heading { display: flex; align-items: center; gap: .65rem; margin-bottom: .6rem; }
.ai-image-prompt-heading h4 { margin: .1rem 0 0; font-size: 1rem; }
.ai-image-prompt-icon { display: grid; place-items: center; width: 36px; height: 36px; border-radius: .55rem; color: var(--forest); background: #e1f2e8; }
.ai-image-prompt-card textarea { resize: vertical; color: #35433b; background: #fff; }

/* Admin messages */
.messages-page { max-width: 1180px; margin: 0 auto; }
.messages-header { display: flex; align-items: flex-start; justify-content: space-between; gap: 1rem; margin-bottom: 1.1rem; }
.messages-header h1 { margin: .15rem 0 .35rem; font-size: clamp(1.7rem, 3vw, 2.1rem); font-weight: 760; letter-spacing: -.03em; }
.messages-unread-pill { display: inline-flex; align-items: center; min-height: 34px; padding: .35rem .7rem; border-radius: 999px; font-size: .78rem; font-weight: 760; white-space: nowrap; }
.messages-unread-pill.is-open { color: #892f20; background: #ffe8df; }
.messages-unread-pill.is-clear { color: #2b5b3d; background: #eaf6ee; }
.messages-grid { display: grid; grid-template-columns: minmax(240px, 320px) minmax(0, 1fr); gap: 1rem; }
.messages-sidebar, .messages-content { border: 1px solid var(--line); border-radius: .8rem; background: var(--surface); box-shadow: 0 6px 20px rgba(28,45,36,.05); }
.messages-sidebar { padding: 1rem; }
.messages-sidebar h2 { margin: 0 0 .8rem; font-size: 1rem; font-weight: 740; }
.messages-conversation-list { display: flex; flex-direction: column; gap: .35rem; }
.messages-conversation-item { display: flex; align-items: flex-start; justify-content: space-between; gap: .55rem; padding: .62rem .66rem; border: 1px solid transparent; border-radius: .55rem; color: inherit; text-decoration: none; }
.messages-conversation-item span { display: flex; flex-direction: column; min-width: 0; }
.messages-conversation-item strong, .messages-conversation-item small { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.messages-conversation-item small { color: var(--muted); }
.messages-conversation-item:hover { color: inherit; background: #f6f7f4; border-color: #e6e9e4; }
.messages-conversation-item.active { background: #edf5f1; border-color: #d3e1da; }
.messages-red-dot { width: .52rem; height: .52rem; margin-top: .25rem; border-radius: 50%; background: #ff3b30; flex: 0 0 auto; }
.messages-content { display: flex; flex-direction: column; overflow: hidden; }
.messages-thread-header { padding: .95rem 1rem; border-bottom: 1px solid var(--line); background: #fafaf7; }
.messages-thread-header h2 { margin: 0; font-size: 1.04rem; font-weight: 730; }
.messages-thread { display: flex; flex-direction: column; gap: .6rem; min-height: 300px; max-height: 500px; padding: 1rem; overflow: auto; }
.messages-empty { display: grid; place-items: center; gap: .45rem; min-height: 220px; color: var(--muted); text-align: center; }
.messages-empty i { color: var(--forest); font-size: 1.55rem; }
.message-bubble { max-width: min(86%, 680px); padding: .65rem .75rem; border-radius: .7rem; }
.message-bubble strong { display: block; margin-bottom: .2rem; }
.message-bubble p { margin: 0; white-space: pre-wrap; }
.message-bubble small { display: block; margin-top: .35rem; color: #6d756f; font-size: .74rem; }
.message-bubble.is-mine { margin-left: auto; color: #fff; background: var(--forest); }
.message-bubble.is-mine small { color: #d5e5dc; }
.message-bubble.is-theirs { margin-right: auto; border: 1px solid #dce0db; background: #f7f7f4; }
.message-compose { border-top: 1px solid var(--line); padding: 1rem; background: #fbfbf8; }

.image-rotation-controls { display: flex; align-items: center; gap: .5rem; flex-wrap: wrap; margin-top: .65rem; }
.image-rotation-controls .btn { display: inline-flex; align-items: center; gap: .35rem; min-height: 36px; }
.image-rotation-value { min-width: 44px; padding: .25rem .5rem; border: 1px solid #d9ded8; border-radius: .4rem; color: #415044; background: #f8f9f7; text-align: center; font-size: .82rem; font-weight: 700; }
[data-rotatable-image] { transform-origin: center; transition: transform .16s ease; }

@media (max-width: 1100px) {
    .hero-settings-form { grid-template-columns: 1fr; }
    .settings-page-image-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .hero-preview-panel { position: static; }
}
@media (max-width: 650px) { .settings-page-image-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 900px) {
    .review-header { flex-direction: column; }
    .review-summary { width: 100%; min-width: 0; }
    .review-row-main { grid-template-columns: 1fr; }
    .review-progress span { text-align: left; }
    .issue-row { grid-template-columns: 42px minmax(0, 1fr); }
    .issue-actions { grid-column: 1 / -1; justify-content: flex-end; }
    .messages-grid { grid-template-columns: 1fr; }
    .messages-thread { max-height: 430px; }
    .import-flow-guide { grid-template-columns: 1fr; }
}
@media (max-width: 767.98px) {
    .settings-header { align-items: stretch; flex-direction: column; gap: 1rem; }
    .settings-view-site { justify-content: center; }
    .settings-tabs { display: grid; grid-template-columns: repeat(3, 1fr); width: 100%; }
    .settings-tabs a { justify-content: center; padding-inline: .45rem; font-size: .8rem; }
    .settings-dashboard-grid { grid-template-columns: 1fr; }
    .focus-controls { grid-template-columns: 1fr; gap: 0; }
    .settings-form-actions { align-items: stretch; flex-direction: column; }
    .settings-form-actions .btn { justify-content: center; }
    .site-hero-preview { min-height: 0; }
    .preview-finder { grid-template-columns: 1fr 1fr; }
    .preview-finder button { grid-column: 1 / -1; min-height: 38px; }
}
@media (max-width: 575.98px) {
    .review-summary { grid-template-columns: 1fr; }
    .review-summary span { min-height: 58px; }
    .review-check-grid { grid-template-columns: 1fr 1fr; }
    .review-actions, .issue-actions { align-items: stretch; flex-direction: column; }
    .review-actions .btn, .issue-actions .btn { width: 100%; }
    .issue-row { grid-template-columns: 1fr; }
    .issue-icon { display: none; }
    .issue-heading { flex-direction: column; }
}
/* Ingredient data workspace */
.ingredient-workspace { max-width: 1440px; margin: 0 auto; }
.page-intro { margin-bottom: 1.5rem; }
.page-intro--split { display:flex; justify-content:space-between; align-items:flex-end; gap:2rem; }
.page-intro__actions { display:flex; flex-wrap:wrap; justify-content:flex-end; gap:.55rem; }
.page-intro h1 { color:#173f34; font-size:clamp(2rem,3vw,3rem); font-weight:700; letter-spacing:-.035em; margin:.15rem 0 .4rem; }
.page-intro .lead { max-width:720px; color:#5c6b68; margin:0; font-size:1.05rem; }
.eyebrow { color:#28745b; font-size:.73rem; font-weight:800; letter-spacing:.12em; text-transform:uppercase; margin:0 0 .45rem; }
.pipeline-steps { display:grid; grid-template-columns:repeat(4,1fr); gap:.75rem; }
.pipeline-step { display:grid; grid-template-columns:auto 1fr; column-gap:.7rem; align-items:center; min-height:68px; padding:.75rem 1rem; border:1px solid #dfe8e3; border-radius:.8rem; background:#fff; color:inherit; text-decoration:none; transition:.15s ease; }
.pipeline-step:hover { border-color:#28745b; transform:translateY(-1px); }
.pipeline-step > span { grid-row:span 2; display:grid; place-items:center; width:32px; height:32px; border-radius:50%; background:#eef5f0; color:#28745b; font-weight:700; }
.pipeline-step strong { font-size:.92rem; } .pipeline-step small { color:#72807c; font-size:.75rem; }
.pipeline-step--active { border-color:#28745b; background:#f1f8f3; box-shadow:0 0 0 2px rgba(40,116,91,.08); }
.surface-panel { background:#fff; border:1px solid #e1e9e5; border-radius:1rem; padding:1.5rem; box-shadow:0 8px 28px rgba(24,63,52,.05); }
.panel-heading { display:flex; justify-content:space-between; gap:1.5rem; align-items:flex-start; margin-bottom:1.25rem; }
.panel-heading h2, .next-step-panel h2 { color:#173f34; font-size:1.35rem; margin:.1rem 0 .35rem; }
.panel-heading p:not(.eyebrow), .next-step-panel p { color:#697873; margin:0; }
.status-pill { display:inline-flex; align-items:center; gap:.4rem; border-radius:99px; padding:.35rem .7rem; font-size:.78rem; white-space:nowrap; }
.status-pill--neutral { color:#426056; background:#eef5f0; }
.workspace-tabs { border-bottom-color:#dfe8e3; gap:.3rem; }
.workspace-tabs .nav-link { border:0; color:#687772; display:flex; gap:.5rem; align-items:center; padding:.7rem 1rem; }
.workspace-tabs .nav-link small { background:#f0f4f1; border-radius:99px; padding:.1rem .4rem; }
.workspace-tabs .nav-link.active { color:#176044; border-bottom:3px solid #28745b; font-weight:700; }
.workspace-tabs .nav-link.active small { background:#dceee3; }
.section-toolbar { display:flex; justify-content:space-between; align-items:end; gap:1rem; margin-bottom:1rem; }
.section-toolbar h3 { margin:0; color:#1b3d34; font-size:1.1rem; } .section-toolbar p { margin:.2rem 0 0; color:#76827e; font-size:.88rem; }
.entry-form { display:grid; grid-template-columns:1.4fr 1fr 1fr 1.5fr auto; gap:.75rem; padding:1rem; background:#f6faf7; border:1px solid #e2eee6; border-radius:.75rem; margin-bottom:1.25rem; }
.entry-form__main { min-width:180px; } .entry-form__description { min-width:180px; }
.entry-form .form-label { font-size:.72rem; font-weight:700; color:#597068; margin-bottom:.3rem; }
.data-table-wrap { border:1px solid #e3ebe6; border-radius:.75rem; overflow:auto; }
.data-table thead th { background:#f6f9f7; color:#60736b; font-size:.73rem; text-transform:uppercase; letter-spacing:.05em; border-bottom:1px solid #e0e9e4; white-space:nowrap; }
.data-table td { min-width:150px; border-color:#edf2ee; padding:.65rem .75rem; }
.data-table td:last-child { min-width:105px; }
.source-choice-grid { display:grid; grid-template-columns:repeat(2,1fr); gap:.75rem; margin-bottom:1.25rem; }
.source-choice { cursor:pointer; position:relative; }
.source-choice input { position:absolute; opacity:0; }
.source-choice span { display:flex; flex-direction:column; gap:.18rem; border:1px solid #dce7e0; border-radius:.75rem; padding:1rem; transition:.15s ease; }
.source-choice span i { color:#28745b; font-size:1.25rem; } .source-choice strong { color:#1d4639; }
.source-choice small { color:#75837d; } .source-choice input:checked + span { border-color:#28745b; background:#f1f8f3; box-shadow:0 0 0 2px rgba(40,116,91,.1); }
.upload-zone { display:flex; align-items:center; gap:1rem; border:1px dashed #a8c4b4; background:#fbfdfb; border-radius:.75rem; padding:1rem; }
.upload-zone > i { color:#28745b; font-size:2rem; } .upload-zone .form-label { font-weight:700; margin-bottom:.35rem; }
.progress-state { align-items:center; gap:.6rem; margin-top:1rem; color:#4b665b; font-size:.9rem; }
.next-step-panel { height:100%; border:1px solid #dce9e1; background:#f1f8f3; border-radius:1rem; padding:1.5rem; }
.next-step-panel__number { display:grid; place-items:center; width:34px; height:34px; background:#28745b; color:#fff; border-radius:50%; font-weight:700; margin-bottom:1rem; }
.next-step-panel ul { color:#53665e; padding-left:1.2rem; margin:1rem 0 1.5rem; } .next-step-panel li { margin-bottom:.5rem; }
.sync-settings-panel { display:grid; grid-template-columns:minmax(0,1fr) minmax(420px,1.4fr); gap:1.5rem; align-items:end; padding:1.2rem 1.35rem; border:1px solid #dce9e1; border-radius:1rem; background:#fff; box-shadow:0 8px 24px rgba(24,63,52,.05); }
.sync-settings-panel h2, .batch-launcher h2 { color:#173f34; font-size:1.2rem; margin:0 0 .25rem; }
.sync-settings-help, .batch-launcher p:not(.eyebrow) { color:#697873; font-size:.88rem; margin:0; }
.sync-settings-fields { display:grid; grid-template-columns:1fr 1fr auto; gap:.75rem; }
.sync-settings-fields .form-label { color:#597068; font-size:.75rem; font-weight:700; margin-bottom:.3rem; }
.batch-launcher { display:flex; align-items:center; justify-content:space-between; gap:1.5rem; padding:1.25rem 1.35rem; border:1px solid #bcd9c7; border-radius:1rem; background:#f1f8f3; box-shadow:0 10px 28px rgba(24,75,58,.08); }
.batch-launcher__intro { display:flex; align-items:flex-start; gap:.85rem; }
.batch-step-number { display:grid; place-items:center; flex:0 0 2rem; width:2rem; height:2rem; border-radius:50%; color:#fff; background:#28745b; font-weight:800; }
.batch-launcher__actions { display:flex; flex-wrap:wrap; justify-content:flex-end; gap:.6rem; }
.batch-launcher__actions .btn { min-width:190px; }
.flag-icon { margin-right:.25rem; }
.button-count { display:inline-flex; align-items:center; min-width:3.6rem; justify-content:center; margin-left:.35rem; padding:.15rem .4rem; border-radius:999px; color:#fff; background:rgba(0,0,0,.16); font-size:.72rem; font-weight:750; }
.table-helper { color:#6f7e77; font-size:.75rem; }
.card-header .table-helper { font-weight:500; }
.source-label { display:inline-flex; align-items:center; gap:.4rem; padding:.3rem .6rem; border-radius:999px; font-size:.76rem; font-weight:750; }
.source-label::before { content:""; width:.55rem; height:.55rem; border-radius:50%; background:currentColor; }
.source-label--swe { color:#295d9a; background:#edf3fb; }
.source-label--fin { color:#6a4f9b; background:#f2eefb; }
.source-tabs { display:flex; gap:.45rem; border-bottom:1px solid #dfe8e3; }
.source-tab { display:inline-flex; align-items:center; gap:.55rem; min-height:48px; padding:.7rem 1rem; border:0; border-bottom:3px solid transparent; color:#6a7871; background:transparent; font-weight:700; }
.source-tab span { padding:.1rem .45rem; border-radius:999px; color:#60736b; background:#eef3ef; font-size:.75rem; }
.source-tab:hover, .source-tab.is-active { color:#176044; border-bottom-color:#28745b; }
.source-tab.is-active span { color:#176044; background:#dceee3; }
.list-tools { display:flex; align-items:center; gap:.75rem; padding:.75rem; border-bottom:1px solid #e3ebe6; background:#fbfdfb; }
.source-filter { max-width:360px; }
.list-result-count { color:#6f7e77; font-size:.78rem; }
.source-pager { display:flex; flex-wrap:wrap; gap:.35rem; padding:.75rem; border-top:1px solid #e3ebe6; background:#fbfdfb; }
.source-pager .btn { min-width:36px; min-height:36px; padding:.25rem .5rem; }
.approval-workspace { max-width:1280px; }
.approval-tabs { display:flex; gap:.4rem; border-bottom:1px solid #dfe8e3; }
.approval-tab { display:inline-flex; align-items:center; gap:.55rem; padding:.75rem 1rem; border-bottom:3px solid transparent; color:#687772; text-decoration:none; font-weight:750; }
.approval-tab:hover, .approval-tab.is-active { color:#176044; border-bottom-color:#28745b; }
.approval-tab span { padding:.12rem .45rem; border-radius:999px; background:#eef3ef; font-size:.74rem; }
.approval-toolbar { display:flex; align-items:center; gap:.65rem; margin-bottom:1rem; padding:1rem; border:1px solid #e1e9e5; border-radius:.8rem; background:#fff; }
.approval-toolbar input { max-width:360px; }
.approval-count { margin-left:auto; color:#6f7e77; font-size:.8rem; }
.approval-list { display:grid; gap:.8rem; }
.approval-card { display:grid; grid-template-columns:minmax(0,1fr) minmax(480px,1.3fr); gap:1.2rem; padding:1.1rem 1.2rem; border:1px solid #dfe8e3; border-radius:.9rem; background:#fff; box-shadow:0 5px 18px rgba(24,63,52,.04); }
.approval-card__heading { display:flex; align-items:flex-start; justify-content:space-between; gap:1rem; }
.approval-card h2 { color:#173f34; font-size:1.08rem; margin:.25rem 0 .7rem; }
.approval-source { color:#28745b; font-size:.72rem; font-weight:750; letter-spacing:.04em; text-transform:uppercase; }
.approval-status { padding:.3rem .55rem; border-radius:999px; color:#725119; background:#fff4dd; font-size:.74rem; font-weight:750; }
.approval-nutrients { display:grid; grid-template-columns:repeat(4,1fr); gap:.5rem; }
.approval-nutrients span { display:flex; flex-direction:column; padding:.45rem .5rem; border-radius:.45rem; background:#f6f9f7; }
.approval-nutrients small { color:#718078; font-size:.68rem; }
.approval-nutrients strong { color:#244d3e; font-size:.86rem; }
.approval-form { display:grid; grid-template-columns:1.35fr 1fr 1fr 1fr auto; gap:.55rem; align-items:end; }
.approval-form label { color:#597068; font-size:.72rem; font-weight:700; }
.approval-form .form-control, .approval-form .form-select { margin-top:.25rem; }
.approval-form .btn { white-space:nowrap; }
.approval-pager { display:flex; flex-wrap:wrap; gap:.35rem; margin-top:1rem; }
.empty-state-panel { padding:3rem 1.5rem; border:1px dashed #bcd9c7; border-radius:1rem; color:#687772; background:#f7fbf8; text-align:center; }
.empty-state-panel i { color:#28745b; font-size:2rem; }
.empty-state-panel h2 { color:#173f34; font-size:1.2rem; }
.mapping-bulk-toolbar { display:flex; align-items:center; gap:1rem; padding:.75rem; margin-bottom:.75rem; border:1px solid #dce9e1; border-radius:.65rem; background:#f6faf7; }
.mapping-bulk-help { color:#6f7e77; font-size:.8rem; margin-right:auto; }
.mapping-select, #selectAllMappings { width:1.05rem; height:1.05rem; }
@media (max-width: 1000px) { .approval-card { grid-template-columns:1fr; } .approval-form { grid-template-columns:repeat(2,1fr); } .approval-form .btn { width:100%; } }
@media (max-width: 650px) { .page-intro__actions { justify-content:flex-start; } .approval-toolbar { align-items:stretch; flex-direction:column; } .approval-toolbar input { max-width:none; } .approval-count { margin-left:0; } .approval-form { grid-template-columns:1fr; } .approval-nutrients { grid-template-columns:repeat(2,1fr); } }
@media (max-width: 575px) { .mapping-bulk-toolbar { align-items:stretch; flex-direction:column; } .mapping-bulk-help { margin-right:0; } }
.batch-launcher__actions .btn-success { color:#fff; background:#28745b; border-color:#28745b; }
.batch-launcher__actions .btn-success:hover, .batch-launcher__actions .btn-success:focus { color:#fff; background:#1d5e49; border-color:#1d5e49; }
.batch-launcher__actions .btn:disabled { cursor:wait; opacity:.65; }
.batch-select, #selectAllSwe, #selectAllFin { width:1.05rem; height:1.05rem; }
#batchItems { display:grid; gap:.25rem; }
#batchItems > div { padding:.3rem .45rem; border-radius:.35rem; background:#f5f8f6; }
@media (max-width: 1050px) { .sync-settings-panel { grid-template-columns:1fr; } .batch-launcher { align-items:flex-start; flex-direction:column; } .batch-launcher__actions { justify-content:flex-start; width:100%; } }
@media (max-width: 650px) { .sync-settings-fields { grid-template-columns:1fr; } .sync-settings-fields .btn { width:100%; } .batch-launcher__actions, .batch-launcher__actions .btn { width:100%; } .batch-launcher__actions .btn { min-width:0; } }
@media (max-width: 575px) { .source-tabs { overflow-x:auto; } .source-tab { flex:1 0 auto; justify-content:center; } .list-tools { align-items:stretch; flex-direction:column; } .source-filter { max-width:none; width:100%; } }
@media (max-width: 900px) { .page-intro--split { align-items:flex-start; flex-direction:column; } .pipeline-steps { grid-template-columns:repeat(2,1fr); } .entry-form { grid-template-columns:repeat(2,1fr); } .entry-form__main,.entry-form__description { min-width:0; } }
@media (max-width: 575px) { .surface-panel { padding:1rem; } .pipeline-steps { grid-template-columns:1fr; } .source-choice-grid { grid-template-columns:1fr; } .entry-form { grid-template-columns:1fr; } .panel-heading,.section-toolbar { flex-direction:column; align-items:flex-start; } }
.sync-source-nav {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem;
}

.sync-source-card {
    display: flex;
    align-items: center;
    gap: .9rem;
    padding: 1rem 1.15rem;
    border: 1px solid var(--bs-border-color, #dee2e6);
    border-radius: .75rem;
    color: inherit;
    text-decoration: none;
    background: #fff;
    transition: border-color .15s ease, box-shadow .15s ease, transform .15s ease;
}

.sync-source-card > span:first-child { font-size: 1.8rem; }
.sync-source-card strong, .sync-source-card small { display: block; }
.sync-source-card small { color: #6c757d; margin-top: .15rem; }
.sync-source-card:hover, .sync-source-card.is-active {
    border-color: var(--bs-primary, #0d6efd);
    box-shadow: 0 .25rem .8rem rgba(13, 110, 253, .12);
    transform: translateY(-1px);
}

.source-download-link {
    display: block;
    margin-top: .45rem;
    font-size: .8rem;
    font-weight: 600;
    color: var(--bs-primary, #0d6efd);
    text-decoration: none;
}

.source-download-link:hover { text-decoration: underline; }

@media (max-width: 640px) {
    .sync-source-nav { grid-template-columns: 1fr; }
}
