/* ==========================================================================
   Webtoolkits design system
   Light-first, quiet surfaces, one accent. Optional dark theme via
   html[data-theme="dark"]. Prefix: wt-
   ========================================================================== */

:root {
    color-scheme: light;
    --wt-ink: #191918;
    --wt-ink-2: #37352f;
    --wt-muted: #74726c;
    --wt-faint: #9c9a93;
    --wt-line: #e8e6e1;
    --wt-line-strong: #d8d5cd;
    --wt-paper: #fbfaf8;
    --wt-panel: #ffffff;
    --wt-soft: #f5f4f0;
    --wt-soft-2: #eeede8;
    --wt-accent: #2f5fe0;
    --wt-accent-ink: #2447ac;
    --wt-accent-soft: #eef2ff;
    --wt-gold: #a3651c;
    --wt-gold-soft: #fbf3e6;
    --wt-green: #157a5c;
    --wt-green-soft: #eaf6f1;
    --wt-danger: #b4342b;
    --wt-shadow-sm: 0 1px 2px rgba(25, 25, 24, .05);
    --wt-shadow-md: 0 1px 2px rgba(25, 25, 24, .04), 0 12px 32px rgba(25, 25, 24, .06);
    --wt-shadow-lg: 0 2px 4px rgba(25, 25, 24, .04), 0 26px 70px rgba(25, 25, 24, .10);
    --wt-radius: 12px;
    --wt-radius-lg: 18px;
    --wt-font: Inter, "Segoe UI", ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
}

html[data-theme="dark"] {
    color-scheme: dark;
    --wt-ink: #f2f1ed;
    --wt-ink-2: #d6d4cd;
    --wt-muted: #a5a39b;
    --wt-faint: #7f7d76;
    --wt-line: #302f2c;
    --wt-line-strong: #403e39;
    --wt-paper: #131312;
    --wt-panel: #1b1b19;
    --wt-soft: #20201e;
    --wt-soft-2: #272725;
    --wt-accent: #8aa6ff;
    --wt-accent-ink: #b3c4ff;
    --wt-accent-soft: #1d2540;
    --wt-gold: #e6b982;
    --wt-gold-soft: #2b2318;
    --wt-green: #72d5b2;
    --wt-green-soft: #14291f;
    --wt-danger: #f09189;
    --wt-shadow-sm: 0 1px 2px rgba(0, 0, 0, .35);
    --wt-shadow-md: 0 1px 2px rgba(0, 0, 0, .3), 0 12px 32px rgba(0, 0, 0, .28);
    --wt-shadow-lg: 0 2px 4px rgba(0, 0, 0, .35), 0 26px 70px rgba(0, 0, 0, .45);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body.wt-page,
body.wt-app-body {
    margin: 0;
    font-family: var(--wt-font);
    color: var(--wt-ink);
    background: var(--wt-paper);
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}

body.wt-page { overflow-x: hidden; }

.wt-page a { color: inherit; }
.wt-page a.wt-btn, .wt-page a.wt-btn-dark { color: var(--wt-paper); }
.wt-page a.wt-btn-light { color: var(--wt-ink); }
.wt-page a.wt-btn-accent { color: #fff; }
.wt-page a.wt-btn-ghost { color: var(--wt-muted); }
.wt-page h1, .wt-page h2, .wt-page h3, .wt-page h4, .wt-app-body h1, .wt-app-body h2, .wt-app-body h3 {
    letter-spacing: -0.025em;
}

.wt-ico { flex: 0 0 auto; display: inline-block; vertical-align: -0.16em; }

.wt-container { width: min(100% - 40px, 1180px); margin-inline: auto; }
.wt-container-narrow { width: min(100% - 40px, 860px); margin-inline: auto; }

/* --------------------------------------------------------------------------
   Navigation
   -------------------------------------------------------------------------- */

.wt-nav {
    position: sticky;
    top: 0;
    z-index: 60;
    border-bottom: 1px solid var(--wt-line);
    background: color-mix(in srgb, var(--wt-paper) 88%, transparent);
    backdrop-filter: saturate(160%) blur(14px);
    -webkit-backdrop-filter: saturate(160%) blur(14px);
}

.wt-nav-inner {
    width: min(100% - 40px, 1180px);
    margin-inline: auto;
    min-height: 64px;
    display: flex;
    align-items: center;
    gap: 26px;
}

.wt-brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-weight: 700;
    font-size: .98rem;
    letter-spacing: -0.02em;
    text-decoration: none;
    white-space: nowrap;
}

.wt-brand-mark {
    width: 30px;
    height: 30px;
    display: inline-grid;
    place-items: center;
    border-radius: 8px;
    background: var(--wt-ink);
    color: var(--wt-paper);
    font-size: .76rem;
    font-weight: 800;
    letter-spacing: 0;
    box-shadow: inset 0 -1px 0 rgba(255, 255, 255, .18);
}

.wt-nav-links { display: flex; align-items: center; gap: 2px; }

.wt-nav-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 12px;
    border-radius: 8px;
    color: var(--wt-muted);
    font-size: .9rem;
    font-weight: 550;
    text-decoration: none;
    transition: color .15s ease, background .15s ease;
}

.wt-nav-link:hover { color: var(--wt-ink); background: var(--wt-soft); }
.wt-nav-link.is-active { color: var(--wt-ink); }
.wt-nav-admin { color: var(--wt-ink); }

.wt-nav-actions { margin-left: auto; display: flex; align-items: center; gap: 8px; }

.wt-theme-btn {
    width: 34px;
    height: 34px;
    display: inline-grid;
    place-items: center;
    border: 1px solid transparent;
    border-radius: 8px;
    background: transparent;
    color: var(--wt-muted);
    cursor: pointer;
    transition: background .15s ease, color .15s ease;
}

.wt-theme-btn:hover { background: var(--wt-soft); color: var(--wt-ink); }
.wt-theme-btn .wt-theme-moon { display: none; }
html[data-theme="dark"] .wt-theme-btn .wt-theme-sun { display: none; }
html[data-theme="dark"] .wt-theme-btn .wt-theme-moon { display: inline-block; }

.wt-menu-btn {
    display: none;
    width: 36px;
    height: 36px;
    place-items: center;
    border: 1px solid var(--wt-line);
    border-radius: 8px;
    background: var(--wt-panel);
    color: var(--wt-ink);
    cursor: pointer;
}

.wt-mobile-panel { display: none; border-top: 1px solid var(--wt-line); padding: 14px 20px 20px; background: var(--wt-panel); }
.wt-mobile-panel nav { display: grid; gap: 2px; margin-bottom: 12px; }
.wt-mobile-panel .wt-nav-link { padding: 11px 10px; font-size: 1rem; }
.wt-mobile-panel .wt-btn { width: 100%; }
.wt-nav.is-open .wt-mobile-panel { display: block; }

/* --------------------------------------------------------------------------
   Buttons, chips, badges
   -------------------------------------------------------------------------- */

.wt-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 42px;
    padding: 0 18px;
    border: 1px solid var(--wt-ink);
    border-radius: 9px;
    background: var(--wt-ink);
    color: var(--wt-paper);
    font: inherit;
    font-size: .92rem;
    font-weight: 650;
    line-height: 1;
    text-decoration: none;
    white-space: nowrap;
    cursor: pointer;
    transition: transform .12s ease, opacity .12s ease, background .12s ease;
}

.wt-btn:hover { opacity: .92; }
.wt-btn:active { transform: translateY(1px); }
.wt-btn-sm { min-height: 34px; padding: 0 13px; font-size: .86rem; border-radius: 8px; }

.wt-btn-dark {
    background: var(--wt-ink);
    border-color: var(--wt-ink);
    color: var(--wt-paper);
}

.wt-btn-light {
    background: var(--wt-panel);
    border-color: var(--wt-line-strong);
    color: var(--wt-ink);
    box-shadow: var(--wt-shadow-sm);
}

.wt-btn-light:hover { background: var(--wt-soft); opacity: 1; }

.wt-btn-accent {
    background: var(--wt-accent);
    border-color: var(--wt-accent);
    color: #fff;
}

.wt-btn-ghost {
    background: transparent;
    border-color: transparent;
    color: var(--wt-muted);
}

.wt-btn-ghost:hover { background: var(--wt-soft); color: var(--wt-ink); opacity: 1; }

.wt-btn-wide { width: 100%; }

.wt-chip {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 3px 8px;
    border-radius: 999px;
    background: var(--wt-soft);
    color: var(--wt-muted);
    font-size: .74rem;
    font-weight: 650;
    letter-spacing: .01em;
    white-space: nowrap;
}

.wt-chip-quiet { background: transparent; border: 1px solid var(--wt-line); }
.wt-chip-free { background: var(--wt-green-soft); color: var(--wt-green); }
.wt-chip-row { display: flex; flex-wrap: wrap; gap: 6px; }

.wt-badge-premium {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 3px 8px;
    border-radius: 999px;
    background: var(--wt-gold-soft);
    border: 1px solid color-mix(in srgb, var(--wt-gold) 26%, transparent);
    color: var(--wt-gold);
    font-size: .72rem;
    font-weight: 700;
    letter-spacing: .01em;
    white-space: nowrap;
}

.wt-text-link {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    color: var(--wt-muted);
    font-size: .84rem;
    font-weight: 600;
    text-decoration: none;
}

.wt-text-link:hover { color: var(--wt-ink); }

.wt-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--wt-muted);
    font-size: .78rem;
    font-weight: 650;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.wt-eyebrow::before { content: ""; width: 18px; height: 1px; background: var(--wt-line-strong); }

/* --------------------------------------------------------------------------
   Hero
   -------------------------------------------------------------------------- */

.wt-hero {
    position: relative;
    padding: 92px 0 76px;
    border-bottom: 1px solid var(--wt-line);
    overflow: hidden;
}

.wt-hero::before {
    content: "";
    position: absolute;
    inset: -30% 40% 40% -20%;
    background: radial-gradient(closest-side, color-mix(in srgb, var(--wt-accent) 9%, transparent), transparent 72%);
    pointer-events: none;
}

.wt-hero-grid {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 1.02fr) minmax(0, .98fr);
    gap: 64px;
    align-items: center;
}

.wt-hero-copy h1 {
    margin: 20px 0 0;
    max-width: 660px;
    font-size: clamp(2.85rem, 5.4vw, 4.6rem);
    line-height: .99;
    letter-spacing: -0.045em;
    font-weight: 680;
}

.wt-hero-copy h1 em { font-style: normal; color: var(--wt-muted); }

.wt-hero-copy > p {
    max-width: 540px;
    margin: 22px 0 0;
    color: var(--wt-muted);
    font-size: 1.08rem;
    line-height: 1.7;
}

.wt-hero-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 30px; }

.wt-hero-note {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    margin-top: 20px;
    color: var(--wt-faint);
    font-size: .82rem;
}

.wt-hero-note span { display: inline-flex; align-items: center; gap: 6px; }
.wt-hero-note .wt-ico { color: var(--wt-green); }

/* Product mock ------------------------------------------------------------------ */

.wt-mock {
    position: relative;
    border: 1px solid var(--wt-line-strong);
    border-radius: 16px;
    background: var(--wt-panel);
    box-shadow: var(--wt-shadow-lg);
    overflow: hidden;
    transform: rotate(.35deg);
}

.wt-mock-chrome {
    display: flex;
    align-items: center;
    gap: 6px;
    height: 38px;
    padding: 0 14px;
    border-bottom: 1px solid var(--wt-line);
    background: var(--wt-soft);
}

.wt-mock-chrome i { width: 8px; height: 8px; border-radius: 50%; background: var(--wt-line-strong); }
.wt-mock-chrome span { margin-left: auto; display: inline-flex; align-items: center; gap: 5px; color: var(--wt-faint); font-size: .68rem; font-weight: 600; }

.wt-mock-body { display: grid; grid-template-columns: 132px minmax(0, 1fr); min-height: 356px; }

.wt-mock-side {
    padding: 14px 10px;
    border-right: 1px solid var(--wt-line);
    background: var(--wt-paper);
    display: grid;
    align-content: start;
    gap: 4px;
}

.wt-mock-side .ws-brand { display: flex; align-items: center; gap: 6px; padding: 2px 6px 10px; font-size: .72rem; font-weight: 700; }
.wt-mock-side .ws-brand b { width: 16px; height: 16px; display: grid; place-items: center; border-radius: 4px; background: var(--wt-ink); color: var(--wt-paper); font-size: .52rem; }
.wt-mock-side i { height: 22px; border-radius: 5px; background: transparent; display: flex; align-items: center; gap: 6px; padding: 0 7px; color: var(--wt-muted); font-size: .66rem; font-weight: 550; font-style: normal; }
.wt-mock-side i::before { content: ""; width: 8px; height: 8px; border-radius: 2px; background: var(--wt-line-strong); }
.wt-mock-side i.on { background: var(--wt-soft); color: var(--wt-ink); }

.wt-mock-main { padding: 20px 22px 18px; display: grid; align-content: start; gap: 12px; min-width: 0; }
.wt-mock-crumb { display: flex; align-items: center; gap: 6px; color: var(--wt-faint); font-size: .62rem; }
.wt-mock-title { margin: 0; font-size: 1.32rem; letter-spacing: -0.03em; }
.wt-mock-sub { margin: 0; color: var(--wt-muted); font-size: .7rem; line-height: 1.55; }
.wt-mock-lines { display: grid; gap: 7px; margin-top: 4px; }
.wt-mock-lines span { height: 7px; border-radius: 4px; background: var(--wt-soft-2); }
.wt-mock-lines span:nth-child(2) { width: 88%; }
.wt-mock-lines span:nth-child(3) { width: 64%; }
.wt-mock-cards { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; margin-top: 6px; }
.wt-mock-card { border: 1px solid var(--wt-line); border-radius: 8px; padding: 10px; background: var(--wt-paper); }
.wt-mock-card b { display: block; font-size: .64rem; }
.wt-mock-card span { display: block; margin-top: 3px; color: var(--wt-faint); font-size: .58rem; }
.wt-mock-card .bar { height: 5px; margin-top: 8px; border-radius: 3px; background: var(--wt-soft-2); overflow: hidden; }
.wt-mock-card .bar i { display: block; height: 100%; width: 62%; background: var(--wt-accent); opacity: .75; }

.wt-mock-float {
    position: absolute;
    right: -18px;
    bottom: 26px;
    width: 186px;
    padding: 13px 14px;
    border: 1px solid var(--wt-line);
    border-radius: 11px;
    background: var(--wt-panel);
    box-shadow: var(--wt-shadow-md);
    transform: rotate(-1deg);
}

.wt-mock-float small { display: block; color: var(--wt-faint); font-size: .6rem; font-weight: 650; letter-spacing: .06em; text-transform: uppercase; }
.wt-mock-float strong { display: block; margin-top: 5px; font-size: .82rem; }
.wt-mock-float p { margin: 4px 0 0; color: var(--wt-muted); font-size: .66rem; line-height: 1.5; }

/* --------------------------------------------------------------------------
   Sections
   -------------------------------------------------------------------------- */

.wt-section { padding: 78px 0; }
.wt-section-tight { padding: 54px 0; }
.wt-section-alt { background: var(--wt-panel); border-block: 1px solid var(--wt-line); }

.wt-section-head { display: flex; align-items: end; justify-content: space-between; gap: 30px; margin-bottom: 34px; }
.wt-section-head > div { max-width: 640px; }
.wt-section-head h2 { margin: 12px 0 0; font-size: clamp(1.7rem, 3vw, 2.35rem); line-height: 1.08; }
.wt-section-head p { margin: 12px 0 0; color: var(--wt-muted); line-height: 1.65; font-size: .98rem; }
.wt-section-head-center { justify-content: center; text-align: center; }
.wt-section-head-center > div { margin-inline: auto; }
.wt-section-head-center .wt-eyebrow::before { display: none; }

.wt-kicker-row { display: flex; align-items: center; justify-content: space-between; margin-bottom: 16px; gap: 16px; }

/* Trust strip */
.wt-trust { border-bottom: 1px solid var(--wt-line); background: var(--wt-panel); }
.wt-trust-inner { display: flex; align-items: center; gap: 30px; padding: 20px 0; flex-wrap: wrap; }
.wt-trust-inner > span { color: var(--wt-faint); font-size: .76rem; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; }
.wt-trust-list { display: flex; flex-wrap: wrap; gap: 10px; }
.wt-trust-list span { display: inline-flex; align-items: center; gap: 6px; padding: 6px 11px; border: 1px solid var(--wt-line); border-radius: 999px; background: var(--wt-paper); color: var(--wt-muted); font-size: .78rem; font-weight: 550; }

/* Bento */
.wt-bento { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 14px; }
.wt-bento-card {
    grid-column: span 4;
    padding: 24px;
    border: 1px solid var(--wt-line);
    border-radius: var(--wt-radius-lg);
    background: var(--wt-panel);
    box-shadow: var(--wt-shadow-sm);
}
.wt-bento-card.span-6 { grid-column: span 6; }
.wt-bento-card.span-8 { grid-column: span 8; }
.wt-bento-card.span-9 { grid-column: span 9; }
.wt-bento-card.span-5 { grid-column: span 5; }
.wt-bento-card.span-7 { grid-column: span 7; }
.wt-bento-card.span-3 { grid-column: span 3; }
.wt-bento-card.soft { background: var(--wt-soft); }
.wt-bento-card h3 { margin: 16px 0 8px; font-size: 1.06rem; }
.wt-bento-card p { margin: 0; color: var(--wt-muted); font-size: .92rem; line-height: 1.65; }
.wt-bento-icon { width: 36px; height: 36px; display: grid; place-items: center; border: 1px solid var(--wt-line); border-radius: 9px; background: var(--wt-paper); color: var(--wt-ink); }
.wt-bento-card.soft .wt-bento-icon { background: var(--wt-panel); }

.wt-mini-list { display: grid; gap: 8px; margin: 14px 0 0; padding: 0; list-style: none; }
.wt-mini-list li { display: flex; align-items: flex-start; gap: 8px; color: var(--wt-muted); font-size: .88rem; line-height: 1.5; }
.wt-mini-list .wt-ico { margin-top: 2px; color: var(--wt-green); }

/* Template cards */
.wt-tpl-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }

.wt-tpl-card {
    display: flex;
    flex-direction: column;
    border: 1px solid var(--wt-line);
    border-radius: 14px;
    background: var(--wt-panel);
    box-shadow: var(--wt-shadow-sm);
    overflow: hidden;
    transition: transform .16s ease, box-shadow .16s ease, border-color .16s ease;
}

.wt-tpl-card:hover { transform: translateY(-2px); box-shadow: var(--wt-shadow-md); border-color: var(--wt-line-strong); }

.wt-tpl-preview {
    display: block;
    padding: 16px;
    border-bottom: 1px solid var(--wt-line);
    background: var(--wt-soft);
    text-decoration: none;
    min-height: 188px;
}

.wt-tpl-paper {
    position: relative;
    height: 164px;
    padding: 16px 16px 20px;
    border: 1px solid var(--wt-line);
    border-radius: 8px;
    background: var(--wt-panel);
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(25, 25, 24, .04);
}

.wt-tpl-paper::after {
    content: "";
    position: absolute;
    inset: auto 0 0;
    height: 46px;
    background: linear-gradient(to bottom, transparent, var(--wt-panel));
    pointer-events: none;
}

.wt-tpl-body { display: flex; flex-direction: column; gap: 8px; padding: 18px; flex: 1; }
.wt-tpl-meta { display: flex; align-items: center; gap: 7px; }
.wt-tpl-body h3 { margin: 2px 0 0; font-size: 1.02rem; }
.wt-tpl-body h3 a { text-decoration: none; }
.wt-tpl-body > p { margin: 0; color: var(--wt-muted); font-size: .86rem; line-height: 1.55; flex: 1; }
.wt-tpl-foot { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: 6px; }

/* Block preview typography */
.wt-blk { margin: 0 0 7px; color: var(--wt-ink-2); font-size: .72rem; line-height: 1.5; }
.wt-blk-h1 { font-size: 1.05rem; font-weight: 700; letter-spacing: -0.03em; margin-bottom: 9px; color: var(--wt-ink); }
.wt-blk-h2 { font-size: .8rem; font-weight: 700; margin-top: 10px; margin-bottom: 5px; color: var(--wt-ink); }
.wt-blk-bullet { position: relative; padding-left: 13px; }
.wt-blk-bullet::before { content: ""; position: absolute; left: 2px; top: .55em; width: 4px; height: 4px; border-radius: 50%; background: var(--wt-faint); }
.wt-blk-todo { display: flex; align-items: flex-start; gap: 7px; padding-left: 1px; }
.wt-todo-box { flex: 0 0 auto; width: 10px; height: 10px; margin-top: 3px; border: 1.5px solid var(--wt-line-strong); border-radius: 3px; }
.wt-blk-quote { padding-left: 10px; border-left: 2px solid var(--wt-line-strong); color: var(--wt-muted); font-style: italic; }
.wt-blk-divider { border: 0; border-top: 1px solid var(--wt-line); margin: 10px 0; }

/* Tools */
.wt-tools-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; align-items: start; }

.wt-tool-card {
    border: 1px solid var(--wt-line);
    border-radius: 14px;
    background: var(--wt-panel);
    box-shadow: var(--wt-shadow-sm);
    overflow: hidden;
}

.wt-tool-head { display: flex; align-items: flex-start; gap: 12px; padding: 20px 20px 0; }
.wt-tool-icon { flex: 0 0 auto; width: 38px; height: 38px; display: grid; place-items: center; border: 1px solid var(--wt-line); border-radius: 10px; background: var(--wt-soft); }
.wt-tool-head h3 { margin: 1px 0 4px; font-size: 1.02rem; }
.wt-tool-head p { margin: 0; color: var(--wt-muted); font-size: .84rem; line-height: 1.5; }
.wt-tool-body { padding: 18px 20px 20px; display: grid; gap: 12px; }

.wt-field { display: grid; gap: 6px; }
.wt-field > span { color: var(--wt-muted); font-size: .78rem; font-weight: 650; }
.wt-field-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }

.wt-input, .wt-select, .wt-textarea {
    width: 100%;
    min-height: 40px;
    padding: 9px 11px;
    border: 1px solid var(--wt-line-strong);
    border-radius: 8px;
    background: var(--wt-paper);
    color: var(--wt-ink);
    font: inherit;
    font-size: .9rem;
}

.wt-textarea { min-height: 96px; resize: vertical; line-height: 1.55; }

.wt-input:focus, .wt-select:focus, .wt-textarea:focus {
    outline: none;
    border-color: color-mix(in srgb, var(--wt-accent) 55%, var(--wt-line-strong));
    box-shadow: 0 0 0 3px color-mix(in srgb, var(--wt-accent) 14%, transparent);
}

.wt-output {
    position: relative;
    min-height: 74px;
    padding: 12px 14px;
    border: 1px dashed var(--wt-line-strong);
    border-radius: 9px;
    background: var(--wt-soft);
    color: var(--wt-ink-2);
    font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
    font-size: .8rem;
    line-height: 1.55;
    overflow-wrap: anywhere;
    word-break: break-word;
}

.wt-output-stat { display: flex; align-items: baseline; gap: 6px; }
.wt-output-stat strong { font-size: 1.5rem; letter-spacing: -0.03em; }
.wt-output-stat span { color: var(--wt-muted); font-size: .8rem; }

.wt-meter { height: 6px; border-radius: 999px; background: var(--wt-soft-2); overflow: hidden; }
.wt-meter i { display: block; height: 100%; width: 0; background: var(--wt-green); transition: width .2s ease, background .2s ease; }

.wt-swatches { display: flex; flex-wrap: wrap; gap: 8px; }
.wt-swatch { padding: 6px 11px; border: 1px solid var(--wt-line); border-radius: 7px; background: var(--wt-paper); color: var(--wt-ink); font: inherit; font-size: .8rem; cursor: pointer; }
.wt-swatch:hover { border-color: var(--wt-line-strong); background: var(--wt-soft); }

.wt-copy-btn {
    justify-self: start;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 7px 11px;
    border: 1px solid var(--wt-line-strong);
    border-radius: 7px;
    background: var(--wt-panel);
    color: var(--wt-ink);
    font: inherit;
    font-size: .8rem;
    font-weight: 600;
    cursor: pointer;
}

.wt-copy-btn:hover { background: var(--wt-soft); }
.wt-copy-btn.copied { color: var(--wt-green); border-color: color-mix(in srgb, var(--wt-green) 40%, var(--wt-line)); }

/* Pricing */
.wt-pricing-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; align-items: stretch; }

.wt-price-card {
    display: flex;
    flex-direction: column;
    padding: 26px;
    border: 1px solid var(--wt-line);
    border-radius: var(--wt-radius-lg);
    background: var(--wt-panel);
    box-shadow: var(--wt-shadow-sm);
}

.wt-price-card.is-featured { border-color: var(--wt-ink); box-shadow: var(--wt-shadow-md); position: relative; }

.wt-price-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.wt-price-card h3 { margin: 0; font-size: 1.05rem; }
.wt-price-value { margin: 18px 0 2px; font-size: 2.4rem; font-weight: 700; letter-spacing: -0.04em; line-height: 1; }
.wt-price-value small { color: var(--wt-muted); font-size: .86rem; font-weight: 500; letter-spacing: 0; }
.wt-price-note { margin: 0; color: var(--wt-muted); font-size: .8rem; }
.wt-price-card > p { margin: 14px 0 0; color: var(--wt-muted); font-size: .9rem; line-height: 1.6; }
.wt-price-features { display: grid; gap: 9px; margin: 20px 0 22px; padding: 0; list-style: none; }
.wt-price-features li { display: flex; align-items: flex-start; gap: 8px; color: var(--wt-ink-2); font-size: .87rem; line-height: 1.5; }
.wt-price-features .wt-ico { margin-top: 2px; color: var(--wt-green); flex: 0 0 auto; }
.wt-price-features li.muted { color: var(--wt-faint); }
.wt-price-features li.muted .wt-ico { color: var(--wt-faint); }
.wt-price-card .wt-btn { margin-top: auto; }

.wt-price-foot { margin-top: 18px; color: var(--wt-faint); font-size: .78rem; text-align: center; }

/* FAQ */
.wt-faq { max-width: 820px; margin-inline: auto; border-top: 1px solid var(--wt-line); }
.wt-faq details { border-bottom: 1px solid var(--wt-line); }
.wt-faq summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 20px 4px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    list-style: none;
}
.wt-faq summary::-webkit-details-marker { display: none; }
.wt-faq summary::after { content: "+"; color: var(--wt-muted); font-size: 1.25rem; font-weight: 400; line-height: 1; }
.wt-faq details[open] summary::after { content: "−"; }
.wt-faq details p { margin: 0; padding: 0 4px 20px; max-width: 680px; color: var(--wt-muted); font-size: .92rem; line-height: 1.7; }

/* CTA */
.wt-cta { padding: 80px 0; border-top: 1px solid var(--wt-line); background: var(--wt-panel); }
.wt-cta-inner { display: flex; align-items: center; justify-content: space-between; gap: 40px; }
.wt-cta h2 { margin: 0; max-width: 620px; font-size: clamp(1.8rem, 3.2vw, 2.5rem); line-height: 1.08; }
.wt-cta p { margin: 12px 0 0; color: var(--wt-muted); line-height: 1.65; max-width: 560px; }
.wt-cta-actions { display: flex; flex-wrap: wrap; gap: 10px; flex-shrink: 0; }

/* Footer */
.wt-footer { border-top: 1px solid var(--wt-line); background: var(--wt-paper); padding: 54px 0 26px; }
.wt-footer-inner { width: min(100% - 40px, 1180px); margin-inline: auto; display: grid; grid-template-columns: 1.1fr 1.4fr; gap: 48px; }
.wt-footer-brand p { max-width: 300px; margin: 14px 0 0; color: var(--wt-muted); font-size: .88rem; line-height: 1.6; }
.wt-footer-cols { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.wt-footer-cols > div { display: grid; align-content: start; gap: 9px; }
.wt-footer-cols strong { margin-bottom: 4px; font-size: .8rem; letter-spacing: .02em; }
.wt-footer-cols a { color: var(--wt-muted); font-size: .86rem; text-decoration: none; }
.wt-footer-cols a:hover { color: var(--wt-ink); }
.wt-footer-base {
    width: min(100% - 40px, 1180px);
    margin: 40px auto 0;
    padding-top: 20px;
    border-top: 1px solid var(--wt-line);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
    color: var(--wt-faint);
    font-size: .78rem;
}

/* --------------------------------------------------------------------------
   Template library + detail
   -------------------------------------------------------------------------- */

.wt-library-head { padding: 64px 0 34px; }
.wt-library-head h1 { margin: 14px 0 0; font-size: clamp(2.2rem, 4.4vw, 3.3rem); line-height: 1.02; letter-spacing: -0.04em; }
.wt-library-head p { max-width: 620px; margin: 16px 0 0; color: var(--wt-muted); font-size: 1rem; line-height: 1.65; }

.wt-filter-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
    padding: 14px 0;
    border-block: 1px solid var(--wt-line);
    margin-bottom: 28px;
}

.wt-filter-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.wt-filter-chip {
    padding: 7px 12px;
    border: 1px solid transparent;
    border-radius: 999px;
    color: var(--wt-muted);
    font-size: .82rem;
    font-weight: 550;
    text-decoration: none;
}
.wt-filter-chip:hover { background: var(--wt-soft); color: var(--wt-ink); }
.wt-filter-chip.is-active { background: var(--wt-ink); color: var(--wt-paper); }

.wt-search {
    display: flex;
    align-items: center;
    gap: 8px;
    min-width: 220px;
    padding: 0 12px;
    border: 1px solid var(--wt-line-strong);
    border-radius: 9px;
    background: var(--wt-panel);
    color: var(--wt-faint);
}
.wt-search input { width: 100%; min-height: 38px; border: 0; background: transparent; color: var(--wt-ink); font: inherit; font-size: .88rem; outline: none; }

.wt-empty { padding: 60px 20px; text-align: center; color: var(--wt-muted); }
.wt-empty h2 { margin: 0 0 8px; color: var(--wt-ink); font-size: 1.2rem; }

.wt-detail { display: grid; grid-template-columns: minmax(0, .86fr) minmax(0, 1.14fr); gap: 56px; align-items: start; padding: 56px 0 80px; }
.wt-detail-copy { position: sticky; top: 92px; }
.wt-detail-copy h1 { margin: 14px 0 0; font-size: clamp(2rem, 3.6vw, 2.9rem); line-height: 1.04; letter-spacing: -0.04em; }
.wt-detail-copy > p { margin: 16px 0 0; color: var(--wt-muted); font-size: .98rem; line-height: 1.7; }
.wt-detail-meta { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 18px; }
.wt-detail-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 26px; }
.wt-detail-note { margin-top: 14px; color: var(--wt-faint); font-size: .8rem; line-height: 1.55; }

.wt-detail-paper {
    padding: 42px 46px;
    border: 1px solid var(--wt-line);
    border-radius: 14px;
    background: var(--wt-panel);
    box-shadow: var(--wt-shadow-md);
}
.wt-detail-paper .wt-blk { font-size: .93rem; margin-bottom: 10px; }
.wt-detail-paper .wt-blk-h1 { font-size: 1.9rem; margin-bottom: 16px; }
.wt-detail-paper .wt-blk-h2 { font-size: 1.08rem; margin-top: 22px; }
.wt-detail-paper .wt-blk-quote { font-size: .96rem; }
.wt-detail-paper .wt-todo-box { width: 14px; height: 14px; }

.wt-detail-related { padding: 0 0 80px; }

/* --------------------------------------------------------------------------
   Workspace shell
   -------------------------------------------------------------------------- */

.wt-app-body { background: var(--wt-paper); }

.wt-app { display: grid; grid-template-columns: 258px minmax(0, 1fr); min-height: 100vh; }

.wt-sidebar {
    position: sticky;
    top: 0;
    height: 100vh;
    display: flex;
    flex-direction: column;
    gap: 18px;
    padding: 16px 12px 14px;
    border-right: 1px solid var(--wt-line);
    background: var(--wt-paper);
    overflow-y: auto;
    z-index: 50;
}

.wt-sidebar-head { display: flex; align-items: center; gap: 8px; padding: 2px 6px 6px; }
.wt-sidebar-head .wt-brand { font-size: .92rem; }
.wt-sidebar-head .wt-brand-mark { width: 26px; height: 26px; border-radius: 7px; font-size: .66rem; }

.wt-workspace-switch {
    display: flex;
    align-items: center;
    gap: 9px;
    margin: 2px 4px 0;
    padding: 8px 9px;
    border: 1px solid var(--wt-line);
    border-radius: 9px;
    background: var(--wt-panel);
    box-shadow: var(--wt-shadow-sm);
}
.wt-workspace-switch .ws-avatar { width: 24px; height: 24px; display: grid; place-items: center; border-radius: 6px; background: var(--wt-soft-2); font-size: .62rem; font-weight: 750; }
.wt-workspace-switch div { min-width: 0; }
.wt-workspace-switch strong { display: block; font-size: .78rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.wt-workspace-switch span { display: block; color: var(--wt-faint); font-size: .68rem; }

.wt-side-group { display: grid; gap: 2px; }
.wt-side-label { padding: 0 10px 5px; color: var(--wt-faint); font-size: .66rem; font-weight: 700; letter-spacing: .07em; text-transform: uppercase; }

.wt-side-link {
    display: flex;
    align-items: center;
    gap: 9px;
    padding: 7px 10px;
    border-radius: 7px;
    color: var(--wt-muted);
    font-size: .86rem;
    font-weight: 500;
    text-decoration: none;
    transition: background .14s ease, color .14s ease;
}
.wt-side-link:hover { background: var(--wt-soft); color: var(--wt-ink); }
.wt-side-link.is-active { background: var(--wt-soft); color: var(--wt-ink); font-weight: 600; }
.wt-side-link .wt-ico { color: var(--wt-faint); }
.wt-side-link.is-active .wt-ico { color: var(--wt-ink); }
.wt-side-link .wt-side-count { margin-left: auto; color: var(--wt-faint); font-size: .7rem; font-weight: 600; }
.wt-side-link .wt-badge-premium { margin-left: auto; padding: 1px 6px; font-size: .62rem; }

.wt-sidebar-spacer { flex: 1; }

.wt-side-text { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.wt-sidebar-head { justify-content: space-between; }

.wt-side-collapse,
.wt-side-close {
    width: 28px;
    height: 28px;
    display: inline-grid;
    place-items: center;
    border: 1px solid transparent;
    border-radius: 6px;
    background: transparent;
    color: var(--wt-faint);
    cursor: pointer;
}
.wt-side-collapse:hover,
.wt-side-close:hover { background: var(--wt-soft); color: var(--wt-ink); }
.wt-side-close { display: none; }

.wt-side-new {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 0 2px;
    padding: 7px 10px;
    border: 1px dashed var(--wt-line-strong);
    border-radius: 7px;
    background: transparent;
    color: var(--wt-muted);
    font: inherit;
    font-size: .82rem;
    font-weight: 550;
    text-align: left;
    cursor: pointer;
}
.wt-side-new:hover { background: var(--wt-soft); color: var(--wt-ink); border-color: var(--wt-line-strong); }

/* Desktop collapsed rail */
@media (min-width: 1081px) {
    html[data-side="collapsed"] .wt-app { grid-template-columns: 78px minmax(0, 1fr); }
    html[data-side="collapsed"] .wt-sidebar { padding: 14px 8px; align-items: stretch; }
    html[data-side="collapsed"] .wt-sidebar-head { flex-direction: column; align-items: center; gap: 8px; padding: 2px 0 6px; }
    html[data-side="collapsed"] .wt-brand-text,
    html[data-side="collapsed"] .wt-workspace-switch div,
    html[data-side="collapsed"] .wt-side-label,
    html[data-side="collapsed"] .wt-side-text,
    html[data-side="collapsed"] .wt-side-count,
    html[data-side="collapsed"] .wt-upsell,
    html[data-side="collapsed"] .wt-user-chip div,
    html[data-side="collapsed"] .wt-user-chip > a { display: none; }
    html[data-side="collapsed"] .wt-workspace-switch { justify-content: center; margin: 0 2px; padding: 7px; }
    html[data-side="collapsed"] .wt-side-new { justify-content: center; padding: 9px; }
    html[data-side="collapsed"] .wt-side-new-form { width: 100%; }
    html[data-side="collapsed"] .wt-side-link { justify-content: center; padding: 9px; }
    html[data-side="collapsed"] .wt-user-chip { justify-content: center; padding: 7px 0; }
    html[data-side="collapsed"] .wt-side-collapse .wt-ico { transform: rotate(180deg); }
}

.wt-upsell {
    margin: 2px 4px;
    padding: 14px;
    border: 1px solid var(--wt-line);
    border-radius: 11px;
    background: var(--wt-panel);
    box-shadow: var(--wt-shadow-sm);
}
.wt-upsell .wt-badge-premium { margin-bottom: 8px; }
.wt-upsell strong { display: block; font-size: .82rem; }
.wt-upsell p { margin: 5px 0 10px; color: var(--wt-muted); font-size: .74rem; line-height: 1.5; }
.wt-upsell .wt-btn { width: 100%; min-height: 32px; font-size: .76rem; }

.wt-user-chip { display: flex; align-items: center; gap: 8px; padding: 7px 8px; border-radius: 8px; }
.wt-user-chip:hover { background: var(--wt-soft); }
.wt-user-avatar { width: 28px; height: 28px; display: grid; place-items: center; border-radius: 50%; background: var(--wt-ink); color: var(--wt-paper); font-size: .68rem; font-weight: 700; }
.wt-user-chip div { min-width: 0; flex: 1; }
.wt-user-chip strong { display: block; font-size: .76rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.wt-user-chip span { display: block; color: var(--wt-faint); font-size: .66rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.wt-user-chip a { color: var(--wt-faint); font-size: .68rem; text-decoration: none; }
.wt-user-chip a:hover { color: var(--wt-ink); }

.wt-main { min-width: 0; display: flex; flex-direction: column; }

.wt-topbar {
    position: sticky;
    top: 0;
    z-index: 40;
    display: flex;
    align-items: center;
    gap: 14px;
    min-height: 56px;
    padding: 8px 22px;
    border-bottom: 1px solid var(--wt-line);
    background: color-mix(in srgb, var(--wt-paper) 90%, transparent);
    backdrop-filter: saturate(160%) blur(12px);
}

.wt-topbar .wt-menu-btn { display: none; }
.wt-crumb { display: flex; align-items: center; gap: 7px; color: var(--wt-faint); font-size: .8rem; white-space: nowrap; }
.wt-crumb strong { color: var(--wt-ink); font-weight: 600; }

.wt-topbar-search {
    display: flex;
    align-items: center;
    gap: 8px;
    width: min(320px, 38vw);
    margin-left: auto;
    padding: 0 10px;
    border: 1px solid var(--wt-line);
    border-radius: 8px;
    background: var(--wt-panel);
    color: var(--wt-faint);
    font: inherit;
    text-align: left;
    cursor: pointer;
}
.wt-topbar-search:hover { border-color: var(--wt-line-strong); background: var(--wt-soft); }
.wt-topbar-search span { flex: 1; color: var(--wt-faint); font-size: .82rem; }
.wt-topbar-search input { width: 100%; min-height: 32px; border: 0; background: transparent; color: var(--wt-ink); font: inherit; font-size: .82rem; outline: none; }
.wt-topbar-search kbd { padding: 1px 5px; border: 1px solid var(--wt-line); border-radius: 4px; background: var(--wt-soft); color: var(--wt-faint); font-family: inherit; font-size: .64rem; }

.wt-save-state {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-right: 6px;
    color: var(--wt-faint);
    font-size: .72rem;
    white-space: nowrap;
}
.wt-save-state i { width: 6px; height: 6px; border-radius: 50%; background: var(--wt-green); }
.wt-save-state[data-state="saving"] i { background: var(--wt-gold); animation: wt-pulse 1s ease-in-out infinite; }
.wt-save-state[data-state="unsaved"] i { background: var(--wt-gold); }
.wt-save-state[data-state="offline"] i { background: var(--wt-danger); }

@keyframes wt-pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: .35; }
}

/* Dashboard */
.wt-dashboard {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 320px;
    gap: 30px;
    align-items: start;
    padding: 10px 0 28px;
}
.wt-dash-copy h1 { margin: 12px 0 0; font-size: clamp(2rem, 3.5vw, 2.85rem); line-height: 1.04; letter-spacing: -0.04em; }
.wt-dash-copy > p { max-width: 620px; margin: 14px 0 0; color: var(--wt-muted); font-size: .96rem; line-height: 1.65; }
.wt-dash-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 22px; }
.wt-dash-rail { display: grid; gap: 12px; }

.wt-usage-card,
.wt-next-card {
    padding: 16px;
    border: 1px solid var(--wt-line);
    border-radius: 13px;
    background: var(--wt-panel);
    box-shadow: var(--wt-shadow-sm);
}
.wt-usage-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; color: var(--wt-faint); font-size: .68rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; }
.wt-usage-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: 12px; color: var(--wt-muted); font-size: .8rem; }
.wt-usage-row strong { color: var(--wt-ink); font-size: .78rem; font-weight: 650; }
.wt-usage-card .wt-meter { margin-top: 6px; height: 5px; }
.wt-usage-card .wt-text-link { margin-top: 12px; }
.wt-usage-note { display: block; margin-top: 10px; color: var(--wt-faint); font-size: .72rem; line-height: 1.45; }
.wt-next-card .wt-eyebrow { font-size: .66rem; }
.wt-next-card strong { display: block; margin-top: 8px; font-size: .95rem; line-height: 1.3; }
.wt-next-card p { margin: 4px 0 0; color: var(--wt-muted); font-size: .78rem; line-height: 1.5; }

/* Dashboard lists */
.wt-recent-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.wt-recent-card {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 14px;
    border: 1px solid var(--wt-line);
    border-radius: 11px;
    background: var(--wt-panel);
    color: var(--wt-ink);
    text-decoration: none;
    box-shadow: var(--wt-shadow-sm);
    transition: border-color .15s ease, transform .15s ease;
}
.wt-recent-card:hover { border-color: var(--wt-line-strong); transform: translateY(-1px); }
.wt-recent-card > div { min-width: 0; flex: 1; }
.wt-recent-card strong { display: block; font-size: .9rem; }
.wt-recent-card p { margin: 4px 0 0; color: var(--wt-muted); font-size: .8rem; line-height: 1.45; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.wt-recent-icon { flex: 0 0 auto; width: 30px; height: 30px; display: grid; place-items: center; border: 1px solid var(--wt-line); border-radius: 8px; background: var(--wt-soft); color: var(--wt-muted); }

.wt-page-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; padding-bottom: 40px; }
.wt-page-card { display: flex; flex-direction: column; padding: 16px; border: 1px solid var(--wt-line); border-radius: 12px; background: var(--wt-panel); box-shadow: var(--wt-shadow-sm); transition: border-color .15s ease, transform .15s ease; }
.wt-page-card:hover { border-color: var(--wt-line-strong); transform: translateY(-1px); }
.wt-page-card-main { display: flex; align-items: flex-start; gap: 10px; color: var(--wt-ink); text-decoration: none; flex: 1; }
.wt-page-card-main > div { min-width: 0; flex: 1; }
.wt-page-card-main strong { display: block; font-size: .92rem; }
.wt-page-card-main p { margin: 5px 0 0; color: var(--wt-muted); font-size: .8rem; line-height: 1.5; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.wt-page-card-foot { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: 14px; padding-top: 10px; border-top: 1px solid var(--wt-line); }

.wt-upcoming { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.wt-upcoming-card { padding: 14px; border: 1px solid var(--wt-line); border-radius: 10px; background: var(--wt-panel); box-shadow: var(--wt-shadow-sm); }
.wt-upcoming-date { display: inline-block; margin-bottom: 8px; color: var(--wt-accent-ink); font-size: .72rem; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; }
.wt-upcoming-card strong { display: block; font-size: .88rem; }
.wt-upcoming-card p { margin: 4px 0 0; color: var(--wt-muted); font-size: .78rem; }

.wt-empty-card {
    display: grid;
    justify-items: center;
    gap: 8px;
    padding: 32px 24px;
    border: 1px dashed var(--wt-line-strong);
    border-radius: 14px;
    background: var(--wt-panel);
    text-align: center;
}
.wt-empty-card h2 { margin: 6px 0 0; font-size: 1.1rem; }
.wt-empty-card p { margin: 0; max-width: 480px; color: var(--wt-muted); font-size: .88rem; line-height: 1.6; }
.wt-empty-card .wt-dash-actions { justify-content: center; }

.wt-activity { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.wt-activity-item { display: flex; align-items: flex-start; gap: 10px; padding: 11px 13px; border: 1px solid var(--wt-line); border-radius: 9px; background: var(--wt-panel); }
.wt-activity-dot { flex: 0 0 auto; width: 7px; height: 7px; margin-top: 5px; border-radius: 50%; background: var(--wt-accent); opacity: .7; }
.wt-activity-item strong { display: block; font-size: .82rem; font-weight: 600; }
.wt-activity-item p { margin: 2px 0 0; color: var(--wt-faint); font-size: .72rem; }

.wt-side-new-form { margin: 0; }
.page-list-links .page-item { text-decoration: none; color: var(--wt-ink); }

.wt-editor-bar { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 6px 0 18px; }
.wt-editor-shell { margin-bottom: 70px; }
.wt-editor-shell .docs-sidebar { position: sticky; top: 78px; }
.wt-editor-shell .doc-editor { min-height: 560px; }

/* Page filter */
.wt-page-filter-wrap {    display: flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 8px;
    padding: 0 9px;
    border: 1px solid var(--wt-line);
    border-radius: 7px;
    background: var(--wt-paper);
    color: var(--wt-faint);
}
.wt-page-filter { width: 100%; min-height: 32px; border: 0; background: transparent; color: var(--wt-ink); font: inherit; font-size: .8rem; outline: none; }

/* Command palette */
.wt-palette {
    width: min(100% - 28px, 620px);
    padding: 0;
    border: 1px solid var(--wt-line-strong);
    border-radius: 14px;
    background: var(--wt-panel);
    color: var(--wt-ink);
    box-shadow: var(--wt-shadow-lg);
    overflow: hidden;
}
.wt-palette::backdrop { background: rgba(16, 16, 15, .46); backdrop-filter: blur(3px); }
.wt-palette-head { display: flex; align-items: center; gap: 10px; padding: 14px 16px; border-bottom: 1px solid var(--wt-line); color: var(--wt-faint); }
.wt-palette-head input { flex: 1; border: 0; background: transparent; color: var(--wt-ink); font: inherit; font-size: 1rem; outline: none; }
.wt-palette-head kbd { padding: 2px 6px; border: 1px solid var(--wt-line); border-radius: 5px; background: var(--wt-soft); color: var(--wt-faint); font-family: inherit; font-size: .68rem; }
.wt-palette-list { max-height: 360px; overflow: auto; padding: 6px; }
.wt-palette-item {
    width: 100%;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 9px 10px;
    border: 0;
    border-radius: 8px;
    background: transparent;
    color: var(--wt-ink);
    font: inherit;
    font-size: .88rem;
    text-align: left;
    cursor: pointer;
}
.wt-palette-item:hover,
.wt-palette-item.is-active { background: var(--wt-soft); }
.wt-palette-item .palette-avatar { width: 24px; height: 24px; display: grid; place-items: center; border-radius: 6px; background: var(--wt-soft-2); color: var(--wt-muted); font-size: .58rem; font-weight: 750; flex: 0 0 auto; }
.wt-palette-item .palette-kind { margin-left: auto; color: var(--wt-faint); font-size: .7rem; }
.wt-palette-empty { padding: 26px 16px; color: var(--wt-muted); font-size: .86rem; text-align: center; }
.wt-palette-foot { display: flex; gap: 16px; padding: 9px 16px; border-top: 1px solid var(--wt-line); color: var(--wt-faint); font-size: .68rem; }
.wt-palette-foot span { display: inline-flex; align-items: center; gap: 5px; }

.wt-topbar-actions { display: flex; align-items: center; gap: 4px; }
.wt-icon-btn {
    width: 32px;
    height: 32px;
    display: inline-grid;
    place-items: center;
    border: 1px solid transparent;
    border-radius: 7px;
    background: transparent;
    color: var(--wt-muted);
    text-decoration: none;
    cursor: pointer;
}
.wt-icon-btn:hover { background: var(--wt-soft); color: var(--wt-ink); }

.wt-content { width: 100%; max-width: 1180px; margin: 0 auto; padding: 26px 30px 90px; }
.wt-content [id] { scroll-margin-top: 78px; }

.wt-page-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; padding: 8px 0 24px; }
.wt-page-head h1 { margin: 6px 0 0; font-size: clamp(1.75rem, 3.2vw, 2.5rem); line-height: 1.06; letter-spacing: -0.035em; }
.wt-page-head p { max-width: 640px; margin: 12px 0 0; color: var(--wt-muted); font-size: .94rem; line-height: 1.6; }
.wt-page-head-actions { display: flex; flex-wrap: wrap; gap: 8px; justify-content: flex-end; }

.wt-notice {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 13px 15px;
    border: 1px solid var(--wt-line);
    border-left: 3px solid var(--wt-gold);
    border-radius: 9px;
    background: var(--wt-gold-soft);
    color: var(--wt-ink-2);
    font-size: .84rem;
    line-height: 1.55;
    margin-bottom: 18px;
}
.wt-notice strong { color: var(--wt-ink); }
.wt-notice a { color: var(--wt-ink); font-weight: 650; }

/* Workspace content overrides for the existing module classes */
.wt-app .metric-row { gap: 10px; margin-bottom: 18px; }
.wt-app .metric-row article {
    border: 1px solid var(--wt-line);
    border-radius: 11px;
    background: var(--wt-panel);
    box-shadow: var(--wt-shadow-sm);
    padding: 15px 16px;
}
.wt-app .metric-row span { color: var(--wt-faint); font-size: .68rem; font-weight: 650; letter-spacing: .05em; text-transform: uppercase; }
.wt-app .metric-row strong { font-size: 1.7rem; font-weight: 650; letter-spacing: -0.03em; }
.wt-app .metric-row small { color: var(--wt-faint); font-size: .72rem; line-height: 1.4; }

.wt-app .tool-grid { gap: 14px; margin-top: 14px; }
.wt-app .tool-panel {
    border: 1px solid var(--wt-line);
    border-radius: 12px;
    background: var(--wt-panel);
    box-shadow: var(--wt-shadow-sm);
    padding: 18px;
}
.wt-app .panel-heading { margin-bottom: 14px; }
.wt-app .panel-heading h2 { font-size: 1.08rem; margin-top: 5px; letter-spacing: -0.02em; }
.wt-app .product-type { color: var(--wt-faint); font-size: .66rem; font-weight: 700; letter-spacing: .07em; }
.wt-app .tool-form label, .wt-app .score-form label { color: var(--wt-muted); font-size: .76rem; font-weight: 600; }
.wt-app .inline-form { grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: end; }
.wt-app .inline-form .button { grid-column: 1 / -1; }
.wt-app .tool-form input, .wt-app .tool-form select, .wt-app .tool-form textarea, .wt-app .template-output {
    border-color: var(--wt-line-strong);
    border-radius: 8px;
    background: var(--wt-paper);
    color: var(--wt-ink);
    font-size: .88rem;
}
.wt-app .button {
    border-color: var(--wt-ink);
    border-radius: 8px;
    background: var(--wt-ink);
    color: var(--wt-paper);
    font-weight: 600;
    font-size: .86rem;
    min-height: 38px;
    box-shadow: none;
}
.wt-app .button.secondary { background: var(--wt-panel); color: var(--wt-ink); border-color: var(--wt-line-strong); }
.wt-app .button.small { min-height: 32px; font-size: .78rem; }
.wt-app .saved-item, .wt-app .calendar-card { border-color: var(--wt-line); border-radius: 9px; background: var(--wt-paper); }
.wt-app .empty-state { color: var(--wt-faint); font-size: .86rem; }

.wt-app .docs-shell { grid-template-columns: 218px minmax(0, 1fr); gap: 14px; }
.wt-app .docs-sidebar { border: 1px solid var(--wt-line); border-radius: 10px; background: var(--wt-panel); padding: 12px; }
.wt-app .docs-sidebar h3 { color: var(--wt-faint); font-size: .66rem; letter-spacing: .07em; }
.wt-app .page-item { border-radius: 7px; font-size: .84rem; font-weight: 500; padding: 8px 9px; }
.wt-app .page-item.active { background: var(--wt-soft); border-color: var(--wt-line); font-weight: 600; }
.wt-app .doc-editor { border: 1px solid var(--wt-line); border-radius: 12px; background: var(--wt-panel); box-shadow: var(--wt-shadow-sm); padding: 34px 40px; min-height: 460px; }
.wt-app .doc-title { font-size: 1.75rem; border-bottom: 0; padding-bottom: 4px; margin-bottom: 10px; }
.wt-app .block-content { font-size: .95rem; line-height: 1.7; }
.wt-app .block-heading { font-size: 1.35rem; }
.wt-app .block-subheading { font-size: 1.1rem; }
.wt-app .board-col { border-color: var(--wt-line); border-radius: 10px; background: var(--wt-soft); }
.wt-app .board-card { border-color: var(--wt-line); border-radius: 8px; background: var(--wt-panel); box-shadow: var(--wt-shadow-sm); }

.wt-app .workspace-actions .tag,
.wt-app .tag { border-radius: 999px; padding: 3px 8px; font-size: .7rem; font-weight: 650; }
.wt-app .tag.done { background: var(--wt-green-soft); color: var(--wt-green); }
.wt-app .tag.pending { background: var(--wt-gold-soft); color: var(--wt-gold); }

.wt-app .mapping-table { background: transparent; color: var(--wt-ink); }
.wt-app .mapping-table th,
.wt-app .mapping-table td { border-color: var(--wt-line); }
.wt-app .mapping-table th { color: var(--wt-faint); }
.wt-app .form-error { border-color: color-mix(in srgb, var(--wt-danger) 35%, var(--wt-line)); background: color-mix(in srgb, var(--wt-danger) 8%, var(--wt-panel)); color: var(--wt-danger); }

/* Section dividers inside the workspace */
.wt-block-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin: 34px 0 0; }
.wt-block-head h2 { margin: 0; font-size: 1.2rem; letter-spacing: -0.025em; }
.wt-block-head p { margin: 3px 0 0; color: var(--wt-muted); font-size: .86rem; }
.wt-block-head a { color: var(--wt-muted); font-size: .8rem; font-weight: 600; text-decoration: none; }
.wt-block-head a:hover { color: var(--wt-ink); }

/* Auth + upgrade */
.wt-auth-wrap { min-height: 100vh; display: grid; place-items: center; padding: 40px 18px; background: var(--wt-paper); }
.wt-auth-card {
    width: min(100%, 460px);
    padding: 30px;
    border: 1px solid var(--wt-line);
    border-radius: var(--wt-radius-lg);
    background: var(--wt-panel);
    box-shadow: var(--wt-shadow-md);
    display: grid;
    gap: 20px;
}
.wt-auth-card.wide { width: min(100%, 980px); }
.wt-auth-card h1 { margin: 0; font-size: 1.7rem; letter-spacing: -0.03em; }
.wt-auth-card > div > p { margin: 8px 0 0; color: var(--wt-muted); font-size: .92rem; line-height: 1.6; }
.wt-auth-form { display: grid; gap: 12px; }
.wt-auth-form label { display: grid; gap: 6px; color: var(--wt-muted); font-size: .8rem; font-weight: 600; }
.wt-auth-form input, .wt-auth-form select { width: 100%; min-height: 42px; padding: 0 11px; border: 1px solid var(--wt-line-strong); border-radius: 8px; background: var(--wt-paper); color: var(--wt-ink); font: inherit; }
.wt-auth-alt { color: var(--wt-muted); font-size: .86rem; text-align: center; }
.wt-auth-alt a { color: var(--wt-ink); font-weight: 600; }

.wt-onboard-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }

.wt-channel-fieldset {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 10px;
    margin: 2px 0 0;
    padding: 14px 16px;
    border: 1px solid var(--wt-line);
    border-radius: 10px;
    background: var(--wt-paper);
}
.wt-channel-fieldset legend { padding: 0 5px; color: var(--wt-muted); font-size: .78rem; font-weight: 650; }
.wt-channel-fieldset label { display: flex; align-items: center; gap: 7px; color: var(--wt-ink); font-weight: 500; }
.wt-channel-fieldset input { width: auto; min-height: auto; accent-color: var(--wt-accent); }

.wt-upgrade-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }

/* Modal */
.wt-modal {
    width: min(100% - 32px, 460px);
    padding: 24px;
    border: 1px solid var(--wt-line-strong);
    border-radius: 16px;
    background: var(--wt-panel);
    color: var(--wt-ink);
    box-shadow: var(--wt-shadow-lg);
}
.wt-modal::backdrop { background: rgba(16, 16, 15, .48); backdrop-filter: blur(3px); }
.wt-modal-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 12px; }
.wt-modal-close { width: 30px; height: 30px; display: grid; place-items: center; border: 1px solid var(--wt-line); border-radius: 8px; background: var(--wt-paper); color: var(--wt-muted); cursor: pointer; }
.wt-modal-close:hover { color: var(--wt-ink); background: var(--wt-soft); }
.wt-modal h2 { margin: 0; font-size: 1.45rem; line-height: 1.15; letter-spacing: -0.03em; }
.wt-modal > p { margin: 10px 0 0; color: var(--wt-muted); font-size: .9rem; line-height: 1.65; }
.wt-modal-price { display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; margin-top: 16px; }
.wt-modal-price strong { font-size: 1.7rem; letter-spacing: -0.03em; }
.wt-modal-price span { color: var(--wt-muted); font-size: .82rem; }
.wt-modal .wt-price-features { margin: 14px 0 18px; }
.wt-modal-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.wt-modal-actions .wt-btn { flex: 1; }

/* --------------------------------------------------------------------------
   Utilities
   -------------------------------------------------------------------------- */

.wt-mt-0 { margin-top: 0; }
.wt-mt-8 { margin-top: 8px; }
.wt-mt-16 { margin-top: 16px; }
.wt-mt-24 { margin-top: 24px; }
.wt-mt-32 { margin-top: 32px; }
.wt-text-muted { color: var(--wt-muted); }
.wt-text-small { font-size: .84rem; }
.wt-hidden { display: none !important; }
.wt-sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); border: 0; }

.wt-sidebar-backdrop { display: none; }

.wt-toast {
    position: fixed;
    left: 50%;
    bottom: 24px;
    z-index: 200;
    max-width: min(92vw, 460px);
    padding: 12px 16px;
    border: 1px solid var(--wt-line-strong);
    border-radius: 10px;
    background: var(--wt-ink);
    color: var(--wt-paper);
    box-shadow: var(--wt-shadow-lg);
    font-size: .86rem;
    line-height: 1.5;
    opacity: 0;
    transform: translate(-50%, 10px);
    pointer-events: none;
    transition: opacity .18s ease, transform .18s ease;
}

.wt-toast.is-visible { opacity: 1; transform: translate(-50%, 0); }

/* --------------------------------------------------------------------------
   Publishing calendar
   -------------------------------------------------------------------------- */

:root {
    --cal-linkedin: #0a66c2;
    --cal-email: #7c5cff;
    --cal-product-blog: #0f766e;
    --cal-paid-social: #c2410c;
    --cal-instagram: #b83280;
    --cal-x: #262626;
    --cal-newsletter: #0e7490;
    --cal-other: #6b7280;
}

html[data-theme="dark"] {
    --cal-linkedin: #6ea8ff;
    --cal-email: #b19cff;
    --cal-product-blog: #5fd3bd;
    --cal-paid-social: #ffab7a;
    --cal-instagram: #ff8bc8;
    --cal-x: #d4d4d4;
    --cal-newsletter: #7dd3ee;
    --cal-other: #a3a3a3;
}

[data-channel="linkedin"] { --channel: var(--cal-linkedin); }
[data-channel="email"] { --channel: var(--cal-email); }
[data-channel="product-blog"] { --channel: var(--cal-product-blog); }
[data-channel="paid-social"] { --channel: var(--cal-paid-social); }
[data-channel="instagram"] { --channel: var(--cal-instagram); }
[data-channel="x"] { --channel: var(--cal-x); }
[data-channel="newsletter"] { --channel: var(--cal-newsletter); }
[data-channel="other"] { --channel: var(--cal-other); }

.wt-cal-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; padding: 0 0 14px; }
.wt-cal-nav { display: flex; align-items: center; gap: 8px; }
.wt-cal-nav h2 { margin: 0 0 0 6px; font-size: 1.35rem; letter-spacing: -0.03em; }
.wt-cal-nav .wt-icon-btn { border: 1px solid var(--wt-line); background: var(--wt-panel); }
.wt-cal-view-switch { display: inline-flex; padding: 3px; border: 1px solid var(--wt-line); border-radius: 9px; background: var(--wt-soft); }
.wt-cal-view { padding: 6px 13px; border: 0; border-radius: 6px; background: transparent; color: var(--wt-muted); font: inherit; font-size: .8rem; font-weight: 600; cursor: pointer; }
.wt-cal-view:hover { color: var(--wt-ink); }
.wt-cal-view.is-active { background: var(--wt-panel); color: var(--wt-ink); box-shadow: var(--wt-shadow-sm); }

.wt-cal-filters { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; padding: 0 0 14px; }
.wt-cal-filter-group { display: flex; flex-wrap: wrap; gap: 5px; }
.wt-cal-filter { display: inline-flex; align-items: center; gap: 6px; padding: 6px 10px; border: 1px solid var(--wt-line); border-radius: 999px; background: var(--wt-panel); color: var(--wt-muted); font: inherit; font-size: .76rem; font-weight: 600; cursor: pointer; }
.wt-cal-filter:hover { border-color: var(--wt-line-strong); color: var(--wt-ink); }
.wt-cal-filter.is-active { background: var(--wt-ink); border-color: var(--wt-ink); color: var(--wt-paper); }
.wt-cal-filter span { opacity: .6; font-size: .7rem; }
.wt-cal-filter i { width: 7px; height: 7px; border-radius: 50%; background: var(--channel, var(--wt-faint)); }
.wt-cal-status-dot { width: 7px !important; height: 7px !important; }
.wt-cal-status-dot[data-status="draft"] { background: var(--wt-faint); }
.wt-cal-status-dot[data-status="scheduled"] { background: var(--wt-accent); }
.wt-cal-status-dot[data-status="published"] { background: var(--wt-green); }

.wt-cal-layout { display: grid; grid-template-columns: minmax(0, 1fr) 290px; gap: 16px; align-items: start; }
.wt-cal-main { border: 1px solid var(--wt-line); border-radius: 13px; background: var(--wt-panel); box-shadow: var(--wt-shadow-sm); overflow-x: auto; }
.wt-cal-main::-webkit-scrollbar { height: 8px; }
.wt-cal-main::-webkit-scrollbar-thumb { background: var(--wt-line-strong); border-radius: 999px; }

.wt-cal-weekdays { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); min-width: 640px; border-bottom: 1px solid var(--wt-line); background: var(--wt-soft); }
.wt-cal-weekdays span { padding: 9px 10px; color: var(--wt-faint); font-size: .68rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; text-align: left; }

.wt-cal-grid { min-width: 640px; }
.wt-cal-grid-month { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); }
.wt-cal-grid-week { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); min-width: 640px; }

.wt-cal-day { min-height: 122px; padding: 6px; border-right: 1px solid var(--wt-line); border-bottom: 1px solid var(--wt-line); background: var(--wt-panel); transition: background .12s ease; }
.wt-cal-day:nth-child(7n) { border-right: 0; }
.wt-cal-grid-week .wt-cal-day { min-height: 420px; }
.wt-cal-day.is-outside { background: var(--wt-soft); }
.wt-cal-day.is-today { background: color-mix(in srgb, var(--wt-accent) 5%, var(--wt-panel)); }
.wt-cal-day.is-today .wt-cal-day-number { background: var(--wt-ink); color: var(--wt-paper); }
.wt-cal-day.is-drop-target { background: color-mix(in srgb, var(--wt-accent) 12%, var(--wt-panel)); box-shadow: inset 0 0 0 2px color-mix(in srgb, var(--wt-accent) 40%, transparent); }

.wt-cal-day-head { display: flex; align-items: center; gap: 6px; min-height: 24px; margin-bottom: 4px; }
.wt-cal-day-name { color: var(--wt-faint); font-size: .64rem; font-weight: 650; text-transform: uppercase; }
.wt-cal-day-number { width: 22px; height: 22px; display: inline-grid; place-items: center; border-radius: 50%; color: var(--wt-muted); font-size: .74rem; font-weight: 650; }
.wt-cal-day.is-outside .wt-cal-day-number { color: var(--wt-faint); }
.wt-cal-add { margin-left: auto; width: 22px; height: 22px; display: inline-grid; place-items: center; border: 1px solid transparent; border-radius: 6px; background: transparent; color: var(--wt-faint); font: inherit; font-size: .95rem; line-height: 1; cursor: pointer; opacity: 0; }
.wt-cal-day:hover .wt-cal-add { opacity: 1; }
.wt-cal-add:hover { background: var(--wt-soft); color: var(--wt-ink); border-color: var(--wt-line); }

.wt-cal-slots { display: grid; gap: 4px; align-content: start; }
.wt-cal-slot { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 2px 6px; width: 100%; padding: 5px 7px 5px 8px; border: 1px solid var(--wt-line); border-left: 3px solid var(--channel, var(--wt-faint)); border-radius: 6px; background: var(--wt-paper); color: var(--wt-ink); font: inherit; text-align: left; cursor: grab; }
.wt-cal-slot:hover { border-color: var(--wt-line-strong); background: var(--wt-soft); }
.wt-cal-slot.is-dragging { opacity: .45; }
.wt-cal-slot-time { grid-row: span 2; color: var(--wt-faint); font-size: .62rem; font-weight: 650; padding-top: 1px; }
.wt-cal-slot-title { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: .72rem; font-weight: 600; }
.wt-cal-slot-channel { color: var(--wt-faint); font-size: .6rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.wt-cal-slot[data-status="draft"] { border-left-style: dashed; }
.wt-cal-slot[data-status="published"] { opacity: .78; }
.wt-cal-slot[data-status="published"] .wt-cal-slot-title { text-decoration: line-through; text-decoration-color: var(--wt-faint); }

.wt-cal-more { justify-self: start; padding: 2px 6px; border: 0; border-radius: 5px; background: transparent; color: var(--wt-muted); font: inherit; font-size: .66rem; font-weight: 600; cursor: pointer; }
.wt-cal-more:hover { background: var(--wt-soft); color: var(--wt-ink); }

.wt-cal-side { display: grid; gap: 12px; position: sticky; top: 78px; }
.wt-cal-side-card { border: 1px solid var(--wt-line); border-radius: 12px; background: var(--wt-panel); box-shadow: var(--wt-shadow-sm); overflow: hidden; }
.wt-cal-side-head { display: flex; align-items: center; justify-content: space-between; padding: 12px 14px; border-bottom: 1px solid var(--wt-line); color: var(--wt-faint); font-size: .7rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; }
.wt-cal-queue { display: grid; }
.wt-cal-queue-item { display: grid; gap: 3px; padding: 11px 14px; border: 0; border-bottom: 1px solid var(--wt-line); background: transparent; color: var(--wt-ink); font: inherit; text-align: left; cursor: pointer; }
.wt-cal-queue-item:last-child { border-bottom: 0; }
.wt-cal-queue-item:hover { background: var(--wt-soft); }
.wt-cal-queue-date { color: var(--wt-faint); font-size: .66rem; font-weight: 600; }
.wt-cal-queue-item strong { font-size: .82rem; line-height: 1.35; }
.wt-cal-queue-meta { display: flex; align-items: center; gap: 5px; color: var(--wt-muted); font-size: .68rem; }
.wt-cal-queue-meta i { width: 6px; height: 6px; border-radius: 50%; background: var(--channel, var(--wt-faint)); }
.wt-cal-queue-meta em { margin-left: auto; color: var(--wt-faint); font-size: .64rem; font-style: normal; text-transform: capitalize; }
.wt-cal-queue-meta em[data-status="scheduled"] { color: var(--wt-accent); }
.wt-cal-queue-meta em[data-status="published"] { color: var(--wt-green); }
.wt-cal-queue-empty { padding: 18px 14px; color: var(--wt-muted); }
.wt-cal-queue-empty strong { display: block; font-size: .82rem; }
.wt-cal-queue-empty p { margin: 4px 0 0; font-size: .74rem; line-height: 1.45; }
.wt-cal-side-note { padding: 14px; }
.wt-cal-side-note .wt-eyebrow { font-size: .64rem; }

.wt-cal-list { padding: 8px; display: grid; gap: 14px; }
.wt-cal-list-group { display: grid; gap: 6px; }
.wt-cal-list-date { display: flex; align-items: center; gap: 10px; padding: 4px 6px; color: var(--wt-muted); font-size: .74rem; }
.wt-cal-list-date strong { color: var(--wt-ink); font-size: .8rem; }
.wt-cal-list-items { display: grid; gap: 4px; }
.wt-cal-list-item { display: flex; align-items: center; gap: 10px; padding: 9px 10px; border: 1px solid var(--wt-line); border-radius: 8px; background: var(--wt-paper); color: var(--wt-ink); font: inherit; text-align: left; cursor: pointer; }
.wt-cal-list-item:hover { background: var(--wt-soft); }
.wt-cal-list-time { width: 48px; color: var(--wt-faint); font-size: .72rem; font-weight: 600; }
.wt-cal-list-title { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: .82rem; font-weight: 600; }
.wt-cal-list-channel { color: var(--wt-muted); font-size: .7rem; }
.wt-cal-status { padding: 2px 7px; border-radius: 999px; background: var(--wt-soft); color: var(--wt-muted); font-size: .62rem; font-weight: 650; text-transform: capitalize; }
.wt-cal-status[data-status="scheduled"] { background: var(--wt-accent-soft); color: var(--wt-accent-ink); }
.wt-cal-status[data-status="published"] { background: var(--wt-green-soft); color: var(--wt-green); }
.wt-cal-empty { padding: 50px 20px; text-align: center; color: var(--wt-muted); }
.wt-cal-empty strong { display: block; color: var(--wt-ink); font-size: 1rem; }
.wt-cal-empty p { margin: 6px 0 0; font-size: .84rem; }

.wt-slot-modal { width: min(100% - 32px, 560px); }
.wt-slot-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.wt-slot-topic, .wt-slot-notes { grid-column: 1 / -1; }
.wt-slot-modal .wt-modal-head { margin-bottom: 18px; }
.wt-slot-modal .wt-modal-head h2 { margin: 0; }
.wt-slot-modal .wt-field > span { font-size: .74rem; }
.wt-slot-modal .wt-input, .wt-slot-modal .wt-select, .wt-slot-modal .wt-textarea { background: var(--wt-paper); }

@media (max-width: 1100px) {
    .wt-cal-layout { grid-template-columns: 1fr; }
    .wt-cal-side { position: static; grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 820px) {
    .wt-cal-side { grid-template-columns: 1fr; }
    .wt-cal-toolbar { align-items: flex-start; }
    .wt-cal-nav h2 { font-size: 1.15rem; }
    .wt-cal-view-switch { order: 2; }
    .wt-cal-filters { align-items: flex-start; flex-direction: column; }
    .wt-cal-day { min-height: 96px; }
    .wt-slot-grid { grid-template-columns: 1fr; }
}

/* Legacy admin shell mapped onto the new design tokens */
body.wt-app-body {
    --ink: var(--wt-ink);
    --muted: var(--wt-muted);
    --line: var(--wt-line);
    --panel: var(--wt-panel);
    --soft: var(--wt-soft);
    --brand: var(--wt-accent);
    --brand-dark: var(--wt-accent-ink);
    --warn: var(--wt-gold);
    --paper: var(--wt-panel);
}

body.wt-app-body .app-shell { grid-template-columns: 258px minmax(0, 1fr); background: var(--wt-paper); min-height: 100vh; }
body.wt-app-body .sidebar { position: sticky; top: 0; height: 100vh; gap: 18px; padding: 16px 12px; border-right: 1px solid var(--wt-line); background: var(--wt-paper); }
body.wt-app-body .sidebar .brand { padding: 0 6px 6px; font-size: .95rem; }
body.wt-app-body .sidebar .brand-mark { width: 28px; height: 28px; border-radius: 7px; background: var(--wt-ink); color: var(--wt-paper); }
body.wt-app-body .side-nav { gap: 2px; }
body.wt-app-body .side-nav a { padding: 8px 10px; border-radius: 7px; color: var(--wt-muted); font-size: .86rem; font-weight: 500; }
body.wt-app-body .side-nav a:hover { background: var(--wt-soft); color: var(--wt-ink); }
body.wt-app-body .side-nav a.active { background: var(--wt-soft); color: var(--wt-ink); font-weight: 600; }
body.wt-app-body .sidebar-note { border-color: var(--wt-line); border-radius: 11px; background: var(--wt-panel); font-size: .8rem; }
body.wt-app-body .workspace { max-width: 1180px; padding: 26px 30px 80px; }
body.wt-app-body .workspace-top { padding: 8px 0 22px; }
body.wt-app-body .workspace-top h1 { margin-top: 6px; font-size: clamp(1.75rem, 3.2vw, 2.5rem); line-height: 1.06; letter-spacing: -0.035em; }
body.wt-app-body .workspace-top p { color: var(--wt-muted); font-size: .94rem; }
body.wt-app-body .eyebrow.dark { color: var(--wt-faint); font-size: .68rem; letter-spacing: .08em; text-transform: uppercase; }
body.wt-app-body .tool-panel,
body.wt-app-body .stat-card,
body.wt-app-body .add-user-panel { border-color: var(--wt-line); border-radius: 12px; background: var(--wt-panel); box-shadow: var(--wt-shadow-sm); }
body.wt-app-body .panel-heading h2 { font-size: 1.08rem; letter-spacing: -0.02em; }
body.wt-app-body .product-type { color: var(--wt-faint); font-size: .66rem; letter-spacing: .07em; }
body.wt-app-body .button { min-height: 36px; border-radius: 8px; border-color: var(--wt-ink); background: var(--wt-ink); color: var(--wt-paper); font-size: .84rem; font-weight: 600; }
body.wt-app-body .button.secondary { border-color: var(--wt-line-strong); background: var(--wt-panel); color: var(--wt-ink); }
body.wt-app-body .button.small { min-height: 32px; font-size: .78rem; }
body.wt-app-body .mapping-table { background: transparent; color: var(--wt-ink); }
body.wt-app-body .mapping-table th,
body.wt-app-body .mapping-table td { border-color: var(--wt-line); }
body.wt-app-body .mapping-table th { color: var(--wt-faint); }
body.wt-app-body .tag { border-radius: 999px; font-size: .7rem; font-weight: 650; }
body.wt-app-body .tag.done { background: var(--wt-green-soft); color: var(--wt-green); }
body.wt-app-body .tag.pending { background: var(--wt-gold-soft); color: var(--wt-gold); }
body.wt-app-body .add-user-panel summary { color: var(--wt-ink); font-size: .9rem; }
body.wt-app-body .admin-search input[type="search"] { border-color: var(--wt-line-strong); border-radius: 8px; background: var(--wt-paper); color: var(--wt-ink); }
body.wt-app-body .filter-row a { border-color: var(--wt-line); background: var(--wt-panel); color: var(--wt-muted); }
body.wt-app-body .filter-row a.active { border-color: var(--wt-ink); background: var(--wt-ink); color: var(--wt-paper); }
body.wt-app-body .component-nav { border-color: var(--wt-line); }
body.wt-app-body .crumb-item { border-radius: 7px; color: var(--wt-muted); font-size: .86rem; }
body.wt-app-body .crumb-item.active { background: var(--wt-soft); border-color: transparent; color: var(--wt-ink); }
body.wt-app-body .form-error { border-color: color-mix(in srgb, var(--wt-danger) 35%, var(--wt-line)); background: color-mix(in srgb, var(--wt-danger) 8%, var(--wt-panel)); color: var(--wt-danger); }
body.wt-app-body .empty-state { color: var(--wt-faint); font-size: .86rem; line-height: 1.55; }
body.wt-app-body .tool-form label,
body.wt-app-body .checkout-form label { color: var(--wt-muted); font-size: .8rem; font-weight: 600; }
body.wt-app-body .tool-form input,
body.wt-app-body .tool-form select,
body.wt-app-body .tool-form textarea,
body.wt-app-body .admin-search input[type="search"] { border-color: var(--wt-line-strong); border-radius: 8px; background: var(--wt-paper); color: var(--wt-ink); }
body.wt-app-body .tool-form input:focus,
body.wt-app-body .tool-form select:focus,
body.wt-app-body .tool-form textarea:focus { outline: none; border-color: color-mix(in srgb, var(--wt-accent) 55%, var(--wt-line-strong)); box-shadow: 0 0 0 3px color-mix(in srgb, var(--wt-accent) 14%, transparent); }

@media (max-width: 1040px) and (min-width: 721px) {
    body.wt-app-body .app-shell { grid-template-columns: 220px minmax(0, 1fr); }
    body.wt-app-body .sidebar {
        position: sticky;
        top: 0;
        height: 100vh;
        flex-direction: column;
        flex-wrap: nowrap;
        align-items: stretch;
        gap: 16px;
        padding: 16px 10px;
    }
    body.wt-app-body .sidebar .brand { width: auto; }
    body.wt-app-body .side-nav { width: auto; grid-template-columns: 1fr; }
    body.wt-app-body .side-nav a { text-align: left; }
    body.wt-app-body .workspace { padding: 20px; }
}

@media (max-width: 720px) {
    body.wt-app-body .app-shell { grid-template-columns: 1fr; }
    body.wt-app-body .sidebar {
        position: static;
        height: auto;
        flex-direction: row;
        flex-wrap: wrap;
        align-items: center;
        gap: 10px;
        padding: 12px 16px;
    }
    body.wt-app-body .sidebar .brand { width: 100%; padding-bottom: 2px; }
    body.wt-app-body .side-nav { width: 100%; grid-template-columns: repeat(2, minmax(0, 1fr)); }
    body.wt-app-body .side-nav a { text-align: center; }
    body.wt-app-body .sidebar-note { display: none; }
    body.wt-app-body .workspace { padding: 18px; }
}

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

@media (max-width: 1080px) {
    .wt-hero-grid { grid-template-columns: 1fr; gap: 46px; }
    .wt-hero { padding: 64px 0 58px; }
    .wt-mock { max-width: 620px; }
    .wt-tpl-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .wt-tools-grid { grid-template-columns: 1fr; }
    .wt-bento-card, .wt-bento-card.span-6, .wt-bento-card.span-8, .wt-bento-card.span-9, .wt-bento-card.span-5, .wt-bento-card.span-7, .wt-bento-card.span-3 { grid-column: span 6; }
    .wt-detail { grid-template-columns: 1fr; gap: 30px; }
    .wt-detail-copy { position: static; }
    .wt-content { padding: 20px 20px 70px; }
    .wt-app .docs-shell { grid-template-columns: 1fr; }
    .wt-app .doc-editor { padding: 24px; }
    .wt-dashboard { grid-template-columns: 1fr; gap: 18px; }
    .wt-dash-rail { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .wt-page-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 900px) {
    .wt-app { grid-template-columns: 1fr; }
    .wt-sidebar {
        position: fixed;
        inset: 0 auto 0 0;
        width: 278px;
        height: 100vh;
        transform: translateX(-102%);
        transition: transform .2s ease;
        box-shadow: var(--wt-shadow-lg);
    }
    .wt-app.sidebar-open .wt-sidebar { transform: translateX(0); }
    .wt-app.sidebar-open .wt-sidebar-backdrop { display: block; position: fixed; inset: 0; z-index: 45; background: rgba(20, 20, 19, .3); backdrop-filter: blur(2px); }
    .wt-topbar .wt-menu-btn { display: inline-grid; }
    .wt-side-collapse { display: none; }
    .wt-side-close { display: inline-grid; }
}

body.wt-no-scroll { overflow: hidden; }

@media (max-width: 820px) {
    .wt-nav-links { display: none; }
    .wt-menu-btn { display: inline-grid; }
    .wt-nav.is-open .wt-mobile-panel { display: block; }
    .wt-nav-actions .wt-nav-link { display: none; }
    .wt-section { padding: 56px 0; }
    .wt-section-head { flex-direction: column; align-items: flex-start; }
    .wt-pricing-grid, .wt-upgrade-grid { grid-template-columns: 1fr; }
    .wt-cta-inner { flex-direction: column; align-items: flex-start; }
    .wt-footer-inner { grid-template-columns: 1fr; gap: 30px; }
    .wt-app .tool-grid { grid-template-columns: 1fr; }
    .wt-app .metric-row { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .wt-tpl-grid { grid-template-columns: 1fr; }
    .wt-bento-card, .wt-bento-card.span-6, .wt-bento-card.span-8, .wt-bento-card.span-9, .wt-bento-card.span-5, .wt-bento-card.span-7, .wt-bento-card.span-3 { grid-column: span 12; }
    .wt-page-head { flex-direction: column; align-items: flex-start; }
    .wt-page-head-actions { justify-content: flex-start; }
    .wt-topbar-search { display: none; }
    .wt-detail-paper { padding: 28px 24px; }
    .wt-onboard-grid { grid-template-columns: 1fr; }
    .wt-channel-fieldset { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .wt-dash-rail { grid-template-columns: 1fr; }
    .wt-nav-actions > .wt-btn { display: none; }
    .wt-save-state span { display: none; }
    .wt-recent-grid, .wt-page-grid, .wt-upcoming { grid-template-columns: 1fr; }
    .wt-activity { grid-template-columns: 1fr; }
}

@media (max-width: 560px) {
    .wt-container, .wt-container-narrow, .wt-nav-inner, .wt-footer-inner, .wt-footer-base { width: min(100% - 28px, 1180px); }
    .wt-hero-copy h1 { font-size: clamp(2.4rem, 11vw, 3.2rem); }
    .wt-hero-actions .wt-btn { flex: 1; }
    .wt-mock-float { display: none; }
    .wt-footer-cols { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .wt-app .metric-row { grid-template-columns: 1fr; }
    .wt-app .doc-editor { padding: 18px; }
    .wt-tool-body, .wt-tool-head { padding-inline: 16px; }
    .wt-price-card { padding: 22px; }
}

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