/* Valmarc RS: shared visual system. Data and access rules remain in the existing modules. */
:root {
  color-scheme: dark;
  --vm-bg: #0c1520;
  --vm-surface: #121f2d;
  --vm-elevated: #192a3a;
  --vm-line: #2c4053;
  --vm-text: #edf4fc;
  --vm-muted: #a3b5c8;
  --vm-blue: #329cf2;
  --vm-blue-soft: #183650;
  --vm-green: #80dfba;
  --ink: var(--vm-text);
  --text: var(--vm-text);
  --text-main: var(--vm-text);
  --muted: var(--vm-muted);
  --line: var(--vm-line);
  --paper: var(--vm-surface);
  --panel: var(--vm-surface);
  --page: var(--vm-bg);
  --soft: var(--vm-elevated);
  --navy: var(--vm-text);
  --blue: #268fe1;
  --teal: #268fe1;
  --shadow: 0 10px 30px #00000014;
  font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 96px; }
body { margin: 0; color: var(--vm-text); background: var(--vm-bg); background-image: none; line-height: 1.55; font-family: inherit; font-size: 14px; }
button, input, textarea, select { font-family: inherit; }
a { color: #87c8ff; }
button, a { -webkit-tap-highlight-color: transparent; }
button:disabled { cursor: not-allowed; }
[hidden], .hidden { display: none !important; }
:is(a[href],button,input,select,textarea,summary,[role=button],[tabindex]:not([tabindex="-1"])):focus-visible { outline: 3px solid #85caff !important; outline-offset: 4px; }
/* Contêineres grandes (seções, listas) não ganham contorno ao receber foco pelo toque. */
:is(html,body,main,section,article,div,form,ul,ol,nav,header,footer):not([tabindex]):not([role=button]):focus,:is(html,body,main,section,article,div,form,ul,ol,nav,header,footer):not([tabindex]):not([role=button]):focus-visible,[tabindex="-1"]:focus,[tabindex="-1"]:focus-visible { outline: none !important; }
::selection { background: #247acb; color: #fff; }
img { max-width: 100%; }
.vm-skip { position: fixed; left: 16px; top: -100px; z-index: 100000; padding: 12px 18px; background: #fff; color: #10263e; border-radius: 8px; }
.vm-skip:focus { top: 12px; }
h1, h2, h3, h4 { color: var(--vm-text); letter-spacing: -.025em; line-height: 1.25; }
.eyebrow, .module-chooser-eyebrow, .brand-name { color: #81beec; font-size: 11px; font-weight: 700; letter-spacing: .13em; }
.muted, .helper-text, .hint, .stat-note, .brand-description { color: var(--vm-muted); line-height: 1.6; }
.app-shell { max-width: 1424px; padding: 0 40px; }
body:not(.vm-public) main { max-width: 1344px; margin: 0 auto; padding-top: 32px; padding-bottom: 60px; }
.topbar, .fin-header, body.vm-management > header, body.vm-photos > header { background: #0f1b29; border-bottom: 1px solid var(--vm-line); box-shadow: none; }
.app-shell > .topbar { margin: 0; padding: 24px 0; min-height: 100px; background: transparent; border-radius: 0; overflow: visible; }
.app-shell > .topbar::after { display: none; }
.topbar-inner { max-width: 1424px; padding: 24px 40px; }
.brand-lockup { gap: 24px; }
.brand-lockup h1 { margin-top: 3px; font-size: 19px; font-weight: 650; }
.brand-logo, .brand-logo-wrap { width: 155px; height: 48px; flex-basis: 155px; border: 0; border-radius: 0; background: transparent; box-shadow: none; }
.brand-logo img, img.brand-logo { object-fit: contain; object-position: center; }
.brand-logo img, img.brand-logo, .auth-brand-panel img, .module-chooser-logo, body.vm-management > header img, body.vm-photos > header img, .fin-header .brand img, body.vm-transfer img.logo, .site-brand img { mix-blend-mode: screen; }
.topbar-actions, .module-nav { gap: 10px; display: flex; align-items: center; flex-wrap: wrap; }
.local-badge { border: 1px solid #29495f; background: #142b3b; color: #bbd7ec; padding: 8px 12px; font-size: 11px; }
.status-dot { background: #7ddab2; box-shadow: 0 0 0 3px #7ddab212; }
.main-nav { position: sticky; top: 12px; z-index: 30; display: flex; align-items: center; gap: 4px; margin: 0 0 4px; padding: 6px; border: 1px solid var(--vm-line); background: #142332f5; border-radius: 13px; backdrop-filter: blur(14px); overflow-x: auto; scrollbar-width: thin; scrollbar-color: #45627b transparent; }
.nav-btn { min-height: 42px; padding: 10px 15px; margin: 0; color: #b6c6d6; background: transparent; border: 0; border-radius: 8px; font-size: 13px; font-weight: 600; white-space: nowrap; }
.nav-btn:hover { color: #fff; background: #21364a; }
.nav-btn.active { color: #fff; background: #146cb0; box-shadow: 0 2px 8px #0002; border-bottom: 0; }
.page-heading { align-items: center; margin-bottom: 28px; }
.page-heading h2 { font-size: clamp(25px, 2.4vw, 34px); font-weight: 680; }
.page-heading p { max-width: 690px; font-size: 14px; }
.page-heading .eyebrow { margin-bottom: 8px; }
.button, button.primary, button.secondary, .module-nav > a, .module-nav > button { min-height: 42px; display: inline-flex; align-items: center; justify-content: center; gap: 8px; border-radius: 9px; font-size: 13px; font-weight: 600; text-decoration: none; transition: background .15s, border-color .15s, box-shadow .15s; }
.button.primary, button.primary, body.vm-management button:not(.secondary):not(.danger):not(.management-tile), body.vm-finance button:not(.secondary):not(.danger), #sendPhotos { color: #fff; background: #147bbf; border: 1px solid #389ada; box-shadow: 0 3px 10px #0571b318; }
.button.primary:hover, button.primary:hover { background: #198bd1; }
.button.secondary, button.secondary, .module-nav > a, .module-nav > button { color: #d9e7f6; border: 1px solid #3a5269; background: #1a2c3d; box-shadow: none; }
.button.secondary:hover, button.secondary:hover, .module-nav > a:hover { background: #243d52; border-color: #6a9cc1; }
.button.small { min-height: 36px; }
.button.danger, button.danger { background: #422531; color: #ffc0c6; border-color: #794653; }
.text-button { min-height: 36px; font-size: 12px; padding: 6px 9px; color: #91ceff; }
.text-button.delete { color: #ffb1b8; }
.panel, .stat-card, .product-card, body:not(.vm-public) .card, .consult-card, .auth-card { border: 1px solid var(--vm-line); border-radius: 15px; background: var(--vm-surface); box-shadow: var(--shadow); }
.form-panel, .settings-panel, .list-panel, .purchase-panel, .consult-card { padding: 26px; }
.stats-grid { gap: 16px; margin-bottom: 24px; }
.stat-card, .stats-grid .stat-card { padding: 21px 24px; min-height: 132px; gap: 7px; background: var(--vm-surface); }
.stat-label { color: #b1c3d6; font-size: 12px; }
.stat-card strong { font-size: 30px; color: #f1f7fe; font-weight: 650; font-variant-numeric: tabular-nums; }
.stat-card.accent, .stats-grid .stat-card.accent { background: #15324a; border-color: #326080; }
.stat-note { font-size: 11px; }
input:not([type=checkbox]):not([type=radio]):not([type=file]), textarea { color: #edf4fc; background: #0e1d2c; border: 1px solid #395066; border-radius: 8px; box-shadow: none; padding: 11px 13px; min-height: 44px; }
input::placeholder, textarea::placeholder { color: #8ca0b6; opacity: 1; }
input[readonly] { color: #bdcde0; background: #1b2c3c !important; }
select { min-height: 44px; border-radius: 8px; }
label { font-size: 12px; color: #c7d7e8; }
.form-grid { gap: 18px; }
.section-title h3 { font-size: 16px; font-weight: 650; }
.section-title > span { background: #203d56; color: #a5d8ff; border-radius: 8px; }
.calc-preview { border-color: #385673; background: #385673; }
.calc-preview > div { background: #142c42; }
.calc-preview strong { color: #c0e2ff; }
.form-footer { border-color: var(--vm-line); }
.search-control input, .large-search input { font-size: 14px; }
.consult-search-panel { max-width: none; margin-bottom: 20px; padding: 20px 24px; }
.large-search { border: 1px solid #39536b; background: #0e1d2c; box-shadow: none; padding: 2px 7px 2px 13px; }
.large-search input { background: transparent !important; border: 0 !important; padding: 11px 0; }
.large-search button { color: #d1e3f4; background: #20374b; min-width: 36px; min-height: 36px; }
#consultGroupCount { margin: 0 0 18px; color: #aabfd3; font-size: 12px; }
.group-panel { padding: 24px; }
#consultGroupList { padding: 0; background: transparent; border: 0; box-shadow: none; }
.group-grid, .product-grid, .catalog-grid { grid-template-columns: repeat(auto-fill, minmax(min(100%, 240px), 1fr)); gap: 18px; }
.group-item { display: flex; flex-direction: column; padding: 20px; gap: 10px; border: 1px solid #30495e; border-radius: 15px; background: #152635; text-align: left; min-width: 0; transition: border-color .15s, box-shadow .15s; }
.group-item:hover { border-color: #73b8e9; box-shadow: 0 8px 24px #0002; transform: none; }
.group-item > strong { font-size: 16px; line-height: 1.4; font-weight: 650; min-height: 22px; }
.group-item > span { color: #aac0d5; font-size: 12px; }
.group-item img, .group-no-photo { width: 100%; height: 205px; object-fit: contain; object-position: center; margin-bottom: 10px; }
.group-no-photo { border-radius: 10px; background: #102130; border: 1px dashed #37516a; color: #afc5da; }
.group-item .consult-kg-prices { border-top: 1px solid #355065; padding-top: 16px; margin-top: auto; gap: 10px; }
.consult-kg-prices > span { gap: 6px 12px; align-items: baseline; }
.consult-kg-prices small { color: #bdcfe0; font-size: 12px; }
.consult-kg-prices b { font-size: 17px; font-weight: 650; color: #f1f7ff; font-variant-numeric: tabular-nums; }
.consult-kg-prices .consult-kg-net b { color: var(--vm-green); }
#overviewCatalog > .list-panel { padding: 0; border: 0; background: transparent; box-shadow: none; }
#overviewCatalog .overview-toolbar { margin-bottom: 20px; padding: 20px 24px; border: 1px solid var(--vm-line); border-radius: 15px; background: var(--vm-surface); }
#overviewCatalog .catalog-toolbar { width: 100%; }
#overviewCatalog .catalog-toolbar .search-control { flex: 1; min-width: 180px; }
.group-type-tile { min-height: 146px; border-radius: 13px; background: #142635; border-color: #355069; padding: 20px; }
.group-type-tile strong { font-size: 14px; font-weight: 650; }
.group-type-tile .group-type-icon { background: #193d58; border-color: #396885; color: #a8d9fa; border-radius: 12px; }
.group-type-tile:hover { transform: none; background: #1b3449; border-color: #74b5e0; }
.product-card { overflow: hidden; }
.product-card-content { padding: 20px; }
.product-card h4, .card-title { font-size: 16px; font-weight: 650; }
.product-card-image { height: 218px; background: #11212e; }
.product-card-prices { border-radius: 10px; background: #183044; border-color: #365770; }
.product-card-prices > div { background: #193249; border-color: #365770; padding: 12px; }
.product-card-prices > div:first-child { background: #152c3e; }
.product-card-prices strong, .card-price { color: #b4ddff; font-variant-numeric: tabular-nums; }
.product-card-prices span, .card-price-label { font-size: 11px; color: #bed2e5; }
.product-card-actions { align-items: center; gap: 6px; }
.consult-card .price-card, .consult-card .spec-cell { background: #182e41; border-color: #36536b; }
.consult-card .price-card.emphasis { background: #173d58; border-color: #407b9f; }
.consult-card .price-card strong { color: #b4ddff; }
.consult-card .price-cards.price-cards-four { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; width: 100%; max-width: 100%; overflow-x: auto; scrollbar-width: thin; scrollbar-color: #45627b transparent; }
.consult-card .price-cards-four .price-card { display: flex; flex-direction: column; gap: 12px; min-height: 100px; padding: 18px; }
.consult-card .price-cards-four .price-card span { margin-bottom: 0; line-height: 1.55; }
.consult-card .price-cards-four .price-card strong { margin-top: auto; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.consult-card .spec-cell strong { color: #edf4fc; }
.intro-panel, .quick-panel, .backup-card { background: #132637; border-color: #304c64; }
.topbar .button.secondary { background: #1a2c3d; border-color: #3a5269; color: #d9e7f6; }
.topbar .button.secondary:hover { background: #243d52; border-color: #6a9cc1; }
.board-card { background: #142735; border: 1px solid #344d61; border-radius: 15px; box-shadow: none; }
.board-card:hover { transform: none; border-color: #83bee5; }
.card-photo { background: #10202c; }
.card-photo img { object-fit: contain; object-position: center; }
.card-info { padding: 20px; }
.card-code, .card-specs, .count { color: #b1c5d9; }
.card-bottom { border-color: #365065; }
.tabs, #tabs { gap: 6px; padding: 6px; background: #142637; border: 1px solid var(--vm-line); border-radius: 12px; }
.tab, #tabs button { border-radius: 8px; font-size: 13px; min-height: 40px; }
.tab.active, #tabs button.active { background: #176dae; color: white; box-shadow: none; }
.table-wrap { border: 1px solid var(--vm-line); border-radius: 10px; }
thead th { color: #b9d0e6; background: #193044; font-size: 11px; padding: 13px 12px; }
td { color: #d0deeb; border-color: #2a4054; padding: 13px 12px; }
tbody tr:nth-child(even) { background: #152535; }
tbody tr:hover { background: #1b3247; }
.empty-row, .empty, .empty-state { color: #b4c6d8; background: #10212f; border-color: #3a5166; }
.photo-preview, .photo-field { border-radius: 12px; border-color: #3b5770; background: #0f2030; }
.photo-preview img, .gallery-photo img, .photo-field img { object-fit: contain; object-position: center; }
.photo-field img { background: transparent; }
.photo-pick, .picker { background: #163e5b; border: 1px dashed #68a9d5; color: #e7f4ff; }
dialog:not(.photo-modal) { background: #142433; color: #edf4fc; border: 1px solid #476079; border-radius: 16px; padding: 26px; box-shadow: 0 28px 90px #0008; }
dialog::backdrop { background: #020810b8; backdrop-filter: blur(4px); }
.permissions { border-color: #40586e; background: #102231; }
.permission-option { min-height: 44px; }
.badge { font-size: 11px; padding: 5px 9px; font-weight: 650; }
.approved, .badge.approved { background: #153d34; color: #ade6cc; }
.pending, .badge.pending { background: #473a20; color: #f3d992; }
.rejected, .badge.rejected { background: #482b37; color: #ffbeca; }
.toast { background: #eaf5ff; color: #113655; border: 1px solid #9bbfdc; border-radius: 11px; }
.auth-screen { display: grid; grid-template-columns: minmax(0, 480px) minmax(0, 440px); gap: 64px; justify-content: center; align-items: center; min-height: 100dvh; padding: 48px 32px; background: radial-gradient(ellipse at 15% 30%, #153d5b66, transparent 56%), #0c1520; }
.auth-brand-panel { text-align: left; padding: 20px 0; }
.auth-brand-panel img { width: 174px; margin-bottom: 48px; }
.auth-brand-panel h1 { font-size: clamp(30px, 3.4vw, 47px); font-weight: 620; max-width: 460px; margin: 18px 0 22px; line-height: 1.15; }
.auth-brand-panel > p { max-width: 385px; color: #aec4d9; font-size: 15px; line-height: 1.75; }
.auth-points { display: grid; gap: 15px; padding: 0; margin: 32px 0 0; list-style: none; }
.auth-points li { display: flex; gap: 12px; align-items: center; font-size: 13px; color: #c3d7e8; }
.auth-points svg { width: 20px; height: 20px; color: #81c8fa; }
.auth-card { width: 100%; max-width: 440px; padding: 34px; border-top: 1px solid #426681; box-shadow: 0 24px 80px #0003; text-align: left; }
.auth-card .auth-logo { margin: 0 0 22px; width: 135px; height: 42px; }
.auth-card h2 { font-size: 25px; margin: 12px 0; text-align: left; }
.auth-card > .eyebrow, .auth-card > p.muted { text-align: left; }
.auth-card > p.muted { font-size: 13px; }
.auth-card label { font-size: 12px; }
.auth-card #authSubmit { width: 100%; margin-top: 8px; }
.auth-message:empty { display: none; }
.auth-return { display: inline-block; margin-top: 24px; color: #a8c3da; font-size: 12px; text-decoration: none; }
.auth-return:hover { color: #fff; text-decoration: underline; }
.module-chooser { background: radial-gradient(ellipse at 50% 0, #153a5680, transparent 60%), #0c1520; padding: 40px 24px; }
.module-chooser-card { width: min(940px, 100%); padding: 34px 42px; border: 1px solid #324a60; background: #111f2e; border-radius: 19px; box-shadow: 0 20px 80px #0003; }
.module-chooser-card::before { display: none; }
.module-chooser-logo { width: 166px; margin-bottom: 20px; }
.module-chooser-card h1 { font-size: 30px; font-weight: 650; margin-bottom: 12px; }
.module-chooser-description { font-size: 14px; }
.chooser-section-title { color: #afc6dc; font-size: 11px; letter-spacing: .12em; text-transform: uppercase; font-weight: 650; margin: 28px 0 13px; }
.module-chooser-option { min-height: 106px; padding: 22px; border-radius: 12px; border: 1px solid #344e65; background: #172a3b; color: #edf4fc; text-align: left; box-shadow: none; }
.module-chooser-option:hover { background: #20394d; border-color: #78b9e5; transform: none; }
.module-chooser-icon { width: 43px; height: 43px; flex-basis: 43px; background: #1b405d; color: #a0d4fa; border-radius: 10px; }
.module-chooser-icon svg { width: 24px; height: 24px; }
.module-chooser-option strong { font-size: 15px; }
.module-chooser-option small { font-size: 12px; line-height: 1.6; color: #aac2d8; }
.module-chooser-option > b { margin-left: auto; color: #76b9e9; font-size: 24px; }
.module-chooser-logout { min-height: 42px; margin-top: 24px; color: #b9cfe3; }
body.vm-management > header, body.vm-photos > header, .fin-header { padding: 22px max(28px, calc((100vw - 1264px) / 2)); gap: 24px; }
body.vm-management > header img, body.vm-photos > header img, .fin-header .brand img { width: 156px; }
body.vm-management > main, body.vm-finance > main, body.vm-photos > main { max-width: 1320px; padding-inline: 28px; }
.management-intro { font-size: 15px; color: #bccde0; margin-bottom: 20px; }
body.vm-management .management-tile { background: #14293b !important; border: 1px solid #39566e !important; border-radius: 14px !important; padding: 24px !important; min-height: 135px; box-shadow: none; }
body.vm-management .management-tile:hover { border-color: #86c0e9 !important; background: #1c374c !important; transform: none; }
.management-tile-text strong { font-size: 16px; }
.management-tile-text > span { font-size: 12px; color: #b5cada; }
.management-icon { border-radius: 12px; width: 48px; height: 48px; flex-basis: 48px; border-color: #426c89; background: #174666; color: #b1dcf8; }
.management-icon svg { width: 26px; height: 26px; }
.management-area > p { max-width: 960px; color: #b2c5d7; font-size: 13px; }
.management-trail { border-color: #334b61; }
.management-area .card { padding: 24px; }
body.vm-finance .card { background: #132637; padding: 26px; border-radius: 15px; }
.stats .stat { background: #162e43; border-color: #365c7a; border-radius: 12px; }
.stats .stat strong { font-variant-numeric: tabular-nums; font-size: 26px; }
.line, .specifications { background: #0f2333; border-color: #354e66; }
body.vm-transfer main { max-width: 580px; padding-inline: 28px; }
body.vm-transfer img.logo { width: 154px; margin: 16px 0 24px; }
body.vm-transfer h1 { font-size: 29px; }
body.vm-transfer button { border-radius: 9px; }
.professional-context { margin: 5px 0 22px; color: #a5bdd3; font-size: 13px; }
.professional-list-status { margin: 18px 24px 0; color: #b1c5d9; font-size: 12px; }
.group-grid > .empty-state { grid-column: 1 / -1; padding: 32px 24px; border: 1px dashed #38536c; border-radius: 13px; text-align: center; }
.empty-state h3 { margin: 0 0 8px; font-size: 18px; }
.empty-state p { margin: 0; }
body.vm-plates .search-wrap, body.vm-plates .code-search { border-color: var(--vm-line); background: #122332; }
body.vm-plates .search-wrap input { background: transparent; border: 0; }
body.vm-plates .code-entry { background: #132737; border-color: var(--vm-line); }
body.vm-plates .code-thumb { background: #10212e; border-color: #334c61; }
body.vm-plates .code-thumb img { background: transparent; }
body.vm-plates .code-meta strong { color: #e3eef9; }
body.vm-plates .code-meta span { color: #a8bfd3; }
body.vm-plates .code-edit label { color: #c7d7e8; }
body.vm-plates .form-heading h2, body.vm-plates .code-heading h2, body.vm-plates .modal-head h2, body.vm-plates .empty h2 { color: #edf4fc; }
@media (max-width: 1000px) {
  .app-shell { padding-inline: 24px; }
  .topbar-inner { padding-inline: 24px; }
  .topbar-actions .local-badge { display: none; }
  .auth-screen { gap: 32px; grid-template-columns: minmax(0, 360px) minmax(0, 420px); }
  .brand-lockup { gap: 15px; }
}
@media (max-width: 700px) {
  html { scroll-padding-top: 85px; }
  body { font-size: 14px; }
  body:not(.vm-public) main { padding-top: 24px; padding-bottom: 36px; }
  .app-shell { padding: 0 16px; }
  .app-shell > .topbar { padding: 18px 0; margin: 0; gap: 14px; }
  .brand-lockup { width: 100%; gap: 14px; }
  .brand-lockup h1 { font-size: 16px; }
  .brand-logo, .brand-logo-wrap { width: 122px; height: 38px; flex-basis: 122px; }
  .eyebrow, .brand-name { font-size: 9px; }
  .topbar-actions { width: 100%; justify-content: flex-end; }
  .topbar-inner { padding: 18px 16px; }
  .main-nav { top: 6px; border-radius: 10px; padding: 5px; margin-top: 0; }
  .nav-btn { min-height: 40px; padding: 9px 13px; font-size: 12px; }
  .page-heading { align-items: flex-start; flex-direction: column; gap: 16px; margin-bottom: 22px; }
  .page-heading h2 { font-size: 27px; }
  .heading-actions { width: 100%; }
  .heading-actions .button { flex: 1; }
  .stats-grid { gap: 12px; }
  .stat-card, .stats-grid .stat-card { min-height: 112px; padding: 16px; }
  .stat-card strong { font-size: 25px; }
  .stat-label { font-size: 11px; }
  .stat-note { font-size: 10px; }
  .form-panel, .settings-panel, .list-panel, .purchase-panel, .consult-card, .group-panel { padding: 18px; }
  .form-grid { gap: 16px; }
  input:not([type=checkbox]):not([type=radio]), select, textarea { font-size: 16px; }
  .form-footer { align-items: stretch; flex-direction: column; }
  .form-footer > div { flex-wrap: wrap; }
  .consult-search-panel { padding: 16px; margin-bottom: 16px; }
  .consult-card .price-cards.price-cards-four { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; padding-bottom: 0; overflow: visible; }
  .consult-card .price-cards-four .price-card { min-width: 0; min-height: 110px; padding: 12px; gap: 10px; }
  .consult-card .price-cards-four .price-card span { font-size: 11px; line-height: 1.45; white-space: normal; overflow-wrap: anywhere; }
  .consult-card .price-cards-four .price-card strong { font-size: clamp(16px, 4.5vw, 20px); line-height: 1.35; white-space: normal; }
  #overviewCatalog .overview-toolbar { margin-bottom: 16px; padding: 16px; }
  #overviewCatalog .catalog-toolbar .search-control { min-width: 0; }
  .group-grid, .product-grid, .catalog-grid { grid-template-columns: 1fr; gap: 16px; }
  .group-item { padding: 16px; gap: 10px; }
  .group-item img, .group-no-photo { height: 200px; }
  .group-item > strong { font-size: 16px; overflow-wrap: anywhere; }
  .consult-kg-prices b { font-size: 18px; }
  #consultGroups { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  .group-type-tile { min-height: 140px; padding: 16px 12px; }
  .group-type-tile strong { font-size: 13px; }
  .auth-screen { grid-template-columns: minmax(0, 420px); gap: 20px; padding: 28px 18px; align-content: center; }
  .auth-brand-panel { display: none; }
  .auth-card { padding: 27px 23px; }
  .module-chooser { padding: 22px 16px; }
  .module-chooser-card { padding: 26px 20px; border-radius: 15px; }
  .module-chooser-card h1 { font-size: 27px; }
  .module-chooser-actions { grid-template-columns: 1fr; gap: 12px; }
  .finance-choices .solo-last { width: 100%; grid-column: auto; }
  .module-chooser-option { padding: 18px; min-height: 96px; }
  .management-tiles { grid-template-columns: 1fr; gap: 14px; }
  .management-tile:last-child:nth-child(odd) { max-width: none; grid-column: auto; }
  body.vm-management > header, body.vm-photos > header, .fin-header { padding: 18px 16px; gap: 14px; flex-wrap: wrap; }
  body.vm-management > header img, body.vm-photos > header img, .fin-header .brand img { width: 130px; }
  body.vm-management > main, body.vm-finance > main, body.vm-photos > main { padding-inline: 16px; }
  .management-area .card, body.vm-finance .card { padding: 20px 16px; }
  .management-tile-text strong { font-size: 15px; }
  .toolbar { align-items: stretch; flex-direction: column; }
  .toolbar .tabs { overflow-x: auto; }
  .professional-list-status { margin: 16px 18px 0; }
  .count { white-space: normal; font-size: 12px; }
  .fin-header .brand span { font-size: 9px; }
  body.vm-transfer main { padding: 24px 18px; }
  dialog:not(.photo-modal) { padding: 20px; max-width: calc(100vw - 24px); }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}
