/* One warm light palette for shared surfaces; layout stays in component CSS.
   Explicit site branding follows this sheet and can still customize colors. */
html[data-theme="light"] {
    color-scheme: light;
    --bg: #efddcb;
    --bg-2: #fff3e3;
    --panel: #f4e1ce;
    --panel-solid: #fff7eb;
    --panel-strong: #e9cdb5;
    --sidebar-bg: #f5dfca;
    --text: #302218;
    --muted: #655044;
    --line: #98755b;
    --sidebar-line: #a07b60;
    --accent: #9d351f;
    --accent-2: #82311e;
    --accent-soft: #b94a2d1f;
    --accent-ink: color-mix(in srgb, var(--accent) 83%, black);
    --focus-ring: #a74326;
    --surface-gradient: var(--grain), linear-gradient(125deg, #fff3e7f5, #ffecd8f5 55%, #fff0dff5);
    --surface-shadow: inset 0 1px 1px #fff8ec, inset 0 -1px 1px #8e5f3524, 0 8px 24px #673a2020;
    --selected-surface: var(--grain), linear-gradient(130deg, #ffe8d2, #f8deca 55%, #ffeeda);
}

html[data-theme="light"] body.app-page:not(.reader-page-body) {
    background: var(--grain), linear-gradient(135deg, color-mix(in srgb, var(--bg) 65%, #f6cda8), color-mix(in srgb, var(--bg-2) 78%, #f3d4b5));
}

/* Field contents stay crisp while the surrounding panels retain soft glass. */
html[data-theme="light"] body.app-page :is(.stack-form, .mangayaku-title-field, .phase5g-basics) :is(input:not([type="checkbox"]):not([type="radio"]):not([type="file"]):not([type="hidden"]), textarea, select) {
    background: var(--panel-solid);
    box-shadow: inset 0 1px 3px #633a2010;
}
html[data-theme="light"] body.app-page :is(input, textarea)::placeholder {
    color: var(--muted);
    opacity: 1;
}

/* Accent-colored labels need more contrast than decorative fills. */
html[data-theme="light"] body.app-page :is(.sidebar-link.active, .mobile-tab.active,
    .account-tab.active, .auth-dialog-tabs button.active, .eyebrow, .phase5g-eyebrow,
    .auth-switch a, .account-panel button[type="submit"], [data-library-delete-confirm]),
html[data-theme="light"] body.app-page .mangayaku-profile-options .phase5g-profile-card input:checked + span {
    color: var(--accent-ink);
}

/* Avoid whitening the colored button behind its white label. */
html[data-theme="light"] body.app-page :is(.button.primary, .top-action.primary, .stack-form button[type="submit"], .phase5g-submit-bar button[type="submit"]) {
    background: var(--grain), linear-gradient(135deg, var(--theme-button), color-mix(in srgb, var(--theme-button) 88%, black));
    color: #fff9f5;
}
