:root {
    --boogle-blue: #008373;
    --firefox-blue: #0060df;
    --firefox-orange: #ff7139;
}

body {
    min-height: 100vh;
    color: rgba(255, 255, 255, 0.289);
    background:
        linear-gradient(90deg, rgba(0, 0, 0, .70), rgba(0, 0, 0, 0.748)),
        url("./wallpaper.jpg")
        center / cover fixed;
}

body.pc-desktop {
    min-height: 100vh;
    min-height: 100dvh;
    padding-bottom: 44px;
    overflow-x: hidden;
}

.fake-browser-window {
    position: relative;
    z-index: 1;
    width: 100%;
    min-height: calc(100dvh - 44px);
    margin: 0;
    overflow: hidden;
    background: transparent;
}

.fake-browser-window[hidden] {
    display: none;
}

.window-minimize {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    margin-left: .25rem;
    color: #555a63;
    background: transparent;
    border: 0;
    border-radius: 5px;
    font-size: 1.25rem;
    line-height: 1;
    cursor: pointer;
}

.window-minimize:hover,
.window-minimize:focus-visible {
    color: #20232b;
    background: rgba(255, 255, 255, .8);
    outline: none;
}

.desktop-home {
    position: fixed;
    inset: 0 0 44px;
    z-index: 0;
    padding: clamp(2rem, 7vw, 7rem);
    color: #fff;
    background:
        linear-gradient(135deg, #173b52, #176d68 55%, #a2b85a);
}

.desktop-home[hidden] {
    display: none;
}

.desktop-topbar {
    position: absolute;
    top: 1rem;
    right: 1.25rem;
    left: 1.25rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    color: rgba(255, 255, 255, .7);
    font-size: .75rem;
    letter-spacing: .04em;
    text-transform: uppercase;
}

.desktop-topbar strong { color: #fff; font-weight: 700; }

.desktop-login-screen {
    position: fixed;
    inset: 0 0 44px;
    z-index: 60;
    display: grid;
    place-items: center;
    padding: 1.5rem;
    background: linear-gradient(135deg, rgba(13, 29, 46, .97), rgba(21, 91, 93, .96));
}

.desktop-login-screen[hidden] { display: none; }

.desktop-login-card {
    width: min(420px, 100%);
    padding: 2rem;
    color: #183044;
    background: rgba(250, 252, 249, .98);
    border: 1px solid rgba(255, 255, 255, .45);
    border-radius: 8px;
    box-shadow: 0 28px 70px rgba(0, 0, 0, .3);
}

.desktop-login-mark { color: #176d68; font-size: 1.65rem; font-weight: 800; letter-spacing: .08em; }
.desktop-login-mark span { color: #d69b32; }
.desktop-login-kicker { margin: 2rem 0 .45rem; color: #74818a; font-size: .7rem; font-weight: 800; letter-spacing: .13em; text-transform: uppercase; }
.desktop-login-card h1 { margin: 0 0 1.4rem; font-family: Georgia, serif; font-size: 1.8rem; font-weight: 500; }
.desktop-login-form { display: grid; gap: .9rem; }
.desktop-login-form label { display: grid; gap: .35rem; color: #52616a; font-size: .75rem; font-weight: 800; letter-spacing: .05em; text-transform: uppercase; }
.desktop-login-form input { min-height: 42px; padding: .6rem .7rem; color: #183044; background: #fff; border: 1px solid #c8d4d3; border-radius: 4px; }
.desktop-login-form button { margin-top: .45rem; padding: .75rem; color: #fff; background: #176d68; border: 0; border-radius: 4px; font-weight: 700; cursor: pointer; }
.desktop-login-form button:hover, .desktop-login-form button:focus-visible { background: #105650; outline: none; }
.desktop-login-error { margin: 0; color: #b34b45; font-size: .8rem; }

.desktop-app-window {
    position: fixed;
    inset: 6vh 5vw 9vh;
    z-index: 40;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    background: #f7faf9;
    border: 1px solid rgba(255, 255, 255, .72);
    border-radius: 7px;
    box-shadow: 0 24px 70px rgba(4, 12, 24, .42);
}

.desktop-app-window[hidden] { display: none; }
.desktop-app-window > header { display: flex; align-items: center; justify-content: space-between; min-height: 38px; padding: .35rem .75rem; color: #e9f2f4; background: #183044; font-size: .8rem; }
.desktop-app-window > header button { color: inherit; background: transparent; border: 0; cursor: pointer; }
.desktop-app-window > iframe { width: 100%; min-height: 0; flex: 1; border: 0; }

.desktop-brand {
    display: flex;
    align-items: center;
    gap: .8rem;
    width: fit-content;
    text-shadow: 0 2px 12px rgba(0, 0, 0, .35);
}

.desktop-brand-mark {
    display: grid;
    width: 48px;
    height: 48px;
    place-items: center;
    color: #12314c;
    background: #f5c451;
    border-radius: 12px;
    font-size: 1.6rem;
    font-weight: 800;
}

.desktop-brand strong,
.desktop-brand small {
    display: block;
}

.desktop-brand strong {
    font-size: 1.15rem;
}

.desktop-brand small {
    margin-top: .15rem;
    color: rgba(255, 255, 255, .72);
}

.desktop-icons {
    display: flex;
    gap: 1.5rem;
    margin-top: clamp(3rem, 9vh, 7rem);
}

.desktop-icon {
    display: grid;
    justify-items: center;
    gap: .45rem;
    width: 110px;
    padding: .75rem .5rem;
    color: #fff;
    background: transparent;
    border: 1px solid transparent;
    border-radius: 8px;
    text-shadow: 0 1px 5px rgba(0, 0, 0, .45);
    cursor: pointer;
}

.desktop-icon:hover,
.desktop-icon:focus-visible {
    background: rgba(255, 255, 255, .16);
    border-color: rgba(255, 255, 255, .28);
    outline: none;
}

.desktop-icon-art {
    font-size: 2.35rem;
}

.folder-art {
    color: #f5c451;
}

.desktop-welcome {
    position: absolute;
    right: clamp(2rem, 8vw, 9rem);
    bottom: clamp(2rem, 8vh, 6rem);
    margin: 0;
    color: rgba(255, 255, 255, .76);
    font-size: clamp(1.3rem, 2.5vw, 2.3rem);
    font-weight: 300;
}

.fake-taskbar {
    position: fixed;
    right: 0;
    bottom: 0;
    left: 0;
    z-index: 30;
    display: flex;
    align-items: center;
    gap: .5rem;
    height: 44px;
    padding: .35rem .7rem;
    color: #eef5ff;
    background: rgba(16, 27, 42, .9);
    border-top: 1px solid rgba(255, 255, 255, .18);
    box-shadow: 0 -4px 18px rgba(4, 12, 24, .2);
    backdrop-filter: blur(12px);
}

.pc-desktop .desktop-home {
    position: fixed;
}

.pc-desktop .fake-taskbar {
    position: fixed;
}

.taskbar-start,
.taskbar-browser,
.taskbar-file-explorer,
.taskbar-admin,
.taskbar-signout {
    height: 32px;
    color: inherit;
    background: transparent;
    border: 1px solid transparent;
    border-radius: 5px;
    cursor: pointer;
}

.taskbar-start {
    width: 34px;
    color: #12314c;
    background: #f5c451;
    font-weight: 800;
}

.taskbar-start img {
    display: block;
    width: 22px;
    height: 22px;
    object-fit: contain;
}

.taskbar-browser {
    display: inline-flex;
    align-items: center;
    gap: .45rem;
    padding: 0 .75rem;
}

.taskbar-file-explorer {
    display: inline-flex;
    align-items: center;
    gap: .45rem;
    padding: 0 .75rem;
}

.taskbar-admin {
    display: inline-flex;
    align-items: center;
    gap: .45rem;
    padding: 0 .75rem;
}

.taskbar-signout {
    width: 32px;
    margin-left: auto;
    font-size: 1.05rem;
}

.taskbar-admin[hidden] { display: none; }

.taskbar-admin:hover,
.taskbar-admin:focus-visible,
.taskbar-signout:hover,
.taskbar-signout:focus-visible {
    background: rgba(255, 255, 255, .14);
    border-color: rgba(255, 255, 255, .2);
    outline: none;
}

.taskbar-browser:hover,
.taskbar-browser:focus-visible,
.taskbar-browser.active,
.taskbar-file-explorer:hover,
.taskbar-file-explorer:focus-visible {
    background: rgba(255, 255, 255, .14);
    border-color: rgba(255, 255, 255, .2);
    outline: none;
}

.taskbar-clock {
    margin-left: 0;
    padding: 0 .5rem;
    color: rgba(255, 255, 255, .78);
    font-size: .78rem;
}

.navbar {
    background: rgba(0, 0, 0, .18);
}

.navbar-brand,
.nav-link {
    color: white !important;
}

.boogle-logo {
    font-size: 1.8rem;
    font-weight: 600;
    letter-spacing: -.05em;
}

.bmail-logo {
    color: #1a73e8 !important;
    font-size: 1.8rem;
    font-weight: 600;
    letter-spacing: -.05em;
}

.hero {
    min-height: 74vh;
}

.typewriter-heading::after {
    content: '|';
    margin-left: .12em;
    color: var(--firefox-blue);
    animation: typewriter-caret .8s steps(1) infinite;
}

.search-container {
    max-width: 680px;
}

.search-box {
    height: 58px;
    border: 0;
    border-radius: 4px 0 0 4px;
    padding: 0 22px;
    font-size: 1.05rem;
    box-shadow: 0 2px 12px rgba(0, 0, 0, .3);
}

.search-button {
    width: 64px;
    border: 0;
    border-radius: 0 4px 4px 0;
    background: var(--boogle-blue);
    color: white;
    font-size: 1.4rem;
}

.search-button:hover {
    background: #006d61;
}

.quick-card {
    background: rgba(0, 0, 0, .45);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, .25);
}

footer {
    background: rgba(0, 0, 0, .35);
}

.results-page,
.inner-page {
    min-height: 100vh;
    color: #202020;
    background: #f5f7f8;
}

.results-page .navbar,
.inner-page .navbar {
    background: #202020;
}

.results-page {
    background: #fff;
}

.results-navbar {
    min-height: 64px;
    border-bottom: 1px solid #e0e4e8;
    background: #fff !important;
}

.results-navbar .navbar-brand,
.results-navbar .nav-link {
    color: #2b2a33 !important;
}

.results-navbar .nav-link:hover {
    color: var(--firefox-blue) !important;
}

.results-container {
    max-width: 980px;
}

.results-search-form {
    max-width: 720px;
    margin-left: 108px;
}

.results-search-form .search-box {
    height: 52px;
    border: 1px solid #8f8f9d;
    border-radius: 28px 0 0 28px;
    box-shadow: 0 2px 8px rgba(43, 42, 51, .12);
}

.results-search-form .search-button {
    border-radius: 0 28px 28px 0;
    background: var(--firefox-blue);
}

.results-search-form .search-button:hover {
    background: #0250b8;
}

.results-tabs {
    display: flex;
    gap: 1.5rem;
    margin: 0 0 1.75rem 108px;
    border-bottom: 1px solid #d7d7db;
}

.results-tabs a {
    padding: .65rem .1rem;
    color: #5b5b66;
    text-decoration: none;
}

.results-tabs a:hover,
.results-tabs a.active {
    color: var(--firefox-blue);
}

.results-tabs a.active {
    border-bottom: 3px solid var(--firefox-orange);
}

#search-heading {
    margin-left: 108px;
    color: #2b2a33;
    font-size: 1rem;
    font-weight: 400;
}

#results-list {
    margin-left: 108px;
    max-width: 700px;
}

.result-item {
    max-width: 700px;
    margin-bottom: 2rem;
    padding: 0 0 1.5rem;
    border-bottom: 1px solid #e6e6e9;
}

.result-title {
    color: var(--firefox-blue);
    font-size: 1.15rem;
    text-decoration: none;
}

.result-title:hover {
    text-decoration: underline;
}

.result-url {
    margin: .25rem 0;
    color: #53606c;
    font-size: .9rem;
}

.result-item p {
    margin: 0;
    color: #4a4a53;
    line-height: 1.55;
}

.pretend-result {
    padding: 0;
    border: 0;
    background: transparent;
}

.pretend-result .result-title {
    color: #202020;
}

@media (max-width: 700px) {
    .results-search-form,
    .results-tabs,
    #search-heading,
    #results-list {
        margin-left: 0;
    }

    .results-page .navbar {
        padding-right: 1rem !important;
        padding-left: 1rem !important;
    }
}

.content-card {
    max-width: 900px;
    border-radius: 8px;
    background: white;
    box-shadow: 0 3px 18px rgba(0, 0, 0, .1);
}

.eyebrow {
    color: var(--boogle-blue);
    font-size: .8rem;
    font-weight: 700;
    letter-spacing: .12em;
}

.email-message,
.news-grid article {
    margin-top: 1rem;
    padding: 1rem;
    border: 1px solid #e2e5e7;
    border-radius: 6px;
}

.news-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1rem;
}

.news-grid h2 {
    font-size: 1.25rem;
}

.news-grid small {
    color: #687078;
}

/* Shared light search theme across every page. */
.home-page,
.inner-page {
    color: #2b2a33;
    background: #f5f7fa;
}

.home-page .navbar,
.inner-page .navbar {
    background: #fff;
    border-bottom: 1px solid #e0e4e8;
}

.home-page .navbar,
.results-page .results-navbar {
    background: transparent !important;
    border-bottom-color: transparent;
}

.home-page .navbar-brand,
.home-page .nav-link,
.inner-page .navbar-brand,
.inner-page .nav-link {
    color: #2b2a33 !important;
}

.home-page .nav-link:hover,
.inner-page .nav-link:hover {
    color: var(--firefox-blue) !important;
}

.home-page .hero {
    min-height: 74vh;
}

.home-page .search-box {
    border: 1px solid #8f8f9d;
    border-radius: 28px 0 0 28px;
    box-shadow: 0 2px 8px rgba(43, 42, 51, .12);
}

.home-page .search-button {
    border-radius: 0 28px 28px 0;
    background: var(--firefox-blue);
}

.home-page .search-button:hover {
    background: #0250b8;
}

.home-page .quick-card {
    color: #4a4a53;
    background: #fff;
    border: 1px solid #e0e4e8;
    box-shadow: 0 2px 8px rgba(43, 42, 51, .06);
}

.lucky-button {
    display: inline-block;
    color: #2b2a33;
    text-decoration: none;
    transition: transform .2s ease, box-shadow .2s ease;
}

.lucky-button:hover {
    color: #2b2a33;
    transform: translateY(-2px);
    box-shadow: 0 5px 14px rgba(43, 42, 51, .14);
}

.home-page footer {
    color: #5b5b66;
    background: #fff;
    border-top: 1px solid #e0e4e8;
}

.content-card {
    border: 1px solid #e0e4e8;
    box-shadow: 0 2px 8px rgba(43, 42, 51, .06);
}

.theme-toggle {
    padding: .35rem .75rem;
    color: #2b2a33;
    background: transparent;
    border: 1px solid #8f8f9d;
    border-radius: 999px;
    font-size: .82rem;
    transition: color .2s ease, background-color .2s ease, border-color .2s ease;
}

.theme-toggle:hover {
    color: #fff;
    background: var(--firefox-blue);
    border-color: var(--firefox-blue);
}

.home-page,
.inner-page,
.results-page {
    background:
        linear-gradient(rgba(245, 247, 250, .58), rgba(245, 247, 250, .72)),
        url("./wallpaper.jpg")
        center / cover fixed;
}

.fake-url-bar {
    display: flex;
    align-items: center;
    gap: .55rem;
    min-height: 44px;
    padding: .4rem 1rem;
    color: #5b5b66;
    background: rgba(231, 232, 236, .96);
    border-bottom: 1px solid rgba(195, 196, 202, .95);
    font-size: .78rem;
    letter-spacing: .01em;
}

.browser-control,
.browser-menu {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 26px;
    height: 26px;
    color: #6b6b73;
    border-radius: 50%;
    font-size: 1.05rem;
    user-select: none;
}

.browser-control {
    cursor: pointer;
}

.browser-control:hover,
.browser-menu:hover {
    background: rgba(255, 255, 255, .75);
}

.fake-address {
    display: flex;
    align-items: center;
    flex: 1;
    gap: .5rem;
    min-width: 0;
    min-height: 30px;
    padding: 0 .8rem;
    color: #3f3f46;
    background: rgba(255, 255, 255, .88);
    border: 1px solid #c9cbd1;
    border-radius: 7px;
    box-shadow: inset 0 1px 2px rgba(43, 42, 51, .05);
}

.fake-url-text {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.url-lock {
    color: #16834b;
    font-size: .72rem;
}

.loading-screen {
    position: fixed;
    inset: 0;
    z-index: 20;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: .7rem;
    color: #2b2a33;
    background: rgba(245, 247, 250, .88);
    opacity: 1;
    transition: opacity .25s ease;
}

.loading-screen.loading-finished {
    pointer-events: none;
    opacity: 0;
}

.loading-spinner {
    width: 18px;
    height: 18px;
    border: 2px solid #c9d9ee;
    border-top-color: var(--firefox-blue);
    border-radius: 50%;
    animation: spin .75s linear infinite;
}

.loading-message {
    color: #5b5b66;
}

body:not(.page-ready) > :not(.loading-screen) {
    opacity: .72;
}

body.page-leaving {
    opacity: 0;
    transition: opacity .18s ease;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

@keyframes typewriter-caret {
    50% {
        opacity: 0;
    }
}

@media (max-width: 520px) {
    .fake-url-bar {
        gap: .2rem;
        padding-right: .5rem;
        padding-left: .5rem;
    }

    .browser-control {
        width: 22px;
    }
}

body.dark-theme {
    color: #f4f4f6;
    background:
        linear-gradient(rgba(24, 27, 35, .58), rgba(24, 27, 35, .74)),
        url("./wallpaper.jpg")
        center / cover fixed;
}

.dark-theme .navbar,
.dark-theme .results-navbar {
    background: #20232b !important;
    border-bottom-color: #3b3e48;
}

.dark-theme.home-page .navbar,
.dark-theme.results-page .results-navbar {
    background: transparent !important;
    border-bottom-color: transparent !important;
}

.dark-theme .navbar-brand,
.dark-theme .nav-link,
.dark-theme .results-navbar .navbar-brand,
.dark-theme .results-navbar .nav-link {
    color: #f4f4f6 !important;
}

.dark-theme .nav-link:hover,
.dark-theme .results-navbar .nav-link:hover {
    color: #8ab4ff !important;
}

.dark-theme .theme-toggle {
    color: #f4f4f6;
    border-color: #777b88;
}

.dark-theme .theme-toggle:hover {
    color: #20232b;
    background: #8ab4ff;
    border-color: #8ab4ff;
}

.dark-theme .fake-url-bar {
    color: #c6c8d0;
    background: rgba(35, 38, 47, .96);
    border-bottom-color: #484b56;
}

.dark-theme .browser-control,
.dark-theme .browser-menu {
    color: #c6c8d0;
}

.dark-theme .browser-control:hover,
.dark-theme .browser-menu:hover {
    background: rgba(255, 255, 255, .12);
}

.dark-theme .fake-address {
    color: #e7e8ec;
    background: #2d303a;
    border-color: #555966;
}

.dark-theme .search-box {
    color: #f4f4f6;
    background: #2d303a;
    border-color: #686c79;
}

.dark-theme .search-box::placeholder {
    color: #b6b8c1;
}

.dark-theme .quick-card,
.dark-theme .content-card {
    color: #f4f4f6;
    background: #252832;
    border-color: #414551;
    box-shadow: 0 2px 12px rgba(0, 0, 0, .28);
}

.dark-theme .lucky-button,
.dark-theme .lucky-button:hover {
    color: #f4f4f6;
}

.dark-theme .home-page footer {
    color: #c6c8d0;
    background: #20232b;
    border-top-color: #3b3e48;
}

.dark-theme #search-heading,
.dark-theme .result-item p,
.dark-theme .result-url,
.dark-theme .loading-message,
.dark-theme .news-grid small {
    color: #c6c8d0;
}

.dark-theme .results-tabs {
    border-bottom-color: #484b56;
}

.dark-theme .results-tabs a {
    color: #c6c8d0;
}

.dark-theme .result-item {
    border-bottom-color: #414551;
}

.dark-theme .pretend-result .result-title {
    color: #f4f4f6;
}

.dark-theme .email-message,
.dark-theme .news-grid article {
    border-color: #414551;
}

.dark-theme .loading-screen {
    color: #f4f4f6;
    background: rgba(24, 27, 35, .9);
}

.news-page {
    --news-red: #b80000;
    --news-ink: #202124;
    --news-muted: #5f6368;
    position: relative;
}

.news-page::before {
    position: fixed;
    inset: 0;
    z-index: 0;
    content: '';
    pointer-events: none;
    opacity: .08;
    background-image:
        repeating-linear-gradient(0deg, rgba(32, 33, 36, .2) 0, rgba(32, 33, 36, .2) 1px, transparent 1px, transparent 7px),
        repeating-linear-gradient(90deg, rgba(32, 33, 36, .12) 0, rgba(32, 33, 36, .12) 1px, transparent 1px, transparent 9px),
        radial-gradient(circle at 20% 30%, rgba(184, 0, 0, .3) 0 1px, transparent 1px);
    background-size: 100% 100%, 100% 100%, 13px 13px;
    mix-blend-mode: multiply;
}

.news-page > * {
    position: relative;
    z-index: 1;
}

.news-shell {
    min-height: 100vh;
    color: var(--news-ink);
    background: rgba(255, 255, 255, .96);
}

.news-masthead {
    background: #202124;
    border-bottom: 5px solid var(--news-red);
}

.news-masthead-inner {
    display: flex;
    align-items: end;
    justify-content: space-between;
    min-height: 145px;
    padding-top: 2.2rem;
    padding-bottom: 1.6rem;
}

.news-kicker {
    margin: 0 0 .4rem;
    color: #e6e6e6;
    font-size: .78rem;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.babc-wordmark {
    margin: 0;
    color: #fff;
    font-size: clamp(2.6rem, 6vw, 4.8rem);
    font-weight: 300;
    letter-spacing: -.08em;
    line-height: .85;
}

.babc-wordmark span {
    color: #ffcc00;
}

.babc-wordmark strong {
    margin-left: .35rem;
    color: #fff;
    font-size: .36em;
    font-weight: 700;
    letter-spacing: .05em;
}

.aan-wordmark {
    display: flex;
    align-items: center;
    gap: .18rem;
    margin: 0;
    color: #fff;
    font-family: Impact, Haettenschweiler, 'Arial Narrow Bold', sans-serif;
    font-size: clamp(2.8rem, 7vw, 5.2rem);
    line-height: .9;
    letter-spacing: .02em;
}

.aan-wordmark span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: .82em;
    height: .82em;
    color: #fff;
    background: var(--news-red);
    line-height: 1;
}

.aan-wordmark strong {
    align-self: end;
    margin: 0 0 .15em .45rem;
    color: #fff;
    font-family: Georgia, serif;
    font-size: .24em;
    letter-spacing: .12em;
}

.news-date {
    margin: 0;
    color: #c9c9c9;
    font-size: .85rem;
}

.news-topic-bar {
    background: #fff;
    border-bottom: 1px solid #d7d7d7;
}

.news-topics {
    display: flex;
    gap: 0;
    overflow-x: auto;
}

.news-topic {
    padding: .9rem 1.15rem;
    color: #333;
    background: transparent;
    border: 0;
    border-bottom: 4px solid transparent;
    font-size: .9rem;
    font-weight: 600;
    white-space: nowrap;
}

.news-topic:hover,
.news-topic.active {
    color: var(--news-red);
    border-bottom-color: var(--news-red);
}

.news-content {
    position: relative;
    isolation: isolate;
    padding-top: 1.4rem;
    padding-bottom: 4rem;
}

.aan-globe-section {
    margin: 0 0 2.3rem;
    padding: 1.1rem 1.25rem 1.25rem;
    background: transparent;
    border: 0;
    border-radius: 0;
    color: var(--news-ink);
    overflow: visible;
}

.globe-heading-row {
    display: flex;
    align-items: end;
    justify-content: space-between;
    position: relative;
    z-index: 2;
}

.globe-heading-row h2 {
    margin: .2rem 0 0;
    font-size: 1.45rem;
}

.globe-hint {
    color: var(--news-muted);
    font-size: .78rem;
}

.globe-stage {
    position: relative;
    --globe-size: clamp(280px, 42vh, 360px);
    min-height: clamp(560px, 78vh, 760px);
    margin: .5rem 0;
    overflow: visible;
    transition: opacity .45s ease, filter .45s ease, transform .45s ease;
}

.globe-canvas {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 100%;
    height: 100%;
    min-height: 0;
    transform: translate(-50%, -50%);
    cursor: grab;
    touch-action: none;
    transition: opacity .7s ease, transform .7s ease;
}

.globe-canvas:active {
    cursor: grabbing;
}

.globe-canvas canvas {
    display: block;
    width: 100%;
    height: 100%;
}

.globe-story-tile {
    position: absolute;
    top: 50%;
    right: 1.5%;
    z-index: 2;
    width: 39%;
    padding: 1.45rem;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, .97);
    border-left: 4px solid #ff6b5f;
    border-radius: 4px;
    color: #202124;
    box-shadow: 0 12px 26px rgba(0, 0, 0, .2);
    transform-style: preserve-3d;
    transition: top .45s ease, left .45s ease, opacity .45s ease, transform .45s ease, box-shadow .25s ease;
}

.globe-story-tile.tile-left {
    right: auto;
    left: 1.5%;
}

.globe-story-tile.tile-right {
    right: 1.5%;
    left: auto;
}

.globe-stage.globe-unfocused {
    opacity: .32;
    filter: saturate(.55) blur(.6px);
    transform: scale(.94);
}

.globe-stage.globe-unfocused .globe-story-tile {
    opacity: .55;
}

.globe-focus-anchor {
    height: 1px;
    margin: 0;
    pointer-events: none;
}

.news-content > .news-section-heading,
.news-content > .news-lead-grid,
.news-content > .news-card-grid,
.globe-heading-row,
.news-alert {
    position: relative;
    z-index: 2;
}

.globe-stage.globe-unfocused {
    position: fixed;
    inset: 0;
    z-index: 0;
    width: 100vw;
    height: 100vh;
    min-height: 100vh;
    margin: 0;
    opacity: .2;
    filter: saturate(.55) blur(.8px);
    transform: none;
    pointer-events: none;
}

.globe-stage.globe-unfocused .globe-canvas {
    top: 50%;
    left: 50%;
    bottom: auto;
    width: min(100vw, 100vh);
    height: min(100vw, 100vh);
    aspect-ratio: 1;
    min-height: 0;
    transform: translate(-50%, -50%) scale(1.35);
    opacity: .82;
}

.globe-stage.globe-unfocused .globe-story-tile,
.globe-stage.globe-unfocused .globe-connector {
    opacity: 0;
}

.globe-story-tile h3 {
    margin: .35rem 0 .5rem;
    font-size: clamp(1.35rem, 2vw, 1.7rem);
    line-height: 1.15;
}

.globe-story-tile p {
    margin: 0 0 .8rem;
    color: #5f6368;
    font-size: .98rem;
    line-height: 1.45;
}

.globe-story-tile small {
    color: #6c7885;
    font-size: .75rem;
}

.globe-connector {
    position: absolute;
    z-index: 3;
    height: 3px;
    transform-origin: left center;
    background: #ff6b5f;
    opacity: 1;
    pointer-events: none;
    transition: opacity .45s ease;
}

.globe-connector::after {
    position: absolute;
    top: 50%;
    right: -3px;
    width: 7px;
    height: 7px;
    content: '';
    transform: translateY(-50%);
    background: #ff6b5f;
    border-radius: 50%;
}

.dark-theme .aan-globe-section {
    background: transparent;
    border-color: transparent;
    color: #f4f4f6;
}

.dark-theme .globe-story-tile {
    background: #252832;
    color: #f4f4f6;
    border-left-color: #ff8278;
}

.dark-theme .globe-story-tile p,
.dark-theme .globe-story-tile small {
    color: #c6c8d0;
}

.dark-theme .globe-hint {
    color: #abc2d9;
}

@media (max-width: 760px) {
    .globe-stage {
        min-height: 680px;
    }

    .globe-canvas {
        top: 50%;
        left: 50%;
        width: 100%;
        height: 100%;
        min-height: 0;
        transform: translate(-50%, -50%);
    }

    .globe-story-tile {
        top: auto;
        right: 3%;
        bottom: 1rem;
        width: 94%;
        padding: 1.25rem;
        transform: none;
    }

    .globe-story-tile.tile-left,
    .globe-story-tile.tile-right {
        right: 3%;
        left: 3%;
    }

    .globe-stage.globe-unfocused .globe-canvas {
        width: min(100vw, 100vh);
        height: min(100vw, 100vh);
    }
}

.news-alert {
    margin-bottom: 1.35rem;
    padding: .7rem .9rem;
    color: #333;
    background: #f0f0f0;
    border-left: 4px solid var(--news-red);
    font-size: .88rem;
}

.news-alert span {
    margin-right: .6rem;
    color: #fff;
    background: var(--news-red);
    padding: .18rem .4rem;
    font-size: .7rem;
    font-weight: 700;
}

.news-section-heading {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    margin-bottom: 1rem;
    border-bottom: 1px solid #222;
}

.news-section-heading h2 {
    margin: 0;
    padding-bottom: .55rem;
    border-bottom: 4px solid var(--news-red);
    font-size: 1.65rem;
}

.news-section-heading span {
    color: var(--news-muted);
    font-size: .78rem;
}

.news-lead-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.5fr) minmax(260px, 1fr);
    gap: 1.25rem;
    margin-bottom: 2.2rem;
}

.news-side-stories {
    display: grid;
    gap: 1.25rem;
}

.news-story {
    overflow: hidden;
    background: #fff;
    border-top: 1px solid #d2d2d2;
}

.news-story img {
    display: block;
    width: 100%;
    height: 150px;
    object-fit: cover;
}

.news-lead img {
    height: 275px;
}

.news-story-copy {
    padding: .75rem 0 0;
}

.news-lead .news-story-copy {
    padding: .9rem 0 0;
}

.story-topic {
    color: var(--news-red);
    font-size: .74rem;
    font-weight: 700;
    text-transform: uppercase;
}

.news-story h3 {
    margin: .3rem 0 .45rem;
    font-size: 1.15rem;
    line-height: 1.18;
}

.news-lead h3 {
    max-width: 720px;
    font-size: clamp(1.7rem, 3vw, 2.45rem);
}

.news-story p {
    margin: 0 0 .65rem;
    color: var(--news-muted);
    line-height: 1.45;
}

.news-story small {
    color: var(--news-muted);
    font-size: .76rem;
}

.news-card-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1.3rem 1rem;
    border-top: 1px solid #222;
    padding-top: 1.2rem;
}

.text-story {
    min-height: 165px;
    padding: .9rem 0;
}

.text-story h3 {
    font-size: 1.2rem;
}

.dark-theme .news-shell {
    color: #f4f4f6;
    background: rgba(32, 35, 43, .96);
}

.dark-theme.news-page::before {
    opacity: .045;
    mix-blend-mode: screen;
}

.dark-theme .news-topic-bar {
    background: #252832;
    border-bottom-color: #414551;
}

.dark-theme .news-topic {
    color: #e5e6ea;
}

.dark-theme .news-topic:hover,
.dark-theme .news-topic.active {
    color: #ff7373;
    border-bottom-color: #ff7373;
}

.dark-theme .news-alert {
    color: #e5e6ea;
    background: #30343e;
}

.dark-theme .news-section-heading,
.dark-theme .news-card-grid {
    border-color: #d0d2d8;
}

.dark-theme .news-story {
    background: transparent;
    border-top-color: #555966;
}

.dark-theme .news-story p,
.dark-theme .news-story small,
.dark-theme .news-section-heading span {
    color: #c6c8d0;
}

.file-explorer-page {
    --file-ink: #18252d;
    --file-muted: #70808a;
    --file-line: #d9e0e2;
    --file-panel: rgba(247, 250, 250, .97);
    background: #dfe9e6;
}

.file-explorer-shell {
    min-height: calc(100vh - 44px);
    color: var(--file-ink);
    background: #f8faf9;
}

.file-explorer-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.5rem clamp(1rem, 4vw, 4rem);
    background: #fff;
    border-bottom: 1px solid var(--file-line);
}

.file-explorer-header h1,
.file-content-heading h2,
.file-viewer-window h2 {
    margin: 0;
    font-family: Georgia, serif;
    font-weight: 500;
}

.file-explorer-header h1 {
    display: flex;
    align-items: center;
    gap: .65rem;
    font-size: clamp(1.6rem, 3vw, 2.35rem);
}

.file-eyebrow {
    margin: 0 0 .35rem;
    color: #26756d;
    font-size: .7rem;
    font-weight: 800;
    letter-spacing: .12em;
    text-transform: uppercase;
}

.file-toolbar {
    display: flex;
    gap: .5rem;
}

.file-toolbar button,
.file-sidebar button,
.file-breadcrumbs button {
    color: var(--file-ink);
    background: transparent;
    border: 1px solid transparent;
    border-radius: 5px;
    cursor: pointer;
}

.file-toolbar button {
    padding: .55rem .75rem;
    background: #f2f5f4;
    border-color: var(--file-line);
}

.file-toolbar button:hover,
.file-toolbar button:focus-visible,
.file-sidebar button:hover,
.file-sidebar button.active {
    color: #11665e;
    background: #e1f1ed;
    outline: none;
}

.file-breadcrumbs {
    display: flex;
    align-items: center;
    gap: .6rem;
    padding: .75rem clamp(1rem, 4vw, 4rem);
    color: var(--file-muted);
    background: #f7f9f8;
    border-bottom: 1px solid var(--file-line);
    font-size: .86rem;
}

.file-breadcrumbs button {
    padding: .25rem .4rem;
}

.file-explorer-layout {
    display: grid;
    grid-template-columns: 230px minmax(0, 1fr);
    min-height: calc(100vh - 180px);
}

.file-sidebar {
    padding: 1.4rem 1rem;
    background: #edf3f1;
    border-right: 1px solid var(--file-line);
}

.file-sidebar p {
    margin: 0 0 .65rem .65rem;
    color: var(--file-muted);
    font-size: .72rem;
    font-weight: 800;
    letter-spacing: .1em;
    text-transform: uppercase;
}

.file-sidebar button {
    display: block;
    width: 100%;
    padding: .7rem .75rem;
    text-align: left;
}

.storage-meter {
    margin: 3rem .65rem 0;
    color: var(--file-muted);
    font-size: .75rem;
}

.storage-meter strong {
    display: block;
    margin: .3rem 0 .6rem;
    color: var(--file-ink);
    font-size: .78rem;
}

.storage-meter i {
    display: block;
    height: 5px;
    background: #d1ddda;
    border-radius: 99px;
}

.storage-meter b {
    display: block;
    width: 30%;
    height: 100%;
    background: #26756d;
    border-radius: inherit;
}

.file-content {
    padding: 1.6rem clamp(1rem, 4vw, 4rem) 4rem;
}

.file-content-heading {
    display: flex;
    align-items: end;
    justify-content: space-between;
    margin-bottom: 1.2rem;
}

.file-content-heading h2 {
    font-size: 1.7rem;
}

.file-content-heading > span {
    color: var(--file-muted);
    font-size: .8rem;
}

.file-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(155px, 1fr));
    gap: .85rem;
}

.file-card {
    position: relative;
    display: flex;
    min-height: 160px;
    flex-direction: column;
    align-items: flex-start;
    padding: 1rem;
    color: var(--file-ink);
    background: #fff;
    border: 1px solid var(--file-line);
    border-radius: 7px;
    text-align: left;
    cursor: pointer;
    transition: border-color .2s ease, box-shadow .2s ease, transform .2s ease;
}

.file-card:hover,
.file-card.selected {
    border-color: #26756d;
    box-shadow: 0 8px 18px rgba(31, 73, 78, .12);
    transform: translateY(-2px);
}

.file-icon {
    margin-bottom: 1rem;
    color: #26756d;
    font-size: 2.25rem;
    line-height: 1;
}

.file-icon.folder { color: #d69b32; }
.file-icon.pdf { color: #c34b44; }
.file-card strong { overflow: hidden; width: 100%; text-overflow: ellipsis; white-space: nowrap; }
.file-card small { margin-top: .35rem; color: var(--file-muted); font-size: .72rem; }

.file-card em {
    position: absolute;
    top: .65rem;
    right: .55rem;
    padding: .18rem .28rem;
    color: #14665f;
    background: #dff4ee;
    font-size: .56rem;
    font-style: normal;
    font-weight: 800;
    letter-spacing: .05em;
}

.file-grid.compact .file-card { min-height: 72px; flex-direction: row; align-items: center; gap: .75rem; padding: .7rem; }
.file-grid.compact .file-icon { margin: 0; font-size: 1.65rem; }
.file-grid.compact .file-card small { margin: .2rem 0 0; }

.file-empty {
    padding: 3rem;
    color: var(--file-muted);
    text-align: center;
}

.file-viewer[hidden] { display: none; }
.file-viewer { position: fixed; inset: 0; z-index: 50; display: grid; place-items: center; padding: 1rem; }
.file-viewer-backdrop { position: absolute; inset: 0; background: #26363c; }
.file-viewer-window { position: relative; display: flex; width: 100%; height: 100%; flex-direction: column; opacity: 1; background: #fff; box-shadow: 0 24px 70px rgba(0, 0, 0, .3); }
.file-viewer-window header { display: flex; align-items: center; justify-content: space-between; padding: 1rem 1.25rem; border-bottom: 1px solid var(--file-line); }
.file-viewer-window header button { color: var(--file-ink); background: transparent; border: 0; font-size: 1.2rem; cursor: pointer; }
.file-viewer-content { display: grid; min-height: 0; flex: 1; place-items: center; padding: 1rem; opacity: 1; background: #dfe7e5; }
.file-viewer-content img { max-width: 100%; max-height: 100%; box-shadow: 0 8px 22px rgba(0, 0, 0, .18); }
.file-viewer-content iframe { width: 100%; height: 100%; border: 0; background: #fff; }
.unsupported-preview { color: var(--file-muted); text-align: center; }
.unsupported-preview span { display: block; margin-bottom: .5rem; font-size: 3rem; }

.admin-page {
    --admin-ink: #18252d;
    --admin-muted: #70808a;
    background: linear-gradient(135deg, #d7e5e2, #f2eee3 52%, #c8d8e0);
}

.admin-shell {
    min-height: calc(100vh - 44px);
    color: var(--admin-ink);
    background: rgba(248, 250, 249, .97);
}

.admin-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    padding: 2rem clamp(1rem, 5vw, 5rem);
    background: #fff;
    border-bottom: 1px solid #d9e0e2;
}

.admin-header h1 {
    margin: 0;
    font-family: Georgia, serif;
    font-size: clamp(1.8rem, 4vw, 3rem);
    font-weight: 500;
}

.admin-header > div > p:last-child { max-width: 520px; margin: .65rem 0 0; color: var(--admin-muted); }
.admin-badge { padding: .35rem .5rem; color: #fff; background: #26756d; font-size: .7rem; font-weight: 800; letter-spacing: .1em; }
.admin-layout { display: grid; grid-template-columns: minmax(260px, 360px) minmax(0, 1fr); gap: 1.25rem; padding: 2rem clamp(1rem, 5vw, 5rem) 5rem; }
.admin-upload-panel, .admin-files-panel { padding: 1.25rem; background: #fff; border: 1px solid #d9e0e2; border-radius: 7px; }
.admin-upload-panel { align-self: start; }
.admin-upload-panel label { display: block; margin: 0 0 .4rem; color: var(--admin-muted); font-size: .75rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.admin-upload-panel label:not(:first-child) { margin-top: 1.25rem; }
.admin-upload-panel select, .admin-upload-panel input[type="file"] { width: 100%; padding: .7rem; color: var(--admin-ink); background: #f5f8f7; border: 1px solid #d1dcda; border-radius: 4px; }
.admin-help { margin: .75rem 0 1.2rem; color: var(--admin-muted); font-size: .78rem; line-height: 1.5; }
.admin-primary-button { width: 100%; padding: .75rem 1rem; color: #fff; background: #26756d; border: 0; border-radius: 4px; font-weight: 700; cursor: pointer; }
.admin-primary-button:hover, .admin-primary-button:focus-visible { background: #185d57; outline: none; }
.admin-status { display: block; min-height: 1.3rem; margin-top: .8rem; color: #26756d; font-size: .8rem; }
.admin-section-heading { display: flex; align-items: end; justify-content: space-between; margin-bottom: 1rem; }
.admin-section-heading h2 { margin: 0; font-family: Georgia, serif; font-size: 1.6rem; font-weight: 500; }
.admin-section-heading > span { color: var(--admin-muted); font-size: .8rem; }
.admin-file-list { display: grid; gap: .55rem; }
.admin-file-row { display: grid; grid-template-columns: 2rem minmax(0, 1fr) auto auto; align-items: center; gap: .7rem; padding: .7rem; border: 1px solid #e0e6e4; border-radius: 4px; }
.admin-file-row .file-icon { margin: 0; font-size: 1.5rem; }
.admin-file-row strong, .admin-file-row small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.admin-file-row small { margin-top: .2rem; color: var(--admin-muted); font-size: .72rem; }
.admin-file-row button { padding: .35rem .45rem; color: #26756d; background: #eef6f3; border: 1px solid #d6e8e2; border-radius: 4px; cursor: pointer; }
.admin-file-row button:last-child { color: #b34b45; background: transparent; border-color: transparent; }

@media (max-width: 760px) {
    .admin-layout { grid-template-columns: 1fr; }
    .admin-file-row { grid-template-columns: 2rem minmax(0, 1fr); }
    .admin-file-row button { grid-row: 2; }
}

@media (max-width: 700px) {
    .file-explorer-header { align-items: flex-start; flex-direction: column; gap: 1rem; }
    .file-explorer-layout { grid-template-columns: 1fr; }
    .file-sidebar { display: flex; gap: .4rem; overflow-x: auto; padding: .7rem; border-right: 0; border-bottom: 1px solid var(--file-line); }
    .file-sidebar p, .storage-meter { display: none; }
    .file-sidebar button { width: auto; white-space: nowrap; }
    .file-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 760px) {
    .news-masthead-inner {
        display: block;
    }

    .news-date {
        margin-top: 1rem;
    }

    .news-lead-grid,
    .news-card-grid {
        grid-template-columns: 1fr;
    }

    .news-lead img {
        height: 220px;
    }
}

.bmail-app {
    min-height: calc(100vh - 108px);
    color: #202124;
    background: rgba(246, 248, 252, .96);
}

.bmail-login {
    display: grid;
    min-height: 520px;
    place-items: center;
    padding: 3rem 1rem;
}

.bmail-login-card {
    width: min(420px, 100%);
    padding: 2rem;
    background: #fff;
    border: 1px solid #e1e5eb;
    border-radius: 12px;
    box-shadow: 0 8px 28px rgba(60, 64, 67, .14);
}

.bmail-login-mark {
    margin-bottom: 1.5rem;
    color: #1a73e8;
    font-size: 2rem;
    font-weight: 600;
}

.bmail-login-mark span {
    color: #ea4335;
}

.bmail-login-card h1 {
    margin-bottom: .5rem;
    font-size: 1.55rem;
}

.bmail-login-card p {
    color: #5f6368;
    font-size: .88rem;
}

.bmail-login-card label {
    display: grid;
    gap: .35rem;
    margin-top: 1rem;
    color: #3c4043;
    font-size: .82rem;
    font-weight: 600;
}

.bmail-login-card input {
    min-height: 44px;
    padding: .6rem .75rem;
    border: 1px solid #aeb4be;
    border-radius: 4px;
}

.bmail-login-card form > button {
    width: 100%;
    margin-top: 1.25rem;
    padding: .7rem;
    color: #fff;
    background: #1a73e8;
    border: 0;
    border-radius: 4px;
    font-weight: 700;
}

.bmail-login-error {
    margin: .8rem 0 0;
    color: #b3261e !important;
}

.bmail-account-name {
    color: #5f6368;
    font-size: .78rem;
}

.bmail-logout {
    padding: .35rem .65rem;
    color: #5f6368;
    background: transparent;
    border: 1px solid #aeb4be;
    border-radius: 4px;
    font-size: .76rem;
}

.bmail-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    min-height: 72px;
    padding: .7rem 1.5rem;
    border-bottom: 1px solid #e1e5eb;
}

.bmail-menu,
.bmail-help,
.bmail-toolbar button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    color: #5f6368;
    background: transparent;
    border: 0;
    border-radius: 50%;
    font-size: 1.15rem;
}

.bmail-menu:hover,
.bmail-help:hover,
.bmail-toolbar button:hover {
    background: #e8eaed;
}

.bmail-search {
    display: flex;
    align-items: center;
    gap: .7rem;
    width: min(720px, 70vw);
    padding: 0 1rem;
    color: #5f6368;
    background: #eaf0f8;
    border-radius: 8px;
}

.bmail-search input {
    width: 100%;
    min-height: 46px;
    color: #202124;
    background: transparent;
    border: 0;
    outline: 0;
}

.bmail-help {
    margin-left: auto;
    font-weight: 700;
}

.bmail-layout {
    display: grid;
    grid-template-columns: 235px minmax(0, 1fr);
    gap: 1.5rem;
    max-width: 1500px;
    padding: 1.2rem 1.5rem 3rem;
}

.bmail-sidebar {
    padding-right: .5rem;
}

.bmail-compose {
    display: flex;
    align-items: center;
    gap: .7rem;
    min-width: 145px;
    margin: 0 0 1.35rem;
    padding: .85rem 1.25rem;
    color: #3c4043;
    background: #fff;
    border: 0;
    border-radius: 16px;
    box-shadow: 0 2px 8px rgba(60, 64, 67, .16);
    font-weight: 600;
}

.bmail-compose span {
    color: #1a73e8;
    font-size: 1.4rem;
    line-height: 1;
}

.bmail-compose:hover {
    box-shadow: 0 3px 12px rgba(60, 64, 67, .24);
}

.bmail-folders {
    display: grid;
    gap: .15rem;
}

.bmail-folders button {
    display: flex;
    align-items: center;
    gap: .8rem;
    padding: .55rem 1rem;
    color: #3c4043;
    background: transparent;
    border: 0;
    border-radius: 0 18px 18px 0;
    text-align: left;
}

.bmail-folders button:hover,
.bmail-folders button.active {
    color: #202124;
    background: #dce7f7;
    font-weight: 700;
}

.bmail-folders button span {
    width: 20px;
    color: #5f6368;
    text-align: center;
}

.bmail-folders button strong {
    margin-left: auto;
    font-size: .78rem;
}

.bmail-storage {
    margin: 2rem 1rem 0;
    color: #5f6368;
    font-size: .76rem;
}

.bmail-storage div:first-child {
    display: flex;
    justify-content: space-between;
}

.storage-track {
    height: 6px;
    margin-top: .45rem;
    overflow: hidden;
    background: #d9dfe8;
    border-radius: 8px;
}

.storage-track span {
    display: block;
    width: 18%;
    height: 100%;
    background: #1a73e8;
}

.bmail-inbox {
    min-width: 0;
    overflow: hidden;
    background: #fff;
    border: 1px solid #e1e5eb;
    border-radius: 8px;
}

.bmail-toolbar {
    display: flex;
    align-items: center;
    gap: .35rem;
    min-height: 56px;
    padding: .5rem .8rem;
    border-bottom: 1px solid #e1e5eb;
}

.bmail-toolbar .bmail-count {
    margin-left: auto;
    color: #5f6368;
    font-size: .78rem;
}

.mail-select {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
}

.mail-select input {
    width: 16px;
    height: 16px;
    accent-color: #1a73e8;
}

.bmail-message {
    display: grid;
    grid-template-columns: 30px minmax(130px, .8fr) minmax(160px, 1fr) minmax(160px, 2fr) 74px;
    align-items: center;
    width: 100%;
    min-height: 58px;
    padding: .3rem .7rem;
    color: #5f6368;
    background: #fff;
    border: 0;
    border-bottom: 1px solid #edf0f3;
    text-align: left;
    font-size: .85rem;
}

.bmail-message:hover {
    z-index: 1;
    box-shadow: 0 2px 8px rgba(60, 64, 67, .16);
}

.bmail-message.unread {
    color: #202124;
    background: #f8fafd;
}

.bmail-message.unread .message-sender,
.bmail-message.unread .message-subject {
    font-weight: 700;
}

.message-star {
    color: #8a9098;
    font-size: 1.15rem;
}

.message-sender,
.message-subject,
.message-preview {
    overflow: hidden;
    padding-right: .5rem;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.message-subject {
    color: #3c4043;
}

.message-preview {
    color: #7a8088;
}

.message-body {
    display: none;
    grid-column: 1 / -1;
    padding: .7rem 1rem 1rem 2.2rem;
    color: #4f5660;
    font-size: .88rem;
    font-weight: 400;
    line-height: 1.55;
    white-space: normal;
}

.message-address,
.message-content {
    display: block;
}

.message-address {
    color: #6b7280;
    font-size: .78rem;
    line-height: 1.5;
}

.message-address strong {
    color: #424750;
}

.message-content {
    margin-top: .7rem;
}

.bmail-message.expanded {
    grid-template-rows: auto auto;
}

.bmail-message.expanded .message-preview {
    display: none;
}

.bmail-message.expanded .message-body {
    display: block;
}

.bmail-message time {
    color: #5f6368;
    text-align: right;
    white-space: nowrap;
}

.bmail-compose-panel {
    position: fixed;
    right: 2rem;
    bottom: 0;
    z-index: 5;
    display: grid;
    width: min(420px, calc(100vw - 2rem));
    padding-bottom: .75rem;
    background: #fff;
    border: 1px solid #d7dce4;
    border-radius: 8px 8px 0 0;
    box-shadow: 0 5px 24px rgba(60, 64, 67, .3);
}

.bmail-compose-panel[hidden] {
    display: none;
}

.compose-titlebar {
    display: flex;
    justify-content: space-between;
    padding: .75rem 1rem;
    color: #fff;
    background: #40464f;
    border-radius: 8px 8px 0 0;
}

.compose-titlebar button {
    color: #fff;
    background: transparent;
    border: 0;
    font-size: 1.25rem;
}

.bmail-compose-panel input,
.bmail-compose-panel textarea {
    margin: 0 1rem;
    padding: .7rem 0;
    border: 0;
    border-bottom: 1px solid #e1e5eb;
    outline: 0;
}

.bmail-compose-panel textarea {
    min-height: 130px;
    resize: vertical;
}

.compose-send {
    width: fit-content;
    margin: .75rem 1rem 0;
    padding: .55rem 1.2rem;
    color: #fff;
    background: #1a73e8;
    border: 0;
    border-radius: 18px;
}

.dark-theme .bmail-app {
    color: #e8eaed;
    background: rgba(32, 35, 43, .96);
}

.dark-theme .bmail-login-card {
    color: #e8eaed;
    background: #252832;
    border-color: #414551;
}

.dark-theme .bmail-login-card p,
.dark-theme .bmail-login-card label,
.dark-theme .bmail-account-name {
    color: #c6c8d0;
}

.dark-theme .bmail-login-card input {
    color: #f4f4f6;
    background: #30343e;
    border-color: #686c79;
}

.dark-theme .bmail-logout {
    color: #c6c8d0;
    border-color: #686c79;
}

.dark-theme .bmail-header,
.dark-theme .bmail-inbox {
    border-color: #414551;
}

.dark-theme .bmail-menu,
.dark-theme .bmail-help,
.dark-theme .bmail-toolbar button {
    color: #c6c8d0;
}

.dark-theme .bmail-menu:hover,
.dark-theme .bmail-help:hover,
.dark-theme .bmail-toolbar button:hover {
    background: #3b3f49;
}

.dark-theme .bmail-search {
    color: #c6c8d0;
    background: #30343e;
}

.dark-theme .bmail-search input {
    color: #f4f4f6;
}

.dark-theme .bmail-compose,
.dark-theme .bmail-inbox,
.dark-theme .bmail-message,
.dark-theme .bmail-compose-panel {
    color: #e8eaed;
    background: #252832;
    border-color: #414551;
}

.dark-theme .bmail-folders button,
.dark-theme .message-subject,
.dark-theme .bmail-message time,
.dark-theme .bmail-storage,
.dark-theme .bmail-toolbar .bmail-count {
    color: #c6c8d0;
}

.dark-theme .bmail-folders button:hover,
.dark-theme .bmail-folders button.active {
    color: #fff;
    background: #3b4b63;
}

.dark-theme .bmail-message {
    border-bottom-color: #414551;
}

.dark-theme .bmail-message.unread {
    color: #f4f4f6;
    background: #2d323d;
}

.dark-theme .message-preview {
    color: #aeb2bc;
}

.dark-theme .message-body {
    color: #d0d3db;
}

.dark-theme .message-address {
    color: #aeb2bc;
}

.dark-theme .message-address strong {
    color: #e8eaed;
}

@media (max-width: 800px) {
    .bmail-layout {
        grid-template-columns: 1fr;
        padding-right: .75rem;
        padding-left: .75rem;
    }

    .bmail-sidebar {
        display: flex;
        align-items: center;
        gap: 1rem;
        overflow-x: auto;
        padding: 0;
    }

    .bmail-compose {
        flex: 0 0 auto;
        margin: 0;
    }

    .bmail-folders {
        display: flex;
    }

    .bmail-folders button {
        flex: 0 0 auto;
        border-radius: 18px;
    }

    .bmail-storage {
        display: none;
    }

    .bmail-message {
        grid-template-columns: 24px minmax(105px, 1fr) 72px;
    }

    .message-subject,
    .message-preview {
        display: none;
    }
}
