/* Gmail-dark inspired theme on top of Bootstrap's data-bs-theme="dark" */

:root {
    --wm-sidebar-bg: #0a0a0a;
    --wm-list-bg: #0e0e0e;
    --wm-read-bg: #050505;
    --wm-raised: #1f1f1f;
    --wm-hover: #161616;
    --wm-border: #1c1c1c;
    --wm-text: #ececec;
    --wm-muted: #9a9a9a;
    --wm-accent: #8ab4f8;
    --wm-radius: 4px;
}

[data-bs-theme="dark"] {
    --bs-body-bg: var(--wm-read-bg);
    --bs-body-color: var(--wm-text);
    --bs-border-color: var(--wm-border);
}

body {
    font-size: 0.925rem;
}

.text-muted-2 {
    color: var(--wm-muted);
}

.min-w-0 {
    min-width: 0;
}

a {
    color: var(--wm-accent);
}

/* --- Icons ---
   WebP alpha masks tinted with the surrounding text colour via
   background-color: currentColor. No SVG or JS is needed, and hover states keep
   working because the colour comes from CSS. */

.ic {
    display: inline-block;
    width: 18px;
    height: 18px;
    flex-shrink: 0;
    background-color: currentColor;
    -webkit-mask: var(--ic) center / contain no-repeat;
    mask: var(--ic) center / contain no-repeat;
}

.ic-14 { width: 14px; height: 14px; }
.ic-16 { width: 16px; height: 16px; }
.ic-20 { width: 20px; height: 20px; }
.ic-22 { width: 22px; height: 22px; }

.ic-logo { --ic: url('../icons/logo.webp'); }
.ic-plus { --ic: url('../icons/plus.webp'); }
.ic-inbox { --ic: url('../icons/inbox.webp'); }
.ic-star { --ic: url('../icons/star.webp'); }
.ic-star-o { --ic: url('../icons/star-o.webp'); }
.ic-sent { --ic: url('../icons/sent.webp'); }
.ic-file { --ic: url('../icons/file.webp'); }
.ic-archive { --ic: url('../icons/archive.webp'); }
.ic-unarchive { --ic: url('../icons/unarchive.webp'); }
.ic-trash { --ic: url('../icons/trash.webp'); }
.ic-search { --ic: url('../icons/search.webp'); }
.ic-clip { --ic: url('../icons/clip.webp'); }
.ic-reply { --ic: url('../icons/reply.webp'); }
.ic-reply-all { --ic: url('../icons/reply-all.webp'); }
.ic-forward { --ic: url('../icons/forward.webp'); }
.ic-more { --ic: url('../icons/more.webp'); }
.ic-menu { --ic: url('../icons/menu.webp'); }
.ic-spam { --ic: url('../icons/spam.webp'); }
.ic-back { --ic: url('../icons/back.webp'); }
.ic-bolt { --ic: url('../icons/bolt.webp'); }
.ic-euro { --ic: url('../icons/euro.webp'); }
.ic-gear { --ic: url('../icons/gear.webp'); }
.ic-dash { --ic: url('../icons/dash.webp'); }
.ic-users { --ic: url('../icons/users.webp'); }
.ic-ticket { --ic: url('../icons/ticket.webp'); }

/* --- Avatars --- */

.avatar {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-weight: 600;
    font-size: 0.95rem;
    flex-shrink: 0;
    user-select: none;
}

.avatar-lg {
    width: 44px;
    height: 44px;
    font-size: 1.05rem;
}

/* --- Sidebar --- */

.sidebar {
    width: 232px;
    flex-shrink: 0;
    background: var(--wm-sidebar-bg);
    overflow-y: auto;
}

.compose-btn {
    background: #f2f2f2;
    color: #1a1a1a;
    border-radius: var(--wm-radius);
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.4);
}

.compose-btn:hover {
    background: #ffffff;
    color: #000;
}

.folder-nav .folder-link {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    color: var(--wm-muted);
    padding: 0.45rem 0.8rem;
    border-radius: var(--wm-radius);
    text-decoration: none;
    font-size: 0.9rem;
}

.folder-nav .folder-link:hover {
    color: var(--wm-text);
    background: var(--wm-hover);
}

.folder-nav .folder-link.active {
    color: #fff;
    background: var(--wm-raised);
    font-weight: 600;
}

.folder-count {
    font-size: 0.8rem;
}

.nav-divider {
    border-top: 1px solid var(--wm-border);
    margin: 0.5rem 0.8rem;
}

.sidebar-footer {
    border-top: 1px solid var(--wm-border);
}

.sidebar-email {
    color: var(--wm-muted);
    line-height: 1.2;
    min-width: 0;
}

.sidebar-email-local,
.sidebar-email-domain {
    overflow-wrap: anywhere;
}

.sidebar-email-local {
    color: #fff;
}

.signout-btn {
    background: transparent;
    border: 1px solid var(--wm-border);
    border-radius: var(--wm-radius);
    color: var(--wm-muted);
    font-size: 0.85rem;
}

.signout-btn:hover {
    color: var(--wm-text);
    border-color: var(--wm-muted);
}

/* --- Message list pane --- */

.list-pane {
    width: 400px;
    flex-shrink: 0;
    background: var(--wm-list-bg);
    min-width: 0;
}

@media (max-width: 1100px) {
    .sidebar { width: 180px; }
    .list-pane { width: 320px; }
}

.search-box {
    background: transparent;
    border: 1px solid var(--wm-border);
    border-radius: var(--wm-radius);
    height: 42px;
}

.search-icon {
    color: var(--wm-muted);
    flex-shrink: 0;
}

.search-input {
    background: transparent;
    border: 0;
    outline: none;
    color: var(--wm-text);
    min-width: 0;
}

.search-input::placeholder {
    color: var(--wm-muted);
}

.notice {
    background: #14241a;
    color: #9fd8ab;
}

.clear-link {
    color: var(--wm-accent);
    text-decoration: none;
}

.msg-item {
    color: var(--wm-muted);
    padding: 0.65rem 0.7rem;
    margin: 0.1rem 0;
    border-radius: var(--wm-radius);
}

.msg-item:hover {
    background: var(--wm-hover);
}

.msg-item.selected {
    background: var(--wm-raised);
}

.msg-main {
    min-width: 0;
}

.msg-from {
    color: #d6d6d6;
    font-size: 0.9rem;
}

.msg-date {
    font-size: 0.75rem;
    color: var(--wm-muted);
}

.msg-subject {
    font-size: 0.865rem;
    color: #bdbdbd;
}

.msg-snippet {
    font-size: 0.815rem;
    color: var(--wm-muted);
}

.msg-item.unread .msg-from,
.msg-item.unread .msg-subject {
    color: #fff;
    font-weight: 700;
}

/* Star toggle inside list rows: the row's open-link is a stretched-link,
   so the form needs to sit above it. */
.msg-star {
    position: absolute;
    right: 0.45rem;
    bottom: 0.45rem;
    z-index: 2;
}

.star-btn {
    background: transparent;
    border: 0;
    color: #6a6a6a;
    padding: 0.2rem;
    border-radius: 50%;
    line-height: 0;
    display: inline-flex;
}

.star-btn:hover {
    color: #fff;
    background: var(--wm-raised);
}

.star-btn.on,
.icon-btn.star-on {
    color: #f4c752;
}

.msg-item .msg-snippet {
    padding-right: 1.8rem;
}

.attach-icon {
    color: var(--wm-muted);
    flex-shrink: 0;
}

.draft-label {
    color: #f28b82;
}

.thread-count {
    color: var(--wm-muted);
    font-size: 0.8rem;
    font-weight: 400;
    margin-left: 0.15rem;
}

.msg-item.unread .thread-count {
    color: #d6d6d6;
    font-weight: 600;
}

.msg-snippet mark {
    background: #4a3f1d;
    color: #ffd97a;
    padding: 0 1px;
    border-radius: 2px;
}

/* Search scope chips */
.scope-chip {
    display: inline-block;
    background: transparent;
    border: 1px solid var(--wm-border);
    border-radius: 999px;
    color: var(--wm-muted);
    font-size: 0.78rem;
    padding: 0.1rem 0.6rem;
    text-decoration: none;
}

.scope-chip:hover {
    color: var(--wm-text);
    border-color: var(--wm-muted);
}

.scope-chip.active {
    background: var(--wm-raised);
    color: #fff;
    border-color: var(--wm-raised);
}

.empty-trash-row {
    border-bottom: 1px solid var(--wm-border);
}

.text-danger-2 {
    color: #f28b82;
}

.text-danger-2:hover {
    color: #f6a9a2;
}

.folder-chip {
    display: inline-block;
    background: var(--wm-raised);
    color: var(--wm-muted);
    border-radius: 3px;
    font-size: 0.7rem;
    padding: 0 0.35rem;
    margin-right: 0.25rem;
    text-transform: capitalize;
    vertical-align: text-bottom;
}

.list-footer {
    border-top: 1px solid var(--wm-border);
}

.page-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    border-radius: var(--wm-radius);
    color: var(--wm-text);
    text-decoration: none;
    font-size: 1.2rem;
    line-height: 1;
}

.page-btn:hover {
    background: var(--wm-hover);
    color: #fff;
}

.page-btn.disabled {
    color: #4a4a4a;
}

/* --- Reading pane --- */

.read-pane {
    background: var(--wm-read-bg);
    min-width: 0;
}

.read-subject {
    font-size: 1.6rem;
    font-weight: 500;
}

.icon-btn {
    background: transparent;
    border: 0;
    color: var(--wm-muted);
    padding: 0.45rem;
    border-radius: var(--wm-radius);
    line-height: 0;
    display: inline-flex;
}

.icon-btn:hover {
    background: var(--wm-hover);
    color: #fff;
}

.icon-btn-danger:hover {
    color: #f28b82;
}

.text-btn {
    background: transparent;
    border: 0;
    color: var(--wm-muted);
    font-size: 0.8rem;
    border-radius: var(--wm-radius);
    padding: 0.35rem 0.7rem;
    white-space: nowrap;
}

.text-btn:hover {
    background: var(--wm-hover);
    color: #fff;
}

.msg-body {
    white-space: pre-wrap;
    line-height: 1.65;
    max-width: 48rem;
    color: #d9d9d9;
}

.msg-body-html {
    line-height: 1.6;
    max-width: 48rem;
    color: #d9d9d9;
    overflow-wrap: break-word;
}

.msg-body-html img {
    max-width: 100%;
    height: auto;
    border-radius: var(--wm-radius);
}

.msg-body-html a {
    color: var(--wm-accent);
}

.msg-body-html table {
    max-width: 100%;
}

.blocked-banner {
    background: #201a0e;
    color: #e0c891;
    border-radius: var(--wm-radius);
    max-width: 48rem;
}

.blocked-banner a {
    color: var(--wm-accent);
    text-decoration: none;
}

/* --- Conversation view --- */

.read-subject .thread-count-lg {
    color: var(--wm-muted);
    font-size: 0.9rem;
    font-weight: 400;
    margin-left: 0.5rem;
    white-space: nowrap;
}

.conv-msg {
    border-bottom: 1px solid var(--wm-border);
    padding: 0.85rem 0;
    max-width: 52rem;
}

.conv-msg:last-child {
    border-bottom: 0;
}

.conv-collapsed summary {
    list-style: none;
    cursor: pointer;
    border-radius: var(--wm-radius);
    padding: 0.25rem 0.35rem;
    margin: -0.25rem -0.35rem;
}

.conv-collapsed summary::-webkit-details-marker {
    display: none;
}

.conv-collapsed summary:hover {
    background: var(--wm-hover);
}

.conv-collapsed[open] summary .msg-snippet {
    display: none !important;
}

.conv-from {
    color: #d6d6d6;
    font-size: 0.9rem;
}

.conv-body {
    padding: 0.75rem 0 0 3.4rem;
}

.conv-open-link {
    color: var(--wm-accent);
    text-decoration: none;
}

/* Full-headers reveal under the sender line */
.msg-headers summary {
    list-style: none;
    cursor: pointer;
    color: var(--wm-accent);
}

.msg-headers summary::-webkit-details-marker {
    display: none;
}

.msg-headers summary::after {
    content: ' ▾';
    font-size: 0.7em;
}

.headers-table {
    margin: 0.5rem 0 0.25rem;
    font-size: 0.8rem;
    border-collapse: collapse;
}

.headers-table th {
    color: var(--wm-muted);
    font-weight: 600;
    text-align: right;
    padding: 1px 8px 1px 0;
    vertical-align: top;
    white-space: nowrap;
}

.headers-table td {
    color: #c9c9c9;
    padding: 1px 0;
    word-break: break-all;
}

/* ⋮ overflow menu (details-based dropdown) */
.more-menu summary {
    list-style: none;
    cursor: pointer;
}

.more-menu summary::-webkit-details-marker {
    display: none;
}

.more-menu[open] summary {
    background: var(--wm-raised);
    color: #fff;
}

.menu-panel {
    position: absolute;
    right: 0;
    top: calc(100% + 4px);
    z-index: 20;
    min-width: 11rem;
    background: var(--wm-raised);
    border: 1px solid #2e2e2e;
    border-radius: var(--wm-radius);
    box-shadow: 0 6px 24px rgba(0, 0, 0, 0.5);
    padding: 0.3rem 0;
}

.menu-item {
    display: block;
    width: 100%;
    text-align: left;
    background: transparent;
    border: 0;
    color: var(--wm-text);
    font-size: 0.875rem;
    padding: 0.45rem 1rem;
    text-decoration: none;
    white-space: nowrap;
}

.menu-item:hover {
    background: var(--wm-hover);
    color: #fff;
}

/* --- Attachments --- */

.attachments {
    border-top: 1px solid var(--wm-border);
    max-width: 48rem;
}

.attachment-chip {
    background: var(--wm-raised);
    border: 1px solid var(--wm-border);
    border-radius: var(--wm-radius);
    color: var(--wm-text);
    font-size: 0.85rem;
}

a.attachment-chip:hover {
    border-color: var(--wm-muted);
    color: #fff;
}

.att-name {
    max-width: 16rem;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* --- Compose (CSS-only modal, shown via :target on #compose) --- */

.compose-modal {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 1050;
    align-items: center;
    justify-content: center;
    padding: 1.5rem;
}

.compose-modal:target {
    display: flex;
}

/* Clicking outside closes with a link to #closed. There is no reload, so typed
   text in the form is kept. */
.compose-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.6);
    cursor: default;
}

/* The compose "window": a raised card like Gmail's compose popup */
.compose-card {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 44rem;
    max-height: 100%;
    display: flex;
    flex-direction: column;
    background: #101010;
    border: 1px solid var(--wm-border);
    border-radius: var(--wm-radius);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.55);
    overflow: hidden;
}

.compose-card > form {
    display: flex;
    flex-direction: column;
    flex: 1 1 auto;
    min-height: 0;
    overflow-y: auto;
}

.compose-head,
.compose-fields,
.compose-atts,
.compose-toolbar {
    flex-shrink: 0;
}

.compose-head {
    background: #161616;
    border-bottom: 1px solid var(--wm-border);
    font-size: 0.9rem;
    font-weight: 600;
    padding-top: 0.55rem;
    padding-bottom: 0.55rem;
}

.compose-close {
    color: var(--wm-muted);
    text-decoration: none;
    font-size: 1.25rem;
    line-height: 1;
    padding: 0 0.35rem 0.15rem;
    border-radius: var(--wm-radius);
}

.compose-close:hover {
    color: #fff;
    background: var(--wm-hover);
}

/* Borderless field rows separated by hairlines, labels inline */
.c-row {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    margin: 0 1rem;
    border-bottom: 1px solid var(--wm-border);
}

.c-row:focus-within {
    border-bottom-color: #3d3d3d;
}

.c-label {
    color: var(--wm-muted);
    font-size: 0.875rem;
    flex-shrink: 0;
    margin: 0;
}

.c-input {
    flex: 1;
    min-width: 0;
    background: transparent;
    border: 0;
    outline: none;
    color: var(--wm-text);
    padding: 0.55rem 0;
    font-size: 0.925rem;
}

.c-input::placeholder {
    color: var(--wm-muted);
}

/* Room for the Cc Bcc toggle sitting at the right end of the To row */
.c-to .c-input {
    padding-right: 3.6rem;
}

.ccbcc summary {
    position: absolute;
    top: 0.55rem;
    right: 1rem;
    color: var(--wm-muted);
    font-size: 0.85rem;
    cursor: pointer;
    list-style: none;
    padding: 0 0.2rem;
    border-radius: var(--wm-radius);
}

.ccbcc summary::-webkit-details-marker {
    display: none;
}

.ccbcc summary:hover {
    color: var(--wm-text);
}

.ccbcc[open] summary {
    color: var(--wm-accent);
}

.c-body {
    display: block;
    width: 100%;
    flex: 1 1 auto;
    background: transparent;
    border: 0;
    outline: none;
    resize: vertical;
    min-height: 220px;
    padding: 0.9rem 1rem;
    color: #d9d9d9;
    line-height: 1.6;
    font-size: 0.925rem;
}

.compose-atts {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
}

/* Remove-checkbox drawn as an ×; ticking strikes the chip out */
.att-remove {
    appearance: none;
    -webkit-appearance: none;
    width: 18px;
    height: 18px;
    margin: 0 0 0 0.15rem;
    border: 0;
    background: transparent;
    color: var(--wm-muted);
    cursor: pointer;
    position: relative;
}

.att-remove::before {
    content: '\00d7';
    position: absolute;
    inset: 0;
    font-size: 17px;
    line-height: 17px;
    text-align: center;
}

.att-remove:hover {
    color: #fff;
}

.att-remove:checked {
    color: #f28b82;
}

.attachment-chip:has(.att-remove:checked) {
    opacity: 0.55;
}

.attachment-chip:has(.att-remove:checked) .att-name {
    text-decoration: line-through;
}

.compose-toolbar {
    border-top: 1px solid var(--wm-border);
}

.attach-input {
    background: transparent;
    border: 0;
    color: var(--wm-muted);
    font-size: 0.85rem;
    min-width: 0;
}

.attach-input::file-selector-button {
    background: transparent;
    border: 1px solid var(--wm-border);
    border-radius: var(--wm-radius);
    color: var(--wm-muted);
    padding: 0.3rem 0.85rem;
    margin-right: 0.6rem;
    font-size: 0.85rem;
    cursor: pointer;
}

.attach-input::file-selector-button:hover {
    color: var(--wm-text);
    border-color: var(--wm-muted);
}

.compose-flash {
    border-radius: var(--wm-radius);
    margin: 0.75rem 1rem 0;
}

.compose-flash-error {
    background: #2a1213;
    color: #f2a6a0;
}

.send-btn {
    background: #f2f2f2;
    color: #0a0a0a;
    font-weight: 600;
    border: 0;
    border-radius: var(--wm-radius);
}

.send-btn:hover {
    background: #ffffff;
    color: #000;
}

/* --- Auth pages (login / register / forgot) --- */

.auth-wrap {
    background: var(--wm-read-bg);
}

.auth-col {
    max-width: 320px;
    margin-top: 12vh;
}

.auth-title {
    font-size: 1.45rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: 1.75rem;
}

.auth-input {
    display: block;
    width: 100%;
    background: transparent;
    border: 1px solid var(--wm-border);
    border-radius: var(--wm-radius);
    color: var(--wm-text);
    padding: 0.8rem 0.9rem;
    margin-bottom: 1rem;
    outline: none;
    font-size: 0.95rem;
}

.auth-input::placeholder {
    color: var(--wm-muted);
}

.auth-input:focus {
    background: #0a0a0a;
    border-color: #3f3f3f;
}

/* Input group: username field with a fixed @domain suffix */
.auth-group .auth-input {
    flex: 1;
    min-width: 0;
    margin-bottom: 0;
    border-right: 0;
    border-radius: var(--wm-radius) 0 0 var(--wm-radius);
}

.auth-addon {
    display: flex;
    align-items: center;
    background: var(--wm-hover);
    color: var(--wm-muted);
    border: 1px solid var(--wm-border);
    border-radius: 0 var(--wm-radius) var(--wm-radius) 0;
    padding: 0 0.9rem;
    font-size: 0.95rem;
    white-space: nowrap;
}

/* Ghost-font captcha: 4 animated dot tiles */
.captcha-tile {
    flex: 1;
    min-width: 0;
    width: 72px;
    height: auto;
    aspect-ratio: 1;
    max-width: 76px;
    border-radius: var(--wm-radius);
}

/* Honeypot lives far off-screen (display:none is too obvious to bots) */
.hp-field {
    position: absolute;
    left: -9999px;
    top: -9999px;
}

.forgot-link {
    display: block;
    text-align: right;
    font-size: 0.8rem;
    color: var(--wm-muted);
    text-decoration: none;
    margin: -0.35rem 0 1.3rem;
}

.forgot-link:hover {
    color: var(--wm-text);
}

.auth-btn {
    display: block;
    width: 100%;
    background: #f2f2f2;
    color: #111;
    font-weight: 600;
    border: 0;
    border-radius: var(--wm-radius);
    padding: 0.8rem;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.4);
}

.auth-btn:hover {
    background: #ffffff;
    color: #000;
}

.auth-footer {
    color: var(--wm-muted);
    font-size: 0.9rem;
}

.auth-footer a {
    color: #fff;
    font-weight: 600;
    text-decoration: none;
}

.recovery-key {
    font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
    font-size: 1.15rem;
    letter-spacing: 0.12em;
    text-align: center;
    resize: none;
    overflow: hidden;
}

.recovery-key-input {
    font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.auth-note {
    color: var(--wm-muted);
    font-size: 0.9rem;
    line-height: 1.6;
}

.auth-error,
.auth-flash {
    border-radius: var(--wm-radius);
}

.auth-error {
    background: #2a1213;
    color: #f2a6a0;
}

/* --- Admin panel --- */

.admin-wrap {
    max-width: 64rem;
}

.admin-badge {
    background: var(--wm-raised);
    color: var(--wm-accent);
    font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
    font-size: 0.7rem;
    letter-spacing: 0.05em;
    padding: 0.1rem 0.45rem;
    border-radius: var(--wm-radius);
}

.admin-label {
    font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
    color: #767676;
    font-size: 0.82rem;
    letter-spacing: 0.05em;
    margin: 0 0 0.75rem;
}

.stat-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.75rem;
}

.stat-card {
    border: 1px solid var(--wm-border);
    border-radius: var(--wm-radius);
    padding: 1.1rem 1.3rem;
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
}

.stat-num {
    font-size: 1.7rem;
    font-weight: 700;
    letter-spacing: -0.01em;
}

.stat-label {
    color: var(--wm-muted);
    font-size: 0.85rem;
}

/* Monthly income bar chart (pure CSS) */
.income-chart {
    display: flex;
    align-items: flex-end;
    gap: 0.6rem;
    height: 150px;
    border: 1px solid var(--wm-border);
    border-radius: var(--wm-radius);
    padding: 1.1rem 1.3rem 0.7rem;
}

.income-col {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-end;
    height: 100%;
    gap: 0.35rem;
    min-width: 0;
}

.income-bar {
    width: 100%;
    max-width: 42px;
    background: #f2f2f2;
    border-radius: 2px 2px 0 0;
    min-height: 1px;
}

.income-col .small {
    font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
    font-size: 0.68rem;
    color: var(--wm-muted);
    white-space: nowrap;
}

.admin-box {
    border: 1px solid var(--wm-border);
    border-radius: var(--wm-radius);
    padding: 0.9rem 1.3rem;
    font-size: 0.9rem;
}

.admin-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.9rem;
}

.admin-table th {
    text-align: left;
    color: var(--wm-muted);
    font-weight: 600;
    font-size: 0.8rem;
    padding: 0.5rem 0.75rem;
    border-bottom: 1px solid var(--wm-border);
}

.admin-table td {
    padding: 0.55rem 0.75rem;
    border-bottom: 1px solid var(--wm-border);
}

.admin-table tr:hover td {
    background: var(--wm-hover);
}

.admin-table a {
    text-decoration: none;
}

.admin-detail th {
    width: 11rem;
    border-bottom: 1px solid var(--wm-border);
    vertical-align: top;
}

.admin-detail tr:hover td {
    background: transparent;
}

/* --- Blog admin --- */

.post-editor-wrap {
    max-width: 58rem;
}

.post-admin-empty {
    padding: 1.4rem;
}

.post-admin-slug {
    display: block;
    color: var(--wm-muted);
    font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
    font-size: 0.75rem;
    margin-top: 0.15rem;
}

.post-status {
    display: inline-block;
    border-radius: var(--wm-radius);
    font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
    font-size: 0.7rem;
    letter-spacing: 0.04em;
    padding: 0.15rem 0.5rem;
    text-transform: uppercase;
}

.post-status-published {
    background: #14241a;
    color: #9fd8ab;
}

.post-status-draft {
    background: var(--wm-raised);
    color: var(--wm-muted);
}

.post-field {
    margin-bottom: 1.5rem;
}

.post-field > label {
    display: block;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.post-field .auth-input {
    margin-bottom: 0;
}

.post-field-help {
    color: var(--wm-muted);
    font-size: 0.78rem;
    line-height: 1.5;
    margin: 0.4rem 0 0;
}

.post-excerpt {
    line-height: 1.55;
    resize: vertical;
}

.post-file-input {
    padding: 0.55rem 0.7rem;
}

.post-file-input::file-selector-button {
    background: var(--wm-raised);
    border: 0;
    border-radius: var(--wm-radius);
    color: var(--wm-text);
    cursor: pointer;
    font-size: 0.85rem;
    margin-right: 0.8rem;
    padding: 0.35rem 0.75rem;
}

.post-featured-preview {
    border: 1px solid var(--wm-border);
    border-radius: var(--wm-radius);
    margin-top: 0.85rem;
    max-width: 34rem;
    overflow: hidden;
}

.post-featured-preview[hidden] {
    display: none;
}

.post-featured-preview img {
    aspect-ratio: 16 / 9;
    display: block;
    object-fit: cover;
    width: 100%;
}

.post-status-field {
    max-width: 15rem;
}

.wysiwyg-editor {
    display: none;
}

.wysiwyg-ready .wysiwyg-editor {
    display: block;
    border: 1px solid var(--wm-border);
    border-radius: var(--wm-radius);
    overflow: hidden;
}

.wysiwyg-ready .wysiwyg-source {
    display: none;
}

.wysiwyg-toolbar {
    align-items: center;
    background: #0a0a0a;
    border-bottom: 1px solid var(--wm-border);
    display: flex;
    flex-wrap: wrap;
    gap: 0.25rem;
    padding: 0.45rem;
}

.wysiwyg-toolbar button,
.wysiwyg-toolbar select {
    background: transparent;
    border: 1px solid transparent;
    border-radius: var(--wm-radius);
    color: var(--wm-muted);
    font-size: 0.8rem;
    line-height: 1.2;
    min-height: 2rem;
    padding: 0.35rem 0.55rem;
}

.wysiwyg-toolbar button:hover,
.wysiwyg-toolbar button:focus-visible,
.wysiwyg-toolbar select:hover,
.wysiwyg-toolbar select:focus-visible {
    background: var(--wm-raised);
    border-color: #303030;
    color: #fff;
    outline: none;
}

.wysiwyg-toolbar select {
    color-scheme: dark;
    min-width: 7.5rem;
}

.wysiwyg-divider {
    align-self: stretch;
    border-left: 1px solid var(--wm-border);
    margin: 0.2rem 0.15rem;
}

.wysiwyg-surface {
    color: #d9d9d9;
    line-height: 1.7;
    min-height: 24rem;
    outline: none;
    overflow-wrap: anywhere;
    padding: 1.1rem 1.2rem;
}

.wysiwyg-surface:focus {
    background: #080808;
}

.wysiwyg-surface:empty::before {
    color: var(--wm-muted);
    content: 'Write the post';
    pointer-events: none;
}

.wysiwyg-surface h2,
.wysiwyg-surface h3,
.wysiwyg-surface h4 {
    color: var(--wm-text);
    margin: 1.4em 0 0.55em;
}

.wysiwyg-surface h2:first-child,
.wysiwyg-surface h3:first-child,
.wysiwyg-surface h4:first-child,
.wysiwyg-surface p:first-child {
    margin-top: 0;
}

.wysiwyg-surface blockquote {
    border-left: 3px solid #555;
    color: var(--wm-muted);
    margin: 1.2rem 0;
    padding-left: 1rem;
}

.wysiwyg-surface pre {
    background: var(--wm-hover);
    border: 1px solid var(--wm-border);
    border-radius: var(--wm-radius);
    padding: 0.9rem;
    white-space: pre-wrap;
}

.wysiwyg-error {
    color: #f2a6a0;
    font-size: 0.82rem;
    margin: 0.5rem 0 0;
}

.post-delete-section {
    border-top: 1px solid var(--wm-border);
    margin-top: 2.5rem;
    padding-top: 2rem;
}

.post-delete-section .admin-label {
    color: #f28b82;
}

.post-delete-form {
    max-width: 34rem;
}

.admin-table-scroll {
    overflow-x: auto;
}

@media (max-width: 900px) {
    .stat-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* --- Settings --- */

.set-wrap {
    max-width: 34rem;
}

.set-section {
    border-top: 1px solid var(--wm-border);
    padding: 1.5rem 0;
}

.set-section:first-of-type {
    border-top: 0;
    padding-top: 0;
}

.set-btn {
    width: auto;
    padding: 0.6rem 1.4rem;
}

.set-row {
    margin: 0 0 1rem;
    border: 1px solid var(--wm-border);
    border-radius: var(--wm-radius);
    padding: 0 0.9rem;
}

.set-confirm {
    color: var(--wm-muted);
}

.set-danger .admin-label {
    color: #f28b82;
}

.set-delete-btn {
    background: #3a1513;
    color: #f6a9a2;
}

.set-delete-btn:hover {
    background: #4a1a17;
    color: #ffc4bd;
}

/* --- Premium upgrade --- */

.upgrade-btn {
    border: 1px solid var(--wm-border);
    border-radius: var(--wm-radius);
    color: var(--wm-text);
}

.upgrade-btn:hover {
    border-color: var(--wm-muted);
}

.upgrade-btn .ic-bolt {
    color: #f4c752;
}

.up-card {
    max-width: 30rem;
}

.up-opt {
    border: 1px solid var(--wm-border);
    border-radius: var(--wm-radius);
    padding: 0.6rem 0.85rem;
    margin-bottom: 0.5rem;
    cursor: pointer;
    font-size: 0.925rem;
}

.up-opt:hover {
    border-color: var(--wm-muted);
}

.up-opt:has(input:checked) {
    border-color: var(--wm-accent);
}

.up-opt input {
    accent-color: var(--wm-accent);
}

.up-price {
    color: var(--wm-muted);
    font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
}

.up-coins {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0 0.5rem;
}

.pay-grid {
    display: grid;
    grid-template-columns: 1.3fr 1fr;
    gap: 1rem;
    max-width: 52rem;
}

.pay-box {
    padding: 1.5rem;
}

.pay-state-box {
    max-width: 34rem;
}

.pay-amount {
    font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
    font-size: 1.5rem;
    margin: 0;
}

.pay-amount span {
    color: var(--wm-muted);
    font-size: 1rem;
}

.pay-address {
    font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
    font-size: 0.85rem;
    word-break: break-all;
    background: var(--wm-hover);
    border-radius: var(--wm-radius);
    padding: 0.6rem 0.8rem;
    margin: 0;
}

.pay-qr {
    border-radius: var(--wm-radius);
}

@media (max-width: 900px) {
    .pay-grid {
        grid-template-columns: 1fr;
    }
}

/* --- Support tickets --- */

.tk-col {
    max-width: 640px;
}

.tk-status {
    font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
    font-size: 0.72rem;
    letter-spacing: 0.05em;
    padding: 0.1rem 0.5rem;
    border-radius: var(--wm-radius);
    text-transform: uppercase;
}

.tk-status-open {
    background: #14241a;
    color: #9fd8ab;
}

.tk-status-closed {
    background: var(--wm-raised);
    color: var(--wm-muted);
}

.tk-msg {
    border: 1px solid var(--wm-border);
    border-radius: var(--wm-radius);
    padding: 0.9rem 1.1rem;
    margin-bottom: 0.75rem;
}

.tk-msg-admin {
    border-left: 3px solid var(--wm-accent);
}

.tk-author-admin {
    color: var(--wm-accent);
}

.tk-body {
    white-space: pre-wrap;
    line-height: 1.6;
    color: #d9d9d9;
    font-size: 0.925rem;
}

textarea.tk-reply {
    resize: vertical;
    font-size: 0.925rem;
    line-height: 1.6;
}

.tk-reply-btn {
    width: auto;
    padding: 0.55rem 1.4rem;
}

select.auth-input,
select.c-input {
    color-scheme: dark;
}

/* --- Contact page --- */

.lp-contact {
    display: grid;
    grid-template-columns: 1fr 1.1fr;
    gap: 4rem;
    padding-top: 4rem;
    padding-bottom: 5rem;
}

.lp-contact-title {
    font-size: clamp(2.2rem, 4.5vw, 3.4rem);
    font-weight: 800;
    letter-spacing: -0.02em;
    margin-bottom: 1rem;
}

.lp-dept {
    border-top: 1px solid var(--wm-border);
    padding: 1.1rem 0;
}

.lp-dept h3 {
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 0.35rem;
}

.lp-dept p {
    color: var(--wm-muted);
    font-size: 0.95rem;
    line-height: 1.6;
    margin: 0;
}

.lp-contact-form h3 {
    font-size: 1.05rem;
    font-weight: 700;
}

@media (max-width: 900px) {
    .lp-contact {
        grid-template-columns: 1fr;
        gap: 2rem;
        padding-top: 2rem;
    }
}

/* --- Landing page --- */

.lp {
    background: var(--wm-read-bg);
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    color: var(--wm-text);
}

@supports (min-height: 100dvh) {
    .lp {
        min-height: 100dvh;
    }
}

.lp a {
    text-decoration: none;
}

.lp-col {
    width: 100%;
    max-width: 1160px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

.lp-nav {
    width: 100%;
    max-width: 1160px;
    margin: 0 auto;
    height: 76px;
}

.lp-brand {
    color: #fff;
}

.lp-links a {
    color: var(--wm-muted);
    font-size: 0.95rem;
}

.lp-links a:hover {
    color: #fff;
}

.lp-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    border-radius: var(--wm-radius);
    padding: 0.6rem 1.3rem;
    font-weight: 600;
    font-size: 0.95rem;
    white-space: nowrap;
}

.lp-pill-light {
    background: #f2f2f2;
    color: #0a0a0a !important;
}

.lp-pill-light:hover {
    background: #ffffff;
}

.lp-pill-outline {
    border: 1px solid #303030;
    color: var(--wm-text);
}

.lp-pill-outline:hover {
    border-color: #666;
}

.lp-pill:focus-visible {
    outline: 2px solid #cbb1e5;
    outline-offset: 3px;
}


.lp-hero {
    display: flex;
    align-items: center;
    gap: 2rem;
    padding-top: 6rem;
    padding-bottom: 6rem;
    border-bottom: 1px solid var(--wm-border);
}

.lp-hero h1 {
    font-size: clamp(2.6rem, 6vw, 4.6rem);
    font-weight: 800;
    letter-spacing: -0.02em;
    line-height: 1.05;
    margin-bottom: 1.25rem;
}

.lp-sub {
    color: var(--wm-muted);
    font-size: 1.15rem;
    line-height: 1.6;
    max-width: 34rem;
    margin-bottom: 2rem;
}

/* Static gradient accents - a quiet nod to the reference, no motion */
.lp-hero-art {
    display: flex;
    flex-direction: column;
    gap: 1.4rem;
    margin-left: auto;
    flex-shrink: 0;
}

.lp-bar {
    display: block;
    width: 220px;
    height: 26px;
    border-radius: 2px;
}

.lp-bar-a {
    background: linear-gradient(90deg, #0b0b0b, #7d5bd6, #d668b1);
    align-self: flex-end;
    width: 160px;
}

.lp-bar-b {
    background: linear-gradient(90deg, #0b0b0b, #d67a3e, #e8b04b);
}

.lp-bar-c {
    background: linear-gradient(90deg, #b1503e, #0b0b0b);
    width: 120px;
}

@media (max-width: 1024px) {
    .lp-hero-art {
        display: none;
    }
}

@media (max-width: 420px) {
    .lp-hero h1 {
        font-size: clamp(2rem, 10.3vw, 2.6rem);
    }
}

.lp-label {
    font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
    color: #767676;
    font-size: 0.85rem;
    letter-spacing: 0.06em;
    margin: 3.5rem 0 1.25rem;
}

.lp-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    border-top: 1px solid var(--wm-border);
    border-left: 1px solid var(--wm-border);
}

.lp-cell {
    border-right: 1px solid var(--wm-border);
    border-bottom: 1px solid var(--wm-border);
    padding: 1.75rem;
}

.lp-box {
    border: 1px solid var(--wm-border);
    padding: 2rem;
}

.lp-grid-4 {
    grid-template-columns: repeat(4, 1fr);
}

.lp-premium {
    padding-bottom: 4rem;
}

.lp-premium-heading {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 2rem;
    margin-bottom: 1.5rem;
}

.lp-premium-heading h2 {
    margin: 0;
    color: #fff;
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 800;
    letter-spacing: -0.025em;
    line-height: 1.1;
}

.lp-premium-heading p {
    max-width: 34rem;
    margin: 0;
    color: var(--wm-muted);
    font-size: 0.98rem;
    line-height: 1.65;
}

.lp-plan-comparison {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    border-top: 1px solid #252525;
    border-left: 1px solid #252525;
}

.lp-plan-card {
    display: flex;
    min-width: 0;
    flex-direction: column;
    padding: clamp(1.5rem, 3.5vw, 2.75rem);
    border-right: 1px solid #252525;
    border-bottom: 1px solid #252525;
    background: #080808;
}

.lp-plan-card-premium {
    position: relative;
    background:
        radial-gradient(circle at 100% 0, rgba(123, 78, 163, 0.15), transparent 38%),
        #0a090b;
}

.lp-plan-card-premium::before {
    position: absolute;
    top: -1px;
    right: -1px;
    left: -1px;
    height: 3px;
    background: linear-gradient(90deg, #69458d, #b1609b, #d98a43);
    content: "";
}

.lp-plan-header {
    display: flex;
    min-height: 88px;
    align-items: flex-start;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 1.5rem;
}

.lp-plan-type {
    margin: 0 0 0.45rem;
    color: #777;
    font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
    font-size: 0.72rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.lp-plan-header h3 {
    margin: 0;
    color: #f2f2f2;
    font-size: clamp(1.25rem, 2.5vw, 1.6rem);
    font-weight: 750;
    letter-spacing: -0.02em;
}

.lp-plan-price {
    flex-shrink: 0;
    margin: 0;
    color: #fff;
    font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
    font-size: clamp(2.5rem, 5vw, 3.5rem);
    font-weight: 700;
    letter-spacing: -0.05em;
    line-height: 1;
    white-space: nowrap;
}

.lp-plan-price > span {
    margin-right: 0.15rem;
    color: #bca7ce;
    font-size: 1.1rem;
    font-weight: 600;
    vertical-align: top;
}

.lp-plan-price small {
    margin-left: 0.4rem;
    color: #777;
    font-size: 0.72rem;
    font-weight: 500;
    letter-spacing: 0;
}

.lp-plan-paid-price {
    text-align: right;
}

.lp-plan-paid-price > p:last-child {
    margin: 0.45rem 0 0;
    color: #777;
    font-size: 0.78rem;
}

.lp-plan-paid-price > p:last-child strong {
    color: #bca7ce;
    font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
    font-weight: 600;
}

.lp-plan-description {
    min-height: 3.2rem;
    margin: 1.25rem 0 1.5rem;
    color: #888;
    line-height: 1.6;
}

.lp-plan-facts {
    margin: 0;
    padding: 0;
    list-style: none;
}

.lp-plan-facts > li {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 1.5rem;
    padding: 0.85rem 0;
    border-top: 1px solid #252525;
}

.lp-plan-facts > li:last-child {
    border-bottom: 1px solid #252525;
}

.lp-plan-facts span {
    color: #777;
    font-size: 0.83rem;
    font-weight: 400;
}

.lp-plan-facts strong {
    margin: 0;
    color: #ddd;
    font-size: 0.86rem;
    font-weight: 650;
    text-align: right;
    overflow-wrap: anywhere;
}

.lp-plan-note {
    min-height: 3rem;
    margin: 1.25rem 0 1.5rem;
    color: #777;
    font-size: 0.8rem;
    line-height: 1.55;
}

.lp-plan-action {
    align-self: flex-start;
    justify-content: center;
    margin-top: auto;
    min-height: 44px;
}

.lp-cell h3,
.lp-box h3 {
    font-size: 1.05rem;
    font-weight: 700;
    margin-bottom: 0.6rem;
}

.lp-cell p,
.lp-box p {
    color: var(--wm-muted);
    font-size: 0.95rem;
    line-height: 1.65;
    margin: 0;
}

.lp-quote h2 {
    font-size: clamp(1.7rem, 3.6vw, 2.6rem);
    font-weight: 700;
    letter-spacing: -0.01em;
    line-height: 1.25;
    max-width: 56rem;
}

.lp-quote .lp-sub {
    max-width: 44rem;
    margin-top: 1.25rem;
}

.lp-tor {
    padding-top: 0;
}

.lp-tor-layout {
    display: grid;
    grid-template-columns: minmax(260px, 0.8fr) minmax(0, 1.2fr);
}

.lp-tor-graphic {
    position: relative;
    min-height: 310px;
    overflow: hidden;
    background: transparent;
}

.lp-tor-graphic img {
    display: block;
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center;
}

.lp-tor-copy {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: clamp(2.25rem, 4vw, 3.5rem);
}

.lp-tor-copy h2 {
    max-width: 30rem;
    font-size: clamp(1.75rem, 2.7vw, 2.35rem);
    font-weight: 700;
    letter-spacing: -0.02em;
    line-height: 1.2;
    margin-bottom: 1rem;
}

.lp-tor-copy > p:not(.lp-label) {
    max-width: 34rem;
    color: var(--wm-muted);
    line-height: 1.7;
    margin-bottom: 1.75rem;
}

.lp-onion-address {
    max-width: 34rem;
    display: grid;
    gap: 0.4rem;
    padding: 1rem 1.15rem;
    border-left: 3px solid #8159ae;
    background: #0b0b0b;
}

.lp-onion-address span {
    color: #777;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.lp-onion-address code {
    display: block;
    color: #e5d4f2;
    font-size: 0.95rem;
    overflow-wrap: anywhere;
    word-break: break-all;
}

.lp-onion-address a {
    color: inherit;
}

/* --- Public blog --- */

.lp-blog-latest {
    padding-top: 0;
}

.lp-section-heading {
    align-items: end;
    display: flex;
    justify-content: space-between;
    gap: 1.5rem;
}

.lp-section-heading > a {
    color: var(--wm-muted);
    font-size: 0.9rem;
    margin-bottom: 1.15rem;
}

.lp-section-heading > a:hover {
    color: #fff;
}

.lp-blog-grid {
    border-left: 1px solid var(--wm-border);
    border-top: 1px solid var(--wm-border);
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.lp-post-card {
    border-bottom: 1px solid var(--wm-border);
    border-right: 1px solid var(--wm-border);
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.lp-post-image {
    aspect-ratio: 16 / 10;
    background: #090909;
    border-bottom: 1px solid var(--wm-border);
    display: block;
    overflow: hidden;
}

.lp-post-image img {
    display: block;
    height: 100%;
    object-fit: cover;
    transition: transform 180ms ease;
    width: 100%;
}

.lp-post-card:hover .lp-post-image img {
    transform: scale(1.02);
}

.lp-post-placeholder {
    align-items: center;
    background:
        linear-gradient(135deg, transparent 0 35%, rgba(126, 86, 174, 0.22) 35% 36%, transparent 36% 64%, rgba(214, 122, 62, 0.17) 64% 65%, transparent 65%),
        radial-gradient(circle at 72% 25%, rgba(126, 86, 174, 0.2), transparent 30%),
        #090909;
    color: #777;
    display: flex;
    font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
    font-size: 0.78rem;
    height: 100%;
    justify-content: center;
    letter-spacing: 0.14em;
    width: 100%;
}

.lp-post-card-copy {
    display: flex;
    flex: 1;
    flex-direction: column;
    padding: 1.3rem;
}

.lp-post-card time,
.lp-article-header time {
    color: #777;
    font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
    font-size: 0.72rem;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.lp-post-card h2 {
    font-size: 1.05rem;
    font-weight: 700;
    line-height: 1.35;
    margin: 0.65rem 0;
}

.lp-post-card h2 a {
    color: var(--wm-text);
}

.lp-post-card h2 a:hover {
    color: #fff;
}

.lp-post-card p {
    color: var(--wm-muted);
    display: -webkit-box;
    font-size: 0.88rem;
    line-height: 1.6;
    margin: 0 0 1rem;
    overflow: hidden;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
}

.lp-post-read {
    color: var(--wm-muted);
    font-size: 0.84rem;
    margin-top: auto;
}

.lp-post-read:hover {
    color: #fff;
}

.lp-blog-empty {
    border: 1px solid var(--wm-border);
    padding: 2rem;
}

.lp-blog-empty h2 {
    font-size: 1.1rem;
    margin-bottom: 0.4rem;
}

.lp-blog-empty p {
    color: var(--wm-muted);
    margin: 0;
}

.lp-blog-page {
    padding-bottom: 4rem;
}

.lp-blog-header {
    border-bottom: 1px solid var(--wm-border);
    padding: 3.5rem 0 2.5rem;
}

.lp-blog-header .lp-label {
    margin-top: 0;
}

.lp-blog-header h1 {
    font-size: clamp(2.2rem, 5vw, 3.7rem);
    font-weight: 800;
    letter-spacing: -0.02em;
    margin-bottom: 0.8rem;
}

.lp-blog-header > p:last-child {
    color: var(--wm-muted);
    font-size: 1.05rem;
    margin: 0;
}

.lp-blog-grid-page {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    margin-top: 2rem;
}

.lp-blog-pager {
    margin-top: 2rem;
}

.lp-blog-pager ul {
    display: flex;
    gap: 0.35rem;
    list-style: none;
    margin: 0;
    padding: 0;
}

.lp-blog-pager a,
.lp-blog-pager li.active {
    border: 1px solid var(--wm-border);
    border-radius: var(--wm-radius);
    display: block;
    padding: 0.45rem 0.75rem;
}

.lp-blog-pager a {
    color: var(--wm-muted);
}

.lp-blog-pager a:hover,
.lp-blog-pager li.active {
    border-color: #555;
    color: #fff;
}

.lp-article-page {
    padding-bottom: 4rem;
}

.lp-article {
    margin: 0 auto;
    max-width: 52rem;
    padding-top: 3.5rem;
}

.lp-article-header {
    margin: 0 auto 2.25rem;
    max-width: 44rem;
}

.lp-article-back {
    color: var(--wm-muted);
    display: block;
    font-size: 0.88rem;
    margin-bottom: 2.5rem;
}

.lp-article-back:hover {
    color: #fff;
}

.lp-article-header h1 {
    font-size: clamp(2.25rem, 5vw, 3.8rem);
    font-weight: 800;
    letter-spacing: -0.025em;
    line-height: 1.08;
    margin: 0.7rem 0 1rem;
}

.lp-article-header > p {
    color: var(--wm-muted);
    font-size: 1.12rem;
    line-height: 1.65;
    margin: 0;
}

.lp-article-image {
    border: 1px solid var(--wm-border);
    margin: 0 0 2.5rem;
    overflow: hidden;
}

.lp-article-image img {
    display: block;
    height: auto;
    width: 100%;
}

.lp-article-body {
    color: #d1d1d1;
    font-size: 1rem;
    line-height: 1.8;
    margin: 0 auto;
    max-width: 44rem;
    overflow-wrap: anywhere;
}

.lp-article-body h2,
.lp-article-body h3,
.lp-article-body h4 {
    color: var(--wm-text);
    font-weight: 700;
    line-height: 1.3;
    margin: 1.8em 0 0.65em;
}

.lp-article-body h2 { font-size: 1.7rem; }
.lp-article-body h3 { font-size: 1.35rem; }
.lp-article-body h4 { font-size: 1.1rem; }

.lp-article-body p,
.lp-article-body ul,
.lp-article-body ol,
.lp-article-body blockquote,
.lp-article-body pre {
    margin-bottom: 1.25rem;
}

.lp-article-body blockquote {
    border-left: 3px solid #8159ae;
    color: var(--wm-muted);
    margin-left: 0;
    padding-left: 1.2rem;
}

.lp-article-body pre {
    background: #0a0a0a;
    border: 1px solid var(--wm-border);
    border-radius: var(--wm-radius);
    overflow-x: auto;
    padding: 1rem;
    white-space: pre-wrap;
}

.lp-article-body code {
    color: #e5d4f2;
}

.lp-article-body hr {
    border-color: var(--wm-border);
    margin: 2rem 0;
    opacity: 1;
}

.lp-article-body a {
    text-decoration: underline;
    text-underline-offset: 0.15em;
}

/* --- FAQ --- */

.lp-faq-list summary:focus-visible {
    position: relative;
    z-index: 1;
    outline: 2px solid #c3a8df;
    outline-offset: -2px;
}

.lp-faq-home {
    padding-bottom: 4rem;
}

.lp-faq-section {
    scroll-margin-top: 1.5rem;
    border: 1px solid var(--wm-border);
    background: #080808;
}

.lp-faq-section > .lp-label {
    margin: 0;
    padding: 1rem 1.2rem;
    border-bottom: 1px solid var(--wm-border);
}

.lp-faq-list {
    background: #080808;
}

.lp-faq-list details {
    border-bottom: 1px solid var(--wm-border);
}

.lp-faq-list details:last-child {
    border-bottom: 0;
}

.lp-faq-list details[open] {
    background: #0a0a0a;
}

.lp-faq-list summary {
    display: flex;
    min-height: 58px;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
    padding: 1rem 1.2rem;
    color: #ececec;
    cursor: pointer;
    font-size: 0.98rem;
    font-weight: 650;
    line-height: 1.5;
    list-style: none;
}

.lp-faq-list summary::-webkit-details-marker {
    display: none;
}

.lp-faq-list summary::after {
    content: "+";
    display: grid;
    width: 1.6rem;
    height: 1.6rem;
    flex: 0 0 1.6rem;
    place-items: center;
    border: 1px solid #363636;
    color: #aaa;
    font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
    font-size: 1rem;
    font-weight: 400;
    line-height: 1;
}

.lp-faq-list details[open] > summary {
    border-bottom: 1px solid var(--wm-border);
    color: #fff;
}

.lp-faq-list details[open] > summary::after {
    content: "-";
    border-color: #5a456f;
    color: #d1b8e8;
}

.lp-faq-list summary:hover {
    background: var(--wm-hover);
}

.lp-faq-answer {
    padding: 1.15rem 1.2rem 1.3rem;
    color: #a7a7a7;
    font-size: 0.94rem;
    line-height: 1.75;
    overflow-wrap: anywhere;
}

.lp-faq-answer p {
    max-width: 46rem;
    margin: 0;
}

.lp-faq-answer p + p {
    margin-top: 0.9rem;
}

.lp-faq-answer a {
    color: #cbb3e3;
    text-decoration: underline;
    text-underline-offset: 0.18em;
}

.lp-faq-onion code {
    color: inherit;
    font-size: 0.82rem;
    word-break: break-all;
}

.lp-footer {
    background: #090909;
    border-top: 1px solid var(--wm-border);
    flex-shrink: 0;
    margin-top: auto;
    color: #767676;
    font-size: 0.9rem;
}

.lp-footer-inner {
    padding-top: 3rem;
    padding-bottom: 1.75rem;
}

.lp-footer a {
    color: #999;
}

.lp-footer a:hover {
    color: #fff;
}

.lp-footer a:focus-visible {
    border-radius: 2px;
    outline: 2px solid #cbb1e5;
    outline-offset: 4px;
}

.lp-footer-top {
    display: grid;
    grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.6fr);
    gap: clamp(3rem, 8vw, 7rem);
}

.lp-footer-brand-link {
    align-items: center;
    color: #fff !important;
    display: flex;
    font-size: 1.15rem;
    font-weight: 700;
    gap: 0.65rem;
    width: fit-content;
}

.lp-footer-brand p {
    color: #777;
    line-height: 1.65;
    margin: 1rem 0 0;
    max-width: 20rem;
}

.lp-footer-coins {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.55rem;
    margin: 1.25rem 0 0;
    padding: 0;
    list-style: none;
}

.lp-footer-coins li,
.lp-footer-coins img {
    display: block;
}

.lp-footer-coins img {
    width: 18px;
    height: 18px;
    object-fit: contain;
}

.lp-footer-groups {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: clamp(1.5rem, 4vw, 3.5rem);
}

.lp-footer-group h2 {
    color: #666;
    font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    margin: 0 0 1rem;
    text-transform: uppercase;
}

.lp-footer-group-links {
    align-items: flex-start;
    display: flex;
    flex-direction: column;
    gap: 0.7rem;
}

.lp-footer-group-links a {
    line-height: 1.35;
}

.lp-footer-bottom {
    align-items: center;
    border-top: 1px solid var(--wm-border);
    display: flex;
    font-size: 0.82rem;
    justify-content: space-between;
    margin-top: 2.75rem;
    padding-top: 1.25rem;
}

.lp-policy {
    padding-top: 4rem;
    padding-bottom: 5rem;
}

.lp-policy-header .lp-label {
    margin-top: 0;
}

.lp-policy-header h1 {
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 800;
    letter-spacing: -0.02em;
    margin-bottom: 1.5rem;
}

.lp-policy-copy p {
    color: var(--wm-muted);
    line-height: 1.7;
    margin-left: auto;
    margin-right: auto;
}

.lp-policy-updated {
    border-top: 1px solid var(--wm-border);
    margin-top: 1.5rem !important;
    padding-top: 1rem;
    font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
    font-size: 0.8rem !important;
}

@media (max-width: 900px) {
    .lp-hero {
        flex-direction: column;
        align-items: flex-start;
        padding-top: 3rem;
        padding-bottom: 3rem;
    }

    .lp-hero-art {
        display: none;
    }

    .lp-grid {
        grid-template-columns: 1fr;
    }

    .lp-grid-4 {
        grid-template-columns: repeat(2, 1fr);
    }

    .lp-premium-heading {
        align-items: flex-start;
        flex-direction: column;
        gap: 0.75rem;
    }

    .lp-plan-comparison {
        grid-template-columns: 1fr;
    }

    .lp-blog-grid,
    .lp-blog-grid-page {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .lp-tor-copy {
        padding: 2rem 1.75rem;
    }

    .lp-tor-copy h2 {
        font-size: 1.75rem;
        line-height: 1.25;
    }

    .d-none-mobile {
        display: none !important;
    }

    .lp-footer-top {
        grid-template-columns: 1fr;
        gap: 2.5rem;
    }

    .lp-footer-brand p {
        max-width: 28rem;
    }

    .lp-footer-groups {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        row-gap: 2.25rem;
    }

    .post-admin-table {
        min-width: 680px;
    }
}

@media (max-width: 700px) {
    .lp-tor-layout {
        grid-template-columns: 1fr;
    }

    .lp-tor-graphic {
        aspect-ratio: 1448 / 1086;
        min-height: 0;
    }
}

/* --- Responsive / mobile --- */

/* Mobile-only chrome, hidden on desktop */
.mobile-bar,
.mobile-back,
.sidebar-backdrop {
    display: none;
}

/* iOS: 100vh includes the URL bar; dvh tracks the visible viewport */
@supports (height: 100dvh) {
    .app,
    .auth-wrap {
        height: 100dvh !important;
    }
}

/* Tablet and below: the sidebar becomes a :target drawer */
@media (max-width: 992px) {
    .mobile-bar {
        display: flex;
    }

    /* !important needed to beat Bootstrap's .d-flex on the aside */
    .sidebar {
        display: none !important;
        position: fixed;
        top: 0;
        bottom: 0;
        left: 0;
        width: min(280px, 82vw);
        z-index: 1070;
        box-shadow: 0 0 40px rgba(0, 0, 0, 0.6);
    }

    .sidebar:target {
        display: flex !important;
    }

    .sidebar:target + .sidebar-backdrop {
        display: block;
        position: fixed;
        inset: 0;
        z-index: 1065;
        background: rgba(0, 0, 0, 0.55);
    }

    .list-pane {
        width: 340px;
    }
}

/* Phones show one pane at a time: the list or the open message. */
@media (max-width: 768px) {
    .lp-blog-grid,
    .lp-blog-grid-page {
        grid-template-columns: 1fr;
    }

    .lp-article {
        padding-top: 2rem;
    }

    .lp-article-back {
        margin-bottom: 1.75rem;
    }

    .wysiwyg-surface {
        min-height: 18rem;
    }

    .list-pane {
        width: 100% !important;
    }

    .app.has-selected .list-pane {
        display: none !important;
    }

    .app:not(.has-selected) .read-pane {
        display: none !important;
    }

    .mobile-back {
        display: flex;
        color: var(--wm-muted);
        text-decoration: none;
        font-size: 0.9rem;
    }

    .mobile-back:hover {
        color: var(--wm-text);
    }

    .read-scroll {
        padding: 0.75rem 1rem 1rem !important;
    }

    .read-top {
        flex-wrap: wrap;
    }

    .read-subject {
        font-size: 1.25rem;
        width: 100%;
    }

    .conv-body {
        padding-left: 0;
    }

    /* iOS zooms into inputs below 16px */
    .search-input,
    .c-input,
    .c-body,
    .auth-input {
        font-size: 16px;
    }

    /* Compose modal becomes a full-screen sheet */
    .compose-modal {
        padding: 0;
    }

    .compose-modal .compose-card {
        max-width: none;
        height: 100%;
        border: 0;
        border-radius: 0;
    }

    .c-body {
        min-height: 160px;
    }

    .att-name {
        max-width: 9rem;
    }

    /* Slightly bigger touch target for row stars */
    .star-btn {
        padding: 0.4rem;
    }

    .msg-item .msg-snippet {
        padding-right: 2.2rem;
    }
}

@media (max-width: 600px) {
    .lp-faq-home {
        padding-bottom: 3rem;
    }

    .lp-faq-list summary {
        gap: 1rem;
        padding: 0.9rem 1rem;
    }

    .lp-faq-answer {
        padding: 1rem;
    }

    .lp-premium {
        padding-bottom: 3rem;
    }

    .lp-plan-card {
        padding: 1.5rem;
    }

    .lp-plan-action {
        align-self: stretch;
    }

    .lp-footer-inner {
        padding-top: 2.5rem;
    }

    .lp-footer-groups {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        row-gap: 2rem;
    }

    .lp-footer-bottom {
        align-items: flex-start;
        flex-direction: column;
        gap: 0.5rem;
    }
}
