/* ============================================================================
   work-drive.css — the Work Drive (Finder-style file manager), its Quick Look
   previewer and the project picker. Pairs with assets/js/work-drive.js,
   work-preview.js and work-context.js.

   Dark by default, light under body.light_mode, accent from ui-polish.css
   (--accent). Everything is scoped under .wd-* so nothing leaks into the chat.

   Layers: Work Drive 9990 · editor 9992 · Quick Look 9994 · picker 9996.
   ========================================================================== */

.wd-root,
.wd-picker-mask,
.wq-root,
.we-root,
.wdc-mask {
    --wd-accent: var(--accent, #b7795c);
    --wd-accent-soft: var(--accent-soft, rgba(183, 121, 92, 0.16));
    --wd-accent-ring: var(--accent-ring, rgba(183, 121, 92, 0.4));
    --wd-win: #1f1e1c;
    --wd-side: rgba(40, 38, 36, 0.86);
    --wd-bar: rgba(34, 33, 31, 0.92);
    --wd-raise: #2a2927;
    --wd-float: #2c2a28;
    --wd-line: rgba(255, 255, 255, 0.075);
    --wd-line-strong: rgba(255, 255, 255, 0.13);
    --wd-text: #ece8e3;
    --wd-muted: #a39d96;
    --wd-faint: #7d7771;
    --wd-hover: rgba(255, 255, 255, 0.055);
    --wd-press: rgba(255, 255, 255, 0.09);
    --wd-sel: color-mix(in srgb, var(--wd-accent) 30%, transparent);
    --wd-sel-text: #fff;
    --wd-page: #f3f1ee;
    --wd-page-fold: #d7d2cb;
    --wd-danger: #e5645a;
    --wd-ok: #4fb57d;
    --wd-shadow: 0 30px 90px rgba(0, 0, 0, 0.55), 0 0 0 1px rgba(255, 255, 255, 0.07);
    --wd-radius: 14px;
    --wd-ease: cubic-bezier(0.22, 1, 0.36, 1);
    --wd-font: 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;
}

body.light_mode .wd-root,
body.light_mode .wd-picker-mask,
body.light_mode .wq-root,
body.light_mode .we-root,
body.light_mode .wdc-mask {
    --wd-win: #ffffff;
    --wd-side: rgba(244, 242, 239, 0.9);
    --wd-bar: rgba(250, 249, 247, 0.94);
    --wd-raise: #f4f2ef;
    --wd-float: #ffffff;
    --wd-line: rgba(30, 24, 18, 0.08);
    --wd-line-strong: rgba(30, 24, 18, 0.14);
    --wd-text: #23201d;
    --wd-muted: #6f6861;
    --wd-faint: #9a938b;
    --wd-hover: rgba(30, 24, 18, 0.045);
    --wd-press: rgba(30, 24, 18, 0.08);
    --wd-sel: color-mix(in srgb, var(--wd-accent) 22%, transparent);
    --wd-sel-text: #23201d;
    --wd-page: #ffffff;
    --wd-page-fold: #e3ded8;
    --wd-shadow: 0 30px 80px rgba(40, 30, 20, 0.22), 0 0 0 1px rgba(30, 24, 18, 0.09);
}

.wd-root[hidden] { display: none !important; }
.wd-root *, .wd-picker-mask *, .wq-root * { box-sizing: border-box; }
.wd-root .material-symbols-rounded,
.wd-picker-mask .material-symbols-rounded,
.wq-root .material-symbols-rounded { font-size: 19px; line-height: 1; user-select: none; }

/* ── window ─────────────────────────────────────────────────────────────── */
.wd-window {
    position: fixed;
    z-index: 9990;
    display: flex;
    flex-direction: column;
    min-width: 560px;
    min-height: 360px;
    background: var(--wd-win);
    color: var(--wd-text);
    font-family: var(--wd-font);
    font-size: 13px;
    border-radius: var(--wd-radius);
    box-shadow: var(--wd-shadow);
    overflow: hidden;
    opacity: 0;
    transform: translateY(10px) scale(0.985);
    transition: opacity 0.22s var(--wd-ease), transform 0.3s var(--wd-ease);
}
.wd-window.is-in { opacity: 1; transform: none; }
.wd-window.is-dragging { transition: none; user-select: none; }
.wd-window.is-dragging iframe { pointer-events: none; }
.wd-window.is-max { border-radius: 12px; }
.wd-window.is-minimized { opacity: 0; transform: translateY(40px) scale(0.9); pointer-events: none; }
@media (prefers-reduced-motion: reduce) {
    .wd-window, .wd-window.is-in { transition: none; transform: none; }
}

/* resize handles (desktop only) */
.wd-rz { position: absolute; z-index: 5; }
.wd-rz[data-edge="n"], .wd-rz[data-edge="s"] { left: 10px; right: 10px; height: 6px; cursor: ns-resize; }
.wd-rz[data-edge="n"] { top: -3px; } .wd-rz[data-edge="s"] { bottom: -3px; }
.wd-rz[data-edge="e"], .wd-rz[data-edge="w"] { top: 10px; bottom: 10px; width: 6px; cursor: ew-resize; }
.wd-rz[data-edge="e"] { right: -3px; } .wd-rz[data-edge="w"] { left: -3px; }
.wd-rz[data-edge="ne"], .wd-rz[data-edge="nw"], .wd-rz[data-edge="se"], .wd-rz[data-edge="sw"] { width: 14px; height: 14px; }
.wd-rz[data-edge="ne"] { top: -4px; right: -4px; cursor: nesw-resize; }
.wd-rz[data-edge="sw"] { bottom: -4px; left: -4px; cursor: nesw-resize; }
.wd-rz[data-edge="nw"] { top: -4px; left: -4px; cursor: nwse-resize; }
.wd-rz[data-edge="se"] { bottom: -4px; right: -4px; cursor: nwse-resize; }
.wd-window.is-max .wd-rz, .wd-window.is-sheet .wd-rz { display: none; }

/* ── title bar ──────────────────────────────────────────────────────────── */
.wd-titlebar {
    display: flex;
    align-items: center;
    gap: 6px;
    height: 52px;
    padding: 0 12px 0 16px;
    flex: none;
    background: var(--wd-bar);
    border-bottom: 1px solid var(--wd-line);
    cursor: default;
    user-select: none;
    -webkit-backdrop-filter: saturate(160%) blur(18px);
    backdrop-filter: saturate(160%) blur(18px);
}
.wd-lights { display: flex; gap: 8px; margin-right: 10px; }
.wd-light {
    width: 12px; height: 12px;
    padding: 0; border: 0; border-radius: 50%;
    cursor: pointer;
    box-shadow: inset 0 0 0 0.5px rgba(0, 0, 0, 0.25);
    position: relative;
}
.wd-light.is-close { background: #ff5f57; }
.wd-light.is-min { background: #febc2e; }
.wd-light.is-max { background: #28c840; }
.wd-light::after {
    content: ""; position: absolute; inset: 0;
    display: grid; place-items: center;
    font: 700 9px/12px system-ui, sans-serif; color: rgba(0, 0, 0, 0.55);
    opacity: 0; transition: opacity 0.12s;
}
.wd-light.is-close::after { content: "×"; font-size: 11px; }
.wd-light.is-min::after { content: "–"; }
.wd-light.is-max::after { content: "+"; }
.wd-lights:hover .wd-light::after, .wd-light:focus-visible::after { opacity: 1; }
.wd-window:not(:focus-within) .wd-light { filter: saturate(0.35) brightness(0.9); }
.wd-light:focus-visible { outline: 2px solid var(--wd-accent-ring); outline-offset: 2px; }

.wd-tb-btn {
    display: inline-grid; place-items: center;
    width: 30px; height: 28px;
    padding: 0; border: 0; border-radius: 7px;
    background: transparent; color: var(--wd-muted);
    cursor: pointer;
    transition: background 0.12s, color 0.12s;
}
.wd-tb-btn:hover:not(:disabled) { background: var(--wd-hover); color: var(--wd-text); }
.wd-tb-btn:active:not(:disabled) { background: var(--wd-press); }
.wd-tb-btn:disabled { opacity: 0.35; cursor: default; }
.wd-tb-btn:focus-visible { outline: 2px solid var(--wd-accent-ring); outline-offset: 1px; }
.wd-navbtns { display: flex; gap: 2px; }
.wd-only-mobile { display: none; }

.wd-title {
    display: flex; align-items: center; gap: 8px;
    min-width: 0; flex: 1;
    padding-left: 6px;
    font-weight: 600; font-size: 13.5px;
}
.wd-title-ico { display: inline-flex; width: 20px; height: 16px; color: var(--wd-muted); }
.wd-title-ico .wd-svg { width: 20px; height: 16px; }
.wd-title-text { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.wd-tools { display: flex; align-items: center; gap: 4px; }
.wd-seg { display: inline-flex; padding: 2px; border-radius: 8px; background: var(--wd-hover); margin-right: 2px; }
.wd-seg button {
    display: grid; place-items: center;
    width: 30px; height: 24px; padding: 0; border: 0; border-radius: 6px;
    background: transparent; color: var(--wd-muted); cursor: pointer;
}
.wd-seg button .material-symbols-rounded { font-size: 17px; }
.wd-seg button.is-on { background: var(--wd-float); color: var(--wd-text); box-shadow: 0 1px 2px rgba(0, 0, 0, 0.2); }

.wd-search {
    display: flex; align-items: center; gap: 6px;
    width: 190px; height: 30px;
    margin-left: 6px; padding: 0 10px;
    border-radius: 8px;
    background: var(--wd-hover);
    color: var(--wd-faint);
    transition: width 0.25s var(--wd-ease), box-shadow 0.15s;
}
.wd-search:focus-within { width: 240px; box-shadow: 0 0 0 2px var(--wd-accent-ring); color: var(--wd-muted); }
.wd-search .material-symbols-rounded { font-size: 17px; }
.wd-search input {
    flex: 1; min-width: 0; height: 100%;
    border: 0; outline: 0; background: transparent;
    color: var(--wd-text); font: inherit; font-size: 13px;
}
.wd-search input::placeholder { color: var(--wd-faint); }
.wd-search.is-block { width: auto; margin: 0; height: 36px; }

/* ── body ───────────────────────────────────────────────────────────────── */
.wd-body { position: relative; display: flex; flex: 1; min-height: 0; }

.wd-sidebar {
    width: 214px; flex: none;
    display: flex; flex-direction: column;
    padding: 10px 8px 12px;
    overflow-y: auto;
    background: var(--wd-side);
    border-right: 1px solid var(--wd-line);
    -webkit-backdrop-filter: blur(24px);
    backdrop-filter: blur(24px);
    scrollbar-width: thin;
    transition: margin-left 0.26s var(--wd-ease);
}
.wd-window.sb-hidden .wd-sidebar { margin-left: -214px; }
.wd-scrim { display: none; }

.wd-sb-sec { display: flex; flex-direction: column; gap: 1px; margin-bottom: 14px; }
.wd-sb-bottom { margin-top: auto; margin-bottom: 8px; }
.wd-sb-head {
    display: flex; align-items: center; justify-content: space-between;
    padding: 4px 8px 5px;
    font-size: 11px; font-weight: 600; letter-spacing: 0.02em;
    color: var(--wd-faint);
}
.wd-sb-add {
    display: grid; place-items: center;
    width: 20px; height: 20px; padding: 0; border: 0; border-radius: 5px;
    background: transparent; color: var(--wd-faint); cursor: pointer;
    opacity: 0; transition: opacity 0.12s;
}
.wd-sb-sec:hover .wd-sb-add, .wd-sb-add:focus-visible { opacity: 1; }
.wd-sb-add:hover { background: var(--wd-hover); color: var(--wd-text); }
.wd-sb-add .material-symbols-rounded { font-size: 16px; }

.wd-sb-row {
    display: flex; align-items: center; gap: 8px;
    width: 100%; height: 30px;
    padding: 0 8px; border: 0; border-radius: 7px;
    background: transparent; color: var(--wd-text);
    font: inherit; font-size: 13px; text-align: left;
    cursor: pointer;
}
.wd-sb-row:hover { background: var(--wd-hover); }
.wd-sb-row.is-active { background: var(--wd-press); font-weight: 500; }
.wd-sb-row.is-active .wd-sb-ico { color: var(--wd-accent); }
.wd-sb-row.is-nested { padding-left: 26px; }
.wd-sb-row.is-disabled { opacity: 0.45; cursor: default; }
.wd-sb-row.is-muted { color: var(--wd-muted); }
.wd-sb-row.is-drophover { background: var(--wd-sel); box-shadow: inset 0 0 0 2px var(--wd-accent); }
.wd-sb-row:focus-visible { outline: 2px solid var(--wd-accent-ring); outline-offset: -2px; }
.wd-sb-ico { font-size: 18px !important; color: var(--wd-muted); flex: none; }
.wd-sb-dot { width: 10px; height: 10px; margin: 0 4px; border-radius: 3px; flex: none; }
.wd-sb-label { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.wd-sb-badge { font-size: 11px; color: var(--wd-faint); }
.wd-sb-empty { padding: 4px 10px 6px; font-size: 12px; color: var(--wd-faint); }
.wd-sb-empty.is-nested { padding-left: 28px; }

.wd-sb-dev { margin-bottom: 4px; }
.wd-sb-devhead { display: flex; align-items: center; gap: 8px; height: 28px; padding: 0 8px; color: var(--wd-muted); font-size: 12.5px; font-weight: 500; }
.wd-sb-dev.is-online .wd-sb-devhead { color: var(--wd-text); }

.wd-presence {
    width: 8px; height: 8px; border-radius: 50%; flex: none;
    background: var(--wd-faint);
    box-shadow: 0 0 0 2px color-mix(in srgb, var(--wd-faint) 22%, transparent);
}
.wd-presence.is-on,
.wd-sb-dev.is-online .wd-presence {
    background: var(--wd-ok);
    box-shadow: 0 0 0 2px color-mix(in srgb, var(--wd-ok) 25%, transparent);
    animation: wd-pulse 2.6s ease-in-out infinite;
}
@keyframes wd-pulse { 50% { box-shadow: 0 0 0 4px color-mix(in srgb, var(--wd-ok) 12%, transparent); } }
@media (prefers-reduced-motion: reduce) { .wd-presence { animation: none !important; } }

.wd-usage { margin: 0 6px; padding: 10px; border-radius: 10px; background: var(--wd-hover); }
.wd-usage-row { display: flex; justify-content: space-between; align-items: center; font-size: 12px; font-weight: 500; }
.wd-usage-row span:first-child { display: flex; align-items: center; gap: 6px; }
.wd-usage-bar { height: 5px; margin: 8px 0 6px; border-radius: 5px; background: var(--wd-line-strong); overflow: hidden; }
.wd-usage-bar i { display: block; height: 100%; border-radius: inherit; background: var(--wd-accent); }
.wd-usage-bar i.is-full { background: var(--wd-danger); }
.wd-usage-sub { font-size: 11px; color: var(--wd-faint); }

/* ── main pane ──────────────────────────────────────────────────────────── */
.wd-main { position: relative; display: flex; flex-direction: column; flex: 1; min-width: 0; }

.wd-pathbar {
    display: flex; align-items: center; gap: 1px;
    height: 34px; padding: 0 12px; flex: none;
    border-bottom: 1px solid var(--wd-line);
    overflow-x: auto; scrollbar-width: none;
}
.wd-pathbar::-webkit-scrollbar { display: none; }
.wd-crumb {
    display: inline-flex; align-items: center; gap: 5px;
    height: 24px; padding: 0 7px; flex: none;
    border: 0; border-radius: 6px;
    background: transparent; color: var(--wd-muted);
    font: inherit; font-size: 12.5px; cursor: pointer;
    max-width: 220px;
}
.wd-crumb span:last-child { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.wd-crumb .material-symbols-rounded { font-size: 15px; }
.wd-crumb:hover { background: var(--wd-hover); color: var(--wd-text); }
.wd-crumb.is-last { color: var(--wd-text); font-weight: 500; cursor: default; }
.wd-crumb.is-last:hover { background: transparent; }
.wd-crumb.is-drophover { background: var(--wd-sel); color: var(--wd-text); }
.wd-crumb-sep { font-size: 15px !important; color: var(--wd-faint); flex: none; }

.wd-banner {
    display: flex; align-items: center; gap: 8px;
    margin: 10px 14px 0; padding: 8px 12px;
    border-radius: 9px;
    background: var(--wd-hover); color: var(--wd-muted);
    font-size: 12.5px;
}
.wd-banner.is-info { background: color-mix(in srgb, var(--wd-accent) 10%, transparent); color: var(--wd-text); }
.wd-banner[hidden] { display: none; }

.wd-content {
    position: relative;
    flex: 1; min-height: 0;
    padding: 14px 16px 20px;
    overflow-y: auto; overflow-x: hidden;
    outline: none;
    scrollbar-width: thin;
    --wd-icon: 84px;
}
.wd-content.is-loading > *:not(.wd-spinner) { opacity: 0.55; transition: opacity 0.2s; }
/* No ring on the pane itself: the focused item carries it (the pane takes
   focus programmatically on open, which would otherwise frame the whole view). */

.wd-spinner {
    width: 26px; height: 26px; margin: 80px auto;
    border-radius: 50%;
    border: 2.5px solid var(--wd-line-strong);
    border-top-color: var(--wd-accent);
    animation: wd-spin 0.8s linear infinite;
}
@keyframes wd-spin { to { transform: rotate(360deg); } }

/* groups on the Projects home */
.wd-group + .wd-group { margin-top: 22px; }
.wd-group-head {
    display: flex; align-items: center; gap: 8px;
    padding: 0 4px 10px;
    font-size: 12.5px; color: var(--wd-muted);
}
.wd-group-head b { font-weight: 600; color: var(--wd-text); font-size: 13px; }
.wd-group-head .wd-btn { margin-left: auto; }
.wd-group-ico { font-size: 17px !important; color: var(--wd-faint); }
.wd-group-empty {
    padding: 18px 16px; border: 1px dashed var(--wd-line-strong); border-radius: 12px;
    color: var(--wd-faint); font-size: 12.5px; text-align: center;
}

/* icons view */
.wd-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(calc(var(--wd-icon) + 32px), 1fr));
    gap: 6px 4px;
    align-content: start;
}
.wd-item {
    display: flex; flex-direction: column; align-items: center;
    padding: 8px 4px 6px;
    border-radius: 10px;
    outline: none;
    cursor: default;
    user-select: none;
    -webkit-user-drag: element;
}
.wd-item-vis {
    position: relative;
    display: grid; place-items: center;
    width: var(--wd-icon); height: calc(var(--wd-icon) * 0.82);
    margin-bottom: 6px;
    border-radius: 8px;
}
.wd-item-vis .wd-svg { width: 100%; height: 100%; filter: drop-shadow(0 1px 1.5px rgba(0, 0, 0, 0.22)); }
.wd-thumb {
    max-width: 100%; max-height: 100%;
    object-fit: contain;
    border-radius: 4px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.3), 0 0 0 1px var(--wd-line);
    background: repeating-conic-gradient(#8881 0 25%, transparent 0 50%) 0 / 12px 12px;
}
.wd-item-badge {
    position: absolute; right: 2px; bottom: 2px;
    display: grid; place-items: center;
    width: 22px; height: 22px; border-radius: 50%;
    background: var(--wd-float); color: var(--wd-faint);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
}
.wd-item-badge .material-symbols-rounded { font-size: 13px; }
.wd-item-badge.is-on { color: var(--wd-ok); }
.wd-item-name {
    max-width: calc(var(--wd-icon) + 28px);
    padding: 1px 6px; border-radius: 5px;
    font-size: 12.5px; line-height: 1.3; text-align: center;
    word-break: break-word;
    display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.wd-item-sub { margin-top: 2px; font-size: 11px; color: var(--wd-faint); text-align: center; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 100%; }
.wd-item:hover .wd-item-vis { background: var(--wd-hover); }
.wd-item.is-sel .wd-item-vis { background: var(--wd-press); }
.wd-item.is-sel .wd-item-name { background: var(--wd-accent); color: #fff; }
.wd-item:focus-visible .wd-item-vis { box-shadow: 0 0 0 2px var(--wd-accent-ring); }
.wd-item.is-dim { opacity: 0.45; }
.wd-item.is-drophover .wd-item-vis { background: var(--wd-sel); box-shadow: 0 0 0 2px var(--wd-accent); }

/* svg icon parts */
.wd-page { fill: var(--wd-page); stroke: var(--wd-line-strong); stroke-width: 1; }
.wd-page-fold { fill: var(--wd-page-fold); }
.wd-svg-band { font: 700 8.5px/1 system-ui, -apple-system, sans-serif; fill: #fff; letter-spacing: 0.04em; }
.wd-svg-glyph { font: 700 13px/1 system-ui, sans-serif; fill: #fff; opacity: 0.85; }
.wd-dev-screen { fill: #2b2d31; stroke: #494c52; stroke-width: 1.2; }
.wd-dev-base { fill: #b9bec5; }
body.light_mode .wd-dev-screen { fill: #3a3d42; }

/* list view */
.wd-content.is-list { padding: 0 0 16px; }
.wd-content.is-list .wd-group { padding: 12px 0 0; }
.wd-content.is-list .wd-group-head { padding: 0 16px 6px; }
.wd-content.is-list .wd-group-empty { margin: 0 16px; }
.wd-listhead,
.wd-row {
    display: grid;
    grid-template-columns: minmax(180px, 1fr) 190px 90px 140px;
    align-items: center;
    gap: 12px;
    padding: 0 16px;
}
.wd-listhead {
    position: sticky; top: 0; z-index: 2;
    height: 30px;
    background: var(--wd-win);
    border-bottom: 1px solid var(--wd-line);
}
.wd-listhead button {
    display: flex; align-items: center; gap: 4px;
    height: 100%; padding: 0; border: 0;
    background: transparent; color: var(--wd-faint);
    font: inherit; font-size: 11.5px; font-weight: 500; text-align: left;
    cursor: pointer;
}
.wd-listhead button:hover, .wd-listhead button.is-on { color: var(--wd-text); }
.wd-listhead .wd-c-size { justify-content: flex-end; }
.wd-sort-ico { font-size: 14px !important; }
.wd-row {
    height: 32px;
    margin: 0 8px; padding: 0 8px;
    border-radius: 7px;
    outline: none;
    user-select: none;
    font-size: 12.5px;
}
.wd-row:nth-of-type(even) { background: color-mix(in srgb, var(--wd-hover) 60%, transparent); }
.wd-row:hover { background: var(--wd-hover); }
.wd-row.is-sel { background: var(--wd-accent); color: #fff; }
.wd-row.is-sel .wd-c-date, .wd-row.is-sel .wd-c-size, .wd-row.is-sel .wd-c-kind, .wd-row.is-sel .wd-row-where { color: rgba(255, 255, 255, 0.85); }
.wd-row:focus-visible { box-shadow: inset 0 0 0 2px var(--wd-accent-ring); }
.wd-row.is-dim { opacity: 0.45; }
.wd-row.is-drophover { box-shadow: inset 0 0 0 2px var(--wd-accent); background: var(--wd-sel); }
.wd-c-name { display: flex; align-items: center; gap: 8px; min-width: 0; }
.wd-row-ico { width: 20px; height: 18px; flex: none; display: grid; place-items: center; }
.wd-row-ico .wd-svg { width: 20px; height: 18px; }
.wd-row-name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.wd-row-where { font-size: 11.5px; color: var(--wd-faint); white-space: nowrap; }
.wd-c-date, .wd-c-kind { color: var(--wd-muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.wd-c-size { color: var(--wd-muted); text-align: right; white-space: nowrap; }

/* rename field */
.wd-rename {
    width: 100%; min-width: 80px;
    padding: 1px 5px; margin: 0;
    border: 0; border-radius: 4px;
    background: var(--wd-float); color: var(--wd-text);
    box-shadow: 0 0 0 2px var(--wd-accent);
    font: inherit; font-size: 12.5px; line-height: 1.3;
    text-align: inherit;
    resize: none; overflow: hidden;
    outline: none;
}
.wd-item.is-sel .wd-item-name:has(.wd-rename) { background: transparent; }

/* rubber band + drag ghost */
.wd-band {
    position: absolute; z-index: 3; pointer-events: none;
    border: 1px solid var(--wd-accent);
    background: color-mix(in srgb, var(--wd-accent) 16%, transparent);
    border-radius: 3px;
}
.wd-dragghost {
    position: fixed; top: -100px; left: -100px;
    display: flex; align-items: center; gap: 6px;
    padding: 8px 12px; border-radius: 10px;
    background: var(--accent, #b7795c); color: #fff;
    font: 600 12.5px/1 'Poppins', system-ui, sans-serif;
}

/* empty states */
.wd-empty {
    display: flex; flex-direction: column; align-items: center;
    max-width: 380px; margin: 70px auto 0;
    text-align: center; color: var(--wd-muted);
}
.wd-empty-ico {
    display: grid !important; place-items: center;
    width: 64px; height: 64px; margin-bottom: 14px;
    border-radius: 18px;
    background: var(--wd-hover); color: var(--wd-faint);
    font-size: 30px !important;
}
.wd-empty h3 { margin: 0 0 6px; font-size: 15px; font-weight: 600; color: var(--wd-text); }
.wd-empty p { margin: 0; font-size: 13px; line-height: 1.55; }
.wd-empty-acts { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-top: 16px; }

/* buttons */
.wd-btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 6px;
    height: 32px; padding: 0 14px;
    border: 1px solid var(--wd-line-strong); border-radius: 8px;
    background: var(--wd-raise); color: var(--wd-text);
    font: inherit; font-size: 13px; font-weight: 500;
    cursor: pointer; white-space: nowrap;
    transition: background 0.12s, border-color 0.12s, transform 0.08s;
}
.wd-btn:hover { background: var(--wd-press); }
.wd-btn:active { transform: scale(0.98); }
.wd-btn:focus-visible { outline: 2px solid var(--wd-accent-ring); outline-offset: 2px; }
.wd-btn .material-symbols-rounded { font-size: 17px; }
.wd-btn.is-primary { background: var(--wd-accent); border-color: transparent; color: #fff; }
.wd-btn.is-primary:hover { background: color-mix(in srgb, var(--wd-accent) 88%, #000); }
.wd-btn.is-danger { background: var(--wd-danger); border-color: transparent; color: #fff; }
.wd-btn.is-danger:hover { background: color-mix(in srgb, var(--wd-danger) 88%, #000); }
.wd-btn.is-small { height: 26px; padding: 0 10px; font-size: 12px; }
.wd-btn:disabled { opacity: 0.45; cursor: default; }

/* status bar */
.wd-status {
    flex: none; height: 26px; padding: 0 14px;
    display: flex; align-items: center;
    border-top: 1px solid var(--wd-line);
    font-size: 11.5px; color: var(--wd-faint);
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}

/* OS drop overlay */
.wd-drop {
    position: absolute; inset: 8px; z-index: 6;
    display: grid; place-items: center;
    border: 2px dashed var(--wd-accent); border-radius: 12px;
    background: color-mix(in srgb, var(--wd-accent) 9%, var(--wd-win));
    pointer-events: none;
}
.wd-drop[hidden] { display: none; }
.wd-drop-card { display: flex; flex-direction: column; align-items: center; gap: 6px; color: var(--wd-text); }
.wd-drop-card .material-symbols-rounded { font-size: 36px; color: var(--wd-accent); }
.wd-drop-card span { font-size: 12.5px; color: var(--wd-muted); }

/* ── menus ──────────────────────────────────────────────────────────────── */
.wd-menu {
    position: fixed; z-index: 10000;
    min-width: 220px; max-width: 320px;
    padding: 5px;
    border-radius: 10px;
    background: color-mix(in srgb, var(--wd-float) 94%, transparent);
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.35), 0 0 0 1px var(--wd-line-strong);
    -webkit-backdrop-filter: blur(20px) saturate(160%);
    backdrop-filter: blur(20px) saturate(160%);
    color: var(--wd-text);
    font-family: var(--wd-font); font-size: 13px;
    animation: wd-menu-in 0.12s var(--wd-ease);
}
.wd-menu .wd-menu { position: absolute; }
@keyframes wd-menu-in { from { opacity: 0; transform: scale(0.97); } }
.wd-menu-item {
    display: flex; align-items: center; gap: 9px;
    width: 100%; height: 30px;
    padding: 0 9px; border: 0; border-radius: 6px;
    background: transparent; color: inherit;
    font: inherit; text-align: left; cursor: pointer;
}
.wd-menu-item:hover:not(:disabled), .wd-menu-item:focus-visible { background: var(--wd-accent); color: #fff; outline: none; }
.wd-menu-item:hover:not(:disabled) .wd-menu-ico,
.wd-menu-item:hover:not(:disabled) .wd-menu-hint { color: rgba(255, 255, 255, 0.85); }
.wd-menu-item.is-sub-open:not(:hover) { background: color-mix(in srgb, var(--wd-accent) 24%, transparent); }
.wd-menu-item:disabled { opacity: 0.45; cursor: default; }
.wd-menu-item.is-danger { color: var(--wd-danger); }
.wd-menu-item.is-danger:hover:not(:disabled) { background: var(--wd-danger); color: #fff; }
.wd-menu-ico { font-size: 17px !important; color: var(--wd-muted); width: 18px; }
.wd-menu-item.is-checked .wd-menu-ico { color: var(--wd-accent); }
.wd-menu-label { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.wd-menu-hint { font-size: 11.5px; color: var(--wd-faint); }
.wd-menu-more { font-size: 16px !important; color: var(--wd-faint); }
.wd-menu-sep { height: 1px; margin: 4px 8px; background: var(--wd-line-strong); }
.wd-menu-sep:first-child, .wd-menu-sep + .wd-menu-sep, .wd-menu-sep:last-child { display: none; }
.wd-swatch { width: 14px; height: 14px; margin: 0 2px; border-radius: 4px; flex: none; }

/* ── dialogs ────────────────────────────────────────────────────────────── */
.wd-dlg-mask {
    position: absolute; inset: 0; z-index: 20;
    display: grid; place-items: center;
    padding: 20px;
    background: rgba(0, 0, 0, 0.28);
    animation: wd-fade 0.15s ease;
}
body > .wd-dlg-mask { position: fixed; z-index: 10001; }
@keyframes wd-fade { from { opacity: 0; } }
.wd-dlg {
    width: min(380px, 100%);
    padding: 22px 22px 18px;
    border-radius: 14px;
    background: var(--wd-float, #2c2a28);
    color: var(--wd-text, #ece8e3);
    box-shadow: 0 24px 70px rgba(0, 0, 0, 0.45), 0 0 0 1px var(--wd-line-strong, rgba(255,255,255,.13));
    font-family: var(--wd-font, 'Poppins', system-ui, sans-serif);
    animation: wd-pop 0.18s var(--wd-ease, ease);
}
.wd-dlg.is-wide { width: min(560px, 100%); }
@keyframes wd-pop { from { opacity: 0; transform: translateY(6px) scale(0.98); } }
.wd-dlg-ico {
    display: grid; place-items: center;
    width: 44px; height: 44px; margin-bottom: 12px;
    border-radius: 12px;
    background: var(--wd-accent-soft); color: var(--wd-accent);
}
.wd-dlg-ico .material-symbols-rounded { font-size: 24px; }
.wd-dlg-ico .wd-svg { width: 34px; height: 30px; }
.wd-dlg h3 { margin: 0 0 6px; font-size: 15px; font-weight: 600; word-break: break-word; }
.wd-dlg-msg { margin: 0 0 14px; font-size: 13px; line-height: 1.55; color: var(--wd-muted); }
.wd-dlg-err { margin: 6px 0 0; font-size: 12.5px; color: var(--wd-danger); }
.wd-dlg-err[hidden] { display: none; }
.wd-dlg-acts { display: flex; justify-content: flex-end; flex-wrap: wrap; gap: 8px; margin-top: 18px; }
.wd-field { display: flex; flex-direction: column; gap: 6px; margin-top: 10px; font-size: 12px; font-weight: 500; color: var(--wd-muted); }
.wd-field input, .wd-field textarea {
    width: 100%; padding: 8px 10px;
    border: 1px solid var(--wd-line-strong); border-radius: 8px;
    background: var(--wd-raise); color: var(--wd-text);
    font: inherit; font-size: 13.5px; font-weight: 400;
    outline: none; resize: vertical;
}
.wd-field input:focus, .wd-field textarea:focus { border-color: var(--wd-accent); box-shadow: 0 0 0 3px var(--wd-accent-soft); }
.wd-colors { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.wd-colors button {
    width: 24px; height: 24px; padding: 0;
    border: 0; border-radius: 7px;
    background: var(--c); cursor: pointer;
    box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.12);
}
.wd-colors button[aria-checked="true"] { box-shadow: 0 0 0 2px var(--wd-float), 0 0 0 4px var(--c); }
.wd-steps { margin: 4px 0 0; padding-left: 20px; font-size: 13px; line-height: 1.7; color: var(--wd-muted); }
.wd-steps b { color: var(--wd-text); font-weight: 600; }
.wd-info { display: flex; flex-direction: column; gap: 2px; }
.wd-info-ico { display: grid; place-items: center; height: 84px; margin-bottom: 8px; }
.wd-info-ico .wd-svg { width: 84px; height: 72px; }
.wd-info-row { display: flex; justify-content: space-between; gap: 16px; padding: 6px 0; border-bottom: 1px solid var(--wd-line); font-size: 12.5px; }
.wd-info-row span { color: var(--wd-muted); flex: none; }
.wd-info-row b { font-weight: 500; text-align: right; word-break: break-word; }

/* snackbar */
.wd-snack {
    position: absolute; left: 50%; bottom: 40px; z-index: 12;
    transform: translateX(-50%);
    display: flex; align-items: center; gap: 14px;
    max-width: calc(100% - 40px);
    padding: 9px 10px 9px 16px;
    border-radius: 10px;
    background: #2b2a28; color: #f1ede8;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
    font-size: 12.5px;
    animation: wd-snack-in 0.2s var(--wd-ease);
}
body.light_mode .wd-snack { background: #2b2a28; }
.wd-snack span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.wd-snack button {
    height: 26px; padding: 0 10px; border: 0; border-radius: 6px;
    background: rgba(255, 255, 255, 0.1); color: #fff;
    font: inherit; font-weight: 600; cursor: pointer;
}
.wd-snack button:hover { background: rgba(255, 255, 255, 0.18); }
.wd-snack.is-out { opacity: 0; transform: translate(-50%, 8px); transition: 0.25s; }
@keyframes wd-snack-in { from { opacity: 0; transform: translate(-50%, 8px); } }

/* uploads panel */
.wd-uploads {
    position: fixed; right: 20px; bottom: 20px; z-index: 9993;
    width: 320px; max-height: 340px;
    display: flex; flex-direction: column;
    border-radius: 12px;
    background: var(--wd-float); color: var(--wd-text);
    box-shadow: var(--wd-shadow);
    font-family: var(--wd-font); font-size: 12.5px;
    overflow: hidden;
}
.wd-uploads[hidden] { display: none; }
.wd-up-head { display: flex; align-items: center; gap: 8px; padding: 10px 8px 6px 14px; }
.wd-up-head b { flex: 1; font-weight: 600; }
.wd-up-head span { color: var(--wd-muted); }
.wd-up-bar { height: 3px; margin: 0 14px 8px; border-radius: 3px; background: var(--wd-line-strong); overflow: hidden; }
.wd-up-bar i { display: block; height: 100%; background: var(--wd-accent); transition: width 0.2s; }
.wd-up-list { overflow-y: auto; padding: 0 6px 8px; }
.wd-up-row { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; padding: 5px 8px; border-radius: 6px; }
.wd-up-row > span:not(.material-symbols-rounded):not(.wd-up-pct) { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.wd-up-row small { width: 100%; padding-left: 26px; color: var(--wd-danger); font-size: 11.5px; }
.wd-up-row .material-symbols-rounded { font-size: 17px; color: var(--wd-faint); }
.wd-up-row .is-ok { color: var(--wd-ok); }
.wd-up-row .is-err { color: var(--wd-danger); }
.wd-up-pct { width: 36px; font-size: 11px; color: var(--wd-faint); text-align: right; }

/* minimised pill */
/* Top-right, under the app bar: bottom-centre sat on top of the composer
   (and the project chip inside it), which is the one place it must not be. */
.wd-dockpill {
    position: fixed; right: 16px; top: 64px; z-index: 9990;
    display: inline-flex; align-items: center; gap: 8px;
    height: 36px; padding: 0 14px;
    border: 0; border-radius: 19px;
    background: var(--wd-float); color: var(--wd-text);
    box-shadow: var(--wd-shadow);
    font: 500 13px var(--wd-font); cursor: pointer;
    animation: wd-snack-in 0.25s var(--wd-ease);
}
.wd-dockpill[hidden] { display: none; }
.wd-dockpill .material-symbols-rounded { color: var(--wd-accent); }

/* ── project picker ─────────────────────────────────────────────────────── */
.wd-picker-mask {
    position: fixed; inset: 0; z-index: 9996;
    display: grid; place-items: center;
    padding: 20px;
    background: rgba(0, 0, 0, 0.4);
    font-family: var(--wd-font);
    animation: wd-fade 0.15s ease;
}
.wd-picker-mask[hidden] { display: none; }
.wd-picker {
    display: flex; flex-direction: column;
    width: min(520px, 100%); max-height: min(640px, 100%);
    border-radius: 16px;
    background: var(--wd-float); color: var(--wd-text);
    box-shadow: var(--wd-shadow);
    overflow: hidden;
    animation: wd-pop 0.2s var(--wd-ease);
}
.wd-picker header { padding: 20px 20px 12px; }
.wd-picker header h3 { margin: 0 0 4px; font-size: 16px; font-weight: 600; }
.wd-picker header p { margin: 0; font-size: 12.5px; line-height: 1.5; color: var(--wd-muted); }
.wd-picker > .wd-search { margin: 0 20px 10px; }
.wd-pick-list { flex: 1; overflow-y: auto; padding: 0 10px 10px; }
.wd-pick-head { display: flex; align-items: center; gap: 8px; padding: 12px 10px 6px; font-size: 11.5px; font-weight: 600; color: var(--wd-faint); }
.wd-pick-head small { font-weight: 400; margin-left: auto; }
.wd-pick-head .material-symbols-rounded { font-size: 15px; }
.wd-pick-row {
    display: flex; align-items: center; gap: 12px;
    width: 100%; padding: 8px 10px;
    border: 0; border-radius: 10px;
    background: transparent; color: inherit;
    font: inherit; text-align: left; cursor: pointer;
}
.wd-pick-row:hover:not(:disabled) { background: var(--wd-hover); }
.wd-pick-row.is-on { background: var(--wd-accent-soft); }
.wd-pick-row:disabled { opacity: 0.45; cursor: default; }
.wd-pick-row[hidden] { display: none; }
.wd-pick-row:focus-visible { outline: 2px solid var(--wd-accent-ring); outline-offset: -2px; }
.wd-pick-ico { width: 34px; height: 28px; flex: none; }
.wd-pick-ico .wd-svg { width: 34px; height: 28px; }
.wd-pick-txt { display: flex; flex-direction: column; min-width: 0; flex: 1; }
.wd-pick-txt b { font-weight: 500; font-size: 13.5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.wd-pick-txt small { font-size: 11.5px; color: var(--wd-faint); }
.wd-pick-check { color: var(--wd-accent); }
.wd-pick-empty { padding: 4px 12px 8px; font-size: 12px; color: var(--wd-faint); }
.wd-picker footer { display: flex; align-items: center; gap: 8px; padding: 12px 16px; border-top: 1px solid var(--wd-line); }
.wd-grow { flex: 1; }

/* ── tablet + phone: full-screen sheet, sidebar as a drawer ─────────────── */
@media (max-width: 760px) {
    .wd-window.is-sheet {
        inset: 0 !important; width: auto !important; height: auto !important;
        min-width: 0; min-height: 0;
        border-radius: 0;
        padding-top: env(safe-area-inset-top);
        padding-bottom: env(safe-area-inset-bottom);
    }
    .wd-lights { display: none; }
    .wd-only-mobile { display: inline-grid; }
    .wd-titlebar { height: 50px; padding: 0 8px; gap: 2px; }
    .wd-tools .wd-seg, .wd-tools [data-act="sort"] { display: none; }
    .wd-search { width: 36px; padding: 0 9px; margin-left: 2px; }
    .wd-search input { width: 0; }
    .wd-search:focus-within { position: absolute; left: 8px; right: 8px; width: auto; z-index: 3; background: var(--wd-raise); }
    .wd-search:focus-within input { width: auto; }
    .wd-sidebar {
        position: absolute; top: 0; bottom: 0; left: 0; z-index: 8;
        width: min(290px, 84vw);
        margin-left: 0 !important;
        transform: translateX(-102%);
        transition: transform 0.28s var(--wd-ease);
        background: var(--wd-win);
        box-shadow: 10px 0 40px rgba(0, 0, 0, 0.3);
    }
    .wd-window.sb-open .wd-sidebar { transform: none; }
    .wd-window.sb-open .wd-scrim { display: block; position: absolute; inset: 0; z-index: 7; background: rgba(0, 0, 0, 0.35); }
    .wd-content { padding: 12px 10px 24px; --wd-icon: 70px !important; }
    .wd-listhead { display: none; }
    .wd-row { grid-template-columns: 1fr auto; height: 48px; margin: 0 4px; }
    .wd-row .wd-c-date, .wd-row .wd-c-kind { display: none; }
    .wd-status { display: none; }
    .wd-uploads { left: 10px; right: 10px; bottom: calc(10px + env(safe-area-inset-bottom)); width: auto; }
    .wd-picker { max-height: 100%; }
    .wd-sb-add { opacity: 1; }
}
@media (hover: none) {
    .wd-item:hover .wd-item-vis, .wd-row:hover, .wd-sb-row:hover { background: transparent; }
    .wd-item.is-sel .wd-item-vis { background: var(--wd-press); }
    .wd-row.is-sel { background: var(--wd-accent); }
}

/* ── Quick Look (work-preview.js) ───────────────────────────────────────── */
.wq-root { position: fixed; inset: 0; z-index: 9994; font-family: var(--wd-font); color: var(--wd-text); }
.wq-root[hidden] { display: none; }
.wq-backdrop { position: absolute; inset: 0; background: rgba(8, 7, 6, 0.62); opacity: 0; transition: opacity 0.2s; -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
.wq-root.is-in .wq-backdrop { opacity: 1; }
.wq-panel {
    position: absolute; inset: 4vh 5vw;
    display: flex; flex-direction: column;
    border-radius: 16px;
    background: var(--wd-win);
    box-shadow: var(--wd-shadow);
    overflow: hidden;
    opacity: 0; transform: scale(0.97);
    transition: opacity 0.2s var(--wd-ease), transform 0.26s var(--wd-ease);
}
.wq-root.is-in .wq-panel { opacity: 1; transform: none; }
.wq-head {
    display: flex; align-items: center; gap: 10px;
    height: 52px; padding: 0 10px; flex: none;
    border-bottom: 1px solid var(--wd-line);
    background: var(--wd-bar);
}
.wq-title { display: flex; flex-direction: column; min-width: 0; flex: 1; }
.wq-title b { font-weight: 600; font-size: 13.5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.wq-title span { font-size: 11.5px; color: var(--wd-faint); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.wq-acts { display: flex; align-items: center; gap: 4px; }
.wq-btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 6px;
    min-width: 34px; height: 32px; padding: 0 8px;
    border: 0; border-radius: 8px;
    background: transparent; color: var(--wd-muted);
    font: inherit; font-size: 12.5px; font-weight: 500; cursor: pointer;
}
.wq-btn:hover { background: var(--wd-hover); color: var(--wd-text); }
.wq-btn.is-label { background: var(--wd-accent); color: #fff; padding: 0 12px; }
.wq-btn.is-label:hover { background: color-mix(in srgb, var(--wd-accent) 88%, #000); color: #fff; }
.wq-btn[hidden] { display: none; }
.wq-btn:focus-visible { outline: 2px solid var(--wd-accent-ring); outline-offset: 1px; }

.wq-stage { position: relative; flex: 1; min-height: 0; overflow: auto; outline: none; display: flex; }
.wq-stage > * { margin: auto; }
.wq-loading { display: grid; place-items: center; width: 100%; }
.wq-stage.is-image { background: repeating-conic-gradient(#8881 0 25%, transparent 0 50%) 0 / 18px 18px; }
.wq-img { display: block; max-width: calc(100% - 48px); max-height: calc(100% - 48px); object-fit: contain; border-radius: 4px; box-shadow: 0 6px 30px rgba(0, 0, 0, 0.3); cursor: zoom-in; }
.wq-stage.is-actual .wq-img { max-width: none; max-height: none; cursor: zoom-out; margin: 24px; }
.wq-video { max-width: 100%; max-height: 100%; background: #000; }
.wq-stage.is-video { background: #000; }
.wq-audio-wrap { display: flex; flex-direction: column; align-items: center; gap: 14px; padding: 40px; }
.wq-audio-wrap b { font-weight: 500; }
.wq-audio { width: min(460px, 80vw); }
.wq-frame { width: 100%; height: 100%; border: 0; background: #525659; }
.wq-docx { width: 100%; align-self: stretch; background: #e9e7e4; padding: 20px 0; }
.wq-docx .docx-wrapper { background: transparent !important; padding: 0 !important; }
.wq-docx .docx-wrapper > section.docx { box-shadow: 0 2px 14px rgba(0, 0, 0, 0.18) !important; margin: 0 auto 20px !important; }

.wq-code {
    align-self: stretch; width: 100%;
    display: flex; gap: 0;
    margin: 0; padding: 14px 0;
    font: 12.8px/1.6 'JetBrains Mono', ui-monospace, 'SFMono-Regular', Menlo, Consolas, monospace;
    tab-size: 4;
    background: transparent;
}
.wq-gutter { flex: none; padding: 0 14px 0 18px; color: var(--wd-faint); text-align: right; white-space: pre; user-select: none; border-right: 1px solid var(--wd-line); }
.wq-code code { flex: 1; padding: 0 20px; white-space: pre; background: transparent !important; color: var(--wd-text); }
.wq-md {
    align-self: flex-start;
    width: min(760px, 100%);
    padding: 34px 40px 60px;
    font-size: 15px; line-height: 1.7;
}
.wq-md h1, .wq-md h2, .wq-md h3 { line-height: 1.3; margin: 1.4em 0 0.5em; }
.wq-md h1 { font-size: 1.8em; margin-top: 0; }
.wq-md pre { padding: 12px 14px; border-radius: 8px; background: var(--wd-raise); overflow: auto; font-size: 13px; }
.wq-md code { font-family: 'JetBrains Mono', ui-monospace, Menlo, Consolas, monospace; font-size: 0.9em; }
.wq-md :not(pre) > code { padding: 1px 5px; border-radius: 4px; background: var(--wd-raise); }
.wq-md a { color: var(--wd-accent); }
.wq-md img { max-width: 100%; }
.wq-md table { border-collapse: collapse; }
.wq-md th, .wq-md td { padding: 6px 10px; border: 1px solid var(--wd-line-strong); }
.wq-md blockquote { margin: 0; padding-left: 14px; border-left: 3px solid var(--wd-line-strong); color: var(--wd-muted); }

.wq-sheet { align-self: stretch; width: 100%; display: flex; flex-direction: column; min-height: 0; }
.wq-sheet-body { flex: 1; overflow: auto; }
.wq-sheet-body table { border-collapse: collapse; font-size: 12.5px; }
.wq-sheet-body td { min-width: 80px; max-width: 320px; padding: 4px 8px; border: 1px solid var(--wd-line-strong); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.wq-sheet-body tr:first-child td { position: sticky; top: 0; background: var(--wd-raise); font-weight: 600; }
.wq-sheet-tabs { display: flex; gap: 2px; padding: 6px 8px; border-top: 1px solid var(--wd-line); overflow-x: auto; flex: none; }
.wq-sheet-tabs button { height: 28px; padding: 0 12px; border: 0; border-radius: 6px; background: transparent; color: var(--wd-muted); font: inherit; font-size: 12px; cursor: pointer; white-space: nowrap; }
.wq-sheet-tabs button.is-on { background: var(--wd-press); color: var(--wd-text); font-weight: 500; }
.wq-note { padding: 10px 16px; font-size: 12px; color: var(--wd-faint); }

.wq-card { display: flex; flex-direction: column; align-items: center; gap: 6px; max-width: 360px; padding: 30px; text-align: center; }
.wq-card-ico { width: 110px; height: 96px; margin-bottom: 8px; }
.wq-card-ico .wd-svg { width: 100%; height: 100%; }
.wq-card h3 { margin: 0; font-size: 15px; font-weight: 600; word-break: break-word; }
.wq-card p { margin: 0 0 12px; font-size: 13px; line-height: 1.5; color: var(--wd-muted); }

.wq-nav {
    position: absolute; top: 50%; z-index: 2;
    display: grid; place-items: center;
    width: 40px; height: 40px; margin-top: -20px;
    border: 0; border-radius: 50%;
    background: color-mix(in srgb, var(--wd-float) 80%, transparent);
    color: var(--wd-text);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.3);
    cursor: pointer; opacity: 0; transition: opacity 0.15s;
}
.wq-nav[hidden] { display: none; }
.wq-panel:hover .wq-nav, .wq-nav:focus-visible { opacity: 1; }
.wq-nav.is-prev { left: 14px; } .wq-nav.is-next { right: 14px; }
.wq-nav .material-symbols-rounded { font-size: 24px; }

@media (max-width: 760px) {
    .wq-panel { inset: 0; border-radius: 0; padding-top: env(safe-area-inset-top); padding-bottom: env(safe-area-inset-bottom); }
    .wq-btn.is-label span { display: none; }
    .wq-md { padding: 22px 18px 40px; font-size: 14.5px; }
    .wq-nav { opacity: 0.85; width: 36px; height: 36px; }
}
@media (hover: none) { .wq-nav { opacity: 0.85; } }

/* ── Work Drive editor (work-editor.js) ─────────────────────────────────── */
.we-root {
    --we-side: 240px;
    --we-bg: #201f1d; --we-bg2: #242321; --we-bar: #1b1a18; --we-line: rgba(255, 255, 255, 0.07);
    --we-text: #eeeae5; --we-muted: #aaa39b; --we-faint: #857f78; --we-hover: rgba(255, 255, 255, 0.05); --we-sel: rgba(183, 121, 92, 0.22);
    --we-accent: var(--accent, #b7795c);
    position: fixed; inset: 0; z-index: 9992;
    display: flex; flex-direction: column;
    background: var(--we-bg); color: var(--we-text);
    font-family: 'Poppins', -apple-system, 'Segoe UI', system-ui, sans-serif; font-size: 13px;
    opacity: 0; transition: opacity 0.18s ease;
}
body.light_mode .we-root {
    --we-bg: #ffffff; --we-bg2: #f6f4f1; --we-bar: #efece8; --we-line: rgba(30, 24, 18, 0.09);
    --we-text: #23201d; --we-muted: #6f6861; --we-faint: #9a938b; --we-hover: rgba(30, 24, 18, 0.05); --we-sel: rgba(183, 121, 92, 0.16);
}
.we-root[hidden] { display: none; }
.we-root.is-in { opacity: 1; }
.we-root .material-symbols-rounded { font-size: 18px; line-height: 1; }
.we-root.is-resizing { cursor: col-resize; user-select: none; }

.we-bar { display: flex; align-items: center; gap: 4px; height: 42px; padding: 0 8px; flex: none; background: var(--we-bar); border-bottom: 1px solid var(--we-line); }
.we-ibtn { display: inline-grid; place-items: center; width: 30px; height: 28px; padding: 0; border: 0; border-radius: 6px; background: transparent; color: var(--we-muted); cursor: pointer; flex: none; }
.we-ibtn:hover { background: var(--we-hover); color: var(--we-text); }
.we-ibtn.is-sm { width: 24px; height: 24px; }
.we-ibtn.is-sm .material-symbols-rounded { font-size: 16px; }
.we-ibtn:focus-visible, .we-st-btn:focus-visible, .we-ask:focus-visible { outline: 2px solid var(--accent-ring, rgba(183,121,92,.4)); outline-offset: 1px; }
.we-ws { display: flex; align-items: center; gap: 7px; max-width: 220px; padding: 0 10px 0 6px; flex: none; font-weight: 600; font-size: 12.5px; }
.we-ws b { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 600; }
.we-ws-ico { width: 18px; height: 15px; flex: none; }
.we-ws-ico .wd-svg { width: 18px; height: 15px; }

.we-tabs { display: flex; align-items: stretch; flex: 1; min-width: 0; height: 100%; overflow-x: auto; scrollbar-width: none; }
.we-tabs::-webkit-scrollbar { display: none; }
.we-tab {
    display: flex; align-items: center; gap: 7px;
    max-width: 220px; padding: 0 6px 0 12px; flex: none;
    border-right: 1px solid var(--we-line);
    color: var(--we-muted); cursor: pointer; position: relative;
    font-size: 12.5px;
}
.we-tab:hover { background: var(--we-hover); color: var(--we-text); }
.we-tab.is-on { background: var(--we-bg); color: var(--we-text); }
.we-tab.is-on::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 2px; background: var(--we-accent); }
.we-tab-ico { width: 14px; height: 16px; flex: none; }
.we-tab-ico .wd-svg { width: 14px; height: 16px; }
.we-tab-name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.we-tab-x { display: grid; place-items: center; width: 20px; height: 20px; padding: 0; border: 0; border-radius: 4px; background: transparent; color: inherit; cursor: pointer; opacity: 0; }
.we-tab-x .material-symbols-rounded { font-size: 15px; }
.we-tab:hover .we-tab-x, .we-tab.is-on .we-tab-x { opacity: 1; }
.we-tab-x:hover { background: var(--we-hover); }
.we-tab.is-dirty .we-tab-x { opacity: 1; }
.we-tab.is-dirty .we-tab-x .material-symbols-rounded { font-size: 0; }
.we-tab.is-dirty .we-tab-x::after { content: ""; width: 8px; height: 8px; border-radius: 50%; background: currentColor; }
.we-tab.is-dirty .we-tab-x:hover .material-symbols-rounded { font-size: 15px; }
.we-tab.is-dirty .we-tab-x:hover::after { display: none; }
.we-tab-spin { width: 10px; height: 10px; border-radius: 50%; border: 1.5px solid var(--we-line); border-top-color: var(--we-accent); animation: wd-spin 0.8s linear infinite; }

.we-ask { display: inline-flex; align-items: center; gap: 6px; height: 28px; padding: 0 12px; margin-left: 6px; border: 0; border-radius: 7px; background: var(--we-sel); color: var(--we-text); font: inherit; font-size: 12.5px; font-weight: 500; cursor: pointer; flex: none; }
.we-ask .material-symbols-rounded { color: var(--we-accent); font-size: 16px; }
.we-ask:hover { background: color-mix(in srgb, var(--we-accent) 30%, transparent); }

.we-body { position: relative; display: flex; flex: 1; min-height: 0; }
.we-side { width: var(--we-side); flex: none; display: flex; flex-direction: column; background: var(--we-bg2); border-right: 1px solid var(--we-line); min-height: 0; }
.we-root.side-hidden .we-side, .we-root.side-hidden .we-split { display: none; }
.we-split { width: 4px; margin-left: -2px; margin-right: -2px; cursor: col-resize; z-index: 2; flex: none; }
.we-split:hover, .we-root.is-resizing .we-split { background: var(--we-accent); }
.we-scrim { display: none; }
.we-side-head { display: flex; align-items: center; gap: 2px; height: 34px; padding: 0 6px 0 14px; flex: none; font-size: 11px; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; color: var(--we-faint); }
.we-side-head span { flex: 1; }
.we-tree, .we-results { flex: 1; overflow: auto; padding: 2px 0 20px; scrollbar-width: thin; }
.we-tree[hidden], .we-results[hidden], .we-searchbox[hidden] { display: none; }
.we-node { display: flex; align-items: center; gap: 4px; height: 24px; padding-right: 8px; cursor: pointer; white-space: nowrap; color: var(--we-text); user-select: none; }
.we-node:hover { background: var(--we-hover); }
.we-node.is-active { background: var(--we-sel); }
.we-node.is-dirty .we-node-name::after { content: " ●"; color: var(--we-accent); font-size: 10px; }
.we-caret { font-size: 16px !important; color: var(--we-faint); transition: transform 0.12s; flex: none; }
.we-node.is-open .we-caret { transform: rotate(90deg); }
.we-caret-sp { width: 16px; flex: none; }
.we-node-ico { width: 16px; height: 16px; flex: none; display: grid; place-items: center; }
.we-node-ico .wd-svg { width: 16px; height: 15px; }
.we-node-name { overflow: hidden; text-overflow: ellipsis; font-size: 12.8px; }
.we-tree-note, .we-tree-empty { padding: 8px 14px; font-size: 12px; color: var(--we-faint); }
.we-tree-note.is-err { color: #e5645a; }

/* explorer drag and drop */
.we-node.is-dragging { opacity: 0.45; }
.we-node.is-drop, .we-kids.is-drop { background: color-mix(in srgb, var(--we-accent) 13%, transparent); }
.we-node.is-drop { box-shadow: inset 2px 0 0 var(--we-accent); }
.we-tree.is-drop-root { background: color-mix(in srgb, var(--we-accent) 8%, transparent); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--we-accent) 50%, transparent); }
.we-node.is-flash { animation: we-flash 1s ease; }
@keyframes we-flash { 0%, 35% { background: color-mix(in srgb, var(--we-accent) 32%, transparent); } }
.we-dragghost { gap: 7px; padding: 6px 11px; border-radius: 8px; }
.we-ghost-ico { display: inline-grid; place-items: center; width: 16px; height: 16px; }
.we-ghost-ico .wd-svg { width: 16px; height: 15px; }
.we-ghost-ico .material-symbols-rounded { font-size: 16px; }

.we-dropzone {
    position: absolute; inset: 10px; z-index: 6;
    display: grid; place-items: center;
    border: 2px dashed var(--we-accent); border-radius: 12px;
    background: color-mix(in srgb, var(--we-bg) 78%, transparent);
    pointer-events: none;
    animation: wd-fade 0.12s ease;
}
.we-dropzone[hidden] { display: none; }
.we-dropzone.is-blocked { border-color: var(--we-faint); }
.we-dropzone-card { display: flex; flex-direction: column; align-items: center; gap: 6px; text-align: center; color: var(--we-muted); font-size: 12.5px; }
.we-dropzone-card .material-symbols-rounded { font-size: 34px; color: var(--we-accent); }
.we-dropzone.is-blocked .material-symbols-rounded { color: var(--we-faint); }
.we-dropzone-card b { color: var(--we-text); font-size: 14px; font-weight: 600; }
.we-st-up[hidden] { display: none !important; }
.we-st-up { color: var(--we-accent); }
.we-searchbox { padding: 4px 10px 8px; flex: none; }
.we-searchbox input { width: 100%; height: 28px; padding: 0 8px; border: 1px solid var(--we-line); border-radius: 5px; background: var(--we-bg); color: var(--we-text); font: inherit; font-size: 12.5px; outline: none; }
.we-searchbox input:focus { border-color: var(--we-accent); }
.we-searchopts { display: flex; gap: 4px; margin-top: 6px; }
.we-searchopts button { height: 22px; min-width: 28px; padding: 0 6px; border: 1px solid var(--we-line); border-radius: 4px; background: transparent; color: var(--we-muted); font: 600 11px 'JetBrains Mono', ui-monospace, monospace; cursor: pointer; }
.we-searchopts button.is-on { background: var(--we-sel); color: var(--we-text); border-color: var(--we-accent); }
.we-res-file { padding: 6px 12px 2px; font-size: 12px; font-weight: 600; color: var(--we-text); word-break: break-all; }
.we-res-hit { display: flex; gap: 8px; width: 100%; padding: 2px 12px 2px 20px; border: 0; background: transparent; color: var(--we-muted); text-align: left; cursor: pointer; font: inherit; }
.we-res-hit:hover { background: var(--we-hover); color: var(--we-text); }
.we-res-hit span { width: 32px; flex: none; color: var(--we-faint); font-size: 11px; text-align: right; padding-top: 1px; }
.we-res-hit code { font: 12px 'JetBrains Mono', ui-monospace, Menlo, monospace; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.we-main { position: relative; flex: 1; min-width: 0; display: flex; flex-direction: column; }
.we-editor { flex: 1; min-height: 0; }
.we-editor[hidden] { display: none; }
.we-loading { display: grid; place-items: center; height: 100%; }
.we-fallback { width: 100%; height: 100%; padding: 14px 18px; border: 0; outline: 0; resize: none; background: var(--we-bg); color: var(--we-text); font: 13px/1.6 'JetBrains Mono', ui-monospace, Menlo, Consolas, monospace; tab-size: 2; }
.we-empty { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; color: var(--we-faint); font-size: 13px; text-align: center; padding: 20px; }
.we-empty[hidden] { display: none; }
.we-empty-ico { font-size: 44px !important; opacity: 0.5; }
.we-empty kbd { padding: 1px 6px; border-radius: 4px; border: 1px solid var(--we-line); background: var(--we-bg2); font: 11.5px 'JetBrains Mono', ui-monospace, monospace; }
.we-conflict { position: absolute; left: 16px; right: 16px; top: 12px; z-index: 5; display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 10px; background: var(--we-bg2); box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3), 0 0 0 1px color-mix(in srgb, #e0a53c 55%, transparent); }
.we-conflict[hidden] { display: none; }
.we-conflict > .material-symbols-rounded { color: #e0a53c; font-size: 22px; }
.we-conflict div { display: flex; flex-direction: column; flex: 1; min-width: 0; }
.we-conflict b { font-weight: 600; font-size: 13px; }
.we-conflict span { font-size: 12px; color: var(--we-muted); }

.we-status { display: flex; align-items: center; gap: 16px; height: 24px; padding: 0 12px; flex: none; background: var(--we-bar); border-top: 1px solid var(--we-line); font-size: 11.5px; color: var(--we-muted); white-space: nowrap; overflow: hidden; }
.we-status > span { display: inline-flex; align-items: center; gap: 4px; overflow: hidden; text-overflow: ellipsis; }
.we-status .material-symbols-rounded { font-size: 13px; }
.we-st-save.is-dirty { color: var(--we-accent); }
.we-st-where { min-width: 0; }
.we-grow { flex: 1; }
.we-st-btn { display: inline-flex; align-items: center; gap: 4px; height: 20px; padding: 0 6px; border: 0; border-radius: 4px; background: transparent; color: var(--we-muted); font: inherit; cursor: pointer; }
.we-st-btn:hover { background: var(--we-hover); color: var(--we-text); }
.we-st-btn.is-on .material-symbols-rounded { color: var(--we-accent); }
.we-st-btn .material-symbols-rounded { font-size: 18px; }

.we-menu { position: fixed; z-index: 10003; }
.we-qo-mask { position: fixed; inset: 0; z-index: 10002; display: flex; justify-content: center; align-items: flex-start; padding-top: 70px; background: rgba(0, 0, 0, 0.18); }
.we-qo { width: min(560px, calc(100% - 24px)); border-radius: 10px; background: var(--we-bg2); box-shadow: 0 20px 60px rgba(0, 0, 0, 0.45), 0 0 0 1px var(--we-line); overflow: hidden; }
.we-qo input { width: 100%; height: 40px; padding: 0 14px; border: 0; border-bottom: 1px solid var(--we-line); background: transparent; color: var(--we-text); font: inherit; font-size: 14px; outline: none; }
.we-qo-list { max-height: 360px; overflow-y: auto; padding: 4px; }
.we-qo-item { display: flex; align-items: baseline; gap: 10px; width: 100%; padding: 6px 10px; border: 0; border-radius: 6px; background: transparent; color: var(--we-text); font: inherit; text-align: left; cursor: pointer; }
.we-qo-item b { font-weight: 500; font-size: 13px; }
.we-qo-item span { font-size: 11.5px; color: var(--we-faint); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.we-qo-item.is-on, .we-qo-item:hover { background: var(--we-sel); }

@media (max-width: 760px) {
    .we-root { padding-top: env(safe-area-inset-top); padding-bottom: env(safe-area-inset-bottom); }
    .we-ws, .we-ask span { display: none; }
    .we-ask { padding: 0 8px; }
    .we-side { position: absolute; top: 0; bottom: 0; left: 0; z-index: 6; width: min(300px, 84vw); transform: translateX(-102%); transition: transform 0.25s cubic-bezier(0.22, 1, 0.36, 1); box-shadow: 10px 0 40px rgba(0, 0, 0, 0.35); }
    .we-root.side-hidden .we-side { display: flex; }
    .we-root.side-open .we-side { transform: none; }
    .we-root.side-open .we-scrim { display: block; position: absolute; inset: 0; z-index: 5; background: rgba(0, 0, 0, 0.35); }
    .we-split { display: none; }
    .we-st-where, .we-st-indent { display: none !important; }
}

/* "Ask Delphos" from the editor: a short ring on the composer so the eye
   lands where the file mention went. */
.input-wrapper.we-mention-flash { animation: we-mention-flash 0.9s ease-out; }
@keyframes we-mention-flash {
    0% { box-shadow: 0 0 0 0 color-mix(in srgb, var(--accent, #b7795c) 55%, transparent); }
    100% { box-shadow: 0 0 0 9px transparent; }
}
@media (prefers-reduced-motion: reduce) { .input-wrapper.we-mention-flash, .we-node.is-flash { animation: none; } }

/* ── composer project chip (work-context.js) ────────────────────────────── */
.work-project-chip {
    display: inline-flex; align-items: center; gap: 6px;
    max-width: 210px; height: 32px; padding: 0 10px;
    border: 1px solid var(--border-color, rgba(255, 255, 255, 0.12)); border-radius: 16px;
    background: transparent; color: var(--subheading-color, #a3a3a3);
    font: inherit; font-size: 12.5px; font-weight: 500;
    cursor: pointer; flex: none;
    transition: background 0.12s, color 0.12s, border-color 0.12s;
}
.work-project-chip:hover { background: var(--secondary-hover-color, rgba(255, 255, 255, 0.06)); color: var(--text-color, #fff); }
.work-project-chip:focus-visible { outline: 2px solid var(--accent-ring, rgba(183, 121, 92, 0.4)); outline-offset: 2px; }
.work-project-chip .material-symbols-rounded { font-size: 17px; }
.work-project-chip.is-set { color: var(--text-color, #fff); border-color: color-mix(in srgb, var(--accent, #b7795c) 45%, transparent); background: color-mix(in srgb, var(--accent, #b7795c) 12%, transparent); }
.work-project-chip.is-offline { opacity: 0.7; }
.wpc-ico { display: inline-flex; width: 18px; height: 15px; flex: none; }
.wpc-ico .wd-svg { width: 18px; height: 15px; }
.wpc-label { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.wpc-dev .material-symbols-rounded { font-size: 14px; opacity: 0.7; }
.wpc-x { display: inline-grid; place-items: center; width: 18px; height: 18px; margin-right: -4px; border-radius: 50%; opacity: 0.6; }
.wpc-x:hover { opacity: 1; background: rgba(127, 127, 127, 0.2); }
.wpc-x .material-symbols-rounded { font-size: 14px; }
/* Work mode only, never in Chat mode or for Characters. */
html.app-chat .work-project-chip,
body.character-mode .work-project-chip { display: none !important; }
@media (max-width: 520px) {
    .work-project-chip { max-width: 44px; padding: 0 9px; }
    .work-project-chip .wpc-label, .work-project-chip .wpc-dev, .work-project-chip .wpc-x { display: none; }
}

/* ── Delphos Desktop approval (?connect=) ───────────────────────────────── */
.wdc-mask { z-index: 10005; }
.wdc-dlg { width: min(430px, 100%); }
.wdc-code { display: flex; flex-direction: column; align-items: center; gap: 2px; margin: 4px 0 14px; padding: 12px; border-radius: 12px; background: var(--wd-raise); }
.wdc-code span { font-size: 11px; color: var(--wd-faint); text-transform: uppercase; letter-spacing: 0.08em; }
.wdc-code b { font: 700 22px/1.3 'JetBrains Mono', ui-monospace, Menlo, monospace; letter-spacing: 0.12em; }
.wdc-code small { font-size: 11.5px; color: var(--wd-muted); }
.wdc-list { display: flex; flex-direction: column; gap: 9px; margin: 0; padding: 0; list-style: none; }
.wdc-list li { display: flex; gap: 10px; font-size: 12.8px; line-height: 1.45; color: var(--wd-muted); }
.wdc-list .material-symbols-rounded { font-size: 18px; color: var(--wd-accent); flex: none; margin-top: 1px; }

/* ── Settings → Devices ─────────────────────────────────────────────────── */
.wdev-card { margin-bottom: 12px; padding: 14px; border: 1px solid var(--border-color, rgba(255,255,255,.1)); border-radius: 14px; }
.wdev-head { display: flex; align-items: center; gap: 12px; }
.wdev-ico { position: relative; display: grid; place-items: center; width: 40px; height: 40px; border-radius: 11px; background: var(--secondary-color, rgba(255,255,255,.06)); flex: none; }
.wdev-ico .material-symbols-rounded { font-size: 22px; color: var(--subheading-color); }
.wdev-card.is-online .wdev-ico .material-symbols-rounded { color: var(--text-color); }
.wdev-ico .wd-presence { position: absolute; right: -2px; bottom: -2px; box-shadow: 0 0 0 2px var(--primary-color, #242424); background: #7d7771; }
.wdev-ico .wd-presence.is-on { background: #4fb57d; animation: none; }
.wdev-title { display: flex; flex-direction: column; min-width: 0; flex: 1; }
.wdev-title b { font-size: 14px; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.wdev-title span { font-size: 12px; color: var(--subheading-color); }
.wdev-btn { height: 30px; padding: 0 12px; border: 1px solid var(--border-color, rgba(255,255,255,.12)); border-radius: 8px; background: transparent; color: var(--text-color); font: inherit; font-size: 12.5px; cursor: pointer; }
.wdev-btn:hover { background: var(--secondary-hover-color, rgba(255,255,255,.06)); }
.wdev-btn.is-danger { color: #e5645a; }
.wdev-meta { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 10px 16px; margin-top: 12px; }
.wdev-meta div { display: flex; flex-direction: column; gap: 2px; font-size: 12px; }
.wdev-meta span { color: var(--subheading-color); }
.wdev-meta b { font-weight: 500; color: var(--text-color); word-break: break-word; }
.wdev-meta em { font-style: normal; font-size: 11px; color: var(--subheading-color); }
.wdev-paused { color: #e0a53c !important; }
.wdev-note { margin: 10px 0 0; font-size: 11.5px; line-height: 1.5; color: var(--subheading-color); }
.wdev-empty { display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 26px 16px; margin-bottom: 12px; border: 1px dashed var(--border-color, rgba(255,255,255,.14)); border-radius: 14px; text-align: center; }
.wdev-empty .material-symbols-rounded { font-size: 30px; color: var(--subheading-color); margin-bottom: 6px; }
.wdev-empty b { font-weight: 600; font-size: 14px; }
.wdev-empty span { font-size: 12.5px; color: var(--subheading-color); }
.wdev-err { color: #e5645a; font-size: 13px; }
.wdev-codebox { display: flex; gap: 6px; }
.wdev-code { width: 116px; height: 32px; padding: 0 10px; border: 1px solid var(--border-color, rgba(255,255,255,.12)); border-radius: 8px; background: transparent; color: var(--text-color); font: 600 13px 'JetBrains Mono', ui-monospace, monospace; letter-spacing: 0.08em; text-transform: uppercase; }
.wdev-route { height: 32px; padding: 0 8px; border: 1px solid var(--border-color, rgba(255,255,255,.12)); border-radius: 8px; background: var(--primary-color, #242424); color: var(--text-color); font: inherit; font-size: 12.5px; }
