:root {
    --vm-bg: #f4f6fb;
    --vm-surface: #ffffff;
    --vm-surface-soft: #f8f9fd;
    --vm-text: #192033;
    --vm-muted: #7a8195;
    --vm-border: #e6e8f0;
    --vm-sidebar: #151a2e;
    --vm-sidebar-soft: #202742;
    --vm-accent: #8b5cf6;
    --vm-accent-2: #6d3ee6;
    --vm-accent-soft: #f0eaff;
    --vm-green: #12966f;
    --vm-green-soft: #e3f7f0;
    --vm-red: #d34855;
    --vm-red-soft: #ffebed;
    --vm-orange: #d67b16;
    --vm-orange-soft: #fff1dd;
    --vm-blue: #3478d4;
    --vm-blue-soft: #e9f2ff;
    --vm-shadow: 0 16px 45px rgba(28, 36, 63, .08);
    --vm-radius: 18px;
    --vm-radius-sm: 11px;
    --vm-sidebar-width: 256px;
}

* { box-sizing: border-box; }
html { background: var(--vm-bg); }
body { margin: 0; color: var(--vm-text); background: var(--vm-bg); font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif; font-size: 14px; line-height: 1.5; }
a { color: inherit; text-decoration: none; }
button, input, textarea, select { font: inherit; }
button { cursor: pointer; }
img { max-width: 100%; }
body.admin-bar { margin-top: 0 !important; }
#wpadminbar { display: none !important; }

.vm-system-message { min-height: 100vh; display: grid; place-content: center; text-align: center; padding: 40px; }
.vm-system-message img { width: 100px; margin: 0 auto 20px; }
.vm-system-message h1 { margin: 0 0 10px; }

/* Login */
.vm-login-body { overflow-x: hidden; background: #eef1f5; }
.vm-login-shell { min-height: 100vh; display: grid; grid-template-columns: minmax(0, 1.12fr) minmax(470px, .88fr); }
.vm-login-brand { position: relative; overflow: hidden; display: flex; align-items: center; padding: clamp(60px, 8vw, 140px); color: #fff; background: radial-gradient(circle at 20% 15%, #352667 0, transparent 34%), linear-gradient(145deg, #171a2e 0%, #262044 52%, #171a2d 100%); }
.vm-login-brand::before { content: ""; position: absolute; inset: 0; opacity: .08; background-image: linear-gradient(rgba(255,255,255,.35) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.35) 1px, transparent 1px); background-size: 46px 46px; }
.vm-login-brand__content { position: relative; z-index: 2; max-width: 720px; }
.vm-login-logo-large { width: 120px; height: 120px; object-fit: contain; filter: drop-shadow(0 20px 40px rgba(139,92,246,.25)); margin-bottom: 40px; }
.vm-eyebrow { display: block; color: var(--vm-accent); font-size: 11px; font-weight: 800; letter-spacing: .16em; text-transform: uppercase; }
.vm-login-brand .vm-eyebrow { color: #bd9cff; }
.vm-login-brand h1 { margin: 18px 0 20px; font-size: clamp(38px, 4.4vw, 68px); line-height: 1.06; letter-spacing: -.04em; }
.vm-login-brand p { margin: 0; max-width: 520px; color: rgba(255,255,255,.68); font-size: 18px; }
.vm-brand-orb { position: absolute; border-radius: 999px; filter: blur(2px); }
.vm-brand-orb--one { width: 470px; height: 470px; right: -180px; bottom: -170px; background: radial-gradient(circle at 40% 40%, rgba(150,93,255,.52), rgba(89,47,193,.04) 65%); }
.vm-brand-orb--two { width: 240px; height: 240px; left: -95px; top: -75px; border: 1px solid rgba(255,255,255,.15); }
.vm-login-panel { display: grid; place-items: center; padding: 50px; background: #f4f5f8; }
.vm-login-card { width: min(100%, 465px); padding: 42px; background: #fff; border: 1px solid rgba(32,39,66,.06); border-radius: 26px; box-shadow: 0 35px 90px rgba(30,35,60,.12); }
.vm-login-card__logo { display: flex; align-items: center; gap: 12px; margin-bottom: 42px; }
.vm-login-card__logo img { width: 44px; height: 44px; }
.vm-login-card__logo div { display: grid; }
.vm-login-card__logo strong { font-size: 16px; }
.vm-login-card__logo span { color: var(--vm-muted); font-size: 12px; }
.vm-login-card h2 { margin: 0 0 7px; font-size: 30px; letter-spacing: -.03em; }
.vm-muted { color: var(--vm-muted); margin: 0 0 26px; }
.vm-login-form { display: grid; gap: 18px; }
.vm-login-form label { display: grid; gap: 7px; }
.vm-login-form label > span { font-weight: 650; color: #4b5267; font-size: 13px; }
.vm-login-form input { width: 100%; height: 52px; border: 1px solid var(--vm-border); border-radius: 12px; padding: 0 15px; color: var(--vm-text); background: #fbfcff; outline: 0; transition: .18s; }
.vm-login-form input:focus { border-color: var(--vm-accent); box-shadow: 0 0 0 4px var(--vm-accent-soft); background: #fff; }
.vm-password-field { position: relative; }
.vm-password-field input { padding-right: 48px; }
.vm-password-toggle { position: absolute; right: 8px; top: 7px; width: 38px; height: 38px; border: 0; border-radius: 9px; background: transparent; opacity: .55; }
.vm-password-toggle:hover { background: var(--vm-surface-soft); opacity: 1; }
.vm-login-security { display: flex; align-items: center; justify-content: center; gap: 8px; margin-top: 24px; color: var(--vm-muted); font-size: 12px; text-align: center; }
.vm-login-security span { color: var(--vm-green); font-size: 10px; }

/* Buttons and alerts */
.vm-button { min-height: 41px; display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 0 16px; border-radius: 10px; border: 1px solid transparent; font-weight: 700; white-space: nowrap; transition: transform .16s, box-shadow .16s, background .16s; }
.vm-button:hover { transform: translateY(-1px); }
.vm-button--large { min-height: 54px; border-radius: 12px; }
.vm-button--primary { color: #fff; background: linear-gradient(135deg, var(--vm-accent), var(--vm-accent-2)); box-shadow: 0 10px 24px rgba(116,72,227,.24); }
.vm-button--primary:hover { box-shadow: 0 14px 30px rgba(116,72,227,.32); }
.vm-button--secondary { color: #51407d; border-color: #d9cef8; background: var(--vm-accent-soft); }
.vm-button--ghost { color: #4b5267; border-color: var(--vm-border); background: #fff; }
.vm-alert { margin-bottom: 20px; padding: 13px 16px; border-radius: 11px; border: 1px solid transparent; font-weight: 600; }
.vm-alert--success { color: #0c7354; background: var(--vm-green-soft); border-color: #bdebdc; }
.vm-alert--error { color: #a52d38; background: var(--vm-red-soft); border-color: #f5c7cc; }
.vm-alert--info { color: #315e9e; background: var(--vm-blue-soft); border-color: #c9dfff; }

/* Application shell */
.vm-app { min-height: 100vh; display: grid; grid-template-columns: var(--vm-sidebar-width) minmax(0, 1fr); }
.vm-sidebar { position: fixed; inset: 0 auto 0 0; z-index: 50; width: var(--vm-sidebar-width); display: flex; flex-direction: column; color: #fff; background: linear-gradient(180deg, #171c31, #111526); border-right: 1px solid rgba(255,255,255,.04); transition: width .22s, transform .22s; }
.vm-sidebar__brand { height: 82px; display: flex; align-items: center; gap: 10px; padding: 0 18px; border-bottom: 1px solid rgba(255,255,255,.07); }
.vm-sidebar__brand img { width: 42px; height: 42px; flex: 0 0 42px; object-fit: contain; }
.vm-sidebar__brand > div { display: grid; line-height: 1.05; min-width: 0; }
.vm-sidebar__brand strong { font-size: 16px; letter-spacing: .01em; }
.vm-sidebar__brand span { margin-top: 4px; color: rgba(255,255,255,.48); font-size: 11px; text-transform: uppercase; letter-spacing: .15em; }
.vm-sidebar-toggle { margin-left: auto; width: 28px; height: 28px; color: rgba(255,255,255,.6); border: 1px solid rgba(255,255,255,.1); border-radius: 8px; background: rgba(255,255,255,.04); }
.vm-nav { display: grid; gap: 5px; padding: 20px 13px; overflow-y: auto; }
.vm-nav__item { min-height: 46px; display: flex; align-items: center; gap: 13px; padding: 0 13px; color: rgba(255,255,255,.62); border-radius: 11px; font-weight: 650; transition: .16s; }
.vm-nav__item:hover { color: #fff; background: rgba(255,255,255,.055); }
.vm-nav__item.is-active { color: #fff; background: linear-gradient(135deg, rgba(139,92,246,.36), rgba(107,61,224,.16)); box-shadow: inset 3px 0 0 #9c72ff; }
.vm-nav__icon { width: 22px; flex: 0 0 22px; color: #a98afa; text-align: center; font-size: 18px; }
.vm-nav__label { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.vm-nav__badge { margin-left: auto; min-width: 22px; height: 22px; display: grid; place-items: center; padding: 0 6px; color: #fff; background: var(--vm-red); border-radius: 999px; font-size: 10px; }
.vm-sidebar__footer { margin-top: auto; padding: 16px; border-top: 1px solid rgba(255,255,255,.07); }
.vm-user-mini { display: flex; align-items: center; gap: 10px; min-width: 0; }
.vm-user-mini > div { min-width: 0; display: grid; }
.vm-user-mini strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 13px; }
.vm-user-mini span:not(.vm-avatar) { color: rgba(255,255,255,.45); font-size: 11px; }
.vm-logout { display: block; margin-top: 13px; color: rgba(255,255,255,.48); font-size: 12px; }
.vm-logout:hover { color: #fff; }
.vm-main { min-width: 0; grid-column: 2; }
.vm-topbar { position: sticky; top: 0; z-index: 35; height: 82px; display: flex; align-items: center; justify-content: space-between; padding: 0 30px; background: rgba(255,255,255,.92); backdrop-filter: blur(18px); border-bottom: 1px solid var(--vm-border); }
.vm-topbar__title { display: grid; }
.vm-topbar__title > span { color: var(--vm-muted); font-size: 11px; text-transform: uppercase; letter-spacing: .12em; }
.vm-topbar__title strong { margin-top: 2px; font-size: 18px; }
.vm-topbar__actions { display: flex; align-items: center; gap: 14px; }
.vm-icon-button { position: relative; width: 41px; height: 41px; display: grid; place-items: center; border: 1px solid var(--vm-border); border-radius: 11px; background: #fff; }
.vm-icon-button > span { position: absolute; right: -5px; top: -6px; min-width: 19px; height: 19px; display: grid; place-items: center; color: #fff; background: var(--vm-red); border: 2px solid #fff; border-radius: 999px; font-size: 9px; }
.vm-profile-chip { display: flex; align-items: center; gap: 9px; }
.vm-profile-chip > div { display: grid; }
.vm-profile-chip strong { font-size: 13px; }
.vm-profile-chip small { color: var(--vm-muted); }
.vm-avatar { width: 38px; height: 38px; flex: 0 0 38px; display: grid; place-items: center; color: #fff; background: linear-gradient(135deg, #a477ff, #7040dd); border-radius: 11px; font-weight: 800; box-shadow: 0 6px 16px rgba(111,64,221,.22); }
.vm-avatar--small { width: 32px; height: 32px; flex-basis: 32px; border-radius: 9px; font-size: 12px; }
.vm-avatar--large { width: 52px; height: 52px; flex-basis: 52px; border-radius: 15px; font-size: 19px; }
.vm-content { padding: 30px; max-width: 1700px; margin: 0 auto; }
.vm-mobile-menu { display: none; width: 40px; height: 40px; border: 1px solid var(--vm-border); border-radius: 10px; background: #fff; }
.vm-mobile-overlay { display: none; }

/* collapsed */
body.vm-sidebar-collapsed { --vm-sidebar-width: 82px; }
body.vm-sidebar-collapsed .vm-sidebar__brand > div,
body.vm-sidebar-collapsed .vm-nav__label,
body.vm-sidebar-collapsed .vm-nav__badge,
body.vm-sidebar-collapsed .vm-user-mini > div,
body.vm-sidebar-collapsed .vm-logout { display: none; }
body.vm-sidebar-collapsed .vm-sidebar__brand { justify-content: center; padding: 0 10px; }
body.vm-sidebar-collapsed .vm-sidebar-toggle { position: absolute; right: -13px; top: 27px; background: #262d49; }
body.vm-sidebar-collapsed .vm-sidebar-toggle { transform: rotate(180deg); }
body.vm-sidebar-collapsed .vm-nav__item { justify-content: center; padding: 0; }
body.vm-sidebar-collapsed .vm-user-mini { justify-content: center; }

/* Page basics */
.vm-page-head { min-height: 88px; display: flex; align-items: flex-start; justify-content: space-between; gap: 20px; margin-bottom: 22px; }
.vm-page-head h1 { margin: 7px 0 4px; font-size: 30px; line-height: 1.15; letter-spacing: -.035em; }
.vm-page-head p { margin: 0; color: var(--vm-muted); }
.vm-page-head--actions { align-items: center; }
.vm-page-actions { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.vm-date-chip { padding: 10px 13px; color: #5d6478; background: #fff; border: 1px solid var(--vm-border); border-radius: 10px; font-weight: 700; }
.vm-back { display: inline-block; margin-bottom: 9px; color: var(--vm-muted); font-size: 13px; }
.vm-back:hover, .vm-link:hover { color: var(--vm-accent-2); }
.vm-heading-code { display: inline-flex; vertical-align: middle; margin-left: 8px; padding: 5px 8px; color: var(--vm-accent-2); background: var(--vm-accent-soft); border-radius: 8px; font-size: 13px; letter-spacing: 0; }
.vm-link { color: #6d4cc6; font-weight: 700; }
.vm-code { display: inline-flex; padding: 5px 8px; color: #6341c5; background: var(--vm-accent-soft); border-radius: 7px; font-weight: 800; font-size: 12px; }
.vm-text-danger { color: var(--vm-red) !important; font-weight: 700; }
.vm-text-income { color: var(--vm-green); }
.vm-text-expense { color: var(--vm-red); }
.vm-danger-chip { padding: 6px 9px; color: var(--vm-red); background: var(--vm-red-soft); border-radius: 8px; font-weight: 800; font-size: 11px; }

/* Cards and stats */
.vm-card { padding: 22px; background: var(--vm-surface); border: 1px solid var(--vm-border); border-radius: var(--vm-radius); box-shadow: 0 5px 18px rgba(35,42,70,.025); }
.vm-card--compact { padding: 16px 20px; }
.vm-card__head { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; margin-bottom: 18px; }
.vm-card__head h2 { margin: 0 0 3px; font-size: 17px; letter-spacing: -.02em; }
.vm-card__head p { margin: 0; color: var(--vm-muted); font-size: 12px; }
.vm-stat-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(195px, 1fr)); gap: 14px; margin-bottom: 18px; }
.vm-stat-grid--three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.vm-stat-grid--four { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.vm-stat-card { position: relative; overflow: hidden; min-height: 126px; display: flex; flex-direction: column; justify-content: center; padding: 20px; background: #fff; border: 1px solid var(--vm-border); border-radius: 16px; }
.vm-stat-card::after { content: ""; position: absolute; right: -25px; bottom: -28px; width: 92px; height: 92px; border-radius: 50%; background: #f1f2f7; }
.vm-stat-card > span { color: var(--vm-muted); font-size: 12px; font-weight: 700; }
.vm-stat-card strong { position: relative; z-index: 1; margin: 7px 0 2px; font-size: 26px; letter-spacing: -.04em; }
.vm-stat-card small { color: #9ba0af; }
.vm-stat-card--income { border-color: #d8efe8; background: linear-gradient(135deg, #fff, #f4fffb); }
.vm-stat-card--income::after { background: var(--vm-green-soft); }
.vm-stat-card--expense { border-color: #f5dce0; background: linear-gradient(135deg, #fff, #fff8f8); }
.vm-stat-card--expense::after { background: var(--vm-red-soft); }
.vm-stat-card--accent { color: #fff; border-color: transparent; background: linear-gradient(135deg, #8f61f6, #6740d2); box-shadow: 0 15px 32px rgba(110,65,218,.22); }
.vm-stat-card--accent > span, .vm-stat-card--accent small { color: rgba(255,255,255,.7); }
.vm-stat-card--accent::after { background: rgba(255,255,255,.09); }
.vm-stat-card--danger { border-color: #efbbc1; }
.vm-dashboard-grid, .vm-detail-grid { display: grid; grid-template-columns: minmax(0, 2fr) minmax(280px, 1fr); gap: 18px; margin-bottom: 18px; }
.vm-card--span-2 { min-width: 0; }
.vm-settings-grid { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 18px; }
.vm-settings-grid .vm-card--span-2 { grid-column: 1 / -1; }

/* Tables */
.vm-table-wrap { width: 100%; overflow-x: auto; }
.vm-table { width: 100%; min-width: 760px; border-collapse: separate; border-spacing: 0; }
.vm-table th { padding: 10px 12px; color: #858b9d; background: #f8f9fc; border-top: 1px solid var(--vm-border); border-bottom: 1px solid var(--vm-border); text-align: left; font-size: 10px; text-transform: uppercase; letter-spacing: .08em; white-space: nowrap; }
.vm-table th:first-child { border-left: 1px solid var(--vm-border); border-radius: 10px 0 0 10px; }
.vm-table th:last-child { border-right: 1px solid var(--vm-border); border-radius: 0 10px 10px 0; }
.vm-table td { padding: 13px 12px; border-bottom: 1px solid #edf0f5; vertical-align: middle; }
.vm-table tbody tr { transition: background .14s; }
.vm-table tbody tr:hover { background: #fafbfe; }
.vm-table td strong, .vm-table td span { display: block; }
.vm-table td small { display: block; margin-top: 3px; color: var(--vm-muted); max-width: 310px; }
.vm-table--comfortable td { padding-top: 15px; padding-bottom: 15px; }
.vm-table-actions { min-width: 120px; text-align: right; }
.vm-table-actions a { display: inline-block !important; margin-left: 10px; color: #6546be; font-weight: 700; font-size: 12px; }
.vm-table-delete { padding: 0; color: var(--vm-red); border: 0; background: transparent; font-size: 11px; }
.vm-row--overdue { background: #fffafa; }
.vm-empty { min-height: 170px; display: grid; place-content: center; text-align: center; color: var(--vm-muted); }
.vm-empty strong { margin-bottom: 4px; color: var(--vm-text); font-size: 16px; }

/* Statuses */
.vm-status { display: inline-flex !important; width: fit-content; align-items: center; padding: 5px 9px; color: #5e6474; background: #eef0f4; border-radius: 999px; font-size: 10px; font-weight: 800; white-space: nowrap; }
.vm-status--new, .vm-status--estimate, .vm-status--assigning { color: #2f67ab; background: var(--vm-blue-soft); }
.vm-status--reply, .vm-status--payment, .vm-status--prepayment, .vm-status--materials, .vm-status--final_payment, .vm-status--partial { color: #a66213; background: var(--vm-orange-soft); }
.vm-status--negotiation, .vm-status--ready, .vm-status--manager_review, .vm-status--client_review, .vm-status--revisions { color: #6640bd; background: var(--vm-accent-soft); }
.vm-status--working, .vm-status--completed, .vm-status--paid, .vm-status--free { color: #0d7756; background: var(--vm-green-soft); }
.vm-status--refused, .vm-status--cancelled, .vm-status--no_answer, .vm-status--unavailable, .vm-status--inactive { color: #aa303b; background: var(--vm-red-soft); }
.vm-status--archived, .vm-status--busy, .vm-status--partial { color: #666d7f; background: #eceef3; }
.vm-source-pill { display: inline-flex !important; width: fit-content; padding: 5px 8px; color: #8b641c; background: #fff3d7; border-radius: 7px; font-size: 10px; font-weight: 800; }
.vm-finance-type { display: inline-flex !important; width: fit-content; padding: 5px 8px; border-radius: 7px; font-size: 10px; font-weight: 800; }
.vm-finance-type--income { color: var(--vm-green); background: var(--vm-green-soft); }
.vm-finance-type--expense { color: var(--vm-red); background: var(--vm-red-soft); }

/* Filters */
.vm-filterbar { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 19px; }
.vm-search { min-width: 280px; flex: 1; position: relative; }
.vm-search span { position: absolute; left: 12px; top: 9px; color: var(--vm-muted); font-size: 18px; }
.vm-search input, .vm-filterbar select { height: 41px; border: 1px solid var(--vm-border); border-radius: 10px; background: #fff; outline: none; }
.vm-search input { width: 100%; padding: 0 12px 0 38px; }
.vm-filterbar select { min-width: 170px; padding: 0 11px; }
.vm-search input:focus, .vm-filterbar select:focus { border-color: #b9a1f8; box-shadow: 0 0 0 3px var(--vm-accent-soft); }
.vm-filterbar__count { margin-left: auto; color: var(--vm-muted); font-size: 12px; }

/* Drawer and forms */
.vm-drawer { position: fixed; inset: 0; z-index: 100; pointer-events: none; visibility: hidden; }
.vm-drawer.is-open { pointer-events: auto; visibility: visible; }
.vm-drawer__overlay { position: absolute; inset: 0; opacity: 0; background: rgba(15,18,30,.47); backdrop-filter: blur(2px); transition: opacity .22s; }
.vm-drawer.is-open .vm-drawer__overlay { opacity: 1; }
.vm-drawer__panel { position: absolute; inset: 0 0 0 auto; width: min(620px, 94vw); overflow-y: auto; background: #fff; box-shadow: -30px 0 90px rgba(20,25,45,.16); transform: translateX(102%); transition: transform .25s ease; }
.vm-drawer__panel--wide { width: min(850px, 96vw); }
.vm-drawer.is-open .vm-drawer__panel { transform: translateX(0); }
.vm-drawer__head { position: sticky; top: 0; z-index: 2; display: flex; align-items: center; justify-content: space-between; padding: 24px 26px; background: rgba(255,255,255,.96); border-bottom: 1px solid var(--vm-border); backdrop-filter: blur(15px); }
.vm-drawer__head h2 { margin: 5px 0 0; font-size: 23px; }
.vm-drawer__head > button { width: 38px; height: 38px; color: #6e7485; border: 1px solid var(--vm-border); border-radius: 10px; background: #fff; font-size: 23px; }
.vm-form { padding: 26px; }
.vm-form-grid { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 15px; }
.vm-field { display: grid; gap: 7px; align-content: start; }
.vm-field--full { grid-column: 1 / -1; }
.vm-field > span { color: #4e5568; font-size: 12px; font-weight: 750; }
.vm-field > small { color: var(--vm-muted); font-size: 11px; }
.vm-field input, .vm-field select, .vm-field textarea, .vm-comment-form textarea, .vm-comment-form input[type="url"] { width: 100%; min-height: 43px; padding: 10px 12px; color: var(--vm-text); background: #fbfcfe; border: 1px solid var(--vm-border); border-radius: 10px; outline: 0; transition: .16s; }
.vm-field textarea { resize: vertical; }
.vm-field input:focus, .vm-field select:focus, .vm-field textarea:focus, .vm-comment-form textarea:focus, .vm-comment-form input:focus { border-color: #ad8df4; background: #fff; box-shadow: 0 0 0 3px var(--vm-accent-soft); }
.vm-form-actions { position: sticky; bottom: 0; display: flex; gap: 10px; margin: 26px -26px -26px; padding: 17px 26px; background: rgba(255,255,255,.96); border-top: 1px solid var(--vm-border); backdrop-filter: blur(15px); }
.vm-form-details { padding: 12px 14px; border: 1px solid var(--vm-border); border-radius: 11px; background: var(--vm-surface-soft); }
.vm-form-details summary { cursor: pointer; font-weight: 750; }
.vm-form-details .vm-form-grid { margin-top: 14px; }
.vm-form-section { margin-top: 24px; padding-top: 22px; border-top: 1px solid var(--vm-border); }
.vm-form-section h3 { margin: 0 0 3px; }
.vm-form-section > div > p { margin: 0 0 15px; color: var(--vm-muted); }
.vm-worker-picker { display: grid; gap: 11px; }
.vm-worker-option { padding: 14px; border: 1px solid var(--vm-border); border-radius: 13px; background: #fbfcfe; }
.vm-worker-option__check { display: flex; align-items: center; gap: 10px; cursor: pointer; }
.vm-worker-option__check > div { display: grid; }
.vm-worker-option__check small { color: var(--vm-muted); }
.vm-worker-option__fields { display: grid; grid-template-columns: 1fr 130px; gap: 9px; margin-top: 12px; padding-left: 28px; }
.vm-worker-option__fields input, .vm-worker-option__fields textarea { width: 100%; padding: 9px 10px; border: 1px solid var(--vm-border); border-radius: 9px; background: #fff; }
.vm-worker-option__fields textarea { grid-column: 1 / -1; }
.vm-inline-danger { margin-top: 15px; text-align: right; }
.vm-inline-danger button { color: var(--vm-red); border: 0; background: transparent; font-weight: 700; font-size: 12px; }

/* Detail views */
.vm-info-grid { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: 14px; }
.vm-info-grid > div { min-width: 0; display: grid; gap: 4px; padding: 14px; background: var(--vm-surface-soft); border-radius: 11px; }
.vm-info-grid span, .vm-metric-list span { color: var(--vm-muted); font-size: 11px; }
.vm-info-grid strong { overflow-wrap: anywhere; }
.vm-info-grid a { color: #6242bd; }
.vm-note { margin-top: 15px; padding: 15px; background: #f8f9fc; border-left: 3px solid #cfd4e1; border-radius: 0 10px 10px 0; }
.vm-note--accent { background: var(--vm-accent-soft); border-left-color: var(--vm-accent); }
.vm-note span { display: block; margin-bottom: 6px; color: var(--vm-muted); font-size: 11px; font-weight: 800; text-transform: uppercase; letter-spacing: .08em; }
.vm-note p { margin: 0; }
.vm-metric-list { display: grid; gap: 2px; }
.vm-metric-list > div { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 13px 0; border-bottom: 1px solid #edf0f5; }
.vm-metric-list > div:last-child { border-bottom: 0; }
.vm-metric-list__accent { margin-top: 8px; padding: 14px !important; color: #fff; background: linear-gradient(135deg, #8d5ff1, #6841d3); border: 0 !important; border-radius: 11px; }
.vm-metric-list__accent span { color: rgba(255,255,255,.7); }
.vm-link-cards { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 11px; margin-top: 16px; }
.vm-link-cards a { display: flex; align-items: center; gap: 11px; padding: 14px; border: 1px solid var(--vm-border); border-radius: 12px; background: #fff; }
.vm-link-cards a:hover { border-color: #bfaaf3; box-shadow: 0 7px 20px rgba(65,47,110,.07); }
.vm-link-cards a > span { width: 37px; height: 37px; display: grid; place-items: center; background: var(--vm-accent-soft); border-radius: 10px; }
.vm-link-cards a > div { display: grid; }
.vm-link-cards small { color: var(--vm-muted); }
.vm-status-form { display: flex; align-items: center; gap: 14px; }
.vm-status-form > div { flex: 1; display: grid; }
.vm-status-form > div span { color: var(--vm-muted); font-size: 12px; }
.vm-status-form select { min-width: 230px; height: 41px; padding: 0 10px; border: 1px solid var(--vm-border); border-radius: 10px; background: #fff; }
.vm-team-list { display: grid; gap: 10px; }
.vm-team-list article { display: flex; align-items: flex-start; gap: 10px; padding: 12px; background: var(--vm-surface-soft); border-radius: 11px; }
.vm-team-list article > div { display: grid; }
.vm-team-list small { color: var(--vm-muted); }
.vm-team-list article > div > span { margin-top: 4px; color: #6742c3; font-weight: 800; font-size: 12px; }

/* Comments */
.vm-comments { display: grid; gap: 13px; margin-bottom: 20px; }
.vm-comment { display: flex; align-items: flex-start; gap: 11px; padding: 14px; background: #f8f9fc; border: 1px solid transparent; border-radius: 13px; }
.vm-comment--important { background: #fff9ee; border-color: #f1d5a4; }
.vm-comment__body { flex: 1; min-width: 0; }
.vm-comment__body header { display: flex; justify-content: space-between; gap: 15px; }
.vm-comment__body header span { color: var(--vm-muted); font-size: 11px; }
.vm-comment__body p { margin: 7px 0 0; white-space: normal; overflow-wrap: anywhere; }
.vm-comment__links { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 8px; }
.vm-comment__links a { color: #6745c2; font-size: 12px; font-weight: 750; }
.vm-comment-form { padding-top: 18px; border-top: 1px solid var(--vm-border); }
.vm-comment-form textarea { resize: vertical; }
.vm-comment-form__row { display: grid; grid-template-columns: minmax(180px, 1fr) auto auto auto; gap: 8px; align-items: center; margin-top: 8px; }
.vm-file-input { min-height: 41px; display: inline-flex; align-items: center; padding: 0 12px; border: 1px solid var(--vm-border); border-radius: 10px; cursor: pointer; white-space: nowrap; }
.vm-file-input input { display: none; }
.vm-check { display: inline-flex; align-items: center; gap: 6px; color: var(--vm-muted); white-space: nowrap; }
.vm-comment-form > small { display: block; margin-top: 7px; color: var(--vm-muted); }

/* People */
.vm-people-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(360px, 1fr)); gap: 16px; }
.vm-person-card { padding: 20px; background: #fff; border: 1px solid var(--vm-border); border-radius: var(--vm-radius); }
.vm-person-card > header { display: flex; align-items: center; gap: 12px; }
.vm-person-card > header > div { min-width: 0; flex: 1; }
.vm-person-card h2 { margin: 0; font-size: 17px; }
.vm-person-card p { margin: 2px 0 0; color: var(--vm-muted); }
.vm-person-card__info { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 9px; margin-top: 17px; }
.vm-person-card__info > div { display: grid; padding: 11px; background: var(--vm-surface-soft); border-radius: 10px; }
.vm-person-card__info span, .vm-person-card__money span { color: var(--vm-muted); font-size: 10px; }
.vm-person-card__money { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 8px; margin-top: 10px; }
.vm-person-card__money > div { display: grid; padding: 10px; border: 1px solid var(--vm-border); border-radius: 9px; }
.vm-person-card details { margin: 13px 0; color: var(--vm-muted); }
.vm-person-card summary { cursor: pointer; color: #555c70; font-weight: 700; }

/* Notifications and logs */
.vm-notification-list { display: grid; }
.vm-notification { display: flex; align-items: flex-start; gap: 12px; padding: 16px 8px; border-bottom: 1px solid var(--vm-border); }
.vm-notification:last-child { border-bottom: 0; }
.vm-notification.is-unread { background: linear-gradient(90deg, var(--vm-accent-soft), transparent 85%); }
.vm-notification__icon { color: #b2b7c4; font-size: 9px; padding-top: 5px; }
.vm-notification.is-unread .vm-notification__icon { color: var(--vm-accent); }
.vm-notification > div { flex: 1; }
.vm-notification header { display: flex; justify-content: space-between; gap: 12px; }
.vm-notification time { color: var(--vm-muted); font-size: 11px; }
.vm-notification p { margin: 5px 0 0; color: #5f6679; }
.vm-activity-list { display: grid; }
.vm-activity-list article { position: relative; display: flex; gap: 14px; padding: 8px 0 20px; }
.vm-activity-list article:not(:last-child)::before { content: ""; position: absolute; left: 5px; top: 19px; bottom: 0; width: 1px; background: var(--vm-border); }
.vm-activity-list__dot { position: relative; z-index: 1; width: 11px; height: 11px; flex: 0 0 11px; margin-top: 5px; background: var(--vm-accent); border: 3px solid #e9e0ff; border-radius: 50%; box-sizing: content-box; }
.vm-activity-list article > div { flex: 1; }
.vm-activity-list header { display: flex; justify-content: space-between; }
.vm-activity-list time, .vm-activity-list small { color: var(--vm-muted); font-size: 11px; }
.vm-activity-list p { margin: 4px 0; }

/* Charts and reports */
.vm-chart { height: 230px; display: flex; align-items: stretch; justify-content: space-around; gap: 13px; padding: 12px 8px 0; border-bottom: 1px solid var(--vm-border); }
.vm-chart__group { flex: 1; min-width: 45px; display: grid; grid-template-rows: 1fr auto; gap: 8px; text-align: center; }
.vm-chart__bars { height: 100%; display: flex; align-items: flex-end; justify-content: center; gap: 5px; }
.vm-chart__bar { width: min(27px, 36%); min-height: 4px; border-radius: 7px 7px 2px 2px; }
.vm-chart__bar--income { background: linear-gradient(#40c79b, #149671); }
.vm-chart__bar--expense { background: linear-gradient(#ef7983, #d14854); }
.vm-chart__group small { color: var(--vm-muted); }
.vm-chart-legend { display: flex; gap: 15px; margin-top: 13px; color: var(--vm-muted); font-size: 11px; }
.vm-chart-legend span { display: flex; align-items: center; gap: 6px; }
.vm-dot { width: 8px; height: 8px; border-radius: 50%; }
.vm-dot--income { background: var(--vm-green); }
.vm-dot--expense { background: var(--vm-red); }
.vm-report-months { display: grid; gap: 8px; }
.vm-report-months article { padding: 12px; background: var(--vm-surface-soft); border-radius: 10px; }
.vm-report-months article > div { display: flex; justify-content: space-between; gap: 10px; }
.vm-report-months article small { color: var(--vm-muted); }

/* Quick actions and settings */
.vm-quick-actions { display: grid; gap: 9px; }
.vm-quick-actions a { display: flex; align-items: center; gap: 11px; padding: 12px; border: 1px solid var(--vm-border); border-radius: 11px; }
.vm-quick-actions a:hover { border-color: #cbbaf3; background: #fcfaff; }
.vm-quick-actions a > span { width: 38px; height: 38px; display: grid; place-items: center; color: #6842c3; background: var(--vm-accent-soft); border-radius: 10px; font-weight: 800; }
.vm-quick-actions a > div { display: grid; }
.vm-quick-actions small { color: var(--vm-muted); }
.vm-setting-row { display: flex; align-items: center; justify-content: space-between; gap: 15px; padding: 14px 0; border-bottom: 1px solid var(--vm-border); }
.vm-setting-row > div { display: grid; }
.vm-setting-row > div span { color: var(--vm-muted); font-size: 11px; }
.vm-setting-row + .vm-button { margin-top: 17px; }

@media (min-width: 1200px) {
    .vm-dashboard-grid .vm-card--span-2, .vm-detail-grid .vm-card--span-2 { grid-column: 1; }
}

@media (max-width: 1100px) {
    .vm-login-shell { grid-template-columns: 1fr; }
    .vm-login-brand { min-height: 380px; padding: 60px; }
    .vm-login-brand h1 { max-width: 800px; }
    .vm-login-panel { padding: 45px 25px; }
    .vm-stat-grid--four { grid-template-columns: repeat(2, minmax(0,1fr)); }
    .vm-info-grid { grid-template-columns: repeat(2, minmax(0,1fr)); }
}

@media (max-width: 880px) {
    .vm-app { display: block; }
    .vm-sidebar { width: 260px; transform: translateX(-102%); }
    .vm-sidebar.is-mobile-open { transform: translateX(0); }
    .vm-main { grid-column: auto; }
    .vm-mobile-menu { display: grid; place-items: center; }
    .vm-topbar { padding: 0 18px; }
    .vm-topbar__title { margin-right: auto; margin-left: 12px; }
    .vm-profile-chip > div { display: none; }
    .vm-content { padding: 22px 18px; }
    .vm-mobile-overlay { position: fixed; inset: 0; z-index: 45; background: rgba(15,18,30,.45); }
    .vm-mobile-overlay.is-visible { display: block; }
    body.vm-sidebar-collapsed .vm-sidebar { width: 260px; }
    body.vm-sidebar-collapsed .vm-sidebar__brand > div,
    body.vm-sidebar-collapsed .vm-nav__label,
    body.vm-sidebar-collapsed .vm-nav__badge,
    body.vm-sidebar-collapsed .vm-user-mini > div,
    body.vm-sidebar-collapsed .vm-logout { display: grid; }
    body.vm-sidebar-collapsed .vm-nav__item { justify-content: flex-start; padding: 0 13px; }
    body.vm-sidebar-collapsed .vm-sidebar-toggle { display: none; }
    .vm-dashboard-grid, .vm-detail-grid, .vm-settings-grid { grid-template-columns: 1fr; }
    .vm-settings-grid .vm-card--span-2 { grid-column: auto; }
    .vm-stat-grid--three { grid-template-columns: repeat(2, minmax(0,1fr)); }
}

@media (max-width: 620px) {
    .vm-login-brand { min-height: 310px; padding: 38px 25px; }
    .vm-login-brand h1 { font-size: 38px; }
    .vm-login-brand p { font-size: 15px; }
    .vm-login-logo-large { width: 80px; height: 80px; margin-bottom: 24px; }
    .vm-login-panel { padding: 25px 13px; }
    .vm-login-card { padding: 28px 22px; border-radius: 20px; }
    .vm-topbar__title > span { display: none; }
    .vm-topbar__title strong { font-size: 15px; }
    .vm-page-head, .vm-page-head--actions { display: grid; align-items: start; min-height: 0; }
    .vm-page-actions { width: 100%; }
    .vm-page-actions .vm-button { flex: 1; }
    .vm-page-head h1 { font-size: 26px; }
    .vm-card { padding: 17px; border-radius: 15px; }
    .vm-stat-grid, .vm-stat-grid--three, .vm-stat-grid--four { grid-template-columns: 1fr; }
    .vm-stat-card { min-height: 108px; }
    .vm-filterbar { align-items: stretch; }
    .vm-search { min-width: 100%; }
    .vm-filterbar select, .vm-filterbar .vm-button { width: 100%; }
    .vm-filterbar__count { margin: 2px 0 0; }
    .vm-form-grid, .vm-info-grid, .vm-link-cards { grid-template-columns: 1fr; }
    .vm-worker-option__fields { grid-template-columns: 1fr; padding-left: 0; }
    .vm-worker-option__fields textarea { grid-column: auto; }
    .vm-comment-form__row { grid-template-columns: 1fr; }
    .vm-status-form { align-items: stretch; flex-direction: column; }
    .vm-status-form select { min-width: 0; width: 100%; }
    .vm-people-grid { grid-template-columns: 1fr; }
    .vm-person-card > header { align-items: flex-start; flex-wrap: wrap; }
    .vm-person-card > header .vm-status { margin-left: 64px; }
    .vm-person-card__money { grid-template-columns: 1fr; }
    .vm-drawer__panel, .vm-drawer__panel--wide { width: 100%; }
    .vm-drawer__head, .vm-form { padding-left: 18px; padding-right: 18px; }
    .vm-form-actions { margin-left: -18px; margin-right: -18px; padding-left: 18px; padding-right: 18px; }
}
