/* V06 tablet and desktop. One five-section hierarchy at every size.
   Phone portrait and short touch landscape remain owned by the approved V05 CSS.
   This adapter changes presentation only: original fields, controls and handlers stay. */
@media (min-width:721px) and (min-height:501px), (min-width:1025px), (min-width:721px) and (pointer:fine) {
  body.tricios-erp,.account-erp-mode {
    --tricios-background:#FFFFFF;--tricios-surface:#F3F4F7;--tricios-card:#F8F9FB;
    --tricios-line:#E5E6EB;--tricios-ink:#121316;--tricios-muted:#676A77;
    --tricios-accent:#76243B;--tricios-accent-hover:#892B45;
    --tricios-app-wine:#76243B;--tricios-app-soft-wine:#F7E9EE;
    --tricios-ui-font:-apple-system,BlinkMacSystemFont,'Segoe UI',Arial,sans-serif;
    --tricios-header-height:76px;--mr-shell-w:208px;
    font-family:var(--tricios-ui-font)!important;-webkit-font-smoothing:antialiased;
    color:var(--tricios-ink);background:var(--tricios-background);
  }
  html[data-theme="dark"] body.tricios-erp,html[data-theme="dark"] .account-erp-mode {
    --tricios-background:#0A0A0B;--tricios-surface:#222225;--tricios-card:#171719;
    --tricios-line:#2B2B30;--tricios-ink:#F5F5F7;--tricios-muted:#A6A6AD;
    --tricios-app-wine:#B84468;--tricios-app-soft-wine:#36202A;
  }
  body.tricios-erp {padding-left:var(--mr-shell-w)!important;padding-bottom:0!important}
  .tricios-erp :is(h1,h2,h3,h4,.name,.budget-metric strong,.pipeline-metrics strong,.hero-total strong,.tc-kpi b,.eco-kpi strong,.calendar-simple-kpi strong,.preview-head b,.home-next b,.project-main b,.priority-copy b,.priority-count) {font-family:var(--tricios-ui-font)!important;font-weight:650!important;letter-spacing:-.025em}
  .tricios-erp h1 {font-size:34px!important;line-height:1.2!important}
  .tricios-erp h2 {font-size:22px!important;line-height:1.3!important}
  .tricios-erp :is(main.wrap,.dashboard,.pipeline-page,.project-page,.doc-main,.tc-wrap,.fin-page,.att-page) {width:100%;max-width:1240px!important;min-width:0;padding:32px clamp(24px,3vw,44px) 48px!important;margin:0 auto!important}
  .tricios-erp :is(.panel-top,.project-top,.doc-top) {min-height:0;padding:16px clamp(24px,3vw,44px)}
  .tricios-erp>.tricios-header,.account-erp-mode>.tricios-header {height:76px;min-height:76px;max-height:76px;padding:14px 28px;gap:16px;border:0!important;border-bottom:1px solid var(--tricios-line)!important;background:var(--tricios-background)}
  .tricios-erp>.tricios-header .tricios-brand,.account-erp-mode>.tricios-header .tricios-brand {width:184px;min-height:44px;padding:0}
  .tricios-erp .tricios-header .tricios-software-label,.tricios-erp .tricios-header .tricios-demo-badge {display:none!important}
  .tricios-erp .tricios-header-actions>.tricios-language,.tricios-erp .tricios-header-actions>[data-theme-toggle],.account-erp-mode .tricios-header-actions>.tricios-language {display:none!important}
  .tricios-erp .tricios-app-header-search {display:inline-flex!important;width:44px;min-height:44px;border:0!important;border-radius:50%!important;color:var(--tricios-ink)!important}
  .tricios-erp .tricios-header .tricios-account-link {width:44px;height:44px;min-height:44px;display:inline-flex;justify-content:center;border-radius:50%;background:var(--tricios-surface);padding:10px;color:var(--tricios-ink)!important}
  .tricios-erp .tricios-account-link>span:not(.tricios-app-initials) {display:none}
  .tricios-erp .tricios-app-has-initials>.tricios-icon {display:none}
  .tricios-erp .tricios-app-initials:not([hidden]) {display:block!important;font-size:15px;font-weight:600;line-height:1}

  /* The original phone tab nodes become the rail. Native More and focus return
     therefore use exactly the same listener and active-page calculation. */
  .tricios-erp .mr-shell {inset:var(--tricios-header-height) auto 0 0!important;top:var(--tricios-header-height)!important;bottom:0!important;width:var(--mr-shell-w)!important;height:auto!important;display:block!important;padding:24px 12px;background:var(--tricios-background)!important;border:0!important;border-right:1px solid var(--tricios-line)!important;box-shadow:none!important;overflow-y:auto}
  .tricios-erp .mr-shell>:is(.mr-shell-nav,.mr-shell-footer,.mr-shell-brand,.tricios-sidebar-heading) {display:none!important}
  .tricios-erp .mr-mobile-nav {display:grid!important;grid-template-columns:minmax(0,1fr)!important;gap:8px;min-height:0!important;height:auto!important;padding:0!important;background:transparent}
  .tricios-erp .mr-mobile-nav>.mr-shell-link {display:flex;flex-direction:row;justify-content:flex-start;align-items:center;gap:14px;width:100%;min-width:0;max-width:none;min-height:54px;padding:14px 16px!important;margin:0;border:0!important;border-radius:15px!important;font:500 14px/1.4 var(--tricios-ui-font);color:var(--tricios-muted)!important;background:transparent!important;box-shadow:none!important}
  .tricios-erp .mr-mobile-nav>.mr-shell-link.active {background:var(--tricios-app-soft-wine)!important;color:var(--tricios-app-wine)!important}
  .tricios-erp .mr-mobile-nav>.mr-shell-link:hover {background:var(--tricios-surface)!important;color:var(--tricios-ink)!important}
  .tricios-erp .mr-mobile-nav .mr-shell-label {display:block!important;width:auto;min-height:0;font-size:14px;line-height:1.4;font-weight:500;white-space:normal;overflow:visible;text-align:left}
  .tricios-erp .mr-mobile-nav .mr-shell-icon,.tricios-erp .mr-mobile-nav .mr-shell-icon svg {width:23px;height:23px;flex:0 0 23px;background:transparent!important}
  .tricios-erp .mr-mobile-nav :focus-visible,.account-erp-mode .account-app-nav :focus-visible {outline:2px solid var(--tricios-app-wine)!important;outline-offset:-2px}

  /* More is an accessible native modal, with three clear groups on wide screens. */
  .tricios-erp .mr-mobile-menu,.account-erp-mode .account-app-menu {width:min(920px,calc(100vw - 48px));max-width:none;max-height:calc(100dvh - 48px)!important;height:auto!important;margin:auto!important;border:1px solid var(--tricios-line)!important;border-radius:24px!important;padding:0!important;background:var(--tricios-background)!important;color:var(--tricios-ink);overflow:auto;overscroll-behavior:contain;font-family:var(--tricios-ui-font)}
  .tricios-erp .mr-mobile-menu::backdrop {background:#00000088;backdrop-filter:blur(3px)}
  .tricios-erp .mr-mobile-menu>header,.account-erp-mode .account-app-menu>header {position:sticky;top:0;z-index:2;display:flex;align-items:center;justify-content:space-between;gap:16px;padding:20px 24px!important;min-height:82px;background:var(--tricios-background)!important;border:0!important}
  .tricios-erp .mr-mobile-menu>header h2,.account-erp-mode .account-app-menu>header h2 {font:650 28px/1.2 var(--tricios-ui-font)!important;margin:0}
  .tricios-erp .mr-mobile-menu>header button,.account-erp-mode .account-app-menu>header button {display:grid;place-items:center;width:44px;height:44px;min-width:44px;min-height:44px;padding:10px;border:0!important;border-radius:50%!important;background:var(--tricios-surface)!important;color:var(--tricios-ink)!important}
  .tricios-erp .mr-mobile-menu-links,.account-erp-mode .account-app-menu-links {display:grid;grid-template-columns:repeat(3,minmax(0,1fr));align-items:start;gap:20px;padding:0 24px 24px}
  .tricios-erp .tricios-app-menu-group,.account-erp-mode .account-app-menu-group {min-width:0}
  .tricios-erp .tricios-app-menu-group h3,.account-erp-mode .account-app-menu-group h3 {font:500 13px/1.4 var(--tricios-ui-font)!important;letter-spacing:0;color:var(--tricios-muted)!important;margin:0 2px 10px}
  .tricios-erp .tricios-app-menu-group :is(.tricios-app-menu-link,.tricios-app-setting),.account-erp-mode .account-app-menu-group :is(.account-app-menu-link,.account-app-setting) {display:flex;align-items:center;justify-content:flex-start;gap:10px;width:100%;min-height:58px;padding:10px 12px;background:var(--tricios-card)!important;color:var(--tricios-ink)!important;border:0;border-bottom:1px solid var(--tricios-line)!important;border-radius:0;text-align:left;font:400 14px/1.4 var(--tricios-ui-font)}
  .tricios-erp .tricios-app-menu-group>:nth-child(2),.account-erp-mode .account-app-menu-group>:nth-child(2) {border-radius:18px 18px 0 0}
  .tricios-erp .tricios-app-menu-group>:last-child,.account-erp-mode .account-app-menu-group>:last-child {border:0!important;border-radius:0 0 18px 18px}
  .tricios-erp :is(.tricios-app-menu-link,.tricios-app-setting)>span:nth-child(2),.account-erp-mode :is(.account-app-menu-link,.account-app-setting)>span:nth-child(2) {flex:1;min-width:0;overflow-wrap:anywhere}
  .tricios-erp .tricios-app-menu-icon,.account-erp-mode .account-app-menu-icon {display:grid;place-items:center;flex:0 0 34px;width:34px;height:34px;border-radius:50%;background:var(--tricios-surface);color:var(--tricios-ink)}
  .tricios-erp .tricios-app-menu-icon svg,.account-erp-mode .account-app-menu-icon svg {width:19px;height:19px}
  .tricios-erp .tricios-app-menu-link>.tricios-icon,.account-erp-mode .account-app-menu-arrow svg {width:14px;height:14px;flex:0 0 14px;color:var(--tricios-muted)}
  .tricios-erp .tricios-app-setting select,.account-erp-mode .account-app-setting select {width:95px;max-width:110px;min-width:0;min-height:44px!important;margin:0;padding:8px!important;border:0!important;border-radius:10px!important;background:var(--tricios-surface)!important;color:var(--tricios-ink)!important;font:400 13px/1.4 var(--tricios-ui-font)!important}
  .tricios-erp .tricios-app-menu-footer,.account-erp-mode .account-app-menu-footer {grid-column:1/-1;display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:10px;padding-top:6px}
  .tricios-erp .tricios-app-menu-footer :is(a,button) {display:flex;align-items:center;gap:10px;width:auto;min-height:44px;padding:8px 0;background:transparent!important;color:var(--tricios-muted)!important;border:0!important;font-size:13px}
  .tricios-erp .tricios-app-menu-footer a>.tricios-icon {width:14px;height:14px}

  /* Shared app cards and forms. Legacy identifiers and all form fields remain. */
  .tricios-erp :is(.panel,.panel-card,.card,.doc-card,.docs-box,.tc-card,.tc-kpi,.eco-kpi,.client-kpi,.client-summary-card,.project-card,.stage-card,.project-visual-card,.calendar-simple-kpi,.doc-kpi,.mini-summary) {background:var(--tricios-card)!important;border:0!important;border-radius:20px!important;box-shadow:none!important;min-width:0}
  .tricios-erp :is(.panel-head,.card-head,.docs-head,.tc-card-head,.preview-head,.timeline-head) {background:transparent!important;border-color:var(--tricios-line)!important}
  .tricios-erp :is(.priority-count,.review-hint,.appointment-context,.project-source,.technical-box,.pricing-decision,.mr-action-dock-status,.smart-budget-body,.doc-detail-body,.mr-global-search-box) {background:var(--tricios-surface)!important;border:0!important;border-radius:16px!important}
  .tricios-erp :is(input:not([type=checkbox]):not([type=radio]):not([type=range]):not([type=hidden]),select,textarea) {min-width:0;max-width:100%;min-height:48px!important;padding:12px 14px!important;border:0!important;border-radius:14px!important;background:var(--tricios-surface)!important;color:var(--tricios-ink)!important;font:400 15px/1.4 var(--tricios-ui-font)!important;box-shadow:none!important}
  .tricios-erp textarea {min-height:112px;resize:vertical}
  .tricios-erp :is(label,.form label,.flow-form label) {font:500 13px/1.5 var(--tricios-ui-font);letter-spacing:0;text-transform:none;color:var(--tricios-muted)!important}
  .tricios-erp :is(.btn,.pill-link,.ghost-btn,.primary-link,.primary-btn,.full-btn,.tc-btn,.form-submit button,.calendar-simple-head-actions>button) {min-height:44px;border-radius:14px!important;font:500 14px/1.4 var(--tricios-ui-font)!important;text-transform:none;letter-spacing:0;box-shadow:none!important}
  .tricios-erp :is(.btn.ghost,.btn.light,.ghost,.ghost-btn,.tc-btn:not(.primary):not(.gold),.pill-link:not(.primary),.doc-actions .secondary,.form-submit .cancel,.calendar-simple-head-actions>button.light) {background:var(--tricios-surface)!important;border:0!important;color:var(--tricios-ink)!important}
  .tricios-erp :is(.tabs button,.tc-tab,.mr-budget-tab,.client-tabs button,.project-tab,.group-tabs button) {min-height:44px;border:0;border-radius:999px!important;font:500 14px/1.4 var(--tricios-ui-font)!important;padding:10px 16px;background:var(--tricios-surface)!important;color:var(--tricios-muted)!important;box-shadow:none!important}
  .tricios-erp :is(.tabs button.active,.tc-tab.active,.mr-budget-tab.active,.client-tabs button.active,.project-tab.active,.group-tabs button.active) {background:var(--tricios-ink)!important;color:var(--tricios-background)!important;box-shadow:none!important}
  .tricios-erp :is(.form,.form-grid,.flow-form,.mr-inline-form)>* {min-width:0}
  .tricios-erp :is(.modal-card,.form-card,.tc-modal-card,.doc-modal-card,.flow-modal-card) {border-radius:24px!important;max-width:calc(100vw - 48px);max-height:calc(100dvh - 48px);background:var(--tricios-background)!important}
  .tricios-erp :is(.modal-head,.form-head,.form-submit,.modal-foot,.client-modal-head,.client-modal-footer,.flow-modal-head,.flow-modal-actions) {background:var(--tricios-background)!important;border-color:var(--tricios-line)!important}

  /* Home: approved app content, expanded rather than replaced with another dashboard. */
  body.mr-panel-home :is(.panel-top,.home-hero,.home-actions,.home-today-panel,.home-projects-panel) {display:none!important}
  body.mr-panel-home .dashboard {display:grid;grid-template-columns:minmax(0,1.25fr) minmax(0,1fr);align-items:start;gap:32px}
  body.mr-panel-home .tricios-app-home {display:block;min-width:0}
  body.mr-panel-home .tricios-app-home-head {display:flex;align-items:center;justify-content:space-between;gap:16px;min-height:44px;margin-bottom:24px}
  body.mr-panel-home .tricios-app-home-head h1 {font-size:20px!important;margin:0;min-width:0}
  body.mr-panel-home .tricios-app-scope {display:inline-flex;justify-content:center;align-items:center;min-height:44px;padding:10px 13px;border-radius:14px;background:var(--tricios-surface);font-size:12px;white-space:nowrap}
  body.mr-panel-home .tricios-app-balance {padding:30px 0 28px;text-align:center}
  body.mr-panel-home .tricios-app-balance-label {display:block;color:var(--tricios-muted);font-size:17px}
  body.mr-panel-home .tricios-app-balance-number {display:block;margin:8px 0;font-size:clamp(42px,4.4vw,62px);font-weight:700;line-height:1.12;letter-spacing:-.05em;color:var(--tricios-ink);font-variant-numeric:tabular-nums;overflow-wrap:anywhere}
  body.mr-panel-home .tricios-app-balance-status {margin:8px 0 0;font-size:12px;color:var(--tricios-muted);line-height:1.5}
  body.mr-panel-home #triciosHomeCurrency {width:auto;min-height:44px!important;margin-top:12px}
  body.mr-panel-home #triciosHomeCurrencyNote {display:block;font-size:12px;color:var(--tricios-muted);margin-top:8px}
  body.mr-panel-home .tricios-app-quickactions {display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px;margin:0 0 26px}
  body.mr-panel-home .tricios-app-quickaction {display:flex;flex-direction:column;align-items:center;justify-content:flex-start;gap:12px;padding:4px;min-height:114px;min-width:0;text-align:center;font-size:13px;line-height:1.4;color:var(--tricios-ink)}
  body.mr-panel-home .tricios-app-quickaction>span:first-child {display:grid;place-items:center;width:76px;height:76px;border-radius:50%;background:var(--tricios-app-soft-wine);color:var(--tricios-accent)}
  html[data-theme="dark"] body.mr-panel-home .tricios-app-quickaction>span:first-child {background:var(--tricios-accent);color:#FFFFFF}
  body.mr-panel-home .tricios-app-quickaction svg {width:28px;height:28px;stroke-width:1.6}
  body.mr-panel-home .tricios-app-today-card {padding:20px 16px 12px;border-radius:22px;background:var(--tricios-surface);margin-bottom:16px}
  body.mr-panel-home .tricios-app-section-head {display:flex;align-items:center;justify-content:space-between;gap:16px;margin:0 4px 14px}
  body.mr-panel-home .tricios-app-section-head h2 {font-size:20px!important;margin:0}
  body.mr-panel-home .tricios-app-section-head a {display:inline-flex;align-items:center;gap:6px;min-height:44px;font-size:13px;color:var(--tricios-app-wine)}
  body.mr-panel-home .tricios-app-section-head a svg {width:15px;height:15px}
  body.mr-panel-home #triciosHomeToday {padding:0 16px;border-radius:16px;background:var(--tricios-background)}
  html[data-theme="dark"] body.mr-panel-home #triciosHomeToday {background:var(--tricios-card)}
  body.mr-panel-home .tricios-app-agenda-row {display:flex;align-items:center;gap:12px;min-height:82px;padding:14px 0;border-bottom:1px solid var(--tricios-line);color:var(--tricios-ink);min-width:0}
  body.mr-panel-home .tricios-app-agenda-row:last-child {border:0}
  body.mr-panel-home .tricios-app-agenda-icon {display:grid;place-items:center;width:40px;height:40px;flex:0 0 40px;border-radius:50%;background:var(--tricios-surface)}
  body.mr-panel-home .tricios-app-agenda-icon svg {width:20px;height:20px}
  body.mr-panel-home .tricios-app-agenda-time {font-size:13px;flex-shrink:0;min-width:36px;font-variant-numeric:tabular-nums}
  body.mr-panel-home .tricios-app-agenda-copy {flex:1;min-width:0;overflow-wrap:anywhere}
  body.mr-panel-home .tricios-app-agenda-copy strong {display:block;font-size:14px;font-weight:600;line-height:1.4}
  body.mr-panel-home .tricios-app-agenda-copy small {display:block;font-size:12px;line-height:1.5;margin-top:4px;color:var(--tricios-muted)}
  body.mr-panel-home .tricios-app-agenda-row>.tricios-icon {width:15px;height:15px;color:var(--tricios-muted)}
  body.mr-panel-home .tricios-app-empty {padding:22px 4px;font-size:13px;line-height:1.6;color:var(--tricios-muted);margin:0}
  body.mr-panel-home .tricios-app-empty strong {display:block;font-size:14px;color:var(--tricios-ink)}
  body.mr-panel-home .tricios-app-empty p {margin:6px 0 0}
  body.mr-panel-home .tricios-app-finance-mini {display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;margin-top:16px}
  body.mr-panel-home .tricios-app-finance-mini>a {padding:20px 18px;border-radius:20px;background:var(--tricios-card);min-width:0;border:1px solid var(--tricios-line)}
  body.mr-panel-home .tricios-app-finance-mini span {display:block;font-size:12px;line-height:1.5;color:var(--tricios-muted)}
  body.mr-panel-home .tricios-app-finance-mini strong {display:block;font-size:26px;font-weight:650;line-height:1.3;margin-top:9px;letter-spacing:-.025em;overflow-wrap:anywhere}
  body.mr-panel-home #triciosHomeDrafts {display:flex;align-items:center;gap:12px;min-height:58px;margin-top:14px;padding:13px 16px;border-radius:16px;background:var(--tricios-app-soft-wine);color:var(--tricios-app-wine);font-size:13px}
  body.mr-panel-home #triciosHomeDrafts>.tricios-icon:last-child {margin-left:auto;width:16px;height:16px}
  body.mr-panel-home .tricios-app-refresh {display:flex;justify-content:center;align-items:center;width:100%;min-height:44px;margin-top:16px;border:0;background:transparent!important;color:var(--tricios-muted)!important;font-size:13px}
  body.mr-panel-home .home-main-grid {display:block!important;margin:0;padding-top:7px;min-width:0}
  body.mr-panel-home .home-priority-panel {padding:20px!important;background:var(--tricios-card)!important;border:0!important;border-radius:22px!important}
  body.mr-panel-home .home-priority-panel .panel-head {padding:0 0 18px!important;display:flex;align-items:center;justify-content:space-between;gap:12px;border:0!important}
  body.mr-panel-home .home-priority-panel .section-eyebrow {display:none}
  body.mr-panel-home .home-priority-panel h2 {font-size:19px!important;line-height:1.3!important;margin:0}
  body.mr-panel-home .home-priority-panel .panel-summary {font-size:11px;flex-shrink:0}
  body.mr-panel-home .priority-list {display:grid;gap:10px;padding:0}
  body.mr-panel-home .priority-row {display:grid;grid-template-columns:32px minmax(0,1fr) 16px;align-items:center;gap:12px;min-height:78px;padding:16px!important;border:0!important;border-radius:17px!important;background:var(--tricios-background)!important;color:var(--tricios-ink)!important}
  body.mr-panel-home .priority-row:first-child {background:var(--tricios-accent)!important;color:#FFFFFF!important}
  body.mr-panel-home .priority-row:first-child :is(.priority-count,.priority-copy b,.priority-copy small,i) {color:#FFFFFF!important;background:transparent!important}
  body.mr-panel-home .priority-count {display:grid;place-items:center;width:32px;height:32px;min-width:32px;border:1px solid var(--tricios-line)!important;border-radius:50%;font-size:18px;font-variant-numeric:tabular-nums;background:transparent!important}
  body.mr-panel-home .priority-row:first-child .priority-count {border-color:#FFFFFF77!important}
  body.mr-panel-home .priority-copy b {font-size:14px;line-height:1.4;font-weight:600!important}
  body.mr-panel-home .priority-copy small {display:block;font-size:12px;line-height:1.5;margin-top:4px;white-space:normal;overflow-wrap:anywhere;color:var(--tricios-muted)!important}
  body.mr-panel-home .priority-clear {display:flex;gap:14px;padding:18px;border:0!important;border-radius:18px;background:var(--tricios-background)!important}
  body.mr-panel-home .priority-clear b {font-size:15px}
  body.mr-panel-home .priority-clear p {font-size:13px;line-height:1.5;color:var(--tricios-muted)}
  body.mr-panel-home .load-error.show {grid-column:1/-1;padding:16px;border-radius:16px;background:var(--tricios-surface)!important;color:var(--tricios-ink)!important}

  /* Same Projects/Clients/Agenda app hierarchy, with useful columns on wider screens. */
  .tricios-erp {--tricios-work-card:var(--tricios-card);--tricios-work-field:var(--tricios-surface);--tricios-work-soft:var(--tricios-app-soft-wine);--tricios-work-ink-accent:var(--tricios-app-wine)}
  body.tricios-erp .tricios-workspace-app {display:block}
  body.tricios-erp :is(.tricios-app-project-head,.tricios-app-client-head,.tricios-app-calendar-head) {display:flex;align-items:center;justify-content:space-between;gap:20px;margin:0 0 24px;padding:0}
  body.tricios-erp :is(.tricios-app-project-head h1,.tricios-app-client-head h2,.tricios-app-calendar-head h2) {font-size:34px!important;margin:0}
  body.tricios-erp .tricios-app-round-add {display:grid!important;place-items:center;width:48px;height:48px;min-height:48px;flex:0 0 48px;padding:0!important;border:0!important;border-radius:50%!important;background:var(--tricios-accent)!important;color:#FFFFFF!important}
  .tricios-erp :is(.tricios-app-round-add,.tricios-app-filter-toggle,.tricios-app-calendar-filter-toggle,.tricios-app-calendar-date,.tricios-app-calendar-step) svg {width:23px;height:23px;fill:none;stroke:currentColor;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round}
  body.mr-pipeline-page :is(.pipeline-top,.pipeline-metrics,.project-type-legend),body.mr-panel-crm #clientsView .crm-direct-head {display:none!important}
  body.mr-pipeline-page .flow-switch {display:none}
  body.mr-pipeline-page.tricios-app-project-filter-open .flow-switch {display:grid;grid-template-columns:1fr 1fr;margin:0 0 16px;border:0;border-radius:16px;background:var(--tricios-surface)}
  body.mr-pipeline-page .toolbar-card {display:grid;grid-template-columns:minmax(0,1fr);gap:12px;background:transparent!important;border:0!important;padding:0!important;margin-bottom:18px}
  body.mr-pipeline-page .toolbar-card>*:not(.search-field) {display:none!important}
  body.mr-pipeline-page.tricios-app-project-filter-open .toolbar-card {grid-template-columns:repeat(2,minmax(0,1fr))}
  body.mr-pipeline-page.tricios-app-project-filter-open .toolbar-card>*:not(.toolbar-note) {display:flex!important}
  body.mr-pipeline-page .search-field {display:block;grid-column:1/-1;min-width:0}
  body.mr-pipeline-page .search-field>span {position:absolute;width:1px;height:1px;clip:rect(0,0,0,0);overflow:hidden}
  body.mr-pipeline-page #pipelineSearch,body.mr-panel-crm #clientSearch {width:100%;min-height:52px!important;border-radius:999px!important;padding:14px 20px!important}
  .tricios-erp :is(.tricios-app-project-tabs,.tricios-app-client-tabs,.tricios-app-calendar-segment) {display:grid!important;grid-template-columns:repeat(3,minmax(0,1fr));gap:4px;margin:0 0 18px;padding:4px;border:0;border-radius:999px;background:var(--tricios-surface)}
  .tricios-erp :is(.tricios-app-project-tabs,.tricios-app-client-tabs,.tricios-app-calendar-segment) button {min-height:44px;padding:10px 8px;border:0;border-radius:999px;background:transparent;color:var(--tricios-muted);font:500 14px/1.4 var(--tricios-ui-font)}
  .tricios-erp :is(.tricios-app-project-tabs,.tricios-app-client-tabs,.tricios-app-calendar-segment) button[aria-pressed=true] {background:var(--tricios-ink)!important;color:var(--tricios-background)!important}
  body.mr-pipeline-page .tricios-mobile-stage-picker {display:grid;grid-template-columns:minmax(0,1fr) 52px;margin-bottom:20px;padding:0;border-radius:16px;background:var(--tricios-surface);overflow:hidden}
  body.mr-pipeline-page .tricios-mobile-stage-picker label {display:block;min-width:0;margin:0;padding:0}
  body.mr-pipeline-page .tricios-mobile-stage-picker :is(label>span,small) {display:none}
  body.mr-pipeline-page #mobilePipelineStage {width:100%;min-height:52px!important;background:transparent!important;border-radius:0!important}
  body.mr-pipeline-page .tricios-app-filter-toggle {display:grid;place-items:center;min-height:52px;border:0;border-left:1px solid var(--tricios-line);background:transparent;color:var(--tricios-ink)}
  body.mr-pipeline-page .board-shell {overflow:visible;padding:0!important;border:0!important;background:transparent!important}
  body.mr-pipeline-page :is(.pipeline-board,.board-shell.hide-closed .pipeline-board) {display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:16px;width:100%;min-width:0;padding:0;overflow:visible;align-items:start}
  body.mr-pipeline-page .stage-column {display:contents!important;background:transparent;border:0;padding:0;margin:0;min-height:0}
  body.mr-pipeline-page .stage-column:is(.tricios-mobile-stage-hidden,.tricios-mobile-scope-hidden),body.mr-pipeline-page :is(.stage-head,.stage-value,.stage-index,.drag-handle,.tricios-stage-empty-desktop) {display:none!important}
  body.mr-pipeline-page .tricios-app-specific-stage .stage-head {display:flex!important;grid-column:1/-1;background:transparent!important;border:0;padding:0 4px 8px}
  body.mr-pipeline-page .stage-cards {display:contents}
  body.mr-pipeline-page .project-card {display:grid;grid-template-columns:44px minmax(0,1fr) auto;gap:7px 12px;padding:22px!important;margin:0;border:0!important;border-radius:22px!important;background:var(--tricios-card)!important;transform:none!important;cursor:auto;overflow:visible;min-width:0}
  body.mr-pipeline-page .project-card::before {display:none}
  body.mr-pipeline-page .card-top {display:contents}
  body.mr-pipeline-page .project-card h3 {grid-column:2/4;grid-row:1;font-size:18px!important;line-height:1.4;margin:0;min-width:0}
  body.mr-pipeline-page .tricios-app-project-open {display:block;min-height:44px;padding:4px 0;margin:-4px 0 -6px;overflow-wrap:anywhere}
  body.mr-pipeline-page .card-client {grid-column:2/4;grid-row:2;font:400 13px/1.5 var(--tricios-ui-font);letter-spacing:0;text-transform:none;color:var(--tricios-muted);overflow-wrap:anywhere}
  body.mr-pipeline-page .tricios-app-project-icon {display:grid;place-items:center;grid-column:1;grid-row:1/4;width:44px;height:44px;border-radius:50%;background:var(--tricios-app-soft-wine);color:var(--tricios-app-wine)}
  body.mr-pipeline-page .tricios-app-project-icon svg {width:25px;height:25px;fill:none;stroke:currentColor;stroke-width:1.6;stroke-linecap:round;stroke-linejoin:round}
  body.mr-pipeline-page .tricios-app-project-phase {display:block;grid-column:2/4;grid-row:3;justify-self:start;max-width:100%;padding:6px 11px;border-radius:999px;background:var(--tricios-app-soft-wine);color:var(--tricios-app-wine);font-size:12px;line-height:1.4;overflow-wrap:anywhere}
  body.mr-pipeline-page .project-kind-row {grid-column:2;grid-row:4;min-width:0;margin:0;align-self:center}
  body.mr-pipeline-page .project-kind-badge {padding:0;background:transparent!important;border:0!important;color:var(--tricios-muted)!important;font-size:12px;font-weight:400;text-transform:none;letter-spacing:0}
  body.mr-pipeline-page .project-kind-badge::before {content:'';display:inline-block;width:6px;height:6px;margin-right:6px;border-radius:50%;background:var(--project-accent,var(--tricios-accent))}
  body.tricios-erp.mr-pipeline-page .card-money {grid-column:3;grid-row:4;max-width:130px;font:650 20px/1.35 var(--tricios-ui-font)!important;color:var(--tricios-ink)!important;text-align:right;overflow-wrap:anywhere}
  body.mr-pipeline-page :is(.card-meta,.card-ref,.card-signals,.next-event,.supplier-order-signal) {grid-column:1/-1;margin:0;padding-top:4px;min-width:0;font-size:12px;line-height:1.5;color:var(--tricios-muted);overflow-wrap:anywhere}
  body.tricios-erp.mr-pipeline-page .card-ref {padding:8px 10px;background:var(--tricios-surface)!important;color:var(--tricios-muted)!important;border-radius:10px}
  body.tricios-erp.mr-pipeline-page .signal {padding:6px 9px;background:var(--tricios-surface)!important;color:var(--tricios-muted)!important;font:500 12px/1.4 var(--tricios-ui-font)}
  body.tricios-erp.mr-pipeline-page .signal.warn,body.tricios-erp.mr-pipeline-page .supplier-order-signal.missing {background:var(--tricios-warning-surface)!important;color:var(--tricios-warning-ink)!important}
  body.tricios-erp.mr-pipeline-page .signal.age.old {background:var(--tricios-danger-surface)!important;color:var(--tricios-danger-ink)!important}
  body.tricios-erp.mr-pipeline-page .next-event {border-color:var(--tricios-line)!important;padding-top:10px}
  body.tricios-erp.mr-pipeline-page .next-event b {color:var(--tricios-ink)!important}
  body.tricios-erp.mr-pipeline-page .supplier-order-signal {padding:10px;background:var(--tricios-success-surface)!important;color:var(--tricios-success-ink)!important;border-radius:12px}
  body.tricios-erp.mr-pipeline-page .supplier-order-signal b {color:inherit!important}
  body.mr-pipeline-page .tricios-app-project-actions {display:block;grid-column:1/-1;margin-top:7px;border-top:1px solid var(--tricios-line)}
  body.mr-pipeline-page .tricios-app-project-actions>summary {display:flex;align-items:center;justify-content:flex-end;gap:8px;min-height:44px;font-size:13px;color:var(--tricios-muted);list-style:none;cursor:pointer}
  body.mr-pipeline-page .tricios-app-project-actions>summary svg {width:14px;height:14px;fill:none;stroke:currentColor;stroke-width:1.7}
  body.mr-pipeline-page .tricios-app-project-actions[open]>summary svg {transform:rotate(90deg)}
  body.mr-pipeline-page .tricios-app-project-actions .card-actions {display:grid;grid-template-columns:minmax(0,1fr);gap:8px;padding:4px 0;margin:0}
  body.mr-pipeline-page .tricios-mobile-pipeline-empty:not([hidden]),body.mr-pipeline-page .stage-empty {display:block;grid-column:1/-1;padding:26px;border:1px dashed var(--tricios-line);border-radius:20px;background:var(--tricios-card);color:var(--tricios-muted);font-size:14px;line-height:1.5}
  body.mr-pipeline-page .tricios-stage-empty-mobile {display:inline}
  body.mr-pipeline-page .followup-row {padding:24px;border:0;border-radius:20px;background:var(--tricios-card);margin-bottom:14px;min-width:0}

  /* Customer cards and compact calendar use the original loaded records/editors. */
  body.mr-panel-crm :is(.panel,.calendar-simple-shell,.calendar-simple-panel) {border:0!important;background:transparent!important;box-shadow:none!important;border-radius:0!important}
  body.mr-panel-crm #clientsView .tablewrap,body.mr-panel-crm #clientsView #newClient {display:none!important}
  body.mr-panel-crm #clientsView .toolbar {display:flex;align-items:center;gap:14px;padding:0!important;margin-bottom:20px;background:transparent!important;border:0}
  body.mr-panel-crm .client-toolbar-left {flex:1;display:block;min-width:0}
  body.mr-panel-crm .client-toolbar-left>:not(#clientSearch) {display:none}
  body.mr-panel-crm .client-toolbar-right {display:flex;flex:0 0 auto;min-width:0}
  body.mr-panel-crm #toggleDuplicates {min-height:44px!important;width:auto;padding:10px 14px!important;border:0!important;border-radius:999px!important;background:var(--tricios-surface)!important;color:var(--tricios-muted)!important;font-size:13px}
  body.mr-panel-crm .tricios-app-client-list {display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px}
  body.mr-panel-crm .tricios-app-client {border:0;border-radius:22px;background:var(--tricios-card);overflow:hidden;min-width:0}
  body.mr-panel-crm .tricios-app-client-main {display:flex;align-items:center;gap:14px;width:100%;min-height:102px;padding:22px 20px;border:0;background:transparent;color:var(--tricios-ink);text-align:left}
  body.mr-panel-crm .tricios-app-client-avatar {display:grid;place-items:center;flex:0 0 46px;width:46px;height:46px;border-radius:50%;background:var(--tricios-app-soft-wine);color:var(--tricios-app-wine);font-size:17px;font-weight:600}
  body.mr-panel-crm .tricios-app-client-copy {display:grid;gap:5px;flex:1;min-width:0;overflow-wrap:anywhere}
  body.mr-panel-crm .tricios-app-client-copy strong {font-size:17px;line-height:1.4;font-weight:650}
  body.mr-panel-crm .tricios-app-client-copy>span {font-size:14px;color:var(--tricios-muted)}
  body.mr-panel-crm .tricios-app-client-copy small {font-size:12px;color:var(--tricios-muted)}
  body.mr-panel-crm .tricios-app-client-main>svg {width:16px;height:16px;flex:0 0 16px;fill:none;stroke:var(--tricios-muted);stroke-width:1.7}
  body.mr-panel-crm .tricios-app-client-contact {display:flex;align-items:center;justify-content:center;flex-wrap:wrap;gap:12px;min-height:48px;padding:0 16px;border-top:1px solid var(--tricios-line)}
  body.mr-panel-crm .tricios-app-client-contact a {display:flex;align-items:center;justify-content:center;gap:8px;flex:1;min-height:44px;font-size:13px;color:var(--tricios-app-wine);font-weight:500}
  body.mr-panel-crm .tricios-app-client-contact svg {width:18px;height:18px;fill:none;stroke:currentColor;stroke-width:1.6}
  body.mr-panel-crm .tricios-app-client-contact small {font-size:12px;color:var(--tricios-muted)}
  body.mr-panel-crm :is(.calendar-simple-head,.calendar-simple-kpis,.calendar-simple-toolbar) {display:none!important}
  body.mr-panel-crm .tricios-app-calendar {display:grid;gap:16px;margin-bottom:20px}
  body.mr-panel-crm .tricios-app-calendar-month-row {display:grid;grid-template-columns:minmax(0,1fr) auto;gap:12px}
  body.mr-panel-crm .tricios-app-calendar-date {display:flex;align-items:center;justify-content:space-between;gap:12px;position:relative;min-height:52px;min-width:0;padding:14px 18px;border:0;border-radius:16px;background:var(--tricios-surface);font-size:16px!important;font-weight:600;overflow:hidden}
  body.mr-panel-crm .tricios-app-calendar-date input {position:absolute;inset:0;width:100%;height:100%;min-width:0;margin:0;padding:0;opacity:0;cursor:pointer;z-index:1}
  body.mr-panel-crm .tricios-app-calendar-today {min-height:52px;padding:12px 18px;border:0;border-radius:16px;background:var(--tricios-surface);font-size:14px;font-weight:500}
  body.mr-panel-crm .tricios-app-calendar-segment {margin:0}
  body.mr-panel-crm .tricios-app-calendar-week {display:grid;grid-template-columns:1fr 1fr;gap:8px}
  body.mr-panel-crm .tricios-app-calendar-week>button {grid-row:2;display:flex;align-items:center;min-height:44px;border:0;padding:0;background:transparent;color:var(--tricios-muted)}
  body.mr-panel-crm .tricios-app-calendar-week>button:first-child {justify-content:flex-start}
  body.mr-panel-crm .tricios-app-calendar-week>button:last-child {justify-content:flex-end}
  body.mr-panel-crm .tricios-app-calendar-week>button svg {width:18px;height:18px;fill:none;stroke:currentColor;stroke-width:1.8}
  body.mr-panel-crm .tricios-app-calendar-days {grid-column:1/-1;grid-row:1;display:grid;grid-template-columns:repeat(7,minmax(0,1fr));gap:8px}
  body.mr-panel-crm .tricios-app-calendar-days button {display:grid;justify-items:center;gap:6px;min-height:82px;min-width:0;padding:14px 8px;border:0;border-radius:18px;background:var(--tricios-surface);color:var(--tricios-ink);font-variant-numeric:tabular-nums}
  body.mr-panel-crm .tricios-app-calendar-days small {font-size:12px;text-transform:none;letter-spacing:0}
  body.mr-panel-crm .tricios-app-calendar-days strong {font-size:23px;line-height:1.2}
  body.mr-panel-crm .tricios-app-calendar-days button[aria-pressed=true] {background:var(--tricios-accent);color:#FFFFFF}
  body.mr-panel-crm .tricios-app-calendar-filter-toggle {display:flex;align-items:center;justify-content:flex-end;gap:8px;min-height:44px;padding:0;border:0;background:transparent;color:var(--tricios-muted);font-size:13px;margin-top:-12px}
  body.mr-panel-crm #agendaView .calendar-simple-filters {display:none;background:transparent!important;border:0;padding:0 0 20px!important}
  body.mr-panel-crm #agendaView.tricios-app-calendar-filter-open .calendar-simple-filters {display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}
  body.mr-panel-crm #calendarStage {min-height:0!important;padding:0!important;border:0!important;overflow:visible!important;background:transparent!important}
  body.mr-panel-crm .tricios-app-agenda-group {display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px;margin-bottom:28px}
  body.mr-panel-crm .tricios-app-agenda-group>h3,body.mr-panel-crm .tricios-app-agenda-group>p {grid-column:1/-1;margin:0}
  body.mr-panel-crm .tricios-app-agenda-group>h3 {font-size:24px!important}
  body.mr-panel-crm .tricios-app-agenda-group>p {font-size:14px;color:var(--tricios-muted)}
  body.mr-panel-crm .tricios-app-appointment {min-width:0;background:var(--tricios-card);border:0;border-radius:22px;overflow:hidden;margin:0}
  body.mr-panel-crm .tricios-app-appointment-main {display:grid;grid-template-columns:40px 42px minmax(0,1fr) 12px;align-items:center;gap:12px;width:100%;min-height:108px;padding:22px 18px;border:0;background:transparent;color:var(--tricios-ink);text-align:left}
  body.mr-panel-crm .tricios-app-appointment-icon {display:grid;place-items:center;align-self:start;width:40px;height:40px;border-radius:50%;background:var(--tricios-app-soft-wine);color:var(--tricios-app-wine)}
  body.mr-panel-crm .tricios-app-appointment-icon svg {width:23px;height:23px;fill:none;stroke:currentColor;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round}
  body.mr-panel-crm .tricios-app-appointment-time {font-size:14px;font-weight:650}
  body.mr-panel-crm .tricios-app-appointment-copy {display:grid;gap:5px;min-width:0;padding-left:12px;border-left:1px solid var(--tricios-line);overflow-wrap:anywhere}
  body.mr-panel-crm .tricios-app-appointment-copy strong {font-size:16px;line-height:1.4;font-weight:650}
  body.mr-panel-crm .tricios-app-appointment-copy>span {font-size:13px;line-height:1.4;color:var(--tricios-muted)}
  body.mr-panel-crm .tricios-app-appointment-copy>small {font-size:12px;line-height:1.4;color:var(--tricios-muted)}
  body.mr-panel-crm .tricios-app-appointment-chevron svg {width:12px;height:16px;fill:none;stroke:var(--tricios-muted);stroke-width:1.7}
  body.mr-panel-crm .tricios-app-appointment-more {padding:0 18px;border-top:1px solid var(--tricios-line)}
  body.mr-panel-crm .tricios-app-appointment-more>summary {display:flex;align-items:center;justify-content:space-between;gap:12px;min-height:44px;list-style:none;color:var(--tricios-muted);font-size:13px}
  body.mr-panel-crm .tricios-app-appointment-options {display:flex;flex-wrap:wrap;gap:8px;padding:0 0 14px}
  body.mr-panel-crm .tricios-app-appointment-options :is(a,button) {display:flex;align-items:center;justify-content:center;flex:1 1 100px;min-height:44px;padding:10px;border:0;border-radius:14px;background:var(--tricios-surface);color:var(--tricios-ink);font-size:13px}
  body.mr-panel-crm .tricios-app-appointment-more p {font-size:13px;line-height:1.5;color:var(--tricios-muted);overflow-wrap:anywhere}
  body.mr-panel-crm .tricios-app-month-grid {display:grid;grid-template-columns:repeat(7,minmax(0,1fr));gap:8px;margin-bottom:24px}
  body.mr-panel-crm .tricios-app-month-weekday {text-align:center;font-size:12px;color:var(--tricios-muted);padding:8px}
  body.mr-panel-crm .tricios-app-month-grid button {min-width:0;min-height:58px;position:relative;padding:10px;border:0;border-radius:14px;background:var(--tricios-surface);color:var(--tricios-ink);font-size:15px;font-variant-numeric:tabular-nums}
  body.mr-panel-crm .tricios-app-month-grid button.other {color:var(--tricios-muted)}
  body.mr-panel-crm .tricios-app-month-grid button[aria-pressed=true] {background:var(--tricios-accent);color:#FFFFFF}
  body.mr-panel-crm .tricios-app-month-grid button.has-events::after {content:'';position:absolute;bottom:6px;left:50%;width:4px;height:4px;border-radius:50%;background:currentColor;transform:translateX(-50%)}
  .tricios-erp .tricios-app-empty {grid-column:1/-1;padding:28px;border:1px dashed var(--tricios-line);border-radius:20px;background:var(--tricios-card);color:var(--tricios-muted);font-size:14px;line-height:1.6;text-align:center}
  .tricios-erp .tricios-app-empty b {display:block;color:var(--tricios-ink);font-size:17px;margin-bottom:8px}
  .tricios-erp .tricios-app-empty button {min-height:44px;margin-top:12px;padding:12px 16px;border:0;border-radius:14px;background:var(--tricios-accent);color:#FFFFFF;font-size:14px}

  /* Focused project areas continue on tablet/desktop; original tabs are moved,
     never cloned, so technical areas and every action remain reachable. */
  .tricios-erp .project-tabs {display:flex!important;gap:8px;flex-wrap:wrap;margin-bottom:14px}
  .tricios-erp .tricios-project-more {display:block;margin-bottom:22px}
  .tricios-erp .tricios-project-more>summary {display:flex;align-items:center;min-height:44px;padding:10px 0;color:var(--tricios-muted);font-size:14px;cursor:pointer}
  .tricios-erp .tricios-project-more-areas {display:flex;flex-wrap:wrap;gap:8px;padding:8px 0}
  .tricios-erp .tricios-project-phase {font-size:13px;color:var(--tricios-muted);margin:0 0 8px}
  .tricios-erp .tricios-project-money {padding:24px;background:var(--tricios-card);border-radius:22px;margin-bottom:20px}
  .tricios-erp .tricios-project-money h2 {margin:0 0 20px;font-size:20px!important}
  .tricios-erp .tricios-project-money-values {display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:20px;margin-bottom:20px}
  .tricios-erp .tricios-project-money-values small {display:block;font-size:13px;color:var(--tricios-muted);margin-bottom:8px}
  .tricios-erp .tricios-project-money-values strong {display:block;font-size:24px;font-weight:650;line-height:1.4;overflow-wrap:anywhere}
  body.tricios-erp.mr-project-center #crumbTitle {color:var(--tricios-ink)!important}
  body.tricios-erp.mr-project-center #topRequest {display:inline-flex;align-items:center;justify-content:center;min-height:44px;padding:11px 16px;border:0;border-radius:14px;background:var(--tricios-surface)!important;color:var(--tricios-ink)!important;font:500 14px/1.4 var(--tricios-ui-font)}
  body.tricios-erp.mr-panel-admin .budget-utilitybar {background:var(--tricios-card)!important;border:0!important;border-radius:20px!important}
  body.tricios-erp.mr-panel-admin .budget-utilitybar>summary {min-height:48px;padding:15px 18px;color:var(--tricios-ink)!important;font:500 14px/1.4 var(--tricios-ui-font)!important;letter-spacing:0!important;text-transform:none!important}
  body.tricios-erp.mr-panel-admin .budget-utilitybar>summary small {color:var(--tricios-muted)!important;font-size:12px}

  /* Finance, Timeclock and company Account share neutral cards and type. */
  .tricios-finance {--fin-card:var(--tricios-surface);--fin-line:var(--tricios-line);--fin-ink:var(--tricios-ink);--fin-muted:var(--tricios-muted);--fin-tint:var(--tricios-app-soft-wine);--fin-font:var(--tricios-ui-font)}
  .tricios-finance :is(.fin-page,.fin-dialog,.fin-record) {font-family:var(--tricios-ui-font)}
  body.tricios-erp.tricios-finance :is(.fin-page,.fin-dialog) :is(h1,h2,h3) {font-family:var(--tricios-ui-font)!important;letter-spacing:-.025em!important}
  .tricios-finance .fin-record>svg {width:14px;height:18px;flex:0 0 14px;fill:none;stroke:var(--tricios-muted);stroke-width:1.6;stroke-linecap:round;stroke-linejoin:round}
  .tricios-finance :is(.fin-record,.fin-dues-card,.fin-chart,.fin-empty,.fin-filter-details,.fin-crop-controls,.fin-receipt-review,.fin-capture-button) {border:0;border-radius:22px}
  .tricios-finance .fin-segments button[aria-selected=true] {background:var(--fin-input);color:var(--fin-wine)}
  html[data-theme="dark"] .tricios-finance .fin-segments button[aria-selected=true] {color:var(--fin-ink)}
  .tricios-finance .fin-action-grid {margin:0 auto 24px;max-width:420px;gap:28px}
  .tricios-finance .fin-action-grid .fin-button {flex-direction:column;justify-content:flex-start;gap:12px;min-height:112px;padding:8px 4px;border:0;background:transparent!important;color:var(--fin-ink);font-size:14px}
  .tricios-finance .fin-action-grid .fin-button svg {width:72px;height:72px;padding:22px;border-radius:50%;background:var(--fin-tint);color:var(--fin-wine)}
  .tricios-finance .fin-action-grid .fin-primary svg {background:var(--fin-brand);color:#FFFFFF}
  .tricios-attendance {--att-card:var(--tricios-surface);--att-line:var(--tricios-line);--att-ink:var(--tricios-ink);--att-muted:var(--tricios-muted);--att-tint:var(--tricios-app-soft-wine);--att-font:var(--tricios-ui-font)}
  .tricios-attendance :is(.att-page,.att-dialog) {font-family:var(--tricios-ui-font)}
  .tricios-attendance :is(.att-clock-card,.att-summary>section,.att-list) {border:0;border-radius:22px}
  .tricios-attendance .att-clock-card {max-width:700px;margin-inline:auto}
  .tricios-attendance .att-summary {max-width:700px;margin-inline:auto}
  .account-erp-mode {--account-font:var(--tricios-ui-font);--account-wine:var(--tricios-app-wine);--account-tint:var(--tricios-app-soft-wine);padding-left:var(--mr-shell-w);padding-top:var(--tricios-header-height);padding-bottom:0}
  .account-erp-mode>.tricios-header {position:fixed;inset:0 0 auto;z-index:52}
  .account-erp-mode :is(.account-main,.account-footer) {width:100%;max-width:1240px;padding-inline:clamp(24px,3vw,44px);margin:36px auto 48px;min-width:0}
  .account-erp-mode .account-footer {margin-block:0;padding-top:24px;border:0;font-size:12px}
  .account-erp-mode :is(h1,h2,h3,.account-status,.account-plan-amount,.account-auth-pricing strong) {font-family:var(--tricios-ui-font)!important;font-weight:650;letter-spacing:-.025em}
  .account-erp-mode .account-auth {grid-template-columns:minmax(0,1fr) minmax(300px,430px);gap:40px}
  .account-erp-mode .account-introduction h1 {font-size:46px;line-height:1.15}
  .account-erp-mode :is(.account-auth-card,.account-summary-card,.account-plan,.account-invite-result) {border:0;border-radius:22px;background:var(--tricios-card)}
  .account-erp-mode .account-plan[aria-pressed=true] {background:var(--account-tint);box-shadow:inset 0 0 0 1px var(--account-wine)}
  .account-erp-mode :is(input,select,textarea) {min-height:48px;border:0;border-radius:14px;background:var(--tricios-surface);color:var(--tricios-ink);font:400 15px/1.4 var(--tricios-ui-font)}
  .account-erp-mode .tricios-button {min-height:48px;border:0;border-radius:14px;font:500 14px/1.4 var(--tricios-ui-font);background:var(--tricios-accent);color:#FFFFFF}
  .account-erp-mode .account-tabs {gap:4px;padding:4px;background:var(--tricios-surface);border:0;border-radius:999px}
  .account-erp-mode .account-tab {flex:1;min-height:44px;padding:10px 8px;border:0;border-radius:999px;background:transparent}
  .account-erp-mode .account-tab[aria-selected=true] {background:var(--tricios-background);color:var(--account-wine)!important}
  .account-erp-mode .account-app-nav {display:grid;grid-template-columns:minmax(0,1fr);align-content:start;gap:8px;position:fixed;inset:var(--tricios-header-height) auto 0 0;width:var(--mr-shell-w);padding:24px 12px;z-index:45;border:0;border-right:1px solid var(--tricios-line);background:var(--tricios-background);overflow-y:auto}
  .account-erp-mode .account-app-tab {display:flex;flex-direction:row;align-items:center;justify-content:flex-start;gap:14px;min-height:54px;min-width:0;width:100%;padding:14px 16px;border:0;border-radius:15px;background:transparent;color:var(--tricios-muted);font:500 14px/1.4 var(--tricios-ui-font);text-align:left}
  .account-erp-mode .account-app-tab>span>.tricios-icon {width:23px;height:23px}
  .account-erp-mode .account-app-tab.active {background:var(--account-tint);color:var(--account-wine)}
  .account-erp-mode .account-app-tab:hover {background:var(--tricios-surface);color:var(--tricios-ink)}
  .account-erp-mode .account-app-menu-group:nth-last-child(2) {grid-column:3}
  .account-erp-mode .account-app-menu-footer {grid-column:1/-1}
  .tricios-erp [hidden],.account-erp-mode [hidden] {display:none!important}

  @media (max-width:1100px) {
    body.tricios-erp,.account-erp-mode {--mr-shell-w:112px}
    .tricios-erp .mr-shell,.account-erp-mode .account-app-nav {padding:20px 8px}
    .tricios-erp .mr-mobile-nav>.mr-shell-link,.account-erp-mode .account-app-tab {flex-direction:column;justify-content:center;gap:8px;min-height:78px;padding:12px 6px!important}
    .tricios-erp .mr-mobile-nav .mr-shell-label,.account-erp-mode .account-app-tab>span:last-child {font-size:12px;line-height:1.3;text-align:center}
    body.mr-panel-home .dashboard {grid-template-columns:minmax(0,1fr);gap:28px;max-width:780px!important}
    body.mr-panel-home .home-main-grid {padding-top:0}
    .tricios-erp .mr-mobile-menu-links,.account-erp-mode .account-app-menu-links {grid-template-columns:repeat(2,minmax(0,1fr))}
    .account-erp-mode .account-app-menu-group:nth-last-child(2) {grid-column:auto}
    body.mr-pipeline-page :is(.pipeline-board,.board-shell.hide-closed .pipeline-board),body.mr-panel-crm :is(.tricios-app-client-list,.tricios-app-agenda-group) {grid-template-columns:minmax(0,1fr)!important}
    .account-erp-mode .account-auth {grid-template-columns:minmax(0,1fr);gap:28px}
    .account-erp-mode .account-auth-card {max-width:580px;width:100%}
    .account-erp-mode .account-introduction h1 {font-size:40px;max-width:580px}
  }
}

/* Shared quotation components retain their approved placement on phones.
   These explicit theme tokens replace legacy paper/green/serif styling only. */
body.tricios-erp.mr-panel-admin :is(.mr-tab-empty,.mr-document-primary,.mr-document-card) {background:var(--tricios-card)!important;border-color:var(--tricios-line)!important;box-shadow:none!important;color:var(--tricios-muted)!important}
body.tricios-erp.mr-panel-admin :is(.mr-tab-empty b,.mr-document-primary-copy b,.mr-document-card>b,.detail-empty>b,.budget-view-head>strong,.request .ref,.mr-action-total strong) {font-family:-apple-system,BlinkMacSystemFont,'Segoe UI',Arial,sans-serif!important;font-weight:600!important;letter-spacing:-.02em;color:var(--tricios-ink)!important}
body.tricios-erp.mr-panel-admin :is(.mr-tab-empty b,.mr-document-card>b,.detail-empty>b) {font-size:20px!important;line-height:1.4!important}
body.tricios-erp.mr-panel-admin :is(.mr-document-primary-copy small,.mr-document-primary-copy span,.mr-document-card>small,.mr-document-card>p,.mr-action-total small,.detail-empty>p) {color:var(--tricios-muted)!important}
body.tricios-erp.mr-panel-admin .budget-filter-meta b {color:var(--tricios-ink)!important;font-family:inherit!important}
body.tricios-erp.mr-panel-admin .mr-section-tab .mr-tab-count {background:var(--tricios-surface)!important;color:var(--tricios-muted)!important}
body.tricios-erp.mr-panel-admin .mr-section-tab.active .mr-tab-count {background:transparent!important;color:inherit!important}
body.tricios-erp.mr-panel-admin .mr-action-total {border-color:var(--tricios-line)!important}

/* Linked 3D configurations and the original workflow action share the same
   primary/secondary theme at every size; their links and handlers are unchanged. */
body.tricios-erp.mr-project-center :is(#configurations .button-link,#advanceProjectStatus) {min-height:44px;padding:11px 14px;border:0!important;border-radius:14px!important;background:var(--tricios-accent)!important;color:#FFFFFF!important;font:500 14px/1.4 -apple-system,BlinkMacSystemFont,'Segoe UI',Arial,sans-serif!important;letter-spacing:0!important;text-transform:none!important;box-shadow:none!important}
body.tricios-erp.mr-project-center #configurations .button-link {display:inline-flex;align-items:center;justify-content:center}
body.tricios-erp.mr-project-center #configurations .config-card.empty .button-link {background:var(--tricios-surface)!important;color:var(--tricios-ink)!important}
body.tricios-erp.mr-project-center :is(#configurations .button-link,#advanceProjectStatus):focus-visible {outline:2px solid var(--tricios-app-wine);outline-offset:3px}
