:root {
    font-family: Arial,Helvetica,sans-serif;
    color: #202124;
    background: #fff;
    --blue: #0b57d0;
    --blue-2: #1a73e8;
    --blue-soft: #eaf1fb;
    --line: #e0e3e7;
    --muted: #5f6368;
    --panel: #f8fafd;
    --danger: #b3261e;
    --success: #137333;
    --shadow: 0 1px 2px rgba(60,64,67,.15),0 2px 6px 2px rgba(60,64,67,.08)
}

* {
    box-sizing: border-box
}

html {
    scroll-behavior: smooth
}

body {
    margin: 0;
    min-height: 100vh;
    background: #fff;
    color: #202124
}

a {
    color: inherit
}

button,input,select,textarea {
    font: inherit
}

button {
    cursor: pointer
}

.google-header {
    height: 68px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 28px;
    border-bottom: 1px solid var(--line);
    background: rgba(255,255,255,.96);
    position: sticky;
    top: 0;
    z-index: 50;
    backdrop-filter: blur(12px)
}

.google-brand {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    color: #3c4043;
    font-size: 20px;
    font-weight: 600;
    min-width: 0
}

.google-brand>span:last-child {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis
}

.brand-mark {
    width: 40px;
    height: 40px;
    border-radius: 12px;
    display: grid;
    place-items: center;
    background: linear-gradient(135deg,#4285f4 0 25%,#4285f4 25% 50%,#4285f4 50% 75%,#4285f4 75%);
    color: #fff;
    font-size: 19px;
    font-weight: 800;
    box-shadow: 0 1px 3px rgba(60,64,67,.3)
}

.admin-mark {
    background: linear-gradient(135deg,#0b57d0,#7b1fa2)
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 12px
}

.header-link {
    font-size: 14px;
    color: #3c4043;
    text-decoration: none;
    padding: 10px 12px;
    border-radius: 20px;
    font-weight: 600
}

.header-link:hover {
    background: #f1f3f4
}

.google-button,.outline-button,button {
    min-height: 42px;
    border-radius: 22px;
    padding: 0 22px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    font-weight: 700;
    border: 1px solid transparent;
    transition: .18s ease
}

.google-button,button {
    background: var(--blue);
    color: #fff
}

.google-button:hover,button:hover {
    background: #0842a0;
    box-shadow: 0 1px 2px rgba(60,64,67,.3)
}

.outline-button {
    background: #fff;
    color: var(--blue);
    border-color: #dadce0
}

.outline-button:hover {
    background: #f8fbff;
    border-color: #c2d7f2
}

.large {
    min-height: 50px;
    border-radius: 25px;
    padding: 0 28px
}

.compact {
    min-height: 36px;
    border-radius: 18px;
    padding: 0 16px;
    font-size: 13px
}

.profile-chip {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    background: #7b1fa2;
    color: #fff;
    font-weight: 700;
    margin-left: 6px
}

.notice {
    max-width: 1180px;
    margin: 18px auto;
    padding: 13px 16px;
    border-radius: 10px;
    border: 1px solid #f2b8b5;
    background: #fce8e6;
    color: #8c1d18;
    line-height: 1.45
}

.notice.success {
    background: #e6f4ea;
    border-color: #a8dab5;
    color: #0d652d
}

.notice.error {
    background: #fce8e6;
    border-color: #f2b8b5;
    color: #8c1d18
}

.eyebrow {
    margin: 0 0 6px;
    color: var(--blue);
    text-transform: uppercase;
    letter-spacing: .12em;
    font-size: 11px;
    font-weight: 800
}

.field-help {
    display: block;
    color: #5f6368;
    font-size: 12px;
    line-height: 1.5;
    margin-top: 7px
}

/* Landing */
.landing-shell {
    width: min(1240px,calc(100% - 40px));
    margin: auto;
    padding: 52px 0 70px
}

.hero-grid {
    display: grid;
    grid-template-columns: minmax(0,1fr) minmax(500px,1.05fr);
    gap: 68px;
    align-items: center;
    min-height: 570px
}

.hero-copy h1 {
    font-size: clamp(42px,5vw,68px);
    line-height: 1.06;
    letter-spacing: -.045em;
    margin: 18px 0 24px;
    font-weight: 600;
    color: #202124;
    max-width: 720px
}

.hero-copy>p {
    font-size: 20px;
    line-height: 1.6;
    color: #5f6368;
    max-width: 650px;
    margin: 0 0 30px
}

.hero-pill {
    display: inline-flex;
    align-items: center;
    border: 1px solid #c4d7f2;
    border-radius: 999px;
    background: #f5f9ff;
    color: #0b57d0;
    padding: 8px 13px;
    font-size: 13px;
    font-weight: 700
}

.hero-actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap
}

.feature-list {
    display: grid;
    gap: 13px;
    margin-top: 34px;
    color: #3c4043
}

.feature-list div {
    display: flex;
    align-items: center;
    gap: 11px
}

.feature-list span {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    background: #e6f4ea;
    color: #137333;
    font-weight: 800
}

.mail-preview {
    background: #fff;
    border: 1px solid #d8dde6;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(60,64,67,.18);
    transform: rotate(1deg)
}

.preview-top {
    height: 64px;
    background: #f6f8fc;
    display: grid;
    grid-template-columns: 42px 1fr 34px;
    align-items: center;
    gap: 15px;
    padding: 0 18px;
    border-bottom: 1px solid #e5e8ee
}

.preview-logo {
    width: 35px;
    height: 35px;
    border-radius: 10px;
    display: grid;
    place-items: center;
    background: #fff;
    color: #4285f4;
    font-weight: 900;
    box-shadow: 0 1px 3px rgba(60,64,67,.22)
}

.preview-search {
    height: 42px;
    background: #eaf1fb;
    border-radius: 22px;
    padding: 0 20px;
    display: flex;
    align-items: center;
    color: #5f6368;
    font-size: 13px
}

.preview-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    background: #1a73e8;
    color: #fff;
    font-weight: 700
}

.preview-layout {
    display: grid;
    grid-template-columns: 160px 1fr;
    min-height: 390px
}

.preview-side {
    background: #f6f8fc;
    padding: 18px 10px
}

.preview-compose {
    height: 48px;
    border-radius: 16px;
    background: #c2e7ff;
    display: flex;
    align-items: center;
    padding: 0 14px;
    font-size: 12px;
    font-weight: 700;
    margin-bottom: 16px
}

.preview-nav {
    padding: 10px 13px;
    border-radius: 0 18px 18px 0;
    color: #5f6368;
    font-size: 12px;
    margin: 3px 0
}

.preview-nav.active {
    background: #d3e3fd;
    color: #001d35;
    font-weight: 700
}

.preview-main {
    background: #fff
}

.preview-toolbar {
    height: 52px;
    border-bottom: 1px solid #eee;
    padding: 17px;
    color: #5f6368;
    font-size: 12px
}

.preview-message {
    display: grid;
    grid-template-columns: 125px minmax(0,1fr) 70px;
    gap: 10px;
    align-items: center;
    border-bottom: 1px solid #edf0f4;
    padding: 17px 16px;
    font-size: 12px;
    color: #5f6368
}

.preview-message b {
    color: #3c4043;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis
}

.preview-message span {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis
}

.preview-message small {
    text-align: right
}

.preview-message.unread {
    background: #f7f9fc;
    color: #202124
}

.preview-message.unread b {
    font-weight: 800;
    color: #202124
}

.landing-cards {
    display: grid;
    grid-template-columns: repeat(3,minmax(0,1fr));
    gap: 20px;
    margin-top: 45px
}

.landing-cards article {
    border: 1px solid #e0e3e7;
    border-radius: 22px;
    padding: 30px;
    background: #fff
}

.landing-cards h2 {
    font-size: 21px;
    margin: 18px 0 10px
}

.landing-cards p {
    margin: 0;
    color: #5f6368;
    line-height: 1.6
}

.card-icon {
    width: 48px;
    height: 48px;
    border-radius: 15px;
    background: #eaf1fb;
    color: #0b57d0;
    display: grid;
    place-items: center;
    font-size: 22px;
    font-weight: 700
}

/* Authentication */
.auth-shell {
    min-height: calc(100vh - 110px);
    display: grid;
    place-items: center;
    padding: 42px 18px;
    background: linear-gradient(180deg,#fff,#f8fafd)
}

.auth-shell>.notice {
    position: absolute;
    top: 78px;
    width: min(620px,calc(100% - 30px))
}

.auth-card {
    width: min(460px,100%);
    border: 1px solid #dadce0;
    border-radius: 28px;
    background: #fff;
    padding: 48px 42px;
    box-shadow: 0 1px 2px rgba(60,64,67,.08)
}

.auth-card.auth-wide {
    width: min(700px,100%)
}

.large-mark {
    width: 48px;
    height: 48px;
    margin-bottom: 24px
}

.auth-card h1 {
    font-size: 32px;
    font-weight: 500;
    margin: 0 0 10px;
    letter-spacing: -.02em
}

.auth-card>p {
    color: #5f6368;
    margin: 0 0 32px;
    line-height: 1.5
}

.auth-card form {
    display: grid;
    gap: 20px
}

.floating-field {
    position: relative
}

.floating-field input {
    width: 100%;
    height: 56px;
    border: 1px solid #9aa0a6;
    border-radius: 5px;
    padding: 18px 14px 6px;
    background: #fff;
    outline: none;
    color: #202124
}

.floating-field label {
    position: absolute;
    left: 14px;
    top: 18px;
    color: #5f6368;
    pointer-events: none;
    transition: .16s ease;
    background: #fff;
    padding: 0 4px
}

.floating-field input:focus {
    border: 2px solid var(--blue);
    padding-left: 13px
}

.floating-field input:focus+label,.floating-field input:not(:placeholder-shown)+label {
    top: -8px;
    font-size: 12px;
    color: var(--blue)
}

.form-grid {
    display: grid;
    gap: 18px
}

.form-grid.two {
    grid-template-columns: repeat(2,minmax(0,1fr))
}

.form-grid.three {
    grid-template-columns: repeat(3,minmax(0,1fr))
}

.auth-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 10px;
    gap: 18px
}

.auth-footer a {
    color: var(--blue);
    font-weight: 700;
    text-decoration: none;
    font-size: 14px
}

.auth-footer button {
    width: auto;
    min-width: 96px;
    border: 0
}

.setup-warning {
    margin-top: 24px;
    border: 1px solid #fdd663;
    background: #fef7e0;
    border-radius: 10px;
    padding: 13px;
    color: #5f4700;
    line-height: 1.5;
    font-size: 13px
}

.setup-warning code {
    background: rgba(255,255,255,.6);
    padding: 2px 4px;
    border-radius: 4px
}

/* User app */
.app-shell {
    display: grid;
    grid-template-columns: 250px minmax(0,1fr);
    min-height: calc(100vh - 68px);
    background: #f6f8fc
}

.gmail-sidebar {
    padding: 18px 12px 18px 0;
    display: flex;
    flex-direction: column;
    min-height: calc(100vh - 68px);
    position: sticky;
    top: 68px;
    align-self: start
}

.compose-button {
    margin: 0 14px 16px 8px;
    min-height: 56px;
    border-radius: 16px;
    background: #c2e7ff;
    color: #001d35;
    display: flex;
    align-items: center;
    gap: 11px;
    padding: 0 20px;
    text-decoration: none;
    font-weight: 700;
    box-shadow: 0 1px 2px rgba(60,64,67,.2)
}

.compose-button span {
    font-size: 25px;
    font-weight: 400
}

.compose-button:hover {
    box-shadow: var(--shadow)
}

.compose-button.disabled {
    opacity: .48;
    pointer-events: none
}

.gmail-sidebar nav {
    display: grid;
    gap: 2px
}

.gmail-nav {
    height: 36px;
    border-radius: 0 18px 18px 0;
    padding: 0 18px 0 26px;
    display: grid;
    grid-template-columns: 28px 1fr auto;
    align-items: center;
    text-decoration: none;
    color: #3c4043;
    font-size: 14px
}

.gmail-nav:hover {
    background: #ebeef3
}

.gmail-nav.active {
    background: #d3e3fd;
    color: #001d35;
    font-weight: 700
}

.gmail-nav b {
    font-size: 12px
}

.sidebar-usage {
    margin: auto 20px 15px;
    padding-top: 30px;
    color: #5f6368
}

.usage-label {
    display: flex;
    justify-content: space-between;
    gap: 8px;
    font-size: 11px;
    margin-bottom: 8px
}

.usage-label b {
    white-space: nowrap
}

.usage-progress {
    display: block;
    width: 100%;
    height: 5px;
    border: 0;
    border-radius: 4px;
    overflow: hidden;
    background: #dfe3e8
}

.usage-progress::-webkit-progress-bar {
    background: #dfe3e8
}

.usage-progress::-webkit-progress-value {
    background: var(--blue);
    border-radius: 4px
}

.usage-progress::-moz-progress-bar {
    background: var(--blue);
    border-radius: 4px
}

.sidebar-usage small {
    display: block;
    margin-top: 7px;
    font-size: 11px
}

.sidebar-signout {
    padding: 0 20px
}

.text-button {
    border: 0;
    background: transparent;
    color: #5f6368;
    min-height: auto;
    padding: 8px 0;
    border-radius: 0;
    box-shadow: none
}

.text-button:hover {
    background: transparent;
    color: #202124;
    box-shadow: none
}

.app-content {
    margin: 10px 12px 18px 0;
    background: #fff;
    border-radius: 18px;
    min-width: 0;
    padding: 30px 34px 45px;
    min-height: calc(100vh - 96px)
}

.app-content>.notice,.admin-content>.notice {
    margin: 0 0 22px;
    max-width: none
}

.content-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 24px;
    margin-bottom: 26px
}

.content-header h1 {
    font-size: 31px;
    font-weight: 500;
    margin: 0 0 8px;
    letter-spacing: -.02em
}

.content-header>div>p:last-child {
    color: #5f6368;
    margin: 0;
    line-height: 1.5
}

.metric-grid {
    display: grid;
    grid-template-columns: repeat(3,minmax(0,1fr));
    gap: 16px;
    margin-bottom: 25px
}

.metric-grid article,.admin-metric-grid article {
    border: 1px solid #e0e3e7;
    border-radius: 16px;
    padding: 22px;
    background: #fff
}

.metric-grid span,.admin-metric-grid span {
    display: block;
    color: #5f6368;
    font-size: 13px
}

.metric-grid strong,.admin-metric-grid strong {
    display: block;
    font-size: 28px;
    font-weight: 500;
    margin: 10px 0 6px
}

.metric-grid small,.admin-metric-grid small {
    color: #5f6368;
    font-size: 12px
}

.empty-panel {
    border: 1px dashed #c9ced6;
    border-radius: 18px;
    text-align: center;
    padding: 65px 22px;
    background: #fbfcff
}

.empty-panel.borderless {
    border: 0;
    border-radius: 0;
    background: #fff;
    min-height: 350px
}

.empty-panel.compact-empty {
    padding: 42px 24px
}

.empty-illustration {
    width: 70px;
    height: 70px;
    border-radius: 22px;
    display: grid;
    place-items: center;
    background: #eaf1fb;
    color: #0b57d0;
    font-size: 33px;
    margin: 0 auto 18px
}

.empty-panel h2 {
    font-size: 22px;
    margin: 0 0 9px
}

.empty-panel p {
    color: #5f6368;
    margin: 0 auto 20px;
    max-width: 500px;
    line-height: 1.55
}

.mailbox-table-card,.settings-card,.gmail-inbox-card,.message-view-card {
    border: 1px solid #e0e3e7;
    border-radius: 16px;
    overflow: hidden;
    background: #fff
}

.table-toolbar,.mail-toolbar {
    height: 54px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 20px;
    border-bottom: 1px solid #e8eaed;
    color: #5f6368;
    font-size: 13px
}

.table-toolbar span {
    font-weight: 700;
    color: #3c4043
}

.mailbox-row {
    display: grid;
    grid-template-columns: 48px minmax(0,1fr) 130px auto;
    gap: 16px;
    align-items: center;
    padding: 17px 20px;
    border-bottom: 1px solid #eef0f2
}

.mailbox-row:last-child {
    border-bottom: 0
}

.mailbox-row:hover {
    background: #f8fafd
}

.mailbox-avatar {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    background: #eaf1fb;
    color: #0b57d0;
    font-weight: 800
}

.mailbox-info,.mailbox-quota {
    display: grid;
    gap: 4px;
    min-width: 0
}

.mailbox-info strong {
    overflow-wrap: anywhere
}

.mailbox-info span,.mailbox-quota span {
    font-size: 12px;
    color: #5f6368
}

.mailbox-quota strong {
    font-size: 14px
}

.create-card {
    max-width: 880px
}

.create-card form {
    display: grid
}

.form-section {
    padding: 26px 28px;
    border-bottom: 1px solid #e8eaed
}

.form-section h2 {
    font-size: 18px;
    margin: 0 0 6px
}

.form-section>p {
    color: #5f6368;
    margin: 0 0 20px;
    font-size: 14px
}

.address-builder {
    display: grid;
    grid-template-columns: 1fr 230px
}

.address-builder input,.address-builder select,.admin-form input,.admin-form select,.admin-form textarea {
    width: 100%;
    min-height: 48px;
    border: 1px solid #dadce0;
    background: #fff;
    padding: 0 13px;
    outline: none;
    color: #202124
}

.address-builder input {
    border-radius: 8px 0 0 8px
}

.address-builder select {
    border-left: 0;
    border-radius: 0 8px 8px 0
}

.address-builder input:focus,.address-builder select:focus,.admin-form input:focus,.admin-form textarea:focus {
    border-color: var(--blue);
    box-shadow: 0 0 0 1px var(--blue)
}

.quota-field {
    max-width: 260px
}

.form-actions {
    display: flex;
    justify-content: flex-end;
    gap: 12px;
    padding: 22px 28px
}

.form-actions button {
    border: 0
}

.inbox-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 22px
}

.inbox-header h1 {
    font-size: 25px;
    font-weight: 500;
    margin: 0
}

.inbox-actions {
    display: flex;
    align-items: center;
    gap: 10px
}

.inbox-actions form {
    margin: 0
}

.icon-button {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    text-decoration: none;
    color: #5f6368;
    font-size: 19px
}

.icon-button:hover {
    background: #f1f3f4
}

.message-row {
    display: grid;
    grid-template-columns: 30px 30px minmax(150px,230px) minmax(200px,1fr) 140px;
    align-items: center;
    gap: 8px;
    min-height: 48px;
    padding: 0 16px;
    border-bottom: 1px solid #eef0f2;
    text-decoration: none;
    color: #5f6368;
    font-size: 13px
}

.message-row:hover {
    box-shadow: inset 1px 0 #dadce0,inset -1px 0 #dadce0,0 1px 2px rgba(60,64,67,.2)
}

.message-row.unread {
    background: #f7f9fc;
    color: #202124;
    font-weight: 700
}

.message-check,.message-star {
    font-size: 17px;
    color: #80868b
}

.message-from,.message-subject {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis
}

.message-date {
    text-align: right;
    font-size: 12px
}

.pager {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    padding: 18px;
    color: #5f6368;
    font-size: 13px
}

.message-view-card {
    padding: 28px 34px;
    max-width: 1000px
}

.back-link {
    display: inline-block;
    color: var(--blue);
    text-decoration: none;
    font-weight: 700;
    font-size: 14px;
    margin-bottom: 25px
}

.message-view-card h1 {
    font-size: 28px;
    font-weight: 500;
    margin: 0 0 24px
}

.sender-row {
    display: grid;
    grid-template-columns: 42px minmax(0,1fr) auto;
    gap: 13px;
    align-items: center
}

.sender-avatar {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    background: #eaf1fb;
    color: #0b57d0;
    font-weight: 800
}

.sender-row>div:nth-child(2) {
    display: grid;
    gap: 4px
}

.sender-row span {
    font-size: 12px;
    color: #5f6368
}

.sender-row time {
    font-size: 12px;
    color: #5f6368
}

.attachments {
    margin: 20px 0 0;
    padding: 12px 14px;
    background: #f8fafd;
    border-radius: 8px;
    color: #5f6368
}

.email-body {
    white-space: pre-wrap;
    overflow-wrap: anywhere;
    font: 15px/1.7 Arial,Helvetica,sans-serif;
    border: 0;
    background: #fff;
    padding: 28px 0;
    margin: 0;
    min-height: 250px
}

.site-footer {
    min-height: 42px;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
    color: #80868b;
    font-size: 12px;
    padding: 10px 20px
}

.site-footer a {
    text-decoration: none
}

.site-footer a:hover {
    text-decoration: underline
}

/* Maintenance */
.maintenance-page {
    min-height: 100vh;
    display: grid;
    place-items: center;
    background: linear-gradient(180deg,#fff,#f3f7fc);
    padding: 25px
}

.maintenance-card {
    width: min(560px,100%);
    text-align: center;
    border: 1px solid #dadce0;
    border-radius: 28px;
    background: #fff;
    padding: 54px 42px;
    box-shadow: var(--shadow)
}

.maintenance-card .brand-mark {
    margin: 0 auto 24px
}

.maintenance-card h1 {
    font-size: 36px;
    font-weight: 500;
    margin: 0 0 14px
}

.maintenance-card>p {
    color: #5f6368;
    line-height: 1.65;
    margin: 0
}

.maintenance-status {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    background: #fef7e0;
    color: #5f4700;
    border-radius: 20px;
    padding: 9px 14px;
    margin-top: 26px;
    font-size: 13px;
    font-weight: 700
}

.maintenance-status span {
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background: #f9ab00
}

/* Admin */
.admin-body {
    background: #f6f8fc
}

.admin-header {
    height: 70px;
    display: grid;
    grid-template-columns: 300px minmax(280px,720px) 50px;
    align-items: center;
    gap: 25px;
    padding: 0 24px;
    background: #fff;
    border-bottom: 1px solid #e0e3e7;
    position: sticky;
    top: 0;
    z-index: 60
}

.admin-search-wrap form {
    height: 48px;
    border-radius: 24px;
    background: #edf2fa;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 0 17px
}

.admin-search-wrap form input {
    border: 0;
    background: transparent;
    outline: none;
    width: 100%;
    color: #202124
}

.admin-search-placeholder {
    height: 48px;
    border-radius: 24px;
    background: #edf2fa;
    display: flex;
    align-items: center;
    padding: 0 20px;
    color: #5f6368;
    font-size: 14px
}

.admin-profile {
    margin-left: auto
}

.admin-shell {
    display: grid;
    grid-template-columns: 240px minmax(0,1fr);
    min-height: calc(100vh - 70px)
}

.admin-sidebar {
    padding: 22px 14px;
    display: flex;
    flex-direction: column;
    position: sticky;
    top: 70px;
    height: calc(100vh - 70px)
}

.admin-sidebar nav {
    display: grid;
    gap: 5px
}

.admin-nav {
    height: 46px;
    border-radius: 23px;
    display: grid;
    grid-template-columns: 30px 1fr;
    align-items: center;
    padding: 0 18px;
    text-decoration: none;
    color: #3c4043;
    font-size: 14px;
    font-weight: 600
}

.admin-nav:hover {
    background: #eef1f6
}

.admin-nav.active {
    background: #d3e3fd;
    color: #001d35
}

.admin-nav span {
    font-size: 18px
}

.maintenance-indicator {
    margin: auto 8px 14px;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 13px;
    border-radius: 13px;
    background: #e6f4ea
}

.maintenance-indicator>span {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #1e8e3e
}

.maintenance-indicator.on {
    background: #fce8e6
}

.maintenance-indicator.on>span {
    background: #d93025
}

.maintenance-indicator div {
    display: grid;
    gap: 2px
}

.maintenance-indicator b {
    font-size: 12px
}

.maintenance-indicator small {
    font-size: 11px;
    color: #5f6368
}

.admin-signout {
    padding: 0 12px
}

.admin-content {
    padding: 34px 34px 70px;
    min-width: 0
}

.admin-metric-grid {
    display: grid;
    grid-template-columns: repeat(4,minmax(0,1fr));
    gap: 16px;
    margin-bottom: 22px
}

.admin-metric-grid article {
    box-shadow: 0 1px 2px rgba(60,64,67,.08)
}

.status-word {
    font-size: 23px!important
}

.status-word.good {
    color: #137333
}

.status-word.danger {
    color: #b3261e
}

.admin-card {
    background: #fff;
    border: 1px solid #e0e3e7;
    border-radius: 16px;
    overflow: hidden;
    margin-bottom: 22px
}

.admin-card-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 20px;
    padding: 22px 24px;
    border-bottom: 1px solid #e8eaed
}

.admin-card-header h2 {
    font-size: 18px;
    margin: 0 0 5px
}

.admin-card-header p {
    margin: 0;
    color: #5f6368;
    font-size: 13px;
    line-height: 1.5
}

.admin-card-header>a {
    color: var(--blue);
    text-decoration: none;
    font-size: 13px;
    font-weight: 700
}

.count-pill {
    background: #eaf1fb;
    color: #0b57d0;
    border-radius: 20px;
    padding: 7px 11px;
    font-size: 12px;
    font-weight: 700
}

.admin-table-wrap {
    overflow: auto
}

.admin-table {
    width: 100%;
    border-collapse: collapse;
    min-width: 760px
}

.admin-table th {
    text-align: left;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: .07em;
    color: #5f6368;
    background: #fafbfc;
    padding: 13px 16px;
    border-bottom: 1px solid #e8eaed
}

.admin-table td {
    padding: 14px 16px;
    border-bottom: 1px solid #eef0f2;
    font-size: 13px;
    color: #3c4043;
    vertical-align: middle
}

.admin-table tr:last-child td {
    border-bottom: 0
}

.admin-table tbody tr:hover {
    background: #f8fafd
}

.user-cell {
    display: flex;
    align-items: center;
    gap: 11px
}

.user-cell>span {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: #eaf1fb;
    color: #0b57d0;
    display: grid;
    place-items: center;
    font-weight: 800
}

.user-cell>div {
    display: grid;
    gap: 3px
}

.user-cell small,.table-subtext {
    display: block;
    color: #5f6368;
    font-size: 11px;
    margin-top: 2px
}

.status-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    padding: 5px 9px;
    font-size: 11px;
    font-weight: 800;
    background: #e6f4ea;
    color: #137333
}

.status-badge.inactive,.status-badge.failed {
    background: #fce8e6;
    color: #b3261e
}

.status-badge.creating {
    background: #fef7e0;
    color: #7a4e00
}

.status-badge.large {
    font-size: 13px;
    padding: 8px 13px
}

.row-action {
    color: var(--blue);
    font-weight: 700;
    text-decoration: none
}

.table-empty {
    text-align: center!important;
    color: #80868b!important;
    padding: 42px!important
}

.user-admin-grid {
    display: grid;
    grid-template-columns: repeat(2,minmax(0,1fr));
    gap: 20px
}

.user-admin-grid .admin-card {
    margin: 0
}

.user-admin-grid .danger-card {
    grid-column: 1/-1
}

.form-card .admin-form {
    padding: 22px 24px
}

.admin-form {
    display: grid;
    gap: 18px
}

.admin-form label {
    display: block;
    font-size: 13px;
    font-weight: 700;
    color: #3c4043;
    margin-bottom: 7px
}

.admin-form textarea {
    padding: 12px 13px;
    resize: vertical;
    line-height: 1.5
}

.admin-form input,.admin-form textarea {
    border-radius: 8px
}

.admin-form button {
    justify-self: start;
    border: 0
}

.usage-summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
    background: #f8fafd;
    border-radius: 10px;
    padding: 13px 15px;
    font-size: 13px
}

.usage-summary span {
    color: #5f6368
}

.danger-card {
    border-color: #f2b8b5
}

.danger-button {
    background: #b3261e
}

.danger-button:hover {
    background: #8c1d18
}

.settings-stack {
    display: grid;
    gap: 0
}

.settings-section {
    margin-bottom: 20px
}

.settings-section .admin-form {
    padding: 22px 24px
}

.switch-row {
    display: flex!important;
    align-items: center;
    justify-content: space-between;
    gap: 25px;
    margin: 0!important;
    border: 1px solid #e0e3e7;
    border-radius: 12px;
    padding: 14px 16px;
    cursor: pointer
}

.switch-row>div {
    display: grid;
    gap: 4px
}

.switch-row span {
    font-size: 12px;
    color: #5f6368;
    font-weight: 400
}

.switch-row input {
    position: absolute;
    opacity: 0;
    pointer-events: none
}

.switch-row i {
    width: 44px;
    height: 24px;
    border-radius: 12px;
    background: #9aa0a6;
    position: relative;
    flex: 0 0 auto
}

.switch-row i:after {
    content: "";
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: #fff;
    position: absolute;
    left: 3px;
    top: 3px;
    transition: .18s;
    box-shadow: 0 1px 2px rgba(0,0,0,.25)
}

.switch-row input:checked+i {
    background: var(--blue)
}

.switch-row input:checked+i:after {
    left: 23px
}

.maintenance-switch input:checked+i {
    background: #b3261e
}

.sticky-save {
    position: sticky;
    bottom: 18px;
    background: #202124;
    color: #fff;
    border-radius: 14px;
    padding: 15px 18px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    box-shadow: 0 7px 22px rgba(32,33,36,.28);
    z-index: 20
}

.sticky-save span {
    font-size: 13px;
    color: #e8eaed
}

.sticky-save button {
    background: #8ab4f8;
    color: #001d35;
    border: 0
}

.sticky-save button:hover {
    background: #aecbfa
}

.back-link+.content-header {
    margin-top: 0
}

@media(max-width: 1100px) {
    .hero-grid {
        grid-template-columns:1fr;
        gap: 42px
    }

    .mail-preview {
        max-width: 760px;
        margin: auto;
        width: 100%
    }

    .hero-copy {
        text-align: center
    }

    .hero-copy h1,.hero-copy>p {
        margin-left: auto;
        margin-right: auto
    }

    .hero-actions,.feature-list {
        justify-content: center
    }

    .feature-list {
        max-width: 500px;
        margin-left: auto;
        margin-right: auto;
        text-align: left
    }

    .admin-metric-grid {
        grid-template-columns: repeat(2,minmax(0,1fr))
    }

    .admin-header {
        grid-template-columns: 250px 1fr 40px
    }

    .form-grid.three {
        grid-template-columns: 1fr 1fr
    }
}

@media(max-width: 850px) {
    .google-header {
        padding:0 16px
    }

    .header-link {
        display: none
    }

    .landing-shell {
        width: min(100% - 26px,760px);
        padding-top: 30px
    }

    .hero-grid {
        min-height: auto
    }

    .hero-copy h1 {
        font-size: clamp(38px,11vw,58px)
    }

    .landing-cards {
        grid-template-columns: 1fr
    }

    .app-shell {
        grid-template-columns: 76px minmax(0,1fr)
    }

    .gmail-sidebar {
        padding-right: 6px
    }

    .compose-button {
        width: 56px;
        height: 56px;
        padding: 0;
        justify-content: center;
        border-radius: 18px;
        margin: 0 auto 15px;
        font-size: 0
    }

    .compose-button span {
        font-size: 28px
    }

    .gmail-nav {
        grid-template-columns: 1fr;
        width: 52px;
        height: 48px;
        border-radius: 50%;
        padding: 0;
        margin: auto;
        text-align: center
    }

    .gmail-nav span {
        font-size: 20px
    }

    .gmail-nav:not(.active) {
        background: transparent
    }

    .gmail-nav b,.gmail-nav {
        font-size: 0
    }

    .sidebar-usage,.sidebar-signout {
        display: none
    }

    .app-content {
        padding: 24px 20px;
        margin-right: 8px
    }

    .metric-grid {
        grid-template-columns: 1fr
    }

    .mailbox-row {
        grid-template-columns: 44px minmax(0,1fr) auto
    }

    .mailbox-quota {
        display: none
    }

    .message-row {
        grid-template-columns: 24px minmax(110px,180px) minmax(150px,1fr) 90px
    }

    .message-star {
        display: none
    }

    .admin-header {
        grid-template-columns: 1fr 46px
    }

    .admin-search-wrap {
        display: none
    }

    .admin-shell {
        grid-template-columns: 74px minmax(0,1fr)
    }

    .admin-sidebar {
        padding: 15px 8px
    }

    .admin-nav {
        width: 50px;
        height: 50px;
        border-radius: 50%;
        padding: 0;
        display: grid;
        place-items: center;
        font-size: 0
    }

    .admin-nav span {
        font-size: 20px
    }

    .maintenance-indicator,.admin-signout {
        display: none
    }

    .admin-content {
        padding: 24px 18px 60px
    }

    .user-admin-grid {
        grid-template-columns: 1fr
    }

    .user-admin-grid .danger-card {
        grid-column: auto
    }
}

@media(max-width: 620px) {
    .google-brand {
        font-size:16px
    }

    .google-brand>span:last-child {
        max-width: 155px
    }

    .brand-mark {
        width: 36px;
        height: 36px
    }

    .google-button {
        padding: 0 17px
    }

    .landing-shell {
        padding-bottom: 40px
    }

    .hero-copy>p {
        font-size: 17px
    }

    .preview-layout {
        grid-template-columns: 90px 1fr
    }

    .preview-side {
        padding: 12px 5px
    }

    .preview-compose {
        font-size: 0;
        justify-content: center;
        padding: 0
    }

    .preview-compose:before {
        content: "+";
        font-size: 22px
    }

    .preview-nav {
        font-size: 0;
        text-align: center
    }

    .preview-nav:first-letter {
        font-size: 16px
    }

    .preview-message {
        grid-template-columns: minmax(80px,1fr) 60px
    }

    .preview-message span {
        display: none
    }

    .auth-card {
        padding: 34px 24px;
        border-radius: 22px
    }

    .auth-shell {
        padding-top: 70px
    }

    .form-grid.two,.form-grid.three {
        grid-template-columns: 1fr
    }

    .auth-footer {
        align-items: flex-end
    }

    .address-builder {
        grid-template-columns: 1fr
    }

    .address-builder input {
        border-radius: 8px 8px 0 0
    }

    .address-builder select {
        border-left: 1px solid #dadce0;
        border-top: 0;
        border-radius: 0 0 8px 8px
    }

    .app-shell {
        display: block
    }

    .gmail-sidebar {
        position: fixed;
        bottom: 0;
        top: auto;
        left: 0;
        right: 0;
        height: 66px;
        min-height: 0;
        background: #fff;
        border-top: 1px solid #dadce0;
        z-index: 80;
        display: flex;
        flex-direction: row;
        align-items: center;
        padding: 7px 10px
    }

    .compose-button {
        margin: 0 10px 0 0;
        width: 50px;
        height: 50px
    }

    .gmail-sidebar nav {
        display: flex;
        flex: 1;
        justify-content: space-around
    }

    .gmail-nav {
        margin: 0
    }

    .app-content {
        margin: 8px 8px 78px;
        padding: 20px 15px;
        border-radius: 14px;
        min-height: calc(100vh - 160px)
    }

    .content-header {
        flex-direction: column
    }

    .content-header>.google-button {
        width: 100%
    }

    .mailbox-row {
        grid-template-columns: 40px minmax(0,1fr);
        gap: 12px
    }

    .mailbox-row form {
        grid-column: 1/-1
    }

    .mailbox-row form button {
        width: 100%
    }

    .message-row {
        grid-template-columns: minmax(100px,1fr) 80px;
        padding: 9px 12px;
        min-height: 58px
    }

    .message-check,.message-star,.message-subject {
        display: none
    }

    .message-from {
        white-space: normal
    }

    .sender-row {
        grid-template-columns: 38px 1fr
    }

    .sender-row time {
        grid-column: 2
    }

    .message-view-card {
        padding: 22px 20px
    }

    .site-footer {
        padding-bottom: 80px
    }

    .admin-header {
        padding: 0 14px
    }

    .admin-shell {
        display: block
    }

    .admin-sidebar {
        position: fixed;
        bottom: 0;
        top: auto;
        left: 0;
        right: 0;
        height: 66px;
        background: #fff;
        border-top: 1px solid #dadce0;
        z-index: 80;
        display: flex;
        flex-direction: row;
        padding: 7px 10px
    }

    .admin-sidebar nav {
        display: flex;
        justify-content: space-around;
        flex: 1
    }

    .admin-content {
        padding: 22px 12px 82px
    }

    .admin-metric-grid {
        grid-template-columns: 1fr
    }

    .sticky-save {
        bottom: 76px;
        align-items: flex-start;
        flex-direction: column
    }

    .sticky-save button {
        width: 100%
    }

    .content-header h1 {
        font-size: 27px
    }
}

.setup-form-space {
    margin-top: 24px
}

/* Same-password mailbox creation and password visibility controls */
.password-field input {
    padding-right: 76px
}

.password-toggle {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    border: 0;
    background: transparent;
    color: var(--blue);
    font-size: 12px;
    font-weight: 700;
    cursor: pointer;
    padding: 8px;
    border-radius: 6px;
    z-index: 2
}

.password-toggle:hover {
    background: #eef3fc
}

.password-toggle:focus-visible {
    outline: 2px solid var(--blue);
    outline-offset: 1px
}

.password-toggle.static-toggle {
    position: absolute;
    right: 8px;
    top: 50%;
    transform: translateY(-50%)
}

.readonly-password,.admin-password-field {
    position: relative;
    min-width: 240px
}

.readonly-password input,.admin-password-field input {
    width: 100%;
    min-height: 46px;
    border: 1px solid #dadce0;
    border-radius: 8px;
    background: #fff;
    padding: 0 74px 0 13px;
    color: #202124;
    outline: none
}

.readonly-password input:focus,.admin-password-field input:focus {
    border-color: var(--blue);
    box-shadow: 0 0 0 1px var(--blue)
}

.automatic-mailbox-settings {
    display: grid;
    border-top: 1px solid #e8eaed
}

.automatic-setting {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    padding: 20px 28px;
    border-bottom: 1px solid #e8eaed;
    background: #fafbfc
}

.automatic-setting:last-child {
    border-bottom: 0
}

.automatic-setting>div:first-child {
    display: grid;
    gap: 4px
}

.automatic-setting strong {
    font-size: 14px;
    color: #202124
}

.automatic-setting span {
    font-size: 12px;
    color: #5f6368
}

.automatic-setting>b {
    font-size: 15px;
    color: #3c4043;
    white-space: nowrap
}

@media(max-width: 620px) {
    .automatic-setting {
        align-items:flex-start;
        flex-direction: column;
        padding: 18px 20px
    }

    .readonly-password,.admin-password-field {
        width: 100%;
        min-width: 0
    }
}

/* Free trial upgrade prompt */
.trial-upgrade-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 22px;
    margin: 0 0 22px;
    padding: 20px 22px;
    border: 1px solid #c2d7f2;
    border-radius: 16px;
    background: #f5f9ff
}

.trial-upgrade-card>div {
    display: flex;
    align-items: center;
    gap: 14px;
    min-width: 0
}

.trial-upgrade-card h2 {
    font-size: 17px;
    margin: 0 0 5px
}

.trial-upgrade-card p {
    margin: 0;
    color: #5f6368;
    line-height: 1.5
}

.trial-icon {
    width: 42px;
    height: 42px;
    border-radius: 13px;
    display: grid;
    place-items: center;
    background: #d3e3fd;
    color: #0b57d0;
    font-size: 20px;
    flex: 0 0 auto
}

.compact-empty .google-button {
    margin-top: 18px
}

.maintenance-theme {
    margin-top: 18px;
    display: flex;
    justify-content: center
}

/* Light and dark theme control */
.theme-toggle {
    min-height: 38px;
    border: 1px solid #dadce0;
    border-radius: 19px;
    padding: 0 13px;
    background: #fff;
    color: #3c4043;
    box-shadow: none;
    display: inline-flex;
    align-items: center;
    gap: 7px;
    font-size: 12px;
    font-weight: 700;
    white-space: nowrap
}

.theme-toggle:hover {
    background: #f1f3f4;
    box-shadow: none
}

.theme-toggle span {
    font-size: 16px;
    line-height: 1
}

.theme-toggle b {
    font: inherit
}

.admin-header-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 10px
}

.admin-header {
    grid-template-columns: 300px minmax(280px,720px) minmax(128px,auto)
}

html[data-theme="dark"] {
    color-scheme: dark;
    background: #111318;
    --blue: #8ab4f8;
    --blue-2: #a8c7fa;
    --blue-soft: #1f2d40;
    --line: #3c4048;
    --muted: #aeb4bd;
    --panel: #1b1e24;
    --danger: #f2b8b5;
    --success: #81c995;
    --shadow: 0 1px 2px rgba(0,0,0,.45),0 4px 12px rgba(0,0,0,.25)
}

html[data-theme="dark"] body,html[data-theme="dark"] .admin-body {
    background: #111318;
    color: #e8eaed
}

html[data-theme="dark"] .google-header,html[data-theme="dark"] .admin-header {
    background: rgba(27,30,36,.96);
    border-color: #3c4048
}

html[data-theme="dark"] .google-brand,html[data-theme="dark"] .header-link,html[data-theme="dark"] .gmail-nav,html[data-theme="dark"] .admin-nav {
    color: #e8eaed
}

html[data-theme="dark"] .header-link:hover,html[data-theme="dark"] .theme-toggle:hover,html[data-theme="dark"] .icon-button:hover {
    background: #30343b
}

html[data-theme="dark"] .theme-toggle {
    background: #25282f;
    border-color: #4a4f58;
    color: #e8eaed
}

html[data-theme="dark"] .landing-shell,html[data-theme="dark"] .auth-shell {
    background: #111318
}

html[data-theme="dark"] .auth-shell {
    background: linear-gradient(180deg,#111318,#171a20)
}

html[data-theme="dark"] .hero-copy h1,html[data-theme="dark"] .auth-card h1,html[data-theme="dark"] .content-header h1,html[data-theme="dark"] .message-view-card h1,html[data-theme="dark"] .admin-card-header h2,html[data-theme="dark"] .trial-upgrade-card h2 {
    color: #e8eaed
}

html[data-theme="dark"] .hero-copy>p,html[data-theme="dark"] .landing-cards p,html[data-theme="dark"] .auth-card>p,html[data-theme="dark"] .content-header p,html[data-theme="dark"] .field-help,html[data-theme="dark"] .trial-upgrade-card p {
    color: #aeb4bd
}

html[data-theme="dark"] .mail-preview,html[data-theme="dark"] .preview-main,html[data-theme="dark"] .landing-cards article,html[data-theme="dark"] .auth-card,html[data-theme="dark"] .app-content,html[data-theme="dark"] .settings-card,html[data-theme="dark"] .mailbox-table-card,html[data-theme="dark"] .message-view-card,html[data-theme="dark"] .admin-card,html[data-theme="dark"] .maintenance-card {
    background: #1b1e24;
    border-color: #3c4048
}

html[data-theme="dark"] .preview-top,html[data-theme="dark"] .preview-side,html[data-theme="dark"] .preview-toolbar,html[data-theme="dark"] .admin-table th {
    background: #20242b;
    border-color: #3c4048
}

html[data-theme="dark"] .preview-search,html[data-theme="dark"] .admin-search-wrap form,html[data-theme="dark"] .admin-search-placeholder {
    background: #2a3039;
    color: #aeb4bd
}

html[data-theme="dark"] .preview-message,html[data-theme="dark"] .message-row,html[data-theme="dark"] .mailbox-row,html[data-theme="dark"] .admin-table td,html[data-theme="dark"] .admin-card-header {
    border-color: #333841;
    color: #c4c7c5
}

html[data-theme="dark"] .preview-message.unread,html[data-theme="dark"] .message-row.unread {
    background: #202630;
    color: #e8eaed
}

html[data-theme="dark"] .preview-message b,html[data-theme="dark"] .preview-message.unread b {
    color: #e8eaed
}

html[data-theme="dark"] .floating-field input,html[data-theme="dark"] .address-builder input,html[data-theme="dark"] .address-builder select,html[data-theme="dark"] .admin-form input,html[data-theme="dark"] .admin-form textarea,html[data-theme="dark"] .readonly-password input,html[data-theme="dark"] .admin-password-field input {
    background: #1b1e24;
    border-color: #5f6670;
    color: #e8eaed
}

html[data-theme="dark"] .floating-field label {
    background: #1b1e24;
    color: #aeb4bd
}

html[data-theme="dark"] .app-shell,html[data-theme="dark"] .admin-shell {
    background: #15181e
}

html[data-theme="dark"] .gmail-sidebar,html[data-theme="dark"] .admin-sidebar {
    background: #15181e
}

html[data-theme="dark"] .gmail-nav:hover,html[data-theme="dark"] .admin-nav:hover {
    background: #252a32
}

html[data-theme="dark"] .gmail-nav.active,html[data-theme="dark"] .admin-nav.active {
    background: #284364;
    color: #d7e7ff
}

html[data-theme="dark"] .compose-button {
    background: #284764;
    color: #d7e7ff
}

html[data-theme="dark"] .metric-grid article,html[data-theme="dark"] .admin-metric-grid article,html[data-theme="dark"] .empty-panel {
    background: #1b1e24;
    border-color: #3c4048
}

html[data-theme="dark"] .metric-grid article span,html[data-theme="dark"] .metric-grid article small,html[data-theme="dark"] .empty-panel p,html[data-theme="dark"] .mailbox-info span,html[data-theme="dark"] .mailbox-quota span,html[data-theme="dark"] .sidebar-usage,html[data-theme="dark"] .admin-card-header p,html[data-theme="dark"] .admin-table th,html[data-theme="dark"] .admin-table td,html[data-theme="dark"] .user-cell small,html[data-theme="dark"] .table-subtext {
    color: #aeb4bd
}

html[data-theme="dark"] .metric-grid article strong,html[data-theme="dark"] .mailbox-info strong,html[data-theme="dark"] .mailbox-quota strong,html[data-theme="dark"] .automatic-setting strong,html[data-theme="dark"] .automatic-setting>b,html[data-theme="dark"] .admin-form label {
    color: #e8eaed
}

html[data-theme="dark"] .automatic-setting,html[data-theme="dark"] .usage-summary {
    background: #20242b;
    border-color: #3c4048
}

html[data-theme="dark"] .automatic-setting span,html[data-theme="dark"] .usage-summary span {
    color: #aeb4bd
}

html[data-theme="dark"] .outline-button {
    background: #1b1e24;
    color: #a8c7fa;
    border-color: #5f6670
}

html[data-theme="dark"] .outline-button:hover {
    background: #252a32;
    border-color: #7c8490
}

html[data-theme="dark"] .email-body {
    background: #1b1e24;
    color: #e8eaed
}

html[data-theme="dark"] .attachments {
    background: #252a32;
    color: #c4c7c5
}

html[data-theme="dark"] .trial-upgrade-card {
    background: #1c2b3d;
    border-color: #456483
}

html[data-theme="dark"] .trial-icon {
    background: #284b70;
    color: #d7e7ff
}

html[data-theme="dark"] .maintenance-page {
    background: linear-gradient(180deg,#111318,#171a20)
}

html[data-theme="dark"] .switch-row {
    border-color: #4a4f58
}

html[data-theme="dark"] .admin-table tbody tr:hover {
    background: #23272e
}

html[data-theme="dark"] .site-footer {
    color: #9aa0a6
}

@media(max-width: 850px) {
    .admin-header {
        grid-template-columns:1fr auto
    }

    .admin-header-actions .theme-toggle b {
        display: none
    }

    .admin-header-actions .theme-toggle {
        width: 40px;
        padding: 0;
        justify-content: center
    }
}

@media(max-width: 620px) {
    .theme-toggle b {
        display:none
    }

    .theme-toggle {
        width: 40px;
        padding: 0;
        justify-content: center
    }

    .trial-upgrade-card {
        align-items: flex-start;
        flex-direction: column
    }

    .trial-upgrade-card>.google-button {
        width: 100%
    }

    html[data-theme="dark"] .gmail-sidebar,html[data-theme="dark"] .admin-sidebar {
        background: #1b1e24;
        border-color: #3c4048
    }
}

/* Reliable password visibility control */
.password-toggle {
    pointer-events: auto;
    touch-action: manipulation;
    user-select: none;
    -webkit-user-select: none;
}

.password-toggle[aria-pressed="true"] {
    background: var(--soft-blue)
}

html[data-theme="dark"] .password-toggle[aria-pressed="true"] {
    background: #284b70
}
