/* Login page - shared dark gradient theme
   Self-contained: includes variables, reset, and all login UI */
:root {
    --font-primary: "Instrument Sans", -apple-system, BlinkMacSystemFont,
        "Segoe UI", sans-serif;
    --font-body: "Instrument Sans", -apple-system, BlinkMacSystemFont,
        "Segoe UI", sans-serif;
    --color-primary: #00244d;
}
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}
body {
    font-family: var(--font-body);
    line-height: 1.6;
    --tool-dashboard-photo: url("/assets/catalina-palms-bg.png");
    background: linear-gradient(135deg, #00244d 0%, #116090 50%, #379bd7 100%);
    background-image: linear-gradient(
            rgba(18, 35, 70, 0.6),
            rgba(18, 35, 70, 1)
        ),
        var(--tool-dashboard-photo);
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    color: #fff;
    padding: 0;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
}
/* Authenticated dashboard / profile: photos live on .at-dashboard-bg-slideshow plates */
body.tools-dashboard-slideshow {
    background: linear-gradient(135deg, #00244d 0%, #116090 50%, #379bd7 100%);
    background-image: linear-gradient(
        rgba(18, 35, 70, 0.6),
        rgba(18, 35, 70, 1)
    );
}
.at-dashboard-bg-slideshow {
    position: fixed;
    inset: 0;
    z-index: 0;
    pointer-events: auto;
    cursor: pointer;
    opacity: 0;
    transition: opacity 1200ms ease;
}
.at-dashboard-bg-slideshow.is-booted {
    opacity: 1;
}
.at-dashboard-bg-plate {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    background-repeat: no-repeat;
    transition: opacity 1200ms ease;
}
body:has(main.dashboard) .at-dashboard-bg-plate {
    background-position: 40% center;
}
body.tools-dashboard-slideshow:has(main.dashboard) main.dashboard {
    position: relative;
    z-index: 1;
    pointer-events: none;
}
body.tools-dashboard-slideshow:has(main.dashboard) main.dashboard * {
    pointer-events: auto;
}

@media (prefers-reduced-motion: reduce) {
    .at-dashboard-bg-slideshow {
        opacity: 1;
        transition: none;
    }
    .at-dashboard-bg-plate {
        transition: none !important;
    }
}

.footer {
    background: transparent;
    color: rgba(255, 255, 255, 0.7);
    border: none;
    text-align: center;
    padding: 1.5rem;
    font-size: 0.8rem;
}
.footer a {
    color: rgba(255, 255, 255, 0.9);
    text-decoration: none;
}
.footer a:hover {
    color: #fff;
    text-decoration: none;
}
.login-back-link {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
}
.login-page {
    min-height: 100vh;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}
.login-box {
    background: rgba(255, 255, 255, 0.08);
    padding: 2.5rem 3rem;
    max-width: 420px;
    width: 100%;
    text-align: center;
}
.login-logo {
    margin-bottom: 1.5rem;
    display: flex;
    justify-content: center;
}
.login-logo img {
    height: 20px;
    width: auto;
}
.login-title {
    font-family: var(--font-primary);
    font-size: 1.5rem;
    font-weight: 700;
    color: #fff;
    margin-bottom: 0.5rem;
}
.login-subtitle {
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 1.5rem;
    font-size: 0.95rem;
}
.login-form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}
.login-input {
    width: 100%;
    padding: 0.75rem 1rem;
    font-size: 1rem;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 4px;
    color: #ffffff;
    font-family: var(--font-body);
    text-align: left;
    box-sizing: border-box;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
    transition: background 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
    -webkit-appearance: none;
    appearance: none;
}
.login-input::placeholder {
    color: rgba(255, 255, 255, 0.45);
}
.login-input:hover:not(:focus) {
    background: rgba(255, 255, 255, 0.09);
    border-color: rgba(255, 255, 255, 0.28);
}
.login-input:focus {
    outline: none;
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(120, 200, 255, 0.65);
    box-shadow: 0 0 0 3px rgba(120, 200, 255, 0.18), inset 0 1px 0 rgba(255, 255, 255, 0.06);
}
.login-input:-webkit-autofill,
.login-input:-webkit-autofill:hover,
.login-input:-webkit-autofill:focus {
    -webkit-text-fill-color: #ffffff;
    -webkit-box-shadow: 0 0 0 1000px rgba(0, 24, 55, 0.95) inset;
    caret-color: #ffffff;
    transition: background-color 5000s ease-in-out 0s;
}
.login-input[type="password"]::-ms-reveal,
.login-input[type="password"]::-ms-clear {
    filter: invert(1) brightness(2);
}
.login-input--locked,
.login-input--locked:hover,
.login-input--locked:focus {
    background: rgba(255, 255, 255, 0.04);
    border-color: rgba(255, 255, 255, 0.12);
    color: rgba(255, 255, 255, 0.75);
    cursor: default;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}
.login-input-wrap {
    position: relative;
}
.login-input-wrap .login-input {
    padding-right: 3.5rem;
}
.login-pw-toggle {
    position: absolute;
    right: 8px;
    top: 0;
    height: 100%;
    width: 3rem;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
}
.login-pw-toggle::after {
    content: "SHOW";
    font-family: var(--font-body);
    font-size: 0.65rem;
    font-weight: 600;
    letter-spacing: 0.06em;
    color: rgba(255, 255, 255, 0.6);
    transition: color 0.18s ease;
}
.login-pw-toggle:hover::after {
    color: #ffffff;
}
.login-pw-toggle.visible::after {
    content: "HIDE";
}
.login-btn {
    display: block;
    box-sizing: border-box;
    width: 100%;
    padding: 0.75rem 1.5rem;
    font-size: 1rem;
    font-weight: 700;
    color: #fff;
    background: rgba(255, 255, 255, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.25);
    cursor: pointer;
    position: relative;
    text-align: left;
    text-decoration: none;
    font-family: var(--font-body);
    transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}
.login-btn::after {
    content: "";
    position: absolute;
    right: 1.25rem;
    top: 50%;
    transform: translateY(-50%);
    width: 17px;
    height: 15px;
    background: url("https://a.akel.co/sites/5/2025/12/arrow-right-white.svg")
        no-repeat center / contain;
    opacity: 0.7;
    transition: none;
}
.login-btn:hover {
    background: var(--color-primary);
    color: #fff;
    border-color: var(--color-primary);
}
.login-btn:hover::after {
    opacity: 1;
    filter: none;
}
.login-error {
    color: #ff4d6a;
    font-weight: 600;
    font-size: 0.9rem;
    margin-top: 0.5rem;
}
.login-info {
    color: rgba(255, 255, 255, 0.85);
    font-size: 0.85rem;
    margin-top: 0.75rem;
    text-align: center;
    line-height: 1.5;
}
.login-success {
    color: #5eead4;
    font-weight: 600;
    font-size: 0.95rem;
    margin-bottom: 1rem;
    text-align: center;
}
.login-link {
    color: rgba(255, 255, 255, 0.75);
    font-size: 0.85rem;
    text-decoration: underline;
    text-underline-offset: 3px;
}
.login-link:hover {
    color: #fff;
}
.login-form .login-foot {
    margin-top: 0.75rem;
    text-align: center;
}
/* ── Post-login nav (root index when authenticated) ───────────────── */
main {
    text-align: center;
    padding: 3rem 2rem;
    display: flex;
    flex-direction: column;
    align-items: center;
}
main .login-logo {
    margin-bottom: 2rem;
}
.welcome-label {
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.45);
    margin-bottom: 1.5rem;
}
nav {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    width: 100%;
    max-width: 420px;
}
.nav-section {
    text-align: left;
}
.nav-section-title {
    font-size: 0.65rem;
    font-weight: 600;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.5);
    margin-bottom: 0.6rem;
    padding-left: 0.25rem;
}
nav ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0;
}
nav a {
    display: block;
    padding: 1rem 2.5rem;
    color: #fff;
    text-decoration: none;
    font-weight: 500;
    font-size: 1.05rem;
    letter-spacing: 0.02em;
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-bottom: none;
    background: rgba(255, 255, 255, 0.05);
    transition: background 0.2s;
}
nav li:last-child a {
    border-bottom: 1px solid rgba(255, 255, 255, 0.15);
}
nav a:hover {
    background: rgba(255, 255, 255, 0.12);
}
.signout {
    margin-top: 3rem;
    padding-top: 1.5rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}
.clear-cache-btn {
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: #0d1f17;
    background: #00b777;
    border: 1px solid #00b777;
    padding: 0.5rem 1rem;
    height: 36px;
    box-sizing: border-box;
    cursor: pointer;
    font-family: var(--font-body);
    transition: background 0.2s, border-color 0.2s, color 0.2s;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    min-width: 200px;
}
.clear-cache-btn:hover:not(:disabled) {
    background: #1ae99e;
    border-color: #1ae99e;
}
.clear-cache-btn:disabled {
    cursor: not-allowed;
    opacity: 0.85;
}
.clear-cache-btn.error {
    background: #ff4d6a;
    border-color: #ff4d6a;
    color: #fff;
}
.clear-cache-spinner {
    display: none;
    width: 14px;
    height: 14px;
    border: 2px solid rgba(0, 0, 0, 0.2);
    border-top-color: currentColor;
    border-radius: 50%;
    animation: clear-cache-spin 0.7s linear infinite;
}
.clear-cache-spinner.visible {
    display: inline-block;
}
.clear-cache-btn.loading .clear-cache-text {
    display: none;
}
@keyframes clear-cache-spin {
    to {
        transform: rotate(360deg);
    }
}
.signout a {
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.5);
    text-decoration: none;
}
.signout a:hover {
    color: rgba(255, 255, 255, 0.9);
}

.index-powered-by {
    text-align: center;
    font-size: 0.7rem;
    color: rgba(255, 255, 255, 0.9);
    padding: 1rem 0 1.5rem;
    letter-spacing: 0.02em;
}
.index-powered-by strong {
    color: #fff;
    font-weight: 600;
}

/* ── Dashboard (authenticated homepage) ─────────────────────────────── */
body:has(main.dashboard) {
    align-items: flex-start;
    background-position: 40% center;
}
main.dashboard {
    max-width: 1100px;
    width: 100%;
    margin: 0 auto;
    padding: 0 1.5rem 1rem;
    align-items: stretch;
    text-align: left;
}
.dashboard-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.25rem 0 1.35rem;
    margin-bottom: 2.5rem;
    position: relative;
    border-bottom: none;
}
.dashboard-header::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 1px;
    pointer-events: none;
    background: linear-gradient(
        90deg,
        rgba(56, 155, 215, 0.12) 0%,
        rgba(90, 175, 230, 0.28) 22%,
        rgba(130, 200, 245, 0.42) 48%,
        rgba(185, 228, 255, 0.52) 72%,
        rgba(160, 215, 248, 0.38) 88%,
        rgba(100, 185, 225, 0.2) 100%
    );
    box-shadow: 0 0 10px rgba(120, 200, 255, 0.16);
}
.dashboard-header .login-logo {
    margin-bottom: 0;
}
.dashboard-header .login-logo img {
    opacity: 0.95;
    vertical-align: middle;
}
.dashboard-header .login-logo .dashboard-logo-full {
    display: block;
    height: 22px;
    width: auto;
}
.dashboard-header .login-logo .dashboard-logo-mobile {
    display: none;
    height: 42px;
    width: 42px;
    object-fit: contain;
}
.dashboard-header-actions {
    display: flex;
    align-items: center;
    gap: 0.9rem;
}
/* Default: narrow viewports — icon-only + glass */
.dashboard-header .clear-cache-btn-header {
    position: relative;
    width: 42px;
    min-width: 42px;
    max-width: none;
    height: 42px;
    padding: 0;
    justify-content: center;
    flex-shrink: 0;
    font-size: 0.7rem;
    font-weight: 500;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    -webkit-backdrop-filter: blur(20px);
    backdrop-filter: blur(20px);
    background: rgba(255, 255, 255, 0.1);
    border: none;
    color: rgba(255, 255, 255, 0.95);
}
.dashboard-header .clear-cache-btn-header:hover:not(:disabled) {
    background: rgba(255, 255, 255, 0.16);
    color: #fff;
}
.dashboard-header .clear-cache-text {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}
.dashboard-header .clear-cache-btn-header.loading .clear-cache-icon {
    display: none;
}
.dashboard-header .clear-cache-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    line-height: 0;
}
.dashboard-header .theme-toggle-btn {
    width: 42px;
    min-width: 42px;
    height: 42px;
    flex-shrink: 0;
    padding: 0;
    justify-content: center;
    font-size: 0.7rem;
    font-weight: 500;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    -webkit-backdrop-filter: blur(20px);
    backdrop-filter: blur(20px);
    background: rgba(255, 255, 255, 0.1);
    border: none;
    color: rgba(255, 255, 255, 0.95);
}
.dashboard-header .theme-toggle-btn:hover {
    background: rgba(255, 255, 255, 0.16);
    color: #fff;
}
.dashboard-header .clear-cache-icon svg,
.dashboard-header .theme-toggle-btn .theme-icon svg {
    filter: drop-shadow(0 1px 3px rgba(0, 0, 0, 0.35));
}
/* Desktop: text label for Clear cache; larger tap targets */
@media (min-width: 601px) {
    .dashboard-header-actions {
        gap: 0.75rem;
    }
    .dashboard-header .clear-cache-icon {
        display: none;
    }
    .dashboard-header .clear-cache-text {
        position: static;
        width: auto;
        height: auto;
        margin: 0;
        padding: 0;
        overflow: visible;
        clip: auto;
        white-space: nowrap;
        border: 0;
    }
    .dashboard-header .clear-cache-btn-header {
        width: auto;
        min-width: 9rem;
        max-width: 16rem;
        height: auto;
        min-height: 42px;
        padding: 0.65rem 1.2rem;
        justify-content: center;
    }
    .dashboard-header .clear-cache-icon svg,
    .dashboard-header .theme-toggle-btn .theme-icon svg {
        filter: none;
    }
}
.dashboard-welcome {
    margin-bottom: 2.5rem;
}
.dashboard-welcome-bar {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 2.5rem;
    flex-wrap: wrap;
}
.dashboard-welcome-left {
    flex: 1 1 auto;
    min-width: min(100%, 20rem);
    max-width: 34rem;
    padding: 0.35rem 2.25rem 0.5rem 0;
    text-align: left;
}
.dashboard-welcome-right {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 0.28rem;
    flex: 0 0 auto;
    text-align: right;
}
.dashboard-welcome-time-weather {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: flex-end;
    gap: 0.85rem 1.1rem;
    flex-wrap: nowrap;
    width: 100%;
}
.welcome-headline {
    margin: 0;
    padding: 0;
    line-height: 1.2;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.45rem;
}
.dashboard-welcome .welcome-greeting {
    font-size: 0.7rem;
    font-weight: 500;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.78);
}
.welcome-headline .welcome-name,
.welcome-headline .welcome-name-link {
    font-size: 1.85rem;
    font-weight: 600;
    color: #fff;
    letter-spacing: -0.02em;
    line-height: 1.15;
}
.welcome-headline .welcome-name-link {
    display: inline-block;
    text-decoration: none;
    border-radius: 0;
    padding-bottom: 2px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.45);
    transition: border-color 0.15s ease;
}
.welcome-headline .welcome-name-link:hover {
    color: #fff;
    border-bottom-color: #fff;
}
.welcome-headline .welcome-name-link:focus-visible {
    outline: 2px solid rgba(255, 255, 255, 0.55);
    outline-offset: 3px;
}
.dashboard-welcome-clock,
.dashboard-welcome-weather {
    display: inline-flex;
    align-items: center;
    gap: 0;
    color: rgba(255, 255, 255, 0.92);
}
.dashboard-welcome-clock {
    flex: 0 0 auto;
    justify-content: flex-end;
    margin: 0;
    padding: 0;
}
.dashboard-welcome-clock time {
    font-size: 1.15rem;
    font-weight: 500;
    letter-spacing: 0.02em;
    font-variant-numeric: tabular-nums;
}
.dashboard-welcome-right .welcome-date {
    display: block;
    width: 100%;
    max-width: 22rem;
    margin: 0;
    padding: 0;
    font-size: 0.95rem;
    font-weight: 400;
    line-height: 1.35;
    color: rgba(255, 255, 255, 0.85);
}
.dashboard-welcome-weather {
    box-sizing: border-box;
    min-height: 2.5rem;
    min-width: 5.5rem;
    max-width: 100%;
    justify-content: flex-end;
    flex-wrap: nowrap;
    flex: 0 0 auto;
    position: relative;
    overflow: hidden;
    isolation: isolate;
    contain: layout style;
    opacity: 0;
    transition: opacity 0.55s ease;
}
.dashboard-welcome-weather.is-loaded {
    opacity: 1;
}
@media (prefers-reduced-motion: reduce) {
    .dashboard-welcome-weather {
        transition: none;
        opacity: 1;
    }
}
.dashboard-weather-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    width: 28px;
    height: 28px;
    min-width: 28px;
    min-height: 28px;
    max-width: 28px;
    max-height: 28px;
    line-height: 0;
    overflow: hidden;
    box-sizing: border-box;
    vertical-align: middle;
}
.dashboard-weather-icon svg {
    display: block;
    width: 100%;
    height: 100%;
    max-width: 100%;
    max-height: 100%;
    flex-shrink: 0;
    opacity: 0.95;
    overflow: hidden;
    box-sizing: border-box;
    pointer-events: none;
    shape-rendering: geometricPrecision;
}
.dashboard-welcome-right .dashboard-weather-temp {
    margin-left: 0.35rem;
    font-size: 1.2rem;
    font-weight: 600;
    letter-spacing: -0.02em;
    font-variant-numeric: tabular-nums;
}
@media (max-width: 600px) {
    .dashboard-welcome-bar {
        flex-direction: column;
        align-items: stretch;
        gap: 1.25rem;
    }
    .dashboard-welcome-left {
        padding: 0.35rem 0 0.35rem 0;
        max-width: none;
    }
    .dashboard-welcome-right {
        width: 100%;
        align-items: flex-start;
        text-align: left;
        padding: 0.5rem 0 0 0;
    }
    .dashboard-welcome-time-weather {
        justify-content: flex-start;
    }
    .dashboard-welcome-clock {
        justify-content: flex-start;
    }
    .dashboard-welcome-clock time {
        font-size: 1.05rem;
    }
    .dashboard-welcome-right .welcome-date {
        font-size: 0.88rem;
        max-width: none;
    }
    .dashboard-welcome-weather {
        justify-content: flex-start;
        align-self: flex-start;
    }
    .dashboard-welcome-right .dashboard-weather-temp {
        font-size: 1.1rem;
    }
    .dashboard-weather-icon {
        width: 26px;
        height: 26px;
        min-width: 26px;
        min-height: 26px;
        max-width: 26px;
        max-height: 26px;
    }
    .dashboard-welcome-weather {
        min-height: 2.35rem;
        min-width: 5rem;
    }
}
.tool-stacks {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 1.25rem;
    margin-bottom: 2.5rem;
}
.tool-stack {
    -webkit-backdrop-filter: blur(20px);
    backdrop-filter: blur(20px);
    background: rgba(255, 255, 255, 0.08);
}
.tool-stack-title {
    font-size: 0.65rem;
    font-weight: 500;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.82);
    margin: 0;
    padding: 1rem 1.5rem 0.75rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}
.tool-stack-links {
    display: flex;
    flex-direction: column;
}
.tool-stack-link {
    display: block;
    font-size: 1.05rem;
    font-weight: 500;
    letter-spacing: 0.01em;
    color: #fff;
    text-decoration: none;
    font-family: var(--font-body);
    padding: 0.75rem 1.5rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    background: transparent;
    transition: background 0.2s ease;
}
.tool-stack-link:last-child {
    border-bottom: none;
}
.tool-stack-link:hover {
    background: rgba(255, 255, 255, 0.08);
}
.tool-stack-link span {
    display: none;
}
.dashboard-footer {
    padding-top: 1rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}
@media (max-width: 600px) {
    main.dashboard {
        padding: 0 1rem 2rem;
    }
    .dashboard-header .login-logo .dashboard-logo-full {
        display: none;
    }
    .dashboard-header .login-logo .dashboard-logo-mobile {
        display: block;
    }
    .tool-stacks {
        grid-template-columns: 1fr;
    }
    .tool-stack-title,
    .tool-stack-link {
        padding-left: 1rem;
        padding-right: 1rem;
    }
}
/* Powered-by footer — dark background override (beats _powered-by.php defaults) */
body .powered-by {
    margin-top: 1.5rem;
    color: rgba(255, 255, 255, 0.35);
}
body .powered-by a {
    color: rgba(255, 255, 255, 0.45);
}
body .powered-by a:hover {
    color: rgba(255, 255, 255, 0.8);
}
body .powered-by-copy {
    color: rgba(255, 255, 255, 0.25);
}
/* Install-to-home-screen card (under welcome bar) */
.install-card[hidden] {
    display: none !important;
}
.install-card {
    display: flex;
    align-items: center;
    gap: 0.9rem;
    margin: 0 0 2rem 0;
    padding: 0.85rem 1rem;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.14);
    -webkit-backdrop-filter: blur(20px);
    backdrop-filter: blur(20px);
    color: rgba(255, 255, 255, 0.95);
    font-family: 'Instrument Sans', system-ui, -apple-system, sans-serif;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
}
.install-card-icon {
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    background: rgba(55, 155, 215, 0.25);
    color: #ffffff;
}
.install-card-text {
    flex: 1 1 auto;
    display: flex;
    flex-direction: column;
    gap: 0.1rem;
    min-width: 0;
}
.install-card-title {
    font-size: 0.95rem;
    font-weight: 600;
    color: #ffffff;
    letter-spacing: 0.005em;
}
.install-card-desc {
    font-size: 0.82rem;
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.35;
}
.install-card-actions {
    flex: 0 0 auto;
    display: flex;
    align-items: center;
    gap: 0.45rem;
}
.install-card-btn {
    border: 0;
    background: transparent;
    color: inherit;
    cursor: pointer;
    font-family: inherit;
    padding: 0;
    border-radius: 0;
}
.install-card-btn-primary {
    padding: 0.55rem 1.1rem;
    background: #379BD7;
    color: #ffffff;
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}
.install-card-btn-primary:hover {
    background: #2a87bf;
}
.install-card-btn-close {
    width: 34px;
    height: 34px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: rgba(255, 255, 255, 0.65);
    background: rgba(255, 255, 255, 0.06);
}
.install-card-btn-close:hover {
    background: rgba(255, 255, 255, 0.14);
    color: rgba(255, 255, 255, 0.95);
}
@media (max-width: 480px) {
    .install-card {
        flex-wrap: wrap;
        gap: 0.7rem;
        padding: 0.85rem 0.9rem;
    }
    .install-card-text {
        flex: 1 1 calc(100% - 50px);
    }
    .install-card-actions {
        flex: 1 1 100%;
        justify-content: flex-end;
    }
    .install-card-btn-primary {
        flex: 1 1 auto;
        padding: 0.65rem 1.1rem;
    }
}
/* Install-to-home-screen button + modal */
.dashboard-header .install-app-btn[hidden] {
    display: none !important;
}
.dashboard-header .install-app-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
}
.dashboard-header .install-app-btn svg {
    filter: drop-shadow(0 1px 3px rgba(0, 0, 0, 0.35));
}
@media (min-width: 601px) {
    .dashboard-header .install-app-btn svg {
        filter: none;
    }
}
.install-modal[hidden] {
    display: none !important;
}
body.install-modal-open {
    overflow: hidden;
}
.install-modal {
    position: fixed;
    inset: 0;
    z-index: 100000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
}
.install-modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.6);
    -webkit-backdrop-filter: blur(4px);
    backdrop-filter: blur(4px);
}
.install-modal-card {
    position: relative;
    width: 100%;
    max-width: 26rem;
    background: #ffffff;
    color: #1a1a1a;
    border-radius: 0;
    padding: 1.75rem 1.5rem 1.5rem;
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.35);
    font-family: 'Instrument Sans', system-ui, -apple-system, sans-serif;
}
.install-modal-close {
    position: absolute;
    top: 0.35rem;
    right: 0.5rem;
    width: 2.25rem;
    height: 2.25rem;
    background: transparent;
    border: 0;
    padding: 0;
    font-size: 1.6rem;
    line-height: 1;
    color: #555;
    cursor: pointer;
}
.install-modal-close:hover {
    color: #000;
}
.install-modal-title {
    margin: 0 1.5rem 0.4rem 0;
    font-size: 1.15rem;
    font-weight: 600;
    letter-spacing: 0.005em;
    color: #1a1a1a;
}
.install-modal-lead {
    margin: 0 0 1.1rem 0;
    font-size: 0.92rem;
    line-height: 1.45;
    color: #555;
}
.install-modal-steps[hidden],
.install-modal-note[hidden] {
    display: none !important;
}
.install-modal-steps {
    list-style: none;
    padding: 0;
    margin: 0 0 0.9rem 0;
    display: flex;
    flex-direction: column;
    gap: 0.7rem;
}
.install-modal-steps li {
    display: flex;
    align-items: flex-start;
    gap: 0.7rem;
    font-size: 0.95rem;
    line-height: 1.45;
    color: #1a1a1a;
}
.install-step-num {
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 1.6rem;
    height: 1.6rem;
    background: #379BD7;
    color: #fff;
    font-size: 0.85rem;
    font-weight: 600;
    line-height: 1;
}
.install-step-text {
    flex: 1 1 auto;
    padding-top: 0.15rem;
}
.install-step-text strong {
    font-weight: 600;
}
.install-share-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 1.4rem;
    height: 1.4rem;
    margin: 0 0.15rem;
    color: #379BD7;
    vertical-align: -0.3rem;
}
.install-modal-note {
    margin: 0.6rem 0 0 0;
    padding: 0.6rem 0.7rem;
    font-size: 0.82rem;
    line-height: 1.4;
    color: #5a4a00;
    background: #fff6d6;
    border-left: 3px solid #d9a900;
}
@media (prefers-color-scheme: dark) {
    .install-modal-card {
        background: #161616;
        color: #f5f5f5;
        box-shadow: 0 24px 60px rgba(0, 0, 0, 0.7);
    }
    .install-modal-close {
        color: #aaa;
    }
    .install-modal-close:hover {
        color: #fff;
    }
    .install-modal-title {
        color: #f5f5f5;
    }
    .install-modal-lead {
        color: #bbb;
    }
    .install-modal-steps li {
        color: #f0f0f0;
    }
    .install-modal-note {
        color: #ffe69c;
        background: rgba(217, 169, 0, 0.12);
        border-left-color: #d9a900;
    }
}

/* Staff login brand skins — realtors / trades hosts or dev ?login_brand=realtors|trades */
body.login-brand-realtors {
    --tool-dashboard-photo: none;
    /* CSS-only depth — red–burgundy warmth over deep plum/navy (no photo) */
    background-color: #1a1218;
    background-image: radial-gradient(
            ellipse 90% 55% at 24% -8%,
            rgba(215, 95, 95, 0.26) 0%,
            rgba(140, 55, 72, 0.18) 38%,
            transparent 54%
        ),
        radial-gradient(
            ellipse 64% 44% at 92% 88%,
            rgba(70, 115, 155, 0.26) 0%,
            transparent 52%
        ),
        linear-gradient(
            162deg,
            #1a1218 0%,
            #281820 34%,
            #1a2438 62%,
            #100c14 100%
        );
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
}
body.login-brand-trades {
    --tool-dashboard-photo: none;
    /* Same layered structure as Realtors — cool teal / steel (no photo) */
    background-color: #0f1c28;
    background-image: radial-gradient(
            ellipse 88% 52% at 20% -6%,
            rgba(130, 205, 218, 0.22) 0%,
            transparent 52%
        ),
        radial-gradient(
            ellipse 62% 42% at 90% 86%,
            rgba(62, 108, 148, 0.32) 0%,
            transparent 52%
        ),
        linear-gradient(
            162deg,
            #0f1c28 0%,
            #153038 42%,
            #122232 78%,
            #0c141c 100%
        );
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
}
