/**
 * KOVCHEG Core — Admin Panel Styles
 */

:root {
    --color-bg-primary: #ffffff;
    --color-bg-secondary: #f8fafc;
    --color-bg-sidebar: #1e293b;
    --color-bg-card: #ffffff;
    --color-border: #e2e8f0;
    --color-text-primary: #0f172a;
    --color-text-secondary: #475569;
    --color-text-muted: #94a3b8;
    --color-brand-primary: var(--color-brand-primary);
    --sidebar-width: 260px;
    --sidebar-collapsed-width: 72px;
    --topbar-height: 64px;
}

[data-theme="dark"] {
    --color-bg-primary: #0f172a;
    --color-bg-secondary: #1e293b;
    --color-bg-card: #1e293b;
    --color-border: #334155;
    --color-text-primary: #f8fafc;
    --color-text-secondary: #cbd5e1;
    --color-text-muted: #64748b;
}

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

body {
    font-family: 'Inter', -apple-system, sans-serif;
    background: var(--color-bg-secondary);
    color: var(--color-text-primary);
}

.admin-layout { display: flex; min-height: 100vh; }
.admin-main { flex: 1; margin-left: var(--sidebar-width); }
.sidebar-collapsed .admin-main { margin-left: var(--sidebar-collapsed-width); }

.sidebar {
    position: fixed;
    left: 0; top: 0;
    width: var(--sidebar-width);
    height: 100vh;
    background: var(--color-bg-sidebar);
    display: flex;
    flex-direction: column;
    transition: width 0.3s;
}

.sidebar-collapsed .sidebar { width: var(--sidebar-collapsed-width); }

.sidebar-header {
    padding: 1.25rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

.sidebar-logo {
    width: 40px; height: 40px;
    background: linear-gradient(135deg, var(--color-brand-primary), #06b6d4);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.sidebar-logo svg { width: 24px; height: 24px; color: white; }
.sidebar-logo img { max-width: 100%; max-height: 100%; object-fit: contain; padding: 4px; }
.sidebar-logo-initial { color: white; font-weight: 800; font-size: 1.15rem; }
.sidebar-brand { font-size: 1.25rem; font-weight: 700; color: white; }
.sidebar-collapsed .sidebar-brand { display: none; }

.sidebar-nav { flex: 1; padding: 1rem 0; overflow-y: auto; }
.sidebar-section { margin-bottom: 1.5rem; }
.sidebar-section-title {
    padding: 0 1.25rem;
    margin-bottom: 0.5rem;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    color: #64748b;
}
.sidebar-collapsed .sidebar-section-title { display: none; }

.sidebar-menu { list-style: none; }
.sidebar-menu-item { margin: 2px 0.75rem; }
.sidebar-menu-link {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.625rem 0.75rem;
    border-radius: 8px;
    color: #94a3b8;
    text-decoration: none;
    transition: all 0.15s;
}
.sidebar-menu-link:hover { background: rgba(255,255,255,0.05); color: white; }
.sidebar-menu-link.active { background: rgba(16,185,129,0.1); color: var(--color-brand-primary); }
.sidebar-menu-icon { width: 20px; height: 20px; flex-shrink: 0; }
.sidebar-menu-text { }
.sidebar-collapsed .sidebar-menu-text { display: none; }

.sidebar-footer { padding: 1rem 1.25rem; border-top: 1px solid rgba(255,255,255,0.1); }
.sidebar-toggle {
    width: 100%;
    padding: 0.5rem;
    background: rgba(255,255,255,0.05);
    border: none;
    border-radius: 8px;
    color: #94a3b8;
    cursor: pointer;
}
.sidebar-toggle svg { width: 20px; height: 20px; }

.topbar {
    position: sticky; top: 0;
    height: var(--topbar-height);
    background: var(--color-bg-primary);
    border-bottom: 1px solid var(--color-border);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 1.5rem;
    z-index: 50;
}

.topbar-left, .topbar-right { display: flex; align-items: center; gap: 0.75rem; }
.topbar-title { font-size: 1.125rem; font-weight: 600; }
.topbar-btn {
    width: 40px; height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: none;
    border: none;
    border-radius: 8px;
    color: var(--color-text-secondary);
    cursor: pointer;
}
.topbar-btn:hover { background: var(--color-bg-secondary); }
.topbar-btn svg { width: 20px; height: 20px; }

.user-avatar {
    width: 36px; height: 36px;
    border-radius: 50%;
    background: var(--color-bg-secondary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 0.875rem;
    color: var(--color-text-secondary);
    text-decoration: none;
    overflow: hidden;
}
.user-avatar img { width: 100%; height: 100%; object-fit: cover; }

.theme-switcher {
    display: flex;
    background: var(--color-bg-secondary);
    border: 1px solid var(--color-border);
    border-radius: 8px;
    padding: 4px;
}
.theme-btn {
    padding: 0.5rem 0.75rem;
    background: none;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 0.875rem;
}
.theme-btn.active { background: var(--color-bg-primary); box-shadow: 0 1px 2px rgba(0,0,0,0.1); }

.content { padding: 1.5rem; }
.content-header { margin-bottom: 1.5rem; }
.content-title { font-size: 1.5rem; font-weight: 700; margin-bottom: 0.25rem; }
.content-subtitle { color: var(--color-text-secondary); }

.card {
    background: var(--color-bg-card);
    border: 1px solid var(--color-border);
    border-radius: 12px;
}
.card-header {
    padding: 1.25rem 1.5rem;
    border-bottom: 1px solid var(--color-border);
}
.card-title { font-size: 1.125rem; font-weight: 600; }
.card-body { padding: 1.5rem; }

.grid { display: grid; gap: 1.5rem; }
.grid-cols-2 { grid-template-columns: repeat(2, 1fr); }
.grid-cols-3 { grid-template-columns: repeat(3, 1fr); }
.grid-cols-4 { grid-template-columns: repeat(4, 1fr); }

.stat-card { padding: 1.5rem; }
.stat-icon {
    width: 48px; height: 48px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1rem;
}
.stat-icon svg { width: 24px; height: 24px; }
.stat-icon.green { background: rgba(16,185,129,0.1); color: var(--color-brand-primary); }
.stat-icon.blue { background: rgba(59,130,246,0.1); color: #3b82f6; }
.stat-icon.violet { background: rgba(139,92,246,0.1); color: #8b5cf6; }
.stat-icon.yellow { background: rgba(245,158,11,0.1); color: #f59e0b; }
.stat-value { font-size: 1.5rem; font-weight: 700; margin-bottom: 0.25rem; }
.stat-label { color: var(--color-text-secondary); font-size: 0.875rem; }

.mt-4 { margin-top: 1rem; }
.text-sm { font-size: 0.875rem; }
.text-muted { color: var(--color-text-muted); }
.font-semibold { font-weight: 600; }
.mb-1 { margin-bottom: 0.25rem; }

.mobile-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.5);
    z-index: 99;
}
.mobile-overlay.active { display: block; }
.mobile-menu-btn { display: none; }

@media (max-width: 768px) {
    .sidebar { transform: translateX(-100%); }
    .sidebar.mobile-open { transform: translateX(0); }
    .admin-main { margin-left: 0; }
    .mobile-menu-btn { display: flex; }
    .grid-cols-4, .grid-cols-3, .grid-cols-2 { grid-template-columns: 1fr; }
}

/* RC2 common admin components */
.content-header-actions{display:flex;align-items:flex-start;justify-content:space-between;gap:1rem;flex-wrap:wrap}
.card{background:var(--color-bg-card);border:1px solid var(--color-border);border-radius:14px;box-shadow:0 1px 2px rgba(15,23,42,.04)}
.card-body{padding:1.25rem}.table{width:100%;border-collapse:collapse}.table th,.table td{padding:.75rem 1rem;text-align:left;border-bottom:1px solid var(--color-border);vertical-align:middle}.table th{font-size:.75rem;font-weight:700;text-transform:uppercase;letter-spacing:.05em;color:var(--color-text-muted);background:var(--color-bg-secondary)}.empty-cell{text-align:center;padding:2.5rem!important;color:var(--color-text-muted)}.btn{display:inline-flex;align-items:center;justify-content:center;gap:.35rem;padding:.65rem 1rem;border:0;border-radius:10px;background:linear-gradient(135deg,var(--color-brand-primary),#06b6d4);color:#fff;text-decoration:none;font-weight:700;cursor:pointer;line-height:1.1}.btn:hover{filter:brightness(.98)}.btn:disabled{opacity:.55;cursor:not-allowed}.btn-sm{padding:.45rem .65rem;font-size:.8125rem;border-radius:8px}.btn-secondary{background:var(--color-bg-secondary);color:var(--color-text-primary);border:1px solid var(--color-border)}.btn-danger{background:#ef4444;color:#fff}.actions{display:flex;gap:.45rem;align-items:center;flex-wrap:wrap}.badge{display:inline-flex;align-items:center;padding:.2rem .6rem;font-size:.75rem;font-weight:700;border-radius:9999px}.badge-success{background:rgba(16,185,129,.12);color:var(--color-brand-primary)}.badge-error{background:rgba(239,68,68,.12);color:#ef4444}.badge-muted{background:var(--color-bg-secondary);color:var(--color-text-muted)}.alert{padding:.85rem 1rem;border-radius:10px;margin-bottom:1rem;font-weight:600}.alert-success{background:rgba(16,185,129,.12);color:#059669;border:1px solid rgba(16,185,129,.25)}.alert-error{background:rgba(239,68,68,.12);color:#dc2626;border:1px solid rgba(239,68,68,.25)}.input{width:100%;padding:.7rem .85rem;border:1px solid var(--color-border);border-radius:10px;background:var(--color-bg-card);color:var(--color-text-primary)}textarea.input{resize:vertical}.form-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:1rem}.form-group label{display:block;margin-bottom:.4rem;font-weight:700;font-size:.875rem;color:var(--color-text-secondary)}.form-group.full,.form-actions.full{grid-column:1/-1}.form-actions{display:flex;align-items:end;gap:.75rem}.inline-form{display:flex;gap:.75rem;align-items:center;flex-wrap:wrap}.inline-form .input{max-width:420px}.checkbox{display:flex!important;align-items:center;gap:.5rem;margin:.35rem 0!important;font-weight:500!important}.check-list{display:grid;grid-template-columns:repeat(auto-fill,minmax(220px,1fr));gap:.3rem .75rem}.user-line{display:flex;align-items:center;gap:.75rem}.user-avatar.small{width:34px;height:34px;font-size:.8rem}.stats-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(220px,1fr));gap:1rem}.stat-label{font-size:.8rem;color:var(--color-text-muted);font-weight:700;text-transform:uppercase;letter-spacing:.04em}.stat-value{font-size:1.5rem;font-weight:800;margin:.35rem 0}.text-success{color:var(--color-brand-primary)}.text-danger{color:#ef4444}code{padding:.15rem .35rem;border-radius:6px;background:var(--color-bg-secondary);color:var(--color-brand-primary)}@media(max-width:760px){.form-grid{grid-template-columns:1fr}.content-header-actions{display:block}.admin-main{margin-left:0}.sidebar{position:relative;width:100%;height:auto}.admin-layout{display:block}.table{display:block;overflow-x:auto;white-space:nowrap}}


/* RC3 Release Builder */
.release-grid{align-items:stretch}.small-stat{font-size:1rem;word-break:break-word}.release-options{display:grid;gap:.45rem}.release-list{margin:0;padding-left:1.25rem;display:grid;gap:.45rem}.release-list li{line-height:1.35}.ok-list li::marker{color:var(--color-brand-primary)}.danger-list li::marker{color:#ef4444}.mt-1{margin-top:.25rem}

/* RC4 Health Monitor */
.health-summary-line{display:flex;align-items:center;gap:.75rem;flex-wrap:wrap}.health-mini-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:.75rem}.health-mini-grid div{padding:.75rem;border:1px solid var(--color-border);border-radius:10px;background:var(--color-bg-secondary)}.health-mini-grid strong{display:block;font-size:1.25rem}.health-mini-grid span{display:block;font-size:.75rem;color:var(--color-text-muted);font-weight:700;text-transform:uppercase;letter-spacing:.04em}.health-badge{display:inline-flex;align-items:center;justify-content:center;padding:.28rem .7rem;border-radius:9999px;font-size:.75rem;font-weight:900;letter-spacing:.04em}.health-badge-ok{background:rgba(16,185,129,.13);color:#059669}.health-badge-warning{background:rgba(245,158,11,.16);color:#d97706}.health-badge-error{background:rgba(239,68,68,.14);color:#dc2626}.health-status-card{position:relative;overflow:hidden}.health-status-card:before{content:"";position:absolute;left:0;top:0;bottom:0;width:5px}.health-status-ok:before{background:var(--color-brand-primary)}.health-status-warning:before{background:#f59e0b}.health-status-error:before{background:#ef4444}.health-status-ok{box-shadow:0 1px 10px rgba(16,185,129,.06)}.health-status-warning{box-shadow:0 1px 10px rgba(245,158,11,.06)}.health-status-error{box-shadow:0 1px 10px rgba(239,68,68,.06)}
@media(max-width:760px){.health-mini-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}

/* RC5 System Monitor + Clock + One-click Maintenance */
.topbar-clock{display:flex;flex-direction:column;align-items:flex-end;gap:.05rem;padding:.35rem .75rem;border:1px solid var(--color-border);border-radius:12px;background:var(--color-bg-secondary);min-width:118px}.topbar-clock-date{font-size:.72rem;color:var(--color-text-muted);font-weight:700}.topbar-clock-time{font-size:1rem;line-height:1;color:var(--color-text-primary);letter-spacing:.02em}.progress{height:9px;border-radius:9999px;background:var(--color-bg-secondary);overflow:hidden;border:1px solid var(--color-border)}.progress i{display:block;height:100%;border-radius:9999px;background:linear-gradient(90deg,var(--color-brand-primary),#06b6d4);min-width:0}.mini-metric-list{display:grid;gap:.8rem}.mini-metric{display:grid;gap:.3rem}.mini-metric span{font-size:.8rem;color:var(--color-text-muted);font-weight:700;text-transform:uppercase;letter-spacing:.04em}.mini-metric strong{font-size:.95rem}.folder-bars{display:grid;gap:1rem}.folder-bar-row{display:grid;gap:.3rem}.folder-bar-head{display:flex;align-items:center;justify-content:space-between;gap:1rem}.compact-table th{width:180px;text-transform:none;letter-spacing:0;font-size:.875rem}.compact-upload{padding:1.25rem}.one-click-card{border-color:rgba(16,185,129,.35);box-shadow:0 1px 18px rgba(16,185,129,.06)}.one-click-card .card-header{background:linear-gradient(135deg,rgba(16,185,129,.09),rgba(6,182,212,.07))}.mt-1{margin-top:.25rem}@media(max-width:760px){.topbar-clock{display:none}.compact-table th{width:auto}.folder-bar-head{display:block}}

/* RC5.2 Roles & Documentation */
.permissions-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(360px,1fr));gap:1rem}.permission-group-card{overflow:hidden}.permission-group-header{display:flex;align-items:flex-start;justify-content:space-between;gap:1rem;padding:1rem 1.25rem;border-bottom:1px solid var(--color-border);background:var(--color-bg-secondary)}.permission-group-header h2{font-size:1rem;margin:0}.permission-list{display:grid;gap:.55rem}.permission-row{display:flex!important;align-items:flex-start;gap:.7rem;padding:.65rem;border:1px solid var(--color-border);border-radius:10px;background:rgba(148,163,184,.04);cursor:pointer}.permission-row:hover{border-color:rgba(16,185,129,.45)}.permission-row input{margin-top:.2rem}.permission-row span{display:grid;gap:.2rem}.permission-row strong{font-size:.9rem}.permission-row code{width:max-content}.permission-row em{font-style:normal;color:var(--color-text-muted);font-size:.8rem;line-height:1.35}.doc-hero{padding:1.6rem;border-radius:18px;background:radial-gradient(circle at top left,rgba(16,185,129,.20),transparent 35%),linear-gradient(135deg,rgba(15,23,42,.08),rgba(6,182,212,.08));border:1px solid var(--color-border);margin-bottom:1rem}.doc-hero h1{font-size:2rem;margin-bottom:.4rem}.doc-layout{display:grid;grid-template-columns:280px minmax(0,1fr);gap:1rem;align-items:start}.doc-nav{position:sticky;top:1rem}.doc-nav a{display:block;padding:.65rem .8rem;border-radius:10px;color:var(--color-text-secondary);text-decoration:none;font-weight:700}.doc-nav a:hover{background:var(--color-bg-secondary);color:var(--color-text-primary)}.doc-section{padding:1.25rem}.doc-section h2{margin-bottom:.7rem}.timeline{position:relative;display:grid;gap:.8rem}.timeline-item{display:grid;grid-template-columns:92px minmax(0,1fr);gap:1rem;padding:.8rem;border:1px solid var(--color-border);border-radius:12px;background:var(--color-bg-card)}.timeline-step{font-weight:900;color:var(--color-brand-primary)}.roadmap-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(230px,1fr));gap:1rem}.roadmap-card{padding:1rem;border:1px solid var(--color-border);border-radius:14px;background:var(--color-bg-secondary)}.roadmap-card h3{margin-bottom:.4rem}.doc-checklist{display:grid;gap:.5rem;margin:0;padding:0;list-style:none}.doc-checklist li{padding:.55rem .7rem;border:1px solid var(--color-border);border-radius:10px;background:rgba(16,185,129,.06)}@media(max-width:900px){.permissions-grid{grid-template-columns:1fr}.doc-layout{grid-template-columns:1fr}.doc-nav{position:relative;top:0}.timeline-item{grid-template-columns:1fr}}

/* RC5.5 — Live Dashboard, gauges, greeting and White Label URL */
.topbar-title-wrap{display:grid;gap:.12rem;min-width:0}.topbar-greeting{font-size:.78rem;color:var(--color-text-muted);font-weight:700;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.topbar-host{font-weight:600;color:var(--color-brand-primary)}.dashboard-hero{padding:1.45rem;border:1px solid var(--color-border);border-radius:18px;background:radial-gradient(circle at top left,rgba(16,185,129,.16),transparent 32%),linear-gradient(135deg,rgba(6,182,212,.08),rgba(15,23,42,.035));margin-bottom:1.25rem}.hero-greeting{font-size:1rem;font-weight:900;color:var(--color-brand-primary);margin-bottom:.35rem}.hero-time-card{min-width:150px;text-align:right;padding:.8rem 1rem;border:1px solid var(--color-border);border-radius:16px;background:var(--color-bg-card);box-shadow:0 12px 30px rgba(15,23,42,.05)}.hero-time-card strong{display:block;font-size:1.8rem;line-height:1}.hero-time-card span{display:block;color:var(--color-text-muted);font-size:.78rem;font-weight:700;margin-top:.3rem}.live-panel-card,.live-monitor-hero{position:relative;overflow:hidden}.live-panel-card:after,.live-monitor-hero:after{content:"";position:absolute;right:-60px;top:-60px;width:160px;height:160px;border-radius:50%;background:radial-gradient(circle,rgba(16,185,129,.16),transparent 68%);pointer-events:none}.live-gauge-row{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:1rem}.live-gauge-row.big{grid-template-columns:repeat(4,minmax(0,1fr))}.live-gauge{--value:0;width:112px;max-width:100%;aspect-ratio:1;margin:0 auto;border-radius:50%;display:grid;place-items:center;position:relative;background:conic-gradient(var(--color-brand-primary) calc(var(--value)*1%),rgba(148,163,184,.20) 0);box-shadow:inset 0 0 0 1px var(--color-border),0 12px 28px rgba(15,23,42,.06)}.live-gauge:before{content:"";position:absolute;inset:12px;border-radius:50%;background:var(--color-bg-card);box-shadow:inset 0 0 0 1px var(--color-border)}.live-gauge span,.live-gauge em{position:relative;z-index:1}.live-gauge span{font-weight:900;font-size:1rem}.live-gauge em{font-style:normal;color:var(--color-text-muted);font-size:.72rem;font-weight:900;text-transform:uppercase;letter-spacing:.08em;margin-top:1.6rem;position:absolute}.sparkline-wrap{border:1px solid var(--color-border);border-radius:14px;background:linear-gradient(180deg,var(--color-bg-card),var(--color-bg-secondary));padding:.75rem;overflow:hidden}.kov-sparkline{display:block;width:100%;height:90px}.live-monitor-hero{padding:1.25rem}.live-monitor-title{display:flex;align-items:flex-start;justify-content:space-between;gap:1rem;margin-bottom:1rem}.live-monitor-title h2{margin:0}.live-monitor-title p{margin:.25rem 0 0;color:var(--color-text-muted);font-size:.9rem}.mb-4{margin-bottom:1rem}.live-pulse{animation:livePulse .55s ease}@keyframes livePulse{0%{filter:brightness(1.05)}100%{filter:brightness(1)}}@media(max-width:900px){.live-gauge-row,.live-gauge-row.big{grid-template-columns:repeat(2,minmax(0,1fr))}.hero-time-card{text-align:left}.topbar-greeting{display:none}}@media(max-width:620px){.live-gauge-row,.live-gauge-row.big{grid-template-columns:1fr}.dashboard-hero{display:block}.hero-time-card{margin-top:1rem}}

/* RC5.8 Live Core + Notifications + Documentation Sync */
.notifications{position:relative}.notification-toggle{position:relative}.notification-badge{position:absolute;right:2px;top:2px;min-width:18px;height:18px;border-radius:999px;background:#ef4444;color:#fff;font-size:.68rem;font-weight:900;display:flex;align-items:center;justify-content:center;padding:0 .25rem;box-shadow:0 0 0 2px var(--color-bg-primary)}.notification-dropdown{position:absolute;right:0;top:48px;width:360px;max-width:calc(100vw - 2rem);background:var(--color-bg-card);border:1px solid var(--color-border);border-radius:16px;box-shadow:0 20px 60px rgba(15,23,42,.18);z-index:100;padding:.75rem;overflow:hidden}.notification-head{display:flex;align-items:center;justify-content:space-between;gap:.75rem;padding:.25rem .25rem .75rem;border-bottom:1px solid var(--color-border)}.notification-list{display:grid;gap:.55rem;max-height:380px;overflow:auto;padding:.65rem 0}.notification-empty{padding:1rem;text-align:center;color:var(--color-text-muted);font-size:.9rem}.notification-item{display:grid;grid-template-columns:12px minmax(0,1fr);gap:.65rem;padding:.75rem;border:1px solid var(--color-border);border-radius:12px;background:var(--color-bg-secondary)}.notification-item.unread{background:rgba(16,185,129,.07);border-color:rgba(16,185,129,.25)}.notification-dot{width:9px;height:9px;border-radius:50%;margin-top:.33rem;background:#94a3b8}.notification-error .notification-dot{background:#ef4444}.notification-warning .notification-dot{background:#f59e0b}.notification-success .notification-dot{background:#10b981}.notification-info .notification-dot{background:#06b6d4}.notification-content strong{display:block;font-size:.9rem}.notification-content p{margin:.25rem 0;color:var(--color-text-secondary);font-size:.82rem;line-height:1.35}.notification-content small{display:block;color:var(--color-text-muted);font-size:.72rem}.notification-actions{display:flex;gap:.7rem;align-items:center;margin-top:.45rem}.notification-actions a,.notification-actions button,.notification-footer{font-size:.78rem;font-weight:800;color:var(--color-brand-primary);background:none;border:0;padding:0;text-decoration:none;cursor:pointer}.notification-footer{display:block;border-top:1px solid var(--color-border);padding:.75rem .25rem .25rem;text-align:center}.doc-sync-card{border-color:rgba(6,182,212,.30);background:linear-gradient(135deg,rgba(6,182,212,.07),rgba(16,185,129,.05))}.doc-mini-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(160px,1fr));gap:.75rem;margin-top:1rem}.doc-mini-grid div{padding:.85rem;border:1px solid var(--color-border);border-radius:12px;background:var(--color-bg-card)}.doc-mini-grid strong{display:block;font-size:1.2rem}.doc-mini-grid span{display:block;color:var(--color-text-muted);font-weight:800;font-size:.76rem;text-transform:uppercase;letter-spacing:.04em}@media(max-width:760px){.notification-dropdown{right:-72px;width:330px}.notification-head{align-items:flex-start}.topbar-right{gap:.45rem}}

/* RC5.9 — UI polish, compact uploads, palettes */
.content{padding:1.25rem}.content-header{margin-bottom:1rem}.content-title{letter-spacing:-.025em}.card{border-radius:18px}.compact-card .card-header{padding:1rem 1.15rem}.compact-card .card-body{padding:1rem}.compact-tabs{margin-bottom:1rem}.table.table-compact th,.table.table-compact td{padding:.72rem .9rem}.compact-alert{line-height:1.45}.section-title{font-size:1rem;font-weight:900;letter-spacing:-.01em;margin:1.15rem 0 .75rem}.quick-upload-card{border:1px solid color-mix(in srgb,var(--color-brand-primary) 34%,var(--color-border));border-radius:22px;background:radial-gradient(circle at 10% 0,color-mix(in srgb,var(--color-brand-primary) 16%,transparent),transparent 34%),linear-gradient(135deg,var(--color-bg-card),var(--color-bg-secondary));box-shadow:0 20px 50px rgba(15,23,42,.07);margin-bottom:1rem;overflow:hidden}.smart-dropzone{min-height:138px;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:.4rem;padding:1.5rem;border:1px dashed color-mix(in srgb,var(--color-brand-primary) 45%,var(--color-border));border-radius:20px;margin:.75rem;cursor:pointer;text-align:center;background:color-mix(in srgb,var(--color-brand-primary) 7%,transparent);transition:transform .16s ease,border-color .16s ease,background .16s ease}.smart-dropzone:hover,.smart-dropzone.dragover{transform:translateY(-1px);border-color:var(--color-brand-primary);background:color-mix(in srgb,var(--color-brand-primary) 12%,transparent)}.smart-dropzone.is-uploading{pointer-events:none;opacity:.72}.smart-dropzone-icon{width:44px;height:44px;border-radius:16px;display:grid;place-items:center;background:var(--color-brand-primary);color:#fff;font-size:1.25rem;box-shadow:0 14px 32px color-mix(in srgb,var(--color-brand-primary) 35%,transparent)}.smart-dropzone-title{font-weight:900;color:var(--color-text-primary);font-size:1rem}.smart-dropzone-subtitle,.smart-file-name{color:var(--color-text-muted);font-size:.84rem}.smart-file-name{font-weight:800}.smart-file-input{position:absolute;inline-size:1px;block-size:1px;opacity:0;pointer-events:none}.smart-dropzone-secondary{min-height:104px;box-shadow:none}.stack-list{display:grid;gap:.65rem}.stack-item{display:flex;align-items:center;justify-content:space-between;gap:1rem;padding:.9rem;border:1px solid var(--color-border);border-radius:14px;background:var(--color-bg-secondary)}.action-row{display:flex;align-items:center;gap:.45rem;flex-wrap:wrap}.modern-modules-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(280px,1fr));gap:.85rem}.module-card-head{display:flex;align-items:flex-start;justify-content:space-between;gap:.75rem;margin-bottom:.7rem}.module-card-head h4{margin:0;font-size:1rem;font-weight:900}.module-desc{min-height:2.4em}.btn{border-radius:11px}.btn-sm{border-radius:9px}.advanced-update-details,.compact-details,.manifest-details{margin:.75rem 0}.advanced-update-details>summary,.compact-details>summary,.manifest-details>summary{cursor:pointer;font-weight:900;color:var(--color-text-secondary);padding:.75rem 1rem;border:1px solid var(--color-border);border-radius:14px;background:var(--color-bg-secondary)}.theme-color-panel{display:grid;gap:.8rem}.color-palette-grid{display:flex;flex-wrap:wrap;gap:.55rem}.color-chip{width:44px;height:44px;border-radius:14px;border:1px solid var(--color-border);background:var(--chip-color);cursor:pointer;position:relative;box-shadow:inset 0 0 0 2px rgba(255,255,255,.38),0 10px 22px rgba(15,23,42,.08)}.color-chip span{position:absolute;left:50%;top:calc(100% + 5px);transform:translateX(-50%);font-size:.68rem;font-weight:800;color:var(--color-text-muted);white-space:nowrap;opacity:0;transition:opacity .15s}.color-chip:hover span{opacity:1}.color-chip.active{outline:3px solid color-mix(in srgb,var(--chip-color) 30%,transparent);outline-offset:2px}.kov-ajax-busy{cursor:progress}.kov-ajax-busy .content{opacity:.82}.kov-toast{position:fixed;right:1rem;bottom:1rem;z-index:2000;display:grid;gap:.55rem}.kov-toast-item{max-width:360px;padding:.85rem 1rem;border-radius:14px;border:1px solid var(--color-border);background:var(--color-bg-card);box-shadow:0 18px 50px rgba(15,23,42,.16);font-weight:800}.kov-toast-success{border-color:rgba(16,185,129,.35)}.kov-toast-error{border-color:rgba(239,68,68,.35)}@media(max-width:760px){.content{padding:.85rem}.smart-dropzone{min-height:120px;padding:1.1rem}.stack-item{display:block}.stack-item form{margin-top:.75rem}.table.table-compact th,.table.table-compact td{padding:.6rem}.modern-modules-grid{grid-template-columns:1fr}}

/* RC6 — Profile Center + Navigation Profiles */
.sidebar-brand-wrap{display:flex;flex-direction:column;min-width:0;gap:.2rem}
.sidebar-profile-badge{font-size:.68rem;line-height:1;color:var(--text-muted,#94a3b8);white-space:nowrap;overflow:hidden;text-overflow:ellipsis;max-width:160px}
.nav-emoji{display:inline-flex;align-items:center;justify-content:center;font-size:.95rem;font-weight:700}
.compact-header{display:flex;align-items:flex-start;justify-content:space-between;gap:1rem}
.status-badge{display:inline-flex;align-items:center;gap:.4rem;border-radius:999px;padding:.35rem .7rem;font-size:.78rem;font-weight:700;border:1px solid rgba(148,163,184,.22);background:rgba(148,163,184,.10)}
.status-badge.success{background:rgba(34,197,94,.12);color:#16a34a;border-color:rgba(34,197,94,.25)}
.profile-hero{display:flex;align-items:center;justify-content:space-between;gap:1.25rem;padding:1.2rem;margin-bottom:1rem;background:linear-gradient(135deg,rgba(99,102,241,.10),rgba(6,182,212,.07))}
.profile-hero-left{display:flex;align-items:center;gap:1rem;min-width:0}
.profile-hero h2{font-size:1.45rem;margin:0 0 .2rem;font-weight:800}
.profile-hero p{margin:0;color:var(--text-muted,#64748b);font-size:.92rem}
.profile-avatar-xl{width:86px;height:86px;border-radius:24px;background:linear-gradient(135deg,var(--color-brand-primary,#4f46e5),#06b6d4);color:#fff;display:flex;align-items:center;justify-content:center;font-size:1.8rem;font-weight:900;box-shadow:0 16px 34px rgba(15,23,42,.15);overflow:hidden;flex:0 0 auto}
.profile-avatar-xl img{width:100%;height:100%;object-fit:cover}
.profile-avatar-upload{display:flex;align-items:center;gap:.5rem;flex-wrap:wrap}
.profile-chip-row{display:flex;gap:.4rem;flex-wrap:wrap;margin-top:.65rem}
.profile-chip{border-radius:999px;padding:.25rem .55rem;background:rgba(15,23,42,.08);font-size:.74rem;font-weight:700;color:var(--text-primary,#0f172a)}
.profile-chip.muted{color:var(--text-muted,#64748b)}
.profile-tabs{display:flex;gap:.45rem;flex-wrap:wrap;margin:0 0 1rem}
.profile-tabs a{display:inline-flex;padding:.45rem .75rem;border-radius:999px;background:var(--card-bg,#fff);border:1px solid rgba(148,163,184,.22);font-size:.82rem;font-weight:700;color:var(--text-primary,#0f172a);text-decoration:none}
.profile-tabs a:hover{border-color:var(--color-brand-primary,#4f46e5);color:var(--color-brand-primary,#4f46e5)}
.profile-layout{display:grid;grid-template-columns:minmax(0,1fr) 320px;gap:1rem;align-items:start}
.profile-section{scroll-margin-top:90px}
.profile-side-stack{display:flex;flex-direction:column;gap:1rem;grid-column:2;grid-row:1 / span 2}
.profile-info-card .card-body{display:flex;flex-direction:column;gap:.75rem}
.metric-mini{display:flex;align-items:center;justify-content:space-between;border-bottom:1px solid rgba(148,163,184,.14);padding:.45rem 0}
.metric-mini:last-child{border-bottom:0}
.profile-module-tabs{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:.8rem;margin-top:1rem}
.module-tab-card{border:1px solid rgba(148,163,184,.22);border-radius:18px;padding:1rem;background:rgba(148,163,184,.06);display:flex;flex-direction:column;gap:.35rem}
.module-tab-card strong{font-size:.95rem}
.module-tab-card span{font-size:.8rem;color:var(--text-muted,#64748b)}
.nav-profile-grid{margin-bottom:1rem}
.nav-profile-card{border:1px solid rgba(148,163,184,.20)}
.nav-profile-card.active{border-color:var(--color-brand-primary,#4f46e5);box-shadow:0 10px 26px rgba(79,70,229,.12)}
.nav-profile-card code{display:inline-block;margin-top:.65rem;border-radius:8px;background:rgba(15,23,42,.08);padding:.2rem .45rem;font-size:.72rem}
.nav-preview-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:1rem}
.nav-preview-section{border:1px solid rgba(148,163,184,.18);border-radius:18px;padding:1rem;background:rgba(148,163,184,.05)}
.nav-preview-section h4{margin:0 0 .8rem;font-size:.95rem}
.nav-preview-section ul{list-style:none;margin:0;padding:0;display:flex;flex-direction:column;gap:.45rem}
.nav-preview-section li{display:grid;grid-template-columns:24px minmax(0,1fr);gap:.5rem;align-items:start}
.nav-preview-section li small{grid-column:2;color:var(--text-muted,#64748b);font-size:.7rem}
.nav-preview-section a{text-decoration:none;color:var(--text-primary,#0f172a);font-weight:700}
@media(max-width:980px){.profile-layout{grid-template-columns:1fr}.profile-side-stack{grid-column:auto;grid-row:auto}.nav-preview-grid,.profile-module-tabs{grid-template-columns:1fr}.profile-hero{flex-direction:column;align-items:flex-start}.compact-header{flex-direction:column}}


/* RC6.1 — VK-style Profile + Avatar Cropper */
.vk-profile-shell{display:grid;grid-template-columns:300px minmax(0,1fr);gap:1rem;align-items:start}
.vk-profile-left{display:flex;flex-direction:column;gap:1rem;position:sticky;top:calc(var(--topbar-height,64px) + 1rem)}
.vk-profile-card{overflow:hidden}
.vk-avatar-uploader{position:relative;width:100%;aspect-ratio:1/1.16;border:0;border-radius:18px;overflow:hidden;background:linear-gradient(135deg,var(--color-brand-primary,#4f46e5),#06b6d4);cursor:pointer;display:block;color:#fff;box-shadow:0 18px 40px rgba(15,23,42,.16)}
.vk-avatar-image-wrap{position:absolute;inset:0;display:flex;align-items:center;justify-content:center;font-size:3.4rem;font-weight:900;letter-spacing:.02em}
.vk-avatar-image-wrap img{width:100%;height:100%;object-fit:cover;display:block}
.vk-avatar-initials{display:flex;width:100%;height:100%;align-items:center;justify-content:center;background:linear-gradient(135deg,var(--color-brand-primary,#4f46e5),#06b6d4)}
.vk-avatar-overlay{position:absolute;left:0;right:0;bottom:0;padding:.75rem;background:linear-gradient(180deg,rgba(15,23,42,0),rgba(15,23,42,.82));color:#fff;font-weight:800;font-size:.86rem;transform:translateY(100%);transition:.18s ease}
.vk-avatar-uploader:hover .vk-avatar-overlay{transform:translateY(0)}
.btn-block{width:100%;justify-content:center;margin-top:.75rem}
.profile-avatar-delete .btn{margin-top:.55rem}
.vk-profile-mini{display:grid;grid-template-columns:repeat(3,1fr);gap:.45rem;margin-top:.9rem}
.vk-profile-mini div{border-radius:12px;background:rgba(148,163,184,.12);padding:.65rem;text-align:center}
.vk-profile-mini span{display:block;color:var(--color-text-muted);font-size:.72rem;font-weight:700;text-transform:uppercase;letter-spacing:.03em}.vk-profile-mini strong{display:block;font-size:1.1rem;margin-top:.15rem}
.vk-role-pill{display:inline-flex;border-radius:999px;background:rgba(16,185,129,.12);color:#059669;font-weight:800;font-size:.82rem;padding:.35rem .65rem}
.vk-profile-main{display:flex;flex-direction:column;gap:1rem;min-width:0}
.vk-profile-head{padding:1.25rem;background:linear-gradient(180deg,var(--color-bg-card,#fff),rgba(148,163,184,.08));border:1px solid rgba(148,163,184,.22)}
.vk-profile-title-row{display:flex;align-items:flex-start;justify-content:space-between;gap:1rem;border-bottom:1px solid rgba(148,163,184,.18);padding-bottom:.9rem;margin-bottom:.9rem}
.vk-profile-title-row h2{font-size:1.55rem;line-height:1.15;margin:0 0 .25rem;font-weight:900}.vk-profile-title-row p{margin:0;color:var(--color-text-muted);font-size:.92rem}
.vk-online-badge{display:inline-flex;align-items:center;gap:.35rem;border-radius:999px;background:rgba(16,185,129,.12);color:#059669;font-size:.74rem;font-weight:900;padding:.28rem .6rem}.vk-online-badge:before{content:'';width:7px;height:7px;border-radius:50%;background:#10b981;display:inline-block}
.vk-profile-status{border-bottom:1px solid rgba(148,163,184,.18);padding-bottom:.9rem;margin-bottom:.9rem;color:var(--color-text-secondary);line-height:1.55;white-space:pre-wrap}
.vk-profile-facts{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:.55rem}.vk-profile-facts div{display:flex;justify-content:space-between;gap:1rem;border-radius:12px;background:rgba(148,163,184,.10);padding:.65rem .75rem}.vk-profile-facts span{color:var(--color-text-muted);font-size:.78rem}.vk-profile-facts strong{font-size:.85rem;text-align:right;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;max-width:65%}
.vk-profile-tabs{position:sticky;top:calc(var(--topbar-height,64px) + .65rem);z-index:12;background:var(--color-bg-secondary,#f8fafc);padding:.25rem 0;margin-bottom:0}
.avatar-crop-modal[hidden]{display:none!important}.avatar-crop-modal{position:fixed;inset:0;z-index:2000;display:flex;align-items:center;justify-content:center;padding:1rem}.avatar-crop-backdrop{position:absolute;inset:0;background:rgba(15,23,42,.72);backdrop-filter:blur(4px)}.avatar-crop-dialog{position:relative;width:min(520px,100%);border-radius:22px;background:var(--color-bg-card,#fff);box-shadow:0 30px 90px rgba(0,0,0,.35);padding:1rem;border:1px solid rgba(148,163,184,.25)}.avatar-crop-head{display:flex;justify-content:space-between;gap:1rem;align-items:flex-start;margin-bottom:1rem}.avatar-crop-head strong{display:block;font-size:1.05rem}.avatar-crop-head span{display:block;color:var(--color-text-muted);font-size:.84rem;margin-top:.2rem}.avatar-crop-close{border:0;background:rgba(148,163,184,.16);color:var(--color-text-primary);font-size:1.35rem;line-height:1;border-radius:10px;width:34px;height:34px;cursor:pointer}.avatar-crop-frame{width:min(360px,72vw);height:min(360px,72vw);margin:0 auto;border-radius:26px;overflow:hidden;position:relative;background:#0f172a;box-shadow:inset 0 0 0 3px rgba(255,255,255,.8),0 12px 30px rgba(15,23,42,.18);touch-action:none}.avatar-crop-frame:after{content:'';position:absolute;inset:0;border:1px solid rgba(255,255,255,.75);box-shadow:inset 0 0 0 9999px rgba(0,0,0,.04);pointer-events:none}.avatar-crop-frame img{position:absolute;top:0;left:0;user-select:none;max-width:none;transform-origin:0 0}.avatar-zoom-label{display:flex;align-items:center;gap:.8rem;margin:1rem auto 0;max-width:360px;color:var(--color-text-muted);font-weight:700;font-size:.82rem}.avatar-zoom-label input{flex:1}.avatar-crop-actions{display:flex;justify-content:flex-end;gap:.6rem;margin-top:1rem}.avatar-upload-busy .vk-avatar-overlay{transform:translateY(0);background:rgba(15,23,42,.78)}
@media(max-width:980px){.vk-profile-shell{grid-template-columns:1fr}.vk-profile-left{position:static}.vk-profile-facts{grid-template-columns:1fr}.vk-profile-tabs{position:static}.vk-avatar-uploader{max-width:360px;margin:0 auto}}

/* RC6.2 Profile cleanup: VK-style account card, no module placeholders, no avatar artifacts */
.user-avatar.has-image{font-size:0;line-height:0;padding:0;overflow:hidden;position:relative}
.user-avatar.has-image img{display:block;width:100%;height:100%;object-fit:cover;border-radius:inherit}
.user-avatar.has-initials{font-size:.85rem;line-height:1}
.vk-profile-v2{align-items:start}.profile-page-header .content-subtitle{max-width:760px}
.profile-photo-card .vk-avatar-uploader{margin:0 auto;border-radius:18px;aspect-ratio:1/1.12;box-shadow:0 20px 46px rgba(2,6,23,.22)}
.profile-photo-card .btn-block{margin-top:.65rem}.profile-access-card .card-body{display:flex;flex-direction:column;gap:.75rem}.profile-chip-row.compact{margin-top:0}.vk-profile-head-clean{padding:1.1rem 1.25rem}.vk-profile-head-clean h2{margin-bottom:.2rem}.vk-profile-head-clean .vk-profile-title-row{margin-bottom:.85rem}.vk-status-editor{border-radius:14px;background:rgba(148,163,184,.10);border:1px solid rgba(148,163,184,.14);padding:.85rem;margin-bottom:.85rem}.vk-status-label{display:block;font-size:.76rem;font-weight:800;text-transform:uppercase;letter-spacing:.05em;color:var(--color-text-muted);margin-bottom:.35rem}.vk-status-input{width:100%;border:0;background:transparent;color:var(--color-text-primary);resize:vertical;min-height:58px;font-size:.95rem;line-height:1.45;outline:none}.vk-status-input::placeholder{color:var(--color-text-muted)}.vk-status-actions{display:flex;align-items:center;justify-content:space-between;gap:.75rem;margin-top:.55rem;flex-wrap:wrap}.profile-tabs-clean{display:flex;gap:.35rem;flex-wrap:wrap;border-bottom:1px solid var(--color-border);padding:.25rem .25rem .55rem}.profile-tabs-clean a{border-radius:10px;padding:.55rem .75rem;background:rgba(148,163,184,.10);color:var(--color-text-secondary);font-weight:800;text-decoration:none}.profile-tabs-clean a:hover{background:rgba(20,184,166,.15);color:var(--color-brand-primary)}.profile-session-actions{display:flex;align-items:center;gap:.75rem;flex-wrap:wrap;margin-top:1rem}.vk-profile-v2 .profile-section{scroll-margin-top:92px}.vk-profile-v2 .card-header{padding:.95rem 1.15rem}.vk-profile-v2 .card-body{padding:1rem 1.15rem}.vk-profile-v2 .data-table th{width:220px}.profile-module-tabs,.module-tab-card{display:none!important}
@media(max-width:980px){.vk-status-actions{align-items:flex-start}.profile-tabs-clean{position:static}.vk-profile-v2 .data-table th{width:auto}}

/* RC6.3 — Profile wall + tabbed profile cleanup */
.profile-page-header{display:none!important}
.vk-profile-page{grid-template-columns:292px minmax(0,1fr);gap:1rem;margin-top:.25rem}
.vk-profile-page .vk-profile-left{top:calc(var(--topbar-height,64px) + .75rem)}
.vk-profile-page .vk-profile-card{border-radius:16px}
.vk-avatar-main{width:100%;max-width:260px;min-height:300px;margin:0 auto;border-radius:16px;background:linear-gradient(135deg,rgba(15,23,42,.18),rgba(20,184,166,.12));overflow:hidden;position:relative;border:1px solid rgba(148,163,184,.20)}
.vk-avatar-main .vk-avatar-image-wrap{position:absolute;inset:0;display:block}
.vk-avatar-main img{width:100%;height:100%;object-fit:cover;display:block}
.vk-avatar-main img[hidden], .vk-avatar-main .vk-avatar-initials[hidden]{display:none!important}
.vk-avatar-main img:not([hidden]) ~ .vk-avatar-initials{display:none!important}
.vk-avatar-main .vk-avatar-initials{position:absolute;inset:0;display:flex;align-items:center;justify-content:center;font-size:4.2rem;font-weight:900;color:#fff;background:linear-gradient(135deg,var(--color-brand-primary,#14b8a6),#2563eb);line-height:1}
.vk-avatar-overlay{position:absolute;left:0;right:0;bottom:0;padding:.85rem;background:linear-gradient(180deg,transparent,rgba(2,6,23,.78));color:#fff;font-weight:800;text-align:center;opacity:0;transition:.18s ease}
.vk-avatar-main:hover .vk-avatar-overlay{opacity:1}
.vk-profile-actions{display:flex;flex-direction:column;gap:.5rem;margin-top:.75rem}.vk-profile-actions .btn{justify-content:center}
.vk-side-row{display:flex;align-items:center;justify-content:space-between;border-bottom:1px solid rgba(148,163,184,.12);padding:.6rem 0}.vk-side-row:first-child{padding-top:0}.vk-side-row span{color:var(--color-text-muted);font-size:.82rem}.vk-side-row strong{font-size:.98rem}
.vk-profile-wall-head{padding:1.05rem 1.15rem;border-radius:16px;background:linear-gradient(180deg,var(--color-bg-card),rgba(148,163,184,.06));border:1px solid rgba(148,163,184,.18)}
.vk-profile-title-row.clean{border-bottom:1px solid rgba(148,163,184,.16);padding-bottom:.8rem;margin-bottom:.8rem}
.vk-profile-title-main h2{font-size:1.65rem;margin:0 0 .25rem;font-weight:900;letter-spacing:-.02em}.vk-profile-title-main p{color:var(--color-text-muted);margin:0;font-size:.9rem}
.vk-profile-status-view{color:var(--color-text-secondary);line-height:1.55;white-space:pre-wrap;border-bottom:1px solid rgba(148,163,184,.16);padding-bottom:.8rem;margin-bottom:.8rem;min-height:34px}.vk-profile-status-view .text-muted{white-space:normal}
.vk-profile-facts.compact{grid-template-columns:repeat(4,minmax(0,1fr));gap:.5rem}.vk-profile-facts.compact div{display:flex;flex-direction:column;gap:.22rem;justify-content:flex-start}.vk-profile-facts.compact strong{text-align:left;max-width:none;font-size:.82rem}.vk-profile-facts.compact span{font-size:.72rem;text-transform:uppercase;letter-spacing:.03em;font-weight:800}
.vk-profile-real-tabs{position:sticky;top:calc(var(--topbar-height,64px) + .5rem);z-index:20;background:var(--color-bg-secondary,#0f172a);border-bottom:1px solid rgba(148,163,184,.18);padding:.35rem 0 .5rem;gap:.35rem;margin:0}
.vk-profile-real-tabs a{border-radius:12px;padding:.6rem .82rem;background:rgba(148,163,184,.10);border:1px solid transparent;color:var(--color-text-secondary);font-weight:900;text-decoration:none}.vk-profile-real-tabs a:hover,.vk-profile-real-tabs a.active{background:rgba(20,184,166,.18);border-color:rgba(20,184,166,.35);color:var(--color-brand-primary,#14b8a6)}
.profile-tab-panel{display:none}.profile-tab-panel.active{display:block}.profile-tab-panel .card{border-radius:16px}
.vk-wall-composer{padding:1rem}.vk-wall-input{min-height:86px;resize:vertical;border-radius:14px}.vk-wall-actions{display:flex;justify-content:space-between;align-items:center;gap:1rem;flex-wrap:wrap;margin-top:.75rem}
.vk-wall-list{display:flex;flex-direction:column;gap:.75rem;margin-top:.8rem}.vk-wall-post{display:grid;grid-template-columns:48px minmax(0,1fr);gap:.75rem;padding:.95rem}.vk-wall-avatar{width:48px;height:48px;border-radius:50%;overflow:hidden;background:linear-gradient(135deg,var(--color-brand-primary,#14b8a6),#2563eb);display:flex;align-items:center;justify-content:center;color:#fff;font-weight:900;flex:0 0 auto}.vk-wall-avatar img{width:100%;height:100%;object-fit:cover}.vk-wall-meta{display:flex;align-items:center;gap:.55rem;flex-wrap:wrap;margin-bottom:.35rem}.vk-wall-meta strong{font-weight:900}.vk-wall-meta span{font-size:.78rem;color:var(--color-text-muted)}.vk-wall-text{color:var(--color-text-secondary);line-height:1.55;white-space:pre-wrap}.vk-wall-delete{margin-top:.45rem}.link-danger{border:0;background:transparent;color:#ef4444;padding:0;cursor:pointer;font-weight:800;font-size:.82rem}.vk-wall-empty{padding:1.1rem;text-align:center;color:var(--color-text-muted)}.vk-wall-empty strong{display:block;color:var(--color-text-primary);font-size:1rem;margin-bottom:.2rem}
.user-avatar.has-image{font-size:0!important;color:transparent!important}.user-avatar.has-image img{display:block!important;width:100%;height:100%;object-fit:cover}.user-avatar.has-image::before,.user-avatar.has-image::after{display:none!important;content:none!important}.user-avatar.has-initials img{display:none!important}.profile-avatar-delete .btn{margin-top:.65rem}
@media(max-width:1180px){.vk-profile-facts.compact{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:980px){.vk-profile-page{grid-template-columns:1fr}.vk-profile-page .vk-profile-left{position:static}.vk-avatar-main{max-width:360px;min-height:360px}.vk-profile-real-tabs{position:static}.vk-profile-facts.compact{grid-template-columns:1fr}.vk-wall-post{grid-template-columns:42px 1fr}.vk-wall-avatar{width:42px;height:42px}}

/* RC6.4 — Clean VK-style profile polish */
.profile-vk-shell{display:grid;grid-template-columns:274px minmax(0,1fr);gap:18px;align-items:start;margin-top:0;max-width:1280px}
.profile-vk-side{display:flex;flex-direction:column;gap:12px;position:sticky;top:calc(var(--topbar-height,64px) + 12px);min-width:0}
.profile-vk-card,.profile-vk-photo-card,.profile-vk-side-card{border-radius:16px;border:1px solid rgba(148,163,184,.20);background:var(--color-bg-card);box-shadow:0 16px 38px rgba(2,6,23,.10);overflow:hidden}
.profile-vk-photo-card{padding:12px}
.profile-vk-photo{position:relative;width:100%;aspect-ratio:1/1.08;border:0;border-radius:14px;overflow:hidden;background:linear-gradient(135deg,var(--color-brand-primary,#14b8a6),#2563eb);display:block;cursor:pointer;color:#fff;box-shadow:0 12px 28px rgba(2,6,23,.18)}
.profile-vk-photo img{width:100%;height:100%;display:block;object-fit:cover;border:0}
.profile-vk-photo-initials{position:absolute;inset:0;display:flex;align-items:center;justify-content:center;color:#fff;font-size:4rem;font-weight:900;line-height:1;background:linear-gradient(135deg,var(--color-brand-primary,#14b8a6),#2563eb)}
.profile-vk-photo-overlay{position:absolute;left:0;right:0;bottom:0;display:flex;justify-content:center;padding:15px 12px;background:linear-gradient(180deg,rgba(2,6,23,0),rgba(2,6,23,.88));font-weight:900;color:#fff;opacity:0;transform:translateY(8px);transition:.16s ease}
.profile-vk-photo:hover .profile-vk-photo-overlay{opacity:1;transform:translateY(0)}
.profile-vk-link-button{width:100%;border:1px solid rgba(148,163,184,.22);border-radius:12px;background:rgba(148,163,184,.10);color:var(--color-text-primary);font-weight:900;padding:10px 12px;margin-top:10px;cursor:pointer}
.profile-vk-link-button:hover{background:rgba(20,184,166,.14);color:var(--color-brand-primary)}
.profile-vk-side-card{padding:12px}
.profile-vk-main-action{display:flex;align-items:center;justify-content:center;text-decoration:none;width:100%;border-radius:12px;padding:12px 14px;background:linear-gradient(135deg,var(--color-brand-primary,#14b8a6),#16a34a);color:#fff;font-weight:900;margin-bottom:12px}
.profile-vk-side-stats{display:grid;grid-template-columns:repeat(3,1fr);gap:7px;margin-bottom:12px}
.profile-vk-side-stats div{border-radius:12px;background:rgba(148,163,184,.10);padding:9px 6px;text-align:center;min-width:0}
.profile-vk-side-stats span{display:block;color:var(--color-text-muted);font-size:10px;font-weight:900;text-transform:uppercase;letter-spacing:.04em}.profile-vk-side-stats strong{display:block;margin-top:2px;font-size:17px;color:var(--color-text-primary)}
.profile-vk-role-list{display:flex;flex-wrap:wrap;gap:6px}.profile-vk-role-list span{border-radius:999px;background:rgba(20,184,166,.12);color:var(--color-brand-primary);padding:5px 9px;font-size:12px;font-weight:900}.profile-vk-role-list .muted{background:rgba(148,163,184,.10);color:var(--color-text-muted)}
.profile-vk-main{display:flex;flex-direction:column;gap:12px;min-width:0}
.profile-vk-header-card{padding:18px 20px;background:linear-gradient(180deg,var(--color-bg-card),rgba(148,163,184,.055))}
.profile-vk-header-top{display:flex;justify-content:space-between;gap:16px;align-items:flex-start;padding-bottom:13px;border-bottom:1px solid rgba(148,163,184,.18)}
.profile-vk-name-block h1{font-size:28px;line-height:1.1;margin:0 0 6px;font-weight:950;letter-spacing:-.03em;color:var(--color-text-primary)}
.profile-vk-identity{margin:0;color:var(--color-text-muted);font-size:14px}
.profile-vk-online{display:inline-flex;align-items:center;justify-content:center;white-space:nowrap;border-radius:999px;background:rgba(16,185,129,.13);color:#10b981;padding:7px 12px;font-size:12px;font-weight:950;line-height:1}
.profile-vk-status-line{padding:13px 0;border-bottom:1px solid rgba(148,163,184,.18);color:var(--color-text-secondary);line-height:1.5;min-height:48px;display:flex;align-items:center;justify-content:center;text-align:center;white-space:pre-wrap}
.profile-vk-status-line .text-muted{color:var(--color-text-muted);white-space:normal}
.profile-vk-info-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:8px;padding-top:12px}
.profile-vk-info-grid div{border-radius:12px;background:rgba(148,163,184,.10);padding:10px 12px;min-width:0}.profile-vk-info-grid span{display:block;color:var(--color-text-muted);font-size:11px;font-weight:950;text-transform:uppercase;letter-spacing:.04em;margin-bottom:4px}.profile-vk-info-grid strong{display:block;color:var(--color-text-primary);font-size:13px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.profile-vk-tabs{display:flex;gap:7px;flex-wrap:wrap;position:sticky;top:calc(var(--topbar-height,64px) + 8px);z-index:30;padding:5px 0 9px;background:var(--color-bg-secondary);border-bottom:1px solid rgba(148,163,184,.16)}
.profile-vk-tabs a{display:inline-flex;align-items:center;justify-content:center;border-radius:12px;padding:10px 14px;background:rgba(148,163,184,.10);border:1px solid rgba(148,163,184,.10);color:var(--color-text-primary);font-weight:950;text-decoration:none;font-size:14px}.profile-vk-tabs a:hover,.profile-vk-tabs a.active{background:rgba(20,184,166,.18);border-color:rgba(20,184,166,.38);color:var(--color-brand-primary)}
.profile-tab-panel{display:none}.profile-tab-panel.active{display:block}.profile-vk-wall-composer{padding:16px}
.profile-vk-wall-input{display:block;width:100%;min-height:104px;border:1px solid rgba(148,163,184,.24);border-radius:14px;background:rgba(15,23,42,.18);color:var(--color-text-primary);padding:13px 14px;resize:vertical;outline:none;line-height:1.45}.profile-vk-wall-input:focus{border-color:rgba(20,184,166,.5);box-shadow:0 0 0 3px rgba(20,184,166,.10)}.profile-vk-wall-input::placeholder{color:var(--color-text-muted)}
.profile-vk-wall-actions{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-top:12px;flex-wrap:wrap}.profile-vk-wall-actions span{color:var(--color-text-muted);font-size:13px}.profile-vk-wall-actions .btn{min-width:140px}
.profile-vk-wall-list{display:flex;flex-direction:column;gap:10px;margin-top:12px}.profile-vk-wall-post{display:grid;grid-template-columns:46px minmax(0,1fr);gap:12px;padding:15px}.profile-vk-wall-avatar{width:46px;height:46px;border-radius:50%;overflow:hidden;background:linear-gradient(135deg,var(--color-brand-primary,#14b8a6),#2563eb);display:flex;align-items:center;justify-content:center;color:#fff;font-weight:950;flex:0 0 auto}.profile-vk-wall-avatar img{display:block;width:100%;height:100%;object-fit:cover}.profile-vk-wall-meta{display:flex;align-items:center;gap:8px;flex-wrap:wrap;margin-bottom:6px}.profile-vk-wall-meta strong{font-weight:950}.profile-vk-wall-meta span{font-size:12px;color:var(--color-text-muted)}.profile-vk-wall-text{color:var(--color-text-secondary);line-height:1.55;white-space:pre-wrap}.profile-vk-wall-delete{margin-top:8px}.profile-vk-wall-delete button{border:0;background:transparent;color:#ef4444;padding:0;cursor:pointer;font-weight:850;font-size:13px}.profile-vk-wall-empty{padding:24px;text-align:center;color:var(--color-text-muted)}.profile-vk-wall-empty strong{display:block;color:var(--color-text-primary);font-size:17px;margin-bottom:5px}.profile-vk-wall-empty p{margin:0;color:var(--color-text-muted)}
.profile-vk-settings-card{padding:0}.profile-vk-section-head{padding:18px 20px;border-bottom:1px solid rgba(148,163,184,.18)}.profile-vk-section-head h3{margin:0;font-size:18px;font-weight:950}.profile-vk-section-head p{margin:5px 0 0;color:var(--color-text-muted)}.profile-vk-form{padding:20px}.profile-vk-form .form-input{background:rgba(15,23,42,.16);border-color:rgba(148,163,184,.24)}.profile-vk-session-table th{width:220px}.profile-vk-session-actions{display:flex;align-items:center;gap:12px;flex-wrap:wrap;margin-top:16px}.profile-vk-session-actions span{color:var(--color-text-muted);font-size:13px;max-width:620px}
.profile-vk-shell .card{box-shadow:0 12px 28px rgba(2,6,23,.08)}
.profile-vk-shell .vk-profile-shell,.profile-vk-shell .vk-profile-page,.profile-vk-shell .vk-avatar-initials,.profile-vk-shell .profile-avatar-xl{display:unset}
.user-avatar.has-image{font-size:0!important;color:transparent!important;line-height:0!important;padding:0!important;overflow:hidden}.user-avatar.has-image img{display:block!important;width:100%!important;height:100%!important;object-fit:cover!important;border-radius:inherit}.user-avatar.has-image::before,.user-avatar.has-image::after{content:none!important;display:none!important}
@media(max-width:1120px){.profile-vk-info-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.profile-vk-shell{grid-template-columns:250px minmax(0,1fr)}}
@media(max-width:880px){.profile-vk-shell{grid-template-columns:1fr}.profile-vk-side{position:static}.profile-vk-photo{max-width:360px;margin:0 auto}.profile-vk-tabs{position:static}.profile-vk-info-grid{grid-template-columns:1fr}.profile-vk-header-top{align-items:flex-start}.profile-vk-wall-post{grid-template-columns:40px minmax(0,1fr)}.profile-vk-wall-avatar{width:40px;height:40px}}

/* RC6.5 — Profile Perfection: polished VK-like profile */
.profile-vk-shell.profile-perfect{max-width:1320px;grid-template-columns:292px minmax(0,1fr);gap:18px;align-items:start;margin:0 auto;padding:0 2px 28px}.profile-perfect *{box-sizing:border-box}.profile-perfect .card{border:1px solid rgba(148,163,184,.18);background:linear-gradient(180deg,rgba(30,41,59,.96),rgba(25,35,52,.98));box-shadow:0 18px 44px rgba(2,6,23,.18);border-radius:18px}.profile-perfect-side{gap:14px;top:calc(var(--topbar-height,64px) + 14px)}
.profile-perfect-photo-card{padding:13px;background:linear-gradient(180deg,rgba(30,41,59,.94),rgba(19,29,45,.98))}.profile-perfect-photo{aspect-ratio:1/1.12;border-radius:16px;box-shadow:0 18px 42px rgba(0,0,0,.22);outline:1px solid rgba(255,255,255,.05);background:#0f172a}.profile-perfect-photo img{filter:contrast(1.03) saturate(1.02)}.profile-perfect-avatar-delete .profile-vk-link-button{height:42px;margin-top:11px;border-radius:13px;font-size:14px;background:rgba(148,163,184,.10);color:#e5edf8}.profile-perfect-avatar-delete .profile-vk-link-button:hover{background:rgba(239,68,68,.13);border-color:rgba(239,68,68,.35);color:#fca5a5}
.profile-perfect-mini-card,.profile-perfect-people-card{padding:14px;background:linear-gradient(180deg,rgba(30,41,59,.90),rgba(20,30,48,.98))}.profile-perfect-mini-card .profile-vk-main-action{height:44px;margin-bottom:12px;border-radius:13px;font-size:15px;background:linear-gradient(135deg,var(--color-brand-primary,#14b8a6),#22c55e);box-shadow:0 10px 22px rgba(20,184,166,.18)}.profile-perfect-stats{gap:8px;margin-bottom:12px}.profile-perfect-stats div{padding:10px 8px;border-radius:13px;background:rgba(15,23,42,.35);border:1px solid rgba(148,163,184,.10)}.profile-perfect-stats span{font-size:10px}.profile-perfect-stats strong{font-size:18px}.profile-perfect-side-title{display:flex;align-items:center;justify-content:space-between;margin:0 0 9px;font-size:14px;font-weight:950;color:var(--color-text-primary)}.profile-perfect-side-title:after{content:"";width:7px;height:7px;border-radius:50%;background:var(--color-brand-primary,#14b8a6);box-shadow:0 0 16px rgba(20,184,166,.55)}.profile-perfect-empty-note{margin:0;color:var(--color-text-muted);font-size:13px;line-height:1.45}.profile-perfect-people-list{display:flex;flex-direction:column;gap:8px}.profile-perfect-person{display:grid;grid-template-columns:34px minmax(0,1fr);gap:9px;align-items:center;padding:8px;border-radius:12px;background:rgba(15,23,42,.24);border:1px solid rgba(148,163,184,.08)}.profile-perfect-person-avatar{width:34px;height:34px;border-radius:50%;overflow:hidden;background:linear-gradient(135deg,var(--color-brand-primary,#14b8a6),#2563eb);display:flex;align-items:center;justify-content:center;color:#fff;font-weight:950}.profile-perfect-person-avatar img{width:100%;height:100%;object-fit:cover;display:block}.profile-perfect-person strong{display:block;font-size:13px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.profile-perfect-person span{display:block;margin-top:2px;font-size:11px;color:var(--color-text-muted);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.profile-perfect-main{gap:13px}.profile-perfect-header-card{padding:20px 21px 18px!important;background:linear-gradient(180deg,rgba(30,41,59,.98),rgba(23,34,52,.98))}.profile-perfect-header-card .profile-vk-header-top{padding-bottom:14px}.profile-perfect-header-card h1{font-size:30px;letter-spacing:-.035em}.profile-perfect-status-line{justify-content:flex-start!important;text-align:left!important;min-height:52px;padding:15px 2px!important;font-size:15px;color:#d7e2f0}.profile-perfect-status-line .text-muted{color:#8ea0ba}.profile-perfect-info-grid{gap:9px!important}.profile-perfect-info-grid div{padding:12px 13px!important;background:rgba(15,23,42,.26)!important;border:1px solid rgba(148,163,184,.10)}.profile-perfect-info-grid span{font-size:10px!important;letter-spacing:.06em}.profile-perfect-info-grid strong{font-size:13px!important;color:#eef4ff!important}.profile-perfect-tabs{display:flex!important;align-items:center;gap:8px;padding:8px 0 10px!important;margin:0!important;background:var(--color-bg-secondary)!important;border-bottom:1px solid rgba(148,163,184,.16)}.profile-perfect-tabs a{height:42px!important;min-width:116px;padding:0 16px!important;border-radius:13px!important;background:rgba(30,41,59,.92)!important;border:1px solid rgba(148,163,184,.14)!important;color:#e8eef8!important;font-size:14px!important;line-height:1!important;box-shadow:0 10px 22px rgba(2,6,23,.08)}.profile-perfect-tabs a:hover,.profile-perfect-tabs a.active{background:rgba(20,184,166,.18)!important;border-color:rgba(20,184,166,.40)!important;color:var(--color-brand-primary,#14b8a6)!important;transform:translateY(-1px)}
.profile-perfect-wall-composer{padding:16px!important}.profile-perfect .profile-vk-wall-input,.profile-perfect-form .form-input{width:100%!important;display:block!important;background:rgba(15,23,42,.38)!important;border:1px solid rgba(148,163,184,.22)!important;color:#eef4ff!important;border-radius:13px!important;min-height:46px!important;padding:12px 14px!important;line-height:1.4!important;font-size:14px!important;box-shadow:inset 0 1px 0 rgba(255,255,255,.03)!important}.profile-perfect-form textarea.form-input,.profile-perfect .profile-vk-wall-input{min-height:118px!important;resize:vertical!important}.profile-perfect .profile-vk-wall-input::placeholder,.profile-perfect-form .form-input::placeholder{color:#73839c!important}.profile-perfect-form .form-input:focus,.profile-perfect .profile-vk-wall-input:focus{border-color:rgba(20,184,166,.55)!important;box-shadow:0 0 0 3px rgba(20,184,166,.12),inset 0 1px 0 rgba(255,255,255,.03)!important;outline:0!important}.profile-perfect-form input[disabled]{opacity:.72;color:#9fb0c7!important}.profile-perfect .form-label{display:block!important;margin:0 0 7px!important;color:#c8d5e7!important;font-size:12px!important;text-transform:uppercase!important;letter-spacing:.05em!important;font-weight:900!important}.profile-perfect-form-grid{display:grid;gap:14px}.profile-perfect-form-grid.two{grid-template-columns:repeat(2,minmax(0,1fr))}.profile-perfect-form .form-group{margin:0 0 14px!important}.profile-perfect-form .form-row{display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:14px!important;margin:0!important}.profile-perfect-settings-card{overflow:hidden}.profile-perfect-settings-card .profile-vk-section-head{padding:18px 20px!important;background:rgba(15,23,42,.18)}.profile-perfect-settings-card .profile-vk-section-head h3{font-size:19px}.profile-perfect-settings-card .profile-vk-section-head p{font-size:14px}.profile-perfect-form{padding:20px!important}.profile-perfect-form-actions{display:flex;align-items:center;gap:10px;flex-wrap:wrap;margin-top:4px}.profile-perfect .btn{min-height:42px;border-radius:12px;font-weight:900}.profile-perfect .btn-primary{background:linear-gradient(135deg,var(--color-brand-primary,#14b8a6),#22c55e);border-color:transparent}.profile-perfect .btn-secondary{background:rgba(148,163,184,.12);border:1px solid rgba(148,163,184,.18);color:#e8eef8}.profile-perfect .btn-danger{background:linear-gradient(135deg,#ef4444,#f97316);border-color:transparent;color:#fff}.profile-perfect-session-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;padding:20px}.profile-perfect-session-grid div{border-radius:13px;background:rgba(15,23,42,.28);border:1px solid rgba(148,163,184,.10);padding:12px}.profile-perfect-session-grid span{display:block;color:var(--color-text-muted);font-size:11px;text-transform:uppercase;letter-spacing:.05em;font-weight:900;margin-bottom:6px}.profile-perfect-session-grid strong{display:block;color:#eef4ff;font-size:13px;line-height:1.35;word-break:break-word}.profile-perfect .profile-vk-session-actions{padding:0 20px 20px}.profile-perfect-wall-empty{padding:26px!important;background:linear-gradient(180deg,rgba(30,41,59,.94),rgba(15,23,42,.28))}.profile-perfect .profile-vk-wall-post{background:linear-gradient(180deg,rgba(30,41,59,.96),rgba(22,33,51,.98));border-radius:16px}.profile-perfect .profile-vk-wall-actions .btn{min-width:148px}.profile-perfect .profile-vk-wall-actions span{font-size:13px;color:#91a4bf}.profile-vk-shell.profile-perfect .user-avatar.has-image,.profile-vk-shell.profile-perfect .vk-avatar-initials,.profile-vk-shell.profile-perfect .profile-avatar-xl{font-size:0!important;color:transparent!important}.profile-vk-shell.profile-perfect .user-avatar.has-image:before,.profile-vk-shell.profile-perfect .user-avatar.has-image:after{display:none!important;content:none!important}
@media(max-width:1180px){.profile-vk-shell.profile-perfect{grid-template-columns:260px minmax(0,1fr)}.profile-perfect-info-grid{grid-template-columns:repeat(2,minmax(0,1fr))!important}.profile-perfect-tabs a{min-width:auto}}
@media(max-width:900px){.profile-vk-shell.profile-perfect{grid-template-columns:1fr}.profile-perfect-side{position:static}.profile-perfect-photo{max-width:360px;margin:0 auto}.profile-perfect-form-grid.two,.profile-perfect-form .form-row,.profile-perfect-session-grid{grid-template-columns:1fr!important}.profile-perfect-tabs{position:static!important}.profile-perfect-tabs a{flex:1 1 auto}.profile-perfect-info-grid{grid-template-columns:1fr!important}}

/* RC7 — User Portal + Dashboard Widgets + Impersonation */
.portal-body{margin:0;background:#0f172a;color:#e5eefc;font-family:Inter,system-ui,-apple-system,Segoe UI,Arial,sans-serif}.portal-shell{min-height:100vh;display:grid;grid-template-columns:260px 1fr}.portal-sidebar{background:#0b1220;border-right:1px solid rgba(148,163,184,.18);padding:24px 18px;position:sticky;top:0;height:100vh}.portal-brand{font-size:22px;font-weight:900;margin-bottom:22px;letter-spacing:-.03em}.portal-menu{display:flex;flex-direction:column;gap:8px}.portal-menu-link{display:flex;align-items:center;min-height:44px;padding:0 14px;border-radius:14px;color:#cbd5e1;text-decoration:none;font-weight:800;background:transparent;border:1px solid transparent}.portal-menu-link:hover,.portal-menu-link.active{color:#fff;background:rgba(34,211,238,.12);border-color:rgba(34,211,238,.25)}.portal-menu-link.disabled{opacity:.45;pointer-events:none}.portal-main{padding:24px;min-width:0}.portal-topbar{display:flex;justify-content:space-between;align-items:center;gap:16px;margin-bottom:22px;background:#111c2f;border:1px solid rgba(148,163,184,.18);border-radius:20px;padding:16px 18px}.portal-topbar h1{margin:0;font-size:26px}.portal-topbar-actions{display:flex;align-items:center;gap:12px}.portal-user{display:flex;align-items:center;gap:10px;text-decoration:none;color:#e5eefc;background:rgba(148,163,184,.1);border:1px solid rgba(148,163,184,.18);border-radius:999px;padding:6px 12px 6px 6px}.portal-user img,.portal-user span{width:34px;height:34px;border-radius:50%;display:flex;align-items:center;justify-content:center;background:var(--color-brand-primary);color:#fff;object-fit:cover;font-weight:900}.portal-hero{display:flex;align-items:center;justify-content:space-between;gap:16px;margin-bottom:18px;background:linear-gradient(135deg,rgba(34,211,238,.13),rgba(16,185,129,.10));border:1px solid rgba(34,211,238,.25);border-radius:22px;padding:24px}.portal-greeting{font-size:28px;font-weight:950;letter-spacing:-.04em;margin-bottom:6px}.portal-hero p{margin:0;color:#9fb1cb}.portal-widget-settings{margin-bottom:18px}.portal-widget-form{background:#111c2f;border:1px solid rgba(148,163,184,.18);border-radius:20px;padding:18px}.portal-widget-form h3{margin:0 0 4px}.portal-widget-checks{display:flex;flex-wrap:wrap;gap:10px;margin:14px 0}.portal-widget-checks label{background:rgba(148,163,184,.09);border:1px solid rgba(148,163,184,.18);border-radius:999px;padding:10px 14px;font-weight:800}.portal-widgets{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px}.portal-widget{background:#111c2f;border:1px solid rgba(148,163,184,.18);border-radius:20px;padding:20px;min-height:170px;box-shadow:0 18px 60px rgba(0,0,0,.16)}.portal-widget-head{display:flex;align-items:center;gap:10px;font-size:18px;margin-bottom:14px}.portal-widget-head span{width:40px;height:40px;display:flex;align-items:center;justify-content:center;border-radius:14px;background:rgba(34,211,238,.12);border:1px solid rgba(34,211,238,.22)}.portal-big-number{font-size:46px;font-weight:950;line-height:1;color:#fff}.portal-weather-placeholder{font-size:42px;line-height:1;margin-bottom:10px}.impersonation-bar{position:sticky;top:0;z-index:50;background:linear-gradient(135deg,#f59e0b,#ef4444);color:#fff;padding:10px 18px;font-weight:900;display:flex;align-items:center;justify-content:space-between;gap:12px}.impersonation-bar a{color:#fff;text-decoration:none;background:rgba(255,255,255,.18);padding:8px 12px;border-radius:10px}.btn-warning{background:#f59e0b!important;color:#111827!important;border-color:#f59e0b!important}.portal-note{font-size:13px;color:#8ea0bc}@media(max-width:900px){.portal-shell{grid-template-columns:1fr}.portal-sidebar{position:static;height:auto}.portal-widgets{grid-template-columns:1fr}.portal-topbar,.portal-hero{align-items:flex-start;flex-direction:column}.portal-topbar-actions{width:100%;justify-content:space-between}}
