@import url('https://fonts.googleapis.com/css2?family=Fraunces:opsz,wght@9..144,400;9..144,500;9..144,600&family=IBM+Plex+Sans:wght@400;500;600;700&family=IBM+Plex+Mono:wght@400;500&display=swap');

*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html, body { height: 100%; }

.app-container {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

:root {
    --bg-primary:     #f1f3f5;
    --bg-secondary:   #e8eaed;
    --bg-tertiary:    #ffffff;
    --bg-hover:       #dde0e4;
    --bg-active:      #d0d4da;
    --text-primary:   #1a1d21;
    --text-secondary: #3c4047;
    --text-muted:     #6b7280;
    --accent:         #b3432a;
    --accent-hover:   #8f3521;
    --border:         #1a1d2115;
    --border-strong:  #1a1d2130;
    --danger:         #8a2a1a;
    --success:        #2f5d50;
    --warning:        #7a5c14;
    /* aliases — kept for component compatibility */
    --paper:          var(--bg-primary);
    --paper-2:        var(--bg-secondary);
    --card:           var(--bg-tertiary);
}

html, body {
    font-family: 'IBM Plex Sans', system-ui, sans-serif;
    font-size: 16px;
    line-height: 1.6;
    background: var(--bg-primary);
    color: var(--text-primary);
    height: 100%;
    overflow: auto;
}

h1, h2 { font-family: 'Fraunces', serif; font-weight: 500; }

/* Scrollbar */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--border); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: var(--text-muted); }

/* Sidebar */
.sidebar {
    width: 240px;
    min-width: 240px;
    background: var(--bg-secondary);
    border-right: 1px solid var(--border);
    display: flex;
    flex-direction: column;
    height: 100vh;
}

.sidebar-header {
    padding: 1.25rem 1rem;
    border-bottom: 1px solid var(--border);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.sidebar-header h1 {
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--text-primary);
    letter-spacing: -0.02em;
}

.sidebar-section {
    padding: 0.75rem 0.75rem 0.25rem;
}

.sidebar-section-title {
    font-size: 0.65rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--text-muted);
    padding: 0 0.5rem;
    margin-bottom: 0.25rem;
}

.sidebar-nav {
    flex: 1;
    overflow-y: auto;
    padding: 0.5rem 0.75rem;
}

.nav-item {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.5rem 0.75rem;
    border-radius: 6px;
    cursor: pointer;
    font-size: 0.85rem;
    color: var(--text-secondary);
    transition: all 0.15s;
    user-select: none;
}

.nav-item:hover {
    background: var(--bg-hover);
    color: var(--text-primary);
}

.nav-item.active {
    background: var(--bg-active);
    color: var(--text-primary);
}

.nav-item .count {
    margin-left: auto;
    font-size: 0.7rem;
    color: var(--text-muted);
    background: var(--bg-primary);
    padding: 0.1rem 0.45rem;
    border-radius: 10px;
}

.nav-icon {
    font-size: 1rem;
    width: 1.2rem;
    text-align: center;
}

.folder-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    flex-shrink: 0;
}

/* Note List Panel */
.note-list-panel {
    width: 300px;
    min-width: 300px;
    background: var(--bg-primary);
    border-right: 1px solid var(--border);
    display: flex;
    flex-direction: column;
    height: 100vh;
}

.note-list-header {
    padding: 1rem;
    border-bottom: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.note-list-header h2 {
    font-size: 0.95rem;
    font-weight: 600;
}

.search-box {
    margin: 0.75rem 1rem;
    position: relative;
}

.search-box input {
    width: 100%;
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    border-radius: 6px;
    padding: 0.5rem 0.75rem 0.5rem 2rem;
    color: var(--text-primary);
    font-size: 0.8rem;
    outline: none;
    transition: border-color 0.15s;
}

.search-box input:focus {
    border-color: var(--accent);
}

.search-box .search-icon {
    position: absolute;
    left: 0.65rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted);
    font-size: 0.8rem;
}

.note-list {
    flex: 1;
    overflow-y: auto;
    padding: 0.25rem 0.5rem;
}

.note-card {
    padding: 0.75rem;
    border-radius: 6px;
    cursor: pointer;
    margin-bottom: 2px;
    transition: all 0.15s;
    border: 1px solid transparent;
}

.note-card:hover {
    background: var(--bg-secondary);
}

.note-card.active {
    background: var(--bg-tertiary);
    border-color: var(--accent);
}

.note-card-title {
    font-size: 0.85rem;
    font-weight: 500;
    margin-bottom: 0.25rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.note-card-preview {
    font-size: 0.75rem;
    color: var(--text-muted);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    margin-bottom: 0.25rem;
}

.note-card-meta {
    font-size: 0.65rem;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.note-card .pin-indicator {
    color: var(--warning);
    font-size: 0.7rem;
}

/* Editor Panel */
.editor-panel {
    flex: 1;
    display: flex;
    flex-direction: column;
    height: 100vh;
    background: var(--bg-primary);
}

.editor-toolbar {
    padding: 0.75rem 1.5rem;
    border-bottom: 1px solid var(--border);
    display: flex;
    align-items: center;
    gap: 0.75rem;
    min-height: 52px;
}

.editor-title-input {
    width: 100%;
    background: transparent;
    border: none;
    color: var(--text-primary);
    font-size: 1.5rem;
    font-weight: 600;
    padding: 1rem 1.5rem 0.5rem;
    outline: none;
    letter-spacing: -0.02em;
}

.editor-title-input::placeholder {
    color: var(--text-muted);
}

.editor-content {
    flex: 1;
    overflow-y: auto;
    padding: 0 1.5rem 2rem;
}

.editor-textarea {
    width: 100%;
    height: 100%;
    min-height: 300px;
    background: transparent;
    border: none;
    color: var(--text-primary);
    font-size: 0.9rem;
    line-height: 1.7;
    resize: none;
    outline: none;
    font-family: 'Inter', sans-serif;
}

.editor-textarea::placeholder {
    color: var(--text-muted);
}

.editor-status {
    padding: 0.4rem 1.5rem;
    border-top: 1px solid var(--border);
    font-size: 0.7rem;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

/* Empty State */
.empty-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100%;
    color: var(--text-muted);
    gap: 0.75rem;
}

.empty-state-icon {
    font-size: 3rem;
    opacity: 0.3;
}

.empty-state p {
    font-size: 0.9rem;
}

/* Buttons */
.btn-icon {
    background: transparent;
    border: none;
    color: var(--text-secondary);
    cursor: pointer;
    padding: 0.4rem;
    border-radius: 4px;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.15s;
}

.btn-icon:hover {
    background: var(--bg-hover);
    color: var(--text-primary);
}

.btn-icon.danger:hover {
    color: var(--danger);
}

.btn-accent {
    background: var(--accent);
    color: white;
    border: none;
    padding: 0.4rem 0.75rem;
    border-radius: 6px;
    font-size: 0.8rem;
    cursor: pointer;
    font-weight: 500;
    transition: background 0.15s;
}

.btn-accent:hover {
    background: var(--accent-hover);
}

.btn-ghost {
    background: transparent;
    color: var(--text-secondary);
    border: 1px solid var(--border);
    padding: 0.4rem 0.75rem;
    border-radius: 6px;
    font-size: 0.8rem;
    cursor: pointer;
    transition: all 0.15s;
}

.btn-ghost:hover {
    background: var(--bg-hover);
    color: var(--text-primary);
}

/* Tags */
.tag-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    background: var(--bg-tertiary);
    color: var(--accent);
    padding: 0.15rem 0.5rem;
    border-radius: 10px;
    font-size: 0.7rem;
    font-weight: 500;
}

/* Saved indicator */
.save-indicator {
    color: var(--success);
    font-size: 0.75rem;
    display: flex;
    align-items: center;
    gap: 0.25rem;
    opacity: 0;
    transition: opacity 0.3s;
}

.save-indicator.visible {
    opacity: 1;
}

/* Folder add input */
.folder-add-input {
    background: var(--bg-primary);
    border: 1px solid var(--accent);
    border-radius: 4px;
    padding: 0.35rem 0.5rem;
    color: var(--text-primary);
    font-size: 0.8rem;
    outline: none;
    width: 100%;
}

/* Hot Note nav item */
.hot-note-nav {
    border: 1px solid rgba(245, 158, 11, 0.3);
    background: rgba(245, 158, 11, 0.05);
}

.hot-note-nav:hover {
    background: rgba(245, 158, 11, 0.12) !important;
}

.hot-note-nav.active {
    background: rgba(245, 158, 11, 0.15) !important;
    border-color: rgba(245, 158, 11, 0.5);
    color: var(--warning) !important;
}

/* Blazor error boundary */
.blazor-error-boundary {
    background: var(--danger);
    padding: 1rem;
    color: white;
}

.blazor-error-boundary::after {
    content: "An error has occurred.";
}

#blazor-error-ui {
    background: var(--danger);
    color: white;
    bottom: 0;
    display: none;
    left: 0;
    padding: 0.6rem 1.25rem;
    position: fixed;
    width: 100%;
    z-index: 1000;
}

#blazor-error-ui .dismiss {
    cursor: pointer;
    position: absolute;
    right: 0.75rem;
    top: 0.5rem;
}

/* ========== Landing Page ========== */
.landing-layout {
    background: var(--bg-primary);
}

/* Top Banner */
.landing-top {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 14px 37px 4px 24px;
    background: var(--bg-secondary);
    border-bottom: 1px solid var(--border);
}

.top-back-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    border-radius: 8px;
    background: var(--bg-primary);
    border: 1px solid var(--border);
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 1.3rem;
    font-weight: 600;
    transition: all 0.15s;
}

.top-back-btn:hover {
    background: var(--bg-hover);
    color: var(--text-primary);
    border-color: var(--accent);
}

.landing-top-logo {
    width: 36px;
    height: 36px;
}

/* Brand Name */
.brand-name {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1.5rem;
    font-weight: 700;
    letter-spacing: -0.03em;
    margin-right: auto;
    display: flex;
    align-items: baseline;
}

.brand-remem {
    color: var(--text-primary);
}

.brand-dot {
    color: var(--accent);
    font-weight: 700;
}

.brand-live {
    color: var(--text-primary);
}

.landing-top-tags {
    display: flex;
    gap: 0.4rem;
}

.landing-top-tag {
    background: var(--bg-active);
    color: var(--text-secondary);
    padding: 0.2rem 0.6rem;
    border-radius: 20px;
    font-size: 0.7rem;
    border: 1px solid var(--border);
}

.top-my-items {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 8px;
    background: rgba(129,140,248,0.08);
    border: 1px solid rgba(129,140,248,0.2);
    text-decoration: none;
    font-size: 1.1rem;
    margin-left: auto;
    transition: all 0.15s;
    flex-shrink: 0;
}
.top-my-items:hover {
    background: rgba(129,140,248,0.18);
    border-color: rgba(129,140,248,0.4);
}

/* Main Content */
.landing-main {
    display: block;
}

/* Tool List (left) */
.landing-tools {
    width: 240px;
    float: left;
    background: var(--bg-secondary);
    border-right: 1px solid var(--border);
    padding: 0.5rem 0.75rem;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.tool-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.3rem 0.3rem;
    border-radius: 8px;
    text-decoration: none;
    color: var(--text-secondary);
    transition: all 0.15s;
    cursor: pointer;
    border: 1px solid transparent;
}

.tool-item:hover {
    background: var(--bg-hover);
    color: var(--text-primary);
}

.tool-item.active {
    background: var(--bg-active);
    color: var(--text-primary);
}

.tool-secure.active { border-color: rgba(99, 102, 241, 0.4); }
.tool-burn.active { border-color: rgba(239, 68, 68, 0.4); }
.tool-paste.active { border-color: rgba(16, 185, 129, 0.4); }
.tool-clip.active { border-color: rgba(245, 158, 11, 0.4); }
.tool-transfer.active { border-color: rgba(56, 189, 248, 0.4); }
.tool-qr.active { border-color: rgba(167, 139, 250, 0.4); }

.tool-icon {
    font-size: 1.1rem;
    width: 1.4rem;
    text-align: center;
}

.tool-name {
    font-size: 0.85rem;
    font-weight: 500;
}

/* Coming Soon divider & items */
.tool-divider {
    height: 1px;
    background: var(--border);
    margin: 0.5rem 0;
}

.tool-section-label {
    font-size: 0.65rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--text-muted);
    padding: 0.2rem 0.75rem;
    opacity: 0.6;
}

.tool-item.tool-soon {
    opacity: 0.45;
    cursor: default;
}

.tool-item.tool-soon:hover {
    opacity: 0.7;
    background: var(--bg-hover);
}

.detail-icon-soon { opacity: 0.4; }

.detail-tag-soon {
    background: rgba(245, 158, 11, 0.15) !important;
    border-color: rgba(245, 158, 11, 0.4) !important;
    color: #f59e0b !important;
}

/* Detail Panel */
.landing-detail {
    margin-left: 240px;
    padding: 3rem 16rem 0 0;
    text-align: center;
}

.landing-detail > * {
    margin-left: auto;
    margin-right: auto;
}

.detail-icon {
    font-size: 4rem;
    margin-bottom: 1.5rem;
    opacity: 0.8;
}

.detail-title {
    font-size: 1.75rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
    letter-spacing: -0.02em;
}

.detail-desc {
    font-size: 0.95rem;
    color: var(--text-secondary);
    line-height: 1.7;
    max-width: 440px;
    margin-bottom: 1.5rem;
}

.detail-features {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 2rem;
    flex-wrap: wrap;
    justify-content: center;
}

.detail-tag {
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    padding: 0.3rem 0.75rem;
    border-radius: 20px;
    font-size: 0.75rem;
    color: var(--text-secondary);
}

.detail-btn {
    display: inline-block;
    padding: 0.65rem 1.5rem;
    border-radius: 8px;
    font-size: 0.9rem;
    font-weight: 500;
    text-decoration: none;
    color: white;
    transition: opacity 0.15s;
}

.detail-btn:hover { opacity: 0.85; }

.detail-btn-secure,
.detail-btn-burn,
.detail-btn-paste,
.detail-btn-clip,
.detail-btn-transfer,
.detail-btn-qr,
.detail-btn-call { background: var(--accent); color: var(--paper); }

.btn-primary {
    display: inline-block;
    padding: 0.6rem 1.4rem;
    background: var(--accent);
    color: var(--paper);
    border: none;
    border-radius: 6px;
    font-family: 'IBM Plex Sans', system-ui, sans-serif;
    font-size: 0.9rem;
    font-weight: 500;
    text-decoration: none;
    cursor: pointer;
    transition: background 0.15s;
}
.btn-primary:hover { background: var(--accent-hover); color: var(--paper); }

.detail-empty {
    color: var(--text-muted);
    font-size: 0.9rem;
}

@media (max-width: 600px) {
    .landing-main { flex-direction: column; }
    .landing-tools {
        width: 100%;
        min-width: unset;
        flex-direction: row;
        overflow-x: auto;
        border-right: none;
        border-bottom: 1px solid var(--border);
        padding: 0.4rem 0.25rem;
        gap: 0;
        justify-content: space-evenly;
    }
    .tool-item {
        flex-direction: column;
        gap: 0.2rem;
        padding: 0.4rem 0.3rem;
        text-align: center;
        min-width: 0;
        flex: 1;
        border-left: solid #253350;
        border-right: solid #253350;
        margin: 2px;
    }
    .tool-icon { font-size: 1.2rem; width: auto; }
    .tool-name { font-size: 0.6rem; white-space: nowrap; }
    .tool-divider, .tool-section-label, .tool-item.tool-soon { display: none; }
    .landing-detail { padding: 2rem 1rem; margin-left: 2px; }
    .landing-top-tags { display: none; }
}

/* ===== Tool split layout ===== */
.tool-split {
    display: grid;
    grid-template-columns: minmax(300px, 0.82fr) minmax(520px, 1.18fr);
    gap: clamp(3rem, 5vw, 6rem);
    width: min(100% - 4rem, 1440px);
    margin: 0 auto;
    padding: clamp(3rem, 6vh, 5rem) 0;
    align-items: start;
}
.tool-explain {
    border-right: 1px solid var(--border);
    padding-right: clamp(2.5rem, 4vw, 4.5rem);
    max-width: 520px;
    justify-self: end;
}
.tool-kicker { font-family: 'IBM Plex Mono', monospace; font-size: 0.7rem; letter-spacing: 0.18em; text-transform: uppercase; color: var(--text-muted); }
.tool-h1 { font-family: 'Fraunces', serif; font-weight: 500; font-size: 2.4rem; line-height: 1.05; letter-spacing: -0.02em; margin: 0.5rem 0 1rem; }
.tool-lede { color: var(--text-secondary); font-size: 1rem; line-height: 1.6; }
.tool-facts { list-style: none; padding: 0; margin: 1.25rem 0 0; display: flex; flex-direction: column; gap: 0.5rem; font-size: 0.9rem; color: var(--text-secondary); }
.tool-facts li::before { content: "— "; color: var(--accent); }
.tool-form { width: 100%; min-width: 0; padding-top: 0.5rem; }
.secure-warn-quiet { font-size: 0.8rem; color: var(--text-muted); margin: 0.25rem 0 0.75rem; }
@media (max-width: 820px) {
    .tool-split { grid-template-columns: 1fr; width: 100%; gap: 1.5rem; padding: 2rem 1.25rem; }
    .tool-explain { border-right: none; border-bottom: 1px solid var(--border); padding-right: 0; padding-bottom: 1.5rem; }
}
@media (max-width: 560px) {
    .tool-split {
        gap: 1rem;
        padding: 1.25rem 0.9rem 2rem;
    }
    .tool-explain {
        padding-bottom: 1rem;
    }
    .tool-kicker {
        font-size: 0.62rem;
        letter-spacing: 0.14em;
    }
    .tool-h1 {
        font-size: 1.8rem;
        line-height: 1.12;
        margin: 0.4rem 0 0.75rem;
    }
    .tool-lede {
        font-size: 0.95rem;
        line-height: 1.55;
        margin-bottom: 0;
    }
    .tool-facts {
        gap: 0.35rem;
        margin-top: 0.9rem;
        font-size: 0.84rem;
    }
    .tool-form {
        min-width: 0;
        padding-top: 0;
    }
    .tool-form input,
    .tool-form select,
    .tool-form textarea,
    .tool-form button {
        max-width: 100%;
    }
    .url-bar {
        flex-direction: column;
        align-items: stretch;
        overflow: hidden;
    }
    .url-bar code {
        white-space: normal;
        overflow-wrap: anywhere;
    }
    .url-bar-copy {
        width: 100%;
    }
}

/* ===== New Grid Landing ===== */
.landing { max-width: 1040px; margin: 0 auto; padding: 4rem 2rem 6rem; }

.landing-hero { margin-bottom: 4rem; }
.landing-kicker { font-family: 'IBM Plex Mono', monospace; font-size: 0.7rem; letter-spacing: 0.18em; text-transform: uppercase; color: var(--text-muted); margin-bottom: 0.75rem; }
.landing-h1 { font-family: 'Fraunces', serif; font-weight: 500; font-size: 3rem; line-height: 1.05; letter-spacing: -0.03em; margin: 0 0 1rem; color: var(--text-primary); }
.landing-h1 em { font-style: italic; color: var(--accent); }
.landing-lede { font-size: 1.1rem; color: var(--text-secondary); line-height: 1.6; max-width: 520px; margin: 0; }

.seo-intro { margin: 0 0 3rem; max-width: 760px; }
.tools-page .seo-intro { margin-left: auto; margin-right: auto; text-align: center; }
.seo-intro-h1 { font-family: 'Fraunces', serif; font-weight: 600; font-size: 1.9rem; line-height: 1.2; letter-spacing: -0.02em; margin: 0 0 0.6rem; color: var(--text-primary); }
.seo-intro-sub { font-size: 1.05rem; color: var(--text-secondary); line-height: 1.65; margin: 0; }
@media (max-width: 640px) { .seo-intro-h1 { font-size: 1.5rem; } }

.ss-mini {
    max-width: 1000px;
    margin: -1.4rem auto 2.2rem;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 1rem;
    align-items: center;
    padding: 1rem;
    border: 1px solid rgba(79,70,229,0.18);
    border-radius: 10px;
    background: rgba(79,70,229,0.06);
}
.ss-mini-tools { margin-top: -1.6rem; }
.ss-mini-kicker {
    color: var(--accent);
    font-size: 0.74rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    margin-bottom: 0.2rem;
}
.ss-mini h2 {
    font-family: 'Fraunces', serif;
    font-size: 1.35rem;
    line-height: 1.2;
    margin: 0 0 0.3rem;
    color: var(--text-primary);
}
.ss-mini p { margin: 0; color: var(--text-secondary); line-height: 1.5; font-size: 0.92rem; }
.ss-mini-actions { display: flex; align-items: center; gap: 0.55rem; flex-wrap: wrap; justify-content: flex-end; }
.ss-mini-primary,
.ss-mini-join button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 40px;
    border-radius: 8px;
    padding: 0 0.9rem;
    border: 1px solid rgba(79,70,229,0.28);
    background: rgba(79,70,229,0.14);
    color: var(--accent);
    font-weight: 800;
    font-size: 0.84rem;
    text-decoration: none;
    cursor: pointer;
}
.ss-mini-primary:hover,
.ss-mini-join button:hover { background: rgba(79,70,229,0.22); }
.ss-mini-join { display: flex; gap: 0.4rem; margin: 0; }
.ss-mini-join input {
    width: 92px;
    min-height: 40px;
    border: 1px solid var(--border);
    border-radius: 8px;
    background: var(--bg-primary);
    color: var(--text-primary);
    font-family: 'IBM Plex Mono', monospace;
    text-align: center;
    letter-spacing: 0.12em;
    font-size: 0.9rem;
    outline: none;
}
.ss-mini-join input:focus { border-color: var(--accent); }
@media (max-width: 760px) {
    .ss-mini { grid-template-columns: 1fr; margin-top: -1rem; }
    .ss-mini-actions { justify-content: stretch; }
    .ss-mini-primary { flex: 1; }
    .ss-mini-join { flex: 1; }
    .ss-mini-join input { flex: 1; width: auto; }
}

.tool-related-band {
    width: min(100% - 4rem, 1120px);
    margin: 1.5rem auto 2rem;
    padding: 1rem;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 1rem;
    align-items: center;
    border: 1px solid var(--border);
    border-radius: 10px;
    background: var(--bg-secondary);
    font-family: 'IBM Plex Sans', sans-serif;
}
.tool-related-band h2 {
    font-family: 'Fraunces', serif;
    font-size: 1.2rem;
    margin: 0 0 0.3rem;
    color: var(--text-primary);
}
.tool-related-band p { margin: 0; color: var(--text-secondary); line-height: 1.5; font-size: 0.9rem; }
.tool-related-band a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 40px;
    padding: 0 0.9rem;
    border-radius: 8px;
    border: 1px solid rgba(79,70,229,0.28);
    background: rgba(79,70,229,0.12);
    color: var(--accent);
    text-decoration: none;
    font-size: 0.84rem;
    font-weight: 800;
    white-space: nowrap;
}
.tool-related-band a:hover { background: rgba(79,70,229,0.2); }
@media (max-width: 640px) {
    .tool-related-band { grid-template-columns: 1fr; width: auto; margin-left: 1rem; margin-right: 1rem; }
    .tool-related-band a { width: 100%; }
}

.utility-card {
    border: 1px solid var(--border);
    background: var(--bg-secondary);
    border-radius: 12px;
    padding: 1rem;
    font-family: 'IBM Plex Sans', sans-serif;
    width: 100%;
}
.utility-label {
    display: block;
    margin: 0 0 0.45rem;
    color: var(--text-primary);
    font-size: 0.88rem;
    font-weight: 800;
}
.utility-textarea {
    width: 100%;
    min-width: 0;
    border: 1px solid var(--border);
    border-radius: 8px;
    background: var(--bg-primary);
    color: var(--text-primary);
    padding: 0.8rem;
    font: 0.9rem/1.5 'IBM Plex Mono', monospace;
    resize: vertical;
    outline: none;
}
.utility-textarea:focus { border-color: var(--accent); }
.utility-output { color: var(--text-secondary); }
.utility-actions {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
    margin-top: 0.75rem;
}
.utility-primary,
.utility-secondary {
    border-radius: 8px;
    min-height: 40px;
    padding: 0 0.9rem;
    font-size: 0.84rem;
    font-weight: 800;
    cursor: pointer;
}
.utility-primary {
    border: 1px solid rgba(99,102,241,0.28);
    background: var(--accent);
    color: #fff;
}
.utility-secondary {
    border: 1px solid var(--border);
    background: var(--bg-primary);
    color: var(--text-primary);
}
.utility-primary:hover,
.utility-secondary:hover { filter: brightness(1.04); }
.utility-status {
    margin: 0.75rem 0 0;
    color: var(--text-muted);
    font-size: 0.82rem;
    line-height: 1.45;
}
.utility-result {
    display: grid;
    gap: 1rem;
    margin-top: 1rem;
}
.utility-kv-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.55rem;
}
.utility-kv-grid div,
.tool-kv-row,
.tool-row-empty {
    border: 1px solid var(--border);
    border-radius: 8px;
    background: var(--bg-primary);
    padding: 0.65rem 0.75rem;
}
.utility-kv-grid span {
    display: block;
    margin-bottom: 0.25rem;
    color: var(--text-muted);
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}
.utility-kv-grid strong {
    display: block;
    min-width: 0;
    overflow-wrap: anywhere;
    color: var(--text-primary);
    font-size: 0.88rem;
}
.utility-h2 {
    font-family: 'Fraunces', serif;
    font-size: 1.2rem;
    margin: 0 0 0.75rem;
    color: var(--text-primary);
}
.tool-param-list {
    display: grid;
    gap: 0.5rem;
}
.tool-kv-row {
    display: grid;
    grid-template-columns: minmax(110px, 0.35fr) minmax(0, 1fr);
    gap: 0.75rem;
}
.tool-kv-row strong {
    min-width: 0;
    overflow-wrap: anywhere;
    color: var(--accent);
    font-family: 'IBM Plex Mono', monospace;
    font-size: 0.82rem;
}
.tool-kv-row span,
.tool-row-empty {
    min-width: 0;
    overflow-wrap: anywhere;
    color: var(--text-secondary);
    font-size: 0.86rem;
}
.utility-dropzone {
    display: flex;
    min-height: 220px;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.45rem;
    border: 1px dashed var(--border-strong);
    border-radius: 10px;
    background: var(--bg-primary);
    color: var(--text-secondary);
    cursor: pointer;
    text-align: center;
}
.utility-file {
    position: absolute;
    width: 1px;
    height: 1px;
    opacity: 0;
    pointer-events: none;
}
.utility-drop-icon { font-size: 2.5rem; }
.utility-drop-title { color: var(--text-primary); font-weight: 800; }
.utility-drop-hint { color: var(--text-muted); font-size: 0.86rem; }
.screenshot-workspace {
    display: grid;
    gap: 0.8rem;
    margin-top: 1rem;
}
.screenshot-toolbar {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}
.screenshot-canvas-wrap {
    max-height: 520px;
    overflow: auto;
    border: 1px solid var(--border);
    border-radius: 10px;
    background: var(--bg-primary);
}
.screenshot-canvas {
    display: block;
    max-width: 100%;
    height: auto;
    touch-action: none;
    cursor: crosshair;
}
.devtools-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 1rem;
    align-items: start;
}
.devtools-area { min-height: 390px; }
@media (max-width: 820px) {
    .devtools-grid,
    .utility-kv-grid,
    .tool-kv-row { grid-template-columns: 1fr; }
}

.tool-seo { width: min(100% - 4rem, 1120px); margin: 4rem auto 0; padding: 0 0 3rem; font-family: 'IBM Plex Sans', sans-serif; }
.tool-seo-inner { display: flex; flex-direction: column; gap: 2.5rem; }
.tool-seo-block { max-width: 820px; margin: 0 auto; width: 100%; }
.tool-seo-h2 { font-family: 'Fraunces', serif; font-weight: 600; font-size: 1.5rem; letter-spacing: -0.02em; margin: 0 0 1rem; color: var(--text-primary); }
.tool-seo-uses { margin: 0; padding-left: 1.2rem; }
.tool-seo-uses li { font-size: 1rem; line-height: 1.7; margin-bottom: 0.45rem; color: var(--text-secondary); }
.tool-seo-faq { display: flex; flex-direction: column; gap: 0.55rem; }
.tool-seo-faq-item { border: 1px solid var(--border); border-radius: 10px; padding: 0.9rem 1.1rem; background: var(--bg-secondary); }
.tool-seo-faq-item summary { font-weight: 600; cursor: pointer; color: var(--text-primary); font-size: 1rem; list-style: none; display: flex; justify-content: space-between; gap: 1rem; }
.tool-seo-faq-item summary::-webkit-details-marker { display: none; }
.tool-seo-faq-item summary::after { content: '+'; color: var(--text-muted); font-weight: 400; }
.tool-seo-faq-item[open] summary::after { content: '\2212'; }
.tool-seo-faq-item p { margin: 0.7rem 0 0; color: var(--text-secondary); line-height: 1.65; font-size: 0.97rem; }
@media (max-width: 640px) { .tool-seo-h2 { font-size: 1.3rem; } }

.tool-seo-compare { margin: 0; font-size: 0.97rem; }
.tool-seo-compare a { color: var(--accent); text-decoration: none; font-weight: 500; }
.tool-seo-compare a:hover { text-decoration: underline; }
.tool-seo-links {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.5rem 0.8rem;
    padding: 0.9rem 1rem;
    border: 1px solid var(--border);
    border-radius: 8px;
    background: var(--bg-secondary);
    font-size: 0.9rem;
}
.tool-seo-links span {
    color: var(--text-primary);
    font-weight: 600;
}
.tool-seo-links a {
    color: var(--accent);
    text-decoration: none;
    font-weight: 500;
}
.tool-seo-links a:hover { text-decoration: underline; }

.tool-longform { max-width: 760px; margin: 4rem auto 0; padding: 0 1.5rem; font-family: 'IBM Plex Sans', sans-serif; color: var(--text-secondary); }
.tool-longform-inner { display: flex; flex-direction: column; gap: 1.1rem; }
.tool-longform h2 { font-family: 'Fraunces', serif; font-weight: 600; font-size: 1.5rem; letter-spacing: -0.02em; color: var(--text-primary); margin: 1.5rem 0 0.25rem; }
.tool-longform h2:first-child { margin-top: 0; }
.tool-longform p { font-size: 1rem; line-height: 1.7; margin: 0; }
.tool-longform ul, .tool-longform ol { margin: 0; padding-left: 1.25rem; }
.tool-longform li { font-size: 1rem; line-height: 1.7; margin-bottom: 0.45rem; }
.tool-longform a { color: var(--accent); text-decoration: none; }
.tool-longform a:hover { text-decoration: underline; }
@media (max-width: 640px) { .tool-longform h2 { font-size: 1.3rem; } }

.cmp-page { max-width: 820px; margin: 2rem auto 0; padding: 0 1.5rem; font-family: 'IBM Plex Sans', sans-serif; color: var(--text-primary); }
.cmp-kicker { font-family: 'IBM Plex Mono', monospace; font-size: 0.7rem; letter-spacing: 0.18em; text-transform: uppercase; color: var(--text-muted); margin-bottom: 0.75rem; }
.cmp-h1 { font-family: 'Fraunces', serif; font-weight: 600; font-size: 2.3rem; line-height: 1.12; letter-spacing: -0.02em; margin: 0 0 1rem; }
.cmp-lede { font-size: 1.1rem; color: var(--text-secondary); line-height: 1.6; margin: 0; }
.cmp-section { margin-top: 2.6rem; }
.cmp-section h2 { font-family: 'Fraunces', serif; font-weight: 600; font-size: 1.5rem; margin: 0 0 0.9rem; letter-spacing: -0.02em; }
.cmp-section p { font-size: 1rem; line-height: 1.7; color: var(--text-secondary); margin: 0 0 0.9rem; }
.cmp-table { width: 100%; border-collapse: collapse; font-size: 0.97rem; }
.cmp-table th, .cmp-table td { text-align: left; padding: 0.7rem 0.9rem; border-bottom: 1px solid var(--border); }
.cmp-table thead th { font-weight: 600; color: var(--text-primary); border-bottom: 2px solid var(--border); }
.cmp-table tbody th { font-weight: 500; color: var(--text-primary); }
.cmp-table td { color: var(--text-secondary); }
.cmp-table td.cmp-yes { color: #1a7f37; font-weight: 600; }
.cmp-table td.cmp-no { color: #b42318; font-weight: 600; }
.cmp-cta { margin: 2.6rem 0 1rem; text-align: center; }
.cmp-cta-btn { display: inline-block; background: var(--accent); color: #fff; font-weight: 600; padding: 0.8rem 1.7rem; border-radius: 10px; text-decoration: none; }
.cmp-cta-btn:hover { opacity: 0.92; }
.roundup-list { display: flex; flex-direction: column; gap: 0.6rem; margin-top: 1rem; }
.roundup-item { display: block; border: 1px solid var(--border); border-radius: 10px; padding: 1rem 1.2rem; text-decoration: none; background: var(--bg-secondary); }
.roundup-item:hover { border-color: var(--accent); }
.roundup-item h3 { font-family: 'Fraunces', serif; font-weight: 600; font-size: 1.15rem; margin: 0 0 0.3rem; color: var(--text-primary); }
.roundup-item p { margin: 0; color: var(--text-secondary); font-size: 0.97rem; }
@media (max-width: 640px) { .cmp-h1 { font-size: 1.7rem; } .cmp-table { font-size: 0.86rem; } .cmp-table th, .cmp-table td { padding: 0.55rem 0.5rem; } }

.landing-group { margin-bottom: 3.5rem; }
.landing-group-label { font-family: 'IBM Plex Mono', monospace; font-size: 0.65rem; letter-spacing: 0.15em; text-transform: uppercase; color: var(--text-muted); margin-bottom: 1rem; padding-bottom: 0.5rem; border-bottom: 1px solid var(--border); }
.landing-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0.75rem; }

.landing-card { display: flex; flex-direction: column; gap: 0.35rem; padding: 1.1rem 1.25rem; background: var(--bg-secondary); border: 1px solid var(--border); border-radius: 10px; text-decoration: none; color: inherit; transition: border-color 0.15s, background 0.15s; }
.landing-card:hover { border-color: var(--accent); background: var(--bg-hover, rgba(255,255,255,0.03)); }
.landing-card-name { font-size: 0.95rem; font-weight: 600; color: var(--text-primary); }
.landing-card-one { font-size: 0.82rem; color: var(--text-secondary); line-height: 1.45; }
.landing-card-claims { display: flex; gap: 0.4rem; flex-wrap: wrap; margin-top: 0.6rem; }
.landing-claim { font-family: 'IBM Plex Mono', monospace; font-size: 0.65rem; color: var(--text-muted); background: var(--bg-active); border-radius: 4px; padding: 0.15rem 0.45rem; white-space: nowrap; }

@media (max-width: 640px) {
    .landing { padding: 2.5rem 1.25rem 4rem; }
    .landing-h1 { font-size: 2.1rem; }
    .landing-grid { grid-template-columns: 1fr 1fr; gap: 0.5rem; }
    .landing-card { padding: 0.9rem 1rem; }
}
@media (max-width: 400px) {
    .landing-grid { grid-template-columns: 1fr; }
}

/* ========== Secure Note Page ========== */
.secure-container {
    display: flex;
    align-items: flex-start;
    justify-content: center;
    min-height: calc(100vh - 62px);
    padding: 4rem 2rem 2rem;
    background: var(--bg-primary);
}

.secure-card {
    width: 100%;
    max-width: 680px;
    text-align: center;
}

.secure-logo {
    font-size: 3rem;
    margin-bottom: 1rem;
    opacity: 0.8;
}

.secure-title {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    letter-spacing: -0.02em;
}

.secure-subtitle {
    font-size: 0.85rem;
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

.secure-warning {
    background: rgba(245, 158, 11, 0.1);
    border: 1px solid rgba(245, 158, 11, 0.3);
    border-radius: 8px;
    padding: 0.75rem 1rem;
    font-size: 0.8rem;
    color: var(--warning);
    margin-bottom: 1.5rem;
    line-height: 1.5;
}

.secure-form {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.secure-input {
    width: 100%;
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 0.75rem 1rem;
    color: var(--text-primary);
    font-size: 0.9rem;
    outline: none;
    text-align: center;
    letter-spacing: 0.1em;
    transition: border-color 0.15s;
}

.secure-input:focus {
    border-color: var(--accent);
}

.secure-input::placeholder {
    color: var(--text-muted);
    letter-spacing: normal;
}

.secure-error {
    color: var(--danger);
    font-size: 0.8rem;
}

.secure-btn {
    background: var(--accent);
    color: white;
    border: none;
    padding: 0.7rem 1.5rem;
    border-radius: 8px;
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    transition: background 0.15s;
}

.secure-btn:hover:not(:disabled) {
    background: var(--accent-hover);
}

.secure-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.secure-btn-ghost {
    background: transparent;
    color: var(--text-secondary);
    border: 1px solid var(--border);
    padding: 0.5rem 1rem;
    border-radius: 8px;
    font-size: 0.85rem;
    cursor: pointer;
    transition: all 0.15s;
}

.secure-btn-ghost:hover {
    background: var(--bg-hover);
    color: var(--text-primary);
}

.secure-hint {
    font-size: 0.75rem;
    color: var(--text-muted);
    margin-top: 0.25rem;
}

/* Secure Editor */
.secure-editor-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1rem;
    border-bottom: 1px solid var(--border);
}

.secure-editor-label {
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--text-secondary);
}

.secure-editor-textarea {
    width: 100%;
    min-height: 60vh;
    background: transparent;
    border: none;
    color: var(--text-primary);
    font-size: 0.9rem;
    line-height: 1.7;
    resize: none;
    outline: none;
    padding: 1rem;
    font-family: 'Inter', sans-serif;
}

.secure-editor-textarea::placeholder {
    color: var(--text-muted);
}

.secure-editor-status {
    padding: 0.4rem 1rem;
    border-top: 1px solid var(--border);
    font-size: 0.7rem;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

/* ========== Burn Note Page ========== */
.burn-container {
    display: flex;
    align-items: flex-start;
    justify-content: center;
    min-height: calc(100vh - 62px);
    padding: 4rem 2rem 2rem;
    background: var(--bg-primary);
}

.burn-card {
    width: 100%;
    max-width: 680px;
    text-align: center;
}

.burn-logo {
    font-size: 3rem;
    margin-bottom: 1rem;
    opacity: 0.8;
}

.burn-destroyed-icon {
    opacity: 0.4;
}

.burn-title {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    letter-spacing: -0.02em;
}

.burn-subtitle {
    font-size: 0.85rem;
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

.burn-warning {
    background: rgba(245, 158, 11, 0.1);
    border: 1px solid rgba(245, 158, 11, 0.3);
    border-radius: 8px;
    padding: 0.75rem 1rem;
    font-size: 0.8rem;
    color: var(--warning);
    margin-bottom: 1.5rem;
    line-height: 1.5;
    text-align: left;
}

.burn-form {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.burn-textarea {
    width: 100%;
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 0.75rem 1rem;
    color: var(--text-primary);
    font-size: 0.9rem;
    line-height: 1.6;
    resize: vertical;
    outline: none;
    font-family: 'Inter', sans-serif;
    transition: border-color 0.15s;
}

.burn-textarea:focus {
    border-color: var(--accent);
}

.burn-textarea::placeholder {
    color: var(--text-muted);
}

.burn-btn {
    background: linear-gradient(135deg, #ef4444, #f59e0b);
    color: white;
    border: none;
    padding: 0.7rem 1.5rem;
    border-radius: 8px;
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    transition: opacity 0.15s;
}

.burn-btn:hover:not(:disabled) {
    opacity: 0.9;
}

.burn-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.burn-btn-ghost {
    background: transparent;
    color: var(--text-secondary);
    border: 1px solid var(--border);
    padding: 0.5rem 1rem;
    border-radius: 8px;
    font-size: 0.85rem;
    cursor: pointer;
    transition: all 0.15s;
}

.burn-btn-ghost:hover {
    background: var(--bg-hover);
    color: var(--text-primary);
}

.burn-link-box {
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 0.75rem 1rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.burn-link-box code {
    flex: 1;
    font-size: 0.8rem;
    color: var(--accent);
    word-break: break-all;
    text-align: left;
}

.burn-copy-btn {
    background: var(--accent);
    color: white;
    border: none;
    padding: 0.4rem 0.75rem;
    border-radius: 6px;
    font-size: 0.75rem;
    cursor: pointer;
    white-space: nowrap;
    transition: background 0.15s;
}

.burn-copy-btn:hover {
    background: var(--accent-hover);
}

/* Burn viewer */
.burn-editor-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1rem;
    border-bottom: 1px solid var(--border);
}

.burn-editor-label {
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--text-secondary);
}

.burn-countdown {
    font-size: 1.1rem;
    font-weight: 700;
    font-variant-numeric: tabular-nums;
    color: var(--danger);
    letter-spacing: 0.05em;
}

.burn-content {
    padding: 1.5rem 1rem;
    font-size: 0.9rem;
    line-height: 1.7;
    color: var(--text-primary);
    text-align: left;
    white-space: pre-wrap;
    word-break: break-word;
    min-height: 200px;
}

.burn-editor-status {
    padding: 0.4rem 1rem;
    border-top: 1px solid var(--border);
    font-size: 0.7rem;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

/* ========== Paste Bin Page ========== */
.paste-container {
    display: flex;
    align-items: flex-start;
    justify-content: center;
    min-height: calc(100vh - 62px);
    padding: 4rem 2rem 2rem;
    background: var(--bg-primary);
}

.paste-card {
    width: 100%;
    max-width: 640px;
    text-align: center;
}

.paste-logo { font-size: 3rem; margin-bottom: 1rem; opacity: 0.8; }
.paste-title { font-size: 1.5rem; font-weight: 700; margin-bottom: 0.5rem; letter-spacing: -0.02em; }
.paste-subtitle { font-size: 0.85rem; color: var(--text-secondary); line-height: 1.6; margin-bottom: 1.5rem; }
.paste-hint { font-size: 0.75rem; color: var(--text-muted); }

.paste-form {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.paste-input, .paste-select {
    width: 100%;
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 0.6rem 1rem;
    color: var(--text-primary);
    font-size: 0.85rem;
    outline: none;
    transition: border-color 0.15s;
}

.paste-input:focus { border-color: var(--accent); }

.paste-textarea {
    width: 100%;
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 0.75rem 1rem;
    color: var(--text-primary);
    font-size: 0.85rem;
    line-height: 1.6;
    resize: vertical;
    outline: none;
    font-family: 'Courier New', monospace;
    transition: border-color 0.15s;
}

.paste-textarea:focus { border-color: var(--accent); }

.paste-options {
    display: flex;
    gap: 0.75rem;
}

.paste-options .paste-select { flex: 1; }

.paste-btn {
    background: var(--accent);
    color: white;
    border: none;
    padding: 0.7rem 1.5rem;
    border-radius: 8px;
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    transition: background 0.15s;
}

.paste-btn:hover:not(:disabled) { background: var(--accent-hover); }
.paste-btn:disabled { opacity: 0.5; cursor: not-allowed; }

.paste-btn-ghost {
    background: transparent;
    color: var(--text-secondary);
    border: 1px solid var(--border);
    padding: 0.5rem 1rem;
    border-radius: 8px;
    font-size: 0.85rem;
    cursor: pointer;
    transition: all 0.15s;
}

.paste-btn-ghost:hover { background: var(--bg-hover); color: var(--text-primary); }

.paste-link-box {
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 0.75rem 1rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.paste-link-box code {
    flex: 1;
    font-size: 0.8rem;
    color: var(--accent);
    word-break: break-all;
    text-align: left;
}

.paste-copy-btn {
    background: var(--accent);
    color: white;
    border: none;
    padding: 0.4rem 0.75rem;
    border-radius: 6px;
    font-size: 0.75rem;
    cursor: pointer;
    white-space: nowrap;
    transition: background 0.15s;
}

.paste-copy-btn:hover { background: var(--accent-hover); }

/* Paste view */
.paste-view-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1rem;
    border-bottom: 1px solid var(--border);
    text-align: left;
}

.paste-view-title { font-size: 0.95rem; font-weight: 600; }

.paste-view-meta {
    font-size: 0.7rem;
    color: var(--text-muted);
    background: var(--bg-primary);
    padding: 0.2rem 0.5rem;
    border-radius: 4px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.paste-view-content {
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 1rem;
    text-align: left;
    overflow-x: auto;
    font-size: 0.8rem;
    line-height: 1.7;
    margin-top: 1rem;
    white-space: pre-wrap;
    word-break: break-word;
    max-height: 60vh;
    overflow-y: auto;
}

.paste-view-content code {
    color: var(--text-primary);
    font-family: 'Courier New', monospace;
}

.paste-view-footer {
    padding: 0.5rem 1rem;
    font-size: 0.7rem;
    color: var(--text-muted);
    display: flex;
    justify-content: space-between;
    margin-top: 0.5rem;
}

/* ========== Shared Clipboard Page ========== */
.clip-container {
    display: flex;
    align-items: flex-start;
    justify-content: center;
    min-height: calc(100vh - 62px);
    padding: 4rem 2rem 2rem;
    background: var(--bg-primary);
}

.clip-card {
    width: 100%;
    max-width: 680px;
    text-align: center;
}

.clip-card-wide {
    max-width: 1180px;
    text-align: left;
}

.clip-logo { font-size: 3rem; margin-bottom: 1rem; opacity: 0.8; }
.clip-title { font-size: 1.5rem; font-weight: 700; margin-bottom: 0.5rem; letter-spacing: -0.02em; }
.clip-subtitle { font-size: 0.85rem; color: var(--text-secondary); line-height: 1.6; margin-bottom: 1.5rem; }

.clip-form {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.clip-input {
    width: 100%;
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 0.75rem 1rem;
    color: var(--text-primary);
    font-size: 1.5rem;
    font-weight: 700;
    outline: none;
    text-align: center;
    letter-spacing: 0.3em;
    transition: border-color 0.15s;
}

.clip-input:focus { border-color: var(--accent); }
.clip-input::placeholder { color: var(--text-muted); font-size: 0.9rem; font-weight: 400; letter-spacing: normal; }

.clip-btn {
    background: var(--accent);
    color: white;
    border: none;
    padding: 0.7rem 1.5rem;
    border-radius: 8px;
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    transition: background 0.15s;
}

.clip-btn:hover:not(:disabled) { background: var(--accent-hover); }
.clip-btn:disabled { opacity: 0.5; cursor: not-allowed; }

.clip-btn-ghost {
    background: transparent;
    color: var(--text-secondary);
    border: 1px solid var(--border);
    padding: 0.5rem 1rem;
    border-radius: 8px;
    font-size: 0.85rem;
    cursor: pointer;
    transition: all 0.15s;
}

.clip-btn-ghost:hover { background: var(--bg-hover); color: var(--text-primary); }

.clip-divider {
    display: flex;
    align-items: center;
    gap: 1rem;
    color: var(--text-muted);
    font-size: 0.75rem;
}

.clip-divider::before, .clip-divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: var(--border);
}

.clip-room-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1rem;
    border-bottom: 1px solid var(--border);
}

.clip-room-label { font-size: 0.85rem; font-weight: 500; color: var(--text-secondary); }

.clip-room-code {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--accent);
    letter-spacing: 0.2em;
}

.clip-copy-btn {
    background: var(--accent);
    color: white;
    border: none;
    padding: 0.3rem 0.6rem;
    border-radius: 6px;
    font-size: 0.7rem;
    cursor: pointer;
    white-space: nowrap;
    transition: background 0.15s;
}

.clip-copy-btn:hover { background: var(--accent-hover); }

.clip-textarea {
    width: 100%;
    min-height: 40vh;
    background: transparent;
    border: none;
    color: var(--text-primary);
    font-size: 0.9rem;
    line-height: 1.7;
    resize: none;
    outline: none;
    padding: 1rem;
    font-family: 'Inter', sans-serif;
}

.clip-textarea::placeholder { color: var(--text-muted); }

.clip-status {
    padding: 0.4rem 1rem;
    border-top: 1px solid var(--border);
    font-size: 0.7rem;
    color: var(--text-muted);
    display: flex;
    justify-content: space-between;
}

.clip-error {
    background: rgba(220, 53, 69, 0.12);
    border: 1px solid rgba(220, 53, 69, 0.3);
    color: #ff6b7a;
    padding: 0.6rem 1rem;
    border-radius: 8px;
    font-size: 0.85rem;
    margin-bottom: 0.5rem;
    text-align: center;
}

/* ========== Clipboard Room Layout (with sidebar) ========== */
.clip-room-layout {
    display: flex;
    gap: 0;
    border: 1px solid var(--border);
    border-radius: 10px;
    overflow: hidden;
    background: var(--bg-secondary);
}

.clip-room-main {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
}

.clip-sidebar {
    width: 220px;
    flex-shrink: 0;
    border-left: 1px solid var(--border);
    background: rgba(0, 0, 0, 0.15);
    overflow-y: auto;
    max-height: calc(40vh + 120px);
}

.clip-sidebar-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.6rem 0.75rem;
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--text-secondary);
    border-bottom: 1px solid var(--border);
}

.clip-sidebar-inactive-header {
    border-top: 1px solid var(--border);
    opacity: 0.6;
}

.clip-sidebar-count {
    background: var(--accent);
    color: white;
    font-size: 0.65rem;
    font-weight: 700;
    padding: 0.1rem 0.4rem;
    border-radius: 10px;
    min-width: 18px;
    text-align: center;
}

.clip-sidebar-list {
    padding: 0.25rem 0;
}

.clip-participant {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.4rem 0.75rem;
    transition: background 0.15s;
}

.clip-participant:hover {
    background: rgba(255, 255, 255, 0.03);
}

.clip-participant-me {
    background: rgba(99, 102, 241, 0.08);
}

.clip-participant-blinded {
    opacity: 0.5;
}

.clip-participant-inactive {
    opacity: 0.4;
}

.clip-participant-info {
    display: flex;
    flex-direction: column;
    gap: 0.1rem;
    min-width: 0;
}

.clip-participant-name {
    font-size: 0.75rem;
    font-weight: 500;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    gap: 0.35rem;
    flex-wrap: wrap;
}

.clip-participant-time {
    font-size: 0.6rem;
    color: var(--text-muted);
}

.clip-host-badge {
    background: var(--accent);
    color: white;
    font-size: 0.55rem;
    font-weight: 700;
    padding: 0.05rem 0.3rem;
    border-radius: 4px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.clip-you-badge {
    background: rgba(255, 255, 255, 0.1);
    color: var(--text-secondary);
    font-size: 0.55rem;
    font-weight: 500;
    padding: 0.05rem 0.3rem;
    border-radius: 4px;
}

.clip-participant-actions {
    display: flex;
    gap: 0.25rem;
    flex-shrink: 0;
    opacity: 0;
    transition: opacity 0.15s;
}

.clip-participant:hover .clip-participant-actions {
    opacity: 1;
}

.clip-action-btn {
    background: transparent;
    border: 1px solid var(--border);
    color: var(--text-secondary);
    width: 22px;
    height: 22px;
    border-radius: 4px;
    font-size: 0.65rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    transition: all 0.15s;
}

.clip-action-blind:hover {
    background: rgba(251, 191, 36, 0.15);
    border-color: rgba(251, 191, 36, 0.4);
    color: #fbbf24;
}

.clip-action-unblind:hover {
    background: rgba(52, 211, 153, 0.15);
    border-color: rgba(52, 211, 153, 0.4);
    color: #34d399;
}

.clip-action-remove:hover {
    background: rgba(220, 53, 69, 0.15);
    border-color: rgba(220, 53, 69, 0.4);
    color: #ff6b7a;
}

/* Blinded state overlay */
.clip-blinded {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 40vh;
    color: var(--text-muted);
    text-align: center;
    padding: 2rem;
}

.clip-blinded-icon {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    opacity: 0.5;
}

.clip-blinded h3 {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--text-secondary);
}

.clip-blinded p {
    font-size: 0.8rem;
    color: var(--text-muted);
    max-width: 280px;
}

/* Mobile responsive: sidebar goes below */
@media (max-width: 640px) {
    .clip-room-layout {
        flex-direction: column;
    }

    .clip-sidebar {
        width: 100%;
        border-left: none;
        border-top: 1px solid var(--border);
        max-height: 200px;
    }
}

/* ========== Secure File Transfer Page ========== */
.ft-container {
    display: flex;
    align-items: flex-start;
    justify-content: center;
    min-height: calc(100vh - 62px);
    padding: 4rem 2rem 2rem;
    background: var(--bg-primary);
}

.ft-card {
    width: 100%;
    max-width: 680px;
    text-align: center;
}

.ft-card-wide {
    max-width: 1180px;
    text-align: left;
}

.ft-logo { font-size: 2.5rem; margin-bottom: 1rem; opacity: 0.8; }
.ft-title { font-size: 1.5rem; font-weight: 700; margin-bottom: 0.5rem; letter-spacing: -0.02em; }
.ft-subtitle { font-size: 0.85rem; color: var(--text-secondary); line-height: 1.6; margin-bottom: 1.5rem; }

/* Drop zone */
.ft-dropzone {
    border: 2px dashed var(--border);
    border-radius: 10px;
    margin: 0.75rem;
    padding: 1.5rem 1rem;
    text-align: center;
    transition: all 0.2s;
    cursor: pointer;
    min-height: 120px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.ft-dropzone:hover, .ft-dropzone-active {
    border-color: var(--accent);
    background: rgba(99, 102, 241, 0.06);
}

.ft-dropzone-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.4rem;
    color: var(--text-secondary);
    font-size: 0.85rem;
}

.ft-dropzone-icon { font-size: 1.8rem; opacity: 0.5; }
.ft-dropzone-or { font-size: 0.7rem; color: var(--text-muted); }
.ft-dropzone-hint { font-size: 0.65rem; color: var(--text-muted); margin-top: 0.25rem; }

.ft-browse-btn {
    background: var(--accent);
    color: white;
    border: none;
    padding: 0.35rem 0.9rem;
    border-radius: 6px;
    font-size: 0.78rem;
    font-weight: 500;
    cursor: pointer;
    transition: background 0.15s;
}

.ft-browse-btn:hover { background: var(--accent-hover); }

/* Upload spinner */
.ft-upload-progress {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    color: var(--accent);
    font-size: 0.85rem;
    font-weight: 500;
}

.ft-spinner {
    width: 18px;
    height: 18px;
    border: 2px solid var(--border);
    border-top-color: var(--accent);
    border-radius: 50%;
    animation: ft-spin 0.6s linear infinite;
}

@keyframes ft-spin {
    to { transform: rotate(360deg); }
}

/* File list */
.ft-file-list {
    padding: 0.25rem 0.75rem;
    max-height: 35vh;
    overflow-y: auto;
}

.ft-empty {
    text-align: center;
    padding: 1.5rem 1rem;
    color: var(--text-muted);
    font-size: 0.8rem;
}

.ft-file-item {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.5rem 0.5rem;
    border-radius: 6px;
    transition: background 0.15s;
}

.ft-file-item:hover {
    background: rgba(255, 255, 255, 0.03);
}

.ft-file-icon {
    font-size: 1.2rem;
    flex-shrink: 0;
    width: 28px;
    text-align: center;
}

.ft-file-info {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 0.1rem;
}

.ft-file-name {
    font-size: 0.8rem;
    font-weight: 500;
    color: var(--text-primary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.ft-file-meta {
    font-size: 0.65rem;
    color: var(--text-muted);
}

.ft-download-btn {
    background: var(--accent);
    color: white;
    border: none;
    width: 26px;
    height: 26px;
    border-radius: 5px;
    font-size: 0.75rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    flex-shrink: 0;
    transition: background 0.15s;
}

.ft-download-btn:hover { background: var(--accent-hover); color: white; }

/* ========== QR Note Page ========== */
.qr-container {
    display: flex;
    align-items: flex-start;
    justify-content: center;
    min-height: calc(100vh - 62px);
    padding: 4rem 2rem 2rem;
    background: var(--bg-primary);
}

.qr-card {
    width: 100%;
    max-width: 680px;
    text-align: center;
}

.qr-logo { font-size: 3rem; margin-bottom: 1rem; opacity: 0.8; }
.qr-title { font-size: 1.5rem; font-weight: 700; margin-bottom: 0.5rem; letter-spacing: -0.02em; }
.qr-subtitle { font-size: 0.85rem; color: var(--text-secondary); line-height: 1.6; margin-bottom: 1.5rem; }

.qr-form {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.qr-textarea {
    width: 100%;
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 0.75rem 1rem;
    color: var(--text-primary);
    font-size: 0.85rem;
    line-height: 1.6;
    resize: vertical;
    outline: none;
    font-family: 'Inter', sans-serif;
    transition: border-color 0.15s;
}

.qr-textarea:focus { border-color: var(--accent); }

.qr-input, .qr-select {
    width: 100%;
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 0.6rem 1rem;
    color: var(--text-primary);
    font-size: 0.85rem;
    outline: none;
    transition: border-color 0.15s;
}

.qr-input:focus { border-color: var(--accent); }

.qr-presets {
    display: flex;
    gap: 0.5rem;
    justify-content: center;
}

.qr-preset-btn {
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    color: var(--text-secondary);
    padding: 0.35rem 0.75rem;
    border-radius: 6px;
    font-size: 0.75rem;
    cursor: pointer;
    transition: all 0.15s;
}

.qr-preset-btn:hover { border-color: var(--accent); color: var(--text-primary); }
.qr-preset-btn.active { background: var(--accent); color: white; border-color: var(--accent); }

.qr-wifi-fields {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.qr-output {
    margin-top: 1.5rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}

.qr-output canvas {
    border-radius: 8px;
    border: 1px solid var(--border);
}

.qr-download-btn {
    background: var(--accent);
    color: white;
    border: none;
    padding: 0.5rem 1rem;
    border-radius: 8px;
    font-size: 0.8rem;
    cursor: pointer;
    transition: background 0.15s;
}

.qr-download-btn:hover { background: var(--accent-hover); }

.qr-placeholder {
    margin-top: 2rem;
    color: var(--text-muted);
    font-size: 0.8rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
}

/* ===== IndexNew / classic-new palette overrides ===== */
.idx-blueprint { display: none; }
.idx-glow, .idx-glow-1, .idx-glow-2, .idx-glow-3 { display: none !important; }
.idx-hero { background: var(--bg-primary) !important; }
.idx-trust { background: var(--bg-secondary) !important; }
.idx-tool-btn { background: var(--accent) !important; color: var(--paper) !important; }
.idx-tool-section { --tool-color: var(--accent) !important; --tool-color-light: rgba(179,67,42,0.07) !important; --tool-color-border: rgba(179,67,42,0.18) !important; --tool-color-text: var(--accent) !important; }

/* ========== Footer Changelog ========== */
.footer-changelog {
    border-top: 1px solid var(--border);
    padding: 1.5rem 0 1.25rem;
    margin-bottom: 1rem;
}

.fcl-header {
    display: flex;
    align-items: baseline;
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.fcl-label {
    font-family: 'Fraunces', serif;
    font-size: 1rem;
    font-weight: 500;
    color: var(--text-primary);
    letter-spacing: -0.01em;
}

.fcl-tag {
    font-size: 0.72rem;
    font-weight: 500;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.fcl-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 0;
    border-left: 2px solid var(--border);
    margin-left: 0.5rem;
}

.fcl-entry {
    display: grid;
    grid-template-columns: 7.5rem 1fr;
    gap: 0.5rem 1rem;
    padding: 0.6rem 0 0.6rem 1.25rem;
    position: relative;
    transition: background 0.15s;
}

.fcl-entry::before {
    content: '';
    position: absolute;
    left: -5px;
    top: 1rem;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--border);
    border: 2px solid var(--bg-secondary);
    transition: background 0.15s;
}

.fcl-entry:hover::before {
    background: var(--accent);
}

.fcl-date {
    font-size: 0.75rem;
    font-family: 'IBM Plex Mono', monospace;
    color: var(--text-muted);
    white-space: nowrap;
    padding-top: 0.05rem;
    line-height: 1.6;
}

.fcl-body {
    font-size: 0.82rem;
    color: var(--text-secondary);
    line-height: 1.65;
}

.fcl-body strong {
    color: var(--text-primary);
    font-weight: 600;
}

.fcl-body code {
    font-family: 'IBM Plex Mono', monospace;
    font-size: 0.78rem;
    background: var(--bg-tertiary);
    border: 1px solid var(--border);
    padding: 0.05rem 0.3rem;
    border-radius: 4px;
    color: var(--text-primary);
}

.fcl-body em {
    font-style: italic;
    color: var(--text-primary);
}

@media (max-width: 600px) {
    .fcl-entry {
        grid-template-columns: 1fr;
        gap: 0.15rem;
    }
    .fcl-date {
        font-size: 0.7rem;
    }
    .fcl-body {
        font-size: 0.8rem;
    }
}

/* ========== Site Footer ========== */
.site-footer {
    background: var(--bg-secondary);
    border-top: 1px solid var(--border);
    padding: 1rem 2rem;
    margin-top: auto;
    color: var(--text-primary);
}

.footer-inner {
    max-width: 1000px;
    margin: 0 auto;
}

.footer-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.footer-left {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.footer-logo {
    width: 18px;
    height: 18px;
}

.footer-tagline {
    color: var(--text-secondary);
    font-size: 0.85rem;
    margin: 0;
}

.footer-right {
    display: flex;
    align-items: center;
    gap: 0;
}

.footer-link {
    color: var(--text-primary);
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: 500;
    transition: color 0.15s;
}

.footer-link:hover {
    color: var(--accent);
    text-decoration: underline;
    text-underline-offset: 3px;
}

.footer-sep {
    margin: 0 0.5rem;
    opacity: 1;
    color: var(--text-muted);
    font-size: 0.85rem;
}

.footer-copy {
    text-align: center;
    font-size: 0.78rem;
    color: var(--text-secondary);
    margin-top: 0.6rem;
    padding-top: 0.6rem;
    border-top: 1px dashed var(--border);
}

@media (max-width: 600px) {
    .footer-row {
        flex-direction: column;
        gap: 0.4rem;
        text-align: center;
    }
    .footer-tagline { display: none; }
}

/* ========== About Page ========== */
.about-container {
    display: flex;
    justify-content: center;
    padding: 3rem 2rem 2rem;
    background: var(--bg-primary);
    min-height: calc(100vh - 200px);
}

.about-card {
    width: 100%;
    max-width: 700px;
}

.about-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
    opacity: 0.8;
}

.about-title {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 2rem;
    letter-spacing: -0.02em;
    color: var(--text-primary);
}

.about-section {
    margin-bottom: 2rem;
}

.about-section h2 {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--accent);
    margin-bottom: 0.75rem;
}

.about-section p {
    color: var(--text-secondary);
    font-size: 0.9rem;
    line-height: 1.7;
    margin: 0 0 0.75rem 0;
}

.about-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.about-list li {
    color: var(--text-secondary);
    font-size: 0.9rem;
    padding: 0.4rem 0;
    padding-left: 1.5rem;
    position: relative;
}

.about-list li::before {
    content: "\2713";
    position: absolute;
    left: 0;
    color: var(--success);
    font-weight: 700;
}

.about-tools-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.about-tool {
    display: flex;
    gap: 0.75rem;
    padding: 0.75rem;
    border-radius: 8px;
    border: 1px solid var(--border);
    background: var(--bg-secondary);
}

.about-tool-icon {
    font-size: 1.5rem;
    flex-shrink: 0;
}

.about-tool strong {
    color: var(--text-primary);
    font-size: 0.85rem;
    display: block;
    margin-bottom: 0.2rem;
}

.about-tool p {
    color: var(--text-muted);
    font-size: 0.75rem;
    line-height: 1.4;
    margin: 0;
}

.about-email {
    color: var(--accent);
    text-decoration: none;
}

.about-email:hover {
    text-decoration: underline;
}

@media (max-width: 600px) {
    .about-tools-grid {
        grid-template-columns: 1fr;
    }
    .about-container {
        padding: 2rem 1rem;
    }
}

/* ========== Privacy Policy Page ========== */
.privacy-container {
    display: flex;
    justify-content: center;
    padding: 3rem 2rem 2rem;
    background: var(--bg-primary);
    min-height: calc(100vh - 200px);
}

.privacy-card {
    width: 100%;
    max-width: 700px;
}

.privacy-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
    opacity: 0.8;
}

.privacy-title {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    letter-spacing: -0.02em;
    color: var(--text-primary);
}

.privacy-updated {
    color: var(--text-muted);
    font-size: 0.8rem;
    margin-bottom: 2rem;
}

.privacy-section {
    margin-bottom: 2rem;
}

.privacy-section h2 {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--accent);
    margin-bottom: 0.75rem;
}

.privacy-section p {
    color: var(--text-secondary);
    font-size: 0.9rem;
    line-height: 1.7;
    margin: 0 0 0.75rem 0;
}

.privacy-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.85rem;
    margin: 0.5rem 0;
}

.privacy-table th {
    text-align: left;
    padding: 0.6rem 0.75rem;
    background: var(--bg-secondary);
    color: var(--text-primary);
    font-weight: 600;
    border-bottom: 2px solid var(--border);
}

.privacy-table td {
    padding: 0.5rem 0.75rem;
    color: var(--text-secondary);
    border-bottom: 1px solid var(--border);
}

.privacy-table tr:last-child td {
    border-bottom: none;
}

.privacy-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.privacy-list li {
    color: var(--text-secondary);
    font-size: 0.9rem;
    padding: 0.35rem 0;
    padding-left: 1.5rem;
    position: relative;
}

.privacy-list li::before {
    content: "\2717";
    position: absolute;
    left: 0;
    color: var(--danger);
    font-weight: 700;
}

.privacy-email {
    color: var(--accent);
    text-decoration: none;
}

.privacy-email:hover {
    text-decoration: underline;
}

@media (max-width: 600px) {
    .privacy-container {
        padding: 2rem 1rem;
    }
    .privacy-table {
        font-size: 0.75rem;
    }
    .privacy-table th, .privacy-table td {
        padding: 0.4rem 0.5rem;
    }
}

/* ===== Shared URL Bar Component ===== */
.url-bar {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: stretch;
    gap: 0.5rem;
    width: 100%;
    box-sizing: border-box;
    padding: 0.6rem;
    border-radius: 10px;
    background: var(--bg-primary);
    border: 1px solid var(--border-strong);
    margin: 0.5rem 0;
}
.url-bar code {
    min-width: 0;
    display: block;
    font-family: 'IBM Plex Mono', monospace;
    font-size: 0.8rem;
    line-height: 1.45;
    color: var(--text-primary);
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    border-radius: 7px;
    padding: 0.55rem 0.65rem;
    overflow-wrap: anywhere;
    word-break: break-word;
    white-space: normal;
    user-select: all;
}
.url-bar-copy {
    padding: 0.55rem 0.8rem;
    border-radius: 7px;
    border: 1px solid rgba(99,102,241,0.28);
    background: rgba(99,102,241,0.12);
    color: var(--accent);
    font-size: 0.75rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s;
    white-space: nowrap;
    font-family: 'IBM Plex Mono', monospace;
}
.url-bar-copy:hover { background: rgba(99,102,241,0.25); }

.burn-created-url {
    max-width: 680px;
    margin: 0.9rem auto 0;
}

@media (max-width: 640px) {
    .url-bar {
        grid-template-columns: 1fr;
    }

    .url-bar-copy {
        width: 100%;
    }
}

/* ===== Shared Info Modal ===== */
.info-modal-overlay {
    position: fixed; inset: 0; z-index: 1000;
    background: rgba(0,0,0,0.6); backdrop-filter: blur(4px);
    display: flex; align-items: center; justify-content: center;
    padding: 1rem; animation: infoFadeIn 0.2s ease-out;
}
.info-modal {
    background: var(--bg-tertiary); border: 1px solid var(--border-strong);
    border-radius: 16px; padding: 1.5rem; max-width: 560px; width: 100%;
    max-height: 80vh; overflow-y: auto; position: relative;
    box-shadow: 0 20px 60px rgba(0,0,0,0.15);
}
.info-modal-close {
    position: absolute; top: 0.75rem; right: 0.75rem;
    background: var(--bg-active); border: 1px solid var(--border);
    color: var(--text-muted); width: 32px; height: 32px; border-radius: 8px;
    cursor: pointer; font-size: 1.1rem; display: flex;
    align-items: center; justify-content: center; transition: all 0.2s;
}
.info-modal-close:hover { background: var(--bg-hover); color: var(--text-primary); }
.info-modal h3 { font-size: 1.1rem; font-weight: 600; color: var(--text-primary); margin-bottom: 1rem; }
.info-modal h4 { font-size: 0.85rem; font-weight: 600; color: var(--text-secondary); margin: 1rem 0 0.4rem; }
.info-modal p { font-size: 0.82rem; color: var(--text-secondary); line-height: 1.6; margin-bottom: 0.5rem; }
.info-modal pre {
    background: var(--bg-secondary); border: 1px solid var(--border);
    border-radius: 8px; padding: 0.6rem 0.8rem; margin: 0.4rem 0 0.75rem;
    font-family: 'IBM Plex Mono', monospace; font-size: 0.75rem;
    color: var(--accent); overflow-x: auto; white-space: pre-wrap;
    word-break: break-all;
}
.info-btn {
    width: 32px; height: 32px; border-radius: 8px; border: 1px solid var(--border);
    background: var(--bg-active); color: var(--text-muted);
    cursor: pointer; font-size: 0.9rem; display: flex;
    align-items: center; justify-content: center; transition: all 0.2s;
    flex-shrink: 0;
}
.info-btn:hover { background: var(--bg-hover); color: var(--accent); }
@keyframes infoFadeIn { from { opacity: 0; } to { opacity: 1; } }

/* ========== How It Works ========== */
.hiw {
    max-width: 1120px;
    margin: 4rem auto 2rem;
    padding: 0 2rem;
}
.hiw-head { margin-bottom: 1.5rem; }
.hiw-kicker {
    font-family: 'IBM Plex Mono', monospace;
    font-size: 0.7rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--text-muted);
    margin-bottom: 0.4rem;
}
.hiw-h2 {
    font-family: 'Fraunces', serif;
    font-size: 2rem;
    font-weight: 500;
    letter-spacing: -0.015em;
    line-height: 1.1;
    margin: 0;
    color: var(--text-primary);
}
.hiw-h2 em { font-style: italic; color: var(--accent); }

.hiw-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    margin-top: 1.25rem;
}
.hiw-step {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
    padding: 1.5rem 1.4rem;
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 6px;
}
.hiw-n {
    position: absolute;
    right: 1.1rem;
    top: 1.1rem;
    font-family: 'IBM Plex Mono', monospace;
    font-size: 0.7rem;
    letter-spacing: 0.2em;
    color: var(--text-muted);
}
.hiw-stamp {
    width: 56px;
    height: 56px;
    border: 1.5px solid var(--text-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 0.3rem;
    position: relative;
    color: var(--text-primary);
}
.hiw-stamp::after {
    content: "";
    position: absolute;
    inset: -4px;
    border: 1px dashed var(--text-muted);
    border-radius: 50%;
    opacity: 0.5;
}
.hiw-stamp svg { width: 26px; height: 26px; }

.hiw-step h3 {
    font-family: 'Fraunces', serif;
    font-size: 1.3rem;
    font-weight: 500;
    letter-spacing: -0.01em;
    margin: 0;
    color: var(--text-primary);
}
.hiw-step p {
    font-size: 0.92rem;
    line-height: 1.55;
    color: var(--text-secondary);
    margin: 0;
}
.hiw-tag {
    margin-top: auto;
    padding-top: 0.75rem;
    border-top: 1px dashed var(--border);
    display: flex;
    justify-content: space-between;
    font-family: 'IBM Plex Mono', monospace;
    font-size: 0.66rem;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--accent);
}
.hiw-tag span:last-child { color: var(--text-muted); }

@media (max-width: 820px) {
    .hiw { margin: 2.5rem auto 1.5rem; padding: 0 1.25rem; }
    .hiw-grid { grid-template-columns: 1fr; gap: 1rem; }
    .hiw-h2 { font-size: 1.6rem; }
}

/* ========== Chalk ========== */
.chalk-join-wrap {
    display: flex; justify-content: center; align-items: flex-start;
    padding: 4rem 1rem 2rem;
    min-height: calc(100vh - 62px);
}
.chalk-join-card {
    background: var(--card); border: 1px solid var(--border); border-radius: 10px;
    padding: 2.5rem 2rem; width: 100%; max-width: 440px;
    display: flex; flex-direction: column; gap: 1rem;
}
.chalk-logo-mark { display: flex; justify-content: center; }
.chalk-join-title {
    font-family: 'Fraunces', serif; font-size: 2rem; font-weight: 600;
    color: var(--text-primary); text-align: center; margin: 0;
}
.chalk-join-sub {
    font-size: 0.95rem; color: var(--text-secondary); text-align: center; margin: 0;
}
.chalk-name-input, .chalk-code-input {
    width: 100%; background: var(--bg-secondary); border: 1px solid var(--border);
    border-radius: 5px; padding: 0.7rem 0.9rem; font-size: 0.95rem;
    color: var(--text-primary); outline: none; box-sizing: border-box;
    font-family: inherit; transition: border-color 0.15s;
}
.chalk-name-input:focus, .chalk-code-input:focus { border-color: var(--accent); }
.chalk-new-btn {
    background: var(--accent); color: var(--paper); border: none;
    padding: 0.75rem 1.5rem; border-radius: 5px; font-size: 1rem;
    font-weight: 600; cursor: pointer; width: 100%; transition: opacity 0.15s;
}
.chalk-new-btn:hover { opacity: .88; }
.chalk-new-btn:disabled { opacity: .5; cursor: not-allowed; }
.chalk-divider {
    text-align: center; position: relative; color: var(--text-muted);
    font-size: 0.8rem; letter-spacing: .08em;
}
.chalk-join-code-row {
    display: flex; gap: 0.5rem;
}
.chalk-join-code-row .chalk-code-input { flex: 1; }
.chalk-join-btn {
    background: transparent; border: 1px solid var(--border); border-radius: 5px;
    padding: 0.7rem 1rem; font-size: 0.9rem; font-weight: 600;
    color: var(--text-primary); cursor: pointer; white-space: nowrap;
    transition: border-color 0.15s;
}
.chalk-join-btn:hover { border-color: var(--accent); color: var(--accent); }
.chalk-join-btn:disabled { opacity: .4; cursor: not-allowed; }
.chalk-link-hint {
    font-size: 0.8rem; color: var(--text-muted); text-align: center; margin: 0;
}
.chalk-join-error {
    background: #fef3f2; border: 1px solid #f87171; color: #991b1b;
    border-radius: 4px; padding: 0.6rem 0.9rem; font-size: 0.88rem;
}
.chalk-join-name-row { display: flex; flex-direction: column; gap: 0.35rem; }
.chalk-not-found, .chalk-loading {
    text-align: center; padding: 4rem 1rem; color: var(--text-secondary);
}
.chalk-not-found a { color: var(--accent); text-decoration: none; font-weight: 500; }

/* List page */
.chalk-split {
    display: grid; grid-template-columns: 1fr 1.6fr; gap: 0;
    min-height: calc(100vh - 62px);
}
.chalk-split .tool-explain {
    border-right: 1px solid var(--border); padding: 3rem 2rem;
    display: flex; flex-direction: column; gap: 1.25rem;
}
.chalk-room-info {
    margin-top: auto; padding-top: 1.5rem;
    border-top: 1px dashed var(--border);
    display: flex; flex-direction: column; gap: 0.5rem;
}
.chalk-code {
    font-family: 'IBM Plex Mono', monospace; font-size: 2rem; font-weight: 500;
    letter-spacing: .3em; color: var(--text-primary);
}
.chalk-share-btn {
    background: var(--accent); color: var(--paper); border: none;
    padding: 0.55rem 1.1rem; border-radius: 4px; font-size: 0.85rem;
    font-weight: 600; cursor: pointer; width: fit-content; transition: opacity 0.15s;
}
.chalk-share-btn:hover { opacity: .88; }
.chalk-expiry {
    font-family: 'IBM Plex Mono', monospace; font-size: 0.72rem;
    letter-spacing: .1em; text-transform: uppercase; color: var(--text-muted);
}
.chalk-form {
    padding: 2rem; display: flex; flex-direction: column; gap: 1rem;
}
.chalk-add-row { display: flex; gap: 0.6rem; align-items: center; }
.chalk-add-input {
    flex: 1; background: var(--card); border: 1px solid var(--border);
    border-radius: 4px; padding: 0.7rem 0.9rem; font-size: 0.95rem;
    color: var(--text-primary); outline: none; font-family: inherit;
    transition: border-color 0.15s;
}
.chalk-add-input:focus { border-color: var(--accent); }
.chalk-add-btn {
    background: var(--accent); color: var(--paper); border: none;
    padding: 0.7rem 1.2rem; border-radius: 4px; font-size: 0.88rem;
    font-weight: 600; cursor: pointer; white-space: nowrap;
}
.chalk-add-btn:disabled { opacity: .4; cursor: not-allowed; }
.chalk-no-key {
    font-size: 0.82rem; color: var(--text-muted); background: var(--bg-secondary);
    border: 1px dashed var(--border); border-radius: 4px; padding: 0.6rem 0.9rem;
}
.chalk-no-key code { font-size: 0.8rem; }
.chalk-items { display: flex; flex-direction: column; gap: 2px; }
.chalk-item {
    display: flex; align-items: center; gap: 0.75rem;
    padding: 0.6rem 0.5rem; border-radius: 4px; transition: background 0.12s;
}
.chalk-item:hover { background: var(--bg-secondary); }
.chalk-chk {
    width: 22px; height: 22px; min-width: 22px; border-radius: 5px;
    border: 1.5px solid var(--border); flex-shrink: 0; cursor: pointer;
    display: flex; align-items: center; justify-content: center;
    background: var(--card); transition: all 0.15s;
}
.chalk-chk:hover { border-color: var(--accent); }
.chalk-chk.done { background: var(--success, #2f5d50); border-color: var(--success, #2f5d50); }
.chalk-item-text { flex: 1; font-size: 0.95rem; color: var(--text-primary); word-break: break-word; }
.chalk-item-text.done {
    text-decoration: line-through; color: var(--accent);
    text-decoration-color: var(--accent);
}
.chalk-item-text.stashed { color: var(--text-muted); font-style: italic; }
.chalk-who {
    font-family: 'IBM Plex Mono', monospace; font-size: 0.72rem;
    color: var(--success, #2f5d50); letter-spacing: .06em; flex-shrink: 0;
}
.chalk-stash-btn {
    font-size: 0.72rem; color: var(--text-muted); padding: 2px 7px;
    border: 1px solid var(--border); border-radius: 3px; cursor: pointer;
    font-family: 'IBM Plex Mono', monospace; letter-spacing: .1em;
    text-transform: uppercase; background: transparent; flex-shrink: 0;
    transition: all 0.15s;
}
.chalk-stash-btn:hover { border-color: var(--text-primary); color: var(--text-primary); }
.chalk-section-label {
    padding: 0.6rem 0.5rem 0.2rem;
    font-family: 'IBM Plex Mono', monospace; font-size: 0.68rem;
    letter-spacing: .18em; text-transform: uppercase;
    color: var(--warning, #8a6b1f);
    border-top: 1px dashed var(--border); margin-top: 0.5rem;
}
.chalk-presence {
    display: flex; align-items: center; gap: 0.4rem;
    font-family: 'IBM Plex Mono', monospace; font-size: 0.72rem;
    color: var(--text-muted); letter-spacing: .06em;
}
.chalk-dot {
    width: 7px; height: 7px; border-radius: 50%;
    background: var(--success, #2f5d50); flex-shrink: 0;
}
@media (max-width: 820px) {
    .chalk-split { grid-template-columns: 1fr; }
    .chalk-split .tool-explain {
        border-right: none; border-bottom: 1px solid var(--border); padding: 1.5rem;
    }
    .chalk-form { padding: 1.25rem; }
    .chalk-room-info { margin-top: 0; }
}
.chalk-name-prompt {
    background: var(--bg-secondary); border: 1px solid var(--accent);
    border-radius: 6px; padding: 1rem 1rem 0.9rem; display: flex;
    flex-direction: column; gap: 0.6rem;
}
.chalk-name-prompt-label {
    font-size: 0.9rem; font-weight: 600; color: var(--text-primary); margin: 0;
}
.chalk-name-prompt-row { display: flex; gap: 0.6rem; }
.chalk-change-name-btn {
    background: none; border: none; padding: 0 0.3rem;
    font-family: 'IBM Plex Mono', monospace; font-size: 0.68rem;
    letter-spacing: .08em; text-transform: uppercase; color: var(--text-muted);
    cursor: pointer; text-decoration: underline; text-underline-offset: 2px;
    transition: color 0.15s;
}
.chalk-change-name-btn:hover { color: var(--text-primary); }

/* ===== Session Banner ===== */
.wb-sess-bar {
    position: sticky; top: 0; z-index: 1000;
    display: flex; align-items: center; gap: 0.75rem;
    padding: 0.5rem 1rem;
    background: var(--accent); color: #fff;
    font-family: 'IBM Plex Sans', system-ui, sans-serif;
    font-size: 0.875rem;
    box-shadow: 0 1px 3px rgba(0,0,0,0.12);
}
.wb-sess-dot {
    width: 8px; height: 8px; border-radius: 50%;
    background: #fff; opacity: 0.9;
    box-shadow: 0 0 0 3px rgba(255,255,255,0.25);
    animation: wbSessPulse 2s ease-in-out infinite;
}
@keyframes wbSessPulse { 50% { opacity: 0.4; } }
.wb-sess-text { flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.wb-sess-text strong { font-weight: 600; }
.wb-sess-link,
.wb-sess-btn {
    font: inherit; color: #fff;
    background: transparent; border: 1px solid rgba(255,255,255,0.5);
    padding: 0.25rem 0.625rem; border-radius: 4px;
    cursor: pointer; text-decoration: none;
    transition: background 0.15s;
}
.wb-sess-link:hover,
.wb-sess-btn:hover { background: rgba(255,255,255,0.15); color: #fff; }

/* ===== Session loading / invalid page ===== */
.sess-loading {
    max-width: 520px; margin: 6rem auto; padding: 2rem 1.5rem;
    text-align: center; color: var(--text-muted);
    font-family: 'IBM Plex Sans', sans-serif;
}
.sess-invalid {
    max-width: 520px; margin: 6rem auto; padding: 2rem 1.5rem;
    text-align: center;
    font-family: 'IBM Plex Sans', sans-serif;
}
.sess-invalid-icon { font-size: 2.5rem; opacity: 0.4; margin-bottom: 1rem; }
.sess-invalid h1 {
    font-family: 'Fraunces', serif; font-weight: 500;
    font-size: 1.75rem; color: var(--text-primary); margin: 0 0 0.75rem;
}
.sess-invalid p { color: var(--text-secondary); margin: 0 0 1.5rem; line-height: 1.6; }
.sess-home {
    display: inline-block; padding: 0.5rem 1rem;
    background: var(--accent); color: #fff; text-decoration: none;
    border-radius: 4px; font-weight: 500;
}
.sess-home:hover { background: var(--accent-hover); color: #fff; }

/* ===== Make Session modal + MyItems session UI ===== */
.mi-session-cta {
    margin: 0 0 1.25rem; padding: 1rem 1.25rem;
    border: 1px dashed var(--border);
    border-radius: 6px;
    background: var(--bg-secondary);
    display: flex; flex-wrap: wrap; gap: 0.75rem; align-items: center;
}
.mi-session-cta-text { flex: 1; min-width: 240px; color: var(--text-secondary); font-size: 0.9375rem; line-height: 1.5; }
.mi-session-cta-text strong { color: var(--text-primary); }
.mi-session-cta-btn {
    padding: 0.5rem 1rem;
    background: var(--accent); color: #fff;
    border: none; border-radius: 4px;
    font: inherit; font-weight: 500; cursor: pointer;
    transition: background 0.15s;
}
.mi-session-cta-btn:hover { background: var(--accent-hover); }

.mi-sess-info {
    margin: 0 0 1rem; padding: 0.875rem 1rem;
    background: var(--bg-secondary); border: 1px solid var(--border); border-radius: 6px;
    display: flex; flex-wrap: wrap; gap: 0.75rem; align-items: center;
    font-size: 0.875rem; color: var(--text-secondary);
}
.mi-sess-info strong { color: var(--text-primary); }
.mi-sess-info .mi-sess-spacer { flex: 1; }
.mi-sess-danger {
    padding: 0.375rem 0.75rem;
    background: transparent; color: #b00020;
    border: 1px solid #b00020; border-radius: 4px;
    font: inherit; font-size: 0.8125rem; cursor: pointer;
}
.mi-sess-danger:hover { background: #b00020; color: #fff; }
.mi-session-privacy {
    display: flex;
    gap: 0.5rem;
    align-items: baseline;
    flex-wrap: wrap;
    margin: 0.65rem 0 0;
    padding: 0.7rem 0.8rem;
    border: 1px solid var(--border);
    border-left: 3px solid var(--accent);
    border-radius: 6px;
    background: var(--bg-secondary);
    color: var(--text-secondary);
    font-size: 0.875rem;
    line-height: 1.45;
}
.mi-session-privacy strong {
    color: var(--text-primary);
    font-weight: 600;
}

.wb-modal-backdrop {
    position: fixed; inset: 0; z-index: 1100;
    background: rgba(0,0,0,0.45);
    display: flex; align-items: center; justify-content: center;
    padding: 1rem;
}
.wb-modal {
    background: var(--bg-primary);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 1.5rem;
    max-width: 480px; width: 100%;
    font-family: 'IBM Plex Sans', sans-serif;
    box-shadow: 0 10px 40px rgba(0,0,0,0.25);
}
.wb-modal h2 {
    font-family: 'Fraunces', serif; font-weight: 500;
    font-size: 1.5rem; margin: 0 0 0.5rem; color: var(--text-primary);
}
.wb-modal p { color: var(--text-secondary); line-height: 1.55; margin: 0 0 1rem; font-size: 0.9375rem; }
.wb-modal .wb-input {
    width: 100%; padding: 0.5rem 0.75rem;
    font: inherit; color: var(--text-primary);
    background: var(--bg-primary);
    border: 1px solid var(--border); border-radius: 4px;
}
.wb-modal-actions {
    display: flex; gap: 0.5rem; justify-content: flex-end; margin-top: 1.25rem;
}
.wb-btn-primary {
    padding: 0.5rem 1rem; background: var(--accent); color: #fff;
    border: none; border-radius: 4px; font: inherit; font-weight: 500; cursor: pointer;
}
.wb-btn-primary:hover { background: var(--accent-hover); }
.wb-btn-primary:disabled { opacity: 0.5; cursor: not-allowed; }
.wb-btn-ghost {
    padding: 0.5rem 1rem; background: transparent; color: var(--text-secondary);
    border: 1px solid var(--border); border-radius: 4px; font: inherit; cursor: pointer;
}
.wb-btn-ghost:hover { color: var(--text-primary); border-color: var(--text-muted); }

.wb-sess-url-bar {
    display: flex; gap: 0.5rem; align-items: stretch;
    padding: 0.5rem 0.625rem;
    background: var(--bg-secondary); border: 1px solid var(--border); border-radius: 4px;
    margin: 0.5rem 0 0.75rem;
    font-family: 'IBM Plex Mono', monospace; font-size: 0.8125rem;
}
.wb-sess-url-bar code { flex: 1; overflow: auto; white-space: nowrap; color: var(--text-primary); background: transparent; padding: 0.25rem 0; }
.wb-sess-url-bar button {
    padding: 0.25rem 0.625rem; background: var(--accent); color: #fff;
    border: none; border-radius: 3px; font: inherit; font-size: 0.75rem; cursor: pointer;
}
.wb-sess-warn {
    padding: 0.75rem; border-left: 3px solid var(--accent);
    background: var(--bg-secondary); color: var(--text-primary);
    font-size: 0.875rem; line-height: 1.5;
    margin: 0.5rem 0;
}
.wb-sess-email {
    margin: 0.875rem 0 0;
    padding: 0.875rem;
    border: 1px solid var(--border);
    border-radius: 6px;
    background: var(--bg-secondary);
}
.wb-sess-email strong {
    display: block;
    color: var(--text-primary);
    font-weight: 600;
    margin-bottom: 0.2rem;
}
.wb-sess-email p {
    margin: 0 0 0.65rem;
    font-size: 0.875rem;
}
.wb-sess-email-row {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-wrap: wrap;
}
.wb-sess-email-row .wb-input {
    flex: 1 1 220px;
    min-width: 0;
}
.wb-sess-email-err,
.wb-sess-email-ok {
    font-size: 0.82rem !important;
    margin: 0.5rem 0 0 !important;
}
.wb-sess-email-err { color: var(--danger, #8a2a1a) !important; }
.wb-sess-email-ok { color: var(--text-secondary) !important; }
.wb-email-recent {
    margin-top: 0.7rem;
    padding-top: 0.65rem;
    border-top: 1px solid var(--border);
}
.wb-email-recent-title {
    color: var(--text-primary);
    font-size: 0.78rem;
    font-weight: 600;
    margin-bottom: 0.35rem;
}
.wb-email-recent-list {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    margin: 0;
    padding: 0;
    list-style: none;
}
.wb-email-recent-list li {
    display: flex;
    justify-content: space-between;
    gap: 0.75rem;
    color: var(--text-secondary);
    font-size: 0.78rem;
    line-height: 1.4;
}
.wb-email-recent-list time {
    color: var(--text-muted);
    white-space: nowrap;
}
@media (max-width: 560px) {
    .wb-modal {
        max-height: calc(100vh - 2rem);
        overflow-y: auto;
        padding: 1.1rem;
    }
    .wb-modal-actions,
    .wb-sess-email-row {
        flex-direction: column;
        align-items: stretch;
    }
    .wb-modal-actions > *,
    .wb-sess-email-row > * {
        width: 100%;
    }
}
