﻿/* ═══════════════════════════════════════════════════════════════════
   HESOYAM Web Cabinet — Design System
   Based on the landing page design language (website/index.html)
   ═══════════════════════════════════════════════════════════════════ */

@import url('https://fonts.googleapis.com/css2?family=Unbounded:wght@400;500;600;700;800&family=Manrope:wght@400;500;600;700;800&display=swap');

/* ═══ Reset & Base ═══ */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
[hidden] { display: none !important; }

:root {
    --bg:          #0a0a14;
    --bg2:         #0f0f1e;
    --card:        #131326;
    --card-hover:  #1a1a32;
    --card-glass:  rgba(255,255,255,.04);
    --ink:         #f1f1f7;
    --ink-soft:    #c8c8d8;
    --muted:       #6f6f8e;
    --line:        rgba(255,255,255,.08);
    --line-2:      rgba(255,255,255,.05);
    --accent:      #667eea;
    --accent2:     #764ba2;
    --accent3:     #a78de8;
    --mint:        #34d399;
    --danger:      #f5677f;
    --warning:     #f5b45a;
    --gradient:    linear-gradient(135deg, var(--accent), var(--accent2));
    --gradient-head: linear-gradient(110deg, var(--accent) 0%, var(--accent3) 45%, var(--accent2) 100%);
    --gradient-mint: linear-gradient(135deg, var(--accent) 0%, var(--mint) 100%);
    --shadow:      0 30px 80px -36px rgba(0,0,0,.6), 0 10px 30px -22px rgba(102,126,234,.25);
    --shadow-lg:   0 60px 120px -44px rgba(0,0,0,.8), 0 20px 50px -28px rgba(102,126,234,.35);
    --radius:      16px;
    --radius-sm:   10px;
    --radius-xs:   8px;
    --blur:        blur(20px) saturate(160%);
    --ease:        cubic-bezier(.22,1,.36,1);

    --font-display: 'Unbounded', sans-serif;
    --font-body:    'Manrope', -apple-system, BlinkMacSystemFont, system-ui, sans-serif;

    --sidebar-w:   260px;
    --sidebar-rail:76px;
    --header-h:    62px;
    --tabbar-h:    64px;
    --maxw:        1240px;
}

html { height: 100%; }

body {
    font-family: 'Manrope', -apple-system, BlinkMacSystemFont, system-ui, sans-serif;
    background: var(--bg);
    color: var(--ink);
    height: 100%;
    overflow: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* ═══ Ambient BG Effects ═══ */
.ambient-orb {
    position: fixed; pointer-events: none; z-index: 0;
    width: 70vmax; height: 70vmax; border-radius: 50%;
    filter: blur(140px);
}
.ambient-orb--tl {
    top: -30vh; left: -20vw;
    background: rgba(102,126,234,.12);
}
.ambient-orb--br {
    bottom: -30vh; right: -20vw;
    background: rgba(118,75,162,.10);
}
.grain-overlay {
    position: fixed; inset: 0; z-index: 0; pointer-events: none;
    opacity: .04; mix-blend-mode: overlay;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* ═══ App Shell ═══ */
#app {
    position: relative; z-index: 1;
    display: flex; height: 100%;
}

/* ═══ Sidebar ═══ */
.sidebar {
    width: var(--sidebar-w); flex-shrink: 0;
    display: flex; flex-direction: column;
    background: var(--bg2); border-right: 1px solid var(--line);
    z-index: 100; overflow: hidden;
    transition: width .25s var(--ease);
}
.sidebar-brand {
    display: flex; align-items: center; gap: 10px;
    height: var(--header-h); padding: 0 18px;
    border-bottom: 1px solid var(--line); flex-shrink: 0;
}
.sidebar-mark {
    width: 32px; height: 32px; border-radius: 9px; flex-shrink: 0;
    display: grid; place-items: center;
    background: var(--gradient); color: #fff;
    font-family: 'Unbounded', sans-serif; font-weight: 700; font-size: 12px; letter-spacing: .03em;
}
.sidebar-name {
    font-family: 'Unbounded', sans-serif; font-weight: 600;
    font-size: 16px; letter-spacing: -.02em; color: var(--ink);
    margin-right: auto; white-space: nowrap;
}
.sidebar-collapse {
    width: 28px; height: 28px; border-radius: 7px; flex-shrink: 0;
    display: grid; place-items: center;
    background: transparent; border: 0; color: var(--muted); cursor: pointer;
    transition: background .15s, color .15s;
}
.sidebar-collapse svg { width: 16px; height: 16px; }
.sidebar-collapse:hover { background: var(--card-glass); color: var(--ink); }

.sidebar-nav {
    display: flex; flex-direction: column; gap: 1px;
    padding: 14px 10px; overflow-y: auto; flex: 1;
}
.nav-item {
    display: flex; align-items: center; gap: 12px;
    padding: 10px 13px; border-radius: var(--radius-sm);
    background: transparent; border: 0; cursor: pointer;
    color: var(--ink-soft); font-family: inherit; font-size: 14px; font-weight: 600;
    text-align: left; white-space: nowrap; position: relative;
    transition: background .15s, color .15s;
}
.nav-item:hover { background: var(--card-glass); color: var(--ink); }
.nav-item.is-active {
    background: rgba(102,126,234,.12); color: #fff;
}
.nav-item.is-active::before {
    content: ''; position: absolute; left: -10px; top: 50%; transform: translateY(-50%);
    width: 3px; height: 20px; border-radius: 0 3px 3px 0; background: var(--accent);
}
.nav-ic { width: 20px; height: 20px; flex-shrink: 0; display: grid; place-items: center; }
.nav-ic svg { width: 20px; height: 20px; }
.nav-label { overflow: hidden; text-overflow: ellipsis; }

.sidebar-foot { padding: 10px; border-top: 1px solid var(--line); flex-shrink: 0; }
.sidebar-plan {
    display: flex; align-items: center; gap: 10px; width: 100%;
    padding: 10px 13px; border-radius: var(--radius-sm);
    background: var(--card-glass); border: 1px solid var(--line); cursor: pointer;
    color: var(--ink); font-family: inherit; text-align: left;
    transition: background .15s, border-color .15s;
}
.sidebar-plan:hover { background: var(--card-glass); border-color: var(--line); }
.sidebar-plan-icon { width: 22px; height: 22px; flex-shrink: 0; color: var(--accent); }
.sidebar-plan-icon svg { width: 22px; height: 22px; }
.sidebar-plan-text { display: flex; flex-direction: column; min-width: 0; }
.sidebar-plan-name { font-size: 14px; font-weight: 700; line-height: 1.2; }
.sidebar-plan-name[data-plan="free"] { color: var(--ink-soft); }
.sidebar-plan-name[data-plan="start"] { color: #7cc4ff; }
.sidebar-plan-name[data-plan="pro"]   { color: var(--accent3); }
.sidebar-plan-name[data-plan="max"]   { color: var(--mint); }
.sidebar-plan-sub { font-size: 11px; color: var(--muted); white-space: nowrap; }

/* Rail mode */
body.wc-rail .sidebar { width: var(--sidebar-rail); }
body.wc-rail .sidebar-brand { justify-content: center; padding: 0; gap: 0; }
body.wc-rail .sidebar-name,
body.wc-rail .sidebar-collapse,
body.wc-rail .nav-label,
body.wc-rail .sidebar-plan-text { display: none; }
body.wc-rail .nav-item { justify-content: center; padding: 10px; }
body.wc-rail .sidebar-plan { justify-content: center; padding: 10px; }

/* ═══ Main Area ═══ */
.main-area {
    flex: 1; display: flex; flex-direction: column; min-width: 0;
}

/* ═══ Top Bar ═══ */
.topbar {
    height: var(--header-h); flex-shrink: 0;
    display: flex; align-items: center; justify-content: space-between;
    padding: 0 28px;
    border-bottom: 1px solid var(--line);
    background: rgba(10,10,20,.78);
    backdrop-filter: var(--blur); -webkit-backdrop-filter: var(--blur);
}
.topbar-left { display: flex; align-items: center; gap: 14px; }
.topbar-menu-btn {
    display: none; width: 34px; height: 34px;
    background: transparent; border: 0; color: var(--ink-soft); cursor: pointer;
    border-radius: var(--radius-xs); padding: 6px;
}
.topbar-menu-btn svg { width: 22px; height: 22px; }
.topbar-menu-btn:hover { background: var(--card-glass); }
.topbar-page-title {
    font-family: 'Unbounded', sans-serif;
    font-size: 17px; font-weight: 600; letter-spacing: -.01em;
    color: var(--ink);
}
.topbar-right { display: flex; align-items: center; gap: 12px; }

.topbar-status {
    display: flex; align-items: center; gap: 8px;
    padding: 7px 14px 7px 12px;
    background: var(--card-glass); border: 1px solid var(--line);
    border-radius: 999px;
    font-size: 13px; font-weight: 600; color: var(--ink-soft);
}
.status-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--muted); flex-shrink: 0; transition: background .2s, box-shadow .2s; }
.status-dot.authenticated    { background: var(--mint); box-shadow: 0 0 8px rgba(52,211,153,.45); }
.status-dot.not-authenticated { background: var(--danger); }
.status-dot.is-saving { background: #c5caff; box-shadow: 0 0 6px rgba(197,202,255,.55); animation: pulse-dot 1s ease-in-out infinite; }
.status-dot.is-saved  { background: #43e97b; box-shadow: 0 0 6px rgba(67,233,123,.6); }
.status-dot.is-error  { background: var(--danger); box-shadow: 0 0 6px rgba(245,103,127,.55); }
.topbar-status:has(.status-dot.authenticated) { background: rgba(52,211,153,.06); border-color: rgba(52,211,153,.22); color: var(--mint); }
.topbar-status:has(.status-dot.not-authenticated),
.topbar-status:has(.status-dot.is-error) { background: rgba(245,103,127,.06); border-color: rgba(245,103,127,.22); color: var(--danger); }

@keyframes pulse-dot { 0%,100%{opacity:1} 50%{opacity:.4} }

/* ═══ Screens Container ═══ */
.screens-container {
    flex: 1; overflow: hidden; position: relative;
}

.screen {
    display: none;
    position: absolute; inset: 0;
    overflow-y: auto; overflow-x: hidden;
    overscroll-behavior: contain;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin; scrollbar-color: rgba(102,126,234,.35) transparent;
}
.screen::-webkit-scrollbar { width: 6px; }
.screen::-webkit-scrollbar-thumb { background: rgba(102,126,234,.3); border-radius: 999px; }
.screen.active { display: block; }

.screen-header {
    margin: 0; padding: 20px 0 16px;
    max-width: var(--maxw); margin-inline: auto;
    width: 100%;
}
.screen-content {
    max-width: var(--maxw); margin: 0 auto;
    padding: 0 0 48px; width: 100%;
    display: flex; flex-direction: column; gap: 16px;
}

.page-title {
    font-family: 'Unbounded', sans-serif;
    font-size: 22px; font-weight: 600; letter-spacing: -.01em;
    color: var(--ink);
}

/* ═══ Auth Screen ═══ */
.screen--auth .screen-header { display: none; }
.auth-wrap {
    min-height: 100%; display: flex; align-items: center; justify-content: center;
    padding: 40px 20px;
}
.auth-card {
    width: 100%; max-width: 420px;
    background: var(--card); border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 40px 32px 32px;
    text-align: center;
    box-shadow: var(--shadow);
}
.auth-mascot-box {
    display: flex; justify-content: center; margin-bottom: 16px;
}
.auth-title {
    font-family: 'Unbounded', sans-serif;
    font-size: 26px; font-weight: 700; letter-spacing: -.02em;
    background: var(--gradient-head);
    -webkit-background-clip: text; -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 8px;
}
.auth-sub {
    font-size: 15px; color: var(--ink-soft); margin-bottom: 24px; line-height: 1.5;
}
.auth-flow { text-align: left; }
.auth-step-status { margin-top: 10px; font-size: 13px; min-height: 18px; }

/* Mascot */
.mascot-lg {
    display: inline-flex; flex-direction: column; align-items: center; gap: 3px;
    animation: mascot-float 3.4s ease-in-out infinite;
    filter: drop-shadow(0 8px 24px rgba(102,126,234,.5));
}
@keyframes mascot-float { 0%,100%{transform:translateY(0)} 50%{transform:translateY(-10px)} }
.m-antenna {
    width: 3px; height: 18px;
    background: linear-gradient(to bottom, #a0aaff, rgba(255,255,255,.4));
    border-radius: 3px; margin-bottom: -2px; position: relative;
}
.m-antenna::before {
    content: ''; position: absolute; top: -9px; left: 50%; transform: translateX(-50%);
    width: 7px; height: 7px; background: #ff4757; border-radius: 50%;
    animation: glow 1.8s ease-in-out infinite;
}
@keyframes glow { 0%,100%{box-shadow:0 0 4px rgba(255,71,87,.6)} 50%{box-shadow:0 0 14px rgba(255,71,87,1),0 0 28px rgba(255,71,87,.4)} }
.m-head {
    width: 72px; height: 52px;
    background: linear-gradient(150deg, #7a8ef5 0%, #764ba2 100%);
    border-radius: 14px;
    display: flex; align-items: center; justify-content: center; gap: 12px;
    position: relative;
    box-shadow: 0 6px 24px rgba(102,126,234,.4);
}
.m-head::before, .m-head::after {
    content: ''; position: absolute; top: 50%; transform: translateY(-50%);
    width: 6px; height: 26px;
    background: linear-gradient(150deg, #7a8ef5, #764ba2);
    border-radius: 4px;
}
.m-head::before { left: -5px; } .m-head::after { right: -5px; }
.m-eye {
    width: 16px; height: 16px; background: white; border-radius: 50%;
    position: relative; flex-shrink: 0;
    animation: m-blink 4.8s ease-in-out infinite;
    overflow: hidden;
}
.m-eye.r { animation-delay: .18s; }
.m-pupil {
    position: absolute; top: 50%; left: 50%;
    width: 8px; height: 8px; background: #111; border-radius: 50%;
    transform: translate(-50%,-50%);
    transition: transform .08s ease-out;
    pointer-events: none;
}
@keyframes m-blink { 0%,87%,100%{transform:scaleY(1)} 92%{transform:scaleY(.07)} }
.m-body {
    width: 60px; height: 32px;
    background: linear-gradient(150deg, #6a4fa0, #5868cc);
    border-radius: 0 0 12px 12px;
    display: flex; align-items: center; justify-content: center;
    font-size: 10px; font-weight: 800; color: rgba(255,255,255,.9); letter-spacing: 1px;
}
.mascot-bubble {
    position: absolute; left: 50%; top: calc(100% + 14px);
    background: rgba(30,30,60,.92);
    backdrop-filter: var(--blur);
    border: 1px solid rgba(102,126,234,.35);
    color: var(--ink);
    font-size: 13px; font-weight: 500;
    padding: 8px 14px;
    border-radius: 12px;
    width: max-content;
    max-width: 280px;
    text-align: center;
    line-height: 1.3;
    pointer-events: none;
    box-shadow: 0 6px 20px rgba(0,0,0,.35);
    opacity: 0;
    transform: translateX(-50%) translateY(-8px) scale(.85);
    z-index: 10;
}
.mascot-lg .mascot-bubble.visible { animation: bubble-in .35s var(--ease) forwards; }
.mascot-lg .mascot-bubble.hiding { animation: bubble-out .25s ease-in forwards; }
@keyframes bubble-in { 0%{opacity:0;transform:translateX(-50%) translateY(-8px) scale(.8)} 55%{opacity:1;transform:translateX(-50%) translateY(3px) scale(1.05)} 100%{opacity:1;transform:translateX(-50%) translateY(0) scale(1)} }
@keyframes bubble-out { 0%{opacity:1;transform:translateX(-50%) translateY(0) scale(1)} 100%{opacity:0;transform:translateX(-50%) translateY(6px) scale(.88)} }

/* ═══ Dashboard ═══ */
.dash-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) clamp(300px, 28%, 360px);
    gap: 20px; align-items: start;
    padding: 0 0 48px;
}
.dash-col { display: flex; flex-direction: column; gap: 16px; min-width: 0; }

.dash-card {
    background: var(--card); border: 1px solid var(--line);
    border-radius: var(--radius-sm); padding: 18px;
    transition: border-color .2s, background .2s;
}
.dash-card-head {
    display: flex; align-items: center; justify-content: space-between; margin-bottom: 14px;
}
.dash-card-title {
    font-family: 'Unbounded', sans-serif;
    font-size: 13px; font-weight: 600; color: var(--ink); margin: 0; letter-spacing: -.01em;
}
.dash-link {
    background: none; border: 0; color: var(--accent); font-family: inherit;
    font-size: 13px; font-weight: 600; cursor: pointer; padding: 0;
}
.dash-link:hover { color: var(--accent3); }

/* Notice */
.dash-notice {
    display: flex; align-items: center; gap: 12px; flex-wrap: wrap;
    padding: 14px 16px; border-radius: var(--radius-sm);
    font-size: 14px; font-weight: 600;
}
.dash-notice[hidden] { display: none; }
.dash-notice--warn { background: rgba(245,180,90,.08); border: 1px solid rgba(245,180,90,.25); color: var(--warning); }
.dash-notice--error { background: rgba(245,103,127,.08); border: 1px solid rgba(245,103,127,.25); color: var(--danger); }
.dash-notice-cta {
    margin-left: auto; padding: 7px 16px; border-radius: var(--radius-xs); cursor: pointer;
    background: var(--gradient); color: #fff; border: 0; font-family: inherit;
    font-size: 13px; font-weight: 700; white-space: nowrap;
}

/* Account */
.dash-account {
    display: flex; align-items: center; gap: 14px; flex-wrap: wrap;
    position: relative; overflow: hidden;
}
.dash-account::before {
    content: ''; position: absolute; top: 0; left: 0; right: 0; height: 2px;
    background: var(--gradient-mint);
}
.dash-account-avatar {
    width: 44px; height: 44px; border-radius: 12px; flex-shrink: 0;
    display: grid; place-items: center;
    background: linear-gradient(150deg, #7a8ef5, #764ba2);
    font-family: 'Unbounded', sans-serif; font-weight: 700; font-size: 13px; color: #fff;
    position: relative;
}
.dash-account-pulse {
    position: absolute; inset: 0; border-radius: inherit;
    box-shadow: 0 0 0 0 rgba(52,211,153,.35);
}
.dash-account-pulse.is-active { animation: acc-pulse 2s ease-out infinite; }
@keyframes acc-pulse { 0%{box-shadow:0 0 0 0 rgba(52,211,153,.35)} 70%{box-shadow:0 0 0 12px rgba(52,211,153,0)} }
.dash-account-info { flex: 1; min-width: 0; }
.dash-account-name { font-size: 15px; font-weight: 700; color: var(--ink); }
.dash-account-sub { font-size: 13px; color: var(--ink-soft); margin-top: 1px; }
.dash-account-badge {
    display: flex; align-items: center; gap: 6px;
    padding: 5px 11px; border-radius: 999px;
    background: rgba(52,211,153,.08); border: 1px solid rgba(52,211,153,.2);
    font-size: 12px; font-weight: 600; color: var(--mint);
}
.dash-account-badge.is-off {
    background: rgba(245,103,127,.08); border-color: rgba(245,103,127,.2);
    color: var(--danger);
}
.dash-dot { width: 7px; height: 7px; border-radius: 50%; background: currentColor; flex-shrink: 0; }
.dash-account-link {
    width: 100%; display: flex; align-items: center; justify-content: center; gap: 6px;
    padding: 8px; border-radius: var(--radius-xs);
    background: rgba(102,126,234,.1); border: 1px solid rgba(102,126,234,.25);
    color: var(--accent); font-family: inherit; font-size: 13px; font-weight: 700; cursor: pointer;
    transition: background .15s;
}
.dash-account-link:hover { background: rgba(102,126,234,.16); }
.dash-account-link[hidden] { display: none; }

/* Auto-apply */
.dash-auto-apply {
    display: flex; align-items: center; gap: 14px;
}
.dash-auto-apply-icon {
    width: 42px; height: 42px; border-radius: 10px; flex-shrink: 0;
    display: grid; place-items: center;
    background: rgba(102,126,234,.1); border: 1px solid rgba(102,126,234,.2);
    font-size: 22px;
}
.dash-auto-apply-info { flex: 1; min-width: 0; }
.dash-auto-apply-title { font-weight: 700; font-size: 15px; color: var(--ink); }
.dash-auto-apply-status { font-size: 13px; color: var(--ink-soft); margin-top: 2px; }
.dash-auto-apply-status.is-on { color: var(--mint); }
.dash-auto-apply-status.is-off { color: var(--danger); }

/* Progress */
.dash-progress-head {
    display: flex; align-items: baseline; justify-content: space-between; margin-bottom: 10px;
}
.dash-progress-label { font-size: 13px; font-weight: 700; color: var(--ink); }
.dash-progress-val { font-size: 13px; color: var(--muted); }
.dash-progress-val b { color: var(--ink); font-size: 14px; }
.dash-progress-track { height: 8px; border-radius: 999px; background: rgba(255,255,255,.06); overflow: hidden; }
.dash-progress-fill { height: 100%; width: 0; border-radius: 999px; background: var(--gradient-mint); transition: width .4s ease; }
.dash-progress-hint { margin-top: 8px; font-size: 12px; color: var(--muted); }

/* Tiles */
.dash-tiles {
    display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px;
}
.dash-tile {
    display: flex; flex-direction: column; gap: 4px;
    padding: 16px 18px; border-radius: var(--radius-sm);
    border: 1px solid var(--line); background: var(--card);
}
.dash-tile-val { font-size: 28px; font-weight: 800; line-height: 1; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.dash-tile--today .dash-tile-val { background: var(--gradient-head); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; }
.dash-tile--success .dash-tile-val { color: var(--mint); }
.dash-tile--fail .dash-tile-val { color: var(--danger); }
.dash-tile--tests .dash-tile-val { color: var(--accent3); }
.dash-tile-label { font-size: 12px; color: var(--muted); font-weight: 600; text-transform: uppercase; letter-spacing: .03em; }

/* Activity */
.dash-activity-list { display: flex; flex-direction: column; }
.dash-act {
    display: flex; align-items: center; justify-content: space-between; gap: 14px;
    padding: 12px 0; border-top: 1px solid var(--line-2);
}
.dash-act:first-child { border-top: 0; }
.dash-act-main { min-width: 0; }
.dash-act-title {
    display: block; font-size: 14px; font-weight: 600; color: var(--ink);
    text-decoration: none; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.dash-act-title:hover { color: var(--accent); }
.dash-act-company { font-size: 12px; color: var(--muted); margin-top: 2px; }
.dash-act-side { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }
.dash-act-time { font-size: 12px; color: var(--muted); font-variant-numeric: tabular-nums; }
.dash-pill {
    font-size: 11px; font-weight: 700; padding: 3px 10px; border-radius: 999px; white-space: nowrap;
}
.dash-pill--ok { background: rgba(52,211,153,.1); color: var(--mint); }
.dash-pill--fail { background: rgba(245,103,127,.1); color: var(--danger); }
.dash-empty { font-size: 13px; color: var(--muted); padding: 12px 0; text-align: center; }

/* Launch button */
.dash-launch-btn {
    display: flex; align-items: center; justify-content: center; gap: 10px;
    width: 100%; padding: 16px; border: 0; border-radius: var(--radius-sm);
    background: var(--gradient); color: #fff;
    font-family: inherit; font-size: 15px; font-weight: 700; cursor: pointer;
    box-shadow: var(--shadow);
    transition: transform .15s, box-shadow .15s;
}
.dash-launch-btn:hover { transform: translateY(-1px); box-shadow: var(--shadow-lg); }
.dash-launch-btn:active { transform: translateY(0); }
.dash-launch-btn[hidden] { display: none; }
.dash-launch-icon { font-size: 20px; line-height: 1; }

/* Quick actions */
.dash-quick-grid {
    display: grid; grid-template-columns: 1fr 1fr; gap: 8px;
}
.dash-quick-card {
    display: flex; flex-direction: column; align-items: center; gap: 8px;
    padding: 14px 10px; border-radius: var(--radius-xs);
    background: var(--card-glass); border: 1px solid var(--line);
    cursor: pointer; font-family: inherit; color: var(--ink-soft);
    transition: background .15s, border-color .15s, color .15s;
}
.dash-quick-card:hover { background: var(--card-hover); border-color: var(--line); color: var(--ink); }
.dash-quick-card-icon { font-size: 22px; line-height: 1; }

/* Profiles summary */
.dash-profiles-wrap { margin-bottom: 4px; }
.dash-profiles {
    display: flex; gap: 8px; overflow-x: auto;
    scroll-snap-type: x mandatory; scrollbar-width: none;
}
.dash-profiles::-webkit-scrollbar { display: none; }
.dash-profile-card {
    flex: 0 0 100%; scroll-snap-align: start;
    background: var(--card); border: 1px solid var(--line);
    border-radius: var(--radius-sm); padding: 16px;
    display: flex; align-items: center; justify-content: space-between; gap: 10px;
    cursor: pointer; transition: border-color .2s;
}
.dash-profile-card:hover { border-color: var(--line); }
.dash-profile-card.is-active {
    border-color: rgba(102,126,234,.35);
    background: linear-gradient(135deg, rgba(102,126,234,.08), transparent);
}
.dash-profile-info { min-width: 0; flex: 1; }
.dash-profile-name { font-size: 14px; font-weight: 700; color: var(--ink); }
.dash-profile-plan { font-size: 11px; color: var(--muted); margin-top: 2px; }
.dash-profile-btn {
    padding: 6px 13px; border-radius: 999px; border: 0;
    background: var(--gradient); color: #fff; font-size: 11px; font-weight: 700; cursor: pointer;
}

/* Skeleton */
.dash-skel {
    border-radius: var(--radius-xs);
    background: linear-gradient(90deg, rgba(255,255,255,.03), rgba(255,255,255,.08), rgba(255,255,255,.03));
    background-size: 200% 100%;
    animation: shimmer 1.3s linear infinite;
}
@keyframes shimmer { to { background-position: -200% 0; } }

/* ═══ Stats Screen ═══ */
.stats-row {
    display: grid; gap: 12px;
}
.stats-row--4 { grid-template-columns: repeat(4, 1fr); }
.stats-row--3 { grid-template-columns: repeat(3, 1fr); }
.stats-row--2 { grid-template-columns: repeat(2, 1fr); }

.stat-card {
    background: var(--card); border: 1px solid var(--line);
    border-radius: var(--radius-sm); padding: 18px 16px;
    text-align: center; position: relative; overflow: hidden;
}
.stat-card::before {
    content: ''; position: absolute; top: 0; left: 0; right: 0; height: 2px;
    background: var(--gradient); opacity: .6;
}
.stat-val {
    display: block; font-size: 30px; font-weight: 800; line-height: 1;
    font-variant-numeric: tabular-nums;
    background: var(--gradient-head);
    -webkit-background-clip: text; -webkit-text-fill-color: transparent;
    background-clip: text;
}
.stat-lbl {
    display: block; font-size: 11px; color: var(--muted); margin-top: 6px;
    text-transform: uppercase; letter-spacing: .05em; font-weight: 600;
}

.segmented {
    display: inline-flex; align-self: center;
    background: var(--card); border: 1px solid var(--line);
    border-radius: 999px; padding: 3px; gap: 2px;
}
.segmented-opt {
    padding: 8px 18px; border-radius: 999px;
    font-size: 13px; font-weight: 600;
    color: var(--ink-soft); background: transparent;
    border: none; cursor: pointer;
    transition: background .2s, color .2s; font-family: inherit;
}
.segmented-opt.active {
    background: var(--gradient); color: #fff;
    box-shadow: 0 2px 10px rgba(102,126,234,.4);
}
.segmented-opt:not(.active):hover { color: var(--ink); }

.stats-chart-wrap {
    position: relative; margin-top: 4px; padding: 8px 0;
    background: rgba(255,255,255,.015); border: 1px solid var(--line);
    border-radius: var(--radius-xs); overflow: hidden;
}
.stats-chart-legend {
    display: flex; justify-content: center; gap: 18px; margin-top: 12px;
    font-size: 12px; color: var(--muted); font-weight: 600;
}
.stats-chart-legend span { display: inline-flex; align-items: center; gap: 6px; }
.chart-dot { width: 8px; height: 8px; border-radius: 50%; }
.chart-dot--ok { background: rgba(52,211,153,.8); }
.chart-dot--fail { background: rgba(245,103,127,.8); }

/* ═══ Filters ═══ */
.filters-layout {
    display: flex; flex-direction: column; gap: 20px;
    max-width: var(--maxw); margin: 0 auto; padding: 0 0 48px; width: 100%;
}
.filters-summary {
    background: linear-gradient(135deg, rgba(102,126,234,.12), rgba(20,20,34,.6));
    border: 1px solid rgba(102,126,234,.28);
    border-radius: var(--radius-sm); padding: 18px;
    display: flex; justify-content: space-between; gap: 12px; align-items: flex-start;
}
.filters-summary-title {
    font-family: 'Unbounded', sans-serif;
    font-size: 15px; font-weight: 600; color: var(--ink);
}
.filters-summary-text { margin-top: 4px; font-size: 13px; color: var(--ink-soft); line-height: 1.45; }
.filters-count {
    min-width: 32px; height: 32px; border-radius: 999px;
    display: grid; place-items: center;
    border: 1px solid rgba(102,126,234,.4);
    background: rgba(102,126,234,.2);
    font-size: 14px; font-weight: 700; color: var(--ink); flex-shrink: 0;
}

.filter-section { display: flex; flex-direction: column; gap: 12px; }
.section-label {
    font-size: 11px; font-weight: 700; color: var(--muted);
    text-transform: uppercase; letter-spacing: .05em;
    margin-bottom: -4px;
}
.filter-panel {
    background: var(--card); border: 1px solid var(--line);
    border-radius: var(--radius-sm); padding: 16px;
}
.filter-panel--important { border-color: rgba(102,126,234,.25); }
.filter-panel-head {
    display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; margin-bottom: 12px;
}
.filter-panel-title { font-size: 15px; font-weight: 700; color: var(--ink); }
.filter-panel-sub { margin-top: 2px; font-size: 13px; color: var(--ink-soft); }
.filter-badge {
    flex-shrink: 0; padding: 4px 10px; border-radius: 999px;
    border: 1px solid rgba(255,209,102,.3);
    background: rgba(255,209,102,.08);
    color: #ffd166; font-size: 11px; font-weight: 700;
}

.filter-chips {
    display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 10px;
}
.filter-chips:empty { display: none; }
.filter-chip {
    display: inline-flex; align-items: center; gap: 6px;
    padding: 6px 10px; border-radius: 999px;
    border: 1px solid rgba(102,126,234,.35);
    background: rgba(102,126,234,.14);
    font-size: 12px; font-weight: 600; color: var(--ink);
}
.filter-chip__x {
    display: inline-flex; align-items: center; justify-content: center;
    width: 16px; height: 16px; border: 0; border-radius: 50%;
    background: rgba(255,255,255,.08); color: var(--ink-soft);
    cursor: pointer; font-size: 13px; line-height: 1; padding: 0;
}
.filter-options {
    max-height: 240px; overflow-y: auto;
    border: 1px solid var(--line-2); border-radius: var(--radius-xs);
    background: rgba(255,255,255,.015);
    padding: 4px;
}

.filter-grid {
    display: grid; gap: 14px;
}

/* Checkbox chips */
.checkbox-group { display: flex; flex-wrap: wrap; gap: 6px; }
.chip {
    display: inline-flex; align-items: center; gap: 6px;
    padding: 8px 13px; background: rgba(255,255,255,.035);
    border: 1px solid var(--line); border-radius: 999px;
    font-size: 13px; font-weight: 500; color: var(--ink-soft);
    cursor: pointer; transition: background .15s, border-color .15s, color .15s;
    user-select: none;
}
.chip:hover { background: rgba(255,255,255,.06); border-color: var(--line); }
.chip input { width: 0; height: 0; opacity: 0; position: absolute; }
.chip:has(input:checked) {
    background: rgba(102,126,234,.16); border-color: rgba(102,126,234,.35);
    color: var(--ink);
}

/* ═══ Settings ═══ */
.settings-layout {
    display: flex; flex-direction: column; gap: 20px;
    max-width: var(--maxw); margin: 0 auto; padding: 0 0 48px; width: 100%;
}
.settings-section { display: flex; flex-direction: column; gap: 10px; }
.settings-section-title {
    font-family: 'Unbounded', sans-serif;
    font-size: 12px; font-weight: 600; color: var(--muted);
    text-transform: uppercase; letter-spacing: .04em;
}
.settings-card {
    background: var(--card); border: 1px solid var(--line);
    border-radius: var(--radius-sm); padding: 16px;
    display: flex; flex-direction: column; gap: 14px;
}
.settings-card--sub {
    cursor: pointer; flex-direction: row; align-items: center;
    position: relative; overflow: hidden;
    background: linear-gradient(135deg, rgba(102,126,234,.12), rgba(118,75,162,.06));
    border-color: rgba(102,126,234,.25);
}
.settings-card--sub::before {
    content: ''; position: absolute; inset: 10px auto 10px 0;
    width: 3px; border-radius: 0 999px 999px 0; background: var(--gradient);
}
.settings-sub-icon {
    width: 40px; height: 40px; border-radius: 10px;
    background: rgba(102,126,234,.12); border: 1px solid rgba(102,126,234,.22);
    display: grid; place-items: center; font-size: 20px; flex-shrink: 0;
}
.settings-sub-body { flex: 1; min-width: 0; }
.settings-sub-title { font-weight: 700; font-size: 14px; color: var(--ink); }
.settings-sub-desc { font-size: 12px; color: var(--ink-soft); margin-top: 2px; }
.settings-pill {
    padding: 5px 10px; border-radius: 999px;
    background: rgba(102,126,234,.1); border: 1px solid rgba(102,126,234,.22);
    color: var(--accent3); font-size: 11px; font-weight: 700; white-space: nowrap;
}
.settings-arrow { font-size: 18px; color: var(--ink-soft); line-height: 1; flex-shrink: 0; }

.settings-field { display: flex; flex-direction: column; gap: 6px; }

.toggle-row {
    display: flex; align-items: center; justify-content: space-between; gap: 12px;
}
.toggle-label { font-size: 15px; font-weight: 600; color: var(--ink); }
.toggle-desc { font-size: 12px; color: var(--muted); line-height: 1.4; margin-top: 2px; }

.settings-account-row { display: flex; align-items: center; gap: 10px; }
.settings-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--muted); flex-shrink: 0; }
.settings-dot.on { background: var(--mint); box-shadow: 0 0 6px rgba(52,211,153,.45); }
.settings-dot.off { background: var(--danger); }
.settings-account-details {
    padding: 12px; border: 1px solid var(--line);
    border-radius: var(--radius-xs); background: rgba(255,255,255,.03);
}
.settings-line {
    display: flex; align-items: center; justify-content: space-between;
    gap: 12px; padding: 6px 0; font-size: 13px; color: var(--muted);
}
.settings-line strong { color: var(--ink); text-align: right; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.settings-warning {
    padding: 8px 10px; border-radius: var(--radius-xs);
    background: rgba(245,180,90,.1); color: var(--warning); font-size: 12px; line-height: 1.35;
    margin-top: 8px;
}

/* ═══ Toggle Switch ═══ */
.toggle {
    position: relative; display: inline-block;
    width: 48px; height: 28px; flex-shrink: 0; cursor: pointer;
}
.toggle input { opacity: 0; width: 0; height: 0; }
.toggle-track {
    position: absolute; inset: 0;
    background: rgba(255,255,255,.08);
    border: 1px solid var(--line);
    border-radius: 28px;
    transition: background .25s, border-color .25s;
}
.toggle-thumb {
    content: ''; position: absolute; top: 3px; left: 3px;
    width: 20px; height: 20px; border-radius: 50%; background: #fff;
    transition: transform .25s var(--ease);
    box-shadow: 0 2px 6px rgba(0,0,0,.35);
}
input:checked + .toggle-track {
    background: var(--gradient); border-color: transparent;
}
input:checked + .toggle-track .toggle-thumb { transform: translateX(20px); }
.toggle input:disabled + .toggle-track {
    background: rgba(255,255,255,.04); border-color: rgba(255,255,255,.06);
    cursor: not-allowed;
}
.toggle input:disabled + .toggle-track .toggle-thumb { background: rgba(255,255,255,.4); }

/* ═══ AI Section ═══ */
.ai-status-card {
    display: flex; align-items: center; gap: 12px;
    padding: 16px; border-radius: var(--radius-sm);
    border: 1px solid var(--line); background: var(--card);
}
.ai-dot {
    width: 10px; height: 10px; border-radius: 50%; flex-shrink: 0;
    background: var(--mint); box-shadow: 0 0 0 4px rgba(52,211,153,.1);
}
.ai-status-card.is-down { border-color: rgba(245,103,127,.3); background: rgba(245,103,127,.08); }
.ai-status-card.is-down .ai-dot { background: var(--danger); box-shadow: 0 0 0 4px rgba(245,103,127,.12); }
.ai-status-title { font-size: 15px; font-weight: 700; color: var(--ink); }
.ai-status-desc { font-size: 13px; color: var(--ink-soft); margin-top: 2px; }

.ai-settings {
    background: var(--card); border: 1px solid var(--line);
    border-radius: var(--radius-sm); overflow: hidden;
}
.ai-row {
    display: flex; align-items: center; gap: 12px;
    padding: 14px 16px; border-bottom: 1px solid var(--line-2);
}
.ai-row:last-child { border-bottom: 0; }
.ai-row-icon {
    width: 34px; height: 34px; border-radius: 8px; flex-shrink: 0;
    display: grid; place-items: center;
    background: rgba(102,126,234,.12); font-size: 18px;
}
.ai-row-info { flex: 1; min-width: 0; }
.ai-row-title { font-size: 14px; font-weight: 700; color: var(--ink); }
.ai-row-desc { font-size: 12px; color: var(--ink-soft); margin-top: 2px; line-height: 1.35; }

.ai-letter-profiles {
    margin: 10px; padding: 12px;
    border: 1px solid rgba(102,126,234,.25);
    border-radius: var(--radius-xs); background: rgba(102,126,234,.06);
}
.ai-letter-title { font-size: 13px; font-weight: 700; color: var(--ink); margin-bottom: 10px; }
.ai-letter-grid { display: grid; gap: 8px; }
.ai-letter-opt {
    display: flex; align-items: center; gap: 8px;
    padding: 9px 10px; border: 1px solid var(--line);
    border-radius: var(--radius-xs); background: rgba(255,255,255,.03);
    color: var(--ink-soft); font-size: 13px; font-weight: 600; cursor: pointer;
}
.ai-letter-opt input { accent-color: var(--accent); }
.ai-letter-opt:has(input:checked) {
    border-color: rgba(102,126,234,.6); background: rgba(102,126,234,.14);
    color: var(--ink);
}

.ai-context-card { background: linear-gradient(135deg, rgba(102,126,234,.05), transparent); }
.ai-context-head {
    display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; margin-bottom: 12px;
}
.ai-context-title { font-size: 15px; font-weight: 700; color: var(--ink); }
.ai-context-hint { font-size: 12px; color: var(--ink-soft); margin-top: 2px; line-height: 1.4; }

.ai-context-bar { margin-top: 10px; }
.ai-context-track { height: 6px; border-radius: 999px; background: rgba(255,255,255,.06); overflow: hidden; }
.ai-context-fill { height: 100%; width: 0; border-radius: inherit; background: var(--gradient-mint); transition: width .25s ease; }
.ai-context-meta {
    display: flex; align-items: center; justify-content: space-between;
    margin-top: 6px; font-size: 12px; color: var(--ink-soft);
}

/* ═══ Reminders ═══ */
.reminders-layout {
    display: flex; flex-direction: column; gap: 14px;
    max-width: var(--maxw); margin: 0 auto; padding: 0 0 48px; width: 100%;
}
.reminders-hero {
    display: flex; align-items: center; gap: 14px;
    padding: 16px;
    border: 1px solid rgba(102,126,234,.28);
    border-radius: var(--radius-sm);
    background: linear-gradient(135deg, rgba(102,126,234,.1), rgba(118,75,162,.06)), var(--card);
}
.reminders-hero-icon {
    width: 44px; height: 44px; border-radius: 10px; flex-shrink: 0;
    display: grid; place-items: center;
    background: rgba(102,126,234,.12); border: 1px solid rgba(102,126,234,.2);
    font-size: 22px;
}
.reminders-hero-title { font-size: 15px; font-weight: 700; color: var(--ink); }
.reminders-hero-text { font-size: 13px; color: var(--ink-soft); margin-top: 2px; line-height: 1.4; }
.reminders-rules {
    display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px;
}
.reminders-rule {
    text-align: center; padding: 14px 8px;
    border: 1px solid var(--line); border-radius: var(--radius-xs);
    background: var(--card-glass);
}
.reminders-rule span { display: block; font-size: 20px; line-height: 1; color: var(--accent3); }
.reminders-rule b { display: block; margin-top: 8px; font-size: 13px; color: var(--ink); }
.reminders-rule small { display: block; margin-top: 4px; font-size: 11px; color: var(--muted); }

/* ═══ Buttons ═══ */
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    font-family: inherit; font-size: 15px; font-weight: 600;
    padding: 13px 20px; border-radius: var(--radius-xs);
    border: 0; cursor: pointer;
    transition: transform .12s, box-shadow .15s, background .15s, opacity .15s;
    text-align: center; line-height: 1;
}
.btn:active { transform: scale(.98); }
.btn:disabled { opacity: .5; cursor: not-allowed; transform: none; }

.btn--primary {
    background: var(--gradient); color: #fff;
    box-shadow: 0 8px 24px -12px rgba(102,126,234,.5);
}
.btn--primary:hover { box-shadow: 0 12px 30px -12px rgba(102,126,234,.65); }

.btn--ghost {
    background: var(--card-glass); border: 1px solid var(--line);
    color: var(--ink-soft);
}
.btn--ghost:hover { background: rgba(255,255,255,.06); border-color: var(--line); color: var(--ink); }

.btn--danger {
    background: rgba(245,103,127,.12); border: 1px solid rgba(245,103,127,.3);
    color: var(--danger);
}
.btn--danger:hover { background: rgba(245,103,127,.18); }
.btn--danger-ghost {
    background: transparent; border: 1px solid rgba(245,103,127,.3);
    color: var(--danger);
}

.btn--sm {
    font-size: 13px; font-weight: 700; padding: 8px 14px;
    background: var(--gradient); color: #fff; border-radius: var(--radius-xs);
}
.btn--sm:disabled { background: rgba(102,126,234,.1); border: 1px solid rgba(102,126,234,.2); color: var(--accent3); opacity: 1; cursor: default; }

.btn--accent {
    background: rgba(102,126,234,.12); border: 1px solid rgba(102,126,234,.3);
    color: var(--accent3);
}

.btn--icon {
    width: 42px; height: 42px; padding: 0;
    background: rgba(255,255,255,.04); border: 1px solid var(--line);
    border-radius: var(--radius-xs); font-size: 18px;
}

.full-width { width: 100%; }

/* ═══ Form Fields ═══ */
.field-label { display: block; font-size: 13px; font-weight: 600; color: var(--ink-soft); margin-bottom: 6px; }
.field-input, .field-textarea {
    width: 100%;
    background: rgba(255,255,255,.04);
    border: 1px solid var(--line);
    border-radius: var(--radius-xs);
    padding: 12px 14px;
    font-size: 15px; color: var(--ink);
    font-family: inherit; outline: none;
    transition: border-color .18s, background .18s;
    -webkit-appearance: none;
}
.field-input:focus, .field-textarea:focus {
    border-color: rgba(102,126,234,.5);
    background: rgba(102,126,234,.06);
}
.field-input::placeholder, .field-textarea::placeholder { color: var(--muted); }
.field-textarea { resize: vertical; min-height: 110px; line-height: 1.5; }

.hint-text { font-size: 12px; color: var(--muted); line-height: 1.45; }
.hint--warn { color: var(--warning); }

.auth-captcha-image {
    display: block; width: 100%; max-height: 180px; object-fit: contain;
    margin: 10px 0; padding: 10px;
    border-radius: var(--radius-xs);
    border: 1px solid var(--line); background: rgba(255,255,255,.9);
}

/* ═══ Modal ═══ */
.modal {
    position: fixed; inset: 0; z-index: 9999;
    background: rgba(0,0,0,.6);
    backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
    display: flex; align-items: center; justify-content: center;
    padding: 20px; overflow-y: auto;
    animation: modal-fade .2s ease-out;
}
@keyframes modal-fade { from{opacity:0} to{opacity:1} }
.modal-box {
    background: rgba(20,20,36,.97);
    backdrop-filter: var(--blur); -webkit-backdrop-filter: var(--blur);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    max-width: 420px; width: 100%;
    max-height: 85vh; overflow-y: auto;
    box-shadow: var(--shadow-lg);
    animation: modal-pop .28s var(--ease);
}
@keyframes modal-pop { from{opacity:0;transform:scale(.94) translateY(8px)} to{opacity:1;transform:scale(1) translateY(0)} }
.modal-head {
    display: flex; justify-content: space-between; align-items: center;
    padding: 18px 22px 14px; border-bottom: 1px solid var(--line);
}
.modal-head h3 { font-family: 'Unbounded', sans-serif; font-size: 16px; font-weight: 600; color: var(--ink); }
.modal-x {
    width: 32px; height: 32px; background: none; border: none;
    font-size: 20px; color: var(--muted); cursor: pointer; border-radius: var(--radius-xs);
    display: grid; place-items: center; font-family: inherit;
}
.modal-x:hover { background: rgba(255,255,255,.05); color: var(--ink); }
.modal-body { padding: 18px 22px 22px; display: flex; flex-direction: column; gap: 12px; }
.modal-actions { display: flex; gap: 10px; }
.modal-actions .btn { flex: 1; }

/* ═══ Toast ═══ */
.toast-container {
    position: fixed; bottom: 24px; left: 50%; transform: translateX(-50%);
    z-index: 10001; display: flex; flex-direction: column; gap: 8px;
    pointer-events: none; max-width: min(400px, calc(100vw - 32px));
}
.toast {
    padding: 13px 18px; border-radius: var(--radius-xs);
    font-size: 14px; font-weight: 600; line-height: 1.4;
    pointer-events: auto;
    animation: toast-in .22s var(--ease);
    backdrop-filter: var(--blur); -webkit-backdrop-filter: var(--blur);
    box-shadow: var(--shadow);
}
.toast--hide { opacity: 0; transform: translateY(8px); transition: opacity .25s, transform .25s; }
.toast--ok { background: rgba(52,211,153,.12); border: 1px solid rgba(52,211,153,.28); color: var(--mint); }
.toast--err { background: rgba(245,103,127,.12); border: 1px solid rgba(245,103,127,.28); color: var(--danger); }
.toast--info { background: rgba(102,126,234,.12); border: 1px solid rgba(102,126,234,.28); color: var(--accent3); }
@keyframes toast-in { from{opacity:0;transform:translateY(16px)} to{opacity:1;transform:translateY(0)} }

/* ═══ Referral ═══ */
.referral-hero { text-align: center; padding: 24px 18px; }
.referral-hero-icon { font-size: 40px; margin-bottom: 10px; }
.referral-hero-title { font-size: 18px; font-weight: 700; color: var(--ink); margin-bottom: 6px; }
.referral-hero-sub { font-size: 14px; color: var(--ink-soft); }
.referral-progress { display: grid; gap: 12px; }
.referral-progress-head { display: flex; align-items: center; justify-content: space-between; gap: 14px; }
.referral-progress-head > div { display: grid; gap: 4px; }
.referral-progress-head b { color: var(--ink); font-size: 14px; }
.referral-progress-head span { color: var(--ink-soft); font-size: 12px; }
.referral-progress-head strong { color: var(--accent3); font-size: 20px; }
.referral-progress-track { height: 9px; overflow: hidden; border-radius: 999px; background: rgba(255,255,255,.08); }
.referral-progress-track span { display: block; width: 0; height: 100%; border-radius: inherit; background: var(--gradient-primary); transition: width .25s ease; }
.referral-progress-note { color: var(--ink-soft); font-size: 12px; line-height: 1.45; }
.referral-rules { display: grid !important; gap: 7px; }
.referral-rules b { color: var(--ink); font-size: 14px; }
.referral-rules span { color: var(--ink-soft); font-size: 12.5px; line-height: 1.45; }
.referral-rules small { color: var(--muted); font-size: 11.5px; line-height: 1.45; }
.ref-link-label { font-size: 12px; color: var(--muted); text-transform: uppercase; letter-spacing: .04em; margin-bottom: 8px; }
.ref-link-row { display: flex; gap: 8px; margin-bottom: 12px; }
.ref-link-input {
    flex: 1; background: rgba(255,255,255,.04);
    border: 1px solid var(--line); border-radius: var(--radius-xs);
    color: var(--ink); font-size: 13px; padding: 10px 12px; outline: none; user-select: all;
}
.ref-list-title { font-size: 13px; color: var(--muted); text-transform: uppercase; letter-spacing: .04em; margin-bottom: 10px; }
.ref-list-items { display: flex; flex-direction: column; gap: 6px; }
.ref-list-empty { color: var(--ink-soft); font-size: 13px; text-align: center; padding: 14px; }
.ref-row,
.referral-list-row { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 10px 12px; background: rgba(255,255,255,.025); border-radius: var(--radius-xs); }
.ref-row-name { color: var(--ink); font-size: 14px; font-weight: 500; }
.ref-badge { font-size: 11px; padding: 4px 10px; border-radius: 999px; background: rgba(255,255,255,.06); color: var(--ink-soft); }
.ref-badge--paid { background: rgba(52,211,153,.14); color: var(--mint); }

/* ═══ More Sheet (mobile) ═══ */
.more-sheet { display: none; }
.more-sheet[hidden] { display: none; }

/* ═══ Tabbar (mobile) ═══ */
.tabbar { display: none; }

/* ═══════════════════════════════════════════════════════════════════
   Responsive
   ═══════════════════════════════════════════════════════════════════ */

@media (max-width: 1024px) {
    .dash-grid {
        grid-template-columns: minmax(0, 1fr);
    }
    .dash-col--side { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
    .dash-tiles { grid-template-columns: repeat(2, 1fr); }
    .screen-content, .filters-layout, .settings-layout, .reminders-layout {
        padding-left: 20px; padding-right: 20px;
    }
    .screen-header { padding-left: 20px; padding-right: 20px; }
}

@media (max-width: 900px) {
    .sidebar { display: none; }
    .topbar { padding: 0 16px; }
    .topbar-menu-btn { display: block; }

    .tabbar {
        display: flex; position: fixed; left: 0; right: 0; bottom: 0; z-index: 95;
        height: calc(var(--tabbar-h) + env(safe-area-inset-bottom, 0px));
        padding-bottom: env(safe-area-inset-bottom, 0px);
        background: rgba(10,10,20,.94);
        backdrop-filter: var(--blur); -webkit-backdrop-filter: var(--blur);
        border-top: 1px solid var(--line);
    }
    .tab {
        flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px;
        background: none; border: 0; cursor: pointer; color: var(--muted);
        font-family: inherit; font-size: 10px; font-weight: 600; padding: 6px 2px;
        transition: color .15s;
    }
    .tab.is-active { color: var(--accent); }
    .tab-ic { width: 22px; height: 22px; }
    .tab-ic svg { width: 22px; height: 22px; }

    .more-sheet { display: block; position: fixed; inset: 0; z-index: 9000; }
    .more-backdrop { position: absolute; inset: 0; background: rgba(0,0,0,.55); }
    .more-panel {
        position: absolute; left: 0; right: 0; bottom: 0;
        background: var(--bg2); border-top: 1px solid var(--line);
        border-radius: 18px 18px 0 0; padding: 10px 14px calc(18px + env(safe-area-inset-bottom));
        transform: translateY(100%); transition: transform .25s ease;
    }
    .more-sheet.is-open .more-panel { transform: none; }
    .more-handle { width: 40px; height: 4px; border-radius: 999px; background: var(--line); margin: 4px auto 14px; }
    .more-item {
        display: flex; align-items: center; gap: 14px; width: 100%;
        padding: 14px 12px; border: 0; background: none; cursor: pointer;
        color: var(--ink); font-family: inherit; font-size: 15px; font-weight: 600; text-align: left;
        border-radius: var(--radius-xs);
    }
    .more-item:hover { background: var(--card-glass); }
    .more-item .nav-ic { color: var(--accent); }

    .screen-content, .filters-layout, .settings-layout, .reminders-layout {
        padding-bottom: calc(var(--tabbar-h) + env(safe-area-inset-bottom, 0px) + 20px);
    }
}

@media (max-width: 640px) {
    .dash-grid { padding-left: 14px; padding-right: 14px; }
    .screen-content, .filters-layout, .settings-layout, .reminders-layout {
        padding-left: 14px; padding-right: 14px;
    }
    .screen-header { padding-left: 14px; padding-right: 14px; padding-top: 14px; padding-bottom: 12px; }
    .page-title { font-size: 18px; }
    .dash-col--side { grid-template-columns: 1fr; }
    .dash-tiles { grid-template-columns: repeat(2, 1fr); }
    .dash-tile { padding: 14px; }
    .dash-tile-val { font-size: 22px; }
    .stats-row--4 { grid-template-columns: repeat(2, 1fr); }
    .reminders-rules { grid-template-columns: 1fr; }
    .auth-card { padding: 28px 20px 24px; }
    .auth-title { font-size: 22px; }
    .dash-quick-grid { grid-template-columns: repeat(2, 1fr); }
    .topbar-page-title { font-size: 14px; }
    .filter-grid { grid-template-columns: 1fr; }
}

/* ═══ Reduced motion ═══ */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: .001s !important;
        transition-duration: .001s !important;
    }
}

/* Production cabinet UI audit fixes — 2026-07-27. */
#feed-screen .screen-content { width: min(100%, 960px); }
#feed-screen .tg-vac-cats { display:flex; align-items:center; flex-wrap:wrap; }
#feed-screen .tg-vac-chip { display:inline-flex; align-items:center; justify-content:center; gap:6px; min-height:44px; }
#feed-screen .tg-plane-logo:not(.tg-plane-logo--title) { display:block; width:16px; height:16px; flex:0 0 16px; }
#feed-list.feed-deck { min-height:302px; }
#feed-list.feed-deck .feed-item { height:284px; min-height:284px; }
#feed-list .tg-vac-company,
#feed-list .feed-snippet,
#activity-screen :is(.activity-day,.activity-time,.activity-sub) { color:#a3adc2; }
#feed-list .feed-snippet { margin-top:8px; }
#feed-list .feed-snippet-toggle { min-width:88px; min-height:44px; }
#feed-list img { display:block; width:40px; height:40px; border:1px solid var(--line-2); border-radius:9px; background:linear-gradient(145deg,rgba(124,58,237,.22),rgba(37,99,235,.14)); object-fit:contain; }
#activity-screen .screen-content { width:min(100%,1120px); }
.filters-side #filters-active-summary,
.filters-side #filters-active-summary > *,
.selected-filter-chip__text { overflow:visible; text-overflow:clip; white-space:normal; }
.selected-filter-chip__text { overflow-wrap:anywhere; }
.stats-chart-legend { color:#a3adc2; font-size:13px; }
#st-chart { height:190px !important; }
.settings-layout.wc-page { display:block !important; columns:2; column-gap:16px; column-fill:balance; }
.settings-layout.wc-page > .product-page-head { column-span:all; margin:0 0 16px; }
.settings-layout.wc-page > .settings-card { break-inside:avoid; margin:0 0 16px; }
.settings-layout.wc-page > .btn.full-width { column-span:all; width:max-content; min-width:220px; }

/* Apply funnel: explicit loading, data, empty, and error states. */
.funnel-section { padding:20px; border:1px solid var(--line); border-radius:var(--radius-sm); background:var(--panel); }
.funnel-head { display:flex; align-items:baseline; justify-content:space-between; gap:16px; margin-bottom:14px; }
.funnel-title { margin:0; color:var(--ink); font-size:18px; }
.funnel-hint { color:#a3adc2; font-size:12px; }
.funnel-stages { display:flex; gap:8px; margin-bottom:14px; overflow-x:auto; scrollbar-width:thin; }
.funnel-stage { display:inline-flex; align-items:center; gap:7px; min-height:38px; flex:0 0 auto; border:1px solid var(--line-2); color:#c5cede; background:rgba(255,255,255,.025); }
.funnel-stage.active { border-color:rgba(167,139,250,.5); color:#fff; background:rgba(124,58,237,.18); }
.funnel-stage-count { min-width:22px; padding:2px 6px; border-radius:999px; background:rgba(255,255,255,.08); color:inherit; font-size:11px; text-align:center; }
#funnel-list { display:grid; gap:8px; }
.funnel-loading { display:grid; gap:8px; color:#a3adc2; font-size:12px; }
.funnel-loading .skeleton { height:72px; margin:0; }
.funnel-card { display:grid; grid-template-columns:minmax(0,1fr) auto; align-items:center; gap:18px; min-height:72px; padding:14px 16px; border:1px solid var(--line); border-radius:12px; background:rgba(255,255,255,.025); }
.funnel-card:hover { border-color:rgba(167,139,250,.34); background:rgba(124,58,237,.06); }
.funnel-card__body { min-width:0; }
.funnel-card__title { display:block; overflow:hidden; color:var(--ink); font-size:14px; font-weight:700; text-decoration:none; text-overflow:ellipsis; white-space:nowrap; }
a.funnel-card__title:hover { color:var(--accent3); }
.funnel-card__company { margin-top:4px; color:#a3adc2; font-size:12px; }
.funnel-card__meta { display:flex; align-items:center; gap:10px; color:#8d98ad; font-size:11px; }
.funnel-card__stage { padding:4px 8px; border-radius:999px; color:#c4b5fd; background:rgba(124,58,237,.14); }
.funnel-card__stage--offer { color:#86efac; background:rgba(34,197,94,.13); }
.funnel-card__stage--rejected { color:#fda4af; background:rgba(244,63,94,.12); }
#funnel-more { margin-top:12px; }

.notice--neutral { margin-top:10px; padding:14px 16px; border:1px solid rgba(148,163,184,.24); border-radius:var(--radius-sm); background:rgba(148,163,184,.08); color:#cbd5e1; font-size:14px; line-height:1.5; }
.reminders-progress { margin-top:12px; }
.reminders-progress.is-empty { border-color:rgba(148,163,184,.24); background:rgba(148,163,184,.06); box-shadow:none; }
.reminders-progress.is-empty .reminders-progress__pulse { background:#94a3b8; box-shadow:none; }
.reminders-progress.is-empty .reminders-progress__fill { width:0 !important; box-shadow:none; }

@media (max-width:900px) {
    #feed-screen .screen-content,
    #activity-screen .screen-content { width:100%; }
    #feed-list.feed-deck { min-height:318px; }
    #feed-list.feed-deck .feed-item { height:300px; min-height:300px; }
    .selected-filter-chip,.chip,.filter-badge { min-height:44px; box-sizing:border-box; }
    .selected-filter-chip { padding-block:6px; border-radius:14px; }
    .selected-filter-chip__remove { width:44px; height:44px; margin-block:-6px; margin-right:-8px; flex:0 0 44px; }
    .settings-layout.wc-page { columns:1; }
}
@media (max-width:680px) {
    .funnel-section { padding:14px; }
    .funnel-head { display:block; }
    .funnel-hint { display:block; margin-top:5px; }
    .funnel-stage { min-height:44px; }
    .funnel-card { grid-template-columns:1fr; gap:10px; }
    .funnel-card__title { overflow:visible; white-space:normal; }
    .funnel-card__meta { justify-content:space-between; }
    .reminders-progress__meta { flex-wrap:wrap; gap:6px 12px; }
}

/* ═══ Dark-theme compat (already dark) ═══ */
body.dark-theme { }

/* Landing-style dashboard refresh */
.dashboard-landing {
    padding-top: 28px !important;
    max-width: 1240px;
}
.cab-hero {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 1.15fr) minmax(360px, .85fr);
    gap: clamp(22px, 3vw, 42px);
    min-height: 430px;
    padding: clamp(28px, 4vw, 54px);
    overflow: hidden;
    border: 1px solid rgba(255,255,255,.10);
    border-radius: 34px;
    background:
        radial-gradient(circle at 16% 0%, rgba(102,126,234,.22), transparent 34%),
        radial-gradient(circle at 88% 18%, rgba(118,75,162,.20), transparent 32%),
        linear-gradient(145deg, rgba(19,19,38,.92), rgba(10,10,20,.74));
    box-shadow: var(--shadow-lg);
    isolation: isolate;
}
.cab-hero::before {
    content: '';
    position: absolute;
    inset: 1px;
    border-radius: 33px;
    pointer-events: none;
    background: linear-gradient(135deg, rgba(255,255,255,.12), transparent 28%, rgba(167,141,232,.10));
    mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
    -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
    padding: 1px;
    -webkit-mask-composite: xor;
    mask-composite: exclude;
}
.cab-hero-glow {
    position: absolute;
    width: 520px;
    height: 520px;
    right: -180px;
    top: -210px;
    border-radius: 50%;
    background: rgba(102,126,234,.24);
    filter: blur(90px);
    z-index: -1;
}
.cab-hero-copy {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 22px;
    min-width: 0;
}
.cab-eyebrow {
    display: inline-flex;
    width: max-content;
    align-items: center;
    gap: 9px;
    padding: 9px 14px;
    border: 1px solid rgba(255,255,255,.10);
    border-radius: 999px;
    background: rgba(255,255,255,.045);
    color: var(--ink-soft);
    font-size: 13px;
    font-weight: 800;
    letter-spacing: .01em;
}
.cab-live-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--mint);
    box-shadow: 0 0 0 6px rgba(52,211,153,.12), 0 0 22px rgba(52,211,153,.6);
}
.cab-hero h1 {
    max-width: 760px;
    margin: 0;
    font-family: 'Unbounded', sans-serif;
    font-size: clamp(32px, 4.8vw, 64px);
    line-height: .98;
    letter-spacing: -.055em;
    color: var(--ink);
}
.cab-hero p {
    max-width: 660px;
    margin: 0;
    color: var(--ink-soft);
    font-size: clamp(15px, 1.35vw, 18px);
    line-height: 1.65;
}
.cab-hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 8px;
}
.cab-primary-btn,
.cab-secondary-btn {
    min-height: 48px;
    padding: 0 22px;
    border-radius: 999px;
    font-family: 'Manrope', sans-serif;
    font-size: 14px;
    font-weight: 900;
    border: 1px solid rgba(255,255,255,.12);
    transition: transform .22s var(--ease), border-color .22s, background .22s, box-shadow .22s;
}
.cab-primary-btn {
    background: var(--gradient);
    color: #fff;
    box-shadow: 0 18px 44px -22px rgba(102,126,234,.95);
}
.cab-secondary-btn {
    background: rgba(255,255,255,.045);
    color: var(--ink);
}
.cab-primary-btn:hover,
.cab-secondary-btn:hover {
    transform: translateY(-2px);
    border-color: rgba(167,141,232,.38);
}
.cab-hero-panel {
    align-self: center;
    display: grid;
    gap: 14px;
    padding: 14px;
    border: 1px solid rgba(255,255,255,.10);
    border-radius: 28px;
    background: rgba(10,10,20,.42);
    backdrop-filter: blur(18px);
    box-shadow: 0 28px 80px -48px rgba(0,0,0,.88);
}
.cab-status-card,
.cab-bento-card,
.cab-progress-strip {
    position: relative;
    border: 1px solid rgba(255,255,255,.09);
    background: linear-gradient(180deg, rgba(255,255,255,.055), rgba(255,255,255,.025));
    box-shadow: 0 24px 70px -52px rgba(0,0,0,.9);
    backdrop-filter: blur(16px);
}
.cab-status-card {
    border-radius: 22px;
    padding: 16px;
}
.cab-auto-card .dash-auto-apply { padding: 0; }
.cab-hero-metrics {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
}
.cab-hero-metrics .dash-tile,
.dashboard-landing .dash-tile {
    min-height: 104px;
    padding: 18px;
    border-radius: 22px;
    background: rgba(255,255,255,.045);
    border: 1px solid rgba(255,255,255,.075);
}
.cab-hero-metrics .dash-tile-val {
    font-size: clamp(28px, 3vw, 42px);
}
.cab-progress-strip {
    margin-top: 18px;
    padding: 22px;
    border-radius: 28px;
}
.cab-mini-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 24px;
    padding: 0 10px;
    border-radius: 999px;
    background: rgba(52,211,153,.10);
    border: 1px solid rgba(52,211,153,.22);
    color: var(--mint);
    font-size: 11px;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: .06em;
}
.cab-bento {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 16px;
    margin-top: 18px;
}
.cab-bento-card {
    grid-column: span 3;
    min-height: 220px;
    padding: 22px;
    border-radius: 28px;
    overflow: hidden;
}
.cab-bento-card--wide { grid-column: span 4; }
.cab-bento-card--tall { grid-column: span 2; grid-row: span 2; }
.cab-bento-card--accent {
    grid-column: span 4;
    min-height: 250px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-end;
    gap: 14px;
    background:
        radial-gradient(circle at 16% 0%, rgba(52,211,153,.13), transparent 34%),
        radial-gradient(circle at 90% 0%, rgba(102,126,234,.22), transparent 38%),
        linear-gradient(145deg, rgba(19,19,38,.92), rgba(10,10,20,.72));
}
.cab-bento-card--accent h3 {
    margin: 0;
    max-width: 560px;
    font-family: 'Unbounded', sans-serif;
    font-size: clamp(24px, 2.6vw, 40px);
    line-height: 1.05;
    letter-spacing: -.045em;
}
.cab-bento-card--accent p {
    max-width: 560px;
    margin: 0;
    color: var(--ink-soft);
    line-height: 1.55;
}
.cab-bento-kicker {
    color: var(--mint);
    font-size: 12px;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: .1em;
}
.dashboard-landing .dash-quick-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}
.dashboard-landing .dash-quick-card {
    min-height: 86px;
    justify-content: flex-start;
    padding: 16px;
    border-radius: 20px;
    background: rgba(255,255,255,.045);
    border: 1px solid rgba(255,255,255,.075);
}
.dashboard-landing .dash-quick-card:hover {
    transform: translateY(-2px);
    background: rgba(102,126,234,.11);
    border-color: rgba(167,141,232,.34);
}
.dashboard-landing .dash-quick-card-icon {
    width: 42px;
    height: 42px;
    font-size: 20px;
    border-radius: 14px;
    background: rgba(102,126,234,.16);
}
.dashboard-landing .dash-profile-card,
.dashboard-landing .dash-activity-item {
    border-radius: 18px;
    background: rgba(255,255,255,.04);
    border-color: rgba(255,255,255,.07);
}

@media (max-width: 1120px) {
    .cab-hero { grid-template-columns: 1fr; }
    .cab-hero-panel { align-self: stretch; }
    .cab-bento-card,
    .cab-bento-card--wide,
    .cab-bento-card--accent { grid-column: span 6; }
    .cab-bento-card--tall { grid-column: span 6; grid-row: auto; }
}
@media (max-width: 720px) {
    .dashboard-landing { padding-top: 16px !important; }
    .cab-hero { padding: 22px; border-radius: 26px; min-height: 0; }
    .cab-hero h1 { font-size: clamp(30px, 10vw, 42px); }
    .cab-hero-actions { flex-direction: column; }
    .cab-primary-btn,
    .cab-secondary-btn { width: 100%; }
    .cab-hero-metrics { grid-template-columns: 1fr; }
    .cab-bento { grid-template-columns: 1fr; gap: 12px; }
    .cab-bento-card,
    .cab-bento-card--wide,
    .cab-bento-card--tall,
    .cab-bento-card--accent { grid-column: auto; border-radius: 22px; }
    .dashboard-landing .dash-quick-grid { grid-template-columns: 1fr; }
}


/* Full cabinet redesign layer */
.wc-page,
.screen-content.wc-page,
.filters-layout.wc-page,
.settings-layout.wc-page,
.reminders-layout.wc-page {
    padding-top: 28px !important;
    padding-bottom: 72px;
    max-width: 1240px;
    margin-inline: auto;
    gap: 18px;
}
.wc-page-hero {
    position: relative;
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 24px;
    min-height: 220px;
    padding: clamp(24px, 3vw, 38px);
    overflow: hidden;
    border-radius: 32px;
    border: 1px solid rgba(255,255,255,.10);
    background:
        radial-gradient(circle at 12% 0%, rgba(102,126,234,.20), transparent 36%),
        radial-gradient(circle at 96% 24%, rgba(118,75,162,.17), transparent 32%),
        linear-gradient(145deg, rgba(19,19,38,.90), rgba(10,10,20,.70));
    box-shadow: var(--shadow-lg);
    isolation: isolate;
}
.wc-page-hero::before {
    content: '';
    position: absolute;
    inset: auto -12% -52% 46%;
    height: 220px;
    border-radius: 50%;
    background: rgba(102,126,234,.18);
    filter: blur(86px);
    z-index: -1;
}
.wc-page-hero::after {
    content: '';
    position: absolute;
    inset: 1px;
    border-radius: 31px;
    pointer-events: none;
    background: linear-gradient(135deg, rgba(255,255,255,.13), transparent 30%, rgba(167,141,232,.10));
    mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
    -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
    padding: 1px;
    -webkit-mask-composite: xor;
    mask-composite: exclude;
}
.wc-page-kicker {
    display: inline-flex;
    align-items: center;
    width: max-content;
    margin-bottom: 14px;
    padding: 8px 12px;
    border-radius: 999px;
    border: 1px solid rgba(255,255,255,.10);
    background: rgba(255,255,255,.045);
    color: var(--accent3);
    font-size: 12px;
    font-weight: 900;
    letter-spacing: .08em;
    text-transform: uppercase;
}
.wc-page-hero h1 {
    max-width: 780px;
    margin: 0;
    font-family: 'Unbounded', sans-serif;
    font-size: clamp(28px, 3.8vw, 52px);
    line-height: 1.02;
    letter-spacing: -.052em;
    color: var(--ink);
}
.wc-page-hero p {
    max-width: 680px;
    margin: 14px 0 0;
    color: var(--ink-soft);
    font-size: 16px;
    line-height: 1.62;
}
.wc-page-hero--ai { background: radial-gradient(circle at 12% 0%, rgba(167,141,232,.24), transparent 36%), linear-gradient(145deg, rgba(19,19,38,.94), rgba(10,10,20,.72)); }
.wc-page-hero--filters { background: radial-gradient(circle at 14% 0%, rgba(52,211,153,.16), transparent 34%), radial-gradient(circle at 90% 18%, rgba(102,126,234,.18), transparent 34%), linear-gradient(145deg, rgba(19,19,38,.93), rgba(10,10,20,.72)); }
.wc-page-hero--referral { background: radial-gradient(circle at 14% 0%, rgba(245,180,90,.16), transparent 34%), radial-gradient(circle at 90% 18%, rgba(102,126,234,.18), transparent 34%), linear-gradient(145deg, rgba(19,19,38,.93), rgba(10,10,20,.72)); }

.screen:not(#screen-dashboard) .stats-row,
.filters-layout .filter-grid,
.settings-layout,
.reminders-layout {
    gap: 16px;
}
.stats-row {
    display: grid;
    gap: 16px;
}
.stats-row--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.stats-row--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.stat-card,
.settings-card,
.filter-panel,
.card,
.ai-status-card,
.ai-row,
.reminders-hero,
.reminders-card,
.referral-hero,
.stats-chart-wrap,
#apply-status,
#apply-results > *,
#reminders-result > * {
    border: 1px solid rgba(255,255,255,.09) !important;
    background: linear-gradient(180deg, rgba(255,255,255,.055), rgba(255,255,255,.025)) !important;
    border-radius: 26px !important;
    box-shadow: 0 24px 70px -54px rgba(0,0,0,.92);
    backdrop-filter: blur(16px);
}
.stat-card {
    min-height: 128px;
    padding: 22px !important;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    overflow: hidden;
    position: relative;
}
.stat-card::before {
    content: '';
    position: absolute;
    width: 120px;
    height: 120px;
    right: -44px;
    top: -48px;
    border-radius: 50%;
    background: rgba(102,126,234,.15);
    filter: blur(22px);
}
.stat-val {
    position: relative;
    font-family: 'Unbounded', sans-serif;
    font-size: clamp(30px, 4vw, 48px) !important;
    line-height: 1;
    letter-spacing: -.05em;
    color: var(--ink) !important;
}
.stat-lbl {
    position: relative;
    margin-top: 10px;
    color: var(--ink-soft) !important;
    font-size: 13px !important;
    font-weight: 800 !important;
    text-transform: uppercase;
    letter-spacing: .06em;
}
.settings-card,
.filter-panel,
.card {
    padding: 22px !important;
}
.filter-panel-title,
.settings-section-title,
.toggle-label,
.ai-row-title,
.ref-list-title,
.dash-card-title {
    font-family: 'Unbounded', sans-serif;
    letter-spacing: -.02em;
    color: var(--ink) !important;
}
.filter-panel-title,
.settings-section-title { font-size: 16px !important; }
.filter-panel-sub,
.toggle-desc,
.ai-row-desc,
.hint-text,
.settings-sub-desc,
.referral-hero-sub {
    color: var(--ink-soft) !important;
    line-height: 1.5;
}
.field-input,
.field-textarea,
.ref-link-input,
select.field-input {
    min-height: 48px;
    border-radius: 16px !important;
    border: 1px solid rgba(255,255,255,.10) !important;
    background: rgba(255,255,255,.045) !important;
    color: var(--ink) !important;
    box-shadow: inset 0 1px 0 rgba(255,255,255,.04);
    transition: border-color .22s, background .22s, box-shadow .22s;
}
.field-input:focus,
.field-textarea:focus,
.ref-link-input:focus {
    border-color: rgba(167,141,232,.45) !important;
    background: rgba(255,255,255,.065) !important;
    box-shadow: 0 0 0 4px rgba(102,126,234,.10);
}
.btn,
.segmented-opt,
.chip,
.filter-badge,
.ai-letter-opt,
.dash-profile-btn {
    border-radius: 999px !important;
    font-weight: 900 !important;
}
.btn--primary,
.btn--accent,
.onboarding-next,
.channel-gate-check {
    background: var(--gradient) !important;
    color: #fff !important;
    box-shadow: 0 18px 44px -24px rgba(102,126,234,.95);
}
.btn--ghost,
.segmented,
.segmented-opt,
.chip,
.filter-badge,
.ai-letter-opt {
    border: 1px solid rgba(255,255,255,.09) !important;
    background: rgba(255,255,255,.045) !important;
    color: var(--ink-soft) !important;
}
.segmented {
    width: max-content;
    max-width: 100%;
    padding: 5px;
    border-radius: 999px !important;
}
.segmented-opt.active,
.chip.active,
.filter-badge.active,
.ai-letter-opt.is-active,
.ai-letter-opt.active {
    background: rgba(102,126,234,.20) !important;
    border-color: rgba(167,141,232,.38) !important;
    color: var(--ink) !important;
}
.filters-summary {
    position: relative;
    overflow: hidden;
    border-radius: 28px !important;
    border: 1px solid rgba(255,255,255,.09) !important;
    background: linear-gradient(135deg, rgba(52,211,153,.10), rgba(102,126,234,.08)) !important;
    box-shadow: var(--shadow);
}
.filters-count {
    font-family: 'Unbounded', sans-serif;
    background: rgba(52,211,153,.12) !important;
    border: 1px solid rgba(52,211,153,.24);
    color: var(--mint) !important;
}
.filter-options,
.checkbox-group,
.filter-chips {
    gap: 10px !important;
}
.toggle-row,
.settings-field,
.settings-account-row,
.action-row {
    border-radius: 18px;
}
.toggle-track {
    background: rgba(255,255,255,.10) !important;
    border: 1px solid rgba(255,255,255,.08);
}
.toggle input:checked + .toggle-track,
input:checked + .toggle-track {
    background: var(--gradient-mint) !important;
}
.ai-status-card {
    padding: 24px !important;
    background: radial-gradient(circle at 90% 0%, rgba(167,141,232,.16), transparent 32%), linear-gradient(180deg, rgba(255,255,255,.055), rgba(255,255,255,.025)) !important;
}
.ai-row {
    padding: 18px !important;
    align-items: center;
}
.ai-row-icon,
.settings-sub-icon,
.referral-hero-icon {
    border-radius: 18px;
    background: rgba(102,126,234,.16) !important;
    box-shadow: inset 0 1px 0 rgba(255,255,255,.08);
}
.reminders-hero,
.referral-hero {
    padding: 28px !important;
    text-align: left !important;
    background: radial-gradient(circle at 100% 0%, rgba(52,211,153,.12), transparent 36%), linear-gradient(180deg, rgba(255,255,255,.055), rgba(255,255,255,.025)) !important;
}
.referral-hero-title,
.reminders-hero-title {
    font-family: 'Unbounded', sans-serif;
    font-size: clamp(22px, 2.5vw, 34px) !important;
    letter-spacing: -.04em;
}
.ref-link-row {
    align-items: stretch;
}
.ref-link-row .btn { min-height: 48px; }
.stats-chart-wrap {
    padding: 24px !important;
}
#apply-status:empty,
#apply-results:empty,
#reminders-result:empty { display: none; }
#apply-status {
    padding: 18px !important;
    margin-bottom: 0 !important;
}
#apply-debug-view {
    border-radius: 26px !important;
}
.modal-box,
.onboarding-card,
.channel-gate-card {
    border-radius: 28px !important;
    border: 1px solid rgba(255,255,255,.10) !important;
    background: rgba(19,19,38,.94) !important;
    box-shadow: var(--shadow-lg) !important;
    backdrop-filter: blur(20px);
}
.topbar,
.sidebar,
.tabbar {
    background: rgba(10,10,20,.78) !important;
    backdrop-filter: blur(22px) saturate(150%);
    -webkit-backdrop-filter: blur(22px) saturate(150%);
}
.sidebar {
    border-right-color: rgba(255,255,255,.08) !important;
}
.nav-item,
.sidebar-plan,
.topbar-status {
    border-radius: 16px !important;
}
.nav-item.is-active {
    background: rgba(102,126,234,.16) !important;
    color: var(--ink) !important;
}
.nav-item.is-active::before { background: linear-gradient(180deg, var(--accent3), var(--accent)); }

@media (max-width: 900px) {
    .wc-page,
    .screen-content.wc-page,
    .filters-layout.wc-page,
    .settings-layout.wc-page,
    .reminders-layout.wc-page {
        padding-left: 16px !important;
        padding-right: 16px !important;
        padding-top: 16px !important;
    }
    .wc-page-hero {
        min-height: 0;
        flex-direction: column;
        align-items: flex-start;
        padding: 22px;
        border-radius: 26px;
    }
    .wc-page-hero h1 { font-size: clamp(28px, 9vw, 40px); }
    .stats-row--2,
    .stats-row--4 { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 560px) {
    .stats-row--2,
    .stats-row--4 { grid-template-columns: 1fr; }
    .stat-card { min-height: 112px; }
    .segmented { width: 100%; display: grid; grid-template-columns: repeat(3, 1fr); }
    .ref-link-row { flex-direction: column; }
}


/* Clean product UI redesign */
:root {
    --bg: #0b1020;
    --bg2: #0f172a;
    --card: #111827;
    --card-hover: #172033;
    --card-glass: rgba(255,255,255,.045);
    --ink: #f8fafc;
    --ink-soft: #cbd5e1;
    --muted: #64748b;
    --line: rgba(148,163,184,.18);
    --line-2: rgba(148,163,184,.10);
    --accent: #7c3aed;
    --accent2: #2563eb;
    --accent3: #a78bfa;
    --mint: #10b981;
    --danger: #fb7185;
    --warning: #f59e0b;
    --gradient: linear-gradient(135deg, #7c3aed, #2563eb);
    --gradient-head: linear-gradient(120deg, #f8fafc 0%, #c4b5fd 55%, #93c5fd 100%);
    --gradient-mint: linear-gradient(135deg, #10b981, #2563eb);
    --shadow: 0 18px 45px rgba(0,0,0,.26);
    --shadow-lg: 0 30px 80px rgba(0,0,0,.34);
    --radius: 20px;
    --radius-sm: 14px;
    --radius-xs: 12px;
}
body {
    background:
        radial-gradient(circle at 12% -8%, rgba(124,58,237,.16), transparent 30%),
        radial-gradient(circle at 92% 8%, rgba(37,99,235,.12), transparent 28%),
        var(--bg);
}
.ambient-orb,
.grain-overlay { opacity: .35; }
.sidebar {
    width: 248px;
    background: rgba(15,23,42,.78) !important;
    border-right: 1px solid var(--line) !important;
    box-shadow: 10px 0 40px rgba(0,0,0,.16);
}
.sidebar-brand {
    height: 68px;
    padding: 0 16px;
}
.sidebar-mark {
    width: 36px;
    height: 36px;
    border-radius: 12px;
    box-shadow: 0 10px 26px rgba(124,58,237,.28);
}
.nav-item {
    height: 44px;
    padding: 0 12px;
    border-radius: 12px !important;
    color: #94a3b8;
}
.nav-item:hover {
    background: rgba(148,163,184,.08) !important;
    color: #e2e8f0 !important;
}
.nav-item.is-active {
    background: rgba(124,58,237,.16) !important;
    color: #fff !important;
    box-shadow: inset 0 0 0 1px rgba(167,139,250,.18);
}
.nav-item.is-active::before { display: none; }
.topbar {
    height: 64px;
    background: rgba(11,16,32,.72) !important;
    border-bottom: 1px solid var(--line);
}
.topbar-page-title {
    font-size: 15px;
    letter-spacing: 0;
}
.topbar-status {
    height: 38px;
    border-radius: 999px !important;
    background: rgba(15,23,42,.72) !important;
}
.screen-content,
.wc-page,
.screen-content.wc-page,
.filters-layout.wc-page,
.settings-layout.wc-page,
.reminders-layout.wc-page {
    max-width: 1180px;
    padding-top: 22px !important;
    padding-bottom: 56px;
    gap: 16px;
}
.product-dashboard {
    max-width: 1180px;
    padding-top: 22px !important;
}
.product-overview {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 360px;
    gap: 16px;
    min-height: 0;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
}
.product-overview::before,
.product-overview-bg,
.product-overview-glow { display: none; }
.product-overview-copy {
    min-height: 240px;
    padding: 26px;
    border: 1px solid var(--line);
    border-radius: 24px;
    background: linear-gradient(180deg, rgba(17,24,39,.92), rgba(15,23,42,.86));
    box-shadow: var(--shadow);
    justify-content: space-between;
}
.product-eyebrow {
    width: max-content;
    height: 28px;
    padding: 0 10px;
    border-radius: 999px;
    border: 1px solid rgba(167,139,250,.22);
    background: rgba(124,58,237,.12);
    color: #c4b5fd;
    font-size: 12px;
    font-weight: 800;
}
.product-live-dot {
    width: 7px;
    height: 7px;
    background: var(--mint);
    box-shadow: 0 0 0 4px rgba(16,185,129,.12);
}
.product-overview h1 {
    max-width: 620px;
    margin: 20px 0 0;
    font-family: 'Unbounded', sans-serif;
    font-size: clamp(28px, 3.2vw, 44px);
    line-height: 1.08;
    letter-spacing: -.04em;
}
.product-overview p {
    max-width: 620px;
    margin: 12px 0 0;
    color: #94a3b8;
    font-size: 15px;
    line-height: 1.55;
}
.product-actions,
.product-overview-actions {
    display: flex;
    gap: 10px;
    margin-top: 22px;
}
.product-primary-btn,
.product-secondary-btn,
.btn {
    min-height: 42px;
    padding: 0 16px;
    border-radius: 12px !important;
    font-size: 13px;
    font-weight: 800 !important;
    transition: transform .16s ease, background .16s ease, border-color .16s ease;
}
.product-primary-btn,
.btn--primary,
.btn--accent {
    background: var(--gradient) !important;
    color: #fff !important;
    border: 0 !important;
    box-shadow: 0 14px 30px rgba(37,99,235,.22) !important;
}
.product-secondary-btn,
.btn--ghost {
    background: rgba(148,163,184,.08) !important;
    color: #e2e8f0 !important;
    border: 1px solid var(--line) !important;
}
.product-primary-btn:hover,
.product-secondary-btn:hover,
.btn:hover { transform: translateY(-1px); }
.product-overview-panel,
.product-side-panel {
    display: grid;
    gap: 12px;
    padding: 0;
    background: transparent;
    border: 0;
    box-shadow: none;
}
.product-status-card,
.product-progress-strip,
.product-card,
.product-grid-card,
.stat-card,
.settings-card,
.filter-panel,
.card,
.ai-status-card,
.ai-row,
.reminders-hero,
.reminders-card,
.referral-hero,
.stats-chart-wrap {
    border: 1px solid var(--line) !important;
    background: rgba(17,24,39,.82) !important;
    border-radius: 18px !important;
    box-shadow: var(--shadow) !important;
    backdrop-filter: blur(12px);
}
.product-status-card {
    padding: 16px;
}
.product-metrics,
.product-overview-metrics {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
}
.product-metrics .dash-tile,
.product-overview-metrics .dash-tile,
.dashboard-landing .dash-tile,
.product-dashboard .dash-tile {
    min-height: 92px;
    padding: 14px;
    border-radius: 16px;
    background: rgba(15,23,42,.74);
    border: 1px solid var(--line-2);
}
.dash-tile-val,
.stat-val {
    font-family: 'Unbounded', sans-serif;
    font-size: clamp(24px, 3vw, 36px) !important;
    letter-spacing: -.04em;
}
.dash-tile-label,
.stat-lbl {
    margin-top: 7px;
    color: #94a3b8 !important;
    font-size: 11px !important;
    font-weight: 800 !important;
    text-transform: uppercase;
    letter-spacing: .06em;
}
.product-progress-strip {
    margin-top: 0;
    padding: 18px;
}
.product-grid {
    display: grid;
    grid-template-columns: 1.2fr .8fr;
    gap: 16px;
    margin-top: 0;
}
.product-card,
.product-grid-card {
    min-height: 0;
    padding: 18px;
    overflow: hidden;
}
.product-card--wide,
.product-grid-card--wide { grid-column: 1; }
.product-card--tall,
.product-grid-card--tall { grid-column: 2; grid-row: span 2; }
.product-card--accent,
.product-grid-card--accent {
    grid-column: 1;
    min-height: 170px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    background: linear-gradient(180deg, rgba(30,41,59,.88), rgba(17,24,39,.84)) !important;
}
.product-kicker,
.product-grid-kicker,
.product-page-kicker {
    color: #a78bfa;
    font-size: 11px;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: .08em;
}
.product-card--accent h3,
.product-grid-card--accent h3 {
    margin: 8px 0 0;
    font-family: 'Unbounded', sans-serif;
    font-size: 24px;
    line-height: 1.12;
    letter-spacing: -.035em;
}
.product-card--accent p,
.product-grid-card--accent p {
    margin: 8px 0 16px;
    color: #94a3b8;
    line-height: 1.5;
}
.product-page-head {
    min-height: 0;
    padding: 18px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    border: 1px solid var(--line);
    border-radius: 18px;
    background: rgba(17,24,39,.82);
    box-shadow: var(--shadow);
}
.product-page-head::before,
.product-page-head::after { display: none; }
.product-page-head h1 {
    margin: 4px 0 0;
    font-family: 'Unbounded', sans-serif;
    font-size: clamp(22px, 2.2vw, 30px);
    line-height: 1.15;
    letter-spacing: -.035em;
}
.product-page-head p {
    margin: 6px 0 0;
    color: #94a3b8;
    font-size: 14px;
    line-height: 1.45;
}
.stats-row { gap: 12px; }
.stats-row--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.stats-row--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.stat-card {
    min-height: 104px;
    padding: 16px !important;
}
.stat-card::before { display: none; }
.settings-card,
.filter-panel,
.card,
.stats-chart-wrap { padding: 18px !important; }
.filter-panel-title,
.settings-section-title,
.toggle-label,
.ai-row-title,
.ref-list-title,
.dash-card-title {
    font-family: 'Manrope', sans-serif;
    font-size: 14px !important;
    font-weight: 900;
    letter-spacing: 0;
}
.field-input,
.field-textarea,
.ref-link-input,
select.field-input {
    min-height: 44px;
    border-radius: 12px !important;
    border: 1px solid var(--line) !important;
    background: rgba(15,23,42,.72) !important;
}
.field-input:focus,
.field-textarea:focus,
.ref-link-input:focus {
    border-color: rgba(124,58,237,.52) !important;
    box-shadow: 0 0 0 3px rgba(124,58,237,.14) !important;
}
.segmented {
    padding: 4px;
    background: rgba(15,23,42,.72) !important;
    border: 1px solid var(--line) !important;
    border-radius: 12px !important;
}
.segmented-opt {
    min-height: 34px;
    border-radius: 9px !important;
}
.segmented-opt.active,
.chip.active,
.filter-badge.active,
.ai-letter-opt.active,
.ai-letter-opt.is-active {
    background: rgba(124,58,237,.18) !important;
    border-color: rgba(167,139,250,.32) !important;
}
.filters-summary {
    border-radius: 18px !important;
    background: rgba(17,24,39,.82) !important;
    border: 1px solid var(--line) !important;
    box-shadow: var(--shadow) !important;
}
.filters-count {
    background: rgba(16,185,129,.12) !important;
    color: #34d399 !important;
}
.ai-row,
.toggle-row,
.settings-field,
.settings-account-row,
.action-row,
.dash-profile-card,
.dash-activity-item {
    background: rgba(15,23,42,.54) !important;
    border: 1px solid var(--line-2) !important;
    border-radius: 14px !important;
}
.reminders-hero,
.referral-hero {
    text-align: left !important;
    padding: 20px !important;
}
.referral-hero-title,
.reminders-hero-title {
    font-family: 'Unbounded', sans-serif;
    font-size: 24px !important;
    letter-spacing: -.035em;
}
.modal-box,
.onboarding-card,
.channel-gate-card {
    background: #111827 !important;
    border: 1px solid var(--line) !important;
    border-radius: 20px !important;
}
@media (max-width: 1100px) {
    .product-overview,
    .product-grid { grid-template-columns: 1fr; }
    .product-card--wide,
    .product-grid-card--wide,
    .product-card--tall,
    .product-grid-card--tall,
    .product-card--accent,
.product-grid-card--accent { grid-column: auto; grid-row: auto; }
}
@media (max-width: 900px) {
    .screen-content,
    .wc-page,
    .screen-content.wc-page,
    .filters-layout.wc-page,
    .settings-layout.wc-page,
    .reminders-layout.wc-page,
    .product-dashboard {
        padding: 14px 14px 84px !important;
    }
    .product-overview-copy,
    .product-page-head { border-radius: 16px; padding: 16px; }
    .product-overview h1 { font-size: 28px; }
    .product-page-head { align-items: flex-start; flex-direction: column; }
    .product-actions,
.product-overview-actions { flex-direction: column; }
    .product-primary-btn,
    .product-secondary-btn { width: 100%; }
    .stats-row--4 { grid-template-columns: repeat(2, 1fr); }
    .product-metrics,
.product-overview-metrics { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
    .stats-row--2,
    .stats-row--4 { grid-template-columns: 1fr; }
}


/* ═══════════════════════════════════════════════════════════════════
   Июльские компоненты в стилистике июньского product UI
   (элементы, появившиеся после июньского редизайна)
   ═══════════════════════════════════════════════════════════════════ */

/* Токен-мост для библиотеки миниаппа (styles.css / modern-menu.css):
   её компоненты (tier-card, funnel-*, sub-card, primary-action-btn)
   красятся переменными миниаппа — переводим их на июньскую гамму. */
:root {
    --gradient-primary: var(--gradient);
    --border-accent: rgba(124,58,237,.35);
    --shadow-accent: 0 10px 28px rgba(124,58,237,.28);
}
.primary-action-btn:hover { box-shadow: 0 14px 40px rgba(124,58,237,.35); }

/* Бейдж-«таблетка» в шапках экранов — в духе June .product-eyebrow */
.product-mini-badge {
    display: inline-flex;
    align-items: center;
    width: max-content;
    min-height: 26px;
    padding: 0 10px;
    border-radius: 999px;
    border: 1px solid rgba(167,139,250,.22);
    background: rgba(124,58,237,.12);
    color: #c4b5fd;
    font-size: 11px;
    font-weight: 800;
}

/* Список профилей на дашборде (карточки стилизует июньский слой) */
.dash-profiles-list { display: flex; flex-direction: column; gap: 10px; }

/* ═══ Конструктор резюме (июльский экран) ═══ */
.resume-builder-page { display: grid; gap: 16px; }
.resume-builder-card { display: grid; gap: 12px; }
.resume-builder-row-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.resume-builder-textarea { min-height: 128px; }
.resume-builder-preview {
    white-space: pre-wrap;
    margin: 0;
    padding: 14px;
    border-radius: var(--radius-xs);
    border: 1px solid var(--line);
    background: rgba(15,23,42,.72);
    color: var(--ink);
    font: inherit;
    font-size: 13px;
    line-height: 1.5;
}
.resume-builder-review { display: grid; gap: 12px; margin-top: 4px; }
.resume-builder-actions { display: flex; gap: 10px; flex-wrap: wrap; justify-content: flex-end; }
.resume-builder-inline-fields { display: grid; grid-template-columns: minmax(0, 1fr) 92px; gap: 10px; }
.resume-builder-textarea--compact { min-height: 84px; }
.resume-builder-readiness {
    display: grid;
    gap: 8px;
    padding: 14px;
    border: 1px solid var(--line-2);
    border-radius: var(--radius-sm);
    background: rgba(15,23,42,.54);
}
.resume-builder-readiness-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; font-size: 13px; color: var(--ink); }
.resume-builder-readiness-top span { color: var(--accent3); font-weight: 800; }
.resume-builder-readiness-bar { height: 8px; border-radius: 999px; background: rgba(148,163,184,.14); overflow: hidden; }
.resume-builder-readiness-bar i { display: block; height: 100%; border-radius: inherit; background: var(--gradient); transition: width .2s ease; }
.resume-builder-readiness-missing,
.resume-builder-readiness-ok { color: var(--muted); font-size: 12px; line-height: 1.45; }
.resume-builder-readiness-ok { color: var(--mint); }
.resume-builder-menu { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.resume-builder-menu-item {
    display: grid;
    gap: 5px;
    padding: 14px;
    border: 1px solid var(--line-2);
    border-radius: var(--radius-sm);
    background: rgba(15,23,42,.54);
    color: var(--ink);
    text-align: left;
    cursor: pointer;
    transition: transform .15s ease, border-color .15s ease, background .15s ease;
}
.resume-builder-menu-item:hover { transform: translateY(-1px); border-color: rgba(167,139,250,.4); background: rgba(124,58,237,.10); }
.resume-builder-menu-item span { font-size: 20px; }
.resume-builder-menu-item b { font-size: 13px; }
.resume-builder-menu-item small { color: var(--muted); font-size: 11px; line-height: 1.35; }
.resume-builder-primary-card { border-color: rgba(124,58,237,.45); background: linear-gradient(135deg, rgba(124,58,237,.14), rgba(15,23,42,.5)); }
.resume-builder-details { padding: 0; overflow: hidden; }
.resume-builder-details > summary { list-style: none; cursor: pointer; padding: 14px 16px; display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.resume-builder-details > summary::-webkit-details-marker { display: none; }
.resume-builder-details > summary::after { content: '⌄'; color: var(--muted); transition: transform .18s ease; }
.resume-builder-details[open] > summary::after { transform: rotate(180deg); }
.resume-builder-details > summary small { color: var(--muted); font-size: 11px; text-align: right; }
.resume-builder-details > :not(summary) { margin: 0 16px 16px; }
[data-rb-mode-panel][hidden] { display: none; }
.resume-builder-menu-item.is-active {
    border-color: rgba(167,139,250,.55);
    background: linear-gradient(135deg, rgba(124,58,237,.22), rgba(37,99,235,.14));
    box-shadow: 0 10px 24px rgba(124,58,237,.16);
}
.resume-builder-menu-item.is-active b { color: var(--accent3); }
@media (max-width: 720px) {
    .resume-builder-row-head { align-items: flex-start; flex-direction: column; }
    .resume-builder-ai-btn { width: 100%; }
    .resume-builder-actions { width: 100%; }
    .resume-builder-actions .btn { flex: 1; }
}
@media (max-width: 520px) {
    .resume-builder-menu { grid-template-columns: 1fr; }
    .resume-builder-details > summary { align-items: flex-start; }
    .resume-builder-details > summary small { text-align: left; }
}

/* ═══ Miniapp styles.css neutralization ═══
   styles.css миниаппа подключён ПЕРВЫМ как библиотека компонентов
   (sub-card, tier-card, funnel-*, ai-history-*, empty-state, модалки —
   app.js рендерит эти классы и в кабинете). Его layout-правила рассчитаны
   на мобильный WebView (fixed-экраны от --tg-viewport-height) — гасим их,
   компонентные оставляем. */
.screen {
    position: absolute;
    inset: 0;
    height: auto;
    scroll-padding-top: 0;
    scroll-padding-bottom: 0;
}
.screen-header {
    position: static;
    min-height: 0;
    background: transparent;
    border-bottom: 0;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
}
/* В миниаппе высота модалки прибита к --tg-viewport-height (стареет при
   ресайзе окна браузера) — в вебе тянемся inset'ом */
.modal { height: auto; }
#app { min-height: 0; }
/* Тосты и copy-toast позиционирует styles.css (fixed) — контейнер кабинета
   не должен задавать свои координаты повторно */

/* ═══ Shell states (wc-rail / wc-noshell / wc-sidebar-open) ═══
   Body-классы тогглит web-cabinet.js. Ширину rail задаёт базовый слой
   (body.wc-rail .sidebar); здесь — только то, чего в базе нет. */
/* Кнопку «развернуть» в rail-режиме НЕ прячем — иначе состояние необратимо */
body.wc-rail .sidebar-collapse { display: grid; }
body.wc-rail .sidebar-collapse svg { transform: rotate(180deg); }

body.wc-noshell .sidebar,
body.wc-noshell .topbar,
body.wc-noshell .tabbar { display: none; }

@media (max-width: 900px) {
    body.wc-sidebar-open .sidebar {
        display: flex;
        position: fixed;
        top: 0; left: 0; bottom: 0;
        width: min(300px, 84vw);
        z-index: 900;
        box-shadow: 24px 0 60px rgba(0,0,0,.5);
    }
    /* Бэкдроп без лишнего DOM: затемняем main-area */
    body.wc-sidebar-open .main-area::after {
        content: '';
        position: fixed; inset: 0;
        background: rgba(0,0,0,.55);
        z-index: 800;
    }
}

.sidebar-foot { display: flex; flex-direction: column; gap: 8px; }
.sidebar-logout { background: transparent; }
.sidebar-logout:hover { border-color: rgba(251,113,133,.4); color: var(--danger); }
body.wc-rail .sidebar-logout { justify-content: center; padding: 10px; }

/* ═══ Настройки: экспорт/импорт + режим разработчика (паритет миниаппа) ═══ */
.settings-data-actions { display: flex; gap: 10px; flex-wrap: wrap; }
.settings-data-actions .btn { flex: 1 1 200px; }
.settings-import-label { text-align: center; cursor: pointer; }

/* ═══ Ровные вкладки (июль-2026): masonry настроек и колонки фильтров.
   Единую ширину контента (1180px) задаёт июньский product-UI слой. ═══ */

/* Настройки: CSS-колонки (masonry) вместо грида — карточки держат свою
   высоту, дыр между рядами нет по построению */
.settings-layout.wc-page {
    display: block;
    columns: 2;
    column-gap: 16px;
}
.settings-layout.wc-page > .product-page-head {
    column-span: all;
    margin: 0 0 16px;
}
.settings-layout.wc-page > .settings-card {
    break-inside: avoid;
    margin: 0 0 16px;
}
.settings-layout.wc-page > .btn.full-width {
    column-span: all;
    width: max-content;
    min-width: 220px;
}

/* Фильтры: настоящие колонки через обёртки из web-cabinet.js */
.filters-layout.wc-page {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 300px;
    gap: 16px;
    align-items: start;
}
.filters-layout.wc-page > .product-page-head { grid-column: 1 / -1; }
.filters-main { display: flex; flex-direction: column; gap: 16px; min-width: 0; }
.filters-side { display: flex; flex-direction: column; gap: 16px; position: sticky; top: 80px; min-width: 0; }
/* Длинный чип не должен распирать грид-трек шире вьюпорта */
.filters-side #filters-active-summary,
.filters-side #filters-active-summary > * { max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

@media (max-width: 980px) {
    .settings-layout.wc-page { columns: 1; }
    .filters-layout.wc-page { grid-template-columns: 1fr; }
    /* Сводка+чипсы над панелями, как до обёрток (order работает и в гриде) */
    .filters-layout.wc-page > .product-page-head { order: -2; }
    .filters-side { position: static; order: -1; }
}

/* ═══════════════════════════════════════════════════════════════════
   Launch polish — web cabinet
   One restrained visual layer for desktop, tablet and mobile.
   ═══════════════════════════════════════════════════════════════════ */
:root {
    --bg: #090e1b;
    --bg2: #0d1424;
    --card: #111a2b;
    --card-hover: #172238;
    --card-glass: rgba(255, 255, 255, .045);
    --ink: #f7f8fc;
    --ink-soft: #c8d0df;
    --muted: #8290a6;
    --line: rgba(155, 169, 192, .16);
    --line-2: rgba(155, 169, 192, .09);
    --accent: #927fff;
    --accent2: #3977f6;
    --accent3: #ad9cfb;
    --mint: #24c994;
    --gradient: linear-gradient(135deg, #7357f6 0%, #3977f6 100%);
    --gradient-head: linear-gradient(120deg, #ffffff 0%, #dcd7ff 58%, #b9d2ff 100%);
    --shadow: 0 16px 42px rgba(0, 0, 0, .22);
    --shadow-lg: 0 28px 80px rgba(0, 0, 0, .34);
    --radius: 18px;
    --radius-sm: 13px;
    --radius-xs: 10px;
    --sidebar-w: 236px;
    --header-h: 64px;
    --maxw: 1200px;
    --font-display: 'Manrope', -apple-system, BlinkMacSystemFont, system-ui, sans-serif;
}

body {
    background:
        radial-gradient(circle at 24% -18%, rgba(115, 87, 246, .12), transparent 31%),
        radial-gradient(circle at 96% 0%, rgba(57, 119, 246, .08), transparent 28%),
        var(--bg);
}
.ambient-orb { opacity: .18; filter: blur(170px); }
.grain-overlay { display: none; }

.sidebar-name,
.topbar-page-title,
.page-title,
.product-overview h1,
.product-page-head h1,
.product-grid-card--accent h3,
.product-card--accent h3,
.dash-tile-val,
.stat-val,
.referral-hero-title,
.reminders-hero-title {
    font-family: 'Manrope', -apple-system, BlinkMacSystemFont, system-ui, sans-serif !important;
}

button,
a,
input,
textarea,
select { -webkit-tap-highlight-color: transparent; }
button:focus-visible,
a:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible,
[tabindex]:focus-visible {
    outline: 3px solid rgba(173, 156, 251, .48) !important;
    outline-offset: 2px;
}
button:disabled,
button[aria-disabled="true"],
input:disabled,
select:disabled {
    cursor: not-allowed !important;
    opacity: .52;
    filter: saturate(.65);
}
[data-instant-apply][hidden] { display: none !important; }

.sidebar {
    width: var(--sidebar-w);
    background: rgba(13, 20, 36, .92) !important;
    box-shadow: none;
}
.sidebar-brand { height: var(--header-h); padding: 0 16px; }
.sidebar-mark {
    width: 34px;
    height: 34px;
    border-radius: 10px;
    font-family: 'Manrope', sans-serif;
    font-size: 12px;
    font-weight: 800;
    box-shadow: 0 8px 24px rgba(74, 82, 240, .22);
}
.sidebar-name { font-size: 16px; font-weight: 800; letter-spacing: -.035em; }
.sidebar-nav { gap: 2px; padding: 10px 9px 14px; }
.nav-section-label {
    padding: 12px 11px 5px;
    color: #64748b;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: .09em;
    line-height: 1;
    text-transform: uppercase;
    white-space: nowrap;
}
.nav-section-label:first-child { padding-top: 4px; }
.nav-item {
    min-height: 38px;
    height: 38px;
    padding: 0 11px;
    gap: 10px;
    border-radius: 10px !important;
    color: #96a3b6;
    font-size: 13px;
    font-weight: 650;
}
.nav-ic,
.nav-ic svg { width: 18px; height: 18px; }
.nav-item:hover { background: rgba(255, 255, 255, .045) !important; }
.nav-item.is-active {
    background: linear-gradient(90deg, rgba(115, 87, 246, .18), rgba(57, 119, 246, .09)) !important;
    box-shadow: inset 0 0 0 1px rgba(173, 156, 251, .15);
}
.sidebar-foot { gap: 6px; padding: 9px; }
.sidebar-plan {
    min-height: 48px;
    padding: 8px 11px;
    border-radius: 11px !important;
    background: rgba(255, 255, 255, .025) !important;
}
.sidebar-plan:hover { background: rgba(255, 255, 255, .05) !important; }
.sidebar-plan-sub { color: #718096; }
body.wc-rail .nav-section-label { display: none; }

.topbar {
    height: var(--header-h);
    padding: 0 24px;
    background: rgba(9, 14, 27, .86) !important;
    backdrop-filter: blur(18px) saturate(130%);
    -webkit-backdrop-filter: blur(18px) saturate(130%);
}
.topbar-page-title { font-size: 15px; font-weight: 750; letter-spacing: -.02em; }
.topbar-status {
    min-height: 34px;
    height: 34px;
    padding: 0 12px;
    font-size: 12px;
    border-radius: 999px !important;
}

.screen { scrollbar-color: rgba(130, 144, 166, .32) transparent; }
.screen { scrollbar-gutter: stable; }
.screen::-webkit-scrollbar { width: 5px; }
.screen::-webkit-scrollbar-thumb { background: rgba(130, 144, 166, .32); }
.screen-content,
.wc-page,
.screen-content.wc-page,
.filters-layout.wc-page,
.settings-layout.wc-page,
.reminders-layout.wc-page,
.product-dashboard {
    max-width: var(--maxw);
    padding-top: 18px !important;
    padding-bottom: 48px;
    gap: 14px;
}

.product-overview {
    grid-template-columns: minmax(0, 1fr) 350px;
    gap: 14px;
}
.product-overview-copy {
    min-height: 248px;
    padding: 26px 28px;
    border-radius: 20px;
    border-color: var(--line);
    background:
        linear-gradient(135deg, rgba(115, 87, 246, .08), transparent 42%),
        rgba(17, 26, 43, .88);
    box-shadow: var(--shadow);
}
.product-eyebrow {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 26px;
    height: 26px;
    padding: 0 9px;
    background: rgba(115, 87, 246, .11);
    color: #c9c0ff;
    font-size: 10px;
    letter-spacing: .025em;
}
.product-live-dot { display: none; }
.product-overview h1 {
    max-width: 650px;
    margin-top: 17px;
    font-size: clamp(34px, 3.1vw, 44px);
    font-weight: 800;
    line-height: 1.04;
    letter-spacing: -.045em;
}
.product-overview p {
    max-width: 680px;
    margin-top: 12px;
    color: #9ca8ba;
    font-size: 14px;
    line-height: 1.55;
}
.product-overview-actions { margin-top: 20px; }
.product-primary-btn,
.product-secondary-btn,
.btn {
    min-height: 44px;
    border-radius: 11px !important;
}
.product-primary-btn,
.btn--primary,
.btn--accent { box-shadow: 0 10px 24px rgba(57, 119, 246, .19) !important; }

.product-overview-panel { gap: 10px; }
.product-status-card,
.product-progress-strip,
.product-card,
.product-grid-card,
.stat-card,
.settings-card,
.filter-panel,
.card,
.ai-status-card,
.ai-row,
.reminders-hero,
.reminders-card,
.referral-hero,
.stats-chart-wrap {
    background: rgba(17, 26, 43, .83) !important;
    border-color: var(--line) !important;
    border-radius: 16px !important;
    box-shadow: 0 12px 34px rgba(0, 0, 0, .16) !important;
}
.product-status-card { padding: 14px; }
.dash-account-avatar {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    box-shadow: 0 7px 20px rgba(115, 87, 246, .2);
}
.dash-account-name,
.dash-auto-apply-title { font-size: 13px; font-weight: 800; }
.dash-account-sub,
.dash-auto-apply-status { font-size: 11px; }
.dash-account-badge { padding: 5px 8px; font-size: 10px; }
.dash-account-link { gap: 6px; }
.dash-account-link svg { width: 16px; height: 16px; flex: 0 0 auto; }
.dash-auto-apply-icon {
    width: 40px;
    height: 40px;
    border-radius: 11px;
    color: #bdb2ff;
    background: rgba(115, 87, 246, .11);
    font-size: 0;
}
.dash-auto-apply-icon svg { width: 20px; height: 20px; }
.product-auto-card .toggle { margin-left: auto; }

.product-overview-metrics { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.product-metrics .dash-tile,
.product-overview-metrics .dash-tile,
.dashboard-landing .dash-tile,
.product-dashboard .dash-tile {
    min-height: 78px;
    padding: 12px;
    border-radius: 13px;
    background: rgba(12, 20, 34, .66);
}
.dash-tile-val,
.stat-val {
    font-size: clamp(24px, 2.7vw, 32px) !important;
    font-weight: 800;
    letter-spacing: -.045em;
}
.dash-tile-label,
.stat-lbl {
    margin-top: 5px;
    font-size: 9px !important;
    letter-spacing: .07em;
}
.product-progress-strip { padding: 15px 17px; }
.dash-progress-track { height: 6px; background: rgba(130, 144, 166, .13); }
.dash-progress-fill { background: var(--gradient); }
.dash-progress-hint { margin-top: 6px; }

.product-grid {
    grid-template-columns: minmax(0, 1.18fr) minmax(320px, .82fr);
    grid-template-areas:
        "tools profiles"
        "activity activity"
        "insight insight";
    gap: 14px;
}
.product-grid > .product-grid-card:nth-child(1) { grid-area: tools; }
.product-grid > .product-grid-card:nth-child(2) { grid-area: profiles; }
.product-grid > .product-grid-card:nth-child(3) { grid-area: activity; }
.product-grid > .product-grid-card:nth-child(4) { grid-area: insight; }
.product-grid-card,
.product-card { padding: 16px; }
.product-grid-card--wide,
.product-grid-card--tall,
.product-grid-card--accent { grid-column: auto; grid-row: auto; }
.dash-card-head { margin-bottom: 12px; }
.dash-quick-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.dash-quick-card {
    min-height: 72px;
    padding: 12px 10px;
    gap: 8px;
    border-radius: 12px;
    background: rgba(12, 20, 34, .56);
    color: #c9d1df;
    font-size: 11px;
    font-weight: 700;
}
.dash-quick-card:hover {
    transform: translateY(-1px);
    background: rgba(115, 87, 246, .08);
    border-color: rgba(173, 156, 251, .25);
}
.dash-quick-card-icon {
    width: 22px;
    height: 22px;
    display: grid;
    place-items: center;
    color: #ad9cfb;
    font-size: 0;
}
.dash-quick-card-icon svg { width: 21px; height: 21px; }
.dash-profile-card,
.dash-act { border-radius: 12px; }
.dash-link,
.dash-profile-btn {
    min-height: 36px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding-inline: 9px;
}
.dash-act-title {
    min-height: 36px;
    display: inline-flex;
    align-items: center;
}
.product-grid-card--accent {
    min-height: 124px;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    grid-template-rows: auto auto 1fr;
    column-gap: 28px;
    align-items: center;
    background:
        linear-gradient(105deg, rgba(115, 87, 246, .12), rgba(57, 119, 246, .055)),
        rgba(17, 26, 43, .83) !important;
}
.product-grid-card--accent .product-grid-kicker,
.product-grid-card--accent h3,
.product-grid-card--accent p { grid-column: 1; }
.product-grid-card--accent h3 {
    margin-top: 5px;
    font-size: 21px;
    font-weight: 800;
}
.product-grid-card--accent p { margin: 5px 0 0; max-width: 720px; }
.product-grid-card--accent .product-secondary-btn { grid-column: 2; grid-row: 1 / 4; }

.product-page-head {
    padding: 17px 19px;
    border-radius: 16px;
    box-shadow: 0 12px 34px rgba(0, 0, 0, .16);
}
.product-page-head h1 {
    font-size: clamp(23px, 2.2vw, 29px);
    font-weight: 800;
    letter-spacing: -.04em;
}
.product-page-head p { color: #95a2b5; }
.product-page-kicker,
.product-grid-kicker { color: #ad9cfb; letter-spacing: .07em; }
.stat-card { min-height: 88px; padding: 14px !important; }
.settings-card,
.filter-panel,
.card,
.stats-chart-wrap { padding: 16px !important; }
.field-input,
.field-textarea,
.ref-link-input,
select.field-input {
    border-color: var(--line) !important;
    background: rgba(9, 16, 29, .6) !important;
}
.hint-text,
.filter-panel-sub,
.settings-field-desc,
.toggle-desc { color: #8492a8 !important; }
.product-mini-badge { color: #c9c0ff; font-size: 10px; }
.ai-row-icon svg,
.ai-history-link-icon svg,
.reminders-hero-icon svg,
.reminders-rule svg,
.settings-sub-icon svg,
.settings-section-title--icon svg {
    width: 20px;
    height: 20px;
    display: block;
}
.ai-row-icon,
.ai-history-link-icon,
.reminders-hero-icon,
.settings-sub-icon { color: #ad9cfb; }
.settings-section-title--icon {
    display: flex;
    align-items: center;
    gap: 8px;
}
.settings-section-title--icon svg { width: 17px; height: 17px; color: #9b8cf3; }
.reminders-rule > span {
    display: grid;
    place-items: center;
    color: #ad9cfb;
}
.reminders-rule svg { width: 19px; height: 19px; }
.ai-status-card.ai-compact-status--down .ai-dot,
.ai-status-card.ai-status-pill--down .ai-dot {
    background: var(--danger);
    box-shadow: 0 0 0 4px rgba(251, 113, 133, .12);
}
.ai-status-card.ai-compact-status--ok .ai-dot,
.ai-status-card.ai-status-pill--ok .ai-dot {
    background: var(--mint);
    box-shadow: 0 0 0 4px rgba(36, 201, 148, .12);
}
.ai-status-card.ai-status-pill--warn .ai-dot {
    background: var(--warning);
    box-shadow: 0 0 0 4px rgba(245, 158, 11, .12);
}

@media (min-width: 721px) and (max-width: 1100px) {
    .product-overview { grid-template-columns: minmax(0, 1fr) 320px; }
    .product-overview-copy { min-height: 238px; padding: 23px; }
    .product-overview h1 { font-size: clamp(31px, 4vw, 39px); }
    .product-overview-actions { flex-direction: row; }
    .product-overview-actions .product-primary-btn,
    .product-overview-actions .product-secondary-btn { width: auto; }
    .product-grid { grid-template-columns: minmax(0, 1.1fr) minmax(300px, .9fr); }
}

@media (max-width: 900px) {
    :root { --header-h: 60px; }
    .topbar { padding: 0 14px; }
    .topbar-menu-btn {
        width: 40px;
        height: 40px;
        display: grid;
        place-items: center;
    }
    .screen-content,
    .wc-page,
    .screen-content.wc-page,
    .filters-layout.wc-page,
    .settings-layout.wc-page,
    .reminders-layout.wc-page,
    .product-dashboard {
        padding: 14px 14px calc(var(--tabbar-h) + env(safe-area-inset-bottom, 0px) + 24px) !important;
    }
    .tabbar {
        border-top-color: rgba(155, 169, 192, .15);
        box-shadow: 0 -14px 34px rgba(0, 0, 0, .24);
    }
    .tab { min-width: 0; min-height: 54px; }
    .tab-ic,
    .tab-ic svg { width: 20px; height: 20px; }
    .tab-label { font-size: 9px; }
}

@media (max-width: 720px) {
    .product-overview,
    .product-grid {
        display: grid;
        grid-template-columns: 1fr;
        grid-template-areas: none;
        gap: 10px;
    }
    .product-grid > .product-grid-card:nth-child(1),
    .product-grid > .product-grid-card:nth-child(2),
    .product-grid > .product-grid-card:nth-child(3),
    .product-grid > .product-grid-card:nth-child(4) { grid-area: auto; }
    .product-overview-copy {
        min-height: 0;
        padding: 20px;
        border-radius: 17px;
    }
    .product-overview h1 { margin-top: 14px; font-size: clamp(29px, 8vw, 36px); }
    .product-overview p { margin-top: 10px; font-size: 13px; }
    .product-overview-actions {
        display: grid;
        grid-template-columns: 1fr 1fr;
        margin-top: 18px;
    }
    .product-overview-actions .product-primary-btn,
    .product-overview-actions .product-secondary-btn { width: 100%; }
    .product-overview-panel { gap: 9px; }
    .product-overview-metrics { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 7px; }
    .product-metrics .dash-tile,
    .product-overview-metrics .dash-tile,
    .dashboard-landing .dash-tile,
    .product-dashboard .dash-tile { min-height: 72px; padding: 11px; }
    .dash-tile-val { font-size: clamp(23px, 7vw, 30px) !important; }
    .product-grid-card--accent {
        display: block;
        min-height: 0;
    }
    .product-grid-card--accent .product-secondary-btn { width: 100%; margin-top: 14px; }
    .product-page-head { padding: 16px; }
    .product-page-head .product-primary-btn { width: 100%; }
    .stats-row--2,
    .stats-row--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .stat-card { min-height: 82px; }
}

@media (max-width: 520px) {
    :root { --header-h: 58px; --tabbar-h: 66px; }
    .topbar { gap: 8px; padding: 0 10px; }
    .topbar-left { gap: 7px; min-width: 0; }
    .topbar-page-title { max-width: 126px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
    .topbar-status { max-width: 158px; padding: 0 10px; }
    #status-text { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
    .screen-content,
    .wc-page,
    .screen-content.wc-page,
    .filters-layout.wc-page,
    .settings-layout.wc-page,
    .reminders-layout.wc-page,
    .product-dashboard {
        padding-left: 10px !important;
        padding-right: 10px !important;
        padding-top: 10px !important;
        gap: 10px;
    }
    .product-overview-copy { padding: 18px; }
    .product-overview h1 { font-size: clamp(28px, 8.3vw, 33px); }
    .product-overview-actions { grid-template-columns: 1fr; gap: 8px; }
    .product-status-card { padding: 12px; }
    .dash-account-avatar { width: 42px; height: 42px; }
    .dash-account-badge span:last-child { display: none; }
    .dash-account-badge { width: 24px; height: 24px; padding: 0; display: grid; place-items: center; }
    .dash-account-badge .dash-dot { margin: 0; }
    .product-overview-metrics { gap: 6px; }
    .product-dashboard .dash-tile { min-height: 68px; padding: 10px 8px; }
    .dash-tile-label { font-size: 8px !important; letter-spacing: .04em; }
    .product-progress-strip { padding: 14px; }
    .dash-progress-hint { display: none; }
    .product-grid-card,
    .product-card,
    .settings-card,
    .filter-panel,
    .card,
    .stats-chart-wrap { padding: 14px !important; }
    .dash-quick-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .dash-quick-card { min-height: 68px; }
    .dash-link,
    .dash-profile-btn,
    .dash-act-title { min-height: 44px; }
    .product-mini-badge { display: none; }
    .stats-row--2,
    .stats-row--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .stat-card { min-height: 78px; padding: 12px !important; }
    .modal-box { width: calc(100% - 20px) !important; border-radius: 18px !important; }
}

/* Final production overrides: these intentionally follow the launch-polish
   layer so generic card rules cannot break native visibility and sizing. */
.screen-content,
.wc-page,
.screen-content.wc-page,
.filters-layout.wc-page,
.settings-layout.wc-page,
.reminders-layout.wc-page,
.product-dashboard {
    padding-inline: clamp(16px, 2vw, 24px);
}

.referral-hero-icon {
    display: inline-grid;
    place-items: center;
    width: 56px;
    height: 56px;
    margin-inline: auto;
    border-radius: 18px;
}

.settings-layout.wc-page {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    columns: initial;
    gap: 16px;
    align-items: start;
}
.settings-layout.wc-page > .product-page-head,
.settings-layout.wc-page > .btn.full-width {
    grid-column: 1 / -1;
}
.settings-layout.wc-page > .settings-card,
.settings-layout.wc-page > .product-page-head {
    margin: 0;
}

.toggle input:focus-visible + .toggle-track,
.settings-card--sub:focus-visible {
    outline: 3px solid rgba(146, 127, 255, .42);
    outline-offset: 3px;
}

.selected-filter-chip__remove {
    min-width: 32px;
    min-height: 32px;
}

.sidebar-collapse,
.modal-x {
    min-width: 44px;
    min-height: 44px;
}

#reminders-send-btn,
#reminders-stop-btn,
#apply-stop-btn,
#raise-resume-btn,
#screen-stats .btn--danger-ghost {
    width: min(100%, 360px);
    align-self: flex-start;
}

@media (max-width: 980px) {
    .settings-layout.wc-page { grid-template-columns: 1fr; }
    .settings-layout.wc-page > * { grid-column: 1; }
}

@media (max-width: 900px) {
    .product-overview,
    .product-grid {
        grid-template-columns: 1fr;
        grid-template-areas: none;
    }
    .product-grid > .product-grid-card:nth-child(1),
    .product-grid > .product-grid-card:nth-child(2),
    .product-grid > .product-grid-card:nth-child(3),
    .product-grid > .product-grid-card:nth-child(4) { grid-area: auto; }
    .more-panel {
        max-height: min(82dvh, 680px);
        overflow-y: auto;
        overscroll-behavior: contain;
    }
    .tab-label { font-size: 11px; }
}

@media (max-width: 720px) {
    .stats-row--3 { grid-template-columns: 1fr; }
}

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

/* ═══════════════════════════════════════════════════════════════════
   Cabinet refinement — clearer hierarchy and calmer interaction.
   This file is loaded by the standalone web cabinet only.
   ═══════════════════════════════════════════════════════════════════ */
:root {
    --muted: #94a1b5;
    --ink-soft: #d0d7e4;
    --surface-raised: rgba(20, 30, 49, .92);
    --surface-soft: rgba(12, 20, 35, .72);
    --line-strong: rgba(173, 186, 207, .22);
}

.sidebar {
    border-right-color: rgba(173, 186, 207, .13) !important;
}
.nav-item {
    position: relative;
    transition: color .18s ease, background-color .18s ease, transform .18s ease;
}
.nav-item:hover {
    color: #dce3ef;
    transform: translateX(2px);
}
.nav-item.is-active {
    color: #fff;
}
.nav-item.is-active::before {
    content: '';
    position: absolute;
    left: 0;
    top: 9px;
    bottom: 9px;
    width: 3px;
    border-radius: 0 4px 4px 0;
    background: linear-gradient(180deg, #a997ff, #4f87ff);
    box-shadow: 0 0 12px rgba(146, 127, 255, .42);
}
.nav-section-label { color: #7d8ba0; }
.sidebar-plan-sub,
.sidebar-logout-sub { color: #8492a8; }

.product-page-head {
    position: relative;
    overflow: hidden;
    padding: 9px 2px 14px;
    border: 0 !important;
    border-bottom: 1px solid rgba(173, 186, 207, .14) !important;
    border-radius: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
}
.product-page-head::after {
    content: '';
    display: block;
    position: absolute;
    inset: auto 0 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(146, 127, 255, .62), rgba(57, 119, 246, .42), transparent);
    pointer-events: none;
}
.product-page-kicker,
.product-grid-kicker { color: #beb3ff; }
.product-page-head p,
.product-overview p { color: #aab5c6; }

.product-status-card,
.product-progress-strip,
.product-card,
.product-grid-card,
.stat-card,
.settings-card,
.filter-panel,
.funnel-section,
.stats-chart-wrap,
.dash-card {
    border-color: rgba(173, 186, 207, .15) !important;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, .018), transparent 52%),
        var(--surface-raised) !important;
}
.product-grid-card,
.product-card,
.stat-card,
.funnel-card,
.dash-quick-card,
.btn,
.product-primary-btn,
.product-secondary-btn,
.segmented-opt,
.chip {
    transition: transform .18s ease, border-color .18s ease, background-color .18s ease, box-shadow .18s ease, color .18s ease;
}

.product-overview-copy {
    border-color: rgba(173, 186, 207, .18);
    background:
        radial-gradient(circle at 90% 8%, rgba(57, 119, 246, .12), transparent 32%),
        linear-gradient(135deg, rgba(115, 87, 246, .1), transparent 44%),
        rgba(17, 26, 43, .92);
}
.product-progress-strip { padding-block: 13px; }
.product-progress-strip .dash-card-head { margin-bottom: 8px; }
.product-overview-metrics .dash-tile,
.product-dashboard .dash-tile {
    border: 1px solid rgba(173, 186, 207, .11);
    background: linear-gradient(180deg, rgba(18, 29, 49, .86), rgba(10, 18, 32, .72));
}
.dash-quick-card {
    min-height: 80px;
    border-color: rgba(173, 186, 207, .13);
    background: linear-gradient(145deg, rgba(19, 30, 50, .86), rgba(11, 19, 34, .72));
}
.dash-quick-card:hover {
    transform: translateY(-2px);
    border-color: rgba(173, 156, 251, .34);
    background: linear-gradient(145deg, rgba(115, 87, 246, .14), rgba(19, 31, 53, .86));
    box-shadow: 0 12px 26px rgba(0, 0, 0, .2);
}
.dash-quick-card-icon {
    width: 30px;
    height: 30px;
    border: 1px solid rgba(173, 156, 251, .18);
    border-radius: 9px;
    background: rgba(115, 87, 246, .1);
}
.dash-quick-card-icon svg { width: 18px; height: 18px; }

.stat-card {
    position: relative;
    overflow: hidden;
    min-height: 92px;
    box-shadow: 0 12px 30px rgba(0, 0, 0, .14) !important;
}
.stat-card::before {
    content: '';
    position: absolute;
    inset: 0 0 auto;
    height: 2px;
    opacity: .76;
    background: linear-gradient(90deg, #927fff, #3977f6);
}
.stats-row .stat-card:nth-child(2)::before { background: linear-gradient(90deg, #2bd39c, #51b9cf); }
.stats-row .stat-card:nth-child(3)::before { background: linear-gradient(90deg, #f46f8c, #b176d8); }
.stats-row .stat-card:nth-child(4)::before { background: linear-gradient(90deg, #f2b65b, #f07871); }
.stat-lbl,
.dash-tile-label { color: #9aa8bc !important; }

.funnel-section {
    padding: 18px !important;
    border-radius: 16px;
    box-shadow: 0 16px 40px rgba(0, 0, 0, .18) !important;
}
.funnel-head { margin-bottom: 16px; }
.funnel-title { font-size: 17px; letter-spacing: -.02em; }
.funnel-hint { color: #93a1b5; }
.funnel-stages {
    gap: 7px;
    margin: 0 -2px 14px;
    padding: 2px 2px 5px;
}
.funnel-stage {
    min-height: 40px;
    padding: 0 12px;
    border-radius: 999px !important;
    border-color: rgba(173, 186, 207, .14);
    background: rgba(9, 16, 29, .58);
    font-weight: 650;
}
.funnel-stage:hover {
    border-color: rgba(173, 156, 251, .28);
    background: rgba(115, 87, 246, .08);
}
.funnel-stage.active {
    border-color: rgba(173, 156, 251, .5);
    background: linear-gradient(135deg, rgba(115, 87, 246, .3), rgba(57, 119, 246, .18));
    box-shadow: 0 8px 20px rgba(76, 66, 173, .2);
}
.funnel-stage-count {
    min-width: 24px;
    padding: 3px 7px;
    background: rgba(255, 255, 255, .09);
    font-variant-numeric: tabular-nums;
}
.funnel-card {
    position: relative;
    overflow: hidden;
    min-height: 76px;
    padding: 15px 17px;
    border-color: rgba(173, 186, 207, .12);
    background: var(--surface-soft);
}
.funnel-card::before {
    content: '';
    position: absolute;
    inset: 12px auto 12px 0;
    width: 2px;
    border-radius: 0 3px 3px 0;
    background: rgba(146, 127, 255, .72);
}
.funnel-card:has(.funnel-card__stage--offer)::before { background: #31cf91; }
.funnel-card:has(.funnel-card__stage--rejected)::before { background: #ec6c86; }
.funnel-card:hover {
    transform: translateY(-1px);
    border-color: rgba(173, 156, 251, .28);
    background: rgba(21, 32, 53, .94);
    box-shadow: 0 10px 24px rgba(0, 0, 0, .16);
}
.funnel-card__company { color: #9ba8ba; }
.funnel-card__meta { color: #929fb2; }
.funnel-card__stage { padding: 5px 9px; font-weight: 700; }

#screen-stats .segmented {
    gap: 4px;
    padding: 4px;
    border-color: rgba(173, 186, 207, .14) !important;
    background: rgba(7, 13, 24, .62) !important;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, .025);
}
#screen-stats .segmented-opt {
    min-height: 36px;
    padding-inline: 18px;
    border-color: transparent !important;
    border-radius: 999px !important;
    background: transparent !important;
}
#screen-stats .segmented-opt.active {
    background: linear-gradient(135deg, rgba(115, 87, 246, .46), rgba(57, 119, 246, .3)) !important;
    box-shadow: 0 6px 16px rgba(64, 68, 179, .24);
}
#screen-stats .stats-chart-wrap {
    padding: 14px 10px 12px !important;
    background:
        radial-gradient(circle at 50% 100%, rgba(57, 119, 246, .07), transparent 44%),
        linear-gradient(180deg, rgba(20, 30, 49, .94), rgba(13, 22, 38, .86)) !important;
}
#screen-stats .stats-chart-legend { color: #a4afbf; }
#st-history-list .st-history-item {
    margin: 0;
    padding: 13px 10px;
    border-color: rgba(173, 186, 207, .1);
    transition: background-color .18s ease;
}
#st-history-list .st-history-item:hover { background: rgba(255, 255, 255, .022); }

.filters-summary {
    border-radius: 16px !important;
    border-color: rgba(52, 211, 153, .18) !important;
    background:
        radial-gradient(circle at 100% 0%, rgba(52, 211, 153, .1), transparent 40%),
        linear-gradient(135deg, rgba(19, 34, 47, .96), rgba(17, 27, 46, .9)) !important;
    box-shadow: 0 14px 34px rgba(0, 0, 0, .17);
}
.filter-potential-panel,
.filter-panel {
    border-color: rgba(173, 186, 207, .14) !important;
}
.filter-panel-title,
.toggle-label,
.settings-section-title { letter-spacing: -.01em; }
.filter-panel-sub,
.settings-field-desc,
.toggle-desc,
.hint-text { color: #96a4b7 !important; }
.field-input,
.field-textarea,
.ref-link-input,
select.field-input {
    border-color: rgba(173, 186, 207, .16) !important;
    background: rgba(7, 14, 26, .68) !important;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, .018);
    transition: border-color .18s ease, box-shadow .18s ease, background-color .18s ease;
}
.field-input:hover,
.field-textarea:hover,
.ref-link-input:hover,
select.field-input:hover { border-color: rgba(173, 186, 207, .26) !important; }
.field-input:focus,
.field-textarea:focus,
.ref-link-input:focus,
select.field-input:focus {
    border-color: rgba(146, 127, 255, .62) !important;
    background: rgba(9, 17, 31, .92) !important;
    box-shadow: 0 0 0 4px rgba(146, 127, 255, .1);
}
.chip:hover {
    transform: translateY(-1px);
    border-color: rgba(173, 156, 251, .28) !important;
}
.chip:has(input:checked) {
    border-color: rgba(146, 127, 255, .42) !important;
    background: linear-gradient(135deg, rgba(115, 87, 246, .2), rgba(57, 119, 246, .11)) !important;
}

.settings-card { gap: 16px; }
.settings-layout.wc-page { display: grid !important; }
.settings-card--sub:hover {
    transform: translateY(-1px);
    border-color: rgba(146, 127, 255, .32) !important;
    box-shadow: 0 16px 34px rgba(0, 0, 0, .2) !important;
}
.toggle-row { min-height: 52px; }
.settings-account-details {
    border-color: rgba(173, 186, 207, .12);
    background: rgba(7, 14, 26, .5);
}
.toggle-track { transition: background .2s ease, border-color .2s ease, box-shadow .2s ease; }
.toggle:hover .toggle-track { border-color: rgba(173, 186, 207, .25); }
.toggle input:checked + .toggle-track { box-shadow: 0 6px 18px rgba(36, 201, 148, .16); }

/* Live-data icon fallbacks. The shared app intentionally emits a neutral
   bullet when an icon is unavailable; the cabinet gives those states a
   meaningful, consistent visual without changing miniapp rendering. */
#feed-list .feed-item .fav-star {
    position: absolute;
    z-index: 5;
    top: 14px;
    right: 14px;
    width: 40px;
    height: 40px;
    display: grid;
    place-items: center;
    padding: 0;
    border: 1px solid rgba(173, 186, 207, .16);
    border-radius: 11px;
    background: rgba(9, 16, 29, .76);
    color: #aab5c6;
    box-shadow: 0 8px 20px rgba(0, 0, 0, .16);
    cursor: pointer;
}
#feed-list .feed-item .fav-star:hover,
#feed-list .feed-item .fav-star:focus-visible {
    border-color: rgba(242, 182, 91, .38);
    background: rgba(242, 182, 91, .09);
    color: #f2c56f;
}
#feed-list .fav-star .ui-emoji { font-size: 0; }
#feed-list .fav-star .ui-emoji::before {
    content: '☆';
    font-size: 22px;
    line-height: 1;
}
#feed-list .fav-star.active {
    border-color: rgba(242, 182, 91, .34);
    background: rgba(242, 182, 91, .11);
    color: #f2c56f;
}
#feed-list .fav-star.active .ui-emoji::before { content: '★'; }

#activity-screen .activity-item:has(.activity-kind--bad) .activity-icon {
    border-color: rgba(244, 111, 140, .18);
    background: rgba(244, 111, 140, .07);
}
#activity-screen .activity-item:has(.activity-kind--bad) .activity-icon .ui-emoji {
    font-size: 0;
}
#activity-screen .activity-item:has(.activity-kind--bad) .activity-icon .ui-emoji::before {
    content: '×';
    color: #f47b94;
    font-size: 21px;
    font-weight: 500;
    line-height: 1;
}
#activity-screen .activity-item:has(.activity-kind--bad) {
    border-left-color: rgba(244, 111, 140, .72) !important;
}
#activity-screen .activity-item:has(.activity-kind--good) {
    border-left-color: rgba(52, 211, 153, .66) !important;
}

/* Contextual action panels: the action and its purpose read as one unit. */
.resume-raise-panel,
.filters-hh-preview {
    border: 1px solid rgba(173, 186, 207, .15);
    border-radius: 16px;
    background:
        radial-gradient(circle at 100% 0%, rgba(57, 119, 246, .1), transparent 42%),
        linear-gradient(145deg, rgba(20, 30, 49, .94), rgba(13, 22, 38, .9));
    box-shadow: 0 12px 30px rgba(0, 0, 0, .14);
}

.resume-raise-panel {
    min-height: 88px;
    display: grid;
    grid-template-columns: 44px minmax(0, 1fr) auto;
    align-items: center;
    gap: 14px;
    padding: 14px 16px;
}
.resume-raise-panel__icon {
    width: 44px;
    height: 44px;
    display: grid;
    place-items: center;
    border: 1px solid rgba(173, 156, 251, .2);
    border-radius: 12px;
    background: rgba(115, 87, 246, .11);
    color: #b9adff;
    font-size: 23px;
    font-weight: 500;
}
.resume-raise-panel__copy,
.filters-hh-preview__copy { min-width: 0; }
.resume-raise-panel__title,
.filters-hh-preview__title {
    color: var(--ink);
    font-size: 14px;
    font-weight: 800;
    line-height: 1.3;
}
.resume-raise-panel__text,
.filters-hh-preview__text {
    margin-top: 4px;
    color: #95a3b6;
    font-size: 12px;
    line-height: 1.4;
}
#raise-resume-btn {
    width: auto !important;
    min-width: 176px;
    min-height: 44px;
    padding-inline: 18px;
    border-radius: 11px !important;
    box-shadow: 0 9px 22px rgba(57, 119, 246, .2) !important;
}

.filters-hh-preview {
    min-height: 100px;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 14px 18px;
    padding: 14px 16px;
}
#filters-open-hh-btn {
    width: auto !important;
    min-width: 190px;
    min-height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 0 16px;
    border: 1px solid rgba(173, 156, 251, .28) !important;
    border-radius: 11px !important;
    background: rgba(115, 87, 246, .11) !important;
    color: #e3defe !important;
    font-size: 13px;
    font-weight: 750;
    box-shadow: none !important;
}
#filters-open-hh-btn::after {
    content: '↗';
    color: #a99cff;
    font-size: 16px;
    line-height: 1;
}
#filters-open-hh-btn:hover {
    border-color: rgba(173, 156, 251, .34) !important;
    background: rgba(115, 87, 246, .09) !important;
    color: #fff !important;
}
.filters-open-hh-status {
    grid-column: 1 / -1;
    margin: -4px 0 0;
}
.filters-open-hh-status:empty { display: none; }

@media (min-width: 981px) {
    .settings-layout.wc-page {
        display: block !important;
        columns: 2;
        column-gap: 16px;
        column-fill: balance;
    }
    .settings-layout.wc-page > .product-page-head,
    .settings-layout.wc-page > .settings-card--sub,
    .settings-layout.wc-page > #cover-letter-accordion,
    .settings-layout.wc-page > .btn.full-width {
        column-span: all;
        width: 100%;
    }
    .settings-layout.wc-page > .product-page-head,
    .settings-layout.wc-page > .settings-card {
        margin: 0 0 16px;
    }
    .settings-layout.wc-page > .settings-card {
        break-inside: avoid;
    }

    #feed-list.feed-deck { min-height: 274px; }
    #feed-list.feed-deck .feed-item {
        box-sizing: border-box;
        height: 256px;
        min-height: 256px;
    }
}

.btn:hover:not(:disabled),
.product-primary-btn:hover:not(:disabled),
.product-secondary-btn:hover:not(:disabled) { transform: translateY(-1px); }
.btn:active:not(:disabled),
.product-primary-btn:active:not(:disabled),
.product-secondary-btn:active:not(:disabled),
.dash-quick-card:active { transform: translateY(0); }

@media (max-width: 720px) {
    .nav-item:hover { transform: none; }
    .product-page-head { padding: 8px 2px 12px; }
    .product-page-head::after { inset-inline: 0; }
    .funnel-section { padding: 14px !important; }
    .funnel-stages {
        margin-inline: -4px;
        padding-inline: 4px;
        scroll-padding-inline: 4px;
        scroll-snap-type: x proximity;
    }
    .funnel-stage { min-height: 44px; scroll-snap-align: start; }
    .funnel-card { padding: 14px 14px 14px 16px; }
    .funnel-card__title,
    #st-history-list .st-history-title {
        min-height: 44px;
        display: flex;
        align-items: center;
    }
    #screen-stats .segmented { width: 100%; }
    #screen-stats .segmented-opt { min-width: 0; padding-inline: 10px; }
    .toggle-row { min-height: 56px; }
    .resume-raise-panel {
        grid-template-columns: 40px minmax(0, 1fr);
        padding: 14px;
    }
    .resume-raise-panel__icon { width: 40px; height: 40px; }
    #raise-resume-btn {
        grid-column: 1 / -1;
        width: 100% !important;
    }
    .filters-hh-preview {
        display: flex;
        min-height: 0;
        flex-direction: column;
        align-items: stretch;
        padding: 15px;
    }
    #filters-open-hh-btn { width: 100% !important; }
}

@media (max-width: 520px) {
    .product-overview-metrics .dash-tile,
    .product-dashboard .dash-tile { padding-inline: 7px; }
    .dash-quick-card { min-height: 74px; }
    .dash-quick-card-icon { width: 28px; height: 28px; }
    .stat-card { min-height: 82px; }
    .funnel-head { margin-bottom: 13px; }
    .funnel-title { font-size: 16px; }
    .settings-card { gap: 14px; }
}

/* ═══════════════════════════════════════════════════════════════════
   Web vacancy feed — vertical stream (the miniapp keeps its swipe deck)
   ═══════════════════════════════════════════════════════════════════ */
#feed-screen .screen-content.wc-page {
    width: min(100%, 920px);
    gap: 16px;
}
.wc-feed-head {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 24px;
    padding: 18px 20px;
    border: 1px solid rgba(152, 139, 237, .18);
    border-radius: 16px;
    background:
        radial-gradient(circle at 92% 14%, rgba(124, 92, 246, .13), transparent 34%),
        linear-gradient(145deg, rgba(29, 27, 53, .94), rgba(18, 18, 37, .96));
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, .025);
}
.wc-feed-head__copy { min-width: 0; }
.wc-feed-head__eyebrow {
    display: block;
    margin-bottom: 5px;
    color: #a99cff;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: .08em;
    text-transform: uppercase;
}
.wc-feed-head h2 {
    margin: 0;
    color: var(--ink, #f7f5ff);
    font-size: clamp(20px, 2vw, 25px);
    font-weight: 750;
    line-height: 1.18;
    letter-spacing: -.025em;
}
.wc-feed-head p {
    max-width: 640px;
    margin: 7px 0 0;
    color: var(--ink-soft, #aaa7bd);
    font-size: 13px;
    line-height: 1.5;
}
.wc-feed-count {
    flex: 0 0 auto;
    min-width: 90px;
    padding: 9px 12px;
    border: 1px solid rgba(169, 156, 255, .2);
    border-radius: 10px;
    background: rgba(124, 92, 246, .09);
    color: #c8befd;
    font-size: 12px;
    font-weight: 750;
    text-align: center;
    font-variant-numeric: tabular-nums;
}
.wc-feed-count:empty { display: none; }

#feed-screen .tg-vac-cats-row {
    padding-bottom: 2px;
    border-bottom: 1px solid rgba(160, 151, 215, .11);
}
#feed-screen .tg-vac-cats { gap: 7px; }
#feed-screen .tg-vac-chip {
    min-height: 40px;
    padding-inline: 14px;
    border-radius: 10px;
}
#feed-screen .tg-vac-chip.active {
    border-color: rgba(154, 135, 255, .46);
    background: rgba(124, 92, 246, .14);
    color: #eeeaff;
}
#feed-status:not(:empty) {
    padding: 9px 12px;
    border: 1px solid rgba(160, 151, 215, .14);
    border-radius: 10px;
    background: rgba(26, 25, 47, .72);
}

#feed-list.wc-feed-stream,
#feed-list.wc-feed-stream.feed-deck {
    position: static !important;
    display: grid !important;
    width: 100%;
    height: auto !important;
    min-height: 0 !important;
    gap: 14px;
    isolation: auto;
}
#feed-list.wc-feed-stream .feed-item,
#feed-list.wc-feed-stream.feed-deck .feed-item,
#feed-list.wc-feed-stream.feed-deck .feed-item:nth-child(n) {
    position: relative !important;
    inset: auto !important;
    z-index: auto !important;
    display: block !important;
    box-sizing: border-box;
    width: 100% !important;
    height: auto !important;
    min-height: 0 !important;
    margin: 0 !important;
    padding: 20px !important;
    overflow: visible !important;
    border: 1px solid rgba(160, 151, 215, .16);
    border-radius: 15px;
    opacity: 1 !important;
    background: linear-gradient(145deg, rgba(27, 26, 50, .96), rgba(20, 20, 39, .98));
    box-shadow: 0 7px 24px rgba(5, 5, 18, .12), inset 0 1px 0 rgba(255,255,255,.022);
    cursor: default;
    pointer-events: auto !important;
    touch-action: auto !important;
    user-select: auto !important;
    transform: none !important;
    transition: border-color .16s ease, background .16s ease, box-shadow .16s ease !important;
}
#feed-list.wc-feed-stream .feed-item:hover {
    border-color: rgba(166, 149, 255, .3);
    background: linear-gradient(145deg, rgba(31, 29, 57, .98), rgba(22, 22, 43, .99));
    box-shadow: 0 10px 30px rgba(5, 5, 18, .18), inset 0 1px 0 rgba(255,255,255,.03);
}
#feed-list.wc-feed-stream.feed-deck .feed-item:nth-child(n) > * {
    visibility: visible !important;
}
#feed-list.wc-feed-stream .feed-swipe-stamp,
#feed-list.wc-feed-stream + .feed-swipe-actions,
#feed-list.wc-feed-stream ~ .feed-swipe-actions,
#feed-screen .feed-deck-progress,
#feed-screen .feed-swipe-actions {
    display: none !important;
}
#feed-list.wc-feed-stream .feed-item--applied {
    opacity: 1 !important;
}
#feed-list.wc-feed-stream .feed-item--applied::after { content: none !important; }
#feed-list.wc-feed-stream .feed-item--applied .tg-vac-title { color: var(--ink, #f7f5ff); }

#feed-list.wc-feed-stream .fav-star {
    top: 16px;
    right: 16px;
    display: inline-flex;
    width: 44px;
    height: 44px;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(160, 151, 215, .15);
    border-radius: 11px;
    background: rgba(255,255,255,.025);
}
#feed-list.wc-feed-stream .fav-star svg {
    width: 19px;
    height: 19px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.7;
    stroke-linejoin: round;
}
#feed-list.wc-feed-stream .fav-star.active svg { fill: currentColor; }
.wc-feed-card__main { padding-right: 48px; }
#feed-list.wc-feed-stream .tg-vac-title {
    max-width: 760px;
    font-size: 18px;
    line-height: 1.35;
}
#feed-list.wc-feed-stream .tg-vac-company {
    margin-top: 7px;
    font-size: 13px;
}
#feed-list.wc-feed-stream .tg-vac-salary {
    margin-top: 9px;
    color: #c8befd;
    font-size: 15px;
}
#feed-list.wc-feed-stream .feed-snippet {
    margin-top: 13px;
    color: #b8b5c8;
    font-size: 13px;
    line-height: 1.55;
    -webkit-line-clamp: 2;
}
#feed-list.wc-feed-stream .feed-snippet.is-expanded {
    padding: 12px 14px;
    border-left: 2px solid rgba(160, 140, 255, .45);
    border-radius: 0 9px 9px 0;
    background: rgba(255,255,255,.022);
}
#feed-list.wc-feed-stream .feed-snippet-toggle {
    min-height: 36px;
    padding: 5px 0;
    color: #a99cff;
}
#feed-list.wc-feed-stream .feed-badges {
    max-height: none;
    margin-top: 10px;
}
#feed-list.wc-feed-stream .feed-badge {
    min-height: 25px;
    border-radius: 7px;
    background: rgba(255,255,255,.018);
}

#feed-list.wc-feed-stream .feed-actions,
#feed-list.wc-feed-stream.feed-deck .feed-actions {
    display: flex !important;
    flex-wrap: wrap;
    align-items: stretch;
    gap: 9px;
    margin-top: 16px;
    padding-top: 15px;
    border-top: 1px solid rgba(160, 151, 215, .11);
}
.wc-feed-action {
    display: inline-flex;
    min-width: 168px;
    min-height: 44px;
    flex: 1 1 168px;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 15px;
    border: 1px solid rgba(160, 151, 215, .2);
    border-radius: 10px;
    background: rgba(255,255,255,.025);
    color: #d9d5e7;
    font: inherit;
    font-size: 13px;
    font-weight: 750;
    line-height: 1.15;
    cursor: pointer;
    transition: border-color .15s ease, background .15s ease, color .15s ease, transform .15s ease;
}
.wc-feed-action svg {
    width: 18px;
    height: 18px;
    flex: 0 0 auto;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}
.wc-feed-action:hover:not(:disabled) {
    border-color: rgba(172, 157, 255, .4);
    background: rgba(137, 112, 255, .09);
    color: #fff;
    transform: translateY(-1px);
}
.wc-feed-action:active:not(:disabled) { transform: translateY(0); }
.wc-feed-action:disabled { opacity: .58; cursor: wait; }
.wc-feed-action--apply.feed-apply-btn {
    width: auto;
    border-color: rgba(126, 105, 245, .45);
    background: linear-gradient(135deg, #755de9, #6550d7);
    color: #fff;
    box-shadow: 0 7px 18px rgba(88, 66, 205, .18);
}
.wc-feed-action--apply.feed-apply-btn:hover:not(:disabled) {
    border-color: rgba(183, 171, 255, .58);
    background: linear-gradient(135deg, #8068ef, #6c56df);
}
.wc-feed-action--brief {
    border-color: rgba(169, 150, 255, .31);
    background: rgba(124, 92, 246, .11);
    color: #ddd5ff;
}
.wc-feed-action--open { color: #bbb7cc; }
#feed-list.wc-feed-stream .feed-applied-mark {
    min-width: 168px;
    min-height: 44px;
    flex: 1 1 168px;
    justify-content: center;
    padding: 10px 15px;
    border: 1px solid rgba(85, 197, 148, .2);
    border-radius: 10px;
    background: rgba(48, 144, 105, .08);
    color: #7dd9ac;
}
.feed-queued-mark {
    display: inline-flex;
    min-width: 168px;
    min-height: 44px;
    flex: 1 1 168px;
    align-items: center;
    justify-content: center;
    padding: 10px 15px;
    border: 1px solid rgba(169, 150, 255, .28);
    border-radius: 10px;
    background: rgba(124, 92, 246, .1);
    color: #d9d0ff;
    font-size: 12px;
    font-weight: 750;
    line-height: 1.25;
    text-align: center;
}
#feed-list.wc-feed-stream .feed-item--queued {
    border-color: rgba(154, 136, 255, .24);
}

.wc-feed-skeleton {
    height: 188px;
    border: 1px solid rgba(160, 151, 215, .1);
    border-radius: 15px;
    background: linear-gradient(100deg, rgba(31,30,53,.8) 20%, rgba(48,45,77,.88) 38%, rgba(31,30,53,.8) 56%);
    background-size: 220% 100%;
    animation: wc-feed-shimmer 1.25s ease-in-out infinite;
}
@keyframes wc-feed-shimmer { to { background-position-x: -220%; } }
#feed-screen #feed-more {
    width: 100%;
    min-height: 48px;
    border: 1px solid rgba(160, 143, 255, .24);
    border-radius: 11px;
    background: rgba(124, 92, 246, .08);
    color: #dcd6ff;
    font-size: 13px;
    font-weight: 750;
}
#feed-screen #feed-more:hover:not(:disabled) {
    border-color: rgba(175, 160, 255, .4);
    background: rgba(124, 92, 246, .13);
}
#feed-screen #feed-list .empty-state {
    min-height: 260px;
    border-radius: 15px;
    background: linear-gradient(145deg, rgba(27, 26, 50, .96), rgba(20, 20, 39, .98));
}
#feed-screen #feed-list .empty-state__icon svg {
    width: 28px;
    height: 28px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.7;
}

@media (max-width: 720px) {
    .wc-feed-head {
        align-items: flex-start;
        padding: 16px;
    }
    .wc-feed-head p { font-size: 12px; }
    .wc-feed-count { min-width: 74px; padding-inline: 9px; }
    #feed-list.wc-feed-stream .feed-item,
    #feed-list.wc-feed-stream.feed-deck .feed-item,
    #feed-list.wc-feed-stream.feed-deck .feed-item:nth-child(n) { padding: 16px !important; }
    #feed-list.wc-feed-stream .fav-star { top: 12px; right: 12px; }
    .wc-feed-card__main { padding-right: 46px; }
    #feed-list.wc-feed-stream .tg-vac-title { font-size: 16px; }
    #feed-list.wc-feed-stream .feed-actions { gap: 8px; }
    .wc-feed-action,
    #feed-list.wc-feed-stream .feed-applied-mark,
    #feed-list.wc-feed-stream .feed-queued-mark {
        min-width: calc(50% - 4px);
        flex-basis: calc(50% - 4px);
    }
    .wc-feed-action--open:last-child:nth-child(odd) { flex-basis: 100%; }
}

@media (max-width: 460px) {
    .wc-feed-head { display: block; }
    .wc-feed-count {
        display: inline-flex;
        min-width: 0;
        margin-top: 12px;
    }
    .wc-feed-count[hidden], .wc-feed-count:empty { display: none; }
    #feed-list.wc-feed-stream .feed-actions { display: grid !important; grid-template-columns: 1fr; }
    .wc-feed-action,
    #feed-list.wc-feed-stream .feed-applied-mark,
    #feed-list.wc-feed-stream .feed-queued-mark {
        width: 100%;
        min-width: 0;
        min-height: 46px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .wc-feed-skeleton { animation: none; }
    .wc-feed-action { transition-duration: .01ms; }
}

/* ═══════════════════════════════════════════════════════════════════
   Telegram vacancies — web cabinet only
   ═══════════════════════════════════════════════════════════════════ */
#tg-vacancies-screen .wc-tg-page {
    width: min(100%, 920px);
    gap: 14px;
}
#favorites-screen .screen-content.wc-page { width: min(100%, 920px); }
#favorites-list { display: grid; gap: 13px; }
.wc-tg-plane {
    display: inline-block;
    width: 1em;
    height: 1em;
    flex: 0 0 auto;
    overflow: visible;
    fill: currentColor;
    vertical-align: -.12em;
}
#favorites-screen .screen-title {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}
#favorites-screen .screen-title .wc-tg-plane { color: #68bee9; }
#tg-vacancies-screen .sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}
.wc-tg-head {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 24px;
    padding: 22px;
    border: 1px solid rgba(76, 174, 235, .19);
    border-radius: 17px;
    background:
        radial-gradient(circle at 92% 10%, rgba(45, 166, 229, .15), transparent 34%),
        linear-gradient(145deg, rgba(25, 29, 52, .97), rgba(18, 19, 38, .98));
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, .03);
}
.wc-tg-head__copy { min-width: 0; }
.wc-tg-head__eyebrow,
.wc-tg-detail-eyebrow {
    display: block;
    margin-bottom: 6px;
    color: #6dc5f2;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: .09em;
    text-transform: uppercase;
}
.wc-tg-head h2 {
    display: flex;
    align-items: center;
    gap: 9px;
    margin: 0;
    color: var(--ink, #f7f5ff);
    font-size: clamp(21px, 2.2vw, 27px);
    font-weight: 760;
    line-height: 1.2;
    letter-spacing: -.025em;
}
.wc-tg-head h2 .wc-tg-plane { width: 23px; height: 23px; color: #68bee9; }
.wc-tg-head p {
    max-width: 650px;
    margin: 8px 0 0;
    color: var(--ink-soft, #aaa7bd);
    font-size: 13px;
    line-height: 1.55;
}
.wc-tg-count {
    flex: 0 0 auto;
    min-width: 92px;
    padding: 9px 12px;
    border: 1px solid rgba(75, 182, 239, .2);
    border-radius: 10px;
    background: rgba(47, 167, 229, .08);
    color: #a7dbf7;
    font-size: 12px;
    font-weight: 750;
    text-align: center;
    font-variant-numeric: tabular-nums;
}
.wc-tg-count[hidden],
.wc-tg-more[hidden],
.wc-tg-health[hidden] { display: none !important; }

.wc-tg-toolbar {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 10px;
}
.wc-tg-search { position: relative; display: block; }
.wc-tg-search__icon {
    position: absolute;
    z-index: 1;
    top: 50%;
    left: 15px;
    color: #8d8aa2;
    font-size: 23px;
    line-height: 1;
    pointer-events: none;
    transform: translateY(-52%) rotate(-18deg);
}
#tg-vac-search.field-input {
    width: 100%;
    min-height: 48px;
    padding: 11px 42px 11px 44px;
    border-color: rgba(157, 151, 208, .17);
    border-radius: 11px;
    background: rgba(24, 24, 45, .88);
    font-size: 14px;
}
#tg-vac-search.field-input:focus {
    border-color: rgba(74, 177, 232, .48);
    box-shadow: 0 0 0 3px rgba(47, 167, 229, .09);
}
.wc-tg-favorites,
.wc-tg-more,
.wc-tg-empty button,
.wc-tg-error button {
    min-height: 48px;
    padding: 10px 17px;
    border: 1px solid rgba(163, 151, 224, .2);
    border-radius: 11px;
    background: rgba(255,255,255,.025);
    color: #d9d5e7;
    font: inherit;
    font-size: 13px;
    font-weight: 750;
    cursor: pointer;
    transition: border-color .15s ease, background .15s ease, color .15s ease, transform .15s ease;
}
.wc-tg-favorites:hover,
.wc-tg-more:hover:not(:disabled),
.wc-tg-empty button:hover,
.wc-tg-error button:hover {
    border-color: rgba(174, 158, 255, .4);
    background: rgba(124, 92, 246, .1);
    color: #fff;
}
.wc-tg-favorites:focus-visible,
.wc-tg-more:focus-visible,
.wc-tg-category:focus-visible,
.wc-tg-card__open:focus-visible,
.wc-tg-fav:focus-visible,
.wc-tg-detail-actions :focus-visible {
    outline: 2px solid #71c8f4;
    outline-offset: 2px;
}

.wc-tg-categories {
    display: flex;
    gap: 7px;
    padding: 2px 1px 7px;
    overflow-x: auto;
    overscroll-behavior-inline: contain;
    scrollbar-width: thin;
}
.wc-tg-category {
    display: inline-flex;
    min-height: 38px;
    flex: 0 0 auto;
    align-items: center;
    gap: 7px;
    padding: 8px 12px;
    border: 1px solid rgba(159, 151, 208, .14);
    border-radius: 10px;
    background: rgba(255,255,255,.018);
    color: #aaa7bd;
    font: inherit;
    font-size: 12px;
    font-weight: 700;
    cursor: pointer;
}
.wc-tg-category > span {
    padding: 1px 6px;
    border-radius: 999px;
    background: rgba(255,255,255,.05);
    color: #858198;
    font-size: 10px;
    font-variant-numeric: tabular-nums;
}
.wc-tg-category:hover { border-color: rgba(78, 180, 234, .28); color: #d7d4e3; }
.wc-tg-category.is-active {
    border-color: rgba(72, 181, 239, .4);
    background: rgba(40, 157, 220, .11);
    color: #c7eafa;
}
.wc-tg-category.is-active > span { background: rgba(55, 174, 234, .14); color: #9bd8f6; }

.wc-tg-health {
    display: flex;
    min-height: 38px;
    align-items: center;
    gap: 9px;
    padding: 9px 12px;
    border: 1px solid transparent;
    border-radius: 10px;
    font-size: 12px;
    line-height: 1.4;
}
.wc-tg-health.is-healthy {
    border-color: rgba(74, 193, 139, .15);
    background: rgba(45, 151, 104, .065);
    color: #8acfab;
}
.wc-tg-health.is-warning {
    border-color: rgba(224, 164, 72, .18);
    background: rgba(180, 118, 39, .08);
    color: #dfbd82;
}
.wc-tg-health__dot {
    width: 7px;
    height: 7px;
    flex: 0 0 auto;
    border-radius: 50%;
    background: currentColor;
    box-shadow: 0 0 0 4px color-mix(in srgb, currentColor 12%, transparent);
}
.wc-tg-status:not(:empty) {
    padding: 9px 12px;
    border: 1px solid rgba(223, 166, 80, .16);
    border-radius: 10px;
    background: rgba(157, 103, 34, .07);
    color: #d6b77d;
    font-size: 12px;
}
.wc-tg-status button { border: 0; background: none; color: #c9bdff; font: inherit; font-weight: 750; cursor: pointer; }

.wc-tg-list { display: grid; gap: 13px; }
.wc-tg-card {
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(160, 151, 215, .16);
    border-radius: 15px;
    background: linear-gradient(145deg, rgba(27, 27, 50, .97), rgba(19, 20, 39, .99));
    box-shadow: 0 7px 24px rgba(5, 5, 18, .12), inset 0 1px 0 rgba(255,255,255,.022);
    transition: border-color .16s ease, background .16s ease, box-shadow .16s ease, transform .16s ease;
}
.wc-tg-card:hover {
    border-color: rgba(72, 178, 235, .29);
    background: linear-gradient(145deg, rgba(29, 32, 56, .99), rgba(21, 23, 43, .99));
    box-shadow: 0 10px 30px rgba(5, 5, 18, .18), inset 0 1px 0 rgba(255,255,255,.03);
    transform: translateY(-1px);
}
.wc-tg-card__open {
    display: block;
    width: 100%;
    padding: 19px 68px 18px 20px;
    border: 0;
    background: none;
    color: inherit;
    font: inherit;
    text-align: left;
    cursor: pointer;
}
.wc-tg-card__open > span { display: block; }
.wc-tg-card__top {
    display: flex !important;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 9px;
    color: #747186;
    font-size: 10px;
    font-weight: 750;
    letter-spacing: .025em;
    text-transform: uppercase;
}
.wc-tg-card__source { display: inline-flex; align-items: center; gap: 5px; color: #68bee9; }
.wc-tg-card__source .wc-tg-plane { width: 13px; height: 13px; }
.wc-tg-card__title {
    max-width: 760px;
    color: var(--ink, #f7f5ff);
    font-size: 18px;
    font-weight: 760;
    line-height: 1.36;
    letter-spacing: -.012em;
}
.wc-tg-card__company { margin-top: 5px; color: #aaa7bd; font-size: 13px; line-height: 1.4; }
.wc-tg-card__salary { margin-top: 9px; color: #a9dff8; font-size: 15px; font-weight: 750; }
.wc-tg-card__snippet {
    display: -webkit-box !important;
    margin-top: 12px;
    overflow: hidden;
    color: #b8b5c8;
    font-size: 13px;
    line-height: 1.55;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}
.wc-tg-card__meta,
.wc-tg-card__skills {
    display: flex !important;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 11px;
}
.wc-tg-card__meta > span,
.wc-tg-card__skills > span {
    display: inline-flex;
    min-height: 26px;
    align-items: center;
    padding: 4px 8px;
    border: 1px solid rgba(160, 151, 215, .11);
    border-radius: 7px;
    background: rgba(255,255,255,.02);
    color: #9c99ae;
    font-size: 10px;
    font-weight: 700;
}
.wc-tg-card__skills > span { border-color: rgba(62, 167, 222, .12); color: #88bcd6; }
.wc-tg-card__footer {
    display: flex !important;
    align-items: center;
    justify-content: space-between;
    margin-top: 15px;
    padding-top: 13px;
    border-top: 1px solid rgba(160, 151, 215, .1);
    color: #8fcfee;
    font-size: 12px;
    font-weight: 750;
}
.wc-tg-fav {
    position: absolute;
    z-index: 2;
    top: 15px;
    right: 15px;
    display: inline-flex;
    width: 42px;
    height: 42px;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(160, 151, 215, .16);
    border-radius: 10px;
    background: rgba(21, 21, 41, .92);
    color: #8e8a9f;
    cursor: pointer;
}
.wc-tg-fav svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linejoin: round; }
.wc-tg-fav:hover { border-color: rgba(173, 157, 255, .37); color: #d7d0ff; }
.wc-tg-fav.is-active { border-color: rgba(237, 187, 75, .28); background: rgba(196, 137, 29, .09); color: #edc263; }
.wc-tg-fav.is-active svg { fill: currentColor; }
.wc-tg-fav:disabled { cursor: wait; opacity: .6; }

.wc-tg-skeleton {
    min-height: 184px;
    border: 1px solid rgba(160, 151, 215, .1);
    border-radius: 15px;
    background: linear-gradient(100deg, rgba(31,30,53,.8) 20%, rgba(45,48,75,.9) 38%, rgba(31,30,53,.8) 56%);
    background-size: 220% 100%;
    animation: wc-tg-shimmer 1.25s ease-in-out infinite;
}
@keyframes wc-tg-shimmer { to { background-position-x: -220%; } }
.wc-tg-empty,
.wc-tg-error {
    display: flex;
    min-height: 250px;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 30px 20px;
    border: 1px solid rgba(160, 151, 215, .13);
    border-radius: 15px;
    background: linear-gradient(145deg, rgba(27, 27, 50, .96), rgba(19, 20, 39, .98));
    color: #8f8b9f;
    text-align: center;
}
.wc-tg-empty > svg,
.wc-tg-error > svg { width: 28px; height: 28px; margin-bottom: 13px; fill: none; stroke: #72c4ed; stroke-width: 1.7; }
.wc-tg-empty h3,
.wc-tg-error h3 { margin: 0; color: #e9e6f2; font-size: 16px; }
.wc-tg-empty p,
.wc-tg-error p { max-width: 440px; margin: 8px 0 16px; font-size: 12px; line-height: 1.5; }
.wc-tg-empty button,
.wc-tg-error button { min-height: 42px; }
.wc-tg-more { width: 100%; }
.wc-tg-more:disabled { cursor: wait; opacity: .62; }

body.wc-tg-modal-open { overflow: hidden; }
.wc-tg-detail-modal { align-items: center; }
.wc-tg-detail-backdrop { position: absolute; inset: 0; cursor: default; }
.wc-tg-detail-box {
    position: relative;
    z-index: 1;
    width: min(100%, 680px);
    max-width: 680px;
    max-height: min(88vh, 780px);
    border-color: rgba(94, 184, 232, .19);
    background: linear-gradient(155deg, rgba(25, 27, 49, .99), rgba(17, 18, 35, .995));
}
.wc-tg-detail-box:focus { outline: none; }
.wc-tg-detail-head { align-items: flex-start; gap: 16px; padding: 20px 22px 16px; }
.wc-tg-detail-head > div { min-width: 0; }
.wc-tg-detail-eyebrow { display: flex; align-items: center; gap: 5px; }
.wc-tg-detail-eyebrow .wc-tg-plane { width: 12px; height: 12px; }
.wc-tg-detail-head h3 {
    margin: 0;
    overflow-wrap: anywhere;
    font-family: inherit;
    font-size: 20px;
    font-weight: 760;
    line-height: 1.32;
    letter-spacing: -.015em;
}
.wc-tg-detail-body { gap: 14px; padding: 18px 22px 22px; }
.wc-tg-detail-company { color: #aaa7bd; font-size: 14px; }
.wc-tg-detail-salary { color: #a9dff8; font-size: 17px; font-weight: 760; }
.wc-tg-detail-meta { display: flex; flex-wrap: wrap; gap: 7px; }
.wc-tg-detail-meta > span {
    padding: 5px 9px;
    border: 1px solid rgba(160, 151, 215, .13);
    border-radius: 8px;
    background: rgba(255,255,255,.022);
    color: #aaa7bd;
    font-size: 11px;
    font-weight: 700;
}
.wc-tg-detail-text {
    padding: 15px 16px;
    border: 1px solid rgba(160, 151, 215, .11);
    border-radius: 11px;
    background: rgba(255,255,255,.018);
    color: #cbc8d7;
    font-size: 13px;
    line-height: 1.62;
    overflow-wrap: anywhere;
    white-space: pre-wrap;
}
.wc-tg-detail-contact {
    display: grid;
    gap: 5px;
    padding: 12px 14px;
    border-left: 2px solid rgba(64, 175, 232, .45);
    border-radius: 0 9px 9px 0;
    background: rgba(50, 157, 214, .055);
    color: #aaa7bd;
    font-size: 12px;
    overflow-wrap: anywhere;
}
.wc-tg-detail-contact strong { color: #d8d5e4; }
.wc-tg-detail-actions { display: flex; flex-wrap: wrap; gap: 9px; padding-top: 3px; }
.wc-tg-detail-actions a,
.wc-tg-detail-actions button {
    display: inline-flex;
    min-height: 46px;
    flex: 1 1 170px;
    align-items: center;
    justify-content: center;
    padding: 10px 15px;
    border: 1px solid rgba(160, 151, 215, .2);
    border-radius: 10px;
    font: inherit;
    font-size: 13px;
    font-weight: 750;
    text-decoration: none;
    cursor: pointer;
}
.wc-tg-detail-primary { border-color: rgba(69, 181, 239, .44) !important; background: linear-gradient(135deg, #319fdb, #268ac6); color: #fff; }
.wc-tg-detail-secondary { background: rgba(255,255,255,.025); color: #d5d1df; }
.wc-tg-detail-secondary:hover { border-color: rgba(88, 190, 241, .35); background: rgba(48, 159, 216, .08); color: #fff; }
.wc-tg-detail-fav.is-active { border-color: rgba(232, 182, 69, .27); color: #edc263; }
.wc-tg-detail-loading .wc-tg-skeleton { min-height: 110px; margin-bottom: 10px; }
.wc-tg-detail-loading .wc-tg-skeleton:last-child { min-height: 190px; margin-bottom: 0; }

@media (max-width: 720px) {
    .wc-tg-head { align-items: flex-start; padding: 17px; }
    .wc-tg-head p { font-size: 12px; }
    .wc-tg-count { min-width: 76px; padding-inline: 9px; }
    .wc-tg-card__open { padding: 17px 61px 16px 16px; }
    .wc-tg-fav { top: 12px; right: 12px; }
    .wc-tg-card__title { font-size: 16px; }
}
@media (max-width: 520px) {
    .wc-tg-head { display: block; }
    .wc-tg-count { display: inline-flex; min-width: 0; margin-top: 12px; }
    .wc-tg-count[hidden] { display: none !important; }
    .wc-tg-toolbar { grid-template-columns: 1fr; }
    .wc-tg-favorites { width: 100%; }
    .wc-tg-detail-modal { align-items: flex-end; padding: 0; }
    .wc-tg-detail-box {
        width: 100% !important;
        max-height: 92vh;
        border-right: 0;
        border-bottom: 0;
        border-left: 0;
        border-radius: 18px 18px 0 0 !important;
    }
    .wc-tg-detail-head { padding: 18px 17px 14px; }
    .wc-tg-detail-head h3 { font-size: 18px; }
    .wc-tg-detail-body { padding: 16px 17px calc(18px + env(safe-area-inset-bottom)); }
    .wc-tg-detail-actions { display: grid; grid-template-columns: 1fr; }
    .wc-tg-detail-actions a,
    .wc-tg-detail-actions button { width: 100%; }
}
@media (prefers-reduced-motion: reduce) {
    .wc-tg-skeleton { animation: none; }
    .wc-tg-card,
    .wc-tg-favorites,
    .wc-tg-more { transition-duration: .01ms; }
}
