@import url('https://fonts.googleapis.com/css2?family=Bodoni+Moda:wght@500;600;700&family=Jost:wght@300;400;500;600;700&display=swap');

:root {
    color-scheme: dark;
    --bg: #070606;
    --bg-soft: #0c0b0b;
    --panel: rgba(15, 13, 13, 0.9);
    --panel-elevated: rgba(20, 18, 18, 0.96);
    --panel-glow: rgba(212, 160, 23, 0.14);
    --border: rgba(255, 255, 255, 0.08);
    --border-strong: rgba(212, 160, 23, 0.42);
    --accent: #d4a017;
    --accent-2: #f1c85f;
    --accent-soft: rgba(212, 160, 23, 0.14);
    --text: #eef0f6;
    --text-soft: #b8bed0;
    --text-dim: #8b93aa;
    --danger: #fb7185;
    --success: #4ade80;
    --shadow: 0 22px 48px rgba(0, 0, 0, 0.45);
}

* {
    box-sizing: border-box;
}

html,
body {
    margin: 0;
    min-height: 100%;
    background:
        radial-gradient(circle at 12% 12%, rgba(212, 160, 23, 0.16), transparent 42%),
        radial-gradient(circle at 92% 24%, rgba(212, 160, 23, 0.09), transparent 46%),
        linear-gradient(180deg, #050404 0%, #070606 55%, #050404 100%);
    color: var(--text);
    font-family: Jost, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    text-rendering: geometricPrecision;
}

body {
    min-height: 100vh;
}

h1,
h2,
h3 {
    font-family: "Bodoni Moda", Georgia, "Times New Roman", serif;
    letter-spacing: -0.02em;
}

button,
input,
textarea {
    font: inherit;
}

button {
    cursor: pointer;
    border: none;
}

input,
textarea {
    outline: none;
}

.hidden {
    display: none !important;
}

.wm-splash {
    position: fixed;
    inset: 0;
    z-index: 120;
    display: grid;
    place-items: center;
    background: radial-gradient(circle at 20% 18%, rgba(212, 160, 23, 0.18) 0%, rgba(0, 0, 0, 0.96) 55%, rgba(0, 0, 0, 0.99) 100%);
    backdrop-filter: blur(14px);
}

.wm-splash-card {
    width: min(520px, 92vw);
    border-radius: 26px;
    border: 1px solid rgba(255, 255, 255, 0.09);
    background: rgba(8, 8, 8, 0.72);
    box-shadow: 0 40px 80px rgba(0, 0, 0, 0.6);
    padding: 26px;
    display: grid;
    grid-template-columns: 88px minmax(0, 1fr);
    gap: 18px;
    align-items: center;
}

.wm-splash-logo {
    width: 88px;
    height: 88px;
    border-radius: 26px;
    border: 1px solid rgba(212, 160, 23, 0.25);
    background: rgba(212, 160, 23, 0.08);
    display: grid;
    place-items: center;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.wm-splash-logo img {
    width: 54px;
    height: 54px;
    object-fit: contain;
    filter: drop-shadow(0 18px 24px rgba(0, 0, 0, 0.6));
}

.wm-splash-copy h2 {
    margin: 6px 0 4px;
}

.wm-splash[aria-hidden="false"] .wm-splash-card {
    animation: wm-splash-pop 320ms ease both;
}

@keyframes wm-splash-pop {
    from { transform: translateY(10px) scale(0.98); opacity: 0; }
    to { transform: translateY(0) scale(1); opacity: 1; }
}

.wm-page {
    padding: 28px;
    max-width: 1400px;
    margin: 0 auto;
}

.wm-topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 0 4px 24px;
}

.wm-brand-button {
    display: inline-flex;
    align-items: center;
    gap: 14px;
    background: transparent;
    color: var(--text);
    padding: 0;
}

.wm-brand-mark {
    width: 48px;
    height: 48px;
    border-radius: 16px;
    display: grid;
    place-items: center;
    background: linear-gradient(135deg, rgba(212, 160, 23, 0.26), rgba(0, 0, 0, 0));
    border: 1px solid rgba(212, 160, 23, 0.28);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05);
    overflow: hidden;
}

.wm-brand-logo {
    width: 34px;
    height: 34px;
    object-fit: contain;
    filter: drop-shadow(0 10px 14px rgba(0, 0, 0, 0.55));
}

.wm-brand-copy {
    display: grid;
    text-align: left;
}

.wm-brand-title {
    font-size: 1.2rem;
    font-weight: 700;
    font-family: "Bodoni Moda", Georgia, "Times New Roman", serif;
    letter-spacing: -0.02em;
}

.wm-overline,
.wm-card-kicker,
.wm-reader-label {
    text-transform: uppercase;
    letter-spacing: 0.14em;
    font-size: 0.72rem;
    color: var(--accent);
}

.wm-topbar-actions,
.wm-hero-actions,
.wm-inline-actions,
.wm-detail-tabs,
.wm-tabs,
.wm-auth-mode-switch {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.wm-session-chip,
.wm-meta-pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-height: 42px;
    padding: 0 16px;
    border-radius: 999px;
    border: 1px solid var(--border);
    background: rgba(255, 255, 255, 0.03);
    color: var(--text-soft);
}

.wm-button,
.wm-tab-button,
.wm-nav-button,
.wm-compose-cta,
.wm-tab {
    min-height: 46px;
    border-radius: 16px;
    padding: 0 18px;
    transition: 180ms ease;
}

.wm-button:disabled,
.wm-tab-button:disabled,
.wm-nav-button:disabled,
.wm-compose-cta:disabled,
.wm-tab:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none !important;
}

.wm-button:hover,
.wm-tab-button:hover,
.wm-nav-button:hover,
.wm-compose-cta:hover,
.wm-tab:hover,
.wm-mail-card:hover,
.wm-brand-button:hover {
    transform: translateY(-1px);
}

.wm-button-primary,
.wm-compose-cta,
.wm-tab-button.active,
.wm-nav-button.active {
    background: linear-gradient(135deg, var(--accent) 0%, var(--accent-2) 100%);
    color: #140c02;
    font-weight: 700;
    box-shadow: 0 18px 28px rgba(212, 160, 23, 0.22);
}

.wm-tabs {
    justify-content: space-between;
    padding: 10px;
    border-radius: 22px;
    border: 1px solid rgba(255, 255, 255, 0.07);
    background: rgba(0, 0, 0, 0.25);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.wm-tab {
    flex: 1;
    min-height: 44px;
    padding: 0 14px;
    border-radius: 16px;
    border: 1px solid transparent;
    background: transparent;
    color: var(--text-soft);
    font-weight: 600;
}

.wm-tab.active {
    border-color: rgba(212, 160, 23, 0.28);
    background: linear-gradient(135deg, rgba(212, 160, 23, 0.22), rgba(212, 160, 23, 0.1));
    color: var(--text);
    box-shadow: 0 18px 28px rgba(212, 160, 23, 0.12);
}

.wm-sidebar-links {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin: 10px 0 14px;
}

.wm-link {
    color: var(--accent);
    text-decoration: none;
    font-weight: 600;
    padding: 8px 12px;
    border-radius: 999px;
    border: 1px solid rgba(212, 160, 23, 0.22);
    background: rgba(212, 160, 23, 0.06);
}

.wm-link:hover {
    background: rgba(212, 160, 23, 0.12);
    border-color: rgba(212, 160, 23, 0.34);
}

.wm-button-secondary {
    background: rgba(255, 255, 255, 0.04);
    color: var(--text);
    border: 1px solid var(--border);
}

.wm-button-ghost,
.wm-tab-button,
.wm-nav-button {
    background: rgba(255, 255, 255, 0.025);
    color: var(--text-soft);
    border: 1px solid rgba(255, 255, 255, 0.06);
}

.wm-main {
    display: grid;
    gap: 26px;
}

.wm-landing {
    display: grid;
    gap: 20px;
    place-items: center;
    padding: 52px 0 40px;
}

.wm-landing-hero,
.wm-auth-shell,
.wm-sidebar-card,
.wm-list-column,
.wm-detail-panel {
    border-radius: 28px;
    border: 1px solid var(--border);
    background: linear-gradient(180deg, var(--panel-elevated), var(--panel));
    box-shadow: var(--shadow);
}

.wm-auth-shell,
.wm-sidebar-card {
    position: relative;
    overflow: hidden;
}

.wm-auth-shell::before {
    content: "";
    position: absolute;
    width: 280px;
    height: 280px;
    right: -120px;
    top: -120px;
    background: url("/world-of-tools-logo.png") center / contain no-repeat;
    opacity: 0.07;
    transform: rotate(10deg);
    pointer-events: none;
}

.wm-sidebar-logo {
    position: absolute;
    top: 16px;
    right: 16px;
    width: 46px;
    height: 46px;
    object-fit: contain;
    opacity: 0.16;
    filter: drop-shadow(0 18px 22px rgba(0, 0, 0, 0.5));
    pointer-events: none;
}

.wm-landing-hero {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
    padding: 38px;
}

.wm-hero-copy h1 {
    margin: 10px 0 18px;
    font-size: clamp(2.5rem, 5vw, 4.6rem);
    line-height: 0.98;
    max-width: 800px;
}

.wm-hero-text,
.wm-sidebar-copy,
.wm-highlight-card p,
.wm-field-help,
.wm-list-status,
.wm-account-card span,
.wm-mail-preview,
.wm-reader-body p,
.wm-reader-body li {
    color: var(--text-soft);
    line-height: 1.7;
}

.wm-hero-stats {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
    margin-top: 24px;
}

.wm-stat-card,
.wm-highlight-card,
.wm-account-card {
    padding: 18px;
    border-radius: 22px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.03), rgba(255, 255, 255, 0.015)),
        radial-gradient(circle at top right, var(--panel-glow), transparent 42%);
}

.wm-stat-card strong,
.wm-highlight-card h2,
.wm-account-card strong,
.wm-sidebar-title {
    display: block;
    margin-bottom: 8px;
    color: var(--text);
}

.wm-hero-visual {
    display: grid;
    gap: 18px;
    align-content: start;
}

.wm-serpent-frame {
    min-height: 260px;
    padding: 24px;
    border-radius: 28px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background:
        radial-gradient(circle at top right, var(--panel-glow), transparent 22%),
        linear-gradient(180deg, rgba(255, 255, 255, 0.02), rgba(255, 255, 255, 0.01));
    position: relative;
    overflow: hidden;
}

.wm-serpent-frame::before,
.wm-serpent-frame::after,
.wm-serpent-core::before,
.wm-serpent-core::after {
    content: "";
    position: absolute;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.wm-serpent-frame::before {
    inset: 26px 42px 34px 52px;
    transform: rotate(-12deg);
}

.wm-serpent-frame::after {
    inset: 78px 84px 90px 104px;
    transform: rotate(22deg);
}

.wm-serpent-core {
    position: absolute;
    inset: 18px;
}

.wm-serpent-core::before {
    inset: 40px 132px 56px 62px;
    transform: rotate(12deg);
}

.wm-serpent-core::after {
    width: 18px;
    height: 18px;
    top: 58px;
    right: 112px;
    background: var(--accent);
    border-color: rgba(241, 200, 95, 0.85);
    box-shadow: 0 0 28px rgba(212, 160, 23, 0.45);
}

.wm-hero-panels {
    display: grid;
    gap: 16px;
}

.wm-highlight-card h2 {
    font-size: 1.28rem;
    line-height: 1.25;
}

.wm-check-list {
    margin: 0;
    padding-left: 20px;
    color: var(--text-soft);
    line-height: 1.8;
}

.wm-auth-shell {
    display: grid;
    width: 100%;
    max-width: 520px;
    grid-template-columns: 1fr;
    gap: 18px;
    padding: 26px;
}

.wm-auth-intro h2,
.wm-panel-head h2 {
    margin: 8px 0 10px;
    font-size: clamp(1.5rem, 2.6vw, 2.2rem);
}

.wm-auth-form,
.wm-step-block,
.wm-login-flow,
.wm-detail-panel,
.wm-account-grid {
    display: grid;
    gap: 16px;
}

.wm-steps {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.wm-steps span {
    padding: 8px 14px;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.07);
    color: var(--text-dim);
}

.wm-steps span.active {
    border-color: var(--border-strong);
    color: var(--accent);
    background: var(--accent-soft);
}

.wm-field {
    display: grid;
    gap: 8px;
}

.wm-field span {
    color: var(--text-soft);
}

.wm-field input,
.wm-field textarea,
.wm-search-shell input {
    width: 100%;
    min-height: 52px;
    padding: 14px 16px;
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.06);
    background: #0f0f0f;
    color: var(--text);
}

.wm-field textarea {
    min-height: 260px;
    resize: vertical;
}

.wm-field input:focus,
.wm-field textarea:focus {
    border-color: var(--border-strong);
    box-shadow: 0 0 0 4px var(--accent-soft);
}

.wm-password-row {
    display: flex;
    gap: 8px;
    align-items: stretch;
}

.wm-password-row input {
    min-width: 0;
    flex: 1;
}

.wm-password-row .wm-button {
    flex: 0 0 auto;
    white-space: nowrap;
}

.wm-password-checks {
    display: flex;
    flex-wrap: wrap;
    gap: 6px 12px;
    margin-top: 8px;
    color: var(--wm-muted, rgba(255, 255, 255, .62));
    font-size: .82rem;
}

.wm-password-checks span::before {
    content: "○";
    display: inline-block;
    width: 18px;
    color: currentColor;
}

.wm-password-checks span.valid {
    color: #65d6a6;
}

.wm-password-checks span.valid::before {
    content: "✓";
}

.wm-password-checks span.invalid {
    color: #f3a2a2;
}

.wm-inline-input {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 10px;
    align-items: center;
}

.wm-inline-input span {
    min-height: 52px;
    display: inline-flex;
    align-items: center;
    padding: 0 16px;
    border-radius: 16px;
    border: 1px solid var(--border);
    background: rgba(255, 255, 255, 0.03);
    color: var(--accent);
}

.wm-checkbox-field {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 12px;
    align-items: start;
    color: var(--text-soft);
}

.wm-checkbox-field input {
    margin-top: 3px;
    width: 18px;
    height: 18px;
}

.wm-form-message {
    min-height: 24px;
    color: var(--text-soft);
}

.wm-form-message.error,
.wm-list-status.error {
    color: #f2d9d9;
}

.wm-form-message.success,
.wm-list-status.success {
    color: #dbe6d4;
}

.wm-workspace {
    display: grid;
    grid-template-columns: 280px minmax(300px, 0.9fr) minmax(420px, 1.2fr);
    gap: 24px;
}

.wm-sidebar,
.wm-list-column,
.wm-detail-column {
    min-height: calc(100vh - 144px);
}

.wm-sidebar {
    display: grid;
    gap: 16px;
    align-content: start;
}

.wm-sidebar-card,
.wm-list-column,
.wm-detail-panel {
    padding: 20px;
}

.wm-sidebar-title {
    margin: 6px 0 6px;
    font-size: 1.2rem;
}

.wm-nav {
    display: grid;
    gap: 10px;
}

.wm-nav-button {
    display: flex;
    justify-content: space-between;
    align-items: center;
    text-align: left;
}

.wm-nav-button strong {
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 0.12em;
}

.wm-icon {
    width: 20px;
    height: 20px;
    flex: 0 0 auto;
}

.wm-nav-label {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    min-width: 0;
}

.wm-folder-list {
    display: grid;
    gap: 10px;
    margin-top: 12px;
}

.wm-folder-button {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    width: 100%;
    padding: 12px 14px;
    border-radius: 18px;
    border: 1px solid rgba(255, 255, 255, 0.06);
    background: rgba(255, 255, 255, 0.02);
    color: var(--text-dim);
    text-align: left;
}

.wm-folder-button svg {
    color: rgba(241, 200, 95, 0.9);
}

.wm-folder-button.active {
    border-color: var(--border-strong);
    background: linear-gradient(180deg, rgba(212, 160, 23, 0.16), rgba(255, 255, 255, 0.02));
    color: var(--text);
}

.wm-folder-chip {
    display: inline-flex;
    align-items: center;
    padding: 4px 10px;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(0, 0, 0, 0.25);
    color: var(--text-dim);
    font-size: 0.72rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.wm-folder-button:disabled {
    cursor: not-allowed;
    opacity: 0.75;
    transform: none !important;
}

.wm-list-toolbar {
    display: grid;
    grid-template-columns: 1fr;
    gap: 12px;
    padding: 14px 16px;
    border-radius: 22px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    background: rgba(255, 255, 255, 0.02);
}

.wm-select-all {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    color: var(--text-dim);
    user-select: none;
}

.wm-select-all input {
    width: 18px;
    height: 18px;
}

.wm-chip-row {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.wm-chip {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.06);
    background: rgba(255, 255, 255, 0.02);
    color: var(--text-dim);
}

.wm-chip.active {
    border-color: var(--border-strong);
    background: rgba(212, 160, 23, 0.12);
    color: var(--text);
}

.wm-chip:disabled {
    cursor: not-allowed;
    opacity: 0.8;
    transform: none !important;
}

.wm-list-column,
.wm-detail-column {
    display: grid;
    gap: 16px;
    align-content: start;
}

.wm-panel-head {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 16px;
}

.wm-panel-head-tight {
    align-items: center;
}

.wm-reader-actions {
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

.wm-icon-button {
    width: 42px;
    height: 42px;
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.06);
    background: rgba(255, 255, 255, 0.02);
    color: var(--text-soft);
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.wm-icon-button:disabled {
    cursor: not-allowed;
    opacity: 0.55;
    transform: none !important;
}

.wm-button:focus-visible,
.wm-tab-button:focus-visible,
.wm-nav-button:focus-visible,
.wm-compose-cta:focus-visible,
.wm-icon-button:focus-visible,
.wm-folder-button:focus-visible,
.wm-chip:focus-visible,
.wm-brand-button:focus-visible {
    outline: 3px solid rgba(212, 160, 23, 0.28);
    outline-offset: 3px;
}

.wm-search-shell {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 10px;
    align-items: center;
}

.wm-search-shell span {
    color: var(--text-dim);
    font-size: 0.82rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.wm-search-shell input:disabled {
    opacity: 0.7;
    cursor: not-allowed;
}

.wm-list-status {
    min-height: 24px;
}

.wm-mail-list {
    display: grid;
    gap: 12px;
}

.wm-mail-card {
    width: 100%;
    text-align: left;
    padding: 16px;
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.025);
    border: 1px solid rgba(255, 255, 255, 0.05);
    color: var(--text);
}

.wm-mail-card.active {
    border-color: var(--border-strong);
    background: linear-gradient(180deg, rgba(212, 160, 23, 0.14), rgba(255, 255, 255, 0.03));
}

.wm-mail-card.unread .wm-mail-subject {
    color: var(--text);
}

.wm-mail-row {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    align-items: center;
    margin-bottom: 8px;
}

.wm-mail-sender {
    color: var(--accent);
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    min-width: 0;
}

.wm-mail-sender-name {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.wm-badges {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.wm-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 6px 10px;
    border-radius: 999px;
    font-size: 0.72rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    border: 1px solid rgba(255, 255, 255, 0.10);
    background: rgba(0, 0, 0, 0.22);
    color: var(--text-soft);
}

.wm-badge-official {
    border-color: rgba(212, 160, 23, 0.30);
    background: rgba(212, 160, 23, 0.12);
    color: #ffe7b0;
}

.wm-badge-tag {
    border-color: rgba(255, 255, 255, 0.14);
    background: rgba(255, 255, 255, 0.06);
    color: var(--text);
}

.wm-mail-dot {
    width: 10px;
    height: 10px;
    border-radius: 999px;
    background: rgba(212, 160, 23, 0.9);
    box-shadow: 0 0 0 4px rgba(212, 160, 23, 0.14);
}

.wm-mail-date {
    color: var(--text-dim);
    font-size: 0.82rem;
    white-space: nowrap;
}

.wm-mail-subject {
    margin: 0 0 6px;
    font-size: 1rem;
    font-weight: 600;
}

.wm-mail-preview {
    margin: 0;
    font-size: 0.94rem;
}

.wm-empty-state {
    padding: 18px;
    border-radius: 18px;
    border: 1px dashed rgba(255, 255, 255, 0.14);
    background: rgba(255, 255, 255, 0.025);
    color: var(--text-soft);
    line-height: 1.7;
}

.wm-mail-skeleton {
    padding: 16px;
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    background: rgba(255, 255, 255, 0.02);
    position: relative;
    overflow: hidden;
}

.wm-mail-skeleton::after {
    content: "";
    position: absolute;
    inset: 0;
    transform: translateX(-40%);
    background: linear-gradient(110deg, transparent 0%, rgba(212, 160, 23, 0.12) 38%, transparent 70%);
    animation: wmShimmer 1.4s ease-in-out infinite;
}

.wm-mail-skeleton-row {
    display: flex;
    justify-content: space-between;
    gap: 14px;
    align-items: center;
    margin-bottom: 12px;
}

.wm-mail-skeleton-pill {
    height: 14px;
    width: 42%;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.04);
}

.wm-mail-skeleton-date {
    height: 12px;
    width: 22%;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.03);
}

.wm-mail-skeleton-title {
    height: 16px;
    width: 74%;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.04);
    margin-bottom: 10px;
}

.wm-mail-skeleton-line {
    height: 12px;
    width: 92%;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.03);
}

@keyframes wmShimmer {
    0% { transform: translateX(-40%); }
    100% { transform: translateX(120%); }
}

.wm-reader-meta {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
    padding: 16px;
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.025);
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.wm-reader-meta strong {
    display: block;
    margin-top: 6px;
    color: var(--text);
}

.wm-reader-body {
    padding: 4px 0 0;
}

.wm-reader-body p {
    margin: 0 0 14px;
}

.wm-reader-body pre {
    margin: 0;
    white-space: pre-wrap;
    word-break: break-word;
    font: inherit;
    color: var(--text);
    line-height: 1.8;
}

.wm-account-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.wm-account-card strong,
.wm-account-card span {
    display: block;
}

.wm-account-card strong {
    font-size: 1rem;
    margin: 8px 0 6px;
}

.wm-notify-settings {
    margin-top: 16px;
    padding: 16px;
    border-radius: 22px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    background: rgba(255, 255, 255, 0.02);
}

.wm-toast-stack {
    position: fixed;
    right: 20px;
    bottom: 20px;
    z-index: 30;
    display: grid;
    gap: 10px;
    width: min(340px, calc(100vw - 24px));
}

.wm-toast {
    padding: 14px 16px;
    border-radius: 18px;
    border: 1px solid var(--border);
    background: rgba(18, 18, 18, 0.98);
    color: var(--text);
    box-shadow: var(--shadow);
}

.wm-toast.error {
    border-color: rgba(183, 96, 96, 0.4);
    background: rgba(28, 17, 17, 0.98);
}

.wm-toast.success {
    border-color: rgba(124, 154, 109, 0.36);
    background: rgba(17, 25, 17, 0.98);
}

@media (max-width: 1280px) {
    .wm-landing-hero {
        grid-template-columns: 1fr;
    }

    .wm-auth-shell {
        grid-template-columns: 1fr;
    }

    .wm-workspace {
        grid-template-columns: 260px minmax(280px, 0.9fr) minmax(320px, 1fr);
    }
}

@media (max-width: 1100px) {
    .wm-page {
        padding: 18px;
    }

    .wm-workspace {
        grid-template-columns: 1fr;
    }

    .wm-sidebar,
    .wm-list-column,
    .wm-detail-column {
        min-height: auto;
    }
}

@media (max-width: 760px) {
    .wm-topbar,
    .wm-panel-head,
    .wm-panel-head-tight,
    .wm-inline-actions,
    .wm-auth-mode-switch,
    .wm-hero-actions {
        flex-direction: column;
        align-items: stretch;
    }

    .wm-page {
        padding: 14px;
    }

    .wm-landing-hero,
    .wm-auth-shell,
    .wm-list-column,
    .wm-detail-panel,
    .wm-sidebar-card {
        padding: 18px;
    }

    .wm-hero-stats,
    .wm-account-grid,
    .wm-reader-meta {
        grid-template-columns: 1fr;
    }

    .wm-inline-input,
    .wm-search-shell {
        grid-template-columns: 1fr;
    }

    .wm-button,
    .wm-tab-button,
    .wm-nav-button,
    .wm-compose-cta,
    .wm-session-chip,
    .wm-meta-pill {
        width: 100%;
        justify-content: center;
    }
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation: none !important;
        transition: none !important;
        scroll-behavior: auto !important;
    }
}

.wm-legal-shell {
    border-radius: 28px;
    border: 1px solid var(--border);
    background: linear-gradient(180deg, var(--panel-elevated), var(--panel));
    box-shadow: var(--shadow);
    padding: 26px;
    display: grid;
    gap: 20px;
}

.wm-legal-hero {
    border-radius: 24px;
    border: 1px solid rgba(255, 255, 255, 0.06);
    background: radial-gradient(circle at 18% 22%, rgba(212, 160, 23, 0.16) 0%, rgba(255, 255, 255, 0.02) 48%, rgba(0, 0, 0, 0.22) 100%);
    padding: 22px;
    position: relative;
    overflow: hidden;
}

.wm-legal-hero::after {
    content: "";
    position: absolute;
    width: 340px;
    height: 340px;
    right: -150px;
    bottom: -170px;
    background: url("/world-of-tools-logo.png") center / contain no-repeat;
    opacity: 0.06;
    transform: rotate(-12deg);
    pointer-events: none;
}

.wm-legal-hero-copy {
    position: relative;
    max-width: 920px;
    display: grid;
    gap: 10px;
}

.wm-legal-cards {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 14px;
}

.wm-legal-layout {
    display: grid;
    grid-template-columns: 280px minmax(0, 1fr);
    gap: 18px;
    align-items: start;
}

.wm-legal-toc {
    position: sticky;
    top: 18px;
    border-radius: 24px;
    border: 1px solid rgba(255, 255, 255, 0.06);
    background: rgba(255, 255, 255, 0.02);
    padding: 18px;
    display: grid;
    gap: 10px;
}

.wm-legal-link,
.wm-legal-link-inline {
    color: var(--accent);
    text-decoration: none;
    font-weight: 600;
}

.wm-legal-link {
    padding: 10px 12px;
    border-radius: 14px;
    border: 1px solid rgba(212, 160, 23, 0.14);
    background: rgba(212, 160, 23, 0.06);
}

.wm-legal-link:hover {
    border-color: rgba(212, 160, 23, 0.26);
    background: rgba(212, 160, 23, 0.12);
}

.wm-legal-content {
    border-radius: 24px;
    border: 1px solid rgba(255, 255, 255, 0.06);
    background: rgba(255, 255, 255, 0.02);
    padding: 22px;
    display: grid;
    gap: 18px;
}

.wm-legal-section {
    padding-bottom: 18px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.wm-legal-section:last-of-type {
    border-bottom: 0;
    padding-bottom: 0;
}

.wm-legal-section h3 {
    margin: 0 0 10px;
    font-size: 1.2rem;
}

.wm-legal-list {
    margin: 0;
    padding-left: 18px;
    display: grid;
    gap: 10px;
    color: var(--text-soft);
    line-height: 1.7;
}

.wm-legal-note {
    margin-top: 12px;
    padding: 14px 16px;
    border-radius: 18px;
    border: 1px solid rgba(212, 160, 23, 0.16);
    background: rgba(212, 160, 23, 0.06);
    color: var(--text);
    line-height: 1.7;
}

.wm-legal-footer {
    padding-top: 6px;
    color: var(--text-dim);
}

@media (max-width: 1020px) {
    .wm-legal-layout {
        grid-template-columns: 1fr;
    }

    .wm-legal-toc {
        position: relative;
        top: 0;
    }

    .wm-legal-cards {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 640px) {
    .wm-legal-shell {
        padding: 18px;
    }

    .wm-legal-hero {
        padding: 18px;
    }

    .wm-legal-content {
        padding: 18px;
    }

    .wm-legal-cards {
        grid-template-columns: 1fr;
    }
}
