/* Amickle HQ: mobile-first, calm contrast, readable type */

:root {
    --bg: #f4f2ee;
    --bg-card: #fdfcfa;
    --text: #1f1f1f;
    --text-muted: #5c5855;
    --accent: #4a6f66;
    --accent-hover: #3d5c55;
    --border: #d9d4cd;
    --error-bg: #f5e8e6;
    --error-text: #6b2e2a;
    --focus: #2d6a4f;
    --space: 1.25rem;
    --radius: 12px;
    --font: "Atkinson Hyperlegible", system-ui, -apple-system, Segoe UI, sans-serif;
    --touch: 48px;
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

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

html {
    font-size: 100%;
    -webkit-text-size-adjust: 100%;
}

.is-hidden {
    display: none !important;
}

body {
    margin: 0;
    min-height: 100dvh;
    font-family: var(--font);
    font-size: 1.0625rem;
    line-height: 1.55;
    color: var(--text);
    background: var(--bg);
}

a {
    color: var(--accent);
    text-underline-offset: 0.2em;
}

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

.app-shell {
    min-height: 100dvh;
    display: flex;
    flex-direction: column;
}

.app-header {
    padding: 0.65rem var(--space);
    background: var(--bg-card);
    border-bottom: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    flex-wrap: nowrap;
}

.app-header__cluster {
    display: flex;
    align-items: center;
    gap: 0.5rem 1rem;
    flex-wrap: wrap;
    min-width: 0;
    flex: 1;
}

.app-brand {
    font-size: 1.125rem;
    font-weight: 700;
    letter-spacing: 0.02em;
    color: var(--text);
    text-decoration: none;
    flex-shrink: 0;
}

.app-header__primary {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.25rem;
}

.app-header__navlink {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
    padding: 0.35rem 0.9rem;
    border-radius: 999px;
    font-weight: 600;
    text-decoration: none;
    color: var(--text-muted);
}

.app-header__navlink:hover {
    background: rgba(74, 111, 102, 0.1);
    color: var(--accent-hover);
}

.app-header__navlink[aria-current="page"] {
    background: rgba(74, 111, 102, 0.16);
    color: var(--accent-hover);
}

/* Account menu (top right) */
.account-menu {
    position: relative;
    flex-shrink: 0;
}

.account-menu__trigger {
    width: 48px;
    height: 48px;
    padding: 0;
    margin: 0;
    border: 2px solid var(--border);
    border-radius: 50%;
    background: var(--bg-card);
    cursor: pointer;
    display: grid;
    place-items: center;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
}

.account-menu__trigger:hover {
    border-color: #b8b0a6;
    background: #fff;
}

.account-menu__avatar {
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--accent);
    line-height: 1;
}

.account-menu__panel[hidden] {
    display: none !important;
}

.account-menu__panel {
    position: absolute;
    right: 0;
    top: calc(100% + 0.4rem);
    min-width: 15rem;
    max-width: min(18rem, 92vw);
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 12px;
    box-shadow: 0 6px 28px rgba(0, 0, 0, 0.1);
    padding: 0.4rem 0;
    z-index: 50;
}

.account-menu__item {
    display: flex;
    align-items: center;
    min-height: 48px;
    padding: 0.5rem 1rem;
    font-weight: 600;
    font-size: 1rem;
    text-decoration: none;
    color: var(--text);
}

.account-menu__item:hover {
    background: rgba(74, 111, 102, 0.08);
}

.account-menu__item:focus-visible {
    outline: none;
    background: rgba(74, 111, 102, 0.12);
    box-shadow: inset 0 0 0 2px var(--focus);
}

.account-menu__divider {
    height: 1px;
    margin: 0.35rem 0;
    background: var(--border);
    border: 0;
    padding: 0;
}

.account-menu__theme-toggle {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    width: 100%;
    min-height: 48px;
    padding: 0.45rem 1rem;
    margin: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    font: inherit;
    text-align: left;
    cursor: pointer;
    color: var(--text);
}

.account-menu__theme-toggle:hover {
    background: rgba(74, 111, 102, 0.08);
}

.account-menu__theme-toggle:focus-visible {
    outline: none;
    background: rgba(74, 111, 102, 0.12);
    box-shadow: inset 0 0 0 2px var(--focus);
}

.account-menu__theme-toggle-text {
    display: flex;
    flex-direction: column;
    gap: 0.1rem;
    min-width: 0;
}

.account-menu__theme-toggle-label {
    font-weight: 600;
    font-size: 1rem;
    line-height: 1.2;
}

.account-menu__theme-toggle-hint {
    font-size: 0.8rem;
    font-weight: 500;
    color: var(--text-muted);
    line-height: 1.35;
}

.account-menu__theme-toggle-track {
    position: relative;
    flex-shrink: 0;
    width: 2.75rem;
    height: 1.55rem;
    border-radius: 999px;
    background: var(--border);
    border: 2px solid rgba(74, 111, 102, 0.25);
    transition: background 0.15s ease, border-color 0.15s ease;
}

.account-menu__theme-toggle-thumb {
    position: absolute;
    top: 50%;
    left: 0.2rem;
    right: auto;
    width: 1.05rem;
    height: 1.05rem;
    border-radius: 50%;
    background: var(--bg-card);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.12);
    transform: translateY(-50%);
    transition: left 0.15s ease, right 0.15s ease;
}

.account-menu__theme-toggle[aria-checked="true"] .account-menu__theme-toggle-track {
    background: rgba(74, 111, 102, 0.55);
    border-color: rgba(74, 111, 102, 0.45);
}

.account-menu__theme-toggle[aria-checked="true"] .account-menu__theme-toggle-thumb {
    left: auto;
    right: 0.2rem;
}

.app-main {
    flex: 1;
    width: 100%;
    max-width: min(42rem, calc(100vw - 1.25rem));
    margin: 0 auto;
    padding: calc(var(--space) * 1.5) var(--space);
    padding-left: max(var(--space), env(safe-area-inset-left, 0px));
    padding-right: max(var(--space), env(safe-area-inset-right, 0px));
}

.app-main--wide {
    max-width: min(52rem, calc(100vw - 1.25rem));
}

.app-main--login {
    padding-top: calc(var(--space) * 2);
}

/* Login: logo on page background, no extra frame */
.login-logo {
    display: block;
    width: min(16.5rem, 82vw);
    max-width: 100%;
    height: auto;
    margin: 0 auto 1.75rem;
}

.login-card {
    margin-top: 0;
}

.login-heading {
    font-size: 1.35rem;
}

.card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: calc(var(--space) * 1.25);
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
}

h1 {
    font-size: 1.5rem;
    font-weight: 700;
    line-height: 1.25;
    margin: 0 0 var(--space);
    color: var(--text);
}

.lead {
    margin: 0 0 calc(var(--space) * 1.25);
    color: var(--text-muted);
    font-size: 1rem;
    line-height: 1.6;
}

.field {
    margin-bottom: calc(var(--space) * 1.1);
}

.field label {
    display: block;
    font-weight: 600;
    margin-bottom: 0.4rem;
    font-size: 0.95rem;
    color: var(--text);
}

.field-hint {
    margin: 0.35rem 0 0;
    font-size: 0.9rem;
    color: var(--text-muted);
    line-height: 1.45;
}

.field input {
    width: 100%;
    min-height: var(--touch);
    padding: 0.65rem 0.85rem;
    font: inherit;
    border: 2px solid var(--border);
    border-radius: 10px;
    background: #fff;
    color: var(--text);
}

.field input:hover,
.field select:hover,
.field textarea:hover {
    border-color: #c4bdb4;
}

.field textarea {
    width: 100%;
    min-height: 9rem;
    padding: 0.75rem 0.95rem;
    font: inherit;
    line-height: 1.55;
    border: 2px solid var(--border);
    border-radius: 10px;
    background: #fff;
    color: var(--text);
    resize: vertical;
    display: block;
}

.field select {
    width: 100%;
    min-height: var(--touch);
    padding: 0.65rem 0.85rem;
    font: inherit;
    border: 2px solid var(--border);
    border-radius: 10px;
    background: #fff;
    color: var(--text);
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: var(--touch);
    padding: 0.65rem 1.25rem;
    font: inherit;
    font-weight: 600;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    width: 100%;
    background: var(--accent);
    color: #fff;
    text-decoration: none;
}

.btn:hover {
    background: var(--accent-hover);
}

.btn-ghost {
    background: transparent;
    color: var(--accent);
    border: 2px solid var(--border);
    width: auto;
    min-height: 44px;
    padding-left: 1rem;
    padding-right: 1rem;
}

.btn-ghost:hover {
    background: rgba(74, 111, 102, 0.08);
}

.btn-danger {
    background: #8b4a45;
    margin-top: 0.75rem;
}

.btn-danger:hover {
    background: #6f3a36;
}

.btn-danger-outline {
    border-color: #c9a9a6;
    color: #6b2e2a;
}

.btn-danger-outline:hover {
    background: #f5e8e6;
}

.user-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.user-list__item {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    padding: 1rem 1.1rem;
    border: 1px solid var(--border);
    border-radius: 10px;
    background: #fff;
}

@media (min-width: 36rem) {
    .user-list__item {
        flex-direction: row;
        align-items: flex-start;
        justify-content: space-between;
    }
}

.user-list__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    align-items: center;
}

.user-list__badge {
    display: inline-block;
    margin-left: 0.35rem;
    padding: 0.15rem 0.5rem;
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    border-radius: 6px;
    background: rgba(74, 111, 102, 0.12);
    color: var(--accent-hover);
}

.alert {
    padding: 0.85rem 1rem;
    border-radius: 10px;
    margin-bottom: var(--space);
    font-size: 0.98rem;
    line-height: 1.5;
    background: var(--error-bg);
    color: var(--error-text);
    border: 1px solid #e0c4c0;
}

.alert--success {
    background: #e8f0ec;
    color: #2d4a3e;
    border-color: #b8d4c4;
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.muted {
    color: var(--text-muted);
    font-size: 0.95rem;
    margin-top: calc(var(--space) * 1.25);
    line-height: 1.55;
}

.app-main--check {
    max-width: min(42rem, calc(100vw - 1rem));
}

.check-empty .lead {
    margin-bottom: 0;
}

.check-card__meta {
    font-size: 0.95rem;
}

.check-card__title {
    margin-top: 0.35rem;
}

.check-card__body {
    display: block;
    width: 100%;
    min-height: min(50vh, 22rem);
    margin: 1rem 0 0;
    border: 1px solid var(--border);
    border-radius: 10px;
    background: #fff;
}

.check-actions {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    margin-top: 1.25rem;
}

.check-actions > .btn-approve,
.check-actions > .btn-reject {
    flex: 1 1 0;
    min-width: 0;
    width: auto;
}

.check-actions > .btn-check-skip--icon-only {
    flex: 0 0 auto;
    align-self: center;
    width: 3rem;
    min-width: 3rem;
    max-width: 3rem;
    padding: 0;
    min-height: var(--touch);
    border-radius: 10px;
}

.check-actions > .btn-check-skip--icon-only .check-skip-icon {
    width: 20px;
    height: 20px;
}

@media (min-width: 24rem) {
    .check-actions {
        flex-direction: row;
        align-items: stretch;
    }

    .check-actions > .btn-check-skip--icon-only {
        align-self: stretch;
    }
}

.btn-approve {
    background: #2d6a4f;
    width: 100%;
}

.btn-approve:hover {
    background: #245a43;
}

.btn-reject {
    background: #9b3b38;
    color: #fff;
    width: 100%;
}

.btn-reject:hover {
    background: #7d2f2d;
}

.btn-check-skip {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.45rem;
    width: 100%;
    background: rgba(74, 111, 102, 0.12);
    color: var(--accent-hover);
    border: 2px solid rgba(74, 111, 102, 0.35);
}

.btn-check-skip--icon-only {
    gap: 0;
    width: auto;
}

.btn-check-skip:hover {
    background: rgba(74, 111, 102, 0.2);
    color: var(--accent);
}

.check-skip-icon {
    flex-shrink: 0;
}


.quill-editor {
    min-height: 14rem;
    background: #fff;
    border: 2px solid var(--border);
    border-radius: 10px;
}

.ql-toolbar.ql-snow {
    border-radius: 10px 10px 0 0;
    border-color: var(--border) !important;
}

.ql-container.ql-snow {
    border-radius: 0 0 10px 10px;
    border-color: var(--border) !important;
    font-family: var(--font);
    font-size: 1rem;
}

.reject-dialog {
    width: min(calc(100vw - 1.5rem), 32rem);
    max-width: 100%;
    padding: var(--space);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background: var(--bg-card);
}

.reject-dialog .field textarea {
    min-height: 10rem;
}

.reject-dialog::backdrop {
    background: rgba(0, 0, 0, 0.35);
}

.reject-dialog__title {
    font-size: 1.2rem;
    margin: 0 0 0.5rem;
}

.reject-dialog__buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-top: 1rem;
}

.reject-dialog__buttons .btn-ghost {
    flex: 1;
    min-width: 6rem;
}

.reject-dialog__buttons .btn-reject {
    flex: 1;
    min-width: 6rem;
}

.content-hub__library {
    margin-top: calc(var(--space) * 1.25);
}

.content-hub__library-title {
    font-size: 1.35rem;
    margin: 0 0 0.35rem;
}

.content-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin: 1.25rem 0 1rem;
    padding: 0;
    list-style: none;
}

.content-tabs__tab {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    min-height: 44px;
    padding: 0.4rem 0.95rem;
    border-radius: 999px;
    font: inherit;
    font-weight: 600;
    text-decoration: none;
    color: var(--text-muted);
    border: 2px solid transparent;
    background: rgba(0, 0, 0, 0.03);
    cursor: pointer;
}

.content-tabs__tab:hover {
    background: rgba(74, 111, 102, 0.1);
    color: var(--accent-hover);
}

.content-tabs__tab.is-active {
    background: rgba(74, 111, 102, 0.16);
    color: var(--accent-hover);
    border-color: rgba(74, 111, 102, 0.35);
}

.content-tabs__count {
    display: inline-block;
    min-width: 1.35rem;
    padding: 0.1rem 0.45rem;
    font-size: 0.85rem;
    font-weight: 700;
    text-align: center;
    border-radius: 999px;
    background: rgba(0, 0, 0, 0.06);
}

.content-tabs__tab.is-active .content-tabs__count {
    background: rgba(255, 255, 255, 0.7);
}

.content-list-empty {
    margin: 1rem 0 0;
    color: var(--text-muted);
    font-size: 1.05rem;
}

.content-list {
    margin: 0;
    padding: 0;
    list-style: none;
}

.content-list__item {
    padding: 1rem 0;
    border-top: 1px solid var(--border);
}

.user-detail-stats {
    display: grid;
    gap: 1rem;
    grid-template-columns: repeat(auto-fill, minmax(11rem, 1fr));
    margin: 1.25rem 0 2rem;
}

.user-detail-stats dt {
    font-size: 0.85rem;
    color: var(--text-muted);
    font-weight: 600;
}

.user-detail-stats dd {
    margin: 0.35rem 0 0;
    font-weight: 700;
    font-size: 1.1rem;
}

.user-detail-chart-title {
    font-size: 1.15rem;
    margin: 1.5rem 0 0.5rem;
}

.user-detail-chart-wrap {
    position: relative;
    height: 18rem;
    margin-top: 1rem;
    max-width: 100%;
}

.content-list__actions {
    margin: 0.85rem 0 0;
}

.content-list__edit-link {
    width: auto;
    display: inline-flex;
}

.content-list__item:first-child {
    border-top: none;
    padding-top: 0.25rem;
}

.content-list__title {
    font-size: 1.1rem;
    font-weight: 700;
    margin: 0;
    line-height: 1.35;
}

.content-list__excerpt {
    margin: 0.5rem 0 0;
    font-size: 0.98rem;
    line-height: 1.5;
    color: var(--text);
}

.content-list__reason {
    margin: 0.65rem 0 0;
    padding: 0.65rem 0.85rem;
    border-left: 4px solid #c49a97;
    background: #faf6f5;
    border-radius: 0 8px 8px 0;
    font-size: 0.95rem;
    line-height: 1.5;
    color: var(--text);
}

.content-list__reason-label {
    font-weight: 700;
    color: var(--text-muted);
}

/* Dashboard */
.app-main--dashboard .dashboard-greeting {
    margin: 0 0 calc(var(--space) * 1.35);
}

.dashboard-greeting__title {
    margin: 0;
    font-size: clamp(1.65rem, 5vw, 2.1rem);
    font-weight: 700;
    line-height: 1.2;
    color: var(--text);
}

/* Dashboard · Pick(le) me up! */
.pickle-me-up-card + .dashboard-check-card {
    margin-top: calc(var(--space) * 1.25);
}

.dashboard-check-card__title {
    margin: 0 0 0.5rem;
    font-size: 1.25rem;
}

.pickle-me-up-card__heading {
    margin: 0 0 0.35rem;
    font-size: 1.2rem;
}

.pickle-me-up-card__hint {
    margin: 0 0 1.1rem;
    font-size: 0.98rem;
}

.pickle-me-up-btn {
    display: flex;
    width: 100%;
    justify-content: center;
    align-items: center;
    min-height: var(--touch);
    font-size: 1.12rem;
    font-weight: 700;
    letter-spacing: 0.02em;
    border-radius: 14px;
    box-shadow: 0 4px 18px rgba(74, 111, 102, 0.22);
}

/* Full-screen dialog so confetti fills the viewport behind the frosted quote card */
.pickle-dialog {
    position: fixed;
    inset: 0;
    width: 100%;
    max-width: none;
    height: 100%;
    max-height: none;
    margin: 0;
    padding: 0;
    border: none;
    border-radius: 0;
    overflow: hidden;
    background: transparent;
    box-shadow: none;
}

.pickle-dialog::backdrop {
    background: rgba(18, 24, 22, 0.58);
    backdrop-filter: blur(10px);
}

.pickle-dialog__fx {
    position: absolute;
    inset: 0;
    z-index: 0;
    overflow: hidden;
    pointer-events: none;
    background:
        radial-gradient(ellipse 90% 55% at 50% 38%, rgba(255, 252, 247, 0.22) 0%, transparent 58%),
        radial-gradient(ellipse 70% 45% at 20% 70%, rgba(200, 230, 210, 0.12) 0%, transparent 45%),
        radial-gradient(ellipse 60% 40% at 85% 60%, rgba(230, 210, 250, 0.1) 0%, transparent 42%);
}

.pickle-dialog__inner {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    z-index: 1;
    width: min(38rem, calc(100vw - 1.75rem));
    max-height: min(88dvh, 36rem);
    overflow: auto;
    padding: 2.65rem 1.6rem 2.15rem;
    text-align: center;
    background: rgba(252, 251, 248, 0.72);
    -webkit-backdrop-filter: blur(22px) saturate(1.25);
    backdrop-filter: blur(22px) saturate(1.25);
    border: 1px solid rgba(255, 255, 255, 0.55);
    border-radius: 26px;
    box-shadow:
        0 2px 0 rgba(255, 255, 255, 0.55) inset,
        0 32px 80px rgba(25, 42, 36, 0.35),
        0 0 0 1px rgba(74, 111, 102, 0.1);
}

.pickle-dialog__close {
    position: absolute;
    top: 0.55rem;
    right: 0.55rem;
    width: auto;
    z-index: 2;
}

.pickle-dialog__greeting {
    margin: 0 2.25rem 1.1rem;
    font-size: clamp(1.4rem, 4.8vw, 1.95rem);
    font-weight: 700;
    line-height: 1.22;
    letter-spacing: 0.02em;
    color: var(--accent);
    text-shadow: 0 1px 0 rgba(255, 255, 255, 0.6);
}

.pickle-dialog__quote-shell {
    position: relative;
    margin: 0.35rem auto 0;
    max-width: 32rem;
}

.pickle-dialog__quote-shell::after {
    content: "";
    display: block;
    width: min(5rem, 40%);
    height: 3px;
    margin: 1.15rem auto 0;
    border-radius: 999px;
    background: linear-gradient(90deg, transparent, rgba(74, 111, 102, 0.4), transparent);
}

.pickle-dialog__quote {
    margin: 0;
    padding: 1.45rem 1.35rem 1.4rem 2.35rem;
    text-align: left;
    border: none;
    font-family: "Fraunces", Georgia, "Times New Roman", serif;
    font-size: clamp(1.16rem, 3.5vw, 1.52rem);
    font-weight: 400;
    font-style: italic;
    line-height: 1.75;
    letter-spacing: 0.015em;
    color: #262a28;
    background: linear-gradient(
        168deg,
        rgba(255, 255, 255, 0.94) 0%,
        rgba(241, 248, 244, 0.9) 42%,
        rgba(252, 247, 238, 0.92) 100%
    );
    border-radius: 18px;
    border: 1px solid rgba(74, 111, 102, 0.14);
    box-shadow:
        0 1px 0 rgba(255, 255, 255, 0.95) inset,
        0 14px 40px rgba(45, 90, 72, 0.08);
    position: relative;
}

.pickle-dialog__quote::before {
    content: "\201C";
    position: absolute;
    left: 0.45rem;
    top: 0.25rem;
    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(2.5rem, 9vw, 3.25rem);
    line-height: 1;
    color: rgba(74, 111, 102, 0.2);
    font-style: normal;
    pointer-events: none;
}

.pickle-dialog__quote::after {
    content: "\201D";
    position: absolute;
    right: 0.5rem;
    bottom: 0.15rem;
    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(1.65rem, 5.5vw, 2.2rem);
    line-height: 1;
    color: rgba(74, 111, 102, 0.14);
    font-style: normal;
    pointer-events: none;
}

@media (prefers-reduced-motion: reduce) {
    .pickle-dialog__inner {
        backdrop-filter: none;
    }
}

/* ADHD-friendly dark theme: soft surfaces, strong readable type, obvious focus (no pure black / harsh white) */
html[data-theme="dark"] {
    color-scheme: dark;
    --bg: #101614;
    --bg-card: #171e1b;
    --text: #eef1ef;
    --text-muted: #b4c0ba;
    --accent: #7dd3b0;
    --accent-hover: #9ae3c4;
    --border: #3a4a44;
    --error-bg: #2a1f22;
    --error-text: #f0c4c8;
    --focus: #ffd54a;
    --input-bg: #1a2420;
}

html[data-theme="dark"] a {
    color: var(--accent);
}

html[data-theme="dark"] a:focus-visible,
html[data-theme="dark"] button:focus-visible,
html[data-theme="dark"] input:focus-visible,
html[data-theme="dark"] textarea:focus-visible {
    outline-color: var(--focus);
}

html[data-theme="dark"] .app-header__navlink:hover {
    background: rgba(125, 211, 176, 0.12);
    color: var(--accent-hover);
}

html[data-theme="dark"] .app-header__navlink[aria-current="page"] {
    background: rgba(125, 211, 176, 0.18);
    color: var(--accent-hover);
}

html[data-theme="dark"] .account-menu__trigger:hover {
    border-color: #5a6a64;
    background: var(--bg-card);
}

html[data-theme="dark"] .account-menu__item:hover {
    background: rgba(125, 211, 176, 0.1);
}

html[data-theme="dark"] .account-menu__item:focus-visible {
    background: rgba(125, 211, 176, 0.14);
    box-shadow: inset 0 0 0 2px var(--focus);
}

html[data-theme="dark"] .account-menu__theme-toggle:hover {
    background: rgba(125, 211, 176, 0.1);
}

html[data-theme="dark"] .account-menu__theme-toggle:focus-visible {
    background: rgba(125, 211, 176, 0.14);
    box-shadow: inset 0 0 0 2px var(--focus);
}

html[data-theme="dark"] .account-menu__theme-toggle-track {
    background: #2f3d37;
    border-color: rgba(125, 211, 176, 0.35);
}

html[data-theme="dark"] .account-menu__theme-toggle[aria-checked="true"] .account-menu__theme-toggle-track {
    background: rgba(125, 211, 176, 0.45);
    border-color: rgba(125, 211, 176, 0.55);
}

html[data-theme="dark"] .field input,
html[data-theme="dark"] .field textarea,
html[data-theme="dark"] .field select {
    background: var(--input-bg);
    color: var(--text);
    border-color: var(--border);
}

html[data-theme="dark"] .field input:hover,
html[data-theme="dark"] .field textarea:hover,
html[data-theme="dark"] .field select:hover {
    border-color: #556a62;
}

html[data-theme="dark"] .btn-ghost {
    color: #dff7ea;
    border-color: #5a7268;
}

html[data-theme="dark"] .btn-ghost:hover {
    background: rgba(125, 211, 176, 0.12);
    color: #f4fffb;
    border-color: #6d8a7e;
}

/* Solid buttons: dark text on filled surfaces — avoids washed-out white on light mint */
html[data-theme="dark"] .btn {
    background: #2f7f5f;
    color: #f6fffb;
    text-shadow: 0 1px 0 rgba(0, 0, 0, 0.25);
}

html[data-theme="dark"] .btn:hover {
    background: #3a9a74;
    color: #ffffff;
}

html[data-theme="dark"] .btn-approve {
    background: #1a5c40;
    color: #f0fdf5;
}

html[data-theme="dark"] .btn-approve:hover {
    background: #237a55;
    color: #ffffff;
}

html[data-theme="dark"] .btn-reject {
    background: #7a2826;
    color: #fff5f4;
}

html[data-theme="dark"] .btn-reject:hover {
    background: #5f1f1d;
    color: #ffffff;
}

html[data-theme="dark"] .btn-danger {
    background: #6b3530;
    color: #fff5f4;
}

html[data-theme="dark"] .btn-danger:hover {
    background: #542824;
    color: #ffffff;
}

html[data-theme="dark"] .check-card__body {
    background: var(--input-bg);
    border-color: var(--border);
}

html[data-theme="dark"] .user-list__item {
    background: var(--bg-card);
}

html[data-theme="dark"] .user-list__badge {
    background: rgba(125, 211, 176, 0.14);
    color: #c8f5df;
}

html[data-theme="dark"] .content-tabs__count {
    background: rgba(255, 255, 255, 0.08);
    color: var(--text-muted);
}

html[data-theme="dark"] .content-tabs__tab.is-active .content-tabs__count {
    background: rgba(0, 0, 0, 0.35);
    color: #dff7ea;
}

html[data-theme="dark"] .content-list__reason {
    background: #221a1a;
    border-left-color: #8f6562;
    color: var(--text);
}

html[data-theme="dark"] .card {
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.35);
}

html[data-theme="dark"] .pickle-me-up-btn {
    color: #f6fffb;
    text-shadow: 0 1px 0 rgba(0, 0, 0, 0.2);
}

html[data-theme="dark"] .btn-danger-outline {
    border-color: #8a5c59;
    color: #f0c4c8;
}

html[data-theme="dark"] .btn-danger-outline:hover {
    background: var(--error-bg);
}

html[data-theme="dark"] .btn-check-skip {
    background: rgba(125, 211, 176, 0.1);
    color: var(--accent-hover);
    border-color: rgba(125, 211, 176, 0.4);
}

html[data-theme="dark"] .btn-check-skip:hover {
    background: rgba(125, 211, 176, 0.16);
    color: var(--accent);
}

html[data-theme="dark"] .quill-editor {
    background: var(--input-bg);
}

html[data-theme="dark"] .ql-toolbar.ql-snow,
html[data-theme="dark"] .ql-container.ql-snow {
    background: var(--bg-card);
    color: var(--text);
}

html[data-theme="dark"] .ql-editor {
    color: var(--text);
}

html[data-theme="dark"] .ql-editor.ql-blank::before {
    color: var(--text-muted);
}

html[data-theme="dark"] .ql-toolbar.ql-snow {
    background: #1f2a26;
}

html[data-theme="dark"] .ql-snow .ql-stroke {
    stroke: #d0e0d8;
}

html[data-theme="dark"] .ql-snow .ql-fill {
    fill: #d0e0d8;
}

html[data-theme="dark"] .ql-snow .ql-picker-label {
    color: var(--text);
}

html[data-theme="dark"] .ql-snow .ql-picker-options {
    background: var(--bg-card);
    border-color: var(--border);
}

html[data-theme="dark"] .ql-snow .ql-picker-item {
    color: var(--text);
}

html[data-theme="dark"] .ql-snow .ql-picker-item.ql-selected,
html[data-theme="dark"] .ql-snow .ql-picker-item:hover {
    color: var(--accent);
}

html[data-theme="dark"] .alert {
    border-color: #6a4a46;
}

html[data-theme="dark"] .alert--success {
    background: #1a2822;
    color: #c8ead8;
    border-color: #3d5c4f;
}

html[data-theme="dark"] .pickle-dialog::backdrop {
    background: rgba(6, 10, 9, 0.72);
}

html[data-theme="dark"] .pickle-dialog__fx {
    background:
        radial-gradient(ellipse 90% 55% at 50% 38%, rgba(125, 211, 176, 0.08) 0%, transparent 58%),
        radial-gradient(ellipse 70% 45% at 20% 70%, rgba(80, 120, 100, 0.06) 0%, transparent 45%);
}

html[data-theme="dark"] .pickle-dialog__inner {
    background: rgba(22, 30, 27, 0.88);
    border-color: rgba(125, 211, 176, 0.2);
    box-shadow:
        0 1px 0 rgba(125, 211, 176, 0.08) inset,
        0 32px 80px rgba(0, 0, 0, 0.45),
        0 0 0 1px rgba(0, 0, 0, 0.35);
}

html[data-theme="dark"] .pickle-dialog__greeting {
    color: var(--accent);
    text-shadow: none;
}

html[data-theme="dark"] .pickle-dialog__quote {
    color: var(--text);
    background: linear-gradient(
        168deg,
        rgba(30, 40, 36, 0.98) 0%,
        rgba(24, 34, 30, 0.95) 42%,
        rgba(28, 36, 32, 0.96) 100%
    );
    border-color: rgba(125, 211, 176, 0.22);
    box-shadow:
        0 1px 0 rgba(125, 211, 176, 0.06) inset,
        0 14px 40px rgba(0, 0, 0, 0.25);
}

html[data-theme="dark"] .pickle-dialog__quote::before,
html[data-theme="dark"] .pickle-dialog__quote::after {
    color: rgba(125, 211, 176, 0.25);
}

html[data-theme="dark"] .pickle-dialog__quote-shell::after {
    background: linear-gradient(90deg, transparent, rgba(125, 211, 176, 0.35), transparent);
}

html[data-theme="dark"] .content-tabs__tab {
    background: rgba(255, 255, 255, 0.04);
}

html[data-theme="dark"] .content-tabs__tab:hover {
    background: rgba(125, 211, 176, 0.12);
}

html[data-theme="dark"] .content-tabs__tab.is-active {
    background: rgba(125, 211, 176, 0.18);
    border-color: rgba(125, 211, 176, 0.4);
}
