/* Email Agent · light inbox preview
 * A scoped visual layer for the desktop inbox. Business views and embedded pages
 * keep their existing behavior; this file only changes the inbox presentation.
 */

body.inbox-light-preview {
    --ea-page: #fbfaf6;
    --ea-page-soft: #f5f3ed;
    --ea-surface: #ffffff;
    --ea-surface-raised: #fffdf8;
    --ea-surface-sunken: #f1efe8;
    --ea-ink: #17150f;
    --ea-ink-soft: #5d5a51;
    --ea-muted: #6f6b61;
    --ea-line: #e6e2d8;
    --ea-line-strong: #d7d1c3;
    --ea-accent: #ffb91c;
    --ea-accent-strong: #e99a00;
    --ea-accent-soft: #fff0b9;
    --ea-accent-softer: #fff7d6;
    --ea-accent-wash: #fff9e8;
    --ea-success: #4f7a39;
    --ea-success-soft: #edf6e2;
    --ea-info: #3d74b6;
    --ea-info-soft: #eaf2fc;
    --ea-coral: #b94b3d;
    --ea-coral-soft: #fff0ec;
    --ea-danger: #a63f34;
    --ea-danger-soft: #fff0ec;
    --ea-shadow-sm: 0 8px 26px rgba(23, 21, 15, 0.055);
    --ea-shadow-float: 0 18px 50px rgba(23, 21, 15, 0.12);

    background: var(--ea-page) !important;
    color: var(--ea-ink);
    font-family: "Manrope", "Noto Sans SC", "PingFang SC", "Microsoft YaHei", sans-serif;
    text-rendering: optimizeLegibility;
    -webkit-font-smoothing: antialiased;
}

body.inbox-light-preview #app {
    isolation: isolate;
    background: var(--ea-page);
}

body.inbox-light-preview button,
body.inbox-light-preview input,
body.inbox-light-preview select,
body.inbox-light-preview textarea {
    font: inherit;
}

body.inbox-light-preview button:focus-visible,
body.inbox-light-preview a:focus-visible,
body.inbox-light-preview input:focus-visible,
body.inbox-light-preview select:focus-visible,
body.inbox-light-preview textarea:focus-visible,
body.inbox-light-preview [contenteditable="true"]:focus-visible,
body.inbox-light-preview [tabindex="0"]:focus-visible {
    outline: 3px solid rgba(255, 185, 28, 0.34) !important;
    outline-offset: 2px;
}

body.inbox-light-preview ::selection {
    background: var(--ea-accent-soft);
    color: var(--ea-ink);
}

body.inbox-light-preview ::-webkit-scrollbar {
    width: 7px;
    height: 7px;
}

body.inbox-light-preview ::-webkit-scrollbar-thumb {
    border: 2px solid transparent;
    border-radius: 99px;
    background: #c9c4b8;
    background-clip: padding-box;
}

body.inbox-light-preview ::-webkit-scrollbar-thumb:hover {
    background: #aaa497;
    background-clip: padding-box;
}

/* 收件箱列表:隐藏滚动条,保留滚动能力 */
body.inbox-light-preview .inbox-list-scroll {
    scrollbar-width: none;
    -ms-overflow-style: none;
}

body.inbox-light-preview .inbox-list-scroll::-webkit-scrollbar {
    width: 0;
    height: 0;
}

/* ---------- Branded loading shell ---------- */

.inbox-boot-screen {
    position: absolute;
    inset: 0;
    z-index: 999;
    display: grid;
    grid-template-columns: 196px 320px minmax(0, 1fr);
    overflow: hidden;
    background: var(--ea-page);
}

.inbox-boot-rail,
.inbox-boot-list,
.inbox-boot-detail {
    min-width: 0;
}

.inbox-boot-rail {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    padding: 14px 10px;
    border-right: 1px solid var(--ea-line);
    background: var(--ea-page-soft);
}

.inbox-boot-brand {
    display: flex;
    align-items: center;
    gap: 9px;
    color: var(--ea-ink);
    font-size: 13px;
    font-weight: 800;
    letter-spacing: -0.025em;
}

.inbox-boot-brand span {
    display: inline;
}

.inbox-boot-brand img,
.inbox-boot-status img {
    border: 1px solid var(--ea-line);
    border-radius: 11px;
    background: var(--ea-surface);
    object-fit: cover;
}

.inbox-boot-nav {
    display: grid;
    justify-items: start;
    gap: 12px;
    width: 100%;
    margin-top: 28px;
}

.inbox-boot-nav span,
.inbox-boot-profile,
.inbox-boot-list-head,
.inbox-boot-search,
.inbox-boot-row i,
.inbox-boot-row span,
.inbox-boot-row small,
.inbox-boot-detail-head,
.inbox-boot-analysis,
.inbox-boot-message {
    position: relative;
    overflow: hidden;
    background: #e9e6de;
}

.inbox-boot-nav span::after,
.inbox-boot-profile::after,
.inbox-boot-list-head::after,
.inbox-boot-search::after,
.inbox-boot-row i::after,
.inbox-boot-row span::after,
.inbox-boot-row small::after,
.inbox-boot-detail-head::after,
.inbox-boot-analysis::after,
.inbox-boot-message::after {
    position: absolute;
    inset: 0;
    background: linear-gradient(100deg, transparent 15%, rgba(255, 255, 255, 0.78) 48%, transparent 82%);
    content: "";
    transform: translateX(-110%);
    animation: inbox-skeleton-shimmer 1.45s ease-in-out infinite;
}

.inbox-boot-nav span {
    width: 40px;
    height: 38px;
    border-radius: 10px;
}

.inbox-boot-nav span:nth-child(2) {
    background: var(--ea-accent-soft);
}

.inbox-boot-profile {
    width: 46px;
    height: 46px;
    margin-top: auto;
    border: 1px solid var(--ea-line);
    border-radius: 12px;
    background: var(--ea-surface);
}

.inbox-boot-list {
    padding: 21px 15px;
    border-right: 1px solid var(--ea-line);
    background: var(--ea-page-soft);
}

.inbox-boot-list-head {
    width: 46%;
    height: 22px;
    border-radius: 7px;
}

.inbox-boot-search {
    width: 100%;
    height: 36px;
    margin: 18px 0 12px;
    border-radius: 10px;
    background: var(--ea-surface);
}

.inbox-boot-row {
    display: grid;
    grid-template-columns: 34px minmax(0, 1fr);
    grid-template-rows: 15px 12px;
    gap: 9px 10px;
    padding: 15px 8px;
    border-bottom: 1px solid var(--ea-line);
}

.inbox-boot-row i {
    grid-row: 1 / 3;
    width: 34px;
    height: 34px;
    border-radius: 50%;
}

.inbox-boot-row span,
.inbox-boot-row small {
    border-radius: 5px;
}

.inbox-boot-row small {
    width: 72%;
}

.inbox-boot-detail {
    position: relative;
    padding: 24px 30px;
    background:
        linear-gradient(rgba(23, 21, 15, 0.025) 1px, transparent 1px),
        linear-gradient(90deg, rgba(23, 21, 15, 0.025) 1px, transparent 1px),
        var(--ea-page-soft);
    background-size: 32px 32px;
}

.inbox-boot-detail-head {
    width: 58%;
    height: 34px;
    border-radius: 9px;
}

.inbox-boot-analysis {
    width: min(720px, 92%);
    height: 128px;
    margin-top: 42px;
    border: 1px solid var(--ea-accent);
    border-radius: 16px;
    background: var(--ea-accent-softer);
}

.inbox-boot-message {
    width: min(760px, 96%);
    height: 230px;
    margin-top: 18px;
    border: 1px solid var(--ea-line);
    border-radius: 16px;
    background: var(--ea-surface);
}

.inbox-boot-status {
    position: absolute;
    right: 28px;
    bottom: 24px;
    display: inline-flex;
    align-items: center;
    gap: 9px;
    padding: 8px 12px 8px 8px;
    border: 1px solid var(--ea-line);
    border-radius: 13px;
    background: rgba(255, 255, 255, 0.9);
    box-shadow: var(--ea-shadow-sm);
    color: var(--ea-ink-soft);
    font-size: 12px;
    font-weight: 650;
}

@keyframes inbox-skeleton-shimmer {
    to { transform: translateX(110%); }
}

/* ---------- Global rail ---------- */

body.inbox-light-preview #leftRail {
    width: 196px !important;
    flex: 0 0 196px !important;
    overflow: hidden;
    border-right: 1px solid var(--ea-line) !important;
    background: var(--ea-page-soft) !important;
    box-shadow: none !important;
}

body.inbox-light-preview .menu-brand {
    position: relative;
    min-height: 66px;
    justify-content: space-between;
    gap: 6px;
    min-width: 0;
    padding: 14px 10px 10px;
}

.menu-brand-identity {
    display: flex;
    flex: 1 1 auto;
    min-width: 0;
    align-items: center;
    justify-content: flex-start;
    gap: 8px;
    color: var(--ea-ink);
    text-decoration: none;
}

body.inbox-light-preview .menu-logo {
    display: grid;
    width: 38px;
    height: 38px;
    flex: 0 0 38px;
    overflow: hidden;
    place-items: center;
    border: 1px solid var(--ea-line);
    border-radius: 11px;
    background: var(--ea-surface);
    box-shadow: 0 5px 16px rgba(23, 21, 15, 0.06);
}

body.inbox-light-preview .menu-logo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.menu-brand-copy {
    display: grid;
    min-width: 0;
    line-height: 1.1;
}

.menu-brand-copy strong {
    overflow: hidden;
    color: var(--ea-ink);
    font-size: 11px;
    font-weight: 750;
    letter-spacing: -0.03em;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.menu-brand-copy small {
    display: none;
}

body.inbox-light-preview .sidebar-collapse-button {
    position: static;
    width: 32px;
    height: 32px;
    flex: 0 0 32px;
    flex-shrink: 0;
    padding: 0;
    border-color: var(--ea-line);
    border-radius: 9px;
    background: rgba(255, 255, 255, 0.78);
    color: var(--ea-muted);
}

body.inbox-light-preview .sidebar-collapse-button:hover,
body.inbox-light-preview .inbox-panels-collapse-button:hover {
    border-color: var(--ea-accent);
    background: var(--ea-accent-soft);
    color: var(--ea-ink);
}

body.inbox-light-preview .menu-scroll {
    overflow-x: hidden;
    overflow-y: auto;
    padding: 7px 0 10px;
}

body.inbox-light-preview .menu-group {
    position: relative;
}

body.inbox-light-preview .menu-link,
body.inbox-light-preview .submenu-link {
    position: relative;
    width: auto;
    margin: 2px 8px;
    border: 0;
    border-radius: 10px;
    background: transparent;
    color: var(--ea-ink-soft);
}

body.inbox-light-preview .menu-link {
    width: auto;
    min-height: 44px;
    margin: 2px 8px;
    justify-content: space-between;
    padding: 5px 9px;
    font-size: 13px;
    font-weight: 600;
}

body.inbox-light-preview .menu-link-main {
    width: auto;
    justify-content: flex-start;
    gap: 10px;
}

body.inbox-light-preview .menu-icon {
    width: 34px;
    height: 34px;
    border: 1px solid transparent;
    border-radius: 8px;
    color: #837f75;
    font-size: 15px;
    transition: color 160ms ease, background 160ms ease, border-color 160ms ease, transform 160ms ease;
}

body.inbox-light-preview .menu-link:hover,
body.inbox-light-preview .submenu-link:hover {
    background: rgba(255, 255, 255, 0.82);
    color: var(--ea-ink);
}

body.inbox-light-preview .menu-link:hover .menu-icon {
    color: var(--ea-ink);
    transform: translateY(-1px);
}

body.inbox-light-preview .menu-link.active,
body.inbox-light-preview .submenu-link.active {
    background: var(--ea-accent-soft);
    color: var(--ea-ink);
    font-weight: 750;
    border-radius: 0;
}

body.inbox-light-preview .menu-link.active::before,
body.inbox-light-preview .submenu-link.active::before {
    position: absolute;
    top: 0;
    bottom: 0;
    left: 0;
    width: 4px;
    border-radius: 0;
    background: var(--ea-accent-strong);
    content: "";
}

body.inbox-light-preview .menu-link.active .menu-icon {
    border-color: rgba(23, 21, 15, 0.08);
    background: var(--ea-accent);
    color: var(--ea-ink);
}

body.inbox-light-preview .submenu-link {
    width: auto;
    min-height: 34px;
    align-items: center;
    margin: 2px;
    padding: 8px 10px 8px 46px;
    border-radius: 8px;
    font-size: 12px;
    white-space: nowrap;
}

body.inbox-light-preview .menu-label {
    position: static !important;
    width: auto !important;
    height: auto !important;
    overflow: hidden !important;
    clip-path: none !important;
    color: inherit;
    text-overflow: ellipsis;
    white-space: nowrap !important;
}

body.inbox-light-preview .menu-link > .menu-arrow,
body.inbox-light-preview .menu-link > .flex .menu-arrow {
    display: flex;
}

body.inbox-light-preview .menu-link > .flex.items-center.gap-2 {
    position: static;
    gap: 7px;
}

body.inbox-light-preview .menu-group > .submenu {
    position: static;
    width: auto;
    overflow: hidden;
    margin: 2px 8px 6px;
    padding: 3px 0 5px;
    border: 0;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.42);
    box-shadow: none;
    backdrop-filter: none;
}

body.inbox-light-preview .menu-group > .submenu::before {
    display: none;
}

body.inbox-light-preview .menu-group > .submenu .menu-divider {
    margin: 6px 4px;
}

body.inbox-light-preview .menu-arrow,
body.inbox-light-preview .profile-action {
    color: var(--ea-muted);
}

body.inbox-light-preview .menu-divider {
    margin: 8px 13px;
    background: var(--ea-line);
}

body.inbox-light-preview .menu-footer {
    padding: 10px 10px 12px;
}

body.inbox-light-preview .profile-card {
    box-sizing: border-box;
    width: 100%;
    min-width: 0;
    overflow: hidden;
    min-height: 50px;
    justify-content: flex-start;
    padding: 8px 10px;
    border-color: var(--ea-line);
    background: rgba(255, 255, 255, 0.72);
    box-shadow: 0 6px 20px rgba(23, 21, 15, 0.035);
}

body.inbox-light-preview .profile-card:hover {
    background: var(--ea-surface);
}

body.inbox-light-preview .profile-avatar {
    background: var(--ea-accent-soft);
    color: var(--ea-ink);
}

body.inbox-light-preview .profile-avatar::after {
    border-color: var(--ea-surface);
    background: #65a34a;
}

body.inbox-light-preview .profile-name {
    display: flex;
    min-width: 0;
}

body.inbox-light-preview .profile-name-text {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

body.inbox-light-preview .menu-footer > .absolute {
    right: 12px !important;
    bottom: 100% !important;
    left: 12px !important;
    width: auto;
    margin-bottom: 8px !important;
}

body.inbox-light-preview .sidebar-reveal-button {
    border-color: var(--ea-accent-strong);
    background: var(--ea-accent);
    box-shadow: 0 10px 28px rgba(191, 127, 0, 0.23);
    color: var(--ea-ink);
}

body.inbox-light-preview .sidebar-reveal-button:hover {
    background: #f0aa0f;
    box-shadow: 0 12px 34px rgba(191, 127, 0, 0.3);
}

/* ---------- Inbox list ---------- */

body.inbox-light-preview .inbox-view {
    background: var(--ea-page);
    color: var(--ea-ink);
}

body.inbox-light-preview #inboxListPanel,
body.inbox-light-preview .inbox-list-panel {
    --inbox-list-gutter: 14px;
    border-color: var(--ea-line) !important;
    background: var(--ea-surface) !important;
    box-shadow: none !important;
}

body.inbox-light-preview #inboxListPanel,
body.inbox-light-preview #inboxListPanel * {
    box-sizing: border-box;
}

body.inbox-light-preview .inbox-list-header {
    gap: 8px;
    padding: 16px var(--inbox-list-gutter) 6px !important;
    border: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
    backdrop-filter: none;
}

body.inbox-light-preview .inbox-list-header h2 {
    color: var(--ea-ink) !important;
    font-size: 18px;
    font-weight: 750;
    letter-spacing: -0.03em;
}

body.inbox-light-preview .inbox-panels-collapse-button {
    border-color: var(--ea-line);
    background: var(--ea-surface);
    color: var(--ea-muted);
}

body.inbox-light-preview .inbox-list-tools {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 4px var(--inbox-list-gutter) 10px;
}

body.inbox-light-preview .inbox-list-search {
    position: relative;
}

body.inbox-light-preview .inbox-list-search i {
    position: absolute;
    top: 50%;
    left: 12px;
    color: var(--ea-muted);
    font-size: 11px;
    pointer-events: none;
    transform: translateY(-50%);
}

body.inbox-light-preview .inbox-list-search input {
    box-sizing: border-box;
    width: 100%;
    max-width: 100%;
    height: 36px;
    padding: 0 12px 0 32px;
    border: 1px solid var(--ea-line) !important;
    border-radius: 10px !important;
    background: #ffffff !important;
    box-shadow: 0 1px 2px rgba(23, 21, 15, 0.04);
    color: var(--ea-ink) !important;
    font-size: 12px;
    outline: none;
}

body.inbox-light-preview .inbox-list-search input::placeholder {
    color: #9a958b;
}

body.inbox-light-preview .inbox-list-search input:focus {
    border-color: var(--ea-accent-strong) !important;
    box-shadow: 0 0 0 3px rgba(255, 185, 28, 0.18) !important;
}

body.inbox-light-preview .inbox-list-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    min-height: 22px;
    padding: 2px 2px 0;
}

body.inbox-light-preview .inbox-list-meta-label {
    min-width: 0;
    color: var(--ea-ink-soft);
    font-size: 12px;
    font-weight: 650;
}

body.inbox-light-preview .inbox-list-mailbox {
    max-width: 58%;
    min-width: 0;
    padding: 0 16px 0 2px !important;
    border: 0 !important;
    border-radius: 0 !important;
    background-color: transparent !important;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6' viewBox='0 0 10 6'%3E%3Cpath fill='none' stroke='%236f6b61' stroke-width='1.4' stroke-linecap='round' stroke-linejoin='round' d='M1 1l4 4 4-4'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 2px center;
    box-shadow: none !important;
    color: var(--ea-muted) !important;
    font-size: 12px;
    font-weight: 650;
    text-align: right;
    cursor: pointer;
    appearance: none;
    -webkit-appearance: none;
}

body.inbox-light-preview .inbox-list-meta > .inbox-list-mailbox:only-child {
    max-width: none;
    width: 100%;
    text-align: left;
}

body.inbox-light-preview .inbox-view input,
body.inbox-light-preview .inbox-view select,
body.inbox-light-preview .inbox-view textarea,
body.inbox-light-preview .inbox-view [contenteditable="true"] {
    border-color: var(--ea-line) !important;
    border-radius: 9px;
    background-color: var(--ea-surface-raised) !important;
    color: var(--ea-ink) !important;
}

body.inbox-light-preview .inbox-view input:focus,
body.inbox-light-preview .inbox-view select:focus,
body.inbox-light-preview .inbox-view textarea:focus,
body.inbox-light-preview .inbox-view [contenteditable="true"]:focus {
    border-color: var(--ea-accent-strong) !important;
    box-shadow: 0 0 0 3px rgba(255, 185, 28, 0.18) !important;
}

body.inbox-light-preview #inboxListPanel .inbox-list-search input {
    background-color: #ffffff !important;
}

body.inbox-light-preview #inboxListPanel .inbox-list-mailbox {
    background-color: transparent !important;
}

body.inbox-light-preview .inbox-list-scroll {
    padding: 2px 0 14px;
}

body.inbox-light-preview .email-list-item {
    position: relative;
    overflow: hidden;
    margin: 0 var(--inbox-list-gutter);
    padding: 12px 12px 11px !important;
    border: 0 !important;
    border-bottom: 1px solid var(--ea-line) !important;
    border-radius: 0;
    background: transparent;
    cursor: pointer;
    transition: background 160ms ease;
}

body.inbox-light-preview .email-list-item:hover {
    background: rgba(255, 255, 255, 0.72) !important;
}

body.inbox-light-preview .email-list-item.active {
    border: 0 !important;
    border-bottom: 1px solid var(--ea-line) !important;
    background: var(--ea-accent-softer) !important;
    box-shadow: none;
}

body.inbox-light-preview .email-list-item.active::before {
    position: absolute;
    top: 0;
    bottom: 0;
    left: 0;
    width: 4px;
    background: var(--ea-accent-strong);
    content: "";
}

body.inbox-light-preview .email-list-item.unread {
    background: transparent !important;
    font-weight: 650;
}

body.inbox-light-preview .email-list-item.unread:hover {
    background: rgba(255, 255, 255, 0.72) !important;
}

body.inbox-light-preview .inbox-sent-corner-badge {
    border-top-right-radius: 0;
}

body.inbox-light-preview .email-list-item.unread.active,
body.inbox-light-preview .email-list-item.active:hover {
    background: var(--ea-accent-softer) !important;
}

body.inbox-light-preview .inbox-list-row-top {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 8px;
    margin-bottom: 3px;
}

body.inbox-light-preview .inbox-list-name {
    min-width: 0;
    overflow: hidden;
    color: var(--ea-ink);
    font-size: 13px;
    font-weight: 750;
    line-height: 1.3;
    text-overflow: ellipsis;
    white-space: nowrap;
}

body.inbox-light-preview .inbox-list-name.is-read {
    font-weight: 650;
}

body.inbox-light-preview .inbox-list-date {
    flex: 0 0 auto;
    color: var(--ea-muted);
    font-size: 11px;
    font-weight: 500;
    line-height: 1.3;
    white-space: nowrap;
}

body.inbox-light-preview .inbox-list-date.has-sent-badge {
    margin-right: 22px;
}

body.inbox-light-preview .inbox-list-subject,
body.inbox-light-preview .email-list-item .subject,
body.inbox-light-preview .email-list-item.unread .subject {
    overflow: hidden;
    margin-bottom: 2px;
    color: var(--ea-ink) !important;
    font-size: 13px;
    font-weight: 700;
    line-height: 1.35;
    text-overflow: ellipsis;
    white-space: nowrap;
}

body.inbox-light-preview .inbox-list-subject.is-read {
    font-weight: 600;
}

body.inbox-light-preview .inbox-list-preview {
    overflow: hidden;
    margin: 1px 0 6px;
    color: var(--ea-muted);
    font-size: 12px;
    font-weight: 500;
    line-height: 1.4;
    text-overflow: ellipsis;
    white-space: nowrap;
}

body.inbox-light-preview .inbox-list-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    align-items: center;
}

body.inbox-light-preview .inbox-list-tag {
    display: inline-flex;
    align-items: center;
    max-width: 100%;
    overflow: hidden;
    padding: 2px 8px;
    border-radius: 999px;
    font-size: 10px;
    font-weight: 700;
    line-height: 1.4;
    text-overflow: ellipsis;
    white-space: nowrap;
}

body.inbox-light-preview .inbox-list-tag-nick {
    background: var(--ea-accent-wash);
    color: #8a5a12;
}

body.inbox-light-preview .inbox-list-tag-price,
body.inbox-light-preview .inbox-list-tag-quote {
    background: var(--ea-accent-soft);
    color: #8a5a12;
}

body.inbox-light-preview .inbox-list-tag-country {
    background: var(--ea-info-soft);
    color: #315f92;
}

body.inbox-light-preview .inbox-list-tag-pay {
    background: var(--ea-success-soft);
    color: #456a31;
}

body.inbox-light-preview .inbox-list-tag-amount {
    background: var(--ea-coral-soft);
    color: #974034;
}

body.inbox-light-preview .inbox-list-tag-paodan {
    background: #fff3dd;
    color: #9a6a1a;
}

body.inbox-light-preview .inbox-list-remark {
    width: 100%;
    margin-top: 6px;
    padding: 6px 8px;
    border: 1px solid var(--ea-line);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.72);
    color: var(--ea-ink-soft);
    font-size: 11px;
    font-weight: 600;
    text-align: left;
}

body.inbox-light-preview .inbox-list-remark:hover {
    background: var(--ea-surface);
}

body.inbox-light-preview .email-list-item .bg-blue-500 {
    background-color: var(--ea-accent-strong) !important;
}

body.inbox-light-preview .email-list-item .bg-green-500 {
    background-color: var(--ea-success) !important;
}

/* ---------- Workspace and message detail ---------- */

body.inbox-light-preview .inbox-workspace {
    background-color: var(--ea-page-soft) !important;
    background-image:
        linear-gradient(rgba(23, 21, 15, 0.022) 1px, transparent 1px),
        linear-gradient(90deg, rgba(23, 21, 15, 0.022) 1px, transparent 1px) !important;
    background-size: 32px 32px !important;
}

body.inbox-light-preview .inbox-empty-state {
    align-items: center !important;
    padding-left: 0 !important;
    color: var(--ea-muted) !important;
    text-align: center;
}

body.inbox-light-preview .inbox-empty-state i {
    display: grid;
    width: 78px;
    height: 78px;
    margin-bottom: 18px;
    place-items: center;
    border: 1px solid var(--ea-accent);
    border-radius: 22px;
    background: linear-gradient(145deg, var(--ea-accent-wash), var(--ea-accent-soft));
    box-shadow: var(--ea-shadow-sm);
    color: var(--ea-accent-strong);
    font-size: 28px;
}

body.inbox-light-preview .inbox-empty-state p {
    color: var(--ea-ink-soft) !important;
    font-weight: 700;
}

body.inbox-light-preview .first-run-guide {
    width: min(560px, calc(100% - 48px));
    padding: 28px 28px 22px;
    border: 1px solid var(--ea-line);
    border-radius: 24px;
    background: var(--ea-surface);
    box-shadow: var(--ea-shadow-float);
    text-align: left;
    color: var(--ea-ink);
}

body.inbox-light-preview .first-run-kicker {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--ea-muted);
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

body.inbox-light-preview .first-run-guide h2 {
    margin: 10px 0 8px;
    color: var(--ea-ink);
    font-size: 28px;
    font-weight: 800;
    letter-spacing: -0.04em;
    line-height: 1.2;
}

body.inbox-light-preview .first-run-lead {
    margin: 0 0 18px;
    color: var(--ea-ink-soft) !important;
    font-size: 13px;
    font-weight: 500 !important;
    line-height: 1.7;
}

body.inbox-light-preview .first-run-steps {
    display: grid;
    gap: 8px;
    margin: 0;
    padding: 0;
    list-style: none;
}

body.inbox-light-preview .first-run-steps button {
    display: grid;
    width: 100%;
    grid-template-columns: 36px 1fr;
    gap: 12px;
    align-items: center;
    padding: 12px 14px;
    border: 1px solid var(--ea-line);
    border-radius: 16px;
    background: var(--ea-page);
    text-align: left;
    cursor: pointer;
}

body.inbox-light-preview .first-run-steps button:hover {
    border-color: var(--ea-line-strong);
    background: var(--ea-accent-wash);
}

body.inbox-light-preview .first-run-steps li.done button {
    border-color: #d7e8c8;
    background: var(--ea-success-soft);
}

body.inbox-light-preview .first-run-index {
    display: grid;
    width: 36px;
    height: 36px;
    place-items: center;
    border-radius: 12px;
    background: var(--ea-accent-soft);
    color: var(--ea-accent-ink);
    font-size: 13px;
    font-weight: 800;
}

body.inbox-light-preview .first-run-steps li.done .first-run-index {
    background: var(--ea-success);
    color: #fff;
}

body.inbox-light-preview .first-run-copy {
    display: grid;
    gap: 2px;
    min-width: 0;
}

body.inbox-light-preview .first-run-copy b {
    color: var(--ea-ink);
    font-size: 14px;
    font-weight: 750;
}

body.inbox-light-preview .first-run-copy small {
    color: var(--ea-muted);
    font-size: 12px;
    line-height: 1.45;
}

body.inbox-light-preview .first-run-actions {
    display: flex;
    justify-content: flex-end;
    gap: 8px;
    margin-top: 16px;
}

body.inbox-light-preview .first-run-skip {
    padding: 8px 12px;
    border: 0;
    background: transparent;
    color: var(--ea-muted);
    font-size: 12px;
    font-weight: 700;
    cursor: pointer;
}

body.inbox-light-preview .first-run-skip:hover {
    color: var(--ea-ink);
}

@media (max-width: 720px) {
    body.inbox-light-preview .first-run-guide {
        width: min(100% - 24px, 560px);
        padding: 22px 18px 16px;
        border-radius: 20px;
    }

    body.inbox-light-preview .first-run-guide h2 {
        font-size: 22px;
    }
}

body.inbox-light-preview .email-detail-shell {
    background: var(--ea-surface);
}

body.inbox-light-preview .email-detail-header {
    min-height: 0;
    border-color: var(--ea-line) !important;
    background: transparent !important;
    box-shadow: none;
    backdrop-filter: none;
}

body.inbox-light-preview .email-detail-header h1 {
    color: var(--ea-ink) !important;
    font-weight: 800;
    letter-spacing: -0.025em;
}

body.inbox-light-preview .original-email-stack {
    --original-email-gap: 12px;
    display: flex;
    flex: 1;
    flex-direction: column;
    gap: var(--original-email-gap);
    min-height: 0;
    padding: 16px 24px;
}

body.inbox-light-preview .original-email-title-row {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
}

body.inbox-light-preview .original-email-module {
    display: flex;
    flex-direction: column;
    gap: var(--original-email-gap, 12px);
}

body.inbox-light-preview .original-email-title {
    margin: 0;
    padding: 2px 2px 0;
    color: var(--ea-ink);
    font-size: 20px;
    font-weight: 750;
    letter-spacing: -0.03em;
    line-height: 1.3;
}

body.inbox-light-preview .original-email-card {
    display: flex;
    flex-direction: column;
    min-height: 0;
    overflow: hidden;
    border: 1px solid var(--ea-line);
    border-radius: 16px;
    background: #ffffff;
    box-shadow: 0 8px 24px rgba(23, 21, 15, 0.04);
}

body.inbox-light-preview .original-email-meta-card {
    flex: 0 0 auto;
    padding: 12px 16px;
}

body.inbox-light-preview .original-email-meta-main {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    min-width: 0;
}

body.inbox-light-preview .original-email-name-line,
body.inbox-light-preview .original-email-sub-line {
    display: flex;
    align-items: center;
    gap: 8px;
    min-width: 0;
    flex-wrap: wrap;
}

body.inbox-light-preview .original-email-name-line {
    line-height: 1.3;
}

body.inbox-light-preview .original-email-sub-line {
    margin-top: 4px;
}

body.inbox-light-preview .original-email-gmail-head {
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 0;
}

body.inbox-light-preview .original-email-gmail-head.is-collapsible {
    cursor: pointer;
}

body.inbox-light-preview .original-email-gmail-head-copy {
    display: flex;
    align-items: baseline;
    gap: 8px;
    min-width: 0;
    flex: 1 1 auto;
    flex-wrap: wrap;
}

body.inbox-light-preview .original-email-gmail-avatar {
    width: 32px;
    height: 32px;
    flex-basis: 32px;
}

body.inbox-light-preview .original-email-content-card {
    flex: 1 1 auto;
    min-height: 0;
}

body.inbox-light-preview .original-email-ai {
    min-width: 0;
}

body.inbox-light-preview .original-email-remark {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    width: 100%;
    padding: 8px 10px;
    border: 1px solid var(--ea-line);
    border-radius: 10px;
    background: var(--ea-page);
    color: var(--ea-ink-soft);
    font-size: 12px;
    font-weight: 600;
    text-align: left;
}

body.inbox-light-preview .original-email-remark:hover {
    background: var(--ea-accent-wash);
}

body.inbox-light-preview .original-email-remark-label {
    flex: 0 0 auto;
    color: var(--ea-muted);
}

body.inbox-light-preview .original-email-remark-text {
    min-width: 0;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

body.inbox-light-preview .original-email-meta-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    align-items: center;
}

body.inbox-light-preview .original-email-content-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 8px;
}

body.inbox-light-preview .original-email-content-head.is-collapsible {
    cursor: pointer;
}

body.inbox-light-preview .original-email-content-head-main {
    display: flex;
    align-items: center;
    gap: 8px;
    min-width: 0;
}

body.inbox-light-preview .original-email-content-author {
    color: var(--ea-ink);
    font-size: 13px;
    font-weight: 700;
}

body.inbox-light-preview .original-email-content-toolbar {
    display: flex;
    justify-content: flex-end;
    margin: -4px -4px 4px 0;
}

body.inbox-light-preview .original-email-thread {
    flex: 1;
    min-height: 0;
    padding: 16px 18px 20px;
    overflow: auto;
    color: var(--ea-ink);
    font-size: 14px;
    text-align: left;
}

body.inbox-light-preview .original-email-thread-list {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

body.inbox-light-preview .original-email-message {
    min-width: 0;
}

body.inbox-light-preview .original-email-message:not(.is-last) {
    padding-bottom: 18px;
    border-bottom: 1px solid var(--ea-line);
}

body.inbox-light-preview .original-email-message-meta {
    display: flex;
    align-items: flex-start;
    gap: 12px;
}

body.inbox-light-preview .original-email-message-meta.is-collapsible {
    cursor: pointer;
    border-radius: 10px;
}

body.inbox-light-preview .original-email-avatar {
    width: 40px;
    height: 40px;
    flex: 0 0 40px;
    overflow: hidden;
    border-radius: 999px;
    object-fit: cover;
    background: var(--ea-accent-soft);
}

body.inbox-light-preview .original-email-avatar-fallback {
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    font-weight: 800;
    line-height: 1;
}

body.inbox-light-preview .original-email-identity {
    min-width: 0;
    flex: 1;
}

body.inbox-light-preview .original-email-name {
    display: flex;
    align-items: center;
    gap: 6px;
    color: var(--ea-ink);
    font-size: 14px;
    font-weight: 750;
    line-height: 1.3;
}

body.inbox-light-preview .original-email-collapse-icon {
    color: var(--ea-muted);
    font-size: 10px;
}

body.inbox-light-preview .original-email-address,
body.inbox-light-preview .original-email-time {
    color: var(--ea-muted);
    font-size: 12px;
    font-weight: 500;
    line-height: 1.4;
}

body.inbox-light-preview .original-email-address {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

body.inbox-light-preview .original-email-time {
    flex: 0 0 auto;
    padding-top: 2px;
    white-space: nowrap;
}

body.inbox-light-preview .original-email-preview {
    flex: 0 1 auto;
    max-width: 50%;
    overflow: hidden;
    margin-top: 2px;
    color: var(--ea-ink-soft);
    font-size: 12px;
    text-overflow: ellipsis;
    white-space: nowrap;
}

body.inbox-light-preview .original-email-message-body {
    padding: 10px 2px 4px;
}

body.inbox-light-preview .original-email-copy {
    color: var(--ea-ink);
    font-size: 14px;
    line-height: 1.7;
    word-break: break-word;
}

body.inbox-light-preview .original-email-translation-banner {
    margin-bottom: 12px;
    padding: 12px 14px;
    border: 1px solid #ead7a6;
    border-radius: 14px;
    background: var(--ea-accent-wash);
}

body.inbox-light-preview .original-email-hidden-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    padding: 8px 12px;
    border: 1px dashed var(--ea-line-strong);
    border-radius: 10px;
    background: var(--ea-page);
    color: var(--ea-ink-soft);
    font-size: 13px;
}

body.inbox-light-preview .original-email-hidden-toggle:hover {
    background: var(--ea-accent-wash);
}

body.inbox-light-preview .original-email-empty {
    color: var(--ea-muted);
}

body.inbox-light-preview .email-reading-pane {
    border-color: var(--ea-line) !important;
    background: var(--ea-page-soft) !important;
}

body.inbox-light-preview .email-writing-pane {
    container-name: reply-pane;
    container-type: inline-size;
    background: var(--ea-surface) !important;
}

body.inbox-light-preview .reply-editor-card {
    border-color: var(--ea-line) !important;
    background: var(--ea-surface) !important;
    box-shadow: none;
}

body.inbox-light-preview .reply-column-header > label {
    flex: 0 0 auto;
    margin-right: 8px;
    color: var(--ea-muted) !important;
    white-space: nowrap;
}

body.inbox-light-preview .reply-format-toolbar,
body.inbox-light-preview .reply-translation-actions {
    flex: 0 1 auto;
    min-width: 0;
}

@container reply-pane (max-width: 680px) {
    body.inbox-light-preview .reply-bilingual-grid {
        flex-direction: column;
        gap: 12px;
        overflow-y: auto;
    }

    body.inbox-light-preview .reply-draft-column,
    body.inbox-light-preview .reply-translation-column {
        min-height: 172px;
        height: auto !important;
        flex: 1 0 172px;
    }

    body.inbox-light-preview .reply-column-header {
        min-height: 32px;
    }

    body.inbox-light-preview .reply-format-toolbar,
    body.inbox-light-preview .reply-translation-actions {
        flex-wrap: wrap;
        justify-content: flex-end;
    }
}

@container reply-pane (max-width: 470px) {
    body.inbox-light-preview .reply-action-area {
        padding: 12px !important;
    }

    body.inbox-light-preview .reply-main-actions {
        flex-direction: column;
        align-items: stretch;
        gap: 8px;
    }

    body.inbox-light-preview .reply-stage-actions,
    body.inbox-light-preview .reply-send-actions {
        width: 100%;
    }

    body.inbox-light-preview .reply-stage-actions > button {
        min-width: 0;
        flex: 1 1 0;
        justify-content: center;
        padding-right: 10px !important;
        padding-left: 10px !important;
        white-space: nowrap;
    }

    body.inbox-light-preview .reply-send-actions > button {
        width: 100%;
        justify-content: center;
        white-space: nowrap;
    }
}

body.inbox-light-preview .ai-analysis-card {
    border-color: var(--ea-accent) !important;
    background: var(--ea-accent-wash) !important;
    box-shadow: 0 12px 30px rgba(191, 127, 0, 0.075);
}

body.inbox-light-preview .ai-analysis-card .text-\[\#5c4636\] {
    color: var(--ea-ink) !important;
}

body.inbox-light-preview .reply-action-area {
    border-color: var(--ea-line) !important;
    background: rgba(255, 255, 255, 0.97) !important;
    box-shadow: 0 -10px 30px rgba(23, 21, 15, 0.035);
}

body.inbox-light-preview .chip-info {
    border-color: var(--ea-line);
    border-radius: 7px;
    background: var(--ea-surface-sunken);
    color: var(--ea-ink-soft);
}

body.inbox-light-preview .btn-ghost {
    border-color: var(--ea-line);
    border-radius: 8px;
    background: var(--ea-surface);
    color: var(--ea-ink-soft);
}

body.inbox-light-preview .btn-ghost:hover:not(:disabled) {
    border-color: #dfc467;
    background: var(--ea-accent-wash);
    color: var(--ea-ink);
}

body.inbox-light-preview .btn-ghost.danger {
    border-color: #ecc8c1;
    color: var(--ea-danger);
}

body.inbox-light-preview .btn-ghost.danger:hover:not(:disabled) {
    background: var(--ea-danger-soft);
}

/* Primary actions: one brand color, independent of their legacy utility name. */
body.inbox-light-preview .inbox-view button[class~="bg-blue-600"],
body.inbox-light-preview .inbox-view button[class~="bg-purple-600"],
body.inbox-light-preview .inbox-view button[class~="bg-indigo-600"],
body.inbox-light-preview .inbox-view button[class~="bg-[#4f6b1e]"] {
    border-color: var(--ea-accent-strong) !important;
    background: var(--ea-accent) !important;
    box-shadow: 0 7px 18px rgba(191, 127, 0, 0.16);
    color: var(--ea-ink) !important;
}

body.inbox-light-preview .inbox-view button[class~="bg-blue-600"]:hover,
body.inbox-light-preview .inbox-view button[class~="bg-purple-600"]:hover,
body.inbox-light-preview .inbox-view button[class~="bg-indigo-600"]:hover,
body.inbox-light-preview .inbox-view button[class~="bg-[#4f6b1e]"]:hover {
    background: var(--ea-accent-strong) !important;
}

body.inbox-light-preview .inbox-view .peer:checked ~ [class*="peer-checked:bg-blue-600"] {
    background: var(--ea-accent) !important;
}

/* Neutral Tailwind utilities, scoped to the inbox so embedded tools stay untouched. */
body.inbox-light-preview .inbox-view .text-gray-900,
body.inbox-light-preview .inbox-view .text-gray-800 {
    color: var(--ea-ink) !important;
}

body.inbox-light-preview .inbox-view .text-gray-700,
body.inbox-light-preview .inbox-view .text-gray-600 {
    color: var(--ea-ink-soft) !important;
}

body.inbox-light-preview .inbox-view .text-gray-500,
body.inbox-light-preview .inbox-view .text-gray-400 {
    color: var(--ea-muted) !important;
}

body.inbox-light-preview .inbox-view .text-gray-300 {
    color: #817d72 !important;
}

body.inbox-light-preview .inbox-view .text-gray-200 {
    color: #aaa69b !important;
}

body.inbox-light-preview .inbox-view .bg-white {
    background-color: var(--ea-surface) !important;
}

body.inbox-light-preview .inbox-view .bg-gray-50 {
    background-color: var(--ea-page-soft) !important;
}

body.inbox-light-preview .inbox-view .bg-gray-100 {
    background-color: var(--ea-surface-sunken) !important;
}

body.inbox-light-preview .inbox-view .bg-gray-200,
body.inbox-light-preview .inbox-view .bg-gray-300 {
    background-color: #dfdbd1 !important;
}

body.inbox-light-preview .inbox-view .border-gray-50,
body.inbox-light-preview .inbox-view .border-gray-100,
body.inbox-light-preview .inbox-view .border-gray-200,
body.inbox-light-preview .inbox-view .border-gray-300,
body.inbox-light-preview .inbox-view .border-b,
body.inbox-light-preview .inbox-view .border-r,
body.inbox-light-preview .inbox-view .border-t {
    border-color: var(--ea-line) !important;
}

body.inbox-light-preview .inbox-view .text-blue-400,
body.inbox-light-preview .inbox-view .text-blue-500,
body.inbox-light-preview .inbox-view .text-blue-600,
body.inbox-light-preview .inbox-view .text-blue-700 {
    color: var(--ea-info) !important;
}

body.inbox-light-preview .inbox-view .bg-blue-50,
body.inbox-light-preview .inbox-view .bg-blue-100 {
    background-color: var(--ea-info-soft) !important;
}

body.inbox-light-preview .inbox-view .border-blue-100,
body.inbox-light-preview .inbox-view .border-blue-200 {
    border-color: #c8dcef !important;
}

body.inbox-light-preview .inbox-view .text-green-500,
body.inbox-light-preview .inbox-view .text-green-600,
body.inbox-light-preview .inbox-view .text-green-700 {
    color: var(--ea-success) !important;
}

body.inbox-light-preview .inbox-view .bg-green-50,
body.inbox-light-preview .inbox-view .bg-green-100 {
    background-color: var(--ea-success-soft) !important;
}

body.inbox-light-preview .inbox-view .text-red-500,
body.inbox-light-preview .inbox-view .text-red-600,
body.inbox-light-preview .inbox-view .text-red-700 {
    color: var(--ea-danger) !important;
}

body.inbox-light-preview .inbox-view .bg-red-50,
body.inbox-light-preview .inbox-view .bg-red-100 {
    background-color: var(--ea-danger-soft) !important;
}

/* ---------- Intent language ---------- */

body.inbox-light-preview .intent-badge,
body.inbox-light-preview [class*="intent-"] {
    border: 1px solid transparent;
    font-weight: 700;
}

body.inbox-light-preview .intent-express_interest,
body.inbox-light-preview .intent-collaboration_intro {
    border-color: #ecd47d;
    background: var(--ea-accent-soft);
    color: #6b4800;
}

body.inbox-light-preview .intent-request_info,
body.inbox-light-preview .intent-provide_materials,
body.inbox-light-preview .intent-request_schedule,
body.inbox-light-preview .intent-ask_for_details,
body.inbox-light-preview .intent-ask_about_availability {
    border-color: #c8dcef;
    background: var(--ea-info-soft);
    color: #315f92;
}

body.inbox-light-preview .intent-request_budget,
body.inbox-light-preview .intent-ask_for_pricing,
body.inbox-light-preview .intent-quote_price,
body.inbox-light-preview .intent-counter_offer,
body.inbox-light-preview .intent-price_negotiation {
    border-color: #edc9c1;
    background: var(--ea-coral-soft);
    color: #974034;
}

body.inbox-light-preview .intent-accept_terms,
body.inbox-light-preview .intent-confirm_logistics,
body.inbox-light-preview .intent-confirm_collaboration_details {
    border-color: #cddfbd;
    background: var(--ea-success-soft);
    color: #456a31;
}

body.inbox-light-preview .intent-decline,
body.inbox-light-preview .intent-unavailable,
body.inbox-light-preview .intent-noise,
body.inbox-light-preview .intent-unknown,
body.inbox-light-preview .intent-kol_declines_collaboration,
body.inbox-light-preview .intent-kol_is_fully_booked {
    border-color: var(--ea-line);
    background: var(--ea-surface-sunken);
    color: var(--ea-ink-soft);
}

/* ---------- Floating surfaces ---------- */

body.inbox-light-preview #app .shadow-lg,
body.inbox-light-preview #app .shadow-xl,
body.inbox-light-preview #app .shadow-2xl {
    box-shadow: var(--ea-shadow-float) !important;
}

body.inbox-light-preview #app .fixed.inset-0 > .bg-white,
body.inbox-light-preview #app .absolute > .bg-white.shadow-lg,
body.inbox-light-preview #app .absolute > .bg-white.shadow-2xl {
    border: 1px solid var(--ea-line);
}

html[data-color-theme="blue"] body.inbox-light-preview {
    --ea-page: #e6f0f6;
    --ea-page-soft: #d7e6f0;
    --ea-surface: #ffffff;
    --ea-surface-raised: #f5fafc;
    --ea-surface-sunken: #d4e2ec;
    --ea-ink: #163042;
    --ea-ink-soft: #4d6778;
    --ea-muted: #6b8494;
    --ea-line: #c5d5e2;
    --ea-line-strong: #adc2d2;
    --ea-accent: #4aa3c7;
    --ea-accent-strong: #2e86ab;
    --ea-accent-soft: #cfe8f3;
    --ea-accent-softer: #e3f2f8;
    --ea-accent-wash: #eef6fb;
    --ea-success: #2d8a6a;
    --ea-success-soft: #e0f3ea;
    --ea-info: #2b6b94;
    --ea-info-soft: #e3f1f8;
    --ea-coral: #b94b3d;
    --ea-coral-soft: #fff0ec;
    --ea-danger: #a63f34;
    --ea-danger-soft: #fff0ec;
    --ea-shadow-sm: 0 8px 26px rgba(22, 48, 66, 0.06);
    --ea-shadow-float: 0 18px 50px rgba(22, 48, 66, 0.12);
}

html[data-color-theme="blue"] body.inbox-light-preview button:focus-visible,
html[data-color-theme="blue"] body.inbox-light-preview a:focus-visible,
html[data-color-theme="blue"] body.inbox-light-preview input:focus-visible,
html[data-color-theme="blue"] body.inbox-light-preview select:focus-visible,
html[data-color-theme="blue"] body.inbox-light-preview textarea:focus-visible,
html[data-color-theme="blue"] body.inbox-light-preview [contenteditable="true"]:focus-visible,
html[data-color-theme="blue"] body.inbox-light-preview [tabindex="0"]:focus-visible {
    outline: 3px solid rgba(74, 163, 199, 0.34) !important;
}

html[data-color-theme="blue"] body.inbox-light-preview .inbox-empty-state i {
    border-color: #9ec9de;
    background: linear-gradient(145deg, #eef6fb, var(--ea-accent-soft));
}

html[data-color-theme="blue"] body.inbox-light-preview .sidebar-reveal-button {
    box-shadow: 0 10px 28px rgba(46, 134, 171, 0.23);
}

html[data-color-theme="blue"] body.inbox-light-preview .ai-analysis-card {
    box-shadow: 0 12px 30px rgba(46, 134, 171, 0.075);
}

html[data-color-theme="blue"] body.inbox-light-preview .inbox-view button[class~="bg-blue-600"],
html[data-color-theme="blue"] body.inbox-light-preview .inbox-view button[class~="bg-purple-600"],
html[data-color-theme="blue"] body.inbox-light-preview .inbox-view button[class~="bg-indigo-600"],
html[data-color-theme="blue"] body.inbox-light-preview .inbox-view button[class~="bg-[#4f6b1e]"] {
    box-shadow: 0 7px 18px rgba(46, 134, 171, 0.16);
}

@media (prefers-reduced-motion: reduce) {
    .inbox-boot-screen *,
    body.inbox-light-preview .email-list-item,
    body.inbox-light-preview .menu-icon {
        animation: none !important;
        transition: none !important;
    }
}
