/* Harbor appearance: dark (default in login.css), light, AMOLED */

html[data-harbor-theme="light"] {
    color-scheme: light;

    --init-background-color: rgb(255, 255, 255);
    --init-label-color: rgba(0, 0, 0, 0.88);
    --theme-color-backdrop: rgba(245, 245, 247, 0.85);
    --theme-color-backgroundLayer1: #ffffff;
    --theme-color-backgroundLayer2: #ffffff;
    --theme-color-backgroundPrimary: #ffffff;
    --theme-color-boxShadow: rgba(0, 0, 0, 0.12);
    --theme-color-divider: #d1d1d6;
    --theme-color-fillPrimary: rgba(120, 120, 128, 0.2);
    --theme-color-fillQuaternary: rgba(120, 120, 128, 0.08);
    --theme-color-fillSecondary: rgba(120, 120, 128, 0.16);
    --theme-color-fillTertiary: rgba(118, 118, 128, 0.12);
    --theme-color-gray2: #aeaeb2;
    --theme-color-gray6: #f2f2f7;
    --theme-color-labelPrimary: rgba(0, 0, 0, 0.88);
    --theme-color-labelQuaternary: rgba(0, 0, 0, 0.32);
    --theme-color-labelSecondary: rgba(0, 0, 0, 0.56);
    --theme-color-labelTertiary: rgba(0, 0, 0, 0.48);
    --theme-color-separator: #d1d1d6;
    --theme-color-sidebar: #ffffff;
    --theme-color-systemBlue: #0071e3;
    --theme-color-tintBlue: rgba(0, 113, 227, 0.7);
    --theme-color-tintBlueSecondary: rgba(0, 113, 227, 0.28);
    --theme-color-tintBlueTertiary: rgba(0, 113, 227, 0.12);

    --bg: #ffffff;
    --surface: #ffffff;
    --text: var(--theme-color-labelPrimary);
    --muted: var(--theme-color-labelSecondary);
    --fill: var(--theme-color-fillQuaternary);
    --blue: #0071e3;
    --blue-press: #0077ed;
    --focus: var(--theme-color-tintBlueSecondary);
    --topbar-glass: rgba(255, 255, 255, 0.82);
    --topbar-border: rgba(0, 0, 0, 0.08);
    --signin-panel-shadow: rgba(120, 120, 128, 0.16) 0 11px 34px 0;
    --harbor-card-bg: #ffffff;
    --harbor-heading: rgba(0, 0, 0, 0.88);
    --harbor-body-strong: rgba(0, 0, 0, 0.88);
    --harbor-body-muted: rgba(0, 0, 0, 0.56);
    --harbor-input-bg: #ffffff;
    --harbor-toolbar-bg: var(--topbar-glass);
    --harbor-otp-fill: #ffffff;
    --harbor-otp-border: #d2d2d7;
    --harbor-otp-border-hover: #b0b0b5;
    --harbor-otp-ring-offset: #ffffff;
    --harbor-quick-access-muted: rgba(0, 0, 0, 0.56);
    --harbor-trust-outline: #0071e3;
}

html[data-harbor-theme="amoled"] {
    color-scheme: dark;

    --theme-color-backgroundLayer1: #000000;
    --theme-color-backgroundLayer2: #121212;
    --theme-color-backgroundPrimary: #0a0a0a;
    --theme-color-boxShadow: rgba(0, 0, 0, 0.65);
    --theme-color-divider: #2c2c2e;
    --theme-color-gray6: #000000;
    --theme-color-sidebar: #000000;
    --topbar-glass: rgba(0, 0, 0, 0.72);
    --topbar-border: rgba(255, 255, 255, 0.06);
    --signin-panel-shadow:
        0 12px 40px rgba(0, 0, 0, 0.55),
        0 0 0 1px rgba(255, 255, 255, 0.04);
    --bg: #000000;
    --surface: #121212;
    --harbor-card-bg: #0a0a0a;
    --harbor-input-bg: #141414;
    --harbor-toolbar-bg: rgba(0, 0, 0, 0.65);
    --harbor-otp-fill: #141414;
    --harbor-otp-ring-offset: #0a0a0a;
}

html[data-harbor-theme="light"] .home .flex-page-content {
    background: #ffffff;
}

html[data-harbor-theme="light"] body.home {
    background: #ffffff;
}

html[data-harbor-theme="light"] .hero-title,
html[data-harbor-theme="light"] .feature-panel__title {
    color: rgba(0, 0, 0, 0.88);
}

html[data-harbor-theme="light"] .home .service {
    color: rgba(0, 0, 0, 0.88);
}

html[data-harbor-theme="light"] .home .sign-in-link {
    background: #000000;
    color: #ffffff;
    box-shadow: none;
}

html[data-harbor-theme="light"] .home .sign-in-link:hover {
    background: #1d1d1f;
    color: #ffffff;
}

html[data-harbor-theme="light"] .home .sign-in-link:active {
    background: #333336;
    color: #ffffff;
}

html[data-harbor-theme="light"] .feature-panel__body {
    color: rgba(0, 0, 0, 0.56);
}

html[data-harbor-theme="light"] .feature-band {
    background: #ffffff;
    padding: 0 0 100px;
}

html[data-harbor-theme="light"] .feature-panels {
    max-width: 1006px;
    gap: 50px;
    padding: 0 24px;
    margin-top: 72px;
    justify-content: center;
}

html[data-harbor-theme="light"] .feature-panel {
    background: #ffffff;
    border-radius: 11px;
    box-shadow: rgba(0, 0, 0, 0.16) 17px 20px 40px 0;
    overflow: visible;
}

html[data-harbor-theme="light"] .feature-panel__art {
    min-height: 0;
    padding: 40px 40px 0;
}

html[data-harbor-theme="light"] .feature-panel__art img {
    max-height: none;
    width: auto;
    max-width: 100%;
    margin: 0 auto;
}

html[data-harbor-theme="light"] .feature-panel__copy {
    padding: 0 40px 40px;
    text-align: left;
}

html[data-harbor-theme="light"] .feature-panel__title {
    font-size: 28px;
    line-height: 1.15;
    letter-spacing: -0.022em;
    margin: 20px 0 0;
}

html[data-harbor-theme="light"] .feature-panel__body {
    margin-top: 12px;
    font-size: 17px;
    line-height: 1.35;
}

@media (max-width: 1100px) {
    html[data-harbor-theme="light"] .feature-panels {
        gap: 32px;
        margin-top: 56px;
    }
}

@media (max-width: 900px) {
    html[data-harbor-theme="light"] .feature-panels {
        grid-template-columns: 1fr;
        gap: 28px;
        margin-top: 48px;
        max-width: 520px;
    }

    html[data-harbor-theme="light"] .feature-panel {
        width: 100%;
        max-width: 478px;
        margin-inline: auto;
    }

    html[data-harbor-theme="light"] .feature-panel__art {
        padding: 32px 32px 0;
    }

    html[data-harbor-theme="light"] .feature-panel__copy {
        padding: 0 32px 32px;
    }
}

html[data-harbor-theme="light"] .home .legal-footer {
    margin-top: 80px;
}

html[data-harbor-theme="light"] .bottom.legal-footer,
html[data-harbor-theme="light"] .legal-footer {
    background: #e5e5ea;
}

html[data-harbor-theme="light"] .legal-footer a,
html[data-harbor-theme="light"] .legal-footer .copyright {
    color: rgba(0, 0, 0, 0.56);
}

html[data-harbor-theme="light"] .help-menu-button {
    color: rgba(0, 0, 0, 0.88);
}

html[data-harbor-theme="light"] .help-menu-button:hover {
    background: rgba(0, 0, 0, 0.06);
}

html[data-harbor-theme="light"] .mark-logo {
    filter: brightness(0);
}

/* Sign-in widget: login.css hardcodes dark fills; override for light (iCloud-style). */
html[data-harbor-theme="light"] .signin .field--plain input:hover,
html[data-harbor-theme="light"] .signin .field--plain input:focus,
html[data-harbor-theme="light"] .signin .field--plain input:focus-visible {
    background: var(--harbor-input-bg);
}

html[data-harbor-theme="light"] .credential-row--email,
html[data-harbor-theme="light"] .credential-row--input {
    background: var(--harbor-input-bg);
}

html[data-harbor-theme="light"] .credential-row--email .float-field input,
html[data-harbor-theme="light"] .credential-group .float-field input,
html[data-harbor-theme="light"] .credential-group .float-field input:hover,
html[data-harbor-theme="light"] .credential-group .float-field input:focus,
html[data-harbor-theme="light"] .credential-group .float-field input:focus-visible {
    background: var(--harbor-input-bg);
    color: var(--harbor-body-strong);
}

html[data-harbor-theme="light"] .signin .float-field--boxed:focus-within,
html[data-harbor-theme="light"] .signin .float-field--boxed:focus-within:hover,
html[data-harbor-theme="light"] .credential-row--email:focus-within,
html[data-harbor-theme="light"] .credential-row--email:focus-within:hover,
html[data-harbor-theme="light"] .credential-row--input:focus-within,
html[data-harbor-theme="light"] .credential-row--input:focus-within:hover {
    border-color: #0071e3;
}

html[data-harbor-theme="light"] .credential-group:focus-within .credential-row--email {
    border-bottom-color: #0071e3;
}

html[data-harbor-theme="light"] .keep-signed-in {
    color: rgba(0, 0, 0, 0.56);
}

html[data-harbor-theme="light"] .signin .float-field label {
    color: rgba(0, 0, 0, 0.45);
}

html[data-harbor-theme="light"] .signin-logo {
    opacity: 1;
    filter: none;
}

html[data-harbor-theme="light"] .signin .field--plain input,
html[data-harbor-theme="light"] .signin .float-field input,
html[data-harbor-theme="light"] .signin #account,
html[data-harbor-theme="light"] .signin #password {
    color: rgba(0, 0, 0, 0.88);
    -webkit-text-fill-color: rgba(0, 0, 0, 0.88);
}

html[data-harbor-theme="light"] .signin .field--plain input:hover {
    background: var(--harbor-input-bg);
    border-color: transparent;
}

html[data-harbor-theme="light"] .signin .primary {
    background: #0071e3;
    color: #ffffff;
}

html[data-harbor-theme="light"] .signin .primary:hover:not(:disabled) {
    background: #0077ed;
}

html[data-harbor-theme="light"] .signin .primary:disabled {
    background: rgba(0, 113, 227, 0.35);
    color: rgba(255, 255, 255, 0.95);
}

html[data-harbor-theme="light"] .signin .iphone-signin {
    background: #000000;
    color: #ffffff;
}

html[data-harbor-theme="light"] .signin .iphone-signin:hover {
    background: #1d1d1f;
}

html[data-harbor-theme="light"] .signin .iphone-signin-hint {
    color: rgba(0, 0, 0, 0.56);
}

html[data-harbor-theme="light"] .signin .sign-in-label {
    color: rgba(0, 0, 0, 0.88);
    font-size: 28px;
    line-height: 32px;
    font-weight: 600;
}

html[data-harbor-theme="light"] .signin .privacy-text {
    color: rgba(0, 0, 0, 0.56);
}

html[data-harbor-theme="light"] .trust-btn--outline {
    border-color: var(--harbor-trust-outline);
    color: var(--harbor-trust-outline);
}

html[data-harbor-theme="light"] .trust-btn--outline:hover {
    background: rgba(0, 113, 227, 0.08);
}

html[data-harbor-theme="light"] .quick-access-btn {
    color: var(--harbor-quick-access-muted);
}

html[data-harbor-theme="light"] .quick-access-label {
    color: var(--harbor-body-strong);
}

html[data-harbor-theme="amoled"] .bottom.legal-footer,
html[data-harbor-theme="amoled"] .legal-footer {
    background: #0a0a0a;
}

/* Legacy appearance picker removed — hide if an old cached script injects it. */
.theme-picker,
.theme-select,
#harbor-theme-select {
    display: none !important;
    visibility: hidden !important;
    pointer-events: none !important;
}

