:root {
      color-scheme: light;
      --bg: #eef2f1;
      --surface: #ffffff;
      --surface-2: #f7f9f8;
      --line: #cfd8d5;
      --line-strong: #9cafaa;
      --ink: #1f2d2f;
      --muted: #60706d;
      --green: #2f6f5f;
      --green-soft: #e3f1ec;
      --blue: #376b8f;
      --blue-soft: #e2edf4;
      --amber: #a76816;
      --amber-soft: #f7ecd9;
      --red: #9e3d36;
      --red-soft: #f4e3e1;
      --shadow: 0 10px 30px rgba(26, 43, 45, 0.09);
      --radius: 8px;
      --font: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    }

    * {
      box-sizing: border-box;
    }

    [hidden] {
      display: none !important;
    }

    body {
      margin: 0;
      min-height: 100vh;
      background: var(--bg);
      color: var(--ink);
      font-family: var(--font);
      font-size: 15px;
      letter-spacing: 0;
    }

    button,
    input,
    select,
    textarea {
      font: inherit;
    }

    button {
      border: 0;
      cursor: pointer;
    }

    .login-screen {
      position: fixed;
      inset: 0;
      z-index: 50;
      min-height: 100vh;
      display: grid;
      place-items: center;
      padding: 24px;
      background: #1f2d2f;
    }

    body:not(.locked) .login-screen {
      display: none;
    }

    body.locked .app-header,
    body.locked .shell {
      display: none;
    }

    .login-panel {
      width: min(420px, 100%);
      padding: 24px;
      border-radius: var(--radius);
      border: 1px solid rgba(255, 255, 255, 0.2);
      background: var(--surface);
      box-shadow: 0 22px 70px rgba(0, 0, 0, 0.22);
      display: grid;
      gap: 14px;
    }

    .login-panel .brand-mark {
      background: var(--green-soft);
      color: var(--green);
    }

    .login-panel h1 {
      margin: 0 0 5px;
      font-size: 22px;
      line-height: 1.1;
      letter-spacing: 0;
    }

    .login-panel p {
      margin: 0;
      color: var(--muted);
      font-size: 13px;
    }

    .login-panel .primary-button {
      width: 100%;
    }

    .login-error {
      min-height: 18px;
      color: var(--red);
      font-size: 13px;
      font-weight: 700;
    }

    .app-header {
      background: #1f2d2f;
      color: #f9fbfa;
      border-bottom: 4px solid var(--green);
    }

    .topbar {
      max-width: 1440px;
      margin: 0 auto;
      padding: 18px 24px;
      display: grid;
      grid-template-columns: auto 1fr auto;
      gap: 18px;
      align-items: center;
    }

    .app-tabs {
      max-width: 1440px;
      margin: 0 auto;
      padding: 0 24px 14px;
      display: flex;
      flex-wrap: wrap;
      gap: 8px;
      overflow: visible;
    }

    .tab-menu {
      position: relative;
      flex: 0 0 auto;
      padding-bottom: 10px;
      margin-bottom: -10px;
      z-index: 15;
    }

    .main-tab {
      min-height: 34px;
      flex: 0 0 auto;
      border-radius: var(--radius);
      display: inline-flex;
      align-items: center;
      justify-content: center;
      gap: 8px;
      padding: 0 11px;
      color: #d7e2df;
      background: rgba(255, 255, 255, 0.09);
      border: 1px solid rgba(255, 255, 255, 0.14);
      font-size: 13px;
      font-weight: 720;
      white-space: nowrap;
    }

    .tab-dropdown {
      position: absolute;
      top: 100%;
      left: 0;
      z-index: 12;
      min-width: 210px;
      display: none;
      padding: 7px;
      border: 1px solid var(--line);
      border-radius: var(--radius);
      background: #f9fbfa;
      box-shadow: var(--shadow);
    }

    .tab-menu:hover .tab-dropdown,
    .tab-menu:focus-within .tab-dropdown {
      display: grid;
    }

    .sub-tab-button {
      min-height: 32px;
      border-radius: 6px;
      padding: 0 9px;
      background: transparent;
      color: var(--ink);
      font-size: 11px;
      font-weight: 760;
      text-align: left;
      white-space: nowrap;
    }

    .sub-tab-button:hover,
    .sub-tab-button.active {
      background: var(--green-soft);
      color: var(--green);
    }

    .management-switch {
      display: flex;
      gap: 8px;
      flex-wrap: wrap;
      margin-bottom: 12px;
    }

    .management-switch .sub-tab-button {
      min-height: 34px;
      padding: 0 11px;
      border: 1px solid var(--line);
      background: #fff;
    }

    .main-tab.active {
      color: #1f2d2f;
      background: #f9fbfa;
      border-color: #f9fbfa;
    }

    .app-view {
      display: none;
    }

    .app-view.active {
      display: block;
    }

    .management-panel {
      display: none;
    }

    .management-panel.active {
      display: block;
    }

    .brand-mark {
      width: 46px;
      height: 46px;
      border-radius: var(--radius);
      display: grid;
      place-items: center;
      background: #f9fbfa;
      color: var(--green);
      box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.32);
    }

    .brand h1 {
      margin: 0 0 4px;
      font-size: 24px;
      line-height: 1.1;
      font-weight: 760;
      letter-spacing: 0;
    }

    .brand p {
      margin: 0;
      color: #c5d3d0;
      font-size: 13px;
    }

    .header-actions {
      display: flex;
      flex-wrap: wrap;
      justify-content: flex-end;
      gap: 8px;
    }

    .icon-button,
    .text-button {
      min-height: 38px;
      border-radius: var(--radius);
      display: inline-flex;
      align-items: center;
      justify-content: center;
      gap: 8px;
      color: inherit;
      background: rgba(255, 255, 255, 0.12);
      border: 1px solid rgba(255, 255, 255, 0.18);
      transition: transform 160ms ease, background 160ms ease, border 160ms ease;
    }

    .icon-button {
      width: 40px;
      padding: 0;
    }

    .text-button {
      padding: 0 13px;
      font-weight: 690;
    }

    .icon-button:hover,
    .text-button:hover {
      background: rgba(255, 255, 255, 0.2);
      transform: translateY(-1px);
    }

    .notification-wrap {
      position: relative;
      display: inline-flex;
    }

    .notification-count {
      position: absolute;
      top: -6px;
      right: -6px;
      min-width: 18px;
      height: 18px;
      border-radius: 999px;
      display: grid;
      place-items: center;
      padding: 0 5px;
      background: var(--red);
      color: #fff;
      font-size: 10px;
      font-weight: 800;
      border: 2px solid #1f2d2f;
    }

    .notification-panel {
      position: fixed;
      top: 72px;
      right: 22px;
      z-index: 120;
      width: min(360px, 88vw);
      max-height: min(520px, calc(100vh - 96px));
      overflow: auto;
      display: none;
      padding: 10px;
      border: 1px solid var(--line);
      border-radius: var(--radius);
      background: var(--surface);
      color: var(--ink);
      box-shadow: var(--shadow);
    }

    .notification-panel.open {
      display: grid;
      gap: 8px;
    }

    .notification-panel-head {
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 10px;
      padding: 3px 3px 8px;
      border-bottom: 1px solid var(--line);
    }

    .notification-panel-head strong {
      font-size: 13px;
      color: var(--ink);
    }

    .notification-panel-head span {
      color: var(--muted);
      font-size: 11px;
      font-weight: 800;
      text-transform: uppercase;
      letter-spacing: 0.04em;
    }

    .notification-tabs {
      display: grid;
      grid-template-columns: repeat(2, minmax(0, 1fr));
      gap: 6px;
      padding: 2px 0 4px;
    }

    .notification-tabs button {
      min-height: 34px;
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 8px;
      padding: 7px 9px;
      border: 1px solid var(--line);
      border-radius: var(--radius-sm);
      background: #fff;
      color: var(--muted);
      font: inherit;
      cursor: pointer;
    }

    .notification-tabs button.active {
      border-color: rgba(0, 122, 96, 0.25);
      background: rgba(0, 122, 96, 0.09);
      color: var(--green);
    }

    .notification-tabs span {
      min-width: 0;
      overflow: hidden;
      color: inherit;
      font-size: 10px;
      font-weight: 850;
      text-overflow: ellipsis;
      text-transform: uppercase;
      white-space: nowrap;
    }

    .notification-tabs strong {
      min-width: 22px;
      height: 22px;
      display: grid;
      place-items: center;
      border-radius: 999px;
      background: var(--surface-2);
      color: var(--ink);
      font-size: 11px;
      font-weight: 900;
    }

    .notification-tabs button.active strong {
      background: var(--green);
      color: #fff;
    }

    .notification-item {
      display: grid;
      gap: 4px;
      width: 100%;
      padding: 9px;
      border: 1px solid var(--line);
      border-radius: var(--radius);
      background: var(--surface-2);
      color: inherit;
      font-family: inherit;
      font-size: 12px;
      text-align: left;
      cursor: pointer;
      appearance: none;
    }

    .notification-item:hover {
      border-color: rgba(0, 122, 96, 0.35);
      background: rgba(0, 122, 96, 0.06);
    }

    .notification-item.muted {
      cursor: default;
    }

    .notification-item.muted:hover {
      border-color: var(--line);
      background: var(--surface-2);
    }

    .notification-item.read {
      background: #fff;
      opacity: 0.82;
    }

    .notification-item strong {
      font-size: 13px;
    }

    .notification-item span {
      color: var(--muted);
      font-weight: 700;
    }

    .notification-read-section {
      display: grid;
      gap: 8px;
      margin-top: 6px;
      padding-top: 8px;
      border-top: 1px solid var(--line);
    }

    .notification-read-title {
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 10px;
      padding: 0 3px;
    }

    .notification-read-title strong,
    .notification-read-title span {
      font-size: 11px;
      font-weight: 850;
      color: var(--muted);
      text-transform: uppercase;
      letter-spacing: 0.04em;
    }

    .user-button {
      max-width: 190px;
    }

    .user-button span {
      max-width: 118px;
      overflow: hidden;
      text-overflow: ellipsis;
      white-space: nowrap;
    }

    .user-modal-backdrop {
      position: fixed;
      inset: 0;
      z-index: 70;
      display: none;
      place-items: center;
      padding: 18px;
      background: rgba(31, 45, 47, 0.62);
    }

    .user-modal-backdrop.open {
      display: grid;
    }

    .user-modal-backdrop[hidden] {
      display: none !important;
    }

    .user-modal {
      width: min(760px, 100%);
      max-height: min(92vh, 760px);
      overflow: auto;
      border: 1px solid var(--line);
      border-radius: var(--radius);
      background: var(--surface);
      color: var(--ink);
      box-shadow: 0 24px 80px rgba(0, 0, 0, 0.28);
    }

    .user-modal-head {
      display: flex;
      align-items: start;
      justify-content: space-between;
      gap: 12px;
      padding: 16px;
      border-bottom: 1px solid var(--line);
      background: var(--surface-2);
    }

    .user-modal-head h2,
    .user-admin-panel h3 {
      margin: 0;
      font-size: 17px;
      line-height: 1.2;
      letter-spacing: 0;
    }

    .user-modal-head p {
      margin: 5px 0 0;
      color: var(--muted);
      font-size: 12px;
    }

    .user-modal-body {
      display: grid;
      gap: 16px;
      padding: 16px;
    }

    .user-modal .form-grid {
      grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .user-modal .span-2 {
      grid-column: span 2;
    }

    .modal-actions {
      display: flex;
      justify-content: flex-end;
      gap: 8px;
      flex-wrap: wrap;
    }

    .user-message {
      padding: 10px 12px;
      border: 1px solid var(--line);
      border-radius: var(--radius);
      background: var(--surface-2);
      color: var(--muted);
      font-size: 13px;
      font-weight: 700;
    }

    .user-message.good {
      border-color: #9fc9b7;
      background: var(--green-soft);
      color: var(--green);
    }

    .user-message.bad {
      border-color: #d7a19c;
      background: var(--red-soft);
      color: var(--red);
    }

    .user-admin-panel {
      display: grid;
      gap: 12px;
      padding-top: 16px;
      border-top: 1px solid var(--line);
    }

    .user-admin-panel[hidden] {
      display: none !important;
    }

    .user-admin-head {
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 12px;
      flex-wrap: wrap;
    }

    .user-admin-head h3 {
      margin: 0;
    }

    .user-admin-head p {
      margin: 4px 0 0;
      color: var(--muted);
      font-size: 12px;
      font-weight: 700;
    }

    .user-create-form[hidden] {
      display: none !important;
    }

    .user-list {
      display: grid;
      gap: 8px;
    }

    .user-list-row {
      display: grid;
      grid-template-columns: minmax(0, 1fr) auto;
      gap: 10px;
      align-items: center;
      padding: 10px;
      border: 1px solid var(--line);
      border-radius: var(--radius);
      background: var(--surface-2);
    }

    .user-list-row.editing {
      align-items: start;
      background: #fff;
    }

    .user-list-row strong {
      display: block;
      font-size: 14px;
      line-height: 1.25;
    }

    .user-list-row span {
      color: var(--muted);
      font-size: 12px;
    }

    .user-compact-summary {
      display: grid;
      grid-template-columns: 40px minmax(0, 1fr) auto;
      gap: 10px;
      align-items: center;
      min-width: 0;
      cursor: pointer;
    }

    .user-compact-summary:focus-visible {
      outline: 2px solid rgba(0, 122, 95, 0.28);
      outline-offset: 3px;
      border-radius: 10px;
    }

    .user-list-avatar {
      width: 40px;
      height: 40px;
      display: grid;
      place-items: center;
      border-radius: 50%;
      background: linear-gradient(135deg, #00745f, #00b88a);
      color: #fff !important;
      font-size: 12px !important;
      font-weight: 950;
      letter-spacing: 0.03em;
      box-shadow: 0 10px 20px rgba(0, 116, 95, 0.16);
    }

    .user-compact-text {
      min-width: 0;
    }

    .user-compact-text strong,
    .user-compact-text span {
      overflow: hidden;
      text-overflow: ellipsis;
      white-space: nowrap;
    }

    .user-compact-meta {
      display: flex;
      gap: 8px;
      flex-wrap: wrap;
      margin-top: 4px;
    }

    .user-edit-panel {
      display: grid;
      gap: 8px;
      margin-top: 10px;
      padding-top: 10px;
      border-top: 1px solid var(--line);
    }

    .user-row-fields {
      display: grid;
      grid-template-columns: minmax(140px, 1fr) minmax(120px, 0.75fr) minmax(130px, 0.7fr);
      gap: 8px;
      align-items: end;
    }

    .user-row-fields .field {
      gap: 4px;
    }

    .user-row-fields label,
    .user-work-access-title {
      font-size: 10px;
      font-weight: 900;
      color: var(--muted);
      letter-spacing: 0.06em;
      text-transform: uppercase;
    }

    .user-work-access {
      display: grid;
      gap: 8px;
      padding: 8px;
      border: 1px solid var(--line);
      border-radius: var(--radius-sm);
      background: var(--surface);
    }

    .user-work-access-grid {
      display: grid;
      grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
      gap: 6px;
    }

    .user-work-access-option {
      display: flex;
      align-items: center;
      gap: 7px;
      min-height: 30px;
      padding: 6px 8px;
      border: 1px solid var(--line);
      border-radius: 7px;
      background: var(--surface-2);
      color: var(--ink);
      font-size: 12px;
      font-weight: 800;
    }

    .user-work-access-option input {
      width: 15px;
      height: 15px;
      margin: 0;
      accent-color: var(--green);
    }

    .user-work-access-note {
      color: var(--muted);
      font-size: 11px;
      font-weight: 700;
    }

    .global-page-header {
      display: grid;
      grid-template-columns: minmax(0, 1fr) auto;
      align-items: center;
      gap: 14px;
      min-height: 64px;
      padding: 12px 16px;
      border: 1px solid #e0e8eb;
      border-radius: 12px;
      background: #fff;
      box-shadow: 0 10px 28px rgba(13, 34, 40, 0.06);
    }

    .global-page-title h2 {
      margin: 0;
      color: #13252d;
      font-size: 22px;
      line-height: 1.05;
      font-weight: 920;
      letter-spacing: 0;
    }

    .global-page-title p {
      margin: 5px 0 0;
      color: #71818c;
      font-size: 13px;
      font-weight: 720;
    }

    .global-page-actions {
      display: flex;
      align-items: center;
      gap: 10px;
    }

    .global-user-trigger {
      min-width: 42px;
      height: 42px;
      padding: 0 12px;
      border: 0;
      border-radius: 999px;
      background: var(--green);
      color: #fff;
      font-size: 12px;
      font-weight: 950;
      letter-spacing: 0.03em;
      box-shadow: 0 12px 24px rgba(0, 115, 91, 0.18);
    }

    .global-logout-trigger {
      width: 42px;
      height: 42px;
      border: 1px solid #dce6ea;
      border-radius: 50%;
      background: #fff;
      color: var(--muted);
      display: grid;
      place-items: center;
      box-shadow: 0 10px 20px rgba(13, 34, 40, 0.05);
    }

    .global-notification-trigger {
      position: relative;
      width: 42px;
      height: 42px;
      border: 0;
      border-radius: 50%;
      background: #fff;
      color: var(--ink);
      display: grid;
      place-items: center;
    }

    .global-notification-trigger .notification-count {
      top: 1px;
      right: 0;
    }

    .mobile-productivity-shell {
      display: grid;
      gap: 16px;
      max-width: 960px;
      margin: 0 auto;
      padding: 18px;
      border: 1px solid var(--line);
      border-radius: 24px;
      background: linear-gradient(180deg, #ffffff 0%, #f7fbfb 100%);
      box-shadow: 0 18px 48px rgba(13, 34, 40, 0.09);
    }

    .management-panel[data-management-panel="produtividade"] .mobile-productivity-shell {
      width: 100%;
      max-width: none;
      margin: 0;
      box-sizing: border-box;
    }

    .management-panel[data-management-panel="produtividade"] .mobile-productivity-head {
      grid-template-columns: minmax(0, 1fr) minmax(280px, 360px);
    }

    .mobile-productivity-head {
      display: grid;
      grid-template-columns: minmax(0, 1fr) minmax(220px, 280px);
      gap: 14px;
      align-items: end;
    }

    .brand-go {
      display: inline-block;
      color: #00b88a;
      font-size: 36px;
      line-height: 1;
      font-weight: 950;
      letter-spacing: -0.04em;
      margin-bottom: 8px;
    }

    .mobile-productivity-head h2 {
      margin: 0;
      color: var(--ink);
      font-size: 24px;
      line-height: 1.05;
    }

    .mobile-productivity-head p {
      margin: 4px 0 0;
      color: var(--muted);
      font-size: 13px;
      font-weight: 720;
    }

    .compact-filter {
      display: grid;
      gap: 6px;
      padding: 10px;
      border: 1px solid var(--line);
      border-radius: 14px;
      background: #fff;
    }

    .compact-filter span {
      color: var(--muted);
      font-size: 10px;
      font-weight: 900;
      text-transform: uppercase;
      letter-spacing: 0.06em;
    }

    .app-kpi-grid {
      display: grid;
      grid-template-columns: repeat(4, minmax(0, 1fr));
      gap: 12px;
    }

    .app-kpi-card,
    .app-panel-card {
      border: 1px solid var(--line);
      border-radius: 20px;
      background: #fff;
      box-shadow: 0 12px 32px rgba(13, 34, 40, 0.07);
    }

    .app-kpi-card {
      min-height: 132px;
      display: grid;
      gap: 8px;
      align-content: center;
      padding: 18px;
    }

    .app-kpi-card span,
    .app-kpi-card small,
    .service-front-row span,
    .production-mini-grid span {
      color: var(--muted);
      font-size: 12px;
      font-weight: 760;
    }

    .app-kpi-card strong {
      color: var(--ink);
      font-size: 30px;
      line-height: 1;
      font-weight: 950;
    }

    .app-kpi-card.green { border-top: 4px solid #0ba57f; }
    .app-kpi-card.blue { border-top: 4px solid #2f76f6; }
    .app-kpi-card.purple { border-top: 4px solid #8c5cf6; }
    .app-kpi-card.orange { border-top: 4px solid #ff7a1a; }

    .sparkline,
    .app-line-chart {
      min-height: 44px;
    }

    .app-panel-card {
      overflow: hidden;
    }

    .app-panel-head {
      min-height: 54px;
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 12px;
      padding: 0 18px;
      border-bottom: 1px solid var(--line);
    }

    .app-panel-head h3 {
      margin: 0;
      color: var(--ink);
      font-size: 17px;
    }

    .app-panel-head span {
      color: var(--green);
      font-size: 12px;
      font-weight: 900;
    }

    .service-front-list {
      display: grid;
      gap: 12px;
      padding: 16px 18px;
    }

    .service-front-row {
      display: grid;
      grid-template-columns: 42px minmax(0, 1fr) auto;
      gap: 12px;
      align-items: center;
    }

    .service-front-icon {
      width: 42px;
      height: 42px;
      display: grid;
      place-items: center;
      border-radius: 14px;
      background: var(--green-soft);
      color: var(--green);
      font-weight: 950;
    }

    .service-front-row strong {
      display: block;
      color: var(--ink);
      font-size: 14px;
      line-height: 1.25;
    }

    .service-front-progress {
      height: 8px;
      margin-top: 7px;
      border-radius: 999px;
      background: #e8eef0;
      overflow: hidden;
    }

    .service-front-progress span {
      display: block;
      width: var(--value, 0%);
      height: 100%;
      border-radius: inherit;
      background: var(--bar, var(--green));
    }

    .service-front-percent {
      color: var(--green);
      font-size: 16px;
      font-weight: 950;
    }

    .production-mini-grid {
      display: grid;
      grid-template-columns: repeat(4, minmax(0, 1fr));
      gap: 10px;
      padding: 16px 18px 0;
    }

    .production-mini-grid div {
      display: grid;
      gap: 4px;
      padding: 12px;
      border: 1px solid var(--line);
      border-radius: 14px;
      background: var(--surface-2);
    }

    .production-mini-grid strong {
      color: var(--ink);
      font-size: 20px;
      line-height: 1;
    }

    .app-line-chart {
      padding: 10px 18px 16px;
    }

    .icon {
      width: 18px;
      height: 18px;
      display: inline-block;
      flex: 0 0 auto;
    }

    .shell {
      max-width: 1440px;
      margin: 0 auto;
      padding: 20px 24px 36px;
    }

    body.dashboard-mode .app-header {
      display: none;
    }

    body.dashboard-mode .shell {
      max-width: none;
      width: 100%;
      margin: 0;
      padding: 0;
    }

    .status-strip {
      display: grid;
      grid-template-columns: repeat(auto-fit, minmax(165px, 1fr));
      gap: 10px;
      margin-bottom: 18px;
    }

    .metric {
      min-height: 82px;
      background: var(--surface);
      border: 1px solid var(--line);
      border-left: 5px solid var(--blue);
      border-radius: var(--radius);
      padding: 13px 14px;
      box-shadow: var(--shadow);
    }

    .metric:nth-child(2) {
      border-left-color: var(--green);
    }

    .metric:nth-child(3) {
      border-left-color: var(--amber);
    }

    .metric:nth-child(4) {
      border-left-color: var(--red);
    }

    .metric:nth-child(5) {
      border-left-color: var(--green);
    }

    .metric-label {
      color: var(--muted);
      font-size: 12px;
      font-weight: 720;
      text-transform: uppercase;
      letter-spacing: 0.04em;
    }

    .metric-value {
      display: block;
      margin-top: 7px;
      font-size: 26px;
      line-height: 1;
      font-weight: 780;
    }

    #homePercentAvg {
      font-size: clamp(18px, 1.7vw, 24px);
      line-height: 1.08;
    }

    .metric-note {
      display: block;
      margin-top: 5px;
      color: var(--muted);
      font-size: 12px;
    }

    .metric-note.good {
      color: var(--green);
      font-weight: 760;
    }

    .metric-note.bad {
      color: var(--red);
      font-weight: 760;
    }

    .contract-overview {
      margin-bottom: 18px;
    }

    .contract-grid {
      grid-template-columns: minmax(390px, 0.9fr) minmax(440px, 1.1fr);
      gap: 14px;
      align-items: stretch;
    }

    .contract-summary-grid {
      display: grid;
      grid-template-columns: repeat(3, minmax(0, 1fr));
      gap: 8px;
      align-content: start;
      height: auto;
    }

    .contract-summary-grid .empty {
      grid-column: 1 / -1;
    }

    .contract-object {
      grid-column: 1 / -1;
    }

    .span-full {
      grid-column: 1 / -1;
    }

    .contract-object strong {
      font-size: 14px;
      line-height: 1.25;
      overflow-wrap: anywhere;
    }

    .contract-summary-grid .mini-stat {
      align-content: center;
      min-height: 58px;
      padding: 9px 10px;
      gap: 4px;
    }

    .contract-summary-grid .mini-stat span {
      font-size: 10px;
    }

    .contract-summary-grid .mini-stat strong {
      font-size: 14px;
      overflow-wrap: anywhere;
    }

    .contract-summary-grid .contract-object {
      grid-column: 1 / -1;
      grid-template-columns: 1fr;
      gap: 4px;
      align-content: center;
      min-height: 72px;
    }

    .contract-summary-grid .contract-object strong {
      text-align: left;
      font-size: 14px;
      line-height: 1.25;
    }

    .contract-chart {
      min-width: 0;
      display: grid;
      gap: 12px;
      align-content: stretch;
    }

    .contract-chart-head {
      display: none;
      align-items: start;
      justify-content: space-between;
      gap: 12px;
    }

    .contract-chart-head strong {
      display: block;
      font-size: 15px;
      line-height: 1.2;
    }

    .contract-chart-head span {
      color: var(--muted);
      font-size: 12px;
      line-height: 1.35;
    }

    .contract-score-grid {
      display: grid;
      grid-template-columns: repeat(2, minmax(0, 1fr));
      gap: 12px;
    }

    .contract-score-card {
      min-height: 150px;
      padding: 14px;
      border: 1px solid var(--line);
      border-radius: var(--radius);
      background: #fff;
      display: grid;
      align-content: space-between;
      gap: 12px;
      min-width: 0;
    }

    .contract-score-card header {
      display: grid;
      gap: 5px;
    }

    .contract-score-card h3 {
      margin: 0;
      color: var(--muted);
      font-size: 12px;
      line-height: 1.2;
      font-weight: 780;
      text-transform: uppercase;
      letter-spacing: 0.04em;
    }

    .contract-score-card strong {
      font-size: clamp(26px, 4vw, 38px);
      line-height: 0.95;
      letter-spacing: 0;
    }

    .contract-score-card p {
      margin: 0;
      color: var(--muted);
      font-size: 12px;
      line-height: 1.35;
    }

    .contract-score-meter {
      height: 12px;
      border-radius: 999px;
      background: #dfe7e4;
      overflow: hidden;
    }

    .contract-score-fill {
      height: 100%;
      width: var(--value, 0%);
      border-radius: inherit;
      background: var(--green);
    }

    .contract-score-fill.amber {
      background: var(--amber);
    }

    .contract-score-fill.red {
      background: var(--red);
    }

    .contract-score-detail {
      display: grid;
      gap: 7px;
    }

    .contract-score-row {
      display: grid;
      grid-template-columns: 1fr auto;
      gap: 8px;
      align-items: center;
      color: var(--muted);
      font-size: 12px;
      font-weight: 720;
    }

    .contract-map-card {
      grid-column: 1 / -1;
      overflow: hidden;
      padding: 8px;
      gap: 8px;
    }

    .contract-map-slot {
      grid-column: auto;
      min-width: 0;
      height: 100%;
    }

    .contract-map-slot .contract-map-card {
      min-height: 0;
      height: 100%;
    }

    .contract-map-layout {
      display: grid;
      grid-template-columns: minmax(0, 1.4fr) minmax(220px, 0.6fr);
      gap: 10px;
      min-width: 0;
      height: 100%;
    }

    .work-map {
      min-height: 310px;
      border: 1px solid var(--line);
      border-radius: var(--radius);
      overflow: hidden;
      background: #dfe7e4;
    }

    .work-map iframe {
      border: 0;
      display: block;
      width: 100%;
      height: 100%;
      min-height: 310px;
    }

    .contract-map-gallery {
      display: grid;
      min-height: 310px;
      min-width: 0;
    }

    .contract-map-photo {
      position: relative;
      min-height: 310px;
      overflow: hidden;
      border: 1px solid var(--line);
      border-radius: var(--radius);
      background: linear-gradient(135deg, #eef3f1, #dfe7e4);
    }

    .contract-map-photo img {
      width: 100%;
      height: 100%;
      min-height: 310px;
      object-fit: cover;
      display: block;
    }

    .contract-map-placeholder {
      display: grid;
      place-items: center;
      height: 100%;
      min-height: 310px;
      padding: 54px 12px 12px;
      color: var(--muted);
      font-size: 12px;
      font-weight: 760;
      text-transform: uppercase;
      letter-spacing: 0.04em;
    }

    .contract-photo-button {
      position: absolute;
      top: 10px;
      left: 10px;
      z-index: 2;
      min-height: 34px;
      border: 1px solid rgba(255, 255, 255, 0.75);
      background: rgba(255, 255, 255, 0.92);
      color: var(--ink);
      box-shadow: 0 8px 24px rgba(31, 42, 68, 0.14);
      cursor: pointer;
    }

    .contract-photo-delete {
      position: absolute;
      top: 10px;
      right: 10px;
      z-index: 2;
      border: 1px solid rgba(255, 255, 255, 0.75);
      box-shadow: 0 8px 24px rgba(31, 42, 68, 0.14);
    }

    .contract-actions {
      display: flex;
      align-items: center;
      justify-content: flex-end;
      gap: 8px;
      flex-wrap: wrap;
    }

    .contract-actions select {
      width: min(260px, 100%);
      min-height: 34px;
      padding-block: 6px;
    }

    .home-work-card {
      border: 1px solid var(--line);
      border-radius: var(--radius);
      background: var(--surface-2);
      padding: 13px;
      display: grid;
      gap: 10px;
      min-width: 0;
    }

    .home-work-card h3 {
      margin: 0;
      font-size: 16px;
      line-height: 1.2;
    }

    .layout {
      display: grid;
      grid-template-columns: minmax(0, 1fr) 360px;
      gap: 18px;
      align-items: start;
      min-width: 0;
    }

    .page-grid {
      display: grid;
      grid-template-columns: repeat(2, minmax(0, 1fr));
      gap: 18px;
      align-items: start;
    }

    .page-grid.single {
      grid-template-columns: 1fr;
    }

    .panel-grid {
      display: grid;
      grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
      gap: 10px;
    }

    .work-list {
      display: grid;
      gap: 10px;
    }

    .work-row {
      display: grid;
      grid-template-columns: 1.2fr 1fr 1fr auto;
      gap: 10px;
      align-items: center;
      padding: 10px;
      border: 1px solid var(--line);
      border-radius: var(--radius);
      background: var(--surface-2);
      min-width: 0;
    }

    .work-row strong {
      display: block;
      font-size: 14px;
      line-height: 1.25;
    }

    .work-row span {
      color: var(--muted);
      font-size: 12px;
    }

    .check-list {
      display: grid;
      gap: 8px;
    }

    .check-item {
      min-height: 42px;
      display: grid;
      grid-template-columns: auto 1fr auto;
      align-items: center;
      gap: 10px;
      padding: 9px 10px;
      border: 1px solid var(--line);
      border-radius: var(--radius);
      background: var(--surface-2);
    }

    .check-item input {
      width: 18px;
      height: 18px;
      min-height: auto;
    }

    .catalog-tools {
      display: grid;
      grid-template-columns: minmax(220px, 1fr) auto;
      gap: 10px;
      margin-bottom: 12px;
      align-items: center;
    }

    .catalog-list {
      max-height: 520px;
      overflow: auto;
      border: 1px solid var(--line);
      border-radius: var(--radius);
      background: #fff;
    }

    .catalog-row {
      display: grid;
      grid-template-columns: 120px minmax(0, 1fr) 110px;
      gap: 10px;
      padding: 10px 12px;
      border-bottom: 1px solid var(--line);
      align-items: center;
    }

    .catalog-row:last-child {
      border-bottom: 0;
    }

    .catalog-code {
      font-weight: 780;
      color: var(--green);
    }

    .catalog-desc {
      min-width: 0;
      line-height: 1.3;
    }

    .catalog-unit {
      color: var(--muted);
      font-weight: 720;
      text-align: right;
    }

    .portfolio-grid {
      display: grid;
      grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
      gap: 12px;
    }

    .portfolio-card {
      border: 1px solid var(--line);
      border-radius: var(--radius);
      background: var(--surface-2);
      padding: 13px;
      display: grid;
      gap: 10px;
      min-width: 0;
    }

    .portfolio-card h3 {
      margin: 0;
      font-size: 16px;
    }

    .portfolio-meta {
      display: flex;
      flex-wrap: wrap;
      gap: 7px;
      align-items: center;
    }

    .portfolio-status-control {
      display: inline-flex;
      align-items: center;
      gap: 6px;
      border: 1px solid rgba(8, 115, 95, 0.18);
      border-radius: 999px;
      background: #f2fbf8;
      padding: 4px 7px;
      color: var(--green);
      font-size: 11px;
      font-weight: 820;
      text-transform: uppercase;
    }

    .portfolio-status-control.watch {
      border-color: rgba(210, 140, 32, 0.24);
      background: #fff7e7;
      color: #8b5b16;
    }

    .portfolio-status-control.info {
      border-color: rgba(42, 100, 150, 0.2);
      background: #eef6fb;
      color: #285f8f;
    }

    .portfolio-status-control select {
      min-height: 24px;
      border: 0;
      padding: 0 18px 0 0;
      background: transparent;
      color: inherit;
      font-size: 11px;
      font-weight: 860;
      text-transform: uppercase;
    }

    .portfolio-detail-grid {
      display: grid;
      grid-template-columns: minmax(120px, 0.55fr) minmax(0, 1.45fr);
      gap: 10px;
      align-items: start;
    }

    .portfolio-detail-grid textarea,
    .compact-textarea {
      min-height: 54px;
      font-size: 14px;
      line-height: 1.25;
    }

    .portfolio-detail-grid .contract-object-field {
      grid-column: 1 / -1;
    }

    .progress-track {
      height: 10px;
      border-radius: 999px;
      background: #dfe7e4;
      overflow: hidden;
    }

    .progress-fill {
      height: 100%;
      border-radius: inherit;
      background: var(--green);
      width: var(--value, 0%);
    }

    .mini-stats {
      display: grid;
      grid-template-columns: repeat(2, minmax(0, 1fr));
      gap: 8px;
    }

    .mini-stat {
      border: 1px solid var(--line);
      border-radius: var(--radius);
      background: #fff;
      padding: 9px;
      display: grid;
      gap: 3px;
      min-width: 0;
    }

    .mini-stat span {
      color: var(--muted);
      font-size: 11px;
      font-weight: 720;
      text-transform: uppercase;
      letter-spacing: 0.04em;
    }

    .mini-stat strong {
      font-size: 16px;
      line-height: 1.1;
    }

    .portfolio-card .mini-stat {
      padding: 8px;
      gap: 4px;
    }

    .portfolio-card .mini-stat span {
      font-size: 10px;
      line-height: 1.25;
    }

    .portfolio-card .mini-stat strong,
    .portfolio-card .mini-stat input {
      font-size: 14px;
      line-height: 1.2;
    }

    .portfolio-card .mini-stat input {
      min-height: 34px;
      padding: 6px 8px;
    }

    .gantt {
      border: 1px solid var(--line);
      border-radius: var(--radius);
      overflow-x: auto;
      background: #fff;
    }

    .gantt-toolbar {
      display: flex;
      flex-wrap: wrap;
      align-items: center;
      justify-content: space-between;
      gap: 12px;
      margin-bottom: 10px;
    }

    .gantt-toolbar .icon-button {
      color: var(--ink);
      background: var(--surface-2);
      border-color: var(--line);
    }

    .gantt-toolbar .icon-button:disabled {
      cursor: not-allowed;
      opacity: 0.45;
    }

    .gantt-row {
      display: grid;
      min-width: max-content;
      min-height: 58px;
      border-bottom: 1px solid var(--line);
      align-items: stretch;
    }

    .gantt-head {
      position: sticky;
      top: 0;
      z-index: 1;
    }

    .gantt-row:last-child {
      border-bottom: 0;
    }

    .gantt #ganttHeader .gantt-row {
      border-bottom: 1px solid var(--line);
    }

    .gantt-cell,
    .gantt-label {
      padding: 9px 10px;
      border-right: 1px solid var(--line);
      display: flex;
      align-items: center;
      min-width: 0;
    }

    .gantt-label {
      background: var(--surface-2);
      font-weight: 760;
    }

    .gantt-head .gantt-cell {
      background: #fff;
      color: var(--muted);
      font-size: 12px;
      font-weight: 760;
      justify-content: center;
      white-space: nowrap;
    }

    .gantt[data-scale="week"] .gantt-head .gantt-cell {
      padding-inline: 6px;
      font-size: 10px;
      flex-direction: column;
      gap: 2px;
      line-height: 1.05;
      white-space: normal;
    }

    .gantt-cell-year {
      display: block;
      color: #425760;
      font-size: 10px;
      font-weight: 850;
    }

    .gantt-cell-day {
      display: block;
      color: var(--muted);
      font-size: 11px;
      font-weight: 760;
    }

    .gantt[data-scale="year"] .gantt-head .gantt-cell {
      font-size: 13px;
      color: var(--ink);
    }

    .gantt-cell:last-child {
      border-right: 0;
    }

    .gantt-empty {
      align-self: center;
      color: var(--muted);
      font-size: 13px;
      padding: 0 12px;
    }

    .gantt-bar {
      position: relative;
      align-self: center;
      min-height: 28px;
      border-radius: 999px;
      padding: 5px 12px;
      color: #fff;
      background: linear-gradient(90deg, var(--bar-color, var(--green)) var(--value, 0%), #dfe7e4 var(--value, 0%));
      display: flex;
      align-items: center;
      justify-content: flex-start;
      font-size: 12px;
      font-weight: 760;
      white-space: nowrap;
      overflow: hidden;
      box-shadow: 0 5px 12px rgba(26, 43, 45, 0.14);
    }

    .gantt-bar span {
      position: relative;
      z-index: 1;
      padding: 2px 8px;
      border-radius: 999px;
      background: var(--bar-color, var(--green));
      color: #fff;
      text-shadow: 0 1px 2px rgba(0, 0, 0, 0.24);
    }

    .gantt-bar.green {
      --bar-color: var(--green);
    }

    .gantt-bar.amber {
      background: var(--amber);
      --bar-color: var(--amber);
    }

    .gantt-bar.red {
      --bar-color: var(--red);
    }

    .gantt-bar.neutral {
      --bar-color: #7c8c88;
    }

    .bar-chart {
      display: grid;
      gap: 10px;
    }

    .chart-row {
      display: grid;
      grid-template-columns: 120px 1fr 44px;
      gap: 10px;
      align-items: center;
    }

    .chart-label {
      font-weight: 720;
      font-size: 13px;
      color: var(--ink);
    }

    .chart-track {
      height: 22px;
      border-radius: 999px;
      background: #dfe7e4;
      overflow: hidden;
    }

    .chart-bar {
      height: 100%;
      width: var(--value, 0%);
      background: var(--green);
      border-radius: inherit;
    }

    .chart-bar.green {
      background: var(--green);
    }

    .chart-bar.blue {
      background: var(--blue);
    }

    .chart-bar.amber {
      background: var(--amber);
    }

    .chart-bar.red {
      background: var(--red);
    }

    .chart-value {
      color: var(--muted);
      font-weight: 760;
      text-align: right;
    }

    .donut {
      width: 180px;
      height: 180px;
      border-radius: 50%;
      margin: 0 auto;
      background: conic-gradient(var(--green) 0 63%, var(--amber) 63% 84%, var(--red) 84% 100%);
      position: relative;
    }

    .donut::after {
      content: "";
      position: absolute;
      inset: 34px;
      border-radius: 50%;
      background: var(--surface);
    }

    .donut-center {
      position: absolute;
      inset: 0;
      display: grid;
      place-items: center;
      z-index: 1;
      text-align: center;
      font-weight: 780;
    }

    .chart-legend {
      display: flex;
      flex-wrap: wrap;
      gap: 8px;
      justify-content: center;
      margin-top: 12px;
    }

    .safety-layout {
      display: grid;
      grid-template-columns: 1fr;
      gap: 14px;
      align-items: stretch;
    }

    .safety-score-entry,
    .safety-chart {
      min-width: 0;
      border: 1px solid var(--line);
      border-radius: var(--radius);
      background: var(--surface-2);
      padding: 12px;
    }

    .safety-chart-stack {
      display: grid;
      gap: 8px;
      min-width: 0;
    }

    .safety-score-entry {
      display: grid;
      grid-template-columns: minmax(70px, 0.45fr) minmax(132px, 0.9fr) minmax(178px, 1.15fr) minmax(108px, 0.72fr) minmax(156px, 0.9fr) auto;
      align-items: end;
      gap: 8px;
    }

    .safety-score-entry .field {
      gap: 4px;
      min-height: 52px;
      justify-content: end;
    }

    .safety-score-entry label,
    .safety-year-card .metric-label {
      font-size: 10px;
      line-height: 1.2;
    }

    .safety-score-entry input,
    .safety-score-entry select {
      height: 36px;
      min-height: 36px;
      padding: 6px 8px;
      font-size: 13px;
    }

    .safety-score-entry .primary-button.icon-only,
    .safety-score-entry .secondary-button.icon-only {
      width: 36px;
      height: 36px;
      min-height: 36px;
      justify-self: start;
    }

    .safety-year-card {
      display: grid;
      gap: 4px;
      height: 52px;
      min-height: 52px;
      align-content: end;
      padding: 0;
    }

    .safety-year-card strong {
      display: flex;
      align-items: center;
      height: 36px;
      min-height: 36px;
      padding: 6px 8px;
      border: 1px solid var(--line);
      border-radius: var(--radius-sm);
      background: #fff;
      box-sizing: border-box;
      font-size: 14px;
      line-height: 1.2;
      color: var(--ink);
    }

    .safety-year-actions {
      display: grid;
      grid-template-columns: minmax(0, 1fr) auto;
      gap: 8px;
      align-items: end;
      min-height: 52px;
    }

    .safety-score-percent {
      position: relative;
    }

    .safety-score-percent input {
      padding-right: 26px;
      text-align: right;
    }

    .safety-score-percent::after {
      content: "%";
      position: absolute;
      right: 9px;
      bottom: 8px;
      color: var(--muted);
      font-size: 12px;
      font-weight: 760;
      pointer-events: none;
    }

    .safety-timeline-control {
      display: grid;
      grid-column: 1 / -1;
      grid-template-columns: minmax(120px, 1fr) auto;
      grid-template-areas:
        "label buttons"
        "period buttons";
      align-items: center;
      gap: 2px 10px;
      min-width: 0;
      padding: 8px 10px;
      border: 1px solid var(--line);
      border-radius: var(--radius);
      background: #fff;
    }

    .safety-timeline-control .metric-label {
      grid-area: label;
    }

    .safety-timeline-control strong {
      grid-area: period;
      font-size: 14px;
      line-height: 1.2;
    }

    .safety-timeline-buttons {
      grid-area: buttons;
      display: flex;
      justify-content: flex-end;
      gap: 4px;
      flex-wrap: nowrap;
      white-space: nowrap;
    }

    .safety-timeline-buttons .icon-button {
      width: 32px;
      height: 32px;
      min-height: 32px;
      color: var(--ink);
      background: #fff;
      border-color: var(--line);
    }

    .safety-chart {
      display: grid;
      gap: 10px;
    }

    .safety-chart-head {
      display: flex;
      align-items: start;
      justify-content: space-between;
      gap: 12px;
      flex-wrap: wrap;
    }

    .safety-chart-head strong {
      display: block;
      font-size: 15px;
      line-height: 1.2;
    }

    .safety-chart-head span:not(.badge) {
      color: var(--muted);
      font-size: 12px;
    }

    .safety-vertical-chart {
      display: grid;
      gap: 8px;
      min-width: 0;
      overflow-x: auto;
      padding-bottom: 2px;
    }

    .safety-plot-area,
    .safety-month-row {
      width: 100%;
      min-width: 0;
      display: grid;
      grid-template-columns: repeat(var(--safety-month-count, 12), minmax(var(--safety-month-min-width, 48px), 1fr));
      gap: var(--safety-month-gap, 8px);
    }

    .safety-plot-area {
      position: relative;
      height: 270px;
      align-items: end;
      padding: 24px 12px 0;
      border-left: 1px solid var(--line-strong);
      border-bottom: 1px solid var(--line-strong);
      background:
        linear-gradient(to top, rgba(207, 216, 213, 0.65) 1px, transparent 1px) 0 0 / 100% 25%,
        #fff;
    }

    .safety-bar-wrap {
      position: relative;
      height: 100%;
      display: flex;
      align-items: flex-end;
      justify-content: center;
      min-width: 0;
    }

    .safety-vertical-bar {
      width: min(76%, var(--safety-bar-width, 46px));
      height: var(--score, 0%);
      min-height: 4px;
      border-radius: 6px 6px 0 0;
      background: var(--green);
      box-shadow: inset 0 -1px 0 rgba(0, 0, 0, 0.1);
    }

    .safety-bar-wrap.no-score .safety-vertical-bar {
      background: #cfd8d5;
    }

    .safety-vertical-bar.amber {
      background: var(--amber);
    }

    .safety-vertical-bar.red {
      background: var(--red);
    }

    .safety-bar-value {
      position: absolute;
      bottom: calc(var(--score, 0%) + 6px);
      left: 50%;
      transform: translateX(-50%);
      color: var(--ink);
      font-size: 10px;
      font-weight: 800;
      z-index: 3;
      padding: 2px 5px;
      border: 1px solid rgba(31, 42, 68, 0.08);
      border-radius: 999px;
      background: rgba(255, 255, 255, 0.94);
      box-shadow: 0 4px 12px rgba(31, 42, 68, 0.08);
      white-space: nowrap;
    }

    .safety-bar-wrap.high-score .safety-bar-value {
      top: 6px;
      bottom: auto;
    }

    .safety-bar-wrap.no-score .safety-bar-value {
      bottom: 8px;
      color: var(--muted);
      background: transparent;
      border-color: transparent;
      box-shadow: none;
    }

    .safety-target-line {
      position: absolute;
      left: 0;
      right: 0;
      bottom: var(--target, 90%);
      z-index: 2;
      border-top: 2px dashed var(--red);
      pointer-events: none;
    }

    .safety-target-line span {
      position: absolute;
      right: 8px;
      top: -24px;
      padding: 3px 7px;
      border-radius: 999px;
      background: var(--red-soft);
      color: var(--red);
      font-size: 10px;
      font-weight: 800;
      white-space: nowrap;
    }

    .safety-month-row {
      padding: 0 12px;
    }

    .safety-month-row span {
      text-align: center;
      color: var(--muted);
      font-size: 10px;
      font-weight: 800;
    }

    .timeline-list {
      display: grid;
      gap: 8px;
    }

    .timeline-item {
      display: grid;
      grid-template-columns: 1fr auto auto auto;
      gap: 10px;
      align-items: center;
      padding: 9px 10px;
      border: 1px solid var(--line);
      border-radius: var(--radius);
      background: #fff;
    }

    .task-edit-row {
      grid-template-columns: minmax(160px, 1.2fr) minmax(130px, 0.8fr) minmax(170px, 1fr) repeat(4, minmax(128px, 0.72fr)) auto auto;
    }

    .task-edit-row .field,
    .safety-check-row .field {
      gap: 4px;
    }

    .safety-check-row {
      grid-template-columns: auto minmax(180px, 1fr) minmax(120px, 160px) auto;
      align-items: end;
    }

    .safety-score-list {
      display: grid;
      grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
      gap: 8px;
      margin-top: 4px;
    }

    .safety-score-row {
      grid-template-columns: minmax(44px, 0.55fr) minmax(58px, 0.8fr) auto;
      align-items: center;
      gap: 8px;
      padding: 7px 8px;
    }

    .safety-score-month {
      display: grid;
      gap: 1px;
      min-width: 0;
    }

    .safety-score-month strong {
      font-size: 13px;
      line-height: 1.1;
    }

    .safety-score-month span {
      color: var(--muted);
      font-size: 10px;
      font-weight: 720;
    }

    .safety-score-row .field {
      gap: 4px;
    }

    .safety-score-row .field label {
      position: absolute;
      width: 1px;
      height: 1px;
      overflow: hidden;
      clip: rect(0 0 0 0);
    }

    .safety-score-row input {
      min-height: 34px;
      padding: 7px 8px;
      text-align: center;
      font-size: 13px;
    }

    .safety-score-row .row-actions {
      display: flex;
      justify-content: flex-end;
      gap: 5px;
    }

    .safety-score-row .icon-button,
    .safety-score-row .trash-button {
      width: 30px;
      height: 30px;
    }

    .calculator-box {
      margin-top: 12px;
      padding: 12px;
      border: 1px solid var(--line);
      border-radius: var(--radius);
      background: var(--surface-2);
      display: grid;
      gap: 10px;
    }

    .inline-form {
      display: grid;
      grid-template-columns: repeat(4, minmax(0, 1fr));
      gap: 10px;
      margin-bottom: 14px;
      padding: 12px;
      border: 1px solid var(--line);
      border-radius: var(--radius);
      background: var(--surface-2);
    }

    .inline-form .form-actions {
      display: flex;
      align-items: end;
    }

    .inline-form .form-actions button {
      width: 100%;
    }

    .inline-form .form-actions.split-actions {
      gap: 8px;
    }

    .inline-form .form-actions.split-actions button {
      width: auto;
      flex: 1 1 0;
      min-width: 0;
    }

    .inline-control {
      display: grid;
      grid-template-columns: minmax(0, 1fr) 34px;
      gap: 6px;
      align-items: center;
    }

    .inline-control .icon-only {
      width: 34px;
      height: 34px;
      padding: 0;
    }

    .line-head {
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 10px;
    }

    .line-head .icon-only {
      width: 34px;
      height: 34px;
      padding: 0;
      flex: 0 0 auto;
    }

    .direct-item-lines {
      display: grid;
      gap: 8px;
    }

    .direct-item-line {
      display: grid;
      grid-template-columns: minmax(220px, 2fr) minmax(90px, 0.7fr) minmax(110px, 0.8fr) 34px;
      gap: 8px;
      align-items: end;
      padding: 9px;
      border: 1px solid var(--line);
      border-radius: 7px;
      background: #fff;
    }

    .direct-item-line .field {
      gap: 4px;
    }

    .direct-item-line label {
      font-size: 10px;
    }

    .direct-item-line .icon-only {
      width: 34px;
      height: 34px;
      padding: 0;
    }

    .direct-billing-table {
      min-width: 920px;
    }

    .direct-order-group-row td {
      padding: 8px;
      background: #f2f6f4;
      border-top: 1px solid var(--line-strong);
      border-bottom: 1px solid var(--line);
    }

    .direct-order-summary {
      display: grid;
      grid-template-columns: minmax(220px, 1fr) auto auto auto auto;
      gap: 8px;
      align-items: center;
      min-width: 0;
    }

    .direct-order-title {
      display: grid;
      gap: 2px;
      min-width: 0;
    }

    .direct-order-title strong {
      color: var(--ink);
      font-size: 13px;
      line-height: 1.2;
    }

    .direct-order-title span {
      color: var(--muted);
      font-size: 11px;
      font-weight: 720;
      line-height: 1.25;
      overflow-wrap: anywhere;
    }

    .direct-order-items-preview {
      display: block;
      margin-top: 2px;
      color: #4b5f5b;
      font-size: 11px;
      font-weight: 720;
      line-height: 1.35;
      overflow: hidden;
      text-overflow: ellipsis;
      white-space: nowrap;
    }

    .direct-order-total {
      justify-self: end;
      color: var(--green);
      font-size: 14px;
      font-weight: 880;
      white-space: nowrap;
    }

    .direct-order-count {
      color: var(--muted);
      font-size: 12px;
      font-weight: 780;
      white-space: nowrap;
    }

    .direct-order-actions {
      display: flex;
      justify-content: flex-end;
      gap: 6px;
      white-space: nowrap;
    }

    .direct-order-actions .icon-only {
      width: 32px;
      height: 32px;
      min-height: 32px;
    }

    .direct-order-delete {
      justify-self: end;
    }

    .direct-order-item-row td {
      padding-top: 6px;
      padding-bottom: 6px;
      background: #fff;
    }

    .direct-order-item-row input,
    .direct-order-item-row select {
      min-height: 30px;
      padding: 5px 7px;
      font-size: 12px;
    }

    .direct-item-compact {
      display: grid;
      gap: 4px;
      min-width: 0;
    }

    .direct-item-compact strong {
      color: var(--ink);
      font-size: 12px;
      line-height: 1.25;
      overflow-wrap: anywhere;
    }

    .direct-item-compact span {
      color: var(--muted);
      font-size: 11px;
      font-weight: 720;
      line-height: 1.25;
    }

    .direct-billing-kpis {
      display: grid;
      grid-template-columns: repeat(6, minmax(150px, 1fr));
      gap: 10px;
      margin-bottom: 14px;
      overflow-x: auto;
      padding-bottom: 2px;
    }

    .direct-kpi {
      min-height: 76px;
      border: 1px solid var(--line);
      border-radius: 8px;
      background: #fff;
      box-shadow: var(--shadow-soft);
      display: grid;
      grid-template-columns: 42px minmax(0, 1fr);
      grid-template-areas:
        "icon label"
        "icon value"
        "icon note";
      align-items: center;
      column-gap: 10px;
      padding: 12px;
      min-width: 150px;
    }

    .direct-kpi .kpi-icon {
      grid-area: icon;
      width: 38px;
      height: 38px;
      border-radius: 50%;
      display: grid;
      place-items: center;
      font-weight: 900;
      font-size: 18px;
    }

    .direct-kpi .kpi-icon.green {
      color: var(--green);
      background: #dff5ec;
    }

    .direct-kpi .kpi-icon.blue {
      color: #1f66cc;
      background: #e8f1ff;
    }

    .direct-kpi span:not(.kpi-icon) {
      grid-area: label;
      color: var(--muted);
      font-size: 11px;
      font-weight: 760;
      line-height: 1.15;
    }

    .direct-kpi strong {
      grid-area: value;
      color: var(--ink);
      font-size: 22px;
      font-weight: 900;
      line-height: 1.05;
      white-space: nowrap;
    }

    .direct-kpi small {
      grid-area: note;
      color: var(--muted);
      font-size: 10.5px;
      font-weight: 720;
      line-height: 1.15;
    }

    .direct-billing-layout {
      display: grid;
      grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
      gap: 12px;
      margin-bottom: 14px;
    }

    .direct-billing-card,
    .direct-orders-panel {
      border: 1px solid var(--line);
      border-radius: 8px;
      background: #fff;
      box-shadow: var(--shadow-soft);
      min-width: 0;
    }

    .direct-card-title,
    .direct-orders-panel > header {
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 10px;
      padding: 13px 16px;
      border-bottom: 1px solid var(--line);
    }

    .direct-card-title {
      justify-content: flex-start;
    }

    .direct-card-title.with-action {
      justify-content: space-between;
    }

    .direct-title-inline {
      display: flex;
      align-items: center;
      gap: 9px;
      min-width: 0;
    }

    .direct-card-title h3,
    .direct-orders-panel h3 {
      margin: 0;
      color: var(--ink);
      font-size: 15px;
      font-weight: 900;
      line-height: 1.15;
    }

    .direct-card-title p {
      margin: 2px 0 0;
      color: var(--muted);
      font-size: 11px;
      font-weight: 650;
      line-height: 1.2;
    }

    .direct-billing-form,
    .direct-invoice-form {
      display: grid;
      grid-template-columns: repeat(4, minmax(0, 1fr));
      gap: 10px;
      padding: 14px 16px;
    }

    .direct-invoice-form {
      grid-template-columns: repeat(3, minmax(0, 1fr));
      padding-bottom: 10px;
    }

    .direct-billing-form .span-4 {
      grid-column: 1 / -1;
    }

    .direct-invoice-list {
      padding: 0 16px 10px;
      overflow-x: auto;
    }

    .direct-info-note {
      margin: 0 16px 14px;
      padding: 9px 12px;
      border-radius: 7px;
      background: #eaf3ff;
      color: #245b9f;
      font-size: 11px;
      font-weight: 760;
    }

    .direct-orders-panel {
      overflow: hidden;
    }

    .direct-order-list {
      display: grid;
      gap: 8px;
      padding: 10px 12px 14px;
    }

    .direct-order-card {
      border: 1px solid var(--line);
      border-radius: 8px;
      background: #fff;
      overflow: hidden;
    }

    .direct-order-main {
      display: grid;
      grid-template-columns: 26px minmax(110px, 0.9fr) minmax(160px, 1.1fr) minmax(120px, 0.75fr) minmax(320px, 1.5fr) minmax(104px, 0.65fr) minmax(116px, 0.7fr) 74px;
      gap: 10px;
      align-items: center;
      padding: 12px;
    }

    .direct-toggle {
      width: 26px;
      height: 26px;
      border: 0;
      background: transparent;
      color: var(--ink);
      cursor: pointer;
      display: grid;
      place-items: center;
      padding: 0;
    }

    .direct-order-id,
    .direct-order-contract,
    .direct-order-total,
    .direct-order-dates {
      display: grid;
      gap: 3px;
      min-width: 0;
    }

    .direct-order-id strong,
    .direct-order-contract strong,
    .direct-order-total strong,
    .direct-order-dates strong {
      color: var(--ink);
      font-size: 12px;
      font-weight: 900;
      line-height: 1.2;
      overflow-wrap: anywhere;
    }

    .direct-order-id small,
    .direct-order-contract small,
    .direct-order-total small,
    .direct-order-dates span {
      color: var(--muted);
      font-size: 10.5px;
      font-weight: 720;
      line-height: 1.2;
    }

    .direct-order-flow-wrap {
      min-width: 0;
    }

    .direct-status-flow {
      display: grid;
      grid-template-columns: repeat(4, minmax(68px, 1fr));
      gap: 4px;
      align-items: start;
    }

    .direct-step {
      position: relative;
      display: grid;
      justify-items: center;
      gap: 2px;
      text-align: center;
      color: var(--muted);
      min-width: 0;
    }

    .direct-step::before {
      content: "";
      position: absolute;
      top: 11px;
      left: calc(-50% + 11px);
      width: calc(100% - 22px);
      height: 2px;
      background: var(--line-strong);
      z-index: 0;
    }

    .direct-step:first-child::before {
      display: none;
    }

    .direct-step span {
      z-index: 1;
      width: 22px;
      height: 22px;
      border-radius: 50%;
      display: grid;
      place-items: center;
      background: #d7dde2;
      color: #fff;
      font-size: 10px;
      font-weight: 900;
    }

    .direct-step.done span {
      background: var(--green);
    }

    .direct-step.done::before {
      background: rgba(0, 122, 91, 0.4);
    }

    .direct-step strong {
      font-size: 9.5px;
      font-weight: 850;
      line-height: 1.05;
      color: var(--ink);
    }

    .direct-step small {
      font-size: 9px;
      line-height: 1.05;
      color: var(--muted);
      font-weight: 720;
    }

    .direct-order-preview {
      padding: 0 12px 10px 48px;
      color: var(--muted);
      font-size: 11px;
      font-weight: 720;
      line-height: 1.25;
      overflow: hidden;
      text-overflow: ellipsis;
      white-space: nowrap;
    }

    .direct-process-editor {
      display: grid;
      grid-template-columns: repeat(4, minmax(0, 1fr));
      gap: 10px;
      padding: 10px 12px;
      border-top: 1px solid var(--line);
      background: #f8faf9;
    }

    .direct-expanded-block {
      padding: 10px 12px 12px;
      border-top: 1px solid var(--line);
      overflow-x: auto;
    }

    .direct-expanded-block h4 {
      margin: 0 0 8px;
      color: var(--ink);
      font-size: 12px;
      font-weight: 900;
    }

    .direct-invoice-table,
    .direct-item-table {
      width: 100%;
      min-width: 760px;
      border-collapse: collapse;
    }

    .direct-invoice-table th,
    .direct-invoice-table td,
    .direct-item-table th,
    .direct-item-table td {
      border-bottom: 1px solid var(--line);
      padding: 7px 8px;
      color: var(--ink);
      font-size: 11px;
      font-weight: 720;
      text-align: left;
      vertical-align: middle;
    }

    .direct-invoice-table th,
    .direct-item-table th {
      color: var(--muted);
      font-size: 10px;
      text-transform: uppercase;
      letter-spacing: 0;
      background: #f6f9f8;
    }

    .direct-item-table input,
    .direct-item-table select,
    .direct-invoice-table select {
      min-height: 28px;
      padding: 4px 7px;
      font-size: 11px;
    }

    @media (max-width: 1200px) {
      .direct-billing-layout {
        grid-template-columns: 1fr;
      }

      .direct-order-main {
        grid-template-columns: 26px minmax(110px, 0.8fr) minmax(160px, 1fr) minmax(110px, 0.75fr) minmax(280px, 1.4fr) 74px;
      }

      .direct-order-dates {
        display: none;
      }
    }

    @media (max-width: 760px) {
      .direct-billing-form,
      .direct-invoice-form,
      .direct-process-editor {
        grid-template-columns: 1fr;
      }

      .direct-order-main {
        grid-template-columns: 26px 1fr auto;
      }

      .direct-order-contract,
      .direct-order-total,
      .direct-order-flow-wrap {
        grid-column: 2 / -1;
      }

      .direct-order-preview {
        padding-left: 12px;
        white-space: normal;
      }
    }

    .portfolio-actions {
      display: flex;
      justify-content: flex-end;
      gap: 8px;
    }

    .main-stack,
    .side-stack {
      display: grid;
      gap: 18px;
      min-width: 0;
    }

    .band {
      background: var(--surface);
      border: 1px solid var(--line);
      border-radius: var(--radius);
      box-shadow: var(--shadow);
      min-width: 0;
    }

    .band-header {
      min-height: 54px;
      padding: 14px 16px;
      border-bottom: 1px solid var(--line);
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 12px;
    }

    .band-title {
      display: flex;
      align-items: center;
      gap: 9px;
      min-width: 0;
    }

    .band-actions {
      display: inline-flex;
      align-items: center;
      justify-content: flex-end;
      gap: 6px;
      flex: 0 0 auto;
    }

    .band-title h2 {
      margin: 0;
      font-size: 17px;
      line-height: 1.2;
      letter-spacing: 0;
    }

    .band-body {
      padding: 16px;
    }

    .form-grid {
      display: grid;
      grid-template-columns: repeat(4, minmax(0, 1fr));
      gap: 12px;
    }

    .field {
      display: grid;
      gap: 6px;
      min-width: 0;
    }

    .field.span-2 {
      grid-column: span 2;
    }

    .field.span-3 {
      grid-column: span 3;
    }

    .field.span-4 {
      grid-column: span 4;
    }

    label {
      color: var(--muted);
      font-size: 12px;
      font-weight: 720;
      text-transform: uppercase;
      letter-spacing: 0.04em;
    }

    input,
    select,
    textarea {
      width: 100%;
      min-width: 0;
      border: 1px solid var(--line);
      border-radius: 7px;
      background: #fff;
      color: var(--ink);
      outline: 0;
      transition: border 160ms ease, box-shadow 160ms ease;
    }

    input,
    select {
      min-height: 38px;
      padding: 8px 10px;
    }

    textarea {
      min-height: 98px;
      padding: 10px;
      resize: vertical;
      line-height: 1.35;
    }

    input:focus,
    select:focus,
    textarea:focus {
      border-color: var(--blue);
      box-shadow: 0 0 0 3px rgba(55, 107, 143, 0.16);
    }

    input:disabled,
    select:disabled,
    textarea:disabled {
      background: #edf2f0;
      color: #60706d;
      border-color: #d8e0de;
      cursor: not-allowed;
    }

    button:disabled {
      opacity: 0.48;
      cursor: not-allowed;
      transform: none !important;
    }

    .table-toolbar {
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 10px;
      flex-wrap: wrap;
      margin-bottom: 12px;
    }

    .segmented {
      min-height: 38px;
      padding: 3px;
      display: inline-flex;
      gap: 3px;
      background: var(--surface-2);
      border: 1px solid var(--line);
      border-radius: var(--radius);
    }

    .segmented button {
      min-height: 30px;
      padding: 0 10px;
      border-radius: 6px;
      color: var(--muted);
      background: transparent;
      font-size: 13px;
      font-weight: 690;
    }

    .segmented button.active {
      color: var(--ink);
      background: #fff;
      box-shadow: 0 1px 6px rgba(26, 43, 45, 0.09);
    }

    .primary-button,
    .secondary-button,
    .danger-button {
      min-height: 38px;
      border-radius: var(--radius);
      display: inline-flex;
      align-items: center;
      justify-content: center;
      gap: 8px;
      padding: 0 13px;
      font-weight: 730;
      white-space: nowrap;
    }

    .primary-button {
      background: var(--green);
      color: #fff;
    }

    .secondary-button {
      background: var(--blue-soft);
      color: #214e6b;
    }

    .danger-button {
      background: var(--red-soft);
      color: var(--red);
    }

    .table-wrap {
      overflow-x: auto;
      border: 1px solid var(--line);
      border-radius: var(--radius);
    }

    table {
      width: 100%;
      min-width: 1320px;
      border-collapse: collapse;
      background: #fff;
    }

    .takeoff-table {
      min-width: calc(880px + (var(--takeoff-bm-count, 1) * 64px));
      table-layout: fixed;
    }

    .takeoff-table .sap-cell {
      width: 96px;
    }

    .takeoff-table .desc-cell {
      width: 380px;
    }

    .takeoff-table .unit-cell {
      width: 68px;
    }

    .takeoff-table .bm-cell {
      width: 64px;
    }

    .bm-head {
      display: flex;
      align-items: center;
      justify-content: center;
      gap: 4px;
      line-height: 1;
    }

    .bm-head .trash-button {
      width: 20px;
      height: 20px;
      min-height: 20px;
      padding: 0;
    }

    .bm-head .trash-button .icon {
      width: 12px;
      height: 12px;
    }

    .takeoff-table .money-cell {
      width: 112px;
    }

    .takeoff-table .total-cell {
      width: 122px;
    }

    .takeoff-table th,
    .takeoff-table td {
      padding: 5px 6px;
      font-size: 11px;
    }

    .takeoff-table input,
    .takeoff-table select,
    .takeoff-table textarea {
      min-height: 28px;
      padding: 5px 6px;
      border-radius: 5px;
      font-size: 11px;
      line-height: 1.25;
    }

    .takeoff-sap-select {
      color: var(--green);
      font-weight: 780;
    }

    .takeoff-description {
      min-height: 52px;
      resize: vertical;
      overflow: hidden;
      white-space: pre-wrap;
      word-break: break-word;
    }

    .takeoff-table .calc {
      min-height: 28px;
      gap: 1px;
    }

    .takeoff-table .calc strong {
      font-size: 12px;
    }

    .takeoff-table .calc span {
      font-size: 10px;
    }

    .takeoff-table .trash-button {
      width: 28px;
      height: 28px;
    }

    .takeoff-toolbar {
      display: flex;
      justify-content: space-between;
      align-items: center;
      gap: 10px;
      flex-wrap: wrap;
      margin-bottom: 12px;
    }

    .takeoff-actions {
      display: flex;
      gap: 8px;
      flex-wrap: wrap;
    }

    .takeoff-file-name {
      color: var(--muted);
      font-size: 13px;
      font-weight: 700;
    }

    th,
    td {
      border-bottom: 1px solid var(--line);
      padding: 8px;
      text-align: left;
      vertical-align: top;
    }

    th {
      position: sticky;
      top: 0;
      z-index: 1;
      background: #eef2f1;
      color: #455755;
      font-size: 12px;
      font-weight: 760;
      text-transform: uppercase;
      letter-spacing: 0.04em;
    }

    tbody tr:last-child td {
      border-bottom: 0;
    }

    td input,
    td select,
    td textarea {
      min-height: 34px;
      font-size: 13px;
    }

    td textarea {
      min-height: 58px;
    }

    .cell-small {
      width: 86px;
    }

    .cell-medium {
      width: 140px;
    }

    .cell-large {
      width: 220px;
    }

    .calc {
      min-height: 34px;
      display: grid;
      align-content: center;
      gap: 2px;
    }

    .calc strong {
      font-size: 14px;
    }

    .calc span {
      color: var(--muted);
      font-size: 11px;
    }

    .badge {
      min-height: 26px;
      width: max-content;
      max-width: 100%;
      display: inline-flex;
      align-items: center;
      gap: 6px;
      border-radius: 999px;
      padding: 4px 9px;
      font-size: 12px;
      font-weight: 760;
      white-space: nowrap;
    }

    .badge.good {
      background: var(--green-soft);
      color: var(--green);
    }

    .badge.watch {
      background: var(--amber-soft);
      color: var(--amber);
    }

    .badge.bad {
      background: var(--red-soft);
      color: var(--red);
    }

    .badge.info {
      background: var(--blue-soft);
      color: var(--blue);
    }

    .row-actions {
      display: flex;
      justify-content: center;
      gap: 5px;
    }

    .icon-only,
    .row-actions .icon-only {
      width: 34px;
      height: 34px;
      min-height: 34px;
      padding: 0;
      display: grid;
      place-items: center;
      font-size: 0;
      gap: 0;
    }

    .trash-button {
      width: 34px;
      height: 34px;
      border-radius: 7px;
      display: grid;
      place-items: center;
      background: var(--red-soft);
      color: var(--red);
    }

    .sim-grid {
      display: grid;
      grid-template-columns: 1fr 1fr;
      gap: 10px;
    }

    .sim-result {
      margin-top: 12px;
      border: 1px solid var(--line);
      border-radius: var(--radius);
      background: var(--surface-2);
      padding: 12px;
      display: grid;
      gap: 8px;
    }

    .prod-hero-grid {
      display: grid;
      grid-template-columns: repeat(3, minmax(0, 1fr));
      gap: 12px;
    }

    .prod-indicator-grid {
      display: grid;
      grid-template-columns: repeat(5, minmax(0, 1fr));
      gap: 10px;
    }

    .prod-indicator {
      border: 1px solid var(--line);
      border-radius: var(--radius);
      background: var(--surface-2);
      padding: 10px;
      display: grid;
      gap: 6px;
      min-height: 84px;
    }

    .prod-indicator label {
      color: var(--muted);
      font-size: 11px;
      font-weight: 800;
      text-transform: uppercase;
    }

    .prod-indicator input {
      font-size: 22px;
      font-weight: 850;
      padding: 6px 8px;
      text-align: center;
    }

    .prod-table {
      width: 100%;
      min-width: 0;
      border-collapse: collapse;
      table-layout: fixed;
      font-size: 11px;
    }

    .prod-table th,
    .prod-table td {
      border-bottom: 1px solid var(--line);
      padding: 6px 5px;
      text-align: left;
      vertical-align: middle;
    }

    .prod-table th {
      color: var(--muted);
      font-size: 10px;
      text-transform: uppercase;
      background: var(--surface-2);
    }

    .prod-table input {
      min-width: 0;
      width: 100%;
      min-height: 28px;
      padding: 5px 6px;
      border-radius: 5px;
      font-size: 11px;
      text-align: right;
    }

    .prod-readonly-value {
      min-height: 28px;
      display: grid;
      align-items: center;
      padding: 5px 6px;
      color: var(--ink);
      font-size: 11px;
      font-weight: 800;
      text-align: right;
    }

    .prod-item-name {
      display: grid;
      gap: 2px;
      line-height: 1.18;
    }

    .prod-item-name strong {
      font-size: 11px;
    }

    .prod-item-name span {
      font-size: 10px;
    }

    .prod-progress {
      display: grid;
      gap: 3px;
      min-width: 0;
    }

    .prod-progress-track {
      height: 7px;
      border-radius: 999px;
      background: var(--line);
      overflow: hidden;
    }

    .prod-progress-fill {
      height: 100%;
      width: min(100%, var(--value, 0%));
      background: var(--green);
    }

    .prod-progress-fill.warning {
      background: var(--red);
    }

    .prod-activity-grid {
      display: grid;
      grid-template-columns: repeat(2, minmax(0, 1fr));
      gap: 12px;
    }

    .prod-activity-card {
      border: 1px solid var(--line);
      border-radius: var(--radius);
      background: var(--surface-2);
      padding: 12px;
      display: grid;
      gap: 8px;
    }

    .prod-activity-card label {
      color: var(--ink);
      font-size: 13px;
      font-weight: 850;
    }

    .prod-activity-card input[data-activity-title] {
      min-height: 38px;
      padding: 8px 10px;
      background: var(--surface);
      color: var(--ink);
      font-size: 13px;
      font-weight: 850;
    }

    .prod-activity-card textarea {
      min-height: 118px;
      resize: vertical;
      background: var(--surface);
    }

    .prod-activity-wide {
      grid-column: 1 / -1;
    }

    .history-calendar {
      display: grid;
      gap: 10px;
      margin-bottom: 12px;
      padding: 10px;
      border: 1px solid var(--line);
      border-radius: var(--radius);
      background: var(--surface-2);
    }

    .history-filter {
      display: grid;
      gap: 5px;
    }

    .history-filter label {
      color: var(--muted);
      font-size: 11px;
      font-weight: 850;
      text-transform: uppercase;
    }

    .history-filter select {
      min-height: 38px;
      padding: 8px 10px;
      font-size: 13px;
    }

    .history-calendar-head {
      display: grid;
      grid-template-columns: 34px 1fr 34px;
      align-items: center;
      gap: 8px;
    }

    .history-calendar-title {
      text-align: center;
      font-size: 15px;
      font-weight: 850;
      color: var(--ink);
      text-transform: uppercase;
    }

    .history-calendar-weekdays,
    .history-calendar-grid {
      display: grid;
      grid-template-columns: repeat(7, minmax(0, 1fr));
      gap: 5px;
    }

    .history-calendar-weekdays span {
      text-align: center;
      color: var(--muted);
      font-size: 10px;
      font-weight: 850;
      text-transform: uppercase;
    }

    .history-calendar-day,
    .history-calendar-blank {
      aspect-ratio: 1;
      min-height: 34px;
      border-radius: 8px;
    }

    .history-calendar-day {
      border: 1px solid var(--line);
      background: var(--surface);
      color: var(--ink);
      display: grid;
      place-items: center;
      position: relative;
      font-weight: 780;
      font-size: 13px;
      cursor: pointer;
    }

    .history-calendar-day:hover {
      border-color: rgba(47, 111, 95, 0.55);
      box-shadow: 0 0 0 3px rgba(47, 111, 95, 0.1);
    }

    .history-calendar-day.saved::after {
      content: "";
      position: absolute;
      bottom: 5px;
      width: 5px;
      height: 5px;
      border-radius: 999px;
      background: var(--green);
    }

    .history-calendar-day.today {
      border-color: var(--amber);
    }

    .history-calendar-day.selected {
      background: var(--green);
      color: white;
      border-color: var(--green);
    }

    .history-calendar-day.selected::after {
      background: white;
    }

    .result-line {
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 12px;
      color: var(--muted);
      font-size: 13px;
    }

    .result-line strong {
      color: var(--ink);
      font-size: 15px;
    }

    .reference-list {
      display: grid;
      gap: 8px;
    }

    .action-stack {
      display: grid;
      gap: 8px;
    }

	    .action-card {
	      display: grid;
	      gap: 12px;
	      padding: 14px;
	      border: 1px solid var(--line);
	      border-radius: 10px;
	      background: #fff;
	      box-shadow: 0 10px 24px rgba(13, 28, 42, 0.05);
	    }

	    .action-card.collapsed {
	      gap: 0;
	      padding-block: 11px;
	    }

	    .action-card-head {
	      display: grid;
	      grid-template-columns: auto minmax(220px, 1fr) minmax(310px, 0.82fr) auto;
	      gap: 12px;
	      align-items: center;
	    }

	    .action-card-icon {
	      width: 44px;
	      height: 44px;
	      display: grid;
	      place-items: center;
	      border-radius: 50%;
	      background: linear-gradient(135deg, #006b56, #0b8a72);
	      color: #fff;
	      box-shadow: 0 10px 22px rgba(0, 107, 86, 0.2);
	    }

	    .action-card-icon .icon {
	      width: 20px;
	      height: 20px;
	    }

	    .action-title-block {
	      display: grid;
	      gap: 4px;
	      min-width: 0;
	    }

	    .action-title-block h3 {
	      margin: 0;
	      color: var(--ink);
	      font-size: 15px;
	      line-height: 1.2;
	      letter-spacing: 0;
	    }

	    .action-title-block p {
	      margin: 0;
	      color: var(--muted);
	      font-size: 11px;
	      font-weight: 700;
	      line-height: 1.35;
	    }

	    .action-code-pill {
	      width: fit-content;
	      padding: 4px 9px;
	      border-radius: 999px;
	      background: rgba(0, 128, 98, 0.14);
	      color: var(--green-700);
	      font-size: 10px;
	      font-weight: 900;
	      letter-spacing: 0.02em;
	    }

	    .action-meta-grid {
	      display: grid;
	      grid-template-columns: repeat(3, minmax(0, 1fr));
	      border-left: 1px solid var(--line);
	      border-right: 1px solid var(--line);
	    }

	    .action-meta-grid > div {
	      min-height: 44px;
	      display: grid;
	      gap: 3px;
	      align-content: center;
	      padding: 0 12px;
	      border-right: 1px solid var(--line);
	    }

	    .action-meta-grid > div:last-child {
	      border-right: 0;
	    }

	    .action-meta-grid label {
	      color: var(--muted);
	      font-size: 10px;
	      font-weight: 800;
	      letter-spacing: 0.02em;
	    }

	    .action-meta-grid strong {
	      color: var(--ink);
	      font-size: 11px;
	      line-height: 1.25;
	    }

	    .action-card-actions {
	      display: flex;
	      justify-content: flex-end;
	      align-items: center;
	      gap: 8px;
	      flex-wrap: wrap;
	    }

	    .action-card-body {
	      display: grid;
	      gap: 10px;
	    }

	    .action-toggle-button {
	      min-height: 30px;
	      display: inline-flex;
	      align-items: center;
	      justify-content: center;
	      gap: 6px;
	      padding: 0 10px;
	      border: 1px solid var(--line);
	      border-radius: 999px;
	      background: #fff;
	      color: var(--green-700);
	      font-size: 10px;
	      font-weight: 900;
	      letter-spacing: 0.02em;
	      cursor: pointer;
	      transition: background 0.18s ease, border-color 0.18s ease, color 0.18s ease;
	    }

	    .action-toggle-button:hover {
	      border-color: rgba(0, 128, 98, 0.28);
	      background: rgba(0, 128, 98, 0.08);
	    }

	    .action-toggle-button .icon {
	      width: 15px;
	      height: 15px;
	    }

	    .action-history-box {
	      border: 1px solid var(--line);
	      border-radius: 9px;
	      background: #fbfdfd;
	      overflow: hidden;
	    }

	    .action-history-title {
	      padding: 10px 12px 2px;
	      color: var(--ink);
	      font-size: 12px;
	      font-weight: 900;
	    }

	    .action-history-list {
	      display: grid;
	      padding: 4px 12px 10px;
	    }

	    .action-history-item {
	      position: relative;
	      display: grid;
	      grid-template-columns: 16px 132px minmax(0, 1fr) minmax(150px, auto);
	      gap: 9px;
	      align-items: center;
	      min-height: 44px;
	      padding: 6px 0;
	      border-bottom: 1px solid rgba(211, 222, 226, 0.72);
	    }

	    .action-history-item:last-child {
	      border-bottom: 0;
	    }

	    .action-history-item::before {
	      content: "";
	      position: absolute;
	      left: 6px;
	      top: 0;
	      bottom: 0;
	      width: 2px;
	      background: #dbe6e8;
	    }

	    .action-history-item:first-child::before {
	      top: 50%;
	    }

	    .action-history-item:last-child::before {
	      bottom: 50%;
	    }

	    .action-history-dot {
	      position: relative;
	      z-index: 1;
	      width: 10px;
	      height: 10px;
	      border-radius: 50%;
	      background: #8797a1;
	      border: 2px solid #fff;
	      box-shadow: 0 0 0 1px #d5e0e4;
	    }

	    .action-history-item.latest .action-history-dot {
	      background: var(--green-700);
	      box-shadow: 0 0 0 2px rgba(0, 128, 98, 0.16);
	    }

	    .action-history-item time {
	      color: var(--muted);
	      font-size: 11px;
	      font-weight: 800;
	    }

	    .action-history-copy {
	      display: grid;
	      gap: 3px;
	      min-width: 0;
	    }

	    .action-history-copy strong {
	      color: var(--ink);
	      font-size: 12px;
	      line-height: 1.25;
	    }

	    .action-history-copy p {
	      margin: 0;
	      color: var(--muted);
	      font-size: 11px;
	      font-weight: 700;
	      line-height: 1.4;
	      white-space: pre-wrap;
	    }

	    .action-history-attachment {
	      display: flex;
	      justify-content: flex-end;
	    }

	    .action-attachment-list {
	      display: grid;
	      gap: 4px;
	      justify-items: end;
	      min-width: 0;
	    }

	    .action-stack .primary-button,
	    .action-stack .secondary-button,
	    .action-stack .danger-button {
	      width: 100%;
	    }

	    .action-response-box {
	      grid-column: 1 / -1;
	      border: 1px solid var(--line);
	      border-radius: 9px;
	      background: #f8fbfb;
	      padding: 10px;
	      display: grid;
	      gap: 8px;
	    }

	    .action-response-box strong {
	      font-size: 13px;
	      color: var(--ink);
	    }

	    .action-response-form {
	      display: grid;
	      grid-template-columns: minmax(240px, 1fr) minmax(220px, 0.55fr) minmax(150px, auto);
	      gap: 8px;
	      align-items: end;
	    }

	    .action-review-form {
	      grid-template-columns: minmax(240px, 1fr) minmax(220px, 0.55fr) minmax(120px, auto) minmax(120px, auto);
	    }

	    .action-response-form textarea {
	      min-height: 54px;
	      resize: vertical;
	    }

	    .action-response-note {
	      color: var(--muted);
	      font-size: 12px;
	      font-weight: 700;
	    }

	    .action-dropzone {
	      position: relative;
	      min-height: 54px;
	      display: grid;
	      align-content: center;
	      gap: 3px;
	      padding: 9px 10px;
	      border: 1px dashed #b9cbd0;
	      border-radius: 8px;
	      background: #fff;
	      color: var(--muted);
	      cursor: pointer;
	      transition: border-color 0.16s ease, background 0.16s ease, color 0.16s ease;
	    }

	    .action-dropzone:hover,
	    .action-dropzone.dragging,
	    .action-dropzone.has-files {
	      border-color: rgba(0, 128, 98, 0.45);
	      background: rgba(0, 128, 98, 0.06);
	      color: var(--green-700);
	    }

	    .action-dropzone input[type="file"] {
	      position: absolute;
	      inset: 0;
	      width: 100%;
	      height: 100%;
	      opacity: 0;
	      cursor: pointer;
	    }

	    .action-dropzone-title {
	      color: inherit;
	      font-size: 11px;
	      font-weight: 850;
	      line-height: 1.2;
	    }

	    .action-dropzone-count {
	      min-width: 0;
	      overflow: hidden;
	      color: var(--muted);
	      font-size: 10px;
	      font-weight: 720;
	      line-height: 1.25;
	      text-overflow: ellipsis;
	      white-space: nowrap;
	    }

	    .action-response-attachment {
	      display: inline-flex;
	      align-items: center;
	      gap: 6px;
	      color: var(--green-700);
	      font-size: 11px;
	      font-weight: 800;
	      text-decoration: none;
	    }

	    .action-response-attachment .icon {
	      width: 14px;
	      height: 14px;
	    }

	    @media (max-width: 900px) {
	      .action-card {
	        padding: 14px;
	      }

	      .action-card-head {
	        grid-template-columns: auto minmax(0, 1fr);
	      }

	      .action-meta-grid {
	        grid-column: 1 / -1;
	        grid-template-columns: 1fr;
	        border: 1px solid var(--line);
	        border-radius: 10px;
	      }

	      .action-meta-grid > div {
	        border-right: 0;
	        border-bottom: 1px solid var(--line);
	        padding: 10px 12px;
	      }

	      .action-meta-grid > div:last-child {
	        border-bottom: 0;
	      }

	      .action-card-actions {
	        grid-column: 1 / -1;
	        justify-content: flex-start;
	      }

	      .action-history-item {
	        grid-template-columns: 18px 1fr;
	        align-items: start;
	      }

	      .action-history-item time,
	      .action-history-copy,
	      .action-history-attachment {
	        grid-column: 2;
	      }

	      .action-history-attachment {
	        justify-content: flex-start;
	      }

	      .action-attachment-list {
	        justify-items: start;
	      }

	      .action-response-form {
	        grid-template-columns: 1fr;
	      }
	    }

	    .photo-toolbar {
      display: flex;
      justify-content: space-between;
      align-items: center;
      gap: 10px;
      flex-wrap: wrap;
      margin-bottom: 12px;
    }

    .photo-count {
      color: var(--muted);
      font-size: 13px;
      font-weight: 700;
    }

    .file-input {
      position: absolute;
      inline-size: 1px;
      block-size: 1px;
      opacity: 0;
      pointer-events: none;
    }

    .photo-grid {
      display: grid;
      grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
      gap: 12px;
    }

    .photo-card {
      border: 1px solid var(--line);
      border-radius: var(--radius);
      background: var(--surface-2);
      overflow: hidden;
      display: grid;
      min-width: 0;
    }

    .photo-frame {
      overflow: hidden;
      background: #dfe7e4;
    }

    .photo-card img {
      width: 100%;
      aspect-ratio: 4 / 3;
      object-fit: cover;
      display: block;
      background: #dfe7e4;
    }

    .photo-meta {
      padding: 11px;
      display: grid;
      gap: 9px;
    }

    .photo-meta textarea {
      min-height: 68px;
    }

    .photo-crop-controls {
      display: grid;
      grid-template-columns: repeat(3, minmax(0, 1fr));
      gap: 8px;
    }

    .photo-crop-controls .field {
      gap: 4px;
    }

    .photo-crop-controls input[type="range"] {
      width: 100%;
      min-height: auto;
      padding: 0;
      accent-color: var(--green);
    }

    .work-photo-editor {
      border: 1px solid var(--line);
      border-radius: var(--radius);
      background: #fff;
      padding: 9px;
      display: grid;
      gap: 10px;
      min-width: 0;
    }

    .work-photo-preview {
      position: relative;
      overflow: hidden;
      min-height: 180px;
      aspect-ratio: 16 / 9;
      border: 1px solid var(--line);
      border-radius: var(--radius);
      background: #dfe7e4;
    }

    .work-photo-preview img {
      width: 100%;
      height: 100%;
      object-fit: cover;
      display: block;
    }

    .work-photo-placeholder {
      display: grid;
      place-items: center;
      height: 100%;
      min-height: 180px;
      padding: 54px 12px 12px;
      color: var(--muted);
      font-size: 12px;
      font-weight: 760;
      text-transform: uppercase;
      letter-spacing: 0.04em;
      text-align: center;
    }

    .work-photo-upload {
      position: absolute;
      top: 10px;
      left: 10px;
      z-index: 2;
      min-height: 34px;
      border: 1px solid rgba(255, 255, 255, 0.75);
      background: rgba(255, 255, 255, 0.92);
      color: var(--ink);
      box-shadow: 0 8px 24px rgba(31, 42, 68, 0.14);
      cursor: pointer;
    }

    .work-photo-delete {
      position: absolute;
      top: 10px;
      right: 10px;
      z-index: 2;
      border: 1px solid rgba(255, 255, 255, 0.75);
      box-shadow: 0 8px 24px rgba(31, 42, 68, 0.14);
    }

    .work-photo-controls {
      display: grid;
      gap: 8px;
    }

    .photo-actions {
      display: flex;
      justify-content: flex-end;
    }

    .history-list {
      display: grid;
      gap: 8px;
    }

    .history-item {
      border: 1px solid var(--line);
      border-radius: var(--radius);
      background: var(--surface-2);
      padding: 10px;
      display: grid;
      grid-template-columns: 1fr auto;
      gap: 8px;
      align-items: center;
    }

    .history-open {
      min-width: 0;
      padding: 0;
      border: 0;
      background: transparent;
      color: inherit;
      text-align: left;
      display: grid;
      gap: 3px;
    }

    .history-date {
      font-weight: 780;
      font-size: 14px;
    }

    .history-meta {
      color: var(--muted);
      font-size: 12px;
      line-height: 1.3;
    }

    .rdo-photo-panel {
      margin-top: 12px;
      border: 1px solid var(--line);
      border-radius: var(--radius);
      background: var(--surface-2);
      padding: 10px;
      display: grid;
      gap: 10px;
    }

    .rdo-photo-head {
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 10px;
      flex-wrap: wrap;
    }

    .rdo-photo-head > div {
      display: grid;
      gap: 2px;
    }

    .rdo-photo-head strong {
      color: var(--ink);
      font-size: 13px;
      font-weight: 850;
    }

    .rdo-photo-head span {
      color: var(--muted);
      font-size: 11px;
      font-weight: 700;
    }

    .rdo-photo-grid {
      display: grid;
      grid-template-columns: repeat(2, minmax(0, 1fr));
      gap: 10px;
    }

    .rdo-photo-card {
      position: relative;
      min-width: 0;
      overflow: hidden;
      border: 1px solid var(--line);
      border-radius: 10px;
      background: #dfe7e4;
    }

    .rdo-photo-card img {
      width: 100%;
      aspect-ratio: 4 / 3;
      object-fit: cover;
      display: block;
      background: #dfe7e4;
    }

    .rdo-photo-card .trash-button {
      position: absolute;
      top: 8px;
      right: 8px;
      background: rgba(255, 255, 255, 0.94);
      box-shadow: 0 8px 18px rgba(31, 42, 68, 0.14);
    }

    @media (max-width: 560px) {
      .rdo-photo-grid {
        grid-template-columns: 1fr;
      }
    }

    .reference-item {
      border: 1px solid var(--line);
      border-radius: var(--radius);
      padding: 11px;
      background: var(--surface-2);
      display: grid;
      gap: 8px;
    }

    .reference-item header {
      display: flex;
      justify-content: space-between;
      gap: 10px;
      align-items: start;
    }

    .reference-item h3 {
      margin: 0;
      font-size: 14px;
      line-height: 1.25;
    }

    .reference-item p {
      margin: 0;
      color: var(--muted);
      font-size: 12px;
      line-height: 1.35;
    }

    .commodity-toolbar {
      display: grid;
      grid-template-columns: minmax(220px, 0.9fr) minmax(160px, 0.55fr) minmax(0, 1.05fr);
      gap: 12px;
      align-items: end;
      margin-bottom: 14px;
    }

    .module-filter-row {
      display: grid;
      grid-template-columns: minmax(260px, 420px);
      gap: 12px;
      align-items: end;
      margin: 14px 0;
      padding: 14px;
      border: 1px solid var(--line);
      border-radius: var(--radius);
      background: var(--surface);
      box-shadow: 0 12px 26px rgba(13, 34, 40, 0.05);
    }

    .module-filter-row .field {
      min-width: 0;
    }

    .module-filter-row select {
      width: 100%;
    }

    .year-commodity-toolbar {
      grid-template-columns: minmax(280px, 1fr) minmax(170px, 220px);
    }

    .year-filter {
      min-width: 170px;
    }

    .year-filter-control {
      display: grid;
      grid-template-columns: minmax(130px, 1fr);
      gap: 6px;
      align-items: center;
      width: 100%;
    }

    .year-filter-control .secondary-button.icon-only {
      min-height: 38px;
      width: 36px;
      padding: 0;
    }

    .year-filter-control select {
      width: 100%;
      min-width: 130px;
      text-align: center;
      font-weight: 780;
    }

    @media (max-width: 820px) {
      .year-commodity-toolbar {
        grid-template-columns: 1fr;
      }

      .module-filter-row {
        grid-template-columns: 1fr;
      }

      .year-filter,
      .year-filter-control,
      .year-filter-control select {
        min-width: 0;
        width: 100%;
      }
    }

    .commodity-tools {
      display: flex;
      flex-wrap: wrap;
      gap: 8px;
      align-items: center;
      margin-bottom: 14px;
    }

    .data-tools {
      display: flex;
      flex-wrap: wrap;
      gap: 8px;
      align-items: center;
      justify-content: flex-end;
      margin: 0 0 14px;
    }

    .data-tools.compact {
      justify-content: flex-start;
      margin: 0;
    }

    .data-tools .secondary-button,
    .data-tools .primary-button {
      min-height: 36px;
      padding-inline: 12px;
      white-space: nowrap;
    }

    .data-tools .badge {
      min-height: 32px;
      display: inline-flex;
      align-items: center;
    }

    .commodity-tools .badge {
      min-height: 34px;
      display: inline-flex;
      align-items: center;
    }

    .commodity-custom-form {
      display: grid;
      grid-template-columns: minmax(180px, 1fr) minmax(86px, 0.28fr) auto;
      gap: 8px;
      align-items: end;
      margin-bottom: 2px;
      padding: 10px;
      border: 1px solid var(--line);
      border-radius: 8px;
      background: var(--surface-2);
    }

    .commodity-custom-form[hidden] {
      display: none !important;
    }

    .commodity-custom-form .secondary-button {
      min-height: 34px;
      white-space: nowrap;
    }

    .custom-commodity-list {
      display: flex;
      flex-wrap: wrap;
      gap: 8px;
      margin-bottom: 14px;
    }

    .custom-commodity-item {
      display: inline-flex;
      align-items: center;
      gap: 8px;
      border: 1px solid var(--line);
      border-radius: 8px;
      background: var(--surface-2);
      padding: 7px 8px;
      max-width: 100%;
    }

    .custom-commodity-item strong {
      display: block;
      font-size: 12px;
      line-height: 1.2;
      color: var(--ink);
    }

    .custom-commodity-item span {
      display: block;
      color: var(--muted);
      font-size: 10px;
      font-weight: 800;
      text-transform: uppercase;
    }

    .compact-empty {
      padding: 12px;
      margin-bottom: 14px;
      font-size: 12px;
    }

    .commodity-work-summary {
      display: grid;
      grid-template-columns: repeat(4, minmax(0, 1fr));
      gap: 10px;
      margin-bottom: 14px;
    }

    .commodity-summary-card {
      border: 1px solid var(--line);
      border-radius: var(--radius);
      background: var(--surface-2);
      padding: 10px;
      display: grid;
      gap: 4px;
      min-width: 0;
    }

    .commodity-summary-card span {
      color: var(--muted);
      font-size: 11px;
      font-weight: 850;
      text-transform: uppercase;
    }

    .commodity-summary-card strong {
      color: var(--ink);
      font-size: 14px;
      line-height: 1.25;
      word-break: break-word;
    }

    .commodity-layout {
      display: grid;
      grid-template-columns: minmax(260px, 0.75fr) minmax(0, 1.25fr);
      gap: 14px;
      align-items: start;
    }

    .commodity-calendar {
      display: grid;
      gap: 10px;
      padding: 10px;
      border: 1px solid var(--line);
      border-radius: var(--radius);
      background: var(--surface-2);
    }

    .commodity-calendar-head {
      display: grid;
      grid-template-columns: 34px 1fr 34px;
      align-items: center;
      gap: 8px;
    }

    .commodity-calendar-title {
      text-align: center;
      color: var(--ink);
      font-size: 15px;
      font-weight: 850;
      text-transform: uppercase;
    }

    .commodity-calendar-weekdays,
    .commodity-calendar-grid {
      display: grid;
      grid-template-columns: repeat(7, minmax(0, 1fr));
      gap: 5px;
    }

    .commodity-calendar-weekdays span {
      text-align: center;
      color: var(--muted);
      font-size: 10px;
      font-weight: 850;
      text-transform: uppercase;
    }

    .commodity-day,
    .commodity-day-blank {
      aspect-ratio: 1;
      min-height: 34px;
      border-radius: 8px;
    }

    .commodity-day {
      border: 1px solid var(--line);
      background: var(--surface);
      color: var(--ink);
      display: grid;
      place-items: center;
      position: relative;
      font-weight: 780;
      font-size: 13px;
      cursor: pointer;
    }

    .commodity-day:hover {
      border-color: rgba(47, 111, 95, 0.55);
      box-shadow: 0 0 0 3px rgba(47, 111, 95, 0.1);
    }

    .commodity-day.saved::after {
      content: "";
      position: absolute;
      bottom: 5px;
      width: 5px;
      height: 5px;
      border-radius: 999px;
      background: var(--green);
    }

    .commodity-day.selected {
      background: var(--green);
      color: white;
      border-color: var(--green);
    }

    .commodity-day.selected::after {
      background: white;
    }

    .commodity-target-panel {
      display: grid;
      gap: 12px;
    }

    .commodity-target-head {
      display: flex;
      justify-content: space-between;
      align-items: center;
      gap: 10px;
      flex-wrap: wrap;
    }

    .commodity-target-head strong {
      font-size: 16px;
      color: var(--ink);
    }

    .commodity-target-head span {
      color: var(--muted);
      font-size: 12px;
      font-weight: 720;
    }

    .commodity-target-table input {
      min-height: 36px;
      padding: 7px 9px;
      font-size: 13px;
    }

    .commodity-target-table {
      min-width: 0;
      width: 100%;
      table-layout: fixed;
      font-size: 11px;
    }

    .commodity-target-table th,
    .commodity-target-table td {
      padding: 7px 6px;
    }

    .commodity-target-table .prod-item-name strong,
    .commodity-target-table .prod-item-name span {
      white-space: normal;
      overflow-wrap: anywhere;
      line-height: 1.2;
    }

    .commodity-target-table input {
      min-height: 32px;
      padding: 5px 6px;
      font-size: 12px;
    }

    .commodity-target-table td:nth-child(2),
    .commodity-target-table th:nth-child(2),
    .commodity-target-table td:nth-child(3),
    .commodity-target-table th:nth-child(3),
    .commodity-target-table td:nth-child(4),
    .commodity-target-table th:nth-child(4) {
      text-align: center;
    }

    .year-commodity-table {
      min-width: 1180px;
      font-size: 12px;
    }

    .year-commodity-table th,
    .year-commodity-table td {
      padding: 7px 6px;
      vertical-align: middle;
    }

    .year-commodity-table td:not(:first-child),
    .year-commodity-table th:not(:first-child) {
      text-align: center;
    }

    .curve-s-toolbar {
      display: grid;
      grid-template-columns: minmax(240px, 0.35fr) minmax(0, 1fr);
      gap: 12px;
      align-items: end;
      margin-bottom: 14px;
    }

    .curve-s-summary {
      grid-template-columns: repeat(4, minmax(0, 1fr));
      margin-bottom: 14px;
    }

    .curve-s-chart-card {
      display: grid;
      gap: 10px;
      margin-bottom: 14px;
      border: 1px solid var(--line);
      border-radius: var(--radius);
      background: #fff;
      padding: 12px;
      box-shadow: 0 12px 28px rgba(13, 34, 40, 0.06);
    }

    .curve-s-chart-head {
      display: flex;
      justify-content: space-between;
      align-items: center;
      gap: 12px;
      flex-wrap: wrap;
    }

    .curve-s-chart-head strong {
      display: block;
      color: var(--ink);
      font-size: 15px;
      line-height: 1.2;
    }

    .curve-s-chart-head span {
      display: block;
      color: var(--muted);
      font-size: 12px;
      margin-top: 2px;
    }

    .curve-s-chart-scroll {
      overflow-x: auto;
      overflow-y: hidden;
      padding-bottom: 4px;
    }

    .curve-s-chart-scroll svg {
      display: block;
      min-width: 100%;
      max-width: none;
      height: 260px;
    }

    .home-curve-controls,
    .curve-s-chart-head .row-actions {
      display: flex;
      align-items: center;
      gap: 6px;
      flex-wrap: wrap;
    }

    .curve-s-view-toggle {
      display: inline-flex;
      align-items: center;
      gap: 2px;
      padding: 3px;
      border: 1px solid var(--line);
      border-radius: 9px;
      background: var(--surface-2);
    }

    .curve-s-view-toggle button {
      min-height: 24px;
      padding: 0 8px;
      border: 0;
      border-radius: 7px;
      background: transparent;
      color: var(--muted);
      font-size: 10px;
      font-weight: 900;
      letter-spacing: 0;
      cursor: pointer;
    }

    .curve-s-view-toggle button.active {
      background: #fff;
      color: var(--green);
      box-shadow: 0 4px 10px rgba(13, 34, 40, 0.08);
    }

    .curve-s-view-toggle button:disabled {
      cursor: not-allowed;
      opacity: 0.55;
    }

    .home-curve-controls .icon-button,
    .curve-s-chart-head .icon-button {
      width: 30px;
      height: 30px;
      min-width: 30px;
      display: grid;
      place-items: center;
      border: 1px solid var(--line);
      border-radius: 8px;
      background: #fff;
      color: var(--green);
      opacity: 1;
      box-shadow: 0 8px 18px rgba(13, 34, 40, 0.06);
    }

    .home-curve-controls .secondary-button,
    .curve-s-chart-head .secondary-button {
      min-height: 30px;
      padding: 0 10px;
      border-radius: 8px;
      color: var(--green);
      font-size: 11px;
      font-weight: 900;
      background: #fff;
    }

    .home-evolution-card .dashboard-body-legend {
      display: none;
    }

    .curve-s-visual {
      display: grid;
      gap: 8px;
      min-width: 100%;
    }

    .curve-s-legend-rich {
      display: flex;
      align-items: center;
      justify-content: center;
      flex-wrap: wrap;
      gap: 8px;
      color: var(--muted);
      font-size: 11px;
      font-weight: 850;
    }

    .curve-s-legend-item {
      display: inline-flex;
      align-items: center;
      gap: 5px;
      min-height: 24px;
      padding: 3px 8px;
      border: 1px solid var(--line);
      border-radius: 999px;
      background: #fff;
      white-space: nowrap;
    }

    .curve-s-legend-item i {
      width: 18px;
      height: 3px;
      border-radius: 999px;
      background: var(--green);
      display: inline-block;
    }

    .curve-s-legend-item.real i {
      background: #93a3ad;
    }

    .curve-s-legend-item.projected i {
      background: repeating-linear-gradient(90deg, #2f76f6 0 7px, transparent 7px 12px);
      border: 1px solid rgba(47, 118, 246, 0.25);
    }

    .curve-s-legend-item strong {
      color: var(--ink);
      font-size: 11px;
      font-weight: 950;
    }

    .curve-s-legend-item.deviation.good strong {
      color: var(--green);
    }

    .curve-s-legend-item.deviation.bad strong {
      color: #c53b3b;
    }

    .curve-s-legend-item.deviation.muted strong {
      color: var(--muted);
    }

    .curve-s-hit-point {
      pointer-events: all;
      cursor: help;
    }

    .curve-s-tooltip {
      position: fixed;
      z-index: 9999;
      max-width: 260px;
      padding: 10px 12px;
      border-radius: 10px;
      background: #10202b;
      color: #fff;
      font-size: 12px;
      line-height: 1.45;
      font-weight: 760;
      white-space: pre-line;
      box-shadow: 0 18px 38px rgba(16, 32, 43, 0.24);
      opacity: 0;
      transform: translate(-9999px, -9999px);
      pointer-events: none;
      transition: opacity 0.08s ease;
    }

    .curve-s-tooltip.visible {
      opacity: 1;
    }

    .curve-s-fullscreen-modal[hidden] {
      display: none;
    }

    .curve-s-fullscreen-modal {
      position: fixed;
      inset: 0;
      z-index: 9998;
      display: grid;
      place-items: center;
      padding: 28px;
      background: rgba(9, 24, 31, 0.42);
      backdrop-filter: blur(8px);
    }

    .curve-s-fullscreen-panel {
      width: min(1280px, 96vw);
      max-height: min(860px, 92vh);
      display: grid;
      grid-template-rows: auto minmax(0, 1fr);
      gap: 12px;
      padding: 16px;
      border: 1px solid rgba(210, 221, 225, 0.9);
      border-radius: 14px;
      background: #fff;
      box-shadow: 0 28px 80px rgba(9, 24, 31, 0.24);
    }

    .curve-s-fullscreen-head {
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 14px;
    }

    .curve-s-fullscreen-head strong {
      display: block;
      color: var(--ink);
      font-size: 16px;
      font-weight: 950;
      letter-spacing: 0;
    }

    .curve-s-fullscreen-head span {
      display: block;
      margin-top: 2px;
      color: var(--muted);
      font-size: 12px;
      font-weight: 760;
    }

    .curve-s-fullscreen-chart {
      overflow: auto;
      border: 1px solid var(--line);
      border-radius: 12px;
      padding: 12px;
      background: linear-gradient(180deg, #fff, #fbfdfe);
    }

    .curve-s-fullscreen-chart svg {
      display: block;
      min-width: 100%;
      height: 520px;
    }

    body.curve-s-fullscreen-open {
      overflow: hidden;
    }

    .curve-s-table-wrap {
      max-height: 520px;
      overflow: auto;
    }

    .curve-s-table {
      min-width: 1040px;
      table-layout: fixed;
      font-size: 11px;
    }

    .curve-s-table th,
    .curve-s-table td {
      padding: 6px;
      vertical-align: middle;
    }

    .curve-s-table th:nth-child(1),
    .curve-s-table td:nth-child(1) {
      width: 84px;
    }

    .curve-s-table th:nth-child(2),
    .curve-s-table td:nth-child(2) {
      width: 126px;
    }

    .curve-s-table th:nth-child(n+3),
    .curve-s-table td:nth-child(n+3) {
      text-align: center;
    }

    .curve-s-table input {
      min-height: 30px;
      width: 100%;
      padding: 5px 6px;
      border-radius: 6px;
      text-align: right;
      font-size: 11px;
    }

    .curve-s-table input[type="date"] {
      text-align: left;
    }

    .curve-s-calc {
      display: block;
      min-height: 30px;
      padding: 7px 6px;
      border-radius: 6px;
      background: var(--surface-2);
      color: var(--ink);
      font-weight: 850;
      text-align: right;
    }

    .summary-grid {
      display: grid;
      grid-template-columns: repeat(3, minmax(0, 1fr));
      gap: 12px;
    }

    .save-state {
      color: #c5d3d0;
      font-size: 12px;
      text-align: right;
    }

    .empty {
      padding: 24px;
      color: var(--muted);
      text-align: center;
      border: 1px dashed var(--line-strong);
      border-radius: var(--radius);
      background: var(--surface-2);
    }

    @media (max-width: 1120px) {
      .layout {
        grid-template-columns: 1fr;
      }

      .contract-grid {
        grid-template-columns: 1fr;
      }

      .contract-summary-grid {
        grid-template-columns: repeat(4, minmax(0, 1fr));
      }

      .side-stack {
        grid-template-columns: 1fr 1fr;
      }

      .contract-score-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
      }

      .safety-score-entry {
        grid-template-columns: minmax(70px, 0.45fr) minmax(132px, 0.9fr) minmax(178px, 1.15fr) minmax(108px, 0.72fr) minmax(156px, 0.9fr) auto;
        overflow-x: auto;
      }

      .work-map,
      .work-map iframe {
        min-height: 220px;
      }

      .contract-map-layout {
        grid-template-columns: 1fr;
      }

      .contract-map-gallery {
        min-height: 220px;
      }

      .contract-map-photo,
      .contract-map-photo img,
      .contract-map-placeholder {
        min-height: 220px;
      }
    }

    @media (max-width: 820px) {
      .topbar {
        grid-template-columns: auto 1fr;
      }

      .header-actions {
        grid-column: 1 / -1;
        justify-content: stretch;
      }

      .header-actions .text-button,
      .header-actions .icon-button {
        flex: 1 1 0;
      }

      .user-button {
        max-width: none;
      }

      .user-button span {
        max-width: 100%;
      }

      .user-modal .form-grid,
      .user-list-row {
        grid-template-columns: 1fr;
      }

      .user-row-fields,
      .user-work-access-grid {
        grid-template-columns: 1fr;
      }

      .global-page-header {
        grid-template-columns: 1fr;
        gap: 10px;
      }

      .global-page-actions {
        justify-content: flex-start;
      }

      .global-page-title h2 {
        font-size: 19px;
      }

      .mobile-productivity-shell {
        padding: 14px;
        border-radius: 18px;
      }

      .mobile-productivity-head,
      .app-kpi-grid,
      .production-mini-grid {
        grid-template-columns: 1fr;
      }

      .management-panel[data-management-panel="produtividade"] .mobile-productivity-head {
        grid-template-columns: 1fr;
      }

      .user-modal .span-2 {
        grid-column: auto;
      }

      .status-strip,
      .form-grid,
      .summary-grid,
      .side-stack,
      .page-grid,
      .inline-form,
      .commodity-toolbar,
      .commodity-work-summary,
      .commodity-layout,
      .prod-hero-grid,
      .prod-indicator-grid,
      .prod-activity-grid {
        grid-template-columns: 1fr;
      }

      .app-tabs {
        padding: 0 12px 12px;
      }

      .safety-layout,
      .portfolio-detail-grid,
      .work-row,
      .catalog-tools,
      .catalog-row,
      .safety-check-row,
      .direct-item-line,
      .task-edit-row,
      .timeline-item {
        grid-template-columns: 1fr;
      }

      .safety-score-entry {
        grid-template-columns: minmax(70px, 0.45fr) minmax(132px, 0.9fr) minmax(178px, 1.15fr) minmax(108px, 0.72fr) minmax(156px, 0.9fr) auto;
        overflow-x: auto;
      }

      .safety-timeline-control {
        grid-column: 1 / -1;
      }

      .safety-score-entry .primary-button.icon-only,
      .safety-score-entry .secondary-button.icon-only {
        justify-self: start;
        width: 36px;
      }

      .direct-order-summary {
        grid-template-columns: 1fr;
        align-items: start;
      }

      .direct-order-total {
        justify-self: start;
      }

      .safety-score-row {
        grid-template-columns: minmax(44px, 0.55fr) minmax(58px, 0.8fr) auto;
      }

      .chart-row {
        grid-template-columns: 86px 1fr 38px;
      }

      .contract-score-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
      }

      .contract-summary-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
      }

      .contract-summary-grid .contract-object {
        grid-column: 1 / -1;
      }

      .contract-score-card {
        aspect-ratio: auto;
        min-height: 156px;
      }

      .work-map,
      .work-map iframe {
        min-height: 260px;
      }

      .contract-map-gallery {
        grid-template-columns: 1fr;
        min-height: 240px;
      }

      .contract-map-photo,
      .contract-map-photo img,
      .contract-map-placeholder {
        min-height: 240px;
      }

      .catalog-unit {
        text-align: left;
      }

      .field.span-2,
      .field.span-3,
      .field.span-4 {
        grid-column: auto;
      }

      .shell {
        padding: 14px 12px 28px;
      }

      .topbar {
        padding: 16px 12px;
      }
    }

    /* Modern UI refresh */
    :root {
      --bg: #f4f7f8;
      --surface: #ffffff;
      --surface-2: #f8fafb;
      --surface-3: #eef4f4;
      --line: #d9e1e4;
      --line-strong: #a8b8bd;
      --ink: #172126;
      --muted: #60707a;
      --green: #08735f;
      --green-soft: #e5f4ef;
      --blue: #2767a3;
      --blue-soft: #e7f0f8;
      --amber: #b86b10;
      --amber-soft: #fbefd9;
      --red: #b23b35;
      --red-soft: #f8e6e3;
      --shadow: 0 16px 42px rgba(18, 34, 40, 0.09);
      --shadow-soft: 0 8px 22px rgba(18, 34, 40, 0.06);
      --radius: 8px;
    }

    html {
      scroll-behavior: smooth;
    }

    body {
      background:
        linear-gradient(180deg, #edf3f4 0, #f7f9fa 360px, #f4f7f8 100%),
        var(--bg);
      color: var(--ink);
      -webkit-font-smoothing: antialiased;
      text-rendering: geometricPrecision;
    }

    .login-screen {
      background:
        linear-gradient(135deg, rgba(8, 115, 95, 0.92), rgba(23, 33, 38, 0.98)),
        #172126;
    }

    .login-panel {
      position: relative;
      overflow: hidden;
      padding: 28px;
      border: 1px solid rgba(255, 255, 255, 0.72);
      border-radius: var(--radius);
      box-shadow: 0 32px 90px rgba(0, 0, 0, 0.28);
    }

    .login-panel::before {
      content: "";
      position: absolute;
      inset: 0 0 auto;
      height: 5px;
      background: linear-gradient(90deg, var(--green), var(--blue), var(--amber));
    }

    .login-panel h1 {
      font-size: 24px;
      letter-spacing: 0;
    }

    .app-header {
      position: sticky;
      top: 0;
      z-index: 45;
      color: var(--ink);
      background: rgba(255, 255, 255, 0.9);
      border-bottom: 1px solid rgba(217, 225, 228, 0.9);
      box-shadow: 0 12px 36px rgba(18, 34, 40, 0.08);
      backdrop-filter: blur(16px);
    }

    .topbar {
      max-width: 1520px;
      grid-template-columns: auto minmax(220px, 1fr) auto auto;
      gap: 12px;
      padding: 14px 24px 8px;
    }

    .brand-mark {
      width: 42px;
      height: 42px;
      background: var(--green);
      color: #fff;
      border: 1px solid rgba(255, 255, 255, 0.7);
      box-shadow: 0 10px 24px rgba(8, 115, 95, 0.23);
    }

    .brand h1 {
      font-size: 20px;
      font-weight: 850;
      letter-spacing: 0;
    }

    .brand p {
      color: var(--muted);
      font-size: 12px;
      font-weight: 680;
    }

    .header-actions {
      gap: 6px;
    }

    .icon-button,
    .text-button {
      color: var(--ink);
      background: var(--surface-2);
      border: 1px solid var(--line);
      box-shadow: var(--shadow-soft);
    }

    .icon-button:hover,
    .text-button:hover {
      background: #fff;
      border-color: rgba(8, 115, 95, 0.32);
      box-shadow: 0 12px 24px rgba(8, 115, 95, 0.12);
    }

    .notification-count {
      border-color: #fff;
      box-shadow: 0 0 0 1px rgba(178, 59, 53, 0.22);
    }

    .save-state {
      min-height: 32px;
      display: inline-flex;
      align-items: center;
      justify-content: center;
      padding: 0 10px;
      color: var(--green);
      background: var(--green-soft);
      border: 1px solid rgba(8, 115, 95, 0.16);
      border-radius: 999px;
      font-size: 11px;
      font-weight: 800;
      white-space: nowrap;
      text-align: center;
    }

    .save-state.good {
      color: var(--green);
      background: var(--green-soft);
      border-color: rgba(8, 115, 95, 0.18);
    }

    .save-state.warn {
      color: #9a5b11;
      background: var(--amber-soft);
      border-color: rgba(167, 104, 22, 0.22);
    }

    .save-state.loading {
      color: #1f5f9f;
      background: #eaf4ff;
      border-color: rgba(31, 95, 159, 0.22);
    }

    .sync-status {
      position: fixed;
      right: 22px;
      bottom: 22px;
      z-index: 9999;
      min-height: 42px;
      display: inline-flex;
      align-items: center;
      gap: 10px;
      max-width: min(420px, calc(100vw - 32px));
      padding: 0 15px;
      color: var(--ink);
      background: rgba(255, 255, 255, 0.96);
      border: 1px solid rgba(134, 156, 166, 0.26);
      border-radius: 999px;
      box-shadow: 0 18px 46px rgba(10, 35, 45, 0.16);
      font-size: 12px;
      font-weight: 850;
      letter-spacing: 0;
      opacity: 0;
      pointer-events: none;
      transform: translateY(10px);
      transition: opacity 0.2s ease, transform 0.2s ease;
    }

    .sync-status[hidden] {
      display: none;
    }

    .sync-status.show {
      opacity: 1;
      transform: translateY(0);
    }

    .sync-status-dot {
      width: 9px;
      height: 9px;
      flex: 0 0 auto;
      border-radius: 999px;
      background: var(--green);
    }

    .sync-status.loading .sync-status-dot {
      width: 15px;
      height: 15px;
      background: transparent;
      border: 2px solid rgba(8, 115, 95, 0.18);
      border-top-color: var(--green);
      animation: sync-status-spin 0.8s linear infinite;
    }

    .sync-status.good {
      color: var(--green);
      border-color: rgba(8, 115, 95, 0.2);
    }

    .sync-status.good .sync-status-dot {
      background: var(--green);
    }

    .sync-status.warn {
      color: #9a5b11;
      border-color: rgba(167, 104, 22, 0.26);
      background: rgba(255, 250, 242, 0.98);
    }

    .sync-status.warn .sync-status-dot {
      background: var(--amber);
    }

    @keyframes sync-status-spin {
      to {
        transform: rotate(360deg);
      }
    }

    @media (max-width: 720px) {
      .sync-status {
        right: 12px;
        bottom: 86px;
        left: 12px;
        justify-content: center;
        max-width: none;
        min-height: 40px;
        padding: 0 12px;
        font-size: 11px;
      }
    }

    .app-tabs {
      max-width: 1520px;
      padding: 0 24px 12px;
      gap: 6px;
      align-items: center;
    }

    .main-tab {
      min-height: 36px;
      padding: 0 13px;
      color: #405158;
      background: transparent;
      border: 1px solid transparent;
      border-radius: 999px;
      font-size: 12px;
      font-weight: 850;
      letter-spacing: 0;
      transition: background 160ms ease, color 160ms ease, box-shadow 160ms ease, border-color 160ms ease, transform 160ms ease;
    }

    .main-tab:hover {
      color: var(--green);
      background: var(--green-soft);
      transform: translateY(-1px);
    }

    .main-tab.active {
      color: #fff;
      background: var(--green);
      border-color: var(--green);
      box-shadow: 0 10px 22px rgba(8, 115, 95, 0.24);
    }

    .tab-dropdown {
      top: calc(100% + 4px);
      min-width: 230px;
      padding: 8px;
      border-color: rgba(217, 225, 228, 0.95);
      background: rgba(255, 255, 255, 0.98);
      box-shadow: 0 22px 48px rgba(18, 34, 40, 0.16);
      backdrop-filter: blur(12px);
    }

    .tab-menu {
      padding-bottom: 8px;
      margin-bottom: -8px;
    }

    .tab-menu:hover .main-tab,
    .tab-menu:focus-within .main-tab {
      color: var(--green);
      background: var(--green-soft);
    }

    .tab-menu:hover .main-tab.active,
    .tab-menu:focus-within .main-tab.active {
      color: #fff;
      background: var(--green);
    }

    .sub-tab-button {
      min-height: 34px;
      border-radius: 7px;
      color: #405158;
      font-size: 11px;
      letter-spacing: 0;
    }

    .sub-tab-button:hover,
    .sub-tab-button.active {
      background: var(--green-soft);
      color: var(--green);
    }

    .shell {
      max-width: 1520px;
      padding: 22px 24px 42px;
    }

    .status-strip {
      grid-template-columns: repeat(auto-fit, minmax(176px, 1fr));
      gap: 12px;
      margin-bottom: 16px;
    }

    .status-strip .metric {
      min-height: 96px;
    }

    .metric {
      position: relative;
      overflow: hidden;
      min-width: 0;
      border: 1px solid rgba(217, 225, 228, 0.92);
      border-left: 0;
      border-radius: var(--radius);
      background: var(--surface);
      box-shadow: var(--shadow-soft);
      transition: transform 160ms ease, box-shadow 160ms ease, border-color 160ms ease;
    }

    .metric::before {
      content: "";
      position: absolute;
      inset: 0 0 auto;
      height: 4px;
      background: var(--blue);
    }

    .metric:nth-child(2)::before,
    .metric:nth-child(5)::before {
      background: var(--green);
    }

    .metric:nth-child(3)::before {
      background: var(--amber);
    }

    .metric:nth-child(4)::before {
      background: var(--red);
    }

    .metric:hover {
      transform: translateY(-2px);
      border-color: rgba(8, 115, 95, 0.24);
      box-shadow: var(--shadow);
    }

    .metric-label,
    label {
      color: #60717a;
      font-size: 11px;
      font-weight: 850;
      letter-spacing: 0.02em;
    }

    .metric-value {
      margin-top: 9px;
      font-size: clamp(20px, 2.2vw, 28px);
      font-weight: 880;
      letter-spacing: 0;
      overflow-wrap: anywhere;
    }

    .metric-note {
      color: #6d7d86;
      font-weight: 680;
      overflow-wrap: anywhere;
    }

    .band {
      overflow: hidden;
      border: 1px solid rgba(217, 225, 228, 0.94);
      background: rgba(255, 255, 255, 0.96);
      box-shadow: var(--shadow-soft);
    }

    .band-header {
      min-height: 58px;
      padding: 14px 16px;
      background: linear-gradient(180deg, #fff, #fbfcfd);
    }

    .band-title .icon {
      width: 19px;
      height: 19px;
    }

    .band-title h2 {
      font-size: 15px;
      font-weight: 880;
      letter-spacing: 0;
    }

    .band-body {
      padding: 16px;
    }

    .management-switch {
      position: sticky;
      top: 110px;
      z-index: 8;
      padding: 8px;
      margin-bottom: 14px;
      border: 1px solid rgba(217, 225, 228, 0.94);
      border-radius: var(--radius);
      background: rgba(255, 255, 255, 0.9);
      box-shadow: var(--shadow-soft);
      backdrop-filter: blur(12px);
    }

    .management-switch .sub-tab-button {
      min-height: 36px;
      border: 1px solid transparent;
      background: transparent;
      padding: 0 12px;
      font-size: 11px;
    }

    .management-switch .sub-tab-button.active {
      background: var(--green);
      color: #fff;
      box-shadow: 0 8px 18px rgba(8, 115, 95, 0.2);
    }

    .inline-form {
      gap: 12px;
      padding: 14px;
      background: #f9fbfb;
      border-color: rgba(217, 225, 228, 0.94);
      box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.82);
    }

    input,
    select,
    textarea {
      border-color: #d9e1e4;
      background: #fff;
      color: var(--ink);
      font-size: 14px;
    }

    input,
    select {
      min-height: 40px;
    }

    textarea {
      line-height: 1.42;
    }

    input:hover,
    select:hover,
    textarea:hover {
      border-color: #bdccd1;
    }

    input:focus,
    select:focus,
    textarea:focus {
      border-color: var(--green);
      box-shadow: 0 0 0 3px rgba(8, 115, 95, 0.13);
    }

    input:disabled,
    select:disabled,
    textarea:disabled {
      color: #667780;
      background: #eef3f4;
    }

    .primary-button,
    .secondary-button,
    .danger-button,
    .trash-button {
      transition: transform 160ms ease, box-shadow 160ms ease, background 160ms ease, border-color 160ms ease;
    }

    .primary-button {
      background: var(--green);
      box-shadow: 0 9px 20px rgba(8, 115, 95, 0.18);
    }

    .primary-button:hover {
      background: #075f50;
      transform: translateY(-1px);
      box-shadow: 0 14px 28px rgba(8, 115, 95, 0.23);
    }

    .secondary-button {
      border: 1px solid rgba(39, 103, 163, 0.18);
      background: var(--blue-soft);
      color: #1d527f;
    }

    .secondary-button:hover {
      background: #dcecf8;
      transform: translateY(-1px);
      box-shadow: 0 10px 20px rgba(39, 103, 163, 0.12);
    }

    .danger-button:hover,
    .trash-button:hover {
      transform: translateY(-1px);
      box-shadow: 0 10px 20px rgba(178, 59, 53, 0.12);
    }

    .table-wrap {
      border-color: rgba(217, 225, 228, 0.94);
      background: #fff;
      box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.82);
    }

    table {
      background: #fff;
    }

    th {
      background: #f3f7f8;
      color: #546870;
      font-size: 11px;
      letter-spacing: 0.02em;
    }

    td {
      border-bottom-color: #edf1f2;
    }

    tbody tr {
      transition: background 140ms ease;
    }

    tbody tr:hover td {
      background: #fbfdfd;
    }

    .takeoff-table th,
    .takeoff-table td {
      font-size: 11px;
    }

    .badge {
      min-height: 28px;
      border: 1px solid transparent;
      font-weight: 850;
      letter-spacing: 0;
    }

    .badge.good {
      border-color: rgba(8, 115, 95, 0.15);
    }

    .badge.info {
      border-color: rgba(39, 103, 163, 0.15);
    }

    .badge.watch {
      border-color: rgba(184, 107, 16, 0.18);
    }

    .badge.bad {
      border-color: rgba(178, 59, 53, 0.18);
    }

    .portfolio-grid {
      grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
      gap: 14px;
    }

    .portfolio-card,
    .home-work-card,
    .prod-activity-card,
    .photo-card,
    .reference-item,
    .history-item,
    .custom-commodity-item,
    .commodity-summary-card,
    .safety-score-entry,
    .safety-chart {
      border-color: rgba(217, 225, 228, 0.94);
      background: #fff;
      box-shadow: var(--shadow-soft);
    }

    .portfolio-card,
    .home-work-card {
      padding: 14px;
    }

    .portfolio-card h3,
    .home-work-card h3 {
      font-size: 16px;
      font-weight: 880;
      letter-spacing: 0;
    }

    .mini-stat {
      background: #fbfcfd;
      border-color: #e1e8ea;
    }

    .mini-stat span {
      letter-spacing: 0.02em;
    }

    .mini-stat strong {
      font-weight: 850;
    }

    .progress-track,
    .contract-score-meter,
    .prod-progress-track,
    .chart-track {
      background: #e2e9eb;
    }

    .contract-grid {
      grid-template-columns: minmax(390px, 0.9fr) minmax(440px, 1.1fr);
      gap: 16px;
    }

    .contract-summary-grid {
      gap: 10px;
      grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .contract-summary-grid .mini-stat {
      min-width: 0;
    }

    .contract-summary-grid .contract-object {
      grid-column: 1 / -1;
      min-height: 72px;
    }

    .contract-score-card {
      min-height: 170px;
      background: #fbfcfd;
      box-shadow: var(--shadow-soft);
    }

    .contract-score-card strong {
      font-weight: 900;
    }

    .contract-map-layout {
      grid-template-columns: minmax(0, 1.55fr) minmax(240px, 0.45fr);
      gap: 12px;
    }

    .work-map,
    .work-map iframe,
    .contract-map-gallery,
    .contract-map-photo,
    .contract-map-photo img,
    .contract-map-placeholder {
      min-height: 350px;
    }

    .prod-hero-grid {
      grid-template-columns: minmax(220px, 1fr) minmax(190px, 0.85fr) minmax(150px, 0.55fr) minmax(190px, 0.85fr) minmax(180px, 0.8fr);
    }

    .prod-indicator {
      background: #fbfcfd;
      box-shadow: var(--shadow-soft);
    }

    .prod-indicator input {
      color: var(--green);
      background: #fff;
    }

    .prod-table th {
      background: #f3f7f8;
    }

    .prod-readonly-value {
      color: var(--green);
    }

    .history-calendar,
    .commodity-calendar {
      background: #fbfcfd;
      box-shadow: var(--shadow-soft);
    }

    .history-calendar-day,
    .commodity-day {
      background: #fff;
      transition: transform 140ms ease, box-shadow 140ms ease, border-color 140ms ease;
    }

    .history-calendar-day:hover,
    .commodity-day:hover {
      transform: translateY(-1px);
    }

    .safety-plot-area {
      border-color: #a8b8bd;
      background:
        linear-gradient(to top, rgba(217, 225, 228, 0.75) 1px, transparent 1px) 0 0 / 100% 25%,
        #fff;
    }

    .safety-vertical-bar {
      border-radius: 7px 7px 0 0;
      background: linear-gradient(180deg, #0c8a72, var(--green));
    }

    .safety-vertical-bar.amber {
      background: linear-gradient(180deg, #cf8420, var(--amber));
    }

    .safety-vertical-bar.red {
      background: linear-gradient(180deg, #cc554d, var(--red));
    }

    .gantt {
      border-color: rgba(217, 225, 228, 0.94);
      box-shadow: var(--shadow-soft);
    }

    .gantt-label {
      background: #f8fafb;
    }

    .gantt-head .gantt-cell {
      background: #f3f7f8;
    }

    .gantt-bar {
      box-shadow: 0 7px 18px rgba(18, 34, 40, 0.16);
    }

    .segmented {
      background: #f3f7f8;
      border-color: #d9e1e4;
    }

    .segmented button.active {
      color: var(--green);
      background: #fff;
      box-shadow: var(--shadow-soft);
    }

    .notification-panel,
    .user-modal {
      border-color: rgba(217, 225, 228, 0.94);
      box-shadow: 0 24px 70px rgba(18, 34, 40, 0.22);
    }

    .user-modal-head {
      background: #f8fafb;
    }

    .empty {
      background: #fbfcfd;
      border-color: #b9c8cc;
    }

    .executive-strip {
      grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
    }

    .home-filter-bar {
      display: grid;
      grid-template-columns: minmax(220px, 1fr) auto;
      gap: 14px;
      align-items: center;
      margin-bottom: 14px;
      padding: 13px 14px;
      border: 1px solid rgba(217, 225, 228, 0.94);
      border-radius: var(--radius);
      background: rgba(255, 255, 255, 0.96);
      box-shadow: var(--shadow-soft);
    }

    .home-filter-title {
      display: grid;
      gap: 3px;
      min-width: 0;
    }

    .home-filter-title strong {
      font-size: 18px;
      line-height: 1.2;
      font-weight: 900;
    }

    .home-filter-bar .contract-actions {
      min-width: min(440px, 100%);
    }

    .home-filter-bar select {
      width: min(320px, 100%);
    }

    .home-command-center {
      display: grid;
      grid-template-columns: repeat(4, minmax(0, 1fr));
      gap: 14px;
      margin-bottom: 16px;
      align-items: stretch;
    }

    .executive-card {
      min-width: 0;
      min-height: 210px;
      display: grid;
      grid-template-rows: auto 1fr;
      align-content: start;
      gap: 14px;
      padding: 15px;
      border: 1px solid rgba(217, 225, 228, 0.94);
      border-radius: var(--radius);
      background: rgba(255, 255, 255, 0.96);
      box-shadow: var(--shadow-soft);
    }

    .executive-card-strong {
      background:
        linear-gradient(135deg, rgba(8, 115, 95, 0.98), rgba(23, 33, 38, 0.96));
      color: #fff;
      border-color: rgba(255, 255, 255, 0.2);
      box-shadow: 0 18px 42px rgba(8, 115, 95, 0.22);
    }

    .executive-card-head {
      display: grid;
      gap: 5px;
      min-width: 0;
    }

    .executive-card-head strong {
      font-size: 18px;
      line-height: 1.2;
      font-weight: 900;
      overflow-wrap: anywhere;
      word-break: normal;
    }

    .executive-card-strong .metric-label,
    .executive-card-strong .executive-row span,
    .executive-card-strong .executive-meter-label {
      color: rgba(255, 255, 255, 0.76);
    }

    .executive-meter-list,
    .executive-list,
    .executive-risk-list {
      display: grid;
      gap: 9px;
      min-width: 0;
      align-content: start;
    }

    .executive-meter {
      display: grid;
      gap: 5px;
    }

    .executive-meter-label,
    .executive-row {
      display: grid;
      grid-template-columns: minmax(0, 1fr) minmax(74px, auto);
      gap: 10px;
      align-items: center;
      min-width: 0;
      color: var(--muted);
      font-size: 12px;
      font-weight: 780;
    }

    .executive-card-strong .executive-meter-label strong,
    .executive-card-strong .executive-row strong {
      color: #fff;
    }

    .executive-row strong,
    .executive-meter-label strong {
      color: var(--ink);
      font-size: 13px;
      font-weight: 900;
      text-align: right;
      overflow-wrap: anywhere;
      white-space: normal;
    }

    .executive-track {
      height: 9px;
      overflow: hidden;
      border-radius: 999px;
      background: rgba(226, 233, 235, 0.95);
    }

    .executive-card-strong .executive-track {
      background: rgba(255, 255, 255, 0.18);
    }

    .executive-fill {
      height: 100%;
      width: min(100%, var(--value, 0%));
      border-radius: inherit;
      background: var(--green);
    }

    .executive-card-strong .executive-fill {
      background: #fff;
    }

    .executive-fill.amber {
      background: var(--amber);
    }

    .executive-fill.red {
      background: var(--red);
    }

    .executive-risk-item {
      display: grid;
      gap: 4px;
      padding: 9px;
      border: 1px solid #e1e8ea;
      border-radius: var(--radius);
      background: #fbfcfd;
      min-width: 0;
    }

    .executive-risk-item strong {
      font-size: 13px;
      line-height: 1.25;
      overflow-wrap: anywhere;
    }

    .executive-risk-item span {
      color: var(--muted);
      font-size: 12px;
      line-height: 1.3;
      font-weight: 680;
    }

    .home-portfolio-grid {
      grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    }

    .home-work-card .mini-stats {
      grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .home-work-card .contract-object {
      min-height: 76px;
    }

    .executive-dashboard-page {
      display: grid;
      grid-template-columns: 184px minmax(0, 1fr);
      gap: 0;
      align-items: stretch;
      min-height: 100vh;
      color: #102128;
    }

    .dashboard-sidebar {
      position: sticky;
      top: 0;
      align-self: start;
      min-height: 100vh;
      display: grid;
      grid-template-rows: auto auto 1fr auto;
      gap: 18px;
      padding: 18px 10px;
      border-radius: 0;
      background: linear-gradient(180deg, rgba(7, 88, 73, 0.98), rgba(2, 97, 83, 0.98));
      box-shadow: 0 24px 58px rgba(6, 71, 61, 0.22);
      color: #fff;
    }

    .dashboard-side-brand {
      width: 52px;
      height: 52px;
      display: grid;
      place-items: center;
      margin: 4px auto 6px;
      color: #fff;
      border: 1px solid rgba(255, 255, 255, 0.22);
      border-radius: var(--radius);
      background: rgba(255, 255, 255, 0.08);
    }

    .dashboard-side-brand .icon {
      width: 34px;
      height: 34px;
    }

    .dashboard-side-nav,
    .dashboard-quick-links {
      display: grid;
      gap: 7px;
    }

    .dash-nav-button,
    .dashboard-quick-links button {
      position: relative;
      min-height: 42px;
      display: grid;
      grid-template-columns: 22px minmax(0, 1fr);
      gap: 9px;
      align-items: center;
      width: 100%;
      padding: 0 10px;
      border-radius: var(--radius);
      color: rgba(255, 255, 255, 0.88);
      background: transparent;
      font-size: 12px;
      font-weight: 760;
      text-align: left;
    }

    .dash-nav-button:hover,
    .dashboard-quick-links button:hover {
      color: #fff;
      background: rgba(3, 38, 33, 0.42);
    }

    .dash-nav-button.active {
      color: #fff;
      background: linear-gradient(135deg, rgba(255,255,255,0.24), rgba(255,255,255,0.12));
      box-shadow: inset 0 0 0 1px rgba(255,255,255,0.16), 0 14px 26px rgba(1, 43, 37, 0.18);
    }

    .dash-nav-button.active::before {
      content: "";
      position: absolute;
      left: -10px;
      top: 9px;
      bottom: 9px;
      width: 3px;
      border-radius: 0 999px 999px 0;
      background: #7ef0d0;
      box-shadow: 0 0 16px rgba(126, 240, 208, 0.45);
    }

    .dash-nav-button.active .icon {
      color: #fff;
      filter: drop-shadow(0 6px 12px rgba(1, 43, 37, 0.22));
    }

    .dashboard-quick-links {
      align-self: end;
      padding-top: 16px;
      border-top: 1px solid rgba(255, 255, 255, 0.16);
    }

    .dashboard-quick-link-list {
      display: grid;
      gap: 7px;
    }

    .dashboard-quick-links .quick-links-empty {
      padding: 0 10px;
      color: rgba(255, 255, 255, 0.58);
      font-size: 10px;
      font-weight: 850;
    }

    .dashboard-quick-links span {
      padding: 0 10px 3px;
      color: rgba(255, 255, 255, 0.58);
      font-size: 10px;
      font-weight: 850;
      text-transform: uppercase;
      letter-spacing: 0.04em;
    }

    .dashboard-quick-links button {
      grid-template-columns: minmax(0, 1fr);
      min-height: 34px;
      font-size: 11px;
    }

    .dashboard-collapse-button {
      min-height: 38px;
      display: grid;
      grid-template-columns: 18px minmax(0, 1fr);
      gap: 8px;
      align-items: center;
      width: 100%;
      padding: 0 10px;
      border-radius: var(--radius);
      color: rgba(255, 255, 255, 0.86);
      background: transparent;
      font-size: 10px;
      font-weight: 850;
      text-align: left;
      letter-spacing: 0.02em;
    }

    .dashboard-collapse-button:hover {
      color: #fff;
      background: rgba(3, 38, 33, 0.42);
    }

    .dashboard-collapse-button .icon {
      transition: transform 180ms ease;
    }

    .dashboard-main {
      display: grid;
      gap: 0;
      min-width: 0;
      background: #f4f7f8;
    }

    .dashboard-topline {
      display: grid;
      grid-template-columns: minmax(240px, 1fr) auto;
      gap: 16px;
      align-items: center;
      min-height: 140px;
      padding: 26px 34px;
      background: #fff;
      border-bottom: 1px solid #e4ebee;
      box-shadow: 0 8px 28px rgba(18, 34, 40, 0.06);
    }

    .dashboard-heading h2 {
      margin: 0;
      font-size: clamp(20px, 2vw, 26px);
      line-height: 1.08;
      font-weight: 920;
      letter-spacing: 0;
    }

    .dashboard-heading p {
      margin: 5px 0 0;
      color: var(--muted);
      font-size: 13px;
      font-weight: 680;
    }

    .dashboard-controls {
      display: flex;
      align-items: center;
      justify-content: flex-end;
      gap: 10px;
      flex-wrap: wrap;
      min-width: 0;
    }

    .dashboard-select-card,
    .dashboard-user-card,
    .dashboard-export-button,
    .dashboard-notify-button,
    .dashboard-logout-button {
      min-height: 48px;
      display: grid;
      align-items: center;
      border: 1px solid rgba(217, 225, 228, 0.96);
      border-radius: var(--radius);
      background: #fff;
      box-shadow: var(--shadow-soft);
    }

    .dashboard-select-card {
      min-width: 178px;
      padding: 8px 12px;
      gap: 3px;
    }

    .dashboard-select-card span {
      color: #60717a;
      font-size: 10px;
      font-weight: 900;
      text-transform: uppercase;
      letter-spacing: 0.04em;
    }

    .dashboard-select-card select {
      min-height: 24px;
      padding: 0 22px 0 0;
      border: 0;
      background: transparent;
      color: var(--ink);
      font-size: 13px;
      font-weight: 900;
      box-shadow: none;
    }

    .dashboard-select-card strong {
      font-size: 13px;
      font-weight: 900;
    }

    .dashboard-export-button {
      grid-auto-flow: column;
      grid-auto-columns: max-content;
      gap: 8px;
      padding: 0 16px;
      color: var(--green);
      font-size: 11px;
      font-weight: 900;
      text-transform: uppercase;
      letter-spacing: 0.02em;
    }

    .dashboard-notify-button {
      position: relative;
      width: 48px;
      min-width: 48px;
      justify-content: center;
      color: #172126;
      background: transparent;
      border-color: transparent;
      box-shadow: none;
    }

    .dashboard-notify-button span {
      position: absolute;
      top: 7px;
      right: 7px;
      min-width: 17px;
      height: 17px;
      display: grid;
      place-items: center;
      border-radius: 50%;
      color: #fff;
      background: #e11d1d;
      font-size: 10px;
      font-weight: 900;
      line-height: 1;
    }

    .dashboard-logout-button {
      width: 44px;
      min-width: 44px;
      min-height: 44px;
      place-items: center;
      padding: 0;
      color: #60717a;
      background: #fff;
    }

    .dashboard-user-card {
      grid-template-columns: 38px minmax(0, 1fr);
      gap: 9px;
      min-width: 174px;
      padding: 6px 10px;
    }

    .dashboard-avatar {
      width: 38px;
      height: 38px;
      display: grid;
      place-items: center;
      border-radius: 50%;
      color: #fff;
      background: linear-gradient(135deg, #172126, var(--green));
      font-size: 12px;
      font-weight: 900;
    }

    .dashboard-user-card strong,
    .dashboard-user-card span {
      display: block;
      overflow: hidden;
      text-overflow: ellipsis;
      white-space: nowrap;
    }

    .dashboard-user-card strong {
      font-size: 12px;
      font-weight: 900;
    }

    .dashboard-user-card span {
      color: var(--muted);
      font-size: 11px;
      font-weight: 700;
    }

    .dashboard-kpis {
      display: grid;
      grid-template-columns: repeat(8, minmax(128px, 1fr));
      gap: 8px;
      padding: 16px 22px 8px;
    }

    .kpi-card {
      min-height: 116px;
      display: grid;
      align-content: space-between;
      gap: 8px;
      min-width: 0;
      padding: 13px 14px;
      border: 1px solid rgba(217, 225, 228, 0.96);
      border-radius: var(--radius);
      background: #fff;
      box-shadow: var(--shadow-soft);
    }

    .kpi-card > span {
      color: #536874;
      font-size: 10px;
      font-weight: 900;
      text-transform: uppercase;
      letter-spacing: 0.04em;
    }

    .kpi-card small {
      color: var(--muted);
      font-size: 11px;
      line-height: 1.25;
      font-weight: 680;
    }

    .kpi-value-line {
      display: grid;
      grid-template-columns: 36px minmax(0, 1fr);
      gap: 10px;
      align-items: center;
      min-width: 0;
    }

    .kpi-value-line strong {
      font-size: clamp(20px, 1.8vw, 28px);
      line-height: 1;
      font-weight: 940;
      overflow-wrap: anywhere;
    }

    .kpi-icon {
      width: 36px;
      height: 36px;
      display: grid;
      place-items: center;
      border-radius: 50%;
      color: var(--green);
      background: var(--green-soft);
    }

    .kpi-icon.info {
      color: var(--blue);
      background: var(--blue-soft);
    }

    .kpi-icon.warning {
      color: var(--amber);
      background: var(--amber-soft);
    }

    .kpi-icon.danger {
      color: var(--red);
      background: var(--red-soft);
    }

    .kpi-ring-row {
      display: grid;
      grid-template-columns: 48px minmax(0, 1fr);
      gap: 10px;
      align-items: center;
    }

    .kpi-ring {
      width: 48px;
      height: 48px;
      display: grid;
      place-items: center;
      border-radius: 50%;
      background:
        radial-gradient(circle at center, #fff 0 55%, transparent 56%),
        conic-gradient(var(--green) var(--value, 0%), #e4ecef 0);
    }

    .kpi-ring strong {
      font-size: 13px;
      font-weight: 930;
    }

    .dashboard-grid {
      display: grid;
      grid-template-columns: repeat(12, minmax(0, 1fr));
      gap: 10px;
      align-items: stretch;
      padding: 4px 22px 12px;
    }

    .dashboard-card {
      min-width: 0;
      min-height: 220px;
      display: grid;
      grid-template-rows: auto minmax(0, 1fr) auto;
      gap: 12px;
      padding: 14px;
      border: 1px solid rgba(217, 225, 228, 0.96);
      border-radius: var(--radius);
      background: #fff;
      box-shadow: var(--shadow-soft);
    }

    .dashboard-card.span-2 {
      grid-column: span 2;
    }

    .dashboard-grid > .dashboard-card:nth-child(1) {
      grid-column: span 2;
      min-height: 322px;
    }

    .dashboard-grid > .dashboard-card:nth-child(2) {
      grid-column: span 3;
      min-height: 322px;
    }

    .dashboard-grid > .dashboard-card:nth-child(3) {
      grid-column: span 3;
      min-height: 322px;
    }

    .dashboard-grid > .dashboard-card:nth-child(4),
    .dashboard-grid > .dashboard-card:nth-child(5) {
      grid-column: span 2;
      min-height: 322px;
    }

    .dashboard-grid > .dashboard-card:nth-child(6),
    .dashboard-grid > .dashboard-card:nth-child(7),
    .dashboard-grid > .dashboard-card:nth-child(8),
    .dashboard-grid > .dashboard-card:nth-child(9) {
      grid-column: span 2;
      min-height: 256px;
    }

    .dashboard-grid > .dashboard-card:nth-child(10) {
      grid-column: span 4;
      min-height: 256px;
    }

    .dashboard-card-head {
      display: flex;
      align-items: start;
      justify-content: space-between;
      gap: 10px;
      min-width: 0;
    }

    .dashboard-card-actions {
      display: inline-flex;
      align-items: center;
      gap: 6px;
      min-width: 0;
    }

    .dashboard-title-stack {
      display: grid;
      gap: 6px;
      min-width: 0;
    }

    .ai-summary-button {
      min-height: 24px;
      display: inline-flex;
      align-items: center;
      justify-content: center;
      padding: 0 8px;
      border: 1px solid rgba(8, 115, 95, 0.18);
      border-radius: 999px;
      color: var(--green);
      background: var(--green-soft);
      font-size: 10px;
      font-weight: 900;
      letter-spacing: 0.02em;
    }

    .dashboard-card h3 {
      margin: 0;
      color: #172126;
      font-size: 12px;
      line-height: 1.25;
      font-weight: 930;
      text-transform: uppercase;
      letter-spacing: 0.02em;
    }

    .dashboard-card-head strong {
      color: var(--green);
      font-size: 13px;
      font-weight: 920;
      white-space: nowrap;
    }

    .dashboard-pill {
      min-height: 24px;
      display: inline-flex;
      align-items: center;
      justify-content: center;
      padding: 0 8px;
      border-radius: 999px;
      font-size: 10px;
      font-weight: 900;
      text-transform: uppercase;
      white-space: nowrap;
    }

    .dashboard-pill.info {
      color: var(--blue);
      background: var(--blue-soft);
    }

    .dashboard-pill.warning {
      color: var(--amber);
      background: var(--amber-soft);
    }

    .dashboard-pill.danger {
      color: var(--red);
      background: var(--red-soft);
    }

    .dashboard-pill.good {
      color: var(--green);
      background: var(--green-soft);
    }

    .dashboard-summary-text {
      margin: 0;
      color: #31444c;
      font-size: 12px;
      line-height: 1.55;
      font-weight: 650;
    }

    .chart-legend.compact {
      display: flex;
      gap: 12px;
      align-items: center;
      color: var(--muted);
      font-size: 11px;
      font-weight: 760;
      white-space: nowrap;
    }

    .legend-dot {
      width: 18px;
      height: 3px;
      display: inline-block;
      margin-right: 5px;
      border-radius: 999px;
      vertical-align: middle;
    }

    .legend-dot.green {
      background: var(--green);
    }

    .legend-dot.gray {
      background: #93a3ad;
    }

    .legend-dot.blue {
      background: var(--blue);
    }

    .legend-dot.budgeted {
      background: #cdd8de;
    }

    .budget-legend {
      gap: 10px;
      font-size: 10px;
    }

    .budget-legend .legend-dot {
      width: 8px;
      height: 8px;
      border-radius: 2px;
    }

    .dashboard-line-chart svg {
      width: 100%;
      height: 188px;
      display: block;
      overflow: visible;
    }

    .dashboard-chart-label {
      fill: #60717a;
      font-size: 10px;
      font-weight: 700;
    }

    .dashboard-budget-chart {
      display: grid;
      grid-template-columns: repeat(2, minmax(0, 1fr));
      gap: 12px;
      align-items: end;
      min-height: 150px;
      padding: 14px 12px 4px;
      border-bottom: 1px solid #e5ecef;
    }

    .budget-column {
      display: grid;
      gap: 7px;
      justify-items: center;
      align-content: end;
      height: 138px;
      color: #243840;
      font-size: 11px;
      font-weight: 820;
      text-align: center;
    }

    .budget-bar {
      width: min(72px, 70%);
      height: var(--height, 40%);
      min-height: 8px;
      border-radius: 6px 6px 0 0;
      background: #cdd8de;
    }

    .budget-bar.realized {
      background: linear-gradient(180deg, #0b8d73, var(--green));
    }

    .dashboard-timeline,
    .dashboard-action-list,
    .dashboard-supplier-summary,
    .dashboard-evidence-grid {
      min-width: 0;
    }

    .dashboard-timeline {
      display: grid;
      gap: 9px;
      align-content: start;
      overflow-y: auto;
      overscroll-behavior: contain;
      padding-right: 4px;
    }

    .dashboard-timeline::-webkit-scrollbar {
      width: 6px;
    }

    .dashboard-timeline::-webkit-scrollbar-thumb {
      border-radius: 999px;
      background: #cfdadd;
    }

    .dashboard-progress {
      height: 10px;
      overflow: hidden;
      border-radius: 999px;
      background: #e4ecef;
    }

    .dashboard-progress span {
      display: block;
      width: min(100%, var(--value, 0%));
      height: 100%;
      border-radius: inherit;
      background: var(--green);
    }

    .timeline-compact-row,
    .dashboard-action-row,
    .supplier-row {
      display: grid;
      grid-template-columns: minmax(0, 1fr) auto;
      gap: 10px;
      align-items: center;
      min-width: 0;
      padding: 8px 0;
      border-bottom: 1px solid #edf2f3;
    }

    .timeline-section-head {
      display: grid;
      grid-template-columns: minmax(0, 1fr) auto;
      gap: 10px;
      align-items: center;
      color: #243840;
      font-size: 11px;
      font-weight: 900;
    }

    .timeline-delay-row {
      display: grid;
      grid-template-columns: minmax(0, 1fr) auto;
      gap: 10px;
      align-items: center;
      margin-top: 5px;
      padding: 9px;
      border: 1px solid var(--red-soft);
      border-radius: var(--radius);
      color: var(--red);
      background: #fffafa;
      font-size: 11px;
      font-weight: 900;
      text-transform: uppercase;
    }

    .dashboard-action-row.priority {
      grid-template-columns: 24px minmax(0, 1fr) auto;
    }

    .timeline-compact-row strong,
    .dashboard-action-row strong,
    .supplier-row strong {
      display: block;
      overflow: hidden;
      color: #243840;
      font-size: 12px;
      font-weight: 860;
      text-overflow: ellipsis;
      white-space: nowrap;
    }

    .timeline-compact-row span,
    .dashboard-action-row span,
    .supplier-row span {
      display: block;
      margin-top: 3px;
      color: var(--muted);
      font-size: 11px;
      font-weight: 680;
    }

    .dashboard-action-list {
      display: grid;
      align-content: start;
      min-width: 0;
    }

    .action-index {
      width: 22px;
      height: 22px;
      display: inline-grid;
      place-items: center;
      border-radius: 50%;
      color: #fff;
      background: var(--green);
      font-size: 11px;
      font-weight: 900;
    }

    .action-index.alt {
      background: #2f947c;
    }

    .action-index.muted {
      background: #9aa7ad;
    }

    .productivity-week-list {
      display: grid;
      align-content: start;
      min-width: 0;
    }

    .productivity-week-row {
      display: grid;
      grid-template-columns: minmax(0, 1fr) auto auto;
      gap: 8px;
      align-items: center;
      min-width: 0;
      padding: 8px 0;
      border-bottom: 1px solid #edf2f3;
    }

    .productivity-week-row strong,
    .productivity-week-row span {
      overflow: hidden;
      text-overflow: ellipsis;
      white-space: nowrap;
    }

    .productivity-week-row strong {
      color: #243840;
      font-size: 12px;
      font-weight: 860;
    }

    .productivity-week-row span {
      color: var(--muted);
      font-size: 11px;
      font-weight: 720;
    }

    .trend-badge {
      display: inline-flex;
      align-items: center;
      justify-content: flex-end;
      gap: 3px;
      min-width: 48px;
      color: var(--green);
      font-size: 11px;
      font-weight: 900;
      white-space: nowrap;
    }

    .trend-badge.down {
      color: var(--red);
    }

    .trend-badge.neutral {
      color: var(--muted);
    }

    .dashboard-card-action,
    .dashboard-link-button {
      min-height: 32px;
      display: inline-flex;
      align-items: center;
      justify-content: center;
      border: 1px solid #e1e8ea;
      border-radius: var(--radius);
      color: #14323b;
      background: #fff;
      font-size: 11px;
      font-weight: 900;
      text-transform: uppercase;
    }

    .dashboard-link-button {
      min-height: 24px;
      padding: 0;
      border: 0;
      color: var(--green);
      background: transparent;
    }

    .dashboard-supplier-summary {
      display: grid;
      grid-template-columns: 112px minmax(0, 1fr);
      gap: 12px;
      align-items: center;
    }

    .supplier-donut {
      width: 112px;
      height: 112px;
      display: grid;
      place-items: center;
      border-radius: 50%;
      background:
        radial-gradient(circle at center, #fff 0 52%, transparent 53%),
        conic-gradient(var(--green) var(--value, 0%), #d4dee2 0);
    }

    .supplier-donut strong {
      max-width: 78px;
      color: #172126;
      font-size: 13px;
      line-height: 1.15;
      font-weight: 930;
      text-align: center;
    }

    .supplier-list {
      display: grid;
      gap: 2px;
      min-width: 0;
    }

    .dashboard-map-card {
      min-height: 258px;
    }

    .dashboard-map-card .contract-map-card {
      min-height: 0;
      padding: 0;
      border: 0;
      box-shadow: none;
      background: transparent;
    }

    .dashboard-map-card .contract-map-layout {
      grid-template-columns: 1fr;
    }

    .dashboard-map-card .contract-map-gallery {
      display: none;
    }

    .dashboard-map-card .work-map,
    .dashboard-map-card .work-map iframe {
      min-height: 168px;
    }

    .dashboard-evidence-grid {
      display: grid;
      grid-template-columns: repeat(4, minmax(0, 1fr));
      gap: 10px;
      align-content: start;
    }

    .evidence-card {
      display: grid;
      gap: 6px;
      min-width: 0;
    }

    .evidence-frame {
      aspect-ratio: 4 / 3;
      overflow: hidden;
      border-radius: var(--radius);
      background:
        linear-gradient(135deg, rgba(8, 115, 95, 0.14), rgba(39, 103, 163, 0.12)),
        #eef4f4;
    }

    .evidence-frame img {
      width: 100%;
      height: 100%;
      object-fit: cover;
      display: block;
    }

    .evidence-card strong,
    .evidence-card span {
      overflow: hidden;
      text-align: center;
      text-overflow: ellipsis;
      white-space: nowrap;
    }

    .evidence-card strong {
      font-size: 11px;
      font-weight: 850;
    }

    .evidence-card span {
      color: var(--muted);
      font-size: 10px;
      font-weight: 700;
    }

    .evidence-placeholder {
      display: grid;
      place-items: center;
      width: 100%;
      height: 100%;
      border: 0;
      background: transparent;
      color: var(--green);
      font-size: 11px;
      font-weight: 850;
      text-transform: uppercase;
    }

    .dashboard-footer-note {
      min-height: 42px;
      display: flex;
      align-items: center;
      gap: 12px;
      padding: 9px 14px;
      border: 1px solid rgba(217, 225, 228, 0.96);
      border-radius: var(--radius);
      background: #fff;
      box-shadow: var(--shadow-soft);
      color: var(--muted);
      font-size: 12px;
      font-weight: 720;
      margin: 0 22px 12px;
    }

    .dashboard-footer-note strong {
      color: var(--ink);
      text-transform: uppercase;
      font-size: 11px;
      letter-spacing: 0.02em;
    }

    .dashboard-footer-note #homeValueTotal,
    .dashboard-footer-note #homeAdherenceAvg {
      display: none;
    }

    @media (max-width: 1120px) {
      .contract-summary-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
      }

      .home-filter-bar {
        grid-template-columns: 1fr;
      }

      .home-filter-bar .contract-actions {
        justify-content: stretch;
      }

      .home-filter-bar select {
        width: 100%;
      }

      .home-command-center {
        grid-template-columns: repeat(2, minmax(0, 1fr));
      }

      .management-switch {
        top: 128px;
      }

      .prod-hero-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
      }

      .executive-dashboard-page {
        grid-template-columns: 1fr;
      }

      .dashboard-sidebar {
        position: static;
        min-height: auto;
        grid-template-rows: auto;
        grid-template-columns: auto minmax(0, 1fr);
        border-radius: var(--radius);
      }

      .dashboard-side-nav {
        grid-template-columns: repeat(3, minmax(0, 1fr));
      }

      .dashboard-quick-links {
        display: none;
      }

      .dashboard-topline {
        grid-template-columns: 1fr;
      }

      .dashboard-controls {
        justify-content: stretch;
      }

      .dashboard-kpis {
        grid-template-columns: repeat(4, minmax(0, 1fr));
      }

      .dashboard-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
      }

      .dashboard-card.span-2 {
        grid-column: span 2;
      }
    }

    @media (max-width: 820px) {
      .topbar {
        grid-template-columns: auto 1fr;
        padding: 12px 12px 8px;
      }

      .save-state {
        grid-column: 1 / -1;
        justify-self: stretch;
      }

      .app-tabs {
        flex-wrap: nowrap;
        overflow-x: auto;
        padding: 0 12px 10px;
        scrollbar-width: thin;
      }

      .main-tab {
        min-height: 34px;
        padding: 0 11px;
        font-size: 11px;
      }

      .tab-dropdown {
        position: fixed;
        top: 104px;
        left: 12px;
        right: 12px;
        width: auto;
      }

      .management-switch {
        top: 138px;
        overflow-x: auto;
        flex-wrap: nowrap;
      }

      .status-strip {
        grid-template-columns: 1fr;
      }

      .metric {
        min-height: 86px;
      }

      .contract-grid,
      .prod-hero-grid,
      .home-command-center {
        grid-template-columns: 1fr;
      }

      .dashboard-sidebar {
        padding: 12px;
      }

      .dashboard-side-brand {
        display: none;
      }

      .dashboard-side-nav {
        grid-template-columns: repeat(2, minmax(0, 1fr));
      }

      .dashboard-kpis,
      .dashboard-grid {
        grid-template-columns: 1fr;
      }

      .dashboard-card.span-2 {
        grid-column: auto;
      }

      .dashboard-controls,
      .dashboard-user-card,
      .dashboard-select-card,
      .dashboard-export-button {
        width: 100%;
      }

      .dashboard-evidence-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
      }

      .dashboard-supplier-summary {
        grid-template-columns: 1fr;
        justify-items: center;
      }

      .contract-summary-grid,
      .home-work-card .mini-stats {
        grid-template-columns: 1fr;
      }

      .band-body,
      .band-header {
        padding-inline: 12px;
      }
    }

    body.dashboard-mode {
      min-width: 1680px;
      overflow: auto;
      background: #f4f7f8;
    }

    body.dashboard-mode .executive-dashboard-page {
      width: 1680px;
      min-width: 1680px;
      min-height: 945px;
      grid-template-columns: 184px 1496px;
      gap: 0;
      align-items: stretch;
      background: #f4f7f8;
    }

    body.dashboard-mode .dashboard-sidebar {
      position: sticky;
      top: 0;
      width: 184px;
      min-height: 945px;
      height: 100vh;
      padding: 18px 10px 22px;
      border-radius: 0;
    }

    body.dashboard-mode.dashboard-menu-collapsed .executive-dashboard-page {
      grid-template-columns: 72px 1608px;
    }

    body.dashboard-mode.dashboard-menu-collapsed .dashboard-sidebar {
      width: 72px;
      padding: 18px 9px 22px;
    }

    body.dashboard-mode.dashboard-menu-collapsed .dashboard-main {
      width: 1608px;
    }

    body.dashboard-mode.dashboard-menu-collapsed .dashboard-side-brand {
      width: 42px;
      height: 42px;
    }

    body.dashboard-mode.dashboard-menu-collapsed .dashboard-side-brand .icon {
      width: 28px;
      height: 28px;
    }

    body.dashboard-mode.dashboard-menu-collapsed .dash-nav-button {
      grid-template-columns: 1fr;
      justify-items: center;
      padding: 0;
      font-size: 0;
    }

    body.dashboard-mode.dashboard-menu-collapsed .dash-nav-button .icon {
      width: 21px;
      height: 21px;
    }

    body.dashboard-mode.dashboard-menu-collapsed .dashboard-quick-links {
      display: none;
    }

    body.dashboard-mode.dashboard-menu-collapsed .dashboard-collapse-button {
      grid-template-columns: 1fr;
      justify-items: center;
      padding: 0;
      font-size: 0;
    }

    body.dashboard-mode.dashboard-menu-collapsed .dashboard-collapse-button .icon {
      transform: rotate(180deg);
    }

    body.dashboard-mode .dashboard-main {
      width: 1496px;
      display: grid;
      grid-template-rows: 88px 132px 1fr 42px;
      gap: 0;
      overflow: hidden;
    }

    body.dashboard-mode .dashboard-topline {
      min-height: 88px;
      height: 88px;
      grid-template-columns: minmax(320px, 1fr) auto;
      padding: 14px 34px;
      box-shadow: none;
    }

    body.dashboard-mode .dashboard-heading h2 {
      font-size: 20px;
      line-height: 1.1;
    }

    body.dashboard-mode .dashboard-heading p {
      font-size: 13px;
    }

    body.dashboard-mode .dashboard-controls {
      gap: 14px;
      flex-wrap: nowrap;
    }

    body.dashboard-mode .dashboard-select-card {
      width: 184px;
      min-width: 184px;
      height: 48px;
      min-height: 48px;
      padding: 7px 12px;
    }

    body.dashboard-mode .dashboard-select-card:first-child {
      width: 282px;
      min-width: 282px;
    }

    body.dashboard-mode .dashboard-export-button {
      width: 180px;
      min-width: 180px;
      height: 44px;
      min-height: 44px;
    }

    body.dashboard-mode .dashboard-user-card {
      width: 196px;
      min-width: 196px;
      height: 48px;
      min-height: 48px;
    }

    body.dashboard-mode .dashboard-notify-button {
      width: 42px;
      min-width: 42px;
      height: 42px;
      min-height: 42px;
    }

    body.dashboard-mode .dashboard-kpis {
      height: 132px;
      padding: 16px 32px 12px;
      grid-template-columns: repeat(8, 1fr);
      gap: 8px;
      overflow: hidden;
    }

    body.dashboard-mode .kpi-card {
      min-height: 0;
      height: 104px;
      padding: 13px 14px;
      overflow: hidden;
    }

    body.dashboard-mode .kpi-card > span,
    body.dashboard-mode .dashboard-card h3 {
      font-size: 10px;
      line-height: 1.2;
      letter-spacing: 0.02em;
    }

    body.dashboard-mode .kpi-value-line strong {
      font-size: 26px;
      line-height: 1;
      white-space: nowrap;
    }

    body.dashboard-mode #homePercentAvg,
    body.dashboard-mode #homeCostRealized {
      font-size: 21px;
    }

    body.dashboard-mode #homeCostRealized {
      font-size: 24px;
      letter-spacing: -0.01em;
    }

    body.dashboard-mode .kpi-card small {
      display: block;
      overflow: hidden;
      font-size: 11px;
      line-height: 1.2;
      text-overflow: ellipsis;
      white-space: nowrap;
    }

    body.dashboard-mode .dashboard-grid {
      height: 588px;
      padding: 0 32px 10px;
      grid-template-columns: 258px 344px 282px 250px 258px;
      grid-template-rows: 322px 256px;
      gap: 10px;
      overflow: hidden;
    }

    body.dashboard-mode.dashboard-menu-collapsed .dashboard-grid {
      grid-template-columns: 278px 384px 310px 270px 262px;
    }

    body.dashboard-mode .dashboard-card {
      min-height: 0;
      height: 100%;
      gap: 10px;
      padding: 14px;
      overflow: hidden;
    }

    body.dashboard-mode .dashboard-grid > .dashboard-card:nth-child(1),
    body.dashboard-mode .dashboard-grid > .dashboard-card:nth-child(2),
    body.dashboard-mode .dashboard-grid > .dashboard-card:nth-child(3),
    body.dashboard-mode .dashboard-grid > .dashboard-card:nth-child(4),
    body.dashboard-mode .dashboard-grid > .dashboard-card:nth-child(5),
    body.dashboard-mode .dashboard-grid > .dashboard-card:nth-child(6),
    body.dashboard-mode .dashboard-grid > .dashboard-card:nth-child(7),
    body.dashboard-mode .dashboard-grid > .dashboard-card:nth-child(8),
    body.dashboard-mode .dashboard-grid > .dashboard-card:nth-child(9),
    body.dashboard-mode .dashboard-grid > .dashboard-card:nth-child(10) {
      grid-column: auto;
      min-height: 0;
    }

    body.dashboard-mode .dashboard-grid > .dashboard-card:nth-child(1) {
      grid-column: 1;
      grid-row: 1;
    }

    body.dashboard-mode .dashboard-grid > .dashboard-card:nth-child(2) {
      grid-column: 2;
      grid-row: 1;
    }

    body.dashboard-mode .dashboard-grid > .dashboard-card:nth-child(3) {
      grid-column: 3;
      grid-row: 1;
    }

    body.dashboard-mode .dashboard-grid > .dashboard-card:nth-child(4) {
      grid-column: 4;
      grid-row: 1;
    }

    body.dashboard-mode .dashboard-grid > .dashboard-card:nth-child(5) {
      grid-column: 5;
      grid-row: 1;
    }

    body.dashboard-mode .dashboard-grid > .dashboard-card:nth-child(6) {
      grid-column: 1;
      grid-row: 2;
    }

    body.dashboard-mode .dashboard-grid > .dashboard-card:nth-child(7) {
      grid-column: 2;
      grid-row: 2;
    }

    body.dashboard-mode .dashboard-grid > .dashboard-card:nth-child(8) {
      grid-column: 3;
      grid-row: 2;
    }

    body.dashboard-mode .dashboard-grid > .dashboard-card:nth-child(9) {
      grid-column: 4;
      grid-row: 2;
    }

    body.dashboard-mode .dashboard-grid > .dashboard-card:nth-child(10) {
      grid-column: 5;
      grid-row: 2;
    }

    body.dashboard-mode .dashboard-summary-text {
      display: -webkit-box;
      max-height: 84px;
      overflow: hidden;
      font-size: 12px;
      line-height: 1.45;
      -webkit-box-orient: vertical;
      -webkit-line-clamp: 4;
    }

    body.dashboard-mode .dashboard-line-chart svg {
      height: 205px;
    }

    body.dashboard-mode .dashboard-budget-chart {
      min-height: 0;
      height: 170px;
      padding: 8px 12px 4px;
    }

    body.dashboard-mode .budget-column {
      height: 150px;
    }

    body.dashboard-mode .dashboard-timeline {
      max-height: 236px;
      overflow-y: auto;
    }

    body.dashboard-mode .timeline-compact-row,
    body.dashboard-mode .dashboard-action-row,
    body.dashboard-mode .supplier-row {
      min-height: 39px;
      padding: 7px 0;
    }

    body.dashboard-mode .productivity-week-row {
      min-height: 39px;
      padding: 7px 0;
    }

    body.dashboard-mode .timeline-compact-row strong,
    body.dashboard-mode .dashboard-action-row strong,
    body.dashboard-mode .supplier-row strong {
      font-size: 11px;
      line-height: 1.2;
    }

    body.dashboard-mode .timeline-compact-row span,
    body.dashboard-mode .dashboard-action-row span,
    body.dashboard-mode .supplier-row span {
      font-size: 10px;
      line-height: 1.2;
    }

    body.dashboard-mode .executive-risk-list,
    body.dashboard-mode .dashboard-action-list,
    body.dashboard-mode .executive-list {
      overflow: hidden;
    }

    body.dashboard-mode .executive-risk-item {
      padding: 8px;
    }

    body.dashboard-mode .executive-risk-item strong {
      display: block;
      overflow: hidden;
      font-size: 11px;
      line-height: 1.25;
      text-overflow: ellipsis;
      white-space: nowrap;
    }

    body.dashboard-mode .executive-risk-item span {
      display: block;
      overflow: hidden;
      font-size: 10px;
      line-height: 1.25;
      text-overflow: ellipsis;
      white-space: nowrap;
    }

    body.dashboard-mode .dashboard-supplier-summary {
      grid-template-columns: 96px minmax(0, 1fr);
      gap: 10px;
      align-content: center;
    }

    body.dashboard-mode .supplier-donut {
      width: 96px;
      height: 96px;
    }

    body.dashboard-mode .supplier-donut strong {
      font-size: 11px;
    }

    body.dashboard-mode .dashboard-map-card .work-map,
    body.dashboard-mode .dashboard-map-card .work-map iframe {
      min-height: 150px;
      height: 150px;
    }

    body.dashboard-mode .dashboard-map-card .contract-score-row {
      font-size: 10px;
    }

    body.dashboard-mode .dashboard-evidence-grid {
      grid-template-columns: repeat(2, minmax(0, 1fr));
      gap: 8px;
      overflow: hidden;
    }

    body.dashboard-mode .evidence-frame {
      aspect-ratio: 1.55 / 1;
    }

    body.dashboard-mode .evidence-card strong,
    body.dashboard-mode .evidence-card span {
      font-size: 10px;
      line-height: 1.15;
    }

    body.dashboard-mode .dashboard-footer-note {
      height: 42px;
      min-height: 42px;
      margin: 0 32px 12px;
      overflow: hidden;
    }

    body.dashboard-mode {
      width: 100%;
      min-width: 0;
      max-width: 100%;
      overflow-x: hidden;
      overflow-y: auto;
    }

    body.dashboard-mode .executive-dashboard-page {
      width: 100vw;
      min-width: 0;
      max-width: 100vw;
      min-height: 100vh;
      grid-template-columns: 72px minmax(0, 1fr);
    }

    body.dashboard-mode:not(.dashboard-menu-collapsed) .executive-dashboard-page {
      grid-template-columns: 184px minmax(0, 1fr);
    }

    body.dashboard-mode .dashboard-sidebar,
    body.dashboard-mode.dashboard-menu-collapsed .dashboard-sidebar {
      width: 72px;
      min-width: 72px;
      height: 100vh;
      min-height: 100vh;
      padding: 18px 9px 22px;
    }

    body.dashboard-mode:not(.dashboard-menu-collapsed) .dashboard-sidebar {
      width: 184px;
      min-width: 184px;
      padding: 18px 10px 22px;
    }

    body.dashboard-mode .dashboard-main,
    body.dashboard-mode.dashboard-menu-collapsed .dashboard-main {
      width: auto;
      min-width: 0;
      max-width: none;
      grid-template-rows: auto auto auto auto;
      overflow: visible;
    }

    body.dashboard-mode .dashboard-topline {
      height: auto;
      min-height: 88px;
      grid-template-columns: minmax(240px, 1fr) minmax(0, auto);
      gap: 18px;
      padding: 14px 22px;
    }

    body.dashboard-mode .dashboard-controls {
      max-width: 100%;
      gap: 10px;
      overflow: hidden;
    }

    body.dashboard-mode .dashboard-controls {
      display: grid;
      grid-template-columns: minmax(420px, 1fr) 164px 42px 196px;
      align-items: center;
      justify-content: end;
    }

    body.dashboard-mode .dashboard-select-card {
      width: auto;
      min-width: 0;
    }

    body.dashboard-mode .dashboard-work-card,
    body.dashboard-mode .dashboard-select-card:first-child {
      width: 100%;
      min-width: 420px;
    }

    body.dashboard-mode .dashboard-period-card {
      width: 164px;
      min-width: 164px;
    }

    body.dashboard-mode .dashboard-select-card select,
    body.dashboard-mode .dashboard-select-card input[type="month"] {
      width: 100%;
      min-width: 0;
      min-height: 24px;
      padding: 0;
      border: 0;
      background: transparent;
      color: var(--ink);
      font-size: 13px;
      font-weight: 900;
      box-shadow: none;
    }

    body.dashboard-mode .dashboard-select-card input[type="month"] {
      appearance: auto;
      cursor: pointer;
    }

    body.dashboard-mode .dashboard-period-card strong {
      display: none;
    }

    body.dashboard-mode .dashboard-kpis,
    body.dashboard-mode.dashboard-menu-collapsed .dashboard-kpis {
      height: auto;
      min-height: 120px;
      grid-template-columns: repeat(6, minmax(0, 1fr));
      padding: 16px 22px 12px;
      gap: 10px;
      overflow: visible;
    }

    body.dashboard-mode .dashboard-grid,
    body.dashboard-mode.dashboard-menu-collapsed .dashboard-grid {
      width: auto;
      height: auto;
      min-height: 0;
      grid-template-columns: repeat(12, minmax(0, 1fr));
      grid-template-rows: minmax(310px, auto) minmax(248px, auto);
      gap: 10px;
      padding: 0 22px 10px;
      overflow: visible;
    }

    body.dashboard-mode .dashboard-card {
      overflow: hidden;
    }

    body.dashboard-mode .dashboard-grid > .dashboard-card:nth-child(1) {
      grid-column: 1 / span 3;
      grid-row: 1;
    }

    body.dashboard-mode .dashboard-grid > .dashboard-card:nth-child(2) {
      grid-column: 4 / span 4;
      grid-row: 1;
    }

    body.dashboard-mode .dashboard-grid > .dashboard-card:nth-child(3) {
      grid-column: 8 / span 2;
      grid-row: 1;
    }

    body.dashboard-mode .dashboard-grid > .dashboard-card:nth-child(4) {
      grid-column: 10 / span 3;
      grid-row: 1;
    }

    body.dashboard-mode .dashboard-grid > .dashboard-card:nth-child(5) {
      grid-column: 1 / span 3;
      grid-row: 2;
    }

    body.dashboard-mode .dashboard-grid > .dashboard-card:nth-child(6) {
      grid-column: 4 / span 3;
      grid-row: 2;
    }

    body.dashboard-mode .dashboard-grid > .dashboard-card:nth-child(7) {
      grid-column: 7 / span 6;
      grid-row: 2;
    }

    body.dashboard-mode .dashboard-grid > .dashboard-card:nth-child(8) {
      grid-column: auto;
      grid-row: 2;
    }

    body.dashboard-mode .dashboard-grid > .dashboard-card:nth-child(9) {
      grid-column: auto;
      grid-row: 2;
    }

    body.dashboard-mode .dashboard-grid > .dashboard-card:nth-child(10) {
      grid-column: 9 / span 4;
      grid-row: 2;
    }

    body.dashboard-mode .dashboard-card,
    body.dashboard-mode .kpi-card,
    body.dashboard-mode .dashboard-select-card,
    body.dashboard-mode .dashboard-user-card,
    body.dashboard-mode .dashboard-footer-note {
      letter-spacing: 0;
    }

    body.dashboard-mode .dashboard-card h3,
    body.dashboard-mode .kpi-card > span,
    body.dashboard-mode .dashboard-select-card span {
      color: #314853;
      font-size: 10px;
      line-height: 1.2;
      font-weight: 900;
      letter-spacing: 0;
      text-transform: uppercase;
    }

    body.dashboard-mode .dashboard-summary-text,
    body.dashboard-mode .timeline-compact-row span,
    body.dashboard-mode .dashboard-action-row span,
    body.dashboard-mode .supplier-row span,
    body.dashboard-mode .productivity-week-row span,
    body.dashboard-mode .executive-risk-item span {
      font-size: 10px;
      line-height: 1.25;
      font-weight: 700;
    }

    body.dashboard-mode .timeline-compact-row strong,
    body.dashboard-mode .dashboard-action-row strong,
    body.dashboard-mode .supplier-row strong,
    body.dashboard-mode .productivity-week-row strong,
    body.dashboard-mode .executive-risk-item strong {
      font-size: 11px;
      line-height: 1.25;
      font-weight: 850;
    }

    body.dashboard-mode .dashboard-action-row.priority {
      grid-template-columns: 30px minmax(0, 1fr) auto;
      align-items: center;
    }

    body.dashboard-mode .action-index {
      width: 24px;
      height: 24px;
      min-width: 24px;
      display: flex;
      align-items: center;
      justify-content: center;
      padding: 0;
      color: #fff;
      font-size: 11px;
      line-height: 24px;
      font-weight: 900;
      text-align: center;
      font-variant-numeric: tabular-nums;
    }

    html,
    body {
      max-width: 100%;
      overflow-x: hidden;
    }

    body.dashboard-mode,
    body.dashboard-mode .shell,
    body.dashboard-mode .app-view[data-view="inicio"],
    body.dashboard-mode .executive-dashboard-page,
    body.dashboard-mode .dashboard-main {
      width: 100%;
      min-width: 0;
      max-width: 100%;
      overflow-x: hidden;
      box-sizing: border-box;
    }

    body.dashboard-mode .executive-dashboard-page {
      width: 100%;
      max-width: 100%;
      grid-template-columns: minmax(0, 72px) minmax(0, 1fr);
    }

    body.dashboard-mode:not(.dashboard-menu-collapsed) .executive-dashboard-page {
      grid-template-columns: minmax(0, 184px) minmax(0, 1fr);
    }

    body.dashboard-mode .dashboard-topline,
    body.dashboard-mode .dashboard-controls,
    body.dashboard-mode .dashboard-kpis,
    body.dashboard-mode .dashboard-grid,
    body.dashboard-mode .dashboard-footer-note {
      width: 100%;
      min-width: 0;
      max-width: 100%;
      box-sizing: border-box;
    }

    body.dashboard-mode .dashboard-controls {
      grid-template-columns: minmax(260px, 1fr) minmax(130px, 164px) 42px minmax(150px, 196px);
    }

    body.dashboard-mode .dashboard-work-card,
    body.dashboard-mode .dashboard-select-card:first-child,
    body.dashboard-mode .dashboard-period-card,
    body.dashboard-mode .dashboard-user-card {
      width: 100%;
      min-width: 0;
    }

    body.dashboard-mode .dashboard-sidebar,
    body.dashboard-mode.dashboard-menu-collapsed .dashboard-sidebar,
    body.dashboard-mode:not(.dashboard-menu-collapsed) .dashboard-sidebar {
      max-width: 100%;
      box-sizing: border-box;
    }

    body.dashboard-mode .dashboard-main,
    body.dashboard-mode.dashboard-menu-collapsed .dashboard-main {
      height: 100vh;
      max-height: 100vh;
      grid-template-rows: 72px 94px minmax(0, 1fr) 34px;
      overflow: hidden;
    }

    body.dashboard-mode .dashboard-topline {
      height: 72px;
      min-height: 72px;
      gap: 12px;
      padding: 10px 18px;
    }

    body.dashboard-mode .dashboard-heading h2 {
      font-size: 18px;
    }

    body.dashboard-mode .dashboard-heading p {
      font-size: 12px;
      margin-top: 3px;
    }

    body.dashboard-mode .dashboard-controls {
      grid-template-columns: minmax(220px, 1fr) minmax(118px, 142px) 38px minmax(132px, 176px);
      gap: 8px;
    }

    body.dashboard-mode .dashboard-select-card,
    body.dashboard-mode .dashboard-user-card {
      height: 44px;
      min-height: 44px;
      padding: 6px 10px;
    }

    body.dashboard-mode .dashboard-notify-button {
      width: 38px;
      min-width: 38px;
      height: 38px;
      min-height: 38px;
    }

    body.dashboard-mode .dashboard-kpis,
    body.dashboard-mode.dashboard-menu-collapsed .dashboard-kpis {
      height: 94px;
      min-height: 94px;
      padding: 8px 18px;
      gap: 8px;
      overflow: hidden;
    }

    body.dashboard-mode .kpi-card {
      height: 78px;
      padding: 9px 10px;
      gap: 6px;
    }

    body.dashboard-mode .kpi-value-line {
      grid-template-columns: 30px minmax(0, 1fr);
      gap: 8px;
    }

    body.dashboard-mode .kpi-icon {
      width: 30px;
      height: 30px;
    }

    body.dashboard-mode .kpi-value-line strong,
    body.dashboard-mode #homePercentAvg,
    body.dashboard-mode #homeCostRealized {
      font-size: 20px;
    }

    body.dashboard-mode .kpi-card small {
      font-size: 10px;
    }

    body.dashboard-mode .dashboard-grid,
    body.dashboard-mode.dashboard-menu-collapsed .dashboard-grid {
      height: auto;
      min-height: 0;
      grid-template-rows: minmax(0, 1fr) minmax(0, 0.82fr);
      gap: 8px;
      padding: 0 18px 8px;
      overflow: hidden;
    }

    body.dashboard-mode .dashboard-card {
      min-height: 0;
      height: 100%;
      gap: 7px;
      padding: 10px;
    }

    body.dashboard-mode .dashboard-summary-text {
      max-height: 50px;
      font-size: 10px;
      line-height: 1.3;
      -webkit-line-clamp: 3;
    }

    body.dashboard-mode .dashboard-line-chart svg {
      height: 158px;
    }

    body.dashboard-mode .dashboard-budget-chart {
      height: 128px;
      padding: 6px 10px 4px;
    }

    body.dashboard-mode .budget-column {
      height: 110px;
    }

    body.dashboard-mode .dashboard-timeline {
      max-height: 172px;
    }

    body.dashboard-mode .timeline-compact-row,
    body.dashboard-mode .dashboard-action-row,
    body.dashboard-mode .productivity-week-row {
      min-height: 32px;
      padding: 5px 0;
    }

    body.dashboard-mode .dashboard-footer-note {
      width: auto;
      max-width: none;
      height: 34px;
      min-height: 34px;
      margin: 0 18px 8px;
      padding: 7px 10px;
      font-size: 10px;
    }

    body.dashboard-mode .dashboard-evidence-grid {
      grid-template-columns: repeat(2, minmax(0, 1fr));
      gap: 8px;
    }

    body.dashboard-mode .evidence-frame {
      aspect-ratio: 2.05 / 1;
    }

    body.dashboard-mode .dashboard-main,
    body.dashboard-mode.dashboard-menu-collapsed .dashboard-main {
      grid-template-rows: 68px 82px minmax(0, 1fr) 30px;
    }

    body.dashboard-mode .dashboard-topline {
      height: 68px;
      min-height: 68px;
      padding: 8px 18px;
    }

    body.dashboard-mode .dashboard-kpis,
    body.dashboard-mode.dashboard-menu-collapsed .dashboard-kpis {
      height: 82px;
      min-height: 82px;
      padding: 6px 18px;
    }

    body.dashboard-mode .kpi-card {
      height: 70px;
      padding: 8px 10px;
    }

    body.dashboard-mode .dashboard-grid,
    body.dashboard-mode.dashboard-menu-collapsed .dashboard-grid {
      grid-template-rows: minmax(0, 1.08fr) minmax(0, 0.74fr);
      gap: 8px;
      padding: 0 18px 6px;
    }

    body.dashboard-mode .dashboard-grid > .dashboard-card:nth-child(1) {
      grid-column: 1 / span 2;
      grid-row: 1;
    }

    body.dashboard-mode .dashboard-grid > .dashboard-card:nth-child(2) {
      grid-column: 3 / span 5;
      grid-row: 1;
    }

    body.dashboard-mode .dashboard-grid > .dashboard-card:nth-child(3) {
      grid-column: 8 / span 2;
      grid-row: 1;
    }

    body.dashboard-mode .dashboard-grid > .dashboard-card:nth-child(4) {
      grid-column: 10 / span 3;
      grid-row: 1;
    }

    body.dashboard-mode .dashboard-grid > .dashboard-card:nth-child(5) {
      grid-column: 1 / span 3;
      grid-row: 2;
    }

    body.dashboard-mode .dashboard-grid > .dashboard-card:nth-child(6) {
      grid-column: 4 / span 3;
      grid-row: 2;
    }

    body.dashboard-mode .dashboard-grid > .dashboard-card:nth-child(7) {
      grid-column: 7 / span 6;
      grid-row: 2;
    }

    body.dashboard-mode .dashboard-card {
      padding: 9px;
      gap: 6px;
    }

    body.dashboard-mode .dashboard-grid > .dashboard-card:nth-child(1) .dashboard-card-head {
      align-items: center;
    }

    body.dashboard-mode .dashboard-grid > .dashboard-card:nth-child(1) .dashboard-card-actions {
      display: none;
    }

    body.dashboard-mode .dashboard-grid > .dashboard-card:nth-child(1) .dashboard-summary-text {
      max-height: 44px;
      font-size: 10px;
      line-height: 1.25;
      -webkit-line-clamp: 3;
    }

    body.dashboard-mode .dashboard-grid > .dashboard-card:nth-child(1) .executive-meter-list {
      gap: 5px;
    }

    body.dashboard-mode .dashboard-grid > .dashboard-card:nth-child(1) .executive-meter {
      gap: 3px;
    }

    body.dashboard-mode .dashboard-grid > .dashboard-card:nth-child(1) .executive-meter-label {
      font-size: 9px;
      line-height: 1.1;
    }

    body.dashboard-mode .dashboard-grid > .dashboard-card:nth-child(1) .executive-track {
      height: 5px;
    }

    body.dashboard-mode .dashboard-grid > .dashboard-card:nth-child(2) {
      padding-inline: 12px;
    }

    body.dashboard-mode .dashboard-grid > .dashboard-card:nth-child(2) .dashboard-card-head {
      align-items: center;
    }

    body.dashboard-mode .dashboard-grid > .dashboard-card:nth-child(2) .dashboard-line-chart {
      min-height: 0;
      display: grid;
      align-items: stretch;
    }

    body.dashboard-mode .dashboard-grid > .dashboard-card:nth-child(2) .dashboard-line-chart svg {
      width: 100%;
      height: 100%;
      min-height: 190px;
      max-height: 238px;
    }

    body.dashboard-mode .dashboard-footer-note {
      height: 30px;
      min-height: 30px;
      margin: 0 18px 6px;
      padding: 5px 10px;
    }

    body.dashboard-mode.dashboard-menu-collapsed .dashboard-side-nav {
      justify-items: center;
      align-content: start;
      gap: 8px;
    }

    body.dashboard-mode.dashboard-menu-collapsed .dash-nav-button,
    body.dashboard-mode.dashboard-menu-collapsed .dashboard-collapse-button {
      width: 44px;
      min-width: 44px;
      height: 44px;
      min-height: 44px;
      display: grid;
      grid-template-columns: 1fr;
      place-items: center;
      padding: 0;
      margin-inline: auto;
      border-radius: 8px;
      text-align: center;
    }

    body.dashboard-mode.dashboard-menu-collapsed .dash-nav-button .icon,
    body.dashboard-mode.dashboard-menu-collapsed .dashboard-collapse-button .icon {
      width: 22px;
      height: 22px;
      display: block;
      margin: 0 auto;
    }

    body.dashboard-mode.dashboard-menu-collapsed .dash-nav-button span,
    body.dashboard-mode.dashboard-menu-collapsed .dashboard-collapse-button span {
      display: none;
    }

    body.dashboard-mode.dashboard-menu-collapsed .executive-dashboard-page {
      grid-template-columns: 76px minmax(0, calc(100vw - 76px)) !important;
      width: 100vw !important;
      max-width: 100vw !important;
      overflow: hidden !important;
    }

    body.dashboard-mode:not(.dashboard-menu-collapsed) .executive-dashboard-page {
      grid-template-columns: 184px minmax(0, calc(100vw - 184px)) !important;
      width: 100vw !important;
      max-width: 100vw !important;
      overflow: hidden !important;
    }

    body.dashboard-mode.dashboard-menu-collapsed .dashboard-main {
      width: calc(100vw - 76px) !important;
      max-width: calc(100vw - 76px) !important;
    }

    body.dashboard-mode:not(.dashboard-menu-collapsed) .dashboard-main {
      width: calc(100vw - 184px) !important;
      max-width: calc(100vw - 184px) !important;
    }

    body.dashboard-mode.dashboard-menu-collapsed .dashboard-sidebar {
      width: 76px !important;
      min-width: 76px !important;
      padding: 18px 0 22px !important;
      justify-items: center;
    }

    body.dashboard-mode.dashboard-menu-collapsed .dashboard-side-brand {
      margin-inline: auto;
    }

    body.dashboard-mode.dashboard-menu-collapsed .dashboard-controls {
      grid-template-columns: minmax(220px, 1fr) 132px 36px 42px !important;
    }

    body.dashboard-mode.dashboard-menu-collapsed .dashboard-topline {
      grid-template-columns: minmax(260px, 0.52fr) minmax(760px, 1.48fr) !important;
    }

    body.dashboard-mode:not(.dashboard-menu-collapsed) .dashboard-topline {
      grid-template-columns: minmax(250px, 0.48fr) minmax(720px, 1.52fr) !important;
    }

    body.dashboard-mode.dashboard-menu-collapsed .dashboard-controls,
    body.dashboard-mode:not(.dashboard-menu-collapsed) .dashboard-controls {
      width: 100% !important;
      min-width: 0 !important;
      justify-self: stretch;
    }

    body.dashboard-mode.dashboard-menu-collapsed .dashboard-controls {
      grid-template-columns: minmax(460px, 1fr) 132px 36px 42px !important;
    }

    body.dashboard-mode:not(.dashboard-menu-collapsed) .dashboard-controls {
      grid-template-columns: minmax(420px, 1fr) 132px 36px 42px !important;
    }

    body.dashboard-mode .dashboard-work-card {
      min-width: 0 !important;
    }

    body.dashboard-mode .dashboard-work-card select {
      overflow: hidden;
      text-overflow: ellipsis;
      white-space: nowrap;
      font-size: 14px;
    }

    body.dashboard-mode .dashboard-heading {
      min-width: 0;
    }

    body.dashboard-mode .dashboard-heading h2,
    body.dashboard-mode .dashboard-heading p {
      overflow: hidden;
      text-overflow: ellipsis;
      white-space: nowrap;
    }

    body.dashboard-mode.dashboard-menu-collapsed .dashboard-sidebar {
      align-items: start !important;
      justify-items: center !important;
      place-items: start center !important;
    }

    body.dashboard-mode.dashboard-menu-collapsed .dashboard-side-brand,
    body.dashboard-mode.dashboard-menu-collapsed .dashboard-side-nav,
    body.dashboard-mode.dashboard-menu-collapsed .dashboard-collapse-button {
      justify-self: center !important;
    }

    body.dashboard-mode.dashboard-menu-collapsed .dashboard-side-nav {
      width: 100% !important;
      display: grid !important;
      justify-items: center !important;
    }

    body.dashboard-mode.dashboard-menu-collapsed .dash-nav-button,
    body.dashboard-mode.dashboard-menu-collapsed .dashboard-collapse-button {
      place-content: center !important;
      place-items: center !important;
      justify-content: center !important;
      align-content: center !important;
      gap: 0 !important;
      line-height: 0 !important;
      text-indent: 0 !important;
    }

    body.dashboard-mode.dashboard-menu-collapsed .dash-nav-button .icon,
    body.dashboard-mode.dashboard-menu-collapsed .dashboard-collapse-button .icon {
      grid-column: 1 !important;
      grid-row: 1 !important;
      justify-self: center !important;
      align-self: center !important;
      margin: 0 !important;
    }

    body.dashboard-mode.dashboard-menu-collapsed .dashboard-user-card {
      width: 42px !important;
      min-width: 42px !important;
      grid-template-columns: 1fr;
      justify-items: center;
      padding: 4px !important;
    }

    body.dashboard-mode.dashboard-menu-collapsed .dashboard-user-card > div:not(.dashboard-avatar) {
      display: none;
    }

    body.dashboard-mode.dashboard-menu-collapsed .dashboard-avatar {
      width: 32px;
      height: 32px;
      font-size: 10px;
    }

    body.dashboard-mode .dashboard-grid,
    body.dashboard-mode.dashboard-menu-collapsed .dashboard-grid {
      grid-template-columns: repeat(12, minmax(0, 1fr)) !important;
      padding-inline: 14px !important;
    }

    body.dashboard-mode .dashboard-kpis,
    body.dashboard-mode.dashboard-menu-collapsed .dashboard-kpis {
      grid-template-columns: repeat(6, minmax(0, 1fr)) !important;
      padding-inline: 14px !important;
      gap: 7px !important;
    }

    body.dashboard-mode .dashboard-grid > .dashboard-card:nth-child(1) {
      grid-column: 1 / span 2 !important;
    }

    body.dashboard-mode .dashboard-grid > .dashboard-card:nth-child(2) {
      grid-column: 3 / span 5 !important;
    }

    body.dashboard-mode .dashboard-grid > .dashboard-card:nth-child(3) {
      grid-column: 8 / span 2 !important;
    }

    body.dashboard-mode .dashboard-grid > .dashboard-card:nth-child(3) {
      align-content: end;
    }

    body.dashboard-mode .dashboard-grid > .dashboard-card:nth-child(3) .dashboard-budget-chart {
      margin-top: auto;
      min-height: 0;
      height: 104px;
      padding-top: 0;
      padding-bottom: 2px;
    }

    body.dashboard-mode .dashboard-grid > .dashboard-card:nth-child(3) .budget-column {
      height: 94px;
      gap: 5px;
    }

    body.dashboard-mode .dashboard-grid > .dashboard-card:nth-child(4) {
      grid-column: 10 / span 3 !important;
    }

    body.dashboard-mode .dashboard-grid > .dashboard-card:nth-child(5) {
      grid-column: 1 / span 4 !important;
    }

    body.dashboard-mode .dashboard-grid > .dashboard-card:nth-child(6) {
      grid-column: 5 / span 3 !important;
    }

    body.dashboard-mode .dashboard-grid > .dashboard-card:nth-child(7) {
      grid-column: 8 / span 5 !important;
    }

    body.dashboard-mode .dashboard-grid > .dashboard-card:nth-child(1) .dashboard-summary-text {
      display: block;
      max-height: none;
      overflow: visible;
      font-size: 9.5px;
      line-height: 1.22;
      -webkit-line-clamp: unset;
    }

    body.dashboard-mode .dashboard-grid > .dashboard-card:nth-child(1) .executive-meter-list {
      margin-top: 2px;
    }

    body.dashboard-mode .dashboard-grid > .dashboard-card:nth-child(5) .dashboard-action-list {
      align-content: start;
    }

    body.dashboard-mode .dashboard-grid > .dashboard-card:nth-child(5) .empty {
      min-height: 72px;
      padding: 12px;
      font-size: 12px;
      line-height: 1.25;
    }

    body.dashboard-mode .priority-summary-grid {
      display: grid;
      grid-template-columns: repeat(3, minmax(0, 1fr));
      gap: 8px;
      min-width: 0;
    }

    body.dashboard-mode .priority-summary-card {
      min-height: 70px;
      display: grid;
      align-content: center;
      gap: 3px;
      min-width: 0;
      padding: 9px;
      border: 1px solid #e1e8ea;
      border-radius: 8px;
      background: #fbfcfd;
    }

    body.dashboard-mode .priority-summary-card span {
      color: #60717a;
      font-size: 9px;
      font-weight: 900;
      text-transform: uppercase;
    }

    body.dashboard-mode .priority-summary-card strong {
      color: #172126;
      font-size: 24px;
      line-height: 1;
      font-weight: 940;
    }

    body.dashboard-mode .priority-summary-card small {
      overflow: hidden;
      color: #60717a;
      font-size: 9px;
      line-height: 1.15;
      font-weight: 760;
      text-overflow: ellipsis;
      white-space: nowrap;
    }

    body.dashboard-mode .priority-summary-card.danger {
      border-color: rgba(219, 45, 45, 0.22);
      background: #fff5f5;
    }

    body.dashboard-mode .priority-summary-card.warning {
      border-color: rgba(217, 127, 30, 0.24);
      background: #fff8ed;
    }

    body.dashboard-mode .priority-summary-card.good {
      border-color: rgba(8, 115, 95, 0.2);
      background: #f2fbf8;
    }

    body.dashboard-mode .priority-next-list {
      display: grid;
      gap: 0;
      min-width: 0;
    }

    body.dashboard-mode .priority-next-row {
      display: grid;
      grid-template-columns: minmax(0, 1fr) auto;
      gap: 8px;
      align-items: center;
      min-width: 0;
      padding: 6px 0;
      border-top: 1px solid #edf2f3;
    }

    body.dashboard-mode .priority-next-row strong,
    body.dashboard-mode .priority-next-row span {
      overflow: hidden;
      text-overflow: ellipsis;
      white-space: nowrap;
    }

    body.dashboard-mode .priority-next-row strong {
      color: #243840;
      font-size: 10px;
      font-weight: 880;
    }

    body.dashboard-mode .priority-next-row span {
      color: #60717a;
      font-size: 9px;
      font-weight: 760;
    }

    body:not(.dashboard-mode) {
      background: #f4f7f8;
    }

    body:not(.dashboard-mode) .shell {
      width: 100%;
      max-width: none;
      padding: 14px 18px 24px;
    }

    body:not(.dashboard-mode) .app-view.active {
      display: grid;
      gap: 12px;
    }

    body:not(.dashboard-mode) .layout,
    body:not(.dashboard-mode) .page-grid,
    body:not(.dashboard-mode) .commodity-layout,
    body:not(.dashboard-mode) .safety-layout,
    body:not(.dashboard-mode) .main-stack,
    body:not(.dashboard-mode) .side-stack {
      gap: 12px;
    }

    body:not(.dashboard-mode) .status-strip,
    body:not(.dashboard-mode) .panel-grid,
    body:not(.dashboard-mode) .summary-grid {
      gap: 8px;
      margin-bottom: 12px;
    }

    body:not(.dashboard-mode) .metric {
      min-height: 74px;
      padding: 11px 12px;
      border-left-width: 4px;
      border-radius: 8px;
      box-shadow: 0 8px 22px rgba(13, 34, 40, 0.06);
    }

    body:not(.dashboard-mode) .metric-label {
      font-size: 10px;
      letter-spacing: 0.03em;
    }

    body:not(.dashboard-mode) .metric-value {
      margin-top: 5px;
      font-size: 23px;
    }

    body:not(.dashboard-mode) .metric-note {
      margin-top: 4px;
      font-size: 10px;
    }

    body:not(.dashboard-mode) .band {
      border-radius: 8px;
      box-shadow: 0 8px 24px rgba(13, 34, 40, 0.06);
    }

    body:not(.dashboard-mode) .band-header {
      min-height: 48px;
      padding: 11px 14px;
    }

    body:not(.dashboard-mode) .band-title h2 {
      font-size: 14px;
      text-transform: uppercase;
    }

    body:not(.dashboard-mode) .band-body {
      padding: 14px;
    }

    body:not(.dashboard-mode) .management-switch {
      gap: 6px;
      margin-bottom: 10px;
      padding: 6px;
      border: 1px solid #e0e8eb;
      border-radius: 10px;
      background: #fff;
      box-shadow: 0 8px 20px rgba(13, 34, 40, 0.05);
    }

    body:not(.dashboard-mode) .management-switch .sub-tab-button {
      min-height: 32px;
      border-radius: 7px;
      font-size: 10px;
    }

    body:not(.dashboard-mode) .inline-form,
    body:not(.dashboard-mode) .prod-hero-grid,
    body:not(.dashboard-mode) .prod-indicator-grid,
    body:not(.dashboard-mode) .prod-activity-grid,
    body:not(.dashboard-mode) .commodity-toolbar,
    body:not(.dashboard-mode) .commodity-tools,
    body:not(.dashboard-mode) .takeoff-toolbar,
    body:not(.dashboard-mode) .gantt-toolbar,
    body:not(.dashboard-mode) .safety-score-entry {
      gap: 8px;
    }

    body:not(.dashboard-mode) .commodity-toolbar,
    body:not(.dashboard-mode) .commodity-tools,
    body:not(.dashboard-mode) .takeoff-toolbar,
    body:not(.dashboard-mode) .gantt-toolbar {
      padding: 8px;
      border-radius: 8px;
      background: #f8fbfb;
    }

    body:not(.dashboard-mode) input,
    body:not(.dashboard-mode) select,
    body:not(.dashboard-mode) textarea {
      min-height: 34px;
      border-radius: 7px;
      font-size: 12px;
    }

    body:not(.dashboard-mode) label {
      font-size: 10px;
      letter-spacing: 0.03em;
    }

    body:not(.dashboard-mode) .primary-button,
    body:not(.dashboard-mode) .secondary-button,
    body:not(.dashboard-mode) .icon-button {
      min-height: 34px;
      border-radius: 7px;
      font-size: 10px;
    }

    body:not(.dashboard-mode) table th,
    body:not(.dashboard-mode) table td {
      padding: 7px 8px;
      font-size: 11px;
      line-height: 1.25;
    }

    body:not(.dashboard-mode) .table-wrap {
      border-radius: 8px;
    }

    .subpage-dashboard-sidebar {
      display: none;
    }

    body.executive-subpage-mode {
      min-width: 0;
      overflow-x: hidden;
      background: #f4f7f8;
    }

    body.executive-subpage-mode .app-header {
      display: none;
    }

    body.executive-subpage-mode .subpage-dashboard-sidebar {
      position: fixed;
      inset: 0 auto 0 0;
      z-index: 20;
      display: grid;
      width: 184px;
      min-width: 184px;
      height: 100vh;
      min-height: 100vh;
      border-radius: 0;
    }

    body.executive-subpage-mode.dashboard-menu-collapsed .subpage-dashboard-sidebar {
      width: 76px;
      min-width: 76px;
      padding: 18px 0 22px;
      justify-items: center;
      align-items: start;
      place-items: start center;
    }

    body.executive-subpage-mode.dashboard-menu-collapsed .subpage-dashboard-sidebar .dashboard-side-brand,
    body.executive-subpage-mode.dashboard-menu-collapsed .subpage-dashboard-sidebar .dashboard-side-nav,
    body.executive-subpage-mode.dashboard-menu-collapsed .subpage-dashboard-sidebar .dashboard-collapse-button {
      justify-self: center;
    }

    body.executive-subpage-mode.dashboard-menu-collapsed .subpage-dashboard-sidebar .dashboard-side-nav {
      width: 100%;
      justify-items: center;
    }

    body.executive-subpage-mode.dashboard-menu-collapsed .subpage-dashboard-sidebar .dash-nav-button,
    body.executive-subpage-mode.dashboard-menu-collapsed .subpage-dashboard-sidebar .dashboard-collapse-button {
      width: 44px;
      min-width: 44px;
      height: 44px;
      min-height: 44px;
      display: grid;
      grid-template-columns: 1fr;
      place-content: center;
      place-items: center;
      justify-content: center;
      align-content: center;
      gap: 0;
      padding: 0;
      margin-inline: auto;
      border-radius: 8px;
      line-height: 0;
      text-align: center;
    }

    body.executive-subpage-mode.dashboard-menu-collapsed .subpage-dashboard-sidebar .dash-nav-button .icon,
    body.executive-subpage-mode.dashboard-menu-collapsed .subpage-dashboard-sidebar .dashboard-collapse-button .icon {
      grid-column: 1;
      grid-row: 1;
      justify-self: center;
      align-self: center;
      width: 22px;
      height: 22px;
      margin: 0;
    }

    body.executive-subpage-mode.dashboard-menu-collapsed .subpage-dashboard-sidebar .dash-nav-button span,
    body.executive-subpage-mode.dashboard-menu-collapsed .subpage-dashboard-sidebar .dashboard-collapse-button span,
    body.executive-subpage-mode.dashboard-menu-collapsed .subpage-dashboard-sidebar .dashboard-quick-links {
      display: none;
    }

    body.executive-subpage-mode .shell {
      width: calc(100vw - 184px);
      max-width: calc(100vw - 184px);
      min-height: 100vh;
      margin: 0 0 0 184px;
      padding: 0;
    }

    body.executive-subpage-mode.dashboard-menu-collapsed .shell {
      width: calc(100vw - 76px);
      max-width: calc(100vw - 76px);
      margin-left: 76px;
    }

    body.executive-subpage-mode .app-view[data-view]:not([data-view="inicio"]).active {
      display: grid;
      align-content: start;
      gap: 12px;
      min-height: 100vh;
      padding: 12px 14px 18px;
    }

    body.executive-subpage-mode .executive-page-topline {
      min-height: 66px;
      display: grid;
      grid-template-columns: minmax(0, 1fr) auto;
      gap: 14px;
      align-items: center;
      padding: 10px 14px;
      border: 1px solid #e0e8eb;
      border-radius: 8px;
      background: #fff;
      box-shadow: 0 8px 24px rgba(13, 34, 40, 0.06);
    }

    body.executive-subpage-mode .executive-page-topline .dashboard-heading h2 {
      margin: 0;
      color: #142830;
      font-size: 20px;
      line-height: 1.05;
      font-weight: 950;
      text-transform: uppercase;
      letter-spacing: 0;
    }

    body.executive-subpage-mode .executive-page-topline .dashboard-heading p {
      margin: 5px 0 0;
      color: #60717a;
      font-size: 12px;
      font-weight: 720;
    }

    body.executive-subpage-mode .executive-page-toolbar {
      display: flex;
      flex-wrap: wrap;
      align-items: center;
      justify-content: flex-end;
      gap: 8px;
      min-width: 0;
    }

    body.executive-subpage-mode .executive-page-toolbar .dashboard-pill {
      min-width: 0;
      max-width: 240px;
      overflow: hidden;
      text-overflow: ellipsis;
    }

    body.executive-subpage-mode .planning-work-filter {
      min-width: 260px;
      display: grid;
      grid-template-columns: auto minmax(180px, 1fr);
      gap: 8px;
      align-items: center;
      padding: 7px 9px;
      border: 1px solid #e0e8eb;
      border-radius: 8px;
      background: #f8fbfb;
    }

    body.executive-subpage-mode .planning-work-filter span {
      color: #536873;
      font-size: 10px;
      font-weight: 900;
    }

    body.executive-subpage-mode .planning-work-filter select {
      min-height: 30px;
      padding: 4px 8px;
      border-radius: 6px;
      font-size: 12px;
    }

    body.executive-subpage-mode .status-strip,
    body.executive-subpage-mode .panel-grid,
    body.executive-subpage-mode .summary-grid {
      grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
      gap: 8px;
      margin: 0;
    }

    body.executive-subpage-mode .metric,
    body.executive-subpage-mode .band {
      border: 1px solid #e0e8eb;
      border-radius: 8px;
      background: #fff;
      box-shadow: 0 8px 24px rgba(13, 34, 40, 0.06);
    }

    body.executive-subpage-mode .metric {
      min-height: 78px;
      padding: 11px 12px;
      border-left-width: 0;
    }

    .metric-action {
      width: 100%;
      appearance: none;
      border: 1px solid #e0e8eb;
      color: inherit;
      font: inherit;
      text-align: left;
      cursor: pointer;
    }

    body.executive-subpage-mode .metric::before {
      content: "";
      display: block;
      width: 28px;
      height: 3px;
      margin-bottom: 8px;
      border-radius: 999px;
      background: var(--green);
    }

    body.executive-subpage-mode .metric:nth-child(3)::before,
    body.executive-subpage-mode .metric:nth-child(4)::before {
      background: var(--amber);
    }

    body.executive-subpage-mode .metric:nth-child(5)::before {
      background: var(--blue);
    }

    body.executive-subpage-mode .metric-label,
    body.executive-subpage-mode .band-title h2,
    body.executive-subpage-mode table th {
      color: #344b55;
      letter-spacing: 0.02em;
      text-transform: uppercase;
    }

    body.executive-subpage-mode .metric-value {
      color: #172126;
      font-size: 24px;
      line-height: 1;
      font-weight: 940;
    }

    body.executive-subpage-mode .management-switch {
      position: static;
      display: flex;
      gap: 6px;
      margin: 0;
      padding: 6px;
      border: 1px solid #e0e8eb;
      border-radius: 8px;
      background: #fff;
      box-shadow: 0 8px 24px rgba(13, 34, 40, 0.05);
    }

    body.executive-subpage-mode .management-switch .sub-tab-button {
      min-height: 32px;
      border: 0;
      border-radius: 7px;
      background: transparent;
      color: #405761;
      font-size: 10px;
      font-weight: 900;
    }

    body.executive-subpage-mode .management-switch .sub-tab-button.active,
    body.executive-subpage-mode .management-switch .sub-tab-button:hover {
      color: #fff;
      background: var(--green);
    }

    body.executive-subpage-mode .layout {
      grid-template-columns: minmax(0, 1.35fr) minmax(310px, 0.65fr);
      gap: 12px;
      align-items: start;
    }

    body.executive-subpage-mode .page-grid,
    body.executive-subpage-mode .main-stack,
    body.executive-subpage-mode .side-stack,
    body.executive-subpage-mode .management-panel.active {
      gap: 12px;
    }

    body.executive-subpage-mode .band-header {
      min-height: 48px;
      padding: 11px 13px;
      border-bottom-color: #edf2f3;
    }

    body.executive-subpage-mode .band-title {
      gap: 8px;
    }

    body.executive-subpage-mode .band-title .icon {
      width: 20px;
      height: 20px;
    }

    body.executive-subpage-mode .band-title h2 {
      font-size: 13px;
      font-weight: 930;
    }

    body.executive-subpage-mode .band-body {
      padding: 12px;
    }

    body.executive-subpage-mode .inline-form,
    body.executive-subpage-mode .prod-hero-grid,
    body.executive-subpage-mode .prod-indicator-grid,
    body.executive-subpage-mode .prod-activity-grid,
    body.executive-subpage-mode .commodity-toolbar,
    body.executive-subpage-mode .commodity-tools,
    body.executive-subpage-mode .takeoff-toolbar,
    body.executive-subpage-mode .gantt-toolbar,
    body.executive-subpage-mode .safety-score-entry {
      gap: 8px;
    }

    body.executive-subpage-mode .commodity-toolbar,
    body.executive-subpage-mode .commodity-tools,
    body.executive-subpage-mode .takeoff-toolbar,
    body.executive-subpage-mode .gantt-toolbar {
      padding: 8px;
      border: 1px solid #e6eef0;
      border-radius: 8px;
      background: #f8fbfb;
    }

    body.executive-subpage-mode input,
    body.executive-subpage-mode select,
    body.executive-subpage-mode textarea {
      min-height: 34px;
      border-radius: 7px;
      font-size: 12px;
    }

    body.executive-subpage-mode label {
      color: #536873;
      font-size: 10px;
      font-weight: 900;
      text-transform: uppercase;
      letter-spacing: 0.03em;
    }

    body.executive-subpage-mode .primary-button,
    body.executive-subpage-mode .secondary-button,
    body.executive-subpage-mode .icon-button {
      min-height: 34px;
      border-radius: 7px;
      font-size: 10px;
      font-weight: 900;
    }

    body.executive-subpage-mode .table-wrap {
      max-width: 100%;
      overflow: auto;
      border-radius: 8px;
    }

    body.executive-subpage-mode table {
      width: 100%;
    }

    body.executive-subpage-mode table th,
    body.executive-subpage-mode table td {
      padding: 7px 8px;
      font-size: 10.5px;
      line-height: 1.25;
      vertical-align: middle;
    }

    body.executive-subpage-mode .history-calendar,
    body.executive-subpage-mode .commodity-calendar,
    body.executive-subpage-mode .commodity-target-panel,
    body.executive-subpage-mode .safety-score-entry,
    body.executive-subpage-mode .safety-chart {
      border-radius: 8px;
    }

    body.executive-subpage-mode .commodity-layout {
      grid-template-columns: minmax(260px, 0.42fr) minmax(0, 1fr);
      gap: 12px;
    }

    body.executive-subpage-mode .safety-layout {
      grid-template-columns: minmax(300px, 0.42fr) minmax(0, 1fr);
      gap: 12px;
    }

    body.locked .subpage-dashboard-sidebar {
      display: none !important;
    }

    @media (max-width: 980px) {
      body.dashboard-mode .dashboard-topline {
        grid-template-columns: 1fr;
      }

      body.dashboard-mode .dashboard-controls {
        grid-template-columns: minmax(0, 1fr) minmax(120px, 164px) 42px minmax(140px, 196px);
        justify-content: stretch;
        overflow: visible;
      }

      body.dashboard-mode .dashboard-kpis,
      body.dashboard-mode.dashboard-menu-collapsed .dashboard-kpis {
        grid-template-columns: repeat(3, minmax(0, 1fr));
      }

      body.dashboard-mode .dashboard-grid,
      body.dashboard-mode.dashboard-menu-collapsed .dashboard-grid {
        grid-template-columns: repeat(6, minmax(0, 1fr));
        grid-template-rows: auto;
      }

      body.dashboard-mode .dashboard-grid > .dashboard-card:nth-child(n) {
        grid-column: span 3;
        grid-row: auto;
      }

      body.dashboard-mode .dashboard-grid > .dashboard-card:nth-child(2),
      body.dashboard-mode .dashboard-grid > .dashboard-card:nth-child(7),
      body.dashboard-mode .dashboard-grid > .dashboard-card:nth-child(8),
      body.dashboard-mode .dashboard-grid > .dashboard-card:nth-child(9),
      body.dashboard-mode .dashboard-grid > .dashboard-card:nth-child(10) {
        grid-column: span 6;
      }
    }

    @media (max-width: 820px) {
      body.dashboard-mode .executive-dashboard-page,
      body.dashboard-mode:not(.dashboard-menu-collapsed) .executive-dashboard-page {
        grid-template-columns: 1fr;
      }

      body.dashboard-mode .dashboard-sidebar,
      body.dashboard-mode.dashboard-menu-collapsed .dashboard-sidebar,
      body.dashboard-mode:not(.dashboard-menu-collapsed) .dashboard-sidebar {
        position: static;
        width: auto;
        min-width: 0;
        height: auto;
        min-height: 0;
      }

      body.dashboard-mode .dashboard-main,
      body.dashboard-mode.dashboard-menu-collapsed .dashboard-main {
        height: auto;
        max-height: none;
        overflow: visible;
      }

      body.dashboard-mode .dashboard-kpis,
      body.dashboard-mode.dashboard-menu-collapsed .dashboard-kpis,
      body.dashboard-mode .dashboard-grid,
      body.dashboard-mode.dashboard-menu-collapsed .dashboard-grid {
        grid-template-columns: 1fr;
      }

      body.dashboard-mode .dashboard-controls {
        grid-template-columns: 1fr;
      }

      body.dashboard-mode .dashboard-work-card,
      body.dashboard-mode .dashboard-select-card:first-child,
      body.dashboard-mode .dashboard-period-card {
        width: 100%;
        min-width: 0;
      }

      body.dashboard-mode .dashboard-grid > .dashboard-card:nth-child(n),
      body.dashboard-mode .dashboard-grid > .dashboard-card:nth-child(2),
      body.dashboard-mode .dashboard-grid > .dashboard-card:nth-child(10) {
        grid-column: 1;
      }
    }

    @media (max-width: 760px) {
      html,
      body {
        width: 100%;
        max-width: 100%;
        overflow-x: hidden !important;
      }

      body {
        background: #f4f7f8;
      }

      body.dashboard-mode,
      body.executive-subpage-mode {
        min-width: 0 !important;
        overflow-x: hidden !important;
        overflow-y: auto !important;
      }

      body.dashboard-mode .shell,
      body.executive-subpage-mode .shell {
        width: 100% !important;
        max-width: 100% !important;
        min-height: 100vh;
        margin: 0 !important;
        padding: 0 !important;
        overflow-x: hidden !important;
      }

      body.dashboard-mode .executive-dashboard-page,
      body.dashboard-mode:not(.dashboard-menu-collapsed) .executive-dashboard-page,
      body.dashboard-mode.dashboard-menu-collapsed .executive-dashboard-page {
        width: 100% !important;
        max-width: 100% !important;
        min-width: 0 !important;
        min-height: 100vh !important;
        display: grid !important;
        grid-template-columns: 1fr !important;
        grid-template-rows: auto 1fr !important;
        overflow-x: hidden !important;
      }

      body.dashboard-mode .dashboard-sidebar,
      body.dashboard-mode:not(.dashboard-menu-collapsed) .dashboard-sidebar,
      body.dashboard-mode.dashboard-menu-collapsed .dashboard-sidebar,
      body.executive-subpage-mode .subpage-dashboard-sidebar,
      body.executive-subpage-mode:not(.dashboard-menu-collapsed) .subpage-dashboard-sidebar,
      body.executive-subpage-mode.dashboard-menu-collapsed .subpage-dashboard-sidebar {
        position: sticky !important;
        top: 0 !important;
        z-index: 25 !important;
        width: 100% !important;
        min-width: 0 !important;
        max-width: 100% !important;
        height: auto !important;
        min-height: 0 !important;
        display: grid !important;
        grid-template-columns: auto minmax(0, 1fr) auto !important;
        align-items: center !important;
        gap: 8px !important;
        padding: 8px 10px !important;
        border-radius: 0 !important;
      }

      body.dashboard-mode .dashboard-side-brand,
      body.executive-subpage-mode .subpage-dashboard-sidebar .dashboard-side-brand {
        width: 40px !important;
        height: 40px !important;
        margin: 0 !important;
      }

      body.dashboard-mode .dashboard-side-brand .icon,
      body.executive-subpage-mode .subpage-dashboard-sidebar .dashboard-side-brand .icon {
        width: 25px !important;
        height: 25px !important;
      }

      body.dashboard-mode .dashboard-side-nav,
      body.executive-subpage-mode .subpage-dashboard-sidebar .dashboard-side-nav {
        width: 100% !important;
        min-width: 0 !important;
        display: grid !important;
        grid-auto-flow: column !important;
        grid-auto-columns: 44px !important;
        grid-template-columns: none !important;
        gap: 6px !important;
        overflow-x: auto !important;
        scrollbar-width: none;
        justify-items: center !important;
      }

      body.dashboard-mode .dashboard-side-nav::-webkit-scrollbar,
      body.executive-subpage-mode .subpage-dashboard-sidebar .dashboard-side-nav::-webkit-scrollbar {
        display: none;
      }

      body.dashboard-mode .dash-nav-button,
      body.dashboard-mode.dashboard-menu-collapsed .dash-nav-button,
      body.executive-subpage-mode .subpage-dashboard-sidebar .dash-nav-button,
      body.executive-subpage-mode.dashboard-menu-collapsed .subpage-dashboard-sidebar .dash-nav-button {
        width: 42px !important;
        min-width: 42px !important;
        height: 42px !important;
        min-height: 42px !important;
        display: grid !important;
        grid-template-columns: 1fr !important;
        place-items: center !important;
        padding: 0 !important;
        border-radius: 9px !important;
        font-size: 0 !important;
      }

      body.dashboard-mode .dash-nav-button span,
      body.executive-subpage-mode .subpage-dashboard-sidebar .dash-nav-button span,
      body.dashboard-mode .dashboard-quick-links,
      body.executive-subpage-mode .subpage-dashboard-sidebar .dashboard-quick-links {
        display: none !important;
      }

      body.dashboard-mode .dash-nav-button .icon,
      body.executive-subpage-mode .subpage-dashboard-sidebar .dash-nav-button .icon {
        width: 21px !important;
        height: 21px !important;
        margin: 0 !important;
      }

      body.dashboard-mode .dashboard-collapse-button,
      body.executive-subpage-mode .subpage-dashboard-sidebar .dashboard-collapse-button {
        width: 38px !important;
        min-width: 38px !important;
        height: 38px !important;
        min-height: 38px !important;
        display: grid !important;
        place-items: center !important;
        padding: 0 !important;
        border-radius: 9px !important;
        font-size: 0 !important;
      }

      body.dashboard-mode .dashboard-main,
      body.dashboard-mode:not(.dashboard-menu-collapsed) .dashboard-main,
      body.dashboard-mode.dashboard-menu-collapsed .dashboard-main {
        width: 100% !important;
        max-width: 100% !important;
        height: auto !important;
        max-height: none !important;
        display: grid !important;
        grid-template-rows: auto !important;
        gap: 10px !important;
        overflow: visible !important;
      }

      body.dashboard-mode .dashboard-topline,
      body.dashboard-mode.dashboard-menu-collapsed .dashboard-topline,
      body.dashboard-mode:not(.dashboard-menu-collapsed) .dashboard-topline {
        width: 100% !important;
        height: auto !important;
        min-height: 0 !important;
        display: grid !important;
        grid-template-columns: 1fr !important;
        gap: 10px !important;
        padding: 14px 12px 0 !important;
        box-shadow: none !important;
      }

      body.dashboard-mode .dashboard-heading h2 {
        font-size: 19px !important;
        white-space: normal !important;
      }

      body.dashboard-mode .dashboard-heading p {
        font-size: 12px !important;
        white-space: normal !important;
      }

      body.dashboard-mode .dashboard-controls,
      body.dashboard-mode.dashboard-menu-collapsed .dashboard-controls,
      body.dashboard-mode:not(.dashboard-menu-collapsed) .dashboard-controls {
        width: 100% !important;
        display: grid !important;
        grid-template-columns: 1fr 1fr !important;
        gap: 8px !important;
        overflow: visible !important;
      }

      body.dashboard-mode .dashboard-work-card {
        grid-column: 1 / -1 !important;
      }

      body.dashboard-mode .dashboard-user-card {
        display: none !important;
      }

      body.dashboard-mode .dashboard-select-card,
      body.dashboard-mode .dashboard-work-card,
      body.dashboard-mode .dashboard-period-card,
      body.dashboard-mode .dashboard-notify-button {
        width: 100% !important;
        min-width: 0 !important;
        height: auto !important;
        min-height: 46px !important;
        padding: 7px 10px !important;
      }

      body.dashboard-mode .dashboard-notify-button {
        justify-self: stretch !important;
      }

      body.dashboard-mode .dashboard-kpis,
      body.dashboard-mode.dashboard-menu-collapsed .dashboard-kpis {
        width: 100% !important;
        height: auto !important;
        min-height: 0 !important;
        display: grid !important;
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
        gap: 8px !important;
        padding: 2px 12px 0 !important;
        overflow: visible !important;
      }

      body.dashboard-mode .kpi-card {
        height: auto !important;
        min-height: 86px !important;
        padding: 10px !important;
      }

      body.dashboard-mode .kpi-value-line strong,
      body.dashboard-mode #homePercentAvg,
      body.dashboard-mode #homeCostRealized {
        font-size: 21px !important;
      }

      body.dashboard-mode .dashboard-grid,
      body.dashboard-mode.dashboard-menu-collapsed .dashboard-grid {
        width: 100% !important;
        height: auto !important;
        min-height: 0 !important;
        display: grid !important;
        grid-template-columns: 1fr !important;
        grid-template-rows: none !important;
        gap: 10px !important;
        padding: 0 12px 12px !important;
        overflow: visible !important;
      }

      body.dashboard-mode .dashboard-grid > .dashboard-card:nth-child(n),
      body.dashboard-mode.dashboard-menu-collapsed .dashboard-grid > .dashboard-card:nth-child(n) {
        grid-column: 1 / -1 !important;
        grid-row: auto !important;
      }

      body.dashboard-mode .dashboard-card {
        width: 100% !important;
        height: auto !important;
        min-height: 0 !important;
        padding: 12px !important;
        overflow: visible !important;
      }

      body.dashboard-mode .dashboard-summary-text {
        display: block !important;
        max-height: none !important;
        overflow: visible !important;
        font-size: 12px !important;
        line-height: 1.4 !important;
        -webkit-line-clamp: unset !important;
      }

      body.dashboard-mode .dashboard-line-chart svg {
        height: 220px !important;
        min-height: 220px !important;
      }

      body.dashboard-mode .dashboard-budget-chart {
        height: 180px !important;
      }

      body.dashboard-mode .budget-column {
        height: 150px !important;
      }

      body.dashboard-mode .dashboard-timeline,
      body.dashboard-mode .dashboard-action-list,
      body.dashboard-mode .dashboard-evidence-grid,
      body.dashboard-mode .executive-list {
        max-height: none !important;
        overflow: visible !important;
      }

      body.dashboard-mode .priority-summary-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
      }

      body.dashboard-mode .dashboard-evidence-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
      }

      body.dashboard-mode .evidence-frame {
        aspect-ratio: 1.45 / 1 !important;
      }

      body.dashboard-mode .dashboard-footer-note {
        width: auto !important;
        height: auto !important;
        min-height: 0 !important;
        margin: 0 12px 12px !important;
        padding: 9px 10px !important;
        white-space: normal !important;
      }

      body.executive-subpage-mode .app-view[data-view]:not([data-view="inicio"]).active {
        width: 100% !important;
        min-height: 0 !important;
        padding: 12px !important;
        gap: 10px !important;
      }

      body.executive-subpage-mode .executive-page-topline {
        min-height: 0 !important;
        grid-template-columns: 1fr !important;
        gap: 10px !important;
        padding: 12px !important;
      }

      body.executive-subpage-mode .executive-page-toolbar {
        width: 100% !important;
        display: grid !important;
        grid-template-columns: 1fr !important;
        justify-content: stretch !important;
      }

      body.executive-subpage-mode .executive-page-toolbar > * {
        width: 100% !important;
        max-width: 100% !important;
      }

      body.executive-subpage-mode .planning-work-filter {
        min-width: 0 !important;
        grid-template-columns: 1fr !important;
      }

      .layout,
      .contract-grid,
      .page-grid,
      .side-stack,
      .status-strip,
      .panel-grid,
      .summary-grid,
      .form-grid,
      .inline-form,
      .portfolio-detail-grid,
      .commodity-layout,
      .commodity-toolbar,
      .commodity-tools,
      .prod-hero-grid,
      .prod-indicator-grid,
      .prod-activity-grid,
      .safety-layout,
      .safety-score-entry,
      .direct-item-line,
      .direct-order-summary,
      .task-edit-row,
      .timeline-item,
      .work-row,
      .catalog-tools,
      .catalog-row {
        grid-template-columns: 1fr !important;
      }

      .contract-summary-grid,
      .contract-score-grid,
      .portfolio-grid,
      .home-portfolio-grid,
      .home-work-card .mini-stats {
        grid-template-columns: 1fr !important;
      }

      .management-switch,
      .app-tabs {
        max-width: 100%;
        overflow-x: auto !important;
        flex-wrap: nowrap !important;
        scrollbar-width: thin;
      }

      .sub-tab-button,
      .main-tab {
        white-space: nowrap;
      }

      .band-header,
      .band-body {
        padding-inline: 12px !important;
      }

      .table-wrap,
      .gantt,
      .direct-billing-table {
        width: 100% !important;
        max-width: 100% !important;
        overflow-x: auto !important;
      }

      table,
      .takeoff-table,
      .prod-table {
        min-width: 720px;
      }

      .gantt {
        min-width: 0 !important;
      }

      .gantt-row {
        min-width: 760px;
      }

      .photo-grid,
      .dashboard-evidence-grid {
        grid-template-columns: 1fr !important;
      }

      .login-panel {
        width: min(100% - 24px, 420px);
        padding: 22px;
      }
    }

    @media (max-width: 460px) {
      body.dashboard-mode .dashboard-controls,
      body.dashboard-mode.dashboard-menu-collapsed .dashboard-controls,
      body.dashboard-mode:not(.dashboard-menu-collapsed) .dashboard-controls,
      body.dashboard-mode .dashboard-kpis,
      body.dashboard-mode.dashboard-menu-collapsed .dashboard-kpis,
      body.dashboard-mode .priority-summary-grid,
      body.dashboard-mode .dashboard-evidence-grid {
        grid-template-columns: 1fr !important;
      }

      body.dashboard-mode .dashboard-heading h2 {
        font-size: 18px !important;
      }

      body.dashboard-mode .dashboard-card h3,
      body.dashboard-mode .dashboard-card-head strong {
        font-size: 12px !important;
      }

      body.dashboard-mode .dashboard-line-chart svg {
        height: 190px !important;
        min-height: 190px !important;
      }

      .metric-value {
        font-size: 22px !important;
      }
    }

    @media (max-width: 760px) {
      html,
      body {
        width: 100% !important;
        min-width: 0 !important;
        max-width: 100% !important;
        overflow-x: hidden !important;
      }

      body.dashboard-mode,
      body.executive-subpage-mode,
      body:not(.dashboard-mode) {
        min-width: 0 !important;
        background: #f4f7f8 !important;
      }

      body.dashboard-mode .shell,
      body.executive-subpage-mode .shell,
      body:not(.dashboard-mode) .shell {
        width: 100% !important;
        min-width: 0 !important;
        max-width: 100% !important;
        margin: 0 !important;
        padding: 0 !important;
        overflow-x: hidden !important;
      }

      body.dashboard-mode .executive-dashboard-page,
      body.dashboard-mode.dashboard-menu-collapsed .executive-dashboard-page,
      body.dashboard-mode:not(.dashboard-menu-collapsed) .executive-dashboard-page {
        width: 100% !important;
        min-width: 0 !important;
        max-width: 100% !important;
        display: grid !important;
        grid-template-columns: 1fr !important;
        grid-template-rows: auto 1fr !important;
        overflow: visible !important;
      }

      body.dashboard-mode .dashboard-sidebar,
      body.dashboard-mode.dashboard-menu-collapsed .dashboard-sidebar,
      body.dashboard-mode:not(.dashboard-menu-collapsed) .dashboard-sidebar,
      body.executive-subpage-mode .subpage-dashboard-sidebar,
      body.executive-subpage-mode.dashboard-menu-collapsed .subpage-dashboard-sidebar,
      body.executive-subpage-mode:not(.dashboard-menu-collapsed) .subpage-dashboard-sidebar {
        position: sticky !important;
        inset: auto !important;
        top: 0 !important;
        z-index: 40 !important;
        width: 100% !important;
        min-width: 0 !important;
        max-width: 100% !important;
        height: auto !important;
        min-height: 0 !important;
        display: grid !important;
        grid-template-columns: 42px minmax(0, 1fr) 38px !important;
        gap: 8px !important;
        align-items: center !important;
        padding: 8px 10px !important;
        border-radius: 0 !important;
      }

      body.dashboard-mode .dashboard-side-brand,
      body.executive-subpage-mode .subpage-dashboard-sidebar .dashboard-side-brand {
        width: 38px !important;
        height: 38px !important;
        margin: 0 !important;
      }

      body.dashboard-mode .dashboard-side-brand .icon,
      body.executive-subpage-mode .subpage-dashboard-sidebar .dashboard-side-brand .icon {
        width: 24px !important;
        height: 24px !important;
      }

      body.dashboard-mode .dashboard-side-nav,
      body.executive-subpage-mode .subpage-dashboard-sidebar .dashboard-side-nav {
        width: 100% !important;
        min-width: 0 !important;
        display: grid !important;
        grid-auto-flow: column !important;
        grid-auto-columns: 42px !important;
        grid-template-columns: none !important;
        gap: 6px !important;
        overflow-x: auto !important;
        overflow-y: hidden !important;
        justify-items: center !important;
        scrollbar-width: none;
      }

      body.dashboard-mode .dashboard-side-nav::-webkit-scrollbar,
      body.executive-subpage-mode .subpage-dashboard-sidebar .dashboard-side-nav::-webkit-scrollbar {
        display: none;
      }

      body.dashboard-mode .dash-nav-button,
      body.dashboard-mode.dashboard-menu-collapsed .dash-nav-button,
      body.executive-subpage-mode .subpage-dashboard-sidebar .dash-nav-button,
      body.executive-subpage-mode.dashboard-menu-collapsed .subpage-dashboard-sidebar .dash-nav-button,
      body.dashboard-mode .dashboard-collapse-button,
      body.executive-subpage-mode .subpage-dashboard-sidebar .dashboard-collapse-button {
        width: 40px !important;
        min-width: 40px !important;
        height: 40px !important;
        min-height: 40px !important;
        display: grid !important;
        grid-template-columns: 1fr !important;
        place-content: center !important;
        place-items: center !important;
        gap: 0 !important;
        padding: 0 !important;
        border-radius: 9px !important;
        font-size: 0 !important;
        line-height: 0 !important;
      }

      body.dashboard-mode .dash-nav-button span,
      body.executive-subpage-mode .subpage-dashboard-sidebar .dash-nav-button span,
      body.dashboard-mode .dashboard-collapse-button span,
      body.executive-subpage-mode .subpage-dashboard-sidebar .dashboard-collapse-button span,
      body.dashboard-mode .dashboard-quick-links,
      body.executive-subpage-mode .subpage-dashboard-sidebar .dashboard-quick-links {
        display: none !important;
      }

      body.dashboard-mode .dash-nav-button .icon,
      body.executive-subpage-mode .subpage-dashboard-sidebar .dash-nav-button .icon,
      body.dashboard-mode .dashboard-collapse-button .icon,
      body.executive-subpage-mode .subpage-dashboard-sidebar .dashboard-collapse-button .icon {
        width: 21px !important;
        height: 21px !important;
        margin: 0 !important;
      }

      body.dashboard-mode .dashboard-main,
      body.dashboard-mode.dashboard-menu-collapsed .dashboard-main,
      body.dashboard-mode:not(.dashboard-menu-collapsed) .dashboard-main {
        width: 100% !important;
        min-width: 0 !important;
        max-width: 100% !important;
        height: auto !important;
        max-height: none !important;
        display: grid !important;
        grid-template-rows: auto !important;
        gap: 10px !important;
        overflow: visible !important;
      }

      body.dashboard-mode .dashboard-topline,
      body.dashboard-mode.dashboard-menu-collapsed .dashboard-topline,
      body.dashboard-mode:not(.dashboard-menu-collapsed) .dashboard-topline {
        width: 100% !important;
        height: auto !important;
        min-height: 0 !important;
        display: grid !important;
        grid-template-columns: 1fr !important;
        gap: 10px !important;
        padding: 12px 12px 0 !important;
        box-shadow: none !important;
      }

      body.dashboard-mode .dashboard-heading h2,
      body.executive-subpage-mode .dashboard-heading h2 {
        font-size: 18px !important;
        line-height: 1.15 !important;
        white-space: normal !important;
      }

      body.dashboard-mode .dashboard-heading p,
      body.executive-subpage-mode .dashboard-heading p {
        font-size: 12px !important;
        line-height: 1.3 !important;
        white-space: normal !important;
      }

      body.dashboard-mode .dashboard-controls,
      body.dashboard-mode.dashboard-menu-collapsed .dashboard-controls,
      body.dashboard-mode:not(.dashboard-menu-collapsed) .dashboard-controls {
        width: 100% !important;
        min-width: 0 !important;
        display: grid !important;
        grid-template-columns: 1fr !important;
        gap: 8px !important;
        justify-content: stretch !important;
        overflow: visible !important;
      }

      body.dashboard-mode .dashboard-select-card,
      body.dashboard-mode .dashboard-work-card,
      body.dashboard-mode .dashboard-period-card,
      body.dashboard-mode .dashboard-notify-button {
        width: 100% !important;
        min-width: 0 !important;
        max-width: 100% !important;
        height: auto !important;
        min-height: 46px !important;
        padding: 8px 10px !important;
      }

      body.dashboard-mode .dashboard-user-card {
        display: none !important;
      }

      body.dashboard-mode .dashboard-select-card select,
      body.dashboard-mode .dashboard-select-card input,
      body.dashboard-mode .dashboard-work-card select {
        width: 100% !important;
        min-width: 0 !important;
        overflow: hidden !important;
        text-overflow: ellipsis !important;
      }

      body.dashboard-mode .dashboard-kpis,
      body.dashboard-mode.dashboard-menu-collapsed .dashboard-kpis {
        width: 100% !important;
        height: auto !important;
        min-height: 0 !important;
        display: grid !important;
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
        gap: 8px !important;
        padding: 0 12px !important;
        overflow: visible !important;
      }

      body.dashboard-mode .kpi-card {
        width: 100% !important;
        height: auto !important;
        min-height: 88px !important;
        padding: 10px !important;
        overflow: hidden !important;
      }

      body.dashboard-mode .kpi-value-line strong,
      body.dashboard-mode #homePercentAvg,
      body.dashboard-mode #homeCostRealized {
        font-size: 20px !important;
      }

      body.dashboard-mode .dashboard-grid,
      body.dashboard-mode.dashboard-menu-collapsed .dashboard-grid {
        width: 100% !important;
        height: auto !important;
        min-height: 0 !important;
        display: grid !important;
        grid-template-columns: 1fr !important;
        grid-template-rows: none !important;
        gap: 10px !important;
        padding: 0 12px 12px !important;
        overflow: visible !important;
      }

      body.dashboard-mode .dashboard-grid > .dashboard-card:nth-child(n),
      body.dashboard-mode.dashboard-menu-collapsed .dashboard-grid > .dashboard-card:nth-child(n) {
        grid-column: 1 / -1 !important;
        grid-row: auto !important;
      }

      body.dashboard-mode .dashboard-card {
        width: 100% !important;
        height: auto !important;
        min-height: 0 !important;
        padding: 12px !important;
        overflow: visible !important;
      }

      body.dashboard-mode .dashboard-summary-text,
      body.dashboard-mode .dashboard-timeline,
      body.dashboard-mode .dashboard-action-list,
      body.dashboard-mode .executive-list {
        max-height: none !important;
        overflow: visible !important;
      }

      body.dashboard-mode .dashboard-summary-text {
        display: block !important;
        font-size: 12px !important;
        line-height: 1.4 !important;
        -webkit-line-clamp: unset !important;
      }

      body.dashboard-mode .dashboard-line-chart,
      body.dashboard-mode .dashboard-budget-chart,
      body.dashboard-mode .safety-chart {
        width: 100% !important;
        min-width: 0 !important;
        overflow: hidden !important;
      }

      body.dashboard-mode .dashboard-line-chart svg {
        width: 100% !important;
        height: 210px !important;
        min-height: 210px !important;
      }

      body.dashboard-mode .dashboard-budget-chart {
        height: 170px !important;
      }

      body.dashboard-mode .budget-column {
        height: 140px !important;
      }

      body.dashboard-mode .priority-summary-grid,
      body.dashboard-mode .dashboard-evidence-grid {
        grid-template-columns: 1fr !important;
      }

      body.dashboard-mode .dashboard-footer-note {
        width: auto !important;
        height: auto !important;
        min-height: 0 !important;
        margin: 0 12px 12px !important;
        padding: 9px 10px !important;
        white-space: normal !important;
      }

      body.executive-subpage-mode .app-view[data-view]:not([data-view="inicio"]).active {
        width: 100% !important;
        min-height: 0 !important;
        padding: 12px !important;
        gap: 10px !important;
        overflow-x: hidden !important;
      }

      body.executive-subpage-mode .executive-page-topline {
        width: 100% !important;
        min-height: 0 !important;
        display: grid !important;
        grid-template-columns: 1fr !important;
        gap: 10px !important;
        padding: 12px !important;
      }

      body.executive-subpage-mode .executive-page-toolbar {
        width: 100% !important;
        display: grid !important;
        grid-template-columns: 1fr !important;
        justify-content: stretch !important;
        gap: 8px !important;
      }

      body.executive-subpage-mode .executive-page-toolbar > *,
      body.executive-subpage-mode .planning-work-filter {
        width: 100% !important;
        min-width: 0 !important;
        max-width: 100% !important;
      }

      body.executive-subpage-mode .planning-work-filter {
        grid-template-columns: 1fr !important;
      }

      .layout,
      .contract-grid,
      .page-grid,
      .side-stack,
      .main-stack,
      .status-strip,
      .panel-grid,
      .summary-grid,
      .form-grid,
      .inline-form,
      .portfolio-detail-grid,
      .commodity-layout,
      .commodity-toolbar,
      .commodity-tools,
      .prod-hero-grid,
      .prod-indicator-grid,
      .prod-activity-grid,
      .safety-layout,
      .safety-score-entry,
      .direct-item-line,
      .direct-order-summary,
      .task-edit-row,
      .timeline-item,
      .work-row,
      .catalog-tools,
      .catalog-row,
      .contract-summary-grid,
      .contract-score-grid,
      .portfolio-grid,
      .home-portfolio-grid,
      .home-work-card .mini-stats {
        grid-template-columns: 1fr !important;
      }

      .field,
      .field.span-2,
      .field.span-3,
      .field.span-4,
      .span-2,
      .span-3,
      .span-4,
      .span-full {
        grid-column: 1 / -1 !important;
      }

      .management-switch,
      .app-tabs {
        width: 100% !important;
        max-width: 100% !important;
        display: flex !important;
        flex-wrap: nowrap !important;
        overflow-x: auto !important;
        overflow-y: hidden !important;
        scrollbar-width: thin;
      }

      .sub-tab-button,
      .main-tab {
        white-space: nowrap !important;
      }

      .band,
      .metric,
      .home-work-card,
      .portfolio-card,
      .dashboard-card,
      .kpi-card {
        min-width: 0 !important;
        max-width: 100% !important;
      }

      .band-header,
      .band-body {
        padding-inline: 12px !important;
      }

      .table-wrap,
      .gantt,
      .direct-billing-table {
        width: 100% !important;
        max-width: 100% !important;
        overflow-x: auto !important;
        -webkit-overflow-scrolling: touch;
      }

      table,
      .takeoff-table,
      .prod-table {
        min-width: 680px !important;
      }

      .gantt {
        min-width: 0 !important;
      }

      .gantt-row {
        min-width: 720px !important;
      }

      input,
      select,
      textarea,
      button {
        max-width: 100% !important;
      }

      .photo-grid,
      .dashboard-evidence-grid {
        grid-template-columns: 1fr !important;
      }
    }

    @media (max-width: 460px) {
      body.dashboard-mode .dashboard-kpis,
      body.dashboard-mode.dashboard-menu-collapsed .dashboard-kpis {
        grid-template-columns: 1fr !important;
      }

      body.dashboard-mode .dashboard-line-chart svg {
        height: 188px !important;
        min-height: 188px !important;
      }

      .metric-value,
      body.dashboard-mode .kpi-value-line strong,
      body.dashboard-mode #homePercentAvg,
      body.dashboard-mode #homeCostRealized {
        font-size: 19px !important;
      }
    }

    .mobile-menu-fab,
    .mobile-menu-backdrop,
    .mobile-menu-drawer {
      display: none;
    }

    @media (max-width: 760px) {
      body.dashboard-mode .dashboard-sidebar,
      body.dashboard-mode.dashboard-menu-collapsed .dashboard-sidebar,
      body.dashboard-mode:not(.dashboard-menu-collapsed) .dashboard-sidebar,
      body.executive-subpage-mode .subpage-dashboard-sidebar,
      body.executive-subpage-mode.dashboard-menu-collapsed .subpage-dashboard-sidebar,
      body.executive-subpage-mode:not(.dashboard-menu-collapsed) .subpage-dashboard-sidebar {
        display: none !important;
      }

      body.dashboard-mode .executive-dashboard-page,
      body.dashboard-mode.dashboard-menu-collapsed .executive-dashboard-page,
      body.dashboard-mode:not(.dashboard-menu-collapsed) .executive-dashboard-page {
        grid-template-rows: 1fr !important;
      }

      body:not(.locked) .mobile-menu-fab {
        position: fixed;
        right: 14px;
        bottom: 16px;
        z-index: 90;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        gap: 8px;
        min-height: 48px;
        padding: 0 16px;
        border-radius: 999px;
        background: var(--green);
        color: #fff;
        box-shadow: 0 16px 38px rgba(8, 70, 57, 0.28);
        font-size: 12px;
        font-weight: 950;
        letter-spacing: 0.03em;
        text-transform: uppercase;
      }

      .mobile-menu-fab .icon {
        width: 20px;
        height: 20px;
      }

      body.mobile-menu-open {
        overflow: hidden !important;
      }

      body.mobile-menu-open .mobile-menu-backdrop {
        position: fixed;
        inset: 0;
        z-index: 91;
        display: block;
        background: rgba(10, 26, 30, 0.56);
        backdrop-filter: blur(2px);
      }

      body.mobile-menu-open .mobile-menu-drawer {
        position: fixed;
        inset: 0 0 0 auto;
        z-index: 92;
        display: grid;
        width: min(360px, calc(100vw - 24px));
        max-width: 100%;
        height: 100vh;
        grid-template-rows: auto minmax(0, 1fr);
        background: #f8fbfb;
        box-shadow: -18px 0 42px rgba(13, 34, 40, 0.28);
        overflow: hidden;
      }

      .mobile-menu-head {
        display: grid;
        grid-template-columns: minmax(0, 1fr) 40px;
        gap: 10px;
        align-items: center;
        padding: 16px;
        border-bottom: 1px solid #dde8e8;
        background: #fff;
      }

      .mobile-menu-head span {
        display: block;
        color: #61737a;
        font-size: 10px;
        font-weight: 900;
        letter-spacing: 0.08em;
        text-transform: uppercase;
      }

      .mobile-menu-head strong {
        display: block;
        margin-top: 3px;
        color: #13262e;
        font-size: 18px;
        line-height: 1.1;
        font-weight: 950;
      }

      .mobile-menu-close {
        width: 40px;
        height: 40px;
        display: grid;
        place-items: center;
        border-radius: 10px;
        background: #eef5f4;
        color: #183139;
      }

      .mobile-menu-close .icon {
        width: 20px;
        height: 20px;
      }

      .mobile-menu-content {
        display: grid;
        align-content: start;
        gap: 14px;
        padding: 14px;
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
      }

      .mobile-menu-section {
        display: grid;
        gap: 8px;
        padding: 12px;
        border: 1px solid #e0e9eb;
        border-radius: 12px;
        background: #fff;
      }

      .mobile-quick-links-list {
        display: grid;
        gap: 8px;
      }

      .mobile-menu-section h3 {
        margin: 0;
        color: #61737a;
        font-size: 10px;
        font-weight: 950;
        letter-spacing: 0.08em;
        text-transform: uppercase;
      }

      .mobile-menu-item {
        width: 100%;
        min-height: 44px;
        display: grid;
        grid-template-columns: 32px minmax(0, 1fr);
        gap: 10px;
        align-items: center;
        padding: 8px 10px;
        border-radius: 10px;
        background: #f6f9f9;
        color: #172b33;
        text-align: left;
        font-size: 13px;
        font-weight: 850;
      }

      .mobile-menu-item:hover,
      .mobile-menu-item:focus-visible {
        outline: none;
        background: var(--green-soft);
        color: var(--green);
      }

      .mobile-menu-item .icon {
        width: 20px;
        height: 20px;
        justify-self: center;
      }

      .mobile-menu-item small {
        display: block;
        margin-top: 2px;
        color: #6f8087;
        font-size: 10px;
        font-weight: 760;
        line-height: 1.2;
      }
    }

    body.dashboard-mode .dashboard-grid {
      --dashboard-card-header: linear-gradient(180deg, #08735f 0%, #005f4e 100%);
    }

    body.dashboard-mode .dashboard-grid,
    body.dashboard-mode.dashboard-menu-collapsed .dashboard-grid {
      width: 100% !important;
      height: 100% !important;
      min-height: 0 !important;
      grid-template-columns: repeat(12, minmax(0, 1fr)) !important;
      grid-template-rows: minmax(0, 1.36fr) minmax(0, 0.64fr) !important;
      gap: 10px !important;
      padding: 0 14px 6px !important;
      overflow: hidden !important;
    }

    body.dashboard-mode .dashboard-home-card {
      min-width: 0 !important;
      min-height: 0 !important;
      height: 100% !important;
      display: grid !important;
      grid-template-rows: 40px minmax(0, 1fr) auto !important;
      gap: 0 !important;
      padding: 0 !important;
      overflow: hidden !important;
      align-content: stretch !important;
      border-color: rgba(8, 115, 95, 0.18);
      box-shadow: 0 10px 24px rgba(13, 34, 40, 0.07);
    }

    body.dashboard-mode .dashboard-home-card .dashboard-card-head {
      min-height: 40px;
      display: flex !important;
      align-items: center !important;
      justify-content: flex-start !important;
      margin: 0 !important;
      padding: 0 12px !important;
      border-radius: 8px 8px 0 0;
      background: var(--dashboard-card-header);
      color: #fff;
    }

    body.dashboard-mode .dashboard-home-card .dashboard-card-head h3 {
      color: #fff !important;
      font-size: 11px !important;
      line-height: 1.15 !important;
      font-weight: 940 !important;
      letter-spacing: 0.02em !important;
      white-space: nowrap;
    }

    body.dashboard-mode .dashboard-card-body {
      min-width: 0;
      min-height: 0;
      display: grid;
      gap: 8px;
      padding: 10px 12px;
      overflow: hidden;
    }

    body.dashboard-mode .dash-nav-button,
    body.dashboard-mode .dashboard-quick-links button,
    body.dashboard-mode .dashboard-collapse-button,
    .mobile-menu-section h3,
    .mobile-menu-item > span {
      text-transform: uppercase;
    }

    .mobile-menu-item small {
      text-transform: none;
    }

    body.dashboard-mode.dashboard-menu-collapsed .dashboard-collapse-button,
    body.dashboard-mode.dashboard-menu-collapsed .dash-nav-button.dashboard-collapse-button {
      height: 52px !important;
      min-height: 52px !important;
      grid-template-rows: auto auto !important;
      gap: 3px !important;
      color: rgba(255, 255, 255, 0.82);
      font-size: 9px !important;
      line-height: 1 !important;
    }

    body.dashboard-mode.dashboard-menu-collapsed .dashboard-collapse-button span {
      display: block !important;
      color: rgba(255, 255, 255, 0.82);
      font-size: 9px !important;
      line-height: 1 !important;
      font-weight: 900 !important;
    }

    body.dashboard-mode.dashboard-menu-collapsed .dashboard-collapse-button .icon {
      width: 18px !important;
      height: 18px !important;
    }

    body.dashboard-mode .dashboard-body-legend {
      min-height: 18px;
      align-items: center;
      color: #526a73;
      font-size: 10px;
      line-height: 1.2;
      white-space: normal;
    }

    body.dashboard-mode .dashboard-card-status {
      min-height: 24px;
      display: inline-flex;
      align-items: center;
      justify-content: center;
      justify-self: start;
      padding: 0 9px;
      border-radius: 999px;
      color: var(--green);
      background: var(--green-soft);
      font-size: 11px;
      font-weight: 930;
      white-space: nowrap;
    }

    body.dashboard-mode .dashboard-controls,
    body.dashboard-mode.dashboard-menu-collapsed .dashboard-controls,
    body.dashboard-mode:not(.dashboard-menu-collapsed) .dashboard-controls {
      grid-template-columns: minmax(520px, 1fr) 42px minmax(170px, auto) !important;
    }

    body.dashboard-mode .dashboard-work-card {
      min-width: 520px !important;
    }

    body.dashboard-mode .home-evolution-card {
      grid-column: 1 / span 6 !important;
      grid-row: 1 !important;
    }

    body.dashboard-mode .home-budget-card {
      grid-column: 7 / span 3 !important;
      grid-row: 1 !important;
    }

    body.dashboard-mode .home-timeline-card {
      grid-column: 10 / span 3 !important;
      grid-row: 1 !important;
    }

    body.dashboard-mode .home-actions-card {
      grid-column: 1 / span 4 !important;
      grid-row: 2 !important;
    }

    body.dashboard-mode .home-productivity-card {
      grid-column: 5 / span 4 !important;
      grid-row: 2 !important;
    }

    body.dashboard-mode .home-photo-card {
      grid-column: 9 / span 4 !important;
      grid-row: 2 !important;
    }

    body.dashboard-mode .home-evolution-card .evolution-card-body {
      grid-template-rows: auto minmax(0, 1fr);
      padding: 8px 12px 10px;
    }

    body.dashboard-mode .home-evolution-card .dashboard-line-chart {
      min-width: 0;
      min-height: 0;
      display: grid;
      align-items: stretch;
      overflow: visible;
    }

    body.dashboard-mode .home-evolution-card .dashboard-line-chart svg {
      width: 100% !important;
      height: 100% !important;
      min-height: 360px !important;
      max-height: none !important;
    }

    body.dashboard-mode .home-budget-card .budget-card-body {
      grid-template-rows: auto minmax(0, 1fr);
      padding: 8px 9px 6px;
    }

    body.dashboard-mode .home-budget-card .budget-legend {
      display: grid;
      grid-template-columns: 1fr;
      gap: 3px;
    }

    body.dashboard-mode .home-budget-card .dashboard-budget-chart {
      width: 100%;
      height: 100% !important;
      min-height: 0;
      margin: 0;
      padding: 6px 2px 0;
      gap: 8px;
    }

    body.dashboard-mode .home-budget-card .budget-column {
      height: 100% !important;
      min-height: 120px;
      gap: 5px;
      font-size: 10px;
    }

    body.dashboard-mode .home-budget-card .budget-bar {
      width: min(46px, 80%);
    }

    body.dashboard-mode .timeline-card-body,
    body.dashboard-mode .actions-card-body,
    body.dashboard-mode .productivity-card-body {
      grid-template-rows: auto minmax(0, 1fr);
      padding: 10px 12px 12px;
    }

    body.dashboard-mode .actions-card-body {
      grid-template-rows: minmax(0, 1fr);
    }

    body.dashboard-mode .home-timeline-card .dashboard-timeline,
    body.dashboard-mode .home-actions-card .dashboard-action-list,
    body.dashboard-mode .home-productivity-card .executive-list {
      min-height: 0;
      max-height: none !important;
      padding: 0;
      overflow: auto;
    }

    body.dashboard-mode .home-photo-card .photo-card-body {
      padding: 10px 12px 12px;
    }

    body.dashboard-mode .home-photo-card .dashboard-evidence-grid {
      min-height: 0;
      height: 100%;
      display: grid;
      grid-template-columns: repeat(auto-fit, minmax(0, 1fr)) !important;
      gap: 8px;
      overflow: hidden;
    }

    body.dashboard-mode .home-photo-card .evidence-card {
      height: 100%;
      min-height: 0;
      grid-template-rows: minmax(0, 1fr);
      align-content: stretch;
    }

    body.dashboard-mode .home-photo-card .evidence-frame {
      height: 100%;
      min-height: 150px;
      aspect-ratio: auto;
    }

    body.dashboard-mode .home-photo-card .evidence-card strong,
    body.dashboard-mode .home-photo-card .evidence-card span {
      display: none;
    }

    body.dashboard-mode .dashboard-home-card .dashboard-card-action {
      min-height: 30px;
      margin: 0 12px 12px;
    }

    @media (max-width: 980px) {
      body.dashboard-mode .dashboard-controls,
      body.dashboard-mode.dashboard-menu-collapsed .dashboard-controls,
      body.dashboard-mode:not(.dashboard-menu-collapsed) .dashboard-controls {
        grid-template-columns: minmax(0, 1fr) auto auto !important;
      }

      body.dashboard-mode .dashboard-work-card {
        min-width: 0 !important;
      }

      body.dashboard-mode .dashboard-grid,
      body.dashboard-mode.dashboard-menu-collapsed .dashboard-grid {
        height: auto !important;
        grid-template-columns: repeat(6, minmax(0, 1fr)) !important;
        grid-template-rows: auto !important;
        overflow: visible !important;
      }

      body.dashboard-mode .home-evolution-card,
      body.dashboard-mode .home-budget-card,
      body.dashboard-mode .home-timeline-card,
      body.dashboard-mode .home-actions-card,
      body.dashboard-mode .home-productivity-card,
      body.dashboard-mode .home-photo-card {
        grid-row: auto !important;
      }

      body.dashboard-mode .home-evolution-card,
      body.dashboard-mode .home-photo-card {
        grid-column: 1 / -1 !important;
      }

      body.dashboard-mode .home-budget-card,
      body.dashboard-mode .home-timeline-card,
      body.dashboard-mode .home-actions-card,
      body.dashboard-mode .home-productivity-card {
        grid-column: span 3 !important;
      }

      body.dashboard-mode .home-evolution-card .dashboard-line-chart svg {
        min-height: 260px !important;
      }
    }

    @media (max-width: 760px) {
      body.dashboard-mode .dashboard-grid,
      body.dashboard-mode.dashboard-menu-collapsed .dashboard-grid {
        grid-template-columns: 1fr !important;
      }

      body.dashboard-mode .home-evolution-card,
      body.dashboard-mode .home-budget-card,
      body.dashboard-mode .home-timeline-card,
      body.dashboard-mode .home-actions-card,
      body.dashboard-mode .home-productivity-card,
      body.dashboard-mode .home-photo-card {
        grid-column: 1 / -1 !important;
      }

      body.dashboard-mode .home-evolution-card .dashboard-line-chart svg {
        min-height: 230px !important;
      }
    }

    /* Executive dashboard mirror layout */
    body.dashboard-mode {
      overflow-x: hidden !important;
      background: #f6f9fa !important;
    }

    body.dashboard-mode .executive-dashboard-page,
    body.dashboard-mode:not(.dashboard-menu-collapsed) .executive-dashboard-page {
      width: 100vw !important;
      max-width: 100vw !important;
      min-height: 100vh !important;
      grid-template-columns: 128px minmax(0, calc(100vw - 128px)) !important;
      background: #f6f9fa !important;
      overflow: hidden !important;
    }

    body.dashboard-mode .dashboard-sidebar,
    body.dashboard-mode:not(.dashboard-menu-collapsed) .dashboard-sidebar {
      width: 128px !important;
      min-width: 128px !important;
      min-height: 100vh !important;
      grid-template-rows: 96px minmax(0, 1fr) auto !important;
      gap: 0 !important;
      padding: 22px 12px 26px !important;
      background: linear-gradient(180deg, #00745f 0%, #006450 100%) !important;
      box-shadow: none !important;
      overflow: hidden !important;
    }

    body.dashboard-mode .dashboard-side-brand {
      width: 60px !important;
      height: 60px !important;
      margin: 0 auto !important;
      border: 0 !important;
      background: transparent !important;
      color: #fff !important;
    }

    body.dashboard-mode .dashboard-side-brand .icon {
      width: 44px !important;
      height: 44px !important;
    }

    body.dashboard-mode .dashboard-side-nav {
      gap: 12px !important;
      align-content: start !important;
      overflow: hidden !important;
    }

    body.dashboard-mode .dash-nav-button,
    body.dashboard-mode:not(.dashboard-menu-collapsed) .dash-nav-button {
      width: 100% !important;
      min-height: 74px !important;
      grid-template-columns: 1fr !important;
      grid-template-rows: 30px auto !important;
      justify-items: center !important;
      gap: 6px !important;
      padding: 10px 4px !important;
      border-radius: 12px !important;
      color: rgba(255, 255, 255, 0.92) !important;
      font-size: 12px !important;
      line-height: 1.15 !important;
      font-weight: 760 !important;
      text-align: center !important;
      text-transform: none !important;
      background: transparent !important;
    }

    body.dashboard-mode .dash-nav-button .icon {
      width: 28px !important;
      height: 28px !important;
      justify-self: center !important;
    }

    body.dashboard-mode .dash-nav-button.active {
      position: relative;
      background: rgba(255, 255, 255, 0.16) !important;
      box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.12);
    }

    body.dashboard-mode .dash-nav-button.active::before {
      content: "";
      position: absolute;
      left: -12px;
      top: 0;
      bottom: 0;
      width: 5px;
      border-radius: 0 999px 999px 0;
      background: #42dbc2;
    }

    body.dashboard-mode .dashboard-quick-links {
      display: none !important;
    }

    body.dashboard-mode .dashboard-collapse-button,
    body.dashboard-mode:not(.dashboard-menu-collapsed) .dashboard-collapse-button {
      display: none !important;
    }

    body.dashboard-mode .dashboard-main,
    body.dashboard-mode:not(.dashboard-menu-collapsed) .dashboard-main {
      width: 100% !important;
      min-width: 0 !important;
      display: grid !important;
      grid-template-rows: auto auto minmax(0, 1fr) 48px !important;
      gap: 0 !important;
      background: #f6f9fa !important;
      overflow: hidden !important;
    }

    body.dashboard-mode .dashboard-topline,
    body.dashboard-mode:not(.dashboard-menu-collapsed) .dashboard-topline {
      min-height: 142px !important;
      grid-template-columns: 1fr !important;
      grid-template-rows: auto auto !important;
      gap: 22px !important;
      align-items: start !important;
      padding: 18px 28px 16px !important;
      border-bottom: 1px solid #dfe8eb !important;
      background: #fff !important;
      box-shadow: none !important;
    }

    body.dashboard-mode .dashboard-heading h2 {
      font-size: 24px !important;
      line-height: 1.05 !important;
      font-weight: 950 !important;
      color: #10202b !important;
      letter-spacing: 0 !important;
    }

    body.dashboard-mode .dashboard-heading p {
      margin-top: 6px !important;
      font-size: 13px !important;
      color: #667987 !important;
      font-weight: 690 !important;
    }

    body.dashboard-mode .dashboard-controls,
    body.dashboard-mode.dashboard-menu-collapsed .dashboard-controls,
    body.dashboard-mode:not(.dashboard-menu-collapsed) .dashboard-controls {
      width: 100% !important;
      display: grid !important;
      grid-template-columns: minmax(420px, 1fr) 260px 42px 58px !important;
      gap: 16px !important;
      align-items: center !important;
      justify-content: stretch !important;
      overflow: visible !important;
    }

    body.dashboard-mode .dashboard-select-card,
    body.dashboard-mode .dashboard-work-card,
    body.dashboard-mode .dashboard-period-card,
    body.dashboard-mode .dashboard-user-card,
    body.dashboard-mode .dashboard-notify-button {
      height: 44px !important;
      min-height: 44px !important;
      border: 1px solid #dfe8eb !important;
      border-radius: 7px !important;
      background: #fff !important;
      box-shadow: none !important;
    }

    body.dashboard-mode .dashboard-work-card {
      min-width: 0 !important;
      grid-template-columns: 150px minmax(0, 1fr) !important;
      gap: 0 !important;
      padding: 0 !important;
      overflow: hidden !important;
    }

    body.dashboard-mode .dashboard-period-card {
      min-width: 0 !important;
      grid-template-columns: 92px minmax(0, 1fr) !important;
      gap: 0 !important;
      padding: 0 !important;
      overflow: hidden !important;
    }

    body.dashboard-mode .dashboard-select-card span {
      height: 100% !important;
      display: grid !important;
      place-items: center !important;
      padding: 0 12px !important;
      border-right: 1px solid #e5edf0;
      color: #627481 !important;
      font-size: 10px !important;
      font-weight: 950 !important;
      letter-spacing: 0.04em !important;
    }

    body.dashboard-mode .dashboard-select-card select,
    body.dashboard-mode .dashboard-select-card input[type="month"] {
      width: 100% !important;
      height: 100% !important;
      min-height: 0 !important;
      padding: 0 36px 0 16px !important;
      border: 0 !important;
      background: transparent !important;
      color: #10202b !important;
      font-size: 16px !important;
      font-weight: 900 !important;
    }

    body.dashboard-mode .dashboard-period-card strong {
      display: none !important;
    }

    body.dashboard-mode .dashboard-notify-button {
      width: 42px !important;
      min-width: 42px !important;
      border-color: transparent !important;
      background: transparent !important;
    }

    body.dashboard-mode .dashboard-notify-button .icon {
      width: 24px !important;
      height: 24px !important;
    }

    body.dashboard-mode .dashboard-user-card {
      width: 58px !important;
      min-width: 58px !important;
      grid-template-columns: 42px 0 !important;
      justify-content: center !important;
      padding: 0 !important;
      border-color: transparent !important;
      background: transparent !important;
    }

    body.dashboard-mode .dashboard-user-card > div:not(.dashboard-avatar) {
      display: none !important;
    }

    body.dashboard-mode .dashboard-avatar {
      width: 42px !important;
      height: 42px !important;
      font-size: 13px !important;
      background: #006b57 !important;
      box-shadow: 0 8px 20px rgba(0, 84, 67, 0.18);
    }

    body.dashboard-mode .dashboard-kpis,
    body.dashboard-mode.dashboard-menu-collapsed .dashboard-kpis {
      grid-template-columns: repeat(6, minmax(170px, 1fr)) !important;
      gap: 14px !important;
      padding: 16px 28px 12px !important;
      overflow: visible !important;
      align-items: stretch !important;
    }

    body.dashboard-mode .kpi-card {
      min-width: 0 !important;
      min-height: 112px !important;
      height: 112px !important;
      display: grid !important;
      grid-template-rows: 18px minmax(48px, 1fr) 16px !important;
      align-content: stretch !important;
      gap: 8px !important;
      padding: 14px 14px !important;
      border: 1px solid #dfe8eb !important;
      border-radius: 12px !important;
      background: #fff !important;
      box-shadow: 0 8px 20px rgba(15, 37, 45, 0.06) !important;
      overflow: hidden !important;
    }

    body.dashboard-mode .kpi-card > span {
      display: block !important;
      min-width: 0 !important;
      font-size: 10px !important;
      font-weight: 950 !important;
      color: #263845 !important;
      text-transform: uppercase !important;
      text-align: center !important;
      letter-spacing: 0.02em !important;
      line-height: 1.15 !important;
      white-space: nowrap !important;
      overflow: hidden !important;
      text-overflow: ellipsis !important;
    }

    body.dashboard-mode .kpi-value-line {
      min-width: 0 !important;
      margin-top: 0 !important;
      display: grid !important;
      grid-template-columns: 50px minmax(0, max-content) !important;
      gap: 10px !important;
      align-items: center !important;
      justify-content: center !important;
    }

    body.dashboard-mode .kpi-icon {
      width: 48px !important;
      height: 48px !important;
      min-width: 48px !important;
      justify-self: end !important;
    }

    body.dashboard-mode .kpi-value-line strong,
    body.dashboard-mode #homePercentAvg,
    body.dashboard-mode #homeCostRealized {
      min-width: 0 !important;
      max-width: 100% !important;
      font-size: clamp(20px, 1.55vw, 27px) !important;
      line-height: 1 !important;
      font-weight: 950 !important;
      color: #10202b !important;
      white-space: nowrap !important;
      overflow: hidden !important;
      text-overflow: ellipsis !important;
    }

    body.dashboard-mode .kpi-card small {
      min-width: 0 !important;
      margin-top: 0 !important;
      padding-left: 0 !important;
      color: #667987 !important;
      font-size: 11px !important;
      font-weight: 720 !important;
      line-height: 1.15 !important;
      text-align: center !important;
      white-space: nowrap !important;
      overflow: hidden !important;
      text-overflow: ellipsis !important;
    }

    body.dashboard-mode .dashboard-grid,
    body.dashboard-mode.dashboard-menu-collapsed .dashboard-grid {
      height: auto !important;
      min-height: 0 !important;
      display: grid !important;
      grid-template-columns: repeat(12, minmax(0, 1fr)) !important;
      grid-template-rows: 294px 232px 166px !important;
      gap: 14px !important;
      padding: 0 28px 12px !important;
      overflow: visible !important;
    }

    body.dashboard-mode .dashboard-home-card {
      height: 100% !important;
      min-height: 0 !important;
      gap: 0 !important;
      padding: 0 !important;
      border: 1px solid #dfe8eb !important;
      border-radius: 12px !important;
      background: #fff !important;
      box-shadow: 0 8px 20px rgba(15, 37, 45, 0.06) !important;
      overflow: hidden !important;
    }

    body.dashboard-mode .dashboard-home-card .dashboard-card-head {
      min-height: 44px !important;
      padding: 0 16px !important;
      background: transparent !important;
      color: #10202b !important;
      border-radius: 0 !important;
      display: flex !important;
      align-items: center !important;
      justify-content: space-between !important;
    }

    body.dashboard-mode .dashboard-home-card .dashboard-card-head h3 {
      color: #10202b !important;
      font-size: 13px !important;
      font-weight: 950 !important;
      line-height: 1 !important;
      text-transform: uppercase !important;
      letter-spacing: 0.02em !important;
    }

    body.dashboard-mode .home-curve-controls {
      display: flex !important;
      align-items: center !important;
      gap: 6px !important;
      opacity: 1 !important;
      visibility: visible !important;
    }

    body.dashboard-mode .home-curve-controls .icon-button,
    body.dashboard-mode .home-curve-controls .secondary-button {
      display: grid !important;
      place-items: center !important;
      min-width: 28px !important;
      height: 28px !important;
      min-height: 28px !important;
      padding: 0 8px !important;
      border: 1px solid #dbe7ea !important;
      border-radius: 8px !important;
      background: #fff !important;
      color: #00745f !important;
      opacity: 1 !important;
      box-shadow: 0 8px 18px rgba(13, 34, 40, 0.05) !important;
    }

    body.dashboard-mode .home-curve-controls .icon-button .icon {
      width: 15px !important;
      height: 15px !important;
      color: currentColor !important;
    }

    body.dashboard-mode .dashboard-head-link {
      border: 0 !important;
      background: transparent !important;
      color: #00745f !important;
      font-size: 10px !important;
      font-weight: 950 !important;
      text-transform: uppercase !important;
    }

    body.dashboard-mode .dashboard-card-body {
      padding: 0 16px 14px !important;
      overflow: hidden !important;
    }

    body.dashboard-mode .home-evolution-card {
      grid-column: 1 / span 7 !important;
      grid-row: 1 !important;
      grid-template-rows: 44px minmax(0, 1fr) !important;
    }

    body.dashboard-mode .home-timeline-card {
      grid-column: 8 / span 5 !important;
      grid-row: 1 !important;
      grid-template-rows: 44px minmax(0, 1fr) 44px !important;
    }

    body.dashboard-mode .home-summary-card {
      grid-column: 1 / span 4 !important;
      grid-row: 2 !important;
      grid-template-rows: 44px minmax(0, 1fr) !important;
    }

    body.dashboard-mode .home-actions-card {
      grid-column: 5 / span 4 !important;
      grid-row: 2 !important;
      grid-template-rows: 44px minmax(0, 1fr) 44px !important;
    }

    body.dashboard-mode .home-productivity-card {
      grid-column: 9 / span 4 !important;
      grid-row: 2 !important;
      grid-template-rows: 44px minmax(0, 1fr) 44px !important;
    }

    body.dashboard-mode .home-photo-card {
      grid-column: 1 / -1 !important;
      grid-row: 3 !important;
      grid-template-rows: 44px minmax(0, 1fr) !important;
    }

    body.dashboard-mode .home-evolution-card .evolution-card-body {
      grid-template-rows: 22px minmax(0, 1fr) !important;
      padding: 0 16px 12px !important;
    }

    body.dashboard-mode .home-evolution-card .dashboard-body-legend {
      justify-content: center !important;
      gap: 26px !important;
      font-size: 12px !important;
      font-weight: 780 !important;
    }

    body.dashboard-mode .home-evolution-card .dashboard-line-chart svg {
      min-height: 218px !important;
      height: 100% !important;
      max-height: none !important;
    }

    body.dashboard-mode .timeline-card-body {
      position: relative !important;
      grid-template-rows: 28px minmax(0, 1fr) !important;
      padding: 0 16px 8px !important;
    }

    body.dashboard-mode .home-timeline-card .dashboard-card-status {
      position: absolute !important;
      top: -34px !important;
      right: 16px !important;
      background: transparent !important;
      color: #00745f !important;
      padding: 0 !important;
      font-size: 12px !important;
    }

    body.dashboard-mode .home-timeline-card .dashboard-timeline {
      overflow: hidden !important;
    }

    body.dashboard-mode .home-timeline-card .dashboard-card-action,
    body.dashboard-mode .home-actions-card .dashboard-card-action,
    body.dashboard-mode .home-productivity-card .dashboard-card-action {
      min-height: 32px !important;
      height: 32px !important;
      margin: 0 16px 12px !important;
      border: 1px solid #dfe8eb !important;
      border-radius: 7px !important;
      background: #fff !important;
      color: #10202b !important;
      font-size: 11px !important;
      font-weight: 950 !important;
      text-transform: uppercase !important;
    }

    body.dashboard-mode .summary-card-body {
      display: grid !important;
      grid-template-rows: minmax(0, 1fr) auto !important;
      gap: 14px !important;
    }

    body.dashboard-mode .dashboard-summary-text {
      margin: 0 !important;
      color: #506373 !important;
      font-size: 13px !important;
      line-height: 1.35 !important;
      font-weight: 680 !important;
      overflow: hidden !important;
    }

    body.dashboard-mode .executive-meter-list {
      display: grid !important;
      grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
      gap: 14px !important;
    }

    body.dashboard-mode .executive-meter {
      gap: 5px !important;
      min-width: 0 !important;
    }

    body.dashboard-mode .executive-meter-label {
      display: grid !important;
      grid-template-columns: 1fr !important;
      gap: 4px !important;
      font-size: 10px !important;
      color: #263845 !important;
      font-weight: 850 !important;
    }

    body.dashboard-mode .executive-meter-label strong {
      text-align: left !important;
      font-size: 14px !important;
      color: #10202b !important;
    }

    body.dashboard-mode .executive-track {
      height: 8px !important;
    }

    body.dashboard-mode .actions-card-body,
    body.dashboard-mode .productivity-card-body {
      padding: 0 16px 8px !important;
    }

    body.dashboard-mode .home-actions-card .dashboard-action-list,
    body.dashboard-mode .home-productivity-card .executive-list {
      overflow: hidden !important;
      max-height: none !important;
    }

    body.dashboard-mode .home-photo-card .photo-card-body {
      padding: 0 14px 18px !important;
    }

    body.dashboard-mode .home-photo-card .dashboard-evidence-grid {
      grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
      gap: 12px !important;
    }

    body.dashboard-mode .home-photo-card .evidence-card {
      border: 1px solid #d5e5e4 !important;
      border-radius: 8px !important;
      background: #eaf4f3 !important;
      overflow: hidden !important;
    }

    body.dashboard-mode .home-photo-card .evidence-frame {
      min-height: 100px !important;
      background: #eaf4f3 !important;
    }

    body.dashboard-mode .home-photo-card .evidence-placeholder {
      display: grid !important;
      place-items: center !important;
      gap: 4px !important;
      color: #10202b !important;
      background: #eaf4f3 !important;
      text-transform: none !important;
    }

    body.dashboard-mode .home-photo-card .evidence-placeholder-icon {
      display: block !important;
      color: #10202b !important;
      font-size: 28px !important;
      line-height: 1 !important;
      opacity: 0.8;
    }

    body.dashboard-mode .home-photo-card .evidence-placeholder strong {
      display: block !important;
      font-size: 11px !important;
      font-weight: 900 !important;
    }

    body.dashboard-mode .home-photo-card .evidence-placeholder small {
      display: block !important;
      color: #506373 !important;
      font-size: 10px !important;
      font-weight: 760 !important;
    }

    body.dashboard-mode .dashboard-footer-note {
      height: 42px !important;
      min-height: 42px !important;
      margin: 0 !important;
      padding: 0 28px !important;
      border-top: 1px solid #dfe8eb !important;
      border-radius: 0 !important;
      box-shadow: none !important;
      background: #fff !important;
      color: #506373 !important;
      font-size: 12px !important;
    }

    @media (max-width: 1100px) {
      body.dashboard-mode .dashboard-controls,
      body.dashboard-mode.dashboard-menu-collapsed .dashboard-controls,
      body.dashboard-mode:not(.dashboard-menu-collapsed) .dashboard-controls {
        grid-template-columns: minmax(0, 1fr) 220px 42px 58px !important;
      }

      body.dashboard-mode .dashboard-grid,
      body.dashboard-mode.dashboard-menu-collapsed .dashboard-grid {
        grid-template-rows: auto !important;
        overflow: visible !important;
      }
    }

    body.dashboard-mode .executive-layout-grid,
    body.dashboard-mode.dashboard-menu-collapsed .executive-layout-grid {
      width: 100% !important;
      min-width: 0 !important;
      display: grid !important;
      grid-template-columns: repeat(12, minmax(0, 1fr)) !important;
      grid-template-rows: 294px 232px 166px !important;
      grid-template-areas:
        "evolution evolution evolution evolution evolution evolution evolution timeline timeline timeline timeline timeline"
        "summary summary summary summary actions actions actions actions productivity productivity productivity productivity"
        "photos photos photos photos photos photos photos photos photos photos photos photos" !important;
      gap: 14px !important;
      align-items: stretch !important;
      padding: 0 28px 12px !important;
      overflow: visible !important;
      box-sizing: border-box !important;
    }

    body.dashboard-mode .dashboard-main,
    body.dashboard-mode:not(.dashboard-menu-collapsed) .dashboard-main,
    body.dashboard-mode.dashboard-menu-collapsed .dashboard-main {
      grid-template-rows: auto auto auto 42px !important;
      overflow-x: hidden !important;
      overflow-y: auto !important;
      align-content: start !important;
    }

    body.dashboard-mode .executive-layout-grid > .dashboard-home-card {
      width: 100% !important;
      min-width: 0 !important;
      max-width: none !important;
      height: 100% !important;
      min-height: 0 !important;
      margin: 0 !important;
      position: static !important;
      transform: none !important;
      display: grid !important;
      gap: 0 !important;
      padding: 0 !important;
      border: 1px solid #dfe8eb !important;
      border-radius: 12px !important;
      background: #fff !important;
      box-shadow: 0 8px 20px rgba(15, 37, 45, 0.06) !important;
      overflow: hidden !important;
    }

    body.dashboard-mode .executive-layout-grid .home-evolution-card {
      grid-area: evolution !important;
      grid-column: 1 / span 7 !important;
      grid-row: 1 !important;
      grid-template-rows: 44px minmax(0, 1fr) !important;
    }

    body.dashboard-mode .executive-layout-grid .home-timeline-card {
      grid-area: timeline !important;
      grid-column: 8 / span 5 !important;
      grid-row: 1 !important;
      grid-template-rows: 44px minmax(0, 1fr) 44px !important;
    }

    body.dashboard-mode .executive-layout-grid .home-summary-card {
      grid-area: summary !important;
      grid-column: 1 / span 4 !important;
      grid-row: 2 !important;
      grid-template-rows: 44px minmax(0, 1fr) !important;
    }

    body.dashboard-mode .executive-layout-grid .home-actions-card {
      grid-area: actions !important;
      grid-column: 5 / span 4 !important;
      grid-row: 2 !important;
      grid-template-rows: 44px minmax(0, 1fr) 44px !important;
    }

    body.dashboard-mode .executive-layout-grid .home-productivity-card {
      grid-area: productivity !important;
      grid-column: 9 / span 4 !important;
      grid-row: 2 !important;
      grid-template-rows: 44px minmax(0, 1fr) 44px !important;
    }

    body.dashboard-mode .executive-layout-grid .home-photo-card {
      grid-area: photos !important;
      grid-column: 1 / -1 !important;
      grid-row: 3 !important;
      grid-template-rows: 44px minmax(0, 1fr) !important;
    }

    body.dashboard-mode .executive-layout-grid .dashboard-home-card .dashboard-card-head {
      min-height: 44px !important;
      height: 44px !important;
      padding: 0 16px !important;
      background: transparent !important;
      color: #10202b !important;
      display: flex !important;
      align-items: center !important;
      justify-content: space-between !important;
    }

    body.dashboard-mode .executive-layout-grid .dashboard-home-card .dashboard-card-head h3 {
      color: #10202b !important;
      font-size: 13px !important;
      font-weight: 950 !important;
      line-height: 1 !important;
      text-transform: uppercase !important;
      letter-spacing: 0.02em !important;
      white-space: nowrap !important;
    }

    body.dashboard-mode .executive-layout-grid .dashboard-card-body {
      min-width: 0 !important;
      min-height: 0 !important;
      padding: 0 16px 14px !important;
      overflow: hidden !important;
    }

    body.dashboard-mode .executive-layout-grid .home-evolution-card .evolution-card-body {
      display: grid !important;
      grid-template-rows: 22px minmax(0, 1fr) !important;
      padding: 0 16px 12px !important;
    }

    body.dashboard-mode .executive-layout-grid .home-evolution-card .dashboard-line-chart {
      min-height: 0 !important;
      height: 100% !important;
      display: grid !important;
      align-items: stretch !important;
      overflow: hidden !important;
    }

    body.dashboard-mode .executive-layout-grid .home-evolution-card .dashboard-line-chart svg {
      width: 100% !important;
      height: 100% !important;
      min-height: 0 !important;
      max-height: none !important;
      display: block !important;
    }

    body.dashboard-mode .executive-layout-grid .home-evolution-card .dashboard-body-legend {
      display: flex !important;
      justify-content: center !important;
      gap: 26px !important;
      align-items: center !important;
      min-height: 22px !important;
      font-size: 12px !important;
      font-weight: 780 !important;
    }

    body.dashboard-mode .executive-layout-grid .timeline-card-body {
      position: relative !important;
      display: grid !important;
      grid-template-rows: 28px minmax(0, 1fr) !important;
      padding: 0 16px 8px !important;
      overflow: hidden !important;
    }

    body.dashboard-mode .executive-layout-grid .home-timeline-card .dashboard-card-status {
      position: absolute !important;
      top: -34px !important;
      right: 16px !important;
      min-height: 0 !important;
      padding: 0 !important;
      background: transparent !important;
      color: #00745f !important;
      font-size: 12px !important;
      font-weight: 950 !important;
    }

    body.dashboard-mode .executive-layout-grid .home-timeline-card .dashboard-timeline,
    body.dashboard-mode .executive-layout-grid .home-actions-card .dashboard-action-list,
    body.dashboard-mode .executive-layout-grid .home-productivity-card .executive-list {
      min-height: 0 !important;
      max-height: none !important;
      overflow: hidden !important;
      padding: 0 !important;
    }

    body.dashboard-mode .executive-layout-grid .summary-card-body {
      display: grid !important;
      grid-template-rows: minmax(0, 1fr) auto !important;
      gap: 14px !important;
      padding: 0 16px 14px !important;
    }

    body.dashboard-mode .executive-layout-grid .actions-card-body,
    body.dashboard-mode .executive-layout-grid .productivity-card-body {
      padding: 0 16px 8px !important;
      overflow: hidden !important;
    }

    body.dashboard-mode .executive-layout-grid .home-timeline-card .dashboard-card-action,
    body.dashboard-mode .executive-layout-grid .home-actions-card .dashboard-card-action,
    body.dashboard-mode .executive-layout-grid .home-productivity-card .dashboard-card-action {
      height: 32px !important;
      min-height: 32px !important;
      margin: 0 16px 12px !important;
      border: 1px solid #dfe8eb !important;
      border-radius: 7px !important;
      background: #fff !important;
      color: #10202b !important;
      font-size: 11px !important;
      font-weight: 950 !important;
      text-transform: uppercase !important;
    }

    body.dashboard-mode .executive-layout-grid .home-photo-card .photo-card-body {
      padding: 0 14px 18px !important;
    }

    body.dashboard-mode .executive-layout-grid .home-photo-card .dashboard-evidence-grid {
      height: 100% !important;
      display: grid !important;
      grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
      gap: 12px !important;
      overflow: hidden !important;
    }

    body.dashboard-mode .executive-layout-grid .home-photo-card .evidence-card,
    body.dashboard-mode .executive-layout-grid .home-photo-card .evidence-frame {
      height: 100% !important;
      min-height: 0 !important;
    }

    @media (max-width: 980px) {
      body.dashboard-mode .executive-layout-grid,
      body.dashboard-mode.dashboard-menu-collapsed .executive-layout-grid {
        grid-template-columns: 1fr !important;
        grid-template-rows: auto !important;
        grid-template-areas:
          "evolution"
          "timeline"
          "summary"
          "actions"
          "productivity"
          "photos" !important;
        overflow: visible !important;
      }

      body.dashboard-mode .executive-layout-grid > .dashboard-home-card {
        min-height: 220px !important;
        grid-column: 1 / -1 !important;
        grid-row: auto !important;
      }

      body.dashboard-mode .executive-layout-grid .home-photo-card {
        min-height: 180px !important;
      }
    }

    body.dashboard-mode {
      width: 100% !important;
      min-width: 0 !important;
      overflow-x: hidden !important;
      background: #f6f9fa !important;
    }

    body.dashboard-mode .executive-dashboard-page,
    body.dashboard-mode.dashboard-menu-collapsed .executive-dashboard-page {
      width: 100% !important;
      min-width: 0 !important;
      min-height: 100vh !important;
      grid-template-columns: 126px minmax(0, 1fr) !important;
      overflow-x: hidden !important;
    }

    body.dashboard-mode .dashboard-sidebar {
      width: 126px !important;
      min-width: 126px !important;
      min-height: 100vh !important;
      height: 100vh !important;
    }

    body.dashboard-mode.dashboard-menu-collapsed .executive-dashboard-page {
      grid-template-columns: 72px minmax(0, 1fr) !important;
    }

    body.dashboard-mode.dashboard-menu-collapsed .dashboard-sidebar {
      width: 72px !important;
      min-width: 72px !important;
    }

    body.dashboard-mode .dashboard-main,
    body.dashboard-mode:not(.dashboard-menu-collapsed) .dashboard-main,
    body.dashboard-mode.dashboard-menu-collapsed .dashboard-main {
      width: 100% !important;
      max-width: 100% !important;
      min-width: 0 !important;
    }

    @media (max-width: 820px) {
      body.dashboard-mode .executive-dashboard-page,
      body.dashboard-mode:not(.dashboard-menu-collapsed) .executive-dashboard-page,
      body.dashboard-mode.dashboard-menu-collapsed .executive-dashboard-page {
        grid-template-columns: 1fr !important;
        width: 100% !important;
        min-width: 0 !important;
      }

      body.dashboard-mode .dashboard-sidebar,
      body.dashboard-mode:not(.dashboard-menu-collapsed) .dashboard-sidebar,
      body.dashboard-mode.dashboard-menu-collapsed .dashboard-sidebar {
        position: static !important;
        width: 100% !important;
        min-width: 0 !important;
        height: auto !important;
        min-height: 0 !important;
      }

      body.dashboard-mode .dashboard-main,
      body.dashboard-mode:not(.dashboard-menu-collapsed) .dashboard-main,
      body.dashboard-mode.dashboard-menu-collapsed .dashboard-main {
        grid-template-rows: auto !important;
        overflow: visible !important;
      }
    }

    body.dashboard-mode .dashboard-main,
    body.dashboard-mode:not(.dashboard-menu-collapsed) .dashboard-main,
    body.dashboard-mode.dashboard-menu-collapsed .dashboard-main {
      display: flex !important;
      flex-direction: column !important;
      gap: 0 !important;
      overflow-x: hidden !important;
      overflow-y: auto !important;
      align-content: stretch !important;
    }

    body.dashboard-mode .dashboard-topline {
      flex: 0 0 auto !important;
    }

    body.dashboard-mode .dashboard-kpis,
    body.dashboard-mode.dashboard-menu-collapsed .dashboard-kpis {
      flex: 0 0 auto !important;
      min-height: 140px !important;
      box-sizing: border-box !important;
      position: relative !important;
      z-index: 2 !important;
      margin: 0 !important;
    }

    body.dashboard-mode .executive-layout-grid,
    body.dashboard-mode.dashboard-menu-collapsed .executive-layout-grid {
      flex: 0 0 auto !important;
      position: relative !important;
      z-index: 1 !important;
      margin: 0 !important;
      clear: both !important;
    }

    body.dashboard-mode .dashboard-footer-note {
      flex: 0 0 auto !important;
    }

    body.dashboard-mode .dashboard-sidebar {
      grid-template-rows: 82px minmax(0, 1fr) !important;
      padding: 18px 10px 18px !important;
    }

    body.dashboard-mode .dashboard-side-brand {
      width: 54px !important;
      height: 54px !important;
      margin: 0 auto !important;
    }

    body.dashboard-mode .dashboard-side-brand .icon {
      width: 38px !important;
      height: 38px !important;
    }

    body.dashboard-mode .dashboard-side-nav {
      gap: 8px !important;
      align-content: start !important;
    }

    body.dashboard-mode .dash-nav-button,
    body.dashboard-mode:not(.dashboard-menu-collapsed) .dash-nav-button {
      min-height: 62px !important;
      grid-template-rows: 26px auto !important;
      gap: 4px !important;
      padding: 8px 4px !important;
      font-size: 11px !important;
    }

    body.dashboard-mode .dash-nav-button .icon {
      width: 25px !important;
      height: 25px !important;
    }

    body.dashboard-mode .executive-dashboard-page,
    body.dashboard-mode:not(.dashboard-menu-collapsed) .executive-dashboard-page,
    body.dashboard-mode.dashboard-menu-collapsed .executive-dashboard-page {
      grid-template-columns: 108px minmax(0, 1fr) !important;
    }

    body.dashboard-mode .dashboard-sidebar,
    body.dashboard-mode:not(.dashboard-menu-collapsed) .dashboard-sidebar,
    body.dashboard-mode.dashboard-menu-collapsed .dashboard-sidebar {
      width: 108px !important;
      min-width: 108px !important;
      grid-template-rows: 70px minmax(0, 1fr) !important;
      padding: 16px 8px !important;
    }

    body.dashboard-mode .dashboard-side-brand {
      width: 46px !important;
      height: 46px !important;
    }

    body.dashboard-mode .dashboard-side-brand .icon {
      width: 32px !important;
      height: 32px !important;
    }

    body.dashboard-mode .dashboard-side-nav {
      gap: 6px !important;
    }

    body.dashboard-mode .dash-nav-button,
    body.dashboard-mode:not(.dashboard-menu-collapsed) .dash-nav-button {
      min-height: 54px !important;
      grid-template-rows: 22px auto !important;
      gap: 3px !important;
      padding: 7px 3px !important;
      border-radius: 10px !important;
      font-size: 10px !important;
      line-height: 1.1 !important;
    }

    body.dashboard-mode .dash-nav-button .icon {
      width: 22px !important;
      height: 22px !important;
    }

    body.dashboard-mode .executive-layout-grid .home-timeline-card {
      grid-template-rows: 44px minmax(0, 1fr) 40px !important;
    }

    body.dashboard-mode .executive-layout-grid .timeline-card-body {
      grid-template-rows: minmax(0, 1fr) !important;
      padding: 0 14px 8px !important;
      overflow: hidden !important;
    }

    body.dashboard-mode .executive-layout-grid .home-timeline-card .dashboard-timeline {
      min-height: 0 !important;
      max-height: none !important;
      overflow-y: auto !important;
      overflow-x: hidden !important;
      gap: 7px !important;
      padding: 0 4px 4px 0 !important;
    }

    body.dashboard-mode .executive-layout-grid .home-timeline-card .dashboard-progress {
      height: 9px !important;
      min-height: 9px !important;
    }

    body.dashboard-mode .executive-layout-grid .home-timeline-card .timeline-section-head {
      min-height: 20px !important;
      font-size: 11px !important;
      line-height: 1.15 !important;
    }

    body.dashboard-mode .executive-layout-grid .home-timeline-card .timeline-compact-row {
      min-height: 34px !important;
      padding: 5px 0 !important;
    }

    body.dashboard-mode .executive-layout-grid .home-timeline-card .timeline-compact-row strong,
    body.dashboard-mode .executive-layout-grid .home-timeline-card .timeline-compact-row span {
      line-height: 1.15 !important;
    }

    body.dashboard-mode .executive-layout-grid .home-timeline-card .dashboard-card-action {
      height: 30px !important;
      min-height: 30px !important;
      margin-bottom: 10px !important;
    }

    @media (min-width: 821px) {
      body.dashboard-mode .executive-dashboard-page,
      body.dashboard-mode:not(.dashboard-menu-collapsed) .executive-dashboard-page,
      body.dashboard-mode.dashboard-menu-collapsed .executive-dashboard-page {
        grid-template-columns: 108px minmax(0, 1fr) !important;
      }

      body.dashboard-mode .dashboard-sidebar,
      body.dashboard-mode:not(.dashboard-menu-collapsed) .dashboard-sidebar,
      body.dashboard-mode.dashboard-menu-collapsed .dashboard-sidebar,
      body.executive-subpage-mode .subpage-dashboard-sidebar,
      body.executive-subpage-mode:not(.dashboard-menu-collapsed) .subpage-dashboard-sidebar,
      body.executive-subpage-mode.dashboard-menu-collapsed .subpage-dashboard-sidebar {
        width: 108px !important;
        min-width: 108px !important;
        max-width: 108px !important;
        height: 100vh !important;
        min-height: 100vh !important;
        display: grid !important;
        grid-template-columns: 1fr !important;
        grid-template-rows: 70px minmax(0, 1fr) !important;
        gap: 0 !important;
        align-items: stretch !important;
        justify-items: stretch !important;
        padding: 16px 8px !important;
        border-radius: 0 !important;
        background: linear-gradient(180deg, #00745f 0%, #006450 100%) !important;
        box-shadow: none !important;
        overflow: hidden !important;
      }

      body.executive-subpage-mode .subpage-dashboard-sidebar,
      body.executive-subpage-mode:not(.dashboard-menu-collapsed) .subpage-dashboard-sidebar,
      body.executive-subpage-mode.dashboard-menu-collapsed .subpage-dashboard-sidebar {
        position: fixed !important;
        inset: 0 auto 0 0 !important;
        z-index: 20 !important;
      }

      body.executive-subpage-mode .shell,
      body.executive-subpage-mode.dashboard-menu-collapsed .shell {
        width: calc(100vw - 108px) !important;
        max-width: calc(100vw - 108px) !important;
        min-width: 0 !important;
        margin: 0 0 0 108px !important;
        padding: 0 !important;
      }

      body.dashboard-mode .dashboard-side-brand,
      body.executive-subpage-mode .subpage-dashboard-sidebar .dashboard-side-brand {
        width: 46px !important;
        height: 46px !important;
        margin: 0 auto !important;
        border: 0 !important;
        background: transparent !important;
      }

      body.dashboard-mode .dashboard-side-brand .icon,
      body.executive-subpage-mode .subpage-dashboard-sidebar .dashboard-side-brand .icon {
        width: 32px !important;
        height: 32px !important;
      }

      body.dashboard-mode .dashboard-side-nav,
      body.executive-subpage-mode .subpage-dashboard-sidebar .dashboard-side-nav {
        width: 100% !important;
        display: grid !important;
        grid-auto-flow: row !important;
        grid-auto-columns: unset !important;
        grid-template-columns: 1fr !important;
        gap: 6px !important;
        align-content: start !important;
        justify-items: stretch !important;
        overflow-x: hidden !important;
        overflow-y: auto !important;
        scrollbar-width: none !important;
      }

      body.dashboard-mode .dashboard-side-nav::-webkit-scrollbar,
      body.executive-subpage-mode .subpage-dashboard-sidebar .dashboard-side-nav::-webkit-scrollbar {
        display: none !important;
      }

      body.dashboard-mode .dash-nav-button,
      body.dashboard-mode:not(.dashboard-menu-collapsed) .dash-nav-button,
      body.dashboard-mode.dashboard-menu-collapsed .dash-nav-button,
      body.executive-subpage-mode .subpage-dashboard-sidebar .dash-nav-button,
      body.executive-subpage-mode:not(.dashboard-menu-collapsed) .subpage-dashboard-sidebar .dash-nav-button,
      body.executive-subpage-mode.dashboard-menu-collapsed .subpage-dashboard-sidebar .dash-nav-button {
        width: 100% !important;
        min-width: 0 !important;
        height: auto !important;
        min-height: 54px !important;
        display: grid !important;
        grid-template-columns: 1fr !important;
        grid-template-rows: 22px auto !important;
        gap: 3px !important;
        place-content: center !important;
        place-items: center !important;
        padding: 7px 3px !important;
        border-radius: 10px !important;
        color: rgba(255, 255, 255, 0.92) !important;
        background: transparent !important;
        font-size: 10px !important;
        line-height: 1.1 !important;
        font-weight: 760 !important;
        text-align: center !important;
      }

      body.dashboard-mode .dash-nav-button span,
      body.executive-subpage-mode .subpage-dashboard-sidebar .dash-nav-button span {
        display: inline !important;
        color: inherit !important;
        font-size: 10px !important;
        line-height: 1.1 !important;
      }

      body.dashboard-mode .dash-nav-button .icon,
      body.executive-subpage-mode .subpage-dashboard-sidebar .dash-nav-button .icon {
        width: 22px !important;
        height: 22px !important;
        margin: 0 !important;
      }

      body.dashboard-mode .dash-nav-button.active,
      body.executive-subpage-mode .subpage-dashboard-sidebar .dash-nav-button.active {
        color: #fff !important;
        background: rgba(255, 255, 255, 0.16) !important;
        box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.12) !important;
      }

      body.dashboard-mode .dashboard-quick-links,
      body.executive-subpage-mode .subpage-dashboard-sidebar .dashboard-quick-links {
        display: none !important;
      }
    }

    body.dashboard-mode .executive-layout-grid,
    body.dashboard-mode.dashboard-menu-collapsed .executive-layout-grid {
      grid-template-rows: 312px 220px 232px !important;
    }

    body.dashboard-mode .executive-layout-grid .home-evolution-card {
      grid-template-rows: 42px minmax(0, 1fr) !important;
    }

    body.dashboard-mode .executive-layout-grid .home-evolution-card .evolution-card-body {
      grid-template-rows: 18px minmax(0, 1fr) !important;
      padding: 0 10px 8px !important;
    }

    body.dashboard-mode .executive-layout-grid .home-evolution-card .dashboard-body-legend {
      min-height: 18px !important;
      font-size: 12px !important;
    }

    body.dashboard-mode .executive-layout-grid .home-evolution-card .dashboard-line-chart {
      min-height: 0 !important;
      height: 100% !important;
      padding: 0 !important;
    }

    body.dashboard-mode .executive-layout-grid .home-evolution-card .dashboard-line-chart svg {
      width: 100% !important;
      height: 100% !important;
      min-height: 250px !important;
    }

    body.dashboard-mode .executive-layout-grid .summary-card-body {
      grid-template-rows: auto auto !important;
      align-content: start !important;
      gap: 10px !important;
      padding: 0 16px 12px !important;
    }

    body.dashboard-mode .executive-layout-grid .dashboard-summary-text {
      text-align: justify !important;
      max-height: none !important;
      line-height: 1.4 !important;
    }

    body.dashboard-mode .executive-layout-grid .executive-meter-list {
      gap: 10px !important;
      align-self: start !important;
    }

    body.dashboard-mode .executive-layout-grid .executive-meter {
      gap: 4px !important;
    }

    body.dashboard-mode .executive-layout-grid .home-photo-card {
      grid-template-rows: 42px minmax(0, 1fr) !important;
    }

    body.dashboard-mode .executive-layout-grid .home-photo-card .photo-card-body {
      padding: 0 12px 14px !important;
    }

    body.dashboard-mode .executive-layout-grid .home-photo-card .dashboard-evidence-grid {
      gap: 14px !important;
    }

    body.dashboard-mode .executive-layout-grid .home-photo-card .evidence-card,
    body.dashboard-mode .executive-layout-grid .home-photo-card .evidence-frame {
      min-height: 168px !important;
    }

    body.dashboard-mode > .subpage-dashboard-sidebar {
      display: none !important;
      visibility: hidden !important;
      pointer-events: none !important;
    }

    body.locked .login-screen {
      display: grid !important;
    }

    body.dashboard-mode:not(.locked),
    body.dashboard-mode:not(.locked) .shell,
    body.dashboard-mode:not(.locked) .app-view[data-view="inicio"].active {
      margin: 0 !important;
      padding: 0 !important;
      width: 100% !important;
      min-width: 0 !important;
      min-height: 100vh !important;
      overflow-x: hidden !important;
    }

    body.dashboard-mode:not(.locked) .shell {
      display: block !important;
      max-width: none !important;
    }

    body.dashboard-mode:not(.locked) .app-view[data-view="inicio"].active {
      display: block !important;
    }

    body.dashboard-mode:not(.locked) .executive-dashboard-page,
    body.dashboard-mode:not(.locked):not(.dashboard-menu-collapsed) .executive-dashboard-page,
    body.dashboard-mode:not(.locked).dashboard-menu-collapsed .executive-dashboard-page {
      display: grid !important;
      grid-template-columns: 108px minmax(0, 1fr) !important;
      align-items: start !important;
      width: 100% !important;
      min-height: 100vh !important;
      margin: 0 !important;
      padding: 0 !important;
      overflow: hidden auto !important;
    }

    body.dashboard-mode:not(.locked) .executive-dashboard-page > .dashboard-sidebar {
      position: sticky !important;
      top: 0 !important;
      grid-column: 1 !important;
      grid-row: 1 !important;
      height: 100vh !important;
      min-height: 100vh !important;
    }

    body.dashboard-mode:not(.locked) .dashboard-main {
      grid-column: 2 !important;
      grid-row: 1 !important;
      min-width: 0 !important;
      min-height: 100vh !important;
      margin: 0 !important;
      padding-top: 24px !important;
    }

    body.dashboard-mode:not(.locked) {
      height: 100vh !important;
      max-height: 100vh !important;
      overflow: hidden !important;
    }

    body.dashboard-mode:not(.locked) > .login-screen,
    body.dashboard-mode:not(.locked) > .app-header,
    body.dashboard-mode:not(.locked) > .subpage-dashboard-sidebar,
    body.dashboard-mode:not(.locked) > .file-input {
      display: none !important;
      width: 0 !important;
      height: 0 !important;
      margin: 0 !important;
      padding: 0 !important;
      overflow: hidden !important;
    }

    body.dashboard-mode:not(.locked) > .shell {
      position: fixed !important;
      inset: 0 !important;
      z-index: 1 !important;
      display: block !important;
      width: 100vw !important;
      height: 100vh !important;
      max-width: none !important;
      max-height: 100vh !important;
      margin: 0 !important;
      padding: 0 !important;
      overflow: auto !important;
      background: #f6f9fa !important;
    }

    /* GO visual standard */
    :root {
      --go-green: #00745f;
      --go-green-dark: #005244;
      --go-accent: #00d59d;
      --go-bg: #f6f9fb;
      --go-ink: #10202b;
      --go-muted: #64748b;
      --go-line: #dfe8eb;
      --go-soft-line: #edf3f5;
      --go-shadow: 0 14px 34px rgba(15, 37, 45, 0.07);
    }

    body,
    input,
    select,
    textarea,
    button {
      font-family: Inter, "SF Pro Display", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif !important;
      letter-spacing: 0 !important;
    }

    .login-screen {
      background:
        radial-gradient(circle at 28% 18%, rgba(0, 213, 157, 0.22), transparent 32%),
        linear-gradient(145deg, #003f36 0%, #061d1c 100%) !important;
    }

    .login-panel {
      width: min(420px, calc(100vw - 32px)) !important;
      gap: 18px !important;
      padding: 34px !important;
      border: 1px solid rgba(255, 255, 255, 0.14) !important;
      border-radius: 18px !important;
      background: rgba(255, 255, 255, 0.96) !important;
      box-shadow: 0 28px 70px rgba(0, 32, 27, 0.34) !important;
    }

    .login-panel .brand-mark,
    .app-header .brand-mark {
      width: 132px !important;
      height: 64px !important;
      margin: 0 auto 2px !important;
      border: 0 !important;
      overflow: hidden !important;
      background: url("assets/logo-go.png") center / contain no-repeat !important;
      box-shadow: none !important;
      color: transparent !important;
    }

    .go-logo-img {
      display: block !important;
      width: 100% !important;
      height: 100% !important;
      object-fit: contain !important;
    }

    .login-panel .brand-mark .icon,
    .app-header .brand-mark .icon {
      display: none !important;
    }

    .login-panel h1 {
      color: var(--go-ink) !important;
      font-size: 24px !important;
      line-height: 1.12 !important;
      font-weight: 850 !important;
      text-transform: none !important;
      text-align: center !important;
    }

    .login-panel p {
      color: var(--go-muted) !important;
      font-size: 13px !important;
      font-weight: 600 !important;
      text-align: center !important;
    }

    .login-panel .field label {
      color: #334155 !important;
      font-size: 12px !important;
      font-weight: 750 !important;
      text-transform: none !important;
    }

    .login-panel input {
      height: 44px !important;
      border: 1px solid var(--go-line) !important;
      border-radius: 10px !important;
      background: #fff !important;
      color: var(--go-ink) !important;
      font-size: 14px !important;
    }

    .login-panel .primary-button {
      height: 44px !important;
      border-radius: 10px !important;
      background: linear-gradient(135deg, #00745f, #005244) !important;
      font-size: 13px !important;
      font-weight: 850 !important;
      letter-spacing: 0 !important;
    }

    body.dashboard-mode:not(.locked) {
      background: var(--go-bg) !important;
      color: var(--go-ink) !important;
      overflow: hidden !important;
    }

    body.dashboard-mode:not(.locked) > .shell {
      background: var(--go-bg) !important;
      overflow: hidden !important;
    }

    body.dashboard-mode:not(.locked) .app-view[data-view="inicio"].active {
      min-height: 100vh !important;
      background: var(--go-bg) !important;
    }

    body.dashboard-mode:not(.locked) .executive-dashboard-page,
    body.dashboard-mode:not(.locked):not(.dashboard-menu-collapsed) .executive-dashboard-page,
    body.dashboard-mode:not(.locked).dashboard-menu-collapsed .executive-dashboard-page {
      grid-template-columns: 132px minmax(0, 1fr) !important;
      width: 100vw !important;
      max-width: 100vw !important;
      min-height: 100vh !important;
      background: var(--go-bg) !important;
      overflow: hidden !important;
    }

    body.dashboard-mode:not(.locked) .dashboard-main {
      display: grid !important;
      grid-template-rows: auto auto minmax(0, 1fr) 40px !important;
      min-width: 0 !important;
      min-height: 100vh !important;
      max-height: 100vh !important;
      padding-top: 0 !important;
      background: var(--go-bg) !important;
      overflow-x: hidden !important;
      overflow-y: auto !important;
    }

    body.dashboard-mode > .subpage-dashboard-sidebar,
    body.dashboard-mode:not(.locked) > .subpage-dashboard-sidebar {
      display: none !important;
    }

    body.dashboard-mode:not(.locked) .dashboard-sidebar,
    body.dashboard-mode:not(.locked):not(.dashboard-menu-collapsed) .dashboard-sidebar,
    body.dashboard-mode:not(.locked).dashboard-menu-collapsed .dashboard-sidebar,
    body.executive-subpage-mode .subpage-dashboard-sidebar,
    body.executive-subpage-mode:not(.dashboard-menu-collapsed) .subpage-dashboard-sidebar,
    body.executive-subpage-mode.dashboard-menu-collapsed .subpage-dashboard-sidebar {
      width: 132px !important;
      min-width: 132px !important;
      max-width: 132px !important;
      height: 100vh !important;
      min-height: 100vh !important;
      display: grid !important;
      grid-template-columns: 1fr !important;
      grid-template-rows: 82px minmax(0, 1fr) auto !important;
      gap: 0 !important;
      padding: 24px 12px !important;
      border: 0 !important;
      border-radius: 0 !important;
      background: linear-gradient(180deg, #00745f 0%, #004f42 100%) !important;
      box-shadow: none !important;
      overflow: hidden !important;
    }

    body.executive-subpage-mode .subpage-dashboard-sidebar {
      position: fixed !important;
      inset: 0 auto 0 0 !important;
      z-index: 20 !important;
    }

    body.executive-subpage-mode .shell,
    body.executive-subpage-mode.dashboard-menu-collapsed .shell {
      width: calc(100vw - 132px) !important;
      max-width: calc(100vw - 132px) !important;
      min-width: 0 !important;
      margin: 0 0 0 132px !important;
      padding: 22px 26px !important;
      background: var(--go-bg) !important;
    }

    body.dashboard-mode:not(.locked) .dashboard-side-brand,
    body.executive-subpage-mode .subpage-dashboard-sidebar .dashboard-side-brand {
      width: 76px !important;
      height: 42px !important;
      margin: 0 auto 22px !important;
      border: 0 !important;
      border-radius: 0 !important;
      overflow: hidden !important;
      background: url("assets/logo-go.png") center / contain no-repeat !important;
      box-shadow: none !important;
      color: transparent !important;
    }

    body.dashboard-mode:not(.locked) .dashboard-side-brand .icon,
    body.executive-subpage-mode .subpage-dashboard-sidebar .dashboard-side-brand .icon {
      display: none !important;
    }

    body.dashboard-mode:not(.locked) .dashboard-side-nav,
    body.executive-subpage-mode .subpage-dashboard-sidebar .dashboard-side-nav {
      display: grid !important;
      grid-template-columns: 1fr !important;
      gap: 8px !important;
      align-content: start !important;
      overflow: hidden auto !important;
    }

    body.dashboard-mode:not(.locked) .dash-nav-button,
    body.dashboard-mode:not(.locked):not(.dashboard-menu-collapsed) .dash-nav-button,
    body.dashboard-mode:not(.locked).dashboard-menu-collapsed .dash-nav-button,
    body.executive-subpage-mode .subpage-dashboard-sidebar .dash-nav-button,
    body.executive-subpage-mode:not(.dashboard-menu-collapsed) .subpage-dashboard-sidebar .dash-nav-button,
    body.executive-subpage-mode.dashboard-menu-collapsed .subpage-dashboard-sidebar .dash-nav-button {
      width: 100% !important;
      min-height: 48px !important;
      display: grid !important;
      grid-template-columns: 24px minmax(0, 1fr) !important;
      grid-template-rows: 1fr !important;
      gap: 9px !important;
      align-items: center !important;
      justify-items: start !important;
      padding: 0 11px !important;
      border: 0 !important;
      border-radius: 10px !important;
      background: transparent !important;
      color: rgba(255, 255, 255, 0.9) !important;
      font-size: 12px !important;
      font-weight: 720 !important;
      line-height: 1.1 !important;
      text-align: left !important;
      text-transform: none !important;
      box-shadow: none !important;
    }

    body.dashboard-mode:not(.locked) .dash-nav-button .icon,
    body.executive-subpage-mode .subpage-dashboard-sidebar .dash-nav-button .icon {
      width: 19px !important;
      height: 19px !important;
      justify-self: center !important;
      margin: 0 !important;
      color: currentColor !important;
    }

    body.dashboard-mode:not(.locked) .dash-nav-button span,
    body.executive-subpage-mode .subpage-dashboard-sidebar .dash-nav-button span {
      display: inline !important;
      color: inherit !important;
      font-size: 12px !important;
      font-weight: 720 !important;
      line-height: 1.1 !important;
      white-space: nowrap !important;
      overflow: hidden !important;
      text-overflow: ellipsis !important;
      text-transform: none !important;
    }

    body.dashboard-mode:not(.locked) .dash-nav-button.active,
    body.executive-subpage-mode .subpage-dashboard-sidebar .dash-nav-button.active {
      background: rgba(255, 255, 255, 0.16) !important;
      color: #fff !important;
      box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.1) !important;
    }

    body.dashboard-mode:not(.locked) .dash-nav-button.active::before,
    body.executive-subpage-mode .subpage-dashboard-sidebar .dash-nav-button.active::before {
      content: "" !important;
      position: absolute !important;
      left: -12px !important;
      top: 10px !important;
      bottom: 10px !important;
      width: 4px !important;
      border-radius: 0 999px 999px 0 !important;
      background: var(--go-accent) !important;
    }

    body.dashboard-mode:not(.locked) .dashboard-quick-links,
    body.dashboard-mode:not(.locked) .dashboard-collapse-button,
    body.executive-subpage-mode .subpage-dashboard-sidebar .dashboard-quick-links,
    body.executive-subpage-mode .subpage-dashboard-sidebar .dashboard-collapse-button {
      display: none !important;
    }

    body.dashboard-mode:not(.locked) .dashboard-topline,
    body.dashboard-mode:not(.locked):not(.dashboard-menu-collapsed) .dashboard-topline,
    body.dashboard-mode:not(.locked).dashboard-menu-collapsed .dashboard-topline {
      display: grid !important;
      grid-template-columns: minmax(0, 1fr) auto !important;
      grid-template-rows: auto auto !important;
      gap: 20px 22px !important;
      align-items: start !important;
      min-height: 0 !important;
      padding: 24px 30px 18px !important;
      border-bottom: 1px solid var(--go-line) !important;
      background: #fff !important;
      box-shadow: none !important;
    }

    body.dashboard-mode:not(.locked) .dashboard-heading {
      grid-column: 1 !important;
      grid-row: 1 !important;
      min-width: 0 !important;
    }

    body.dashboard-mode:not(.locked) .dashboard-heading h2 {
      margin: 0 !important;
      color: var(--go-ink) !important;
      font-size: 22px !important;
      line-height: 1.12 !important;
      font-weight: 850 !important;
      text-transform: none !important;
    }

    body.dashboard-mode:not(.locked) .dashboard-heading p {
      margin: 6px 0 0 !important;
      color: var(--go-muted) !important;
      font-size: 13px !important;
      line-height: 1.25 !important;
      font-weight: 600 !important;
    }

    body.dashboard-mode:not(.locked) .dashboard-toolbar-actions {
      grid-column: 2 !important;
      grid-row: 1 !important;
      display: grid !important;
      grid-template-columns: 40px 40px 54px !important;
      gap: 16px !important;
      align-items: center !important;
      justify-content: end !important;
    }

    body.dashboard-mode:not(.locked) .dashboard-controls,
    body.dashboard-mode:not(.locked):not(.dashboard-menu-collapsed) .dashboard-controls,
    body.dashboard-mode:not(.locked).dashboard-menu-collapsed .dashboard-controls {
      grid-column: 1 / -1 !important;
      grid-row: 2 !important;
      width: 100% !important;
      display: grid !important;
      grid-template-columns: minmax(0, 1fr) 132px !important;
      gap: 18px !important;
      align-items: center !important;
      overflow: visible !important;
    }

    body.dashboard-mode:not(.locked) .dashboard-select-card,
    body.dashboard-mode:not(.locked) .dashboard-work-card,
    body.dashboard-mode:not(.locked) .dashboard-period-card {
      height: 44px !important;
      min-height: 44px !important;
      display: grid !important;
      align-items: center !important;
      border: 1px solid var(--go-line) !important;
      border-radius: 8px !important;
      background: #fff !important;
      box-shadow: none !important;
      overflow: hidden !important;
    }

    body.dashboard-mode:not(.locked) .dashboard-work-card {
      grid-template-columns: 138px minmax(0, 1fr) !important;
      padding: 0 !important;
    }

    body.dashboard-mode:not(.locked) .dashboard-period-card {
      grid-template-columns: 82px minmax(0, 1fr) !important;
      padding: 0 !important;
    }

    body.dashboard-mode:not(.locked) .dashboard-select-card span {
      height: 100% !important;
      display: grid !important;
      place-items: center !important;
      padding: 0 12px !important;
      border-right: 1px solid var(--go-line) !important;
      color: #64748b !important;
      font-size: 10px !important;
      font-weight: 820 !important;
      text-transform: none !important;
      white-space: nowrap !important;
    }

    body.dashboard-mode:not(.locked) .dashboard-select-card select,
    body.dashboard-mode:not(.locked) .dashboard-select-card input[type="month"] {
      width: 100% !important;
      height: 100% !important;
      min-height: 0 !important;
      padding: 0 34px 0 16px !important;
      border: 0 !important;
      background: transparent !important;
      color: var(--go-ink) !important;
      font-size: 15px !important;
      font-weight: 850 !important;
      line-height: 1 !important;
    }

    body.dashboard-mode:not(.locked) .dashboard-period-card strong {
      display: none !important;
    }

    body.dashboard-mode:not(.locked) .dashboard-new-work-button {
      height: 44px !important;
      border: 0 !important;
      border-radius: 8px !important;
      background: linear-gradient(135deg, #00745f, #005244) !important;
      color: #fff !important;
      font-size: 13px !important;
      font-weight: 820 !important;
      box-shadow: 0 12px 24px rgba(0, 82, 68, 0.18) !important;
      cursor: pointer !important;
      white-space: nowrap !important;
    }

    body.dashboard-mode:not(.locked) .dashboard-notify-button {
      width: 40px !important;
      min-width: 40px !important;
      height: 40px !important;
      border: 0 !important;
      background: transparent !important;
      box-shadow: none !important;
      color: var(--go-ink) !important;
    }

    body.dashboard-mode:not(.locked) .dashboard-notify-button .icon {
      width: 22px !important;
      height: 22px !important;
    }

    body.dashboard-mode:not(.locked) .dashboard-notify-button span {
      top: 2px !important;
      right: 0 !important;
      min-width: 17px !important;
      height: 17px !important;
      font-size: 10px !important;
      background: #ef4444 !important;
      border: 2px solid #fff !important;
    }

    body.dashboard-mode:not(.locked) .dashboard-logout-button {
      width: 40px !important;
      min-width: 40px !important;
      height: 40px !important;
      min-height: 40px !important;
      padding: 0 !important;
      display: grid !important;
      place-items: center !important;
      border: 0 !important;
      border-radius: 50% !important;
      background: #fff !important;
      color: #64748b !important;
      box-shadow: 0 10px 22px rgba(15, 23, 42, 0.08) !important;
    }

    body.dashboard-mode:not(.locked) .dashboard-logout-button .icon {
      width: 19px !important;
      height: 19px !important;
    }

    body.dashboard-mode:not(.locked) .dashboard-user-card {
      width: 54px !important;
      min-width: 54px !important;
      height: 44px !important;
      display: grid !important;
      grid-template-columns: 38px !important;
      place-items: center !important;
      padding: 0 !important;
      border: 0 !important;
      background: transparent !important;
      box-shadow: none !important;
    }

    body.dashboard-mode:not(.locked) .dashboard-user-card > div:not(.dashboard-avatar) {
      display: none !important;
    }

    body.dashboard-mode:not(.locked) .dashboard-avatar {
      width: 38px !important;
      height: 38px !important;
      border: 0 !important;
      background: #00745f !important;
      color: #fff !important;
      font-size: 12px !important;
      font-weight: 850 !important;
      box-shadow: 0 10px 22px rgba(0, 82, 68, 0.18) !important;
    }

    body.dashboard-mode:not(.locked) .dashboard-kpis,
    body.dashboard-mode:not(.locked):not(.dashboard-menu-collapsed) .dashboard-kpis,
    body.dashboard-mode:not(.locked).dashboard-menu-collapsed .dashboard-kpis {
      display: grid !important;
      grid-template-columns: repeat(6, minmax(0, 1fr)) !important;
      gap: 14px !important;
      min-height: 0 !important;
      padding: 16px 30px 12px !important;
      margin: 0 !important;
      overflow: visible !important;
    }

    body.dashboard-mode:not(.locked) .kpi-card {
      min-width: 0 !important;
      height: 104px !important;
      min-height: 104px !important;
      display: grid !important;
      grid-template-rows: 16px 48px 14px !important;
      gap: 6px !important;
      align-content: center !important;
      padding: 13px 14px !important;
      border: 1px solid var(--go-line) !important;
      border-radius: 12px !important;
      background: #fff !important;
      box-shadow: var(--go-shadow) !important;
      overflow: hidden !important;
    }

    body.dashboard-mode:not(.locked) .kpi-card > span {
      color: #263845 !important;
      font-size: 10px !important;
      line-height: 1.1 !important;
      font-weight: 850 !important;
      text-align: center !important;
      text-transform: uppercase !important;
      white-space: nowrap !important;
      overflow: hidden !important;
      text-overflow: ellipsis !important;
    }

    body.dashboard-mode:not(.locked) .kpi-value-line {
      display: grid !important;
      grid-template-columns: 46px minmax(0, auto) !important;
      gap: 10px !important;
      align-items: center !important;
      justify-content: center !important;
      min-width: 0 !important;
      margin: 0 !important;
    }

    body.dashboard-mode:not(.locked) .kpi-icon {
      width: 44px !important;
      height: 44px !important;
      min-width: 44px !important;
    }

    body.dashboard-mode:not(.locked) .kpi-value-line strong,
    body.dashboard-mode:not(.locked) #homePercentAvg,
    body.dashboard-mode:not(.locked) #homeCostRealized {
      min-width: 0 !important;
      max-width: 100% !important;
      color: var(--go-ink) !important;
      font-size: 22px !important;
      line-height: 1 !important;
      font-weight: 900 !important;
      white-space: nowrap !important;
      overflow: hidden !important;
      text-overflow: ellipsis !important;
    }

    body.dashboard-mode:not(.locked) .kpi-card small {
      color: var(--go-muted) !important;
      font-size: 10px !important;
      line-height: 1.15 !important;
      font-weight: 650 !important;
      text-align: center !important;
      white-space: nowrap !important;
      overflow: hidden !important;
      text-overflow: ellipsis !important;
    }

    body.dashboard-mode:not(.locked) .executive-layout-grid,
    body.dashboard-mode:not(.locked):not(.dashboard-menu-collapsed) .executive-layout-grid,
    body.dashboard-mode:not(.locked).dashboard-menu-collapsed .executive-layout-grid {
      display: grid !important;
      grid-template-columns: repeat(12, minmax(0, 1fr)) !important;
      grid-template-rows: 288px 174px 188px !important;
      grid-template-areas:
        "evolution evolution evolution evolution evolution evolution evolution timeline timeline timeline timeline timeline"
        "summary summary summary summary actions actions actions actions productivity productivity productivity productivity"
        "photos photos photos photos photos photos photos photos photos photos photos photos" !important;
      gap: 14px !important;
      align-items: stretch !important;
      padding: 0 30px 14px !important;
      margin: 0 !important;
      overflow: visible !important;
      box-sizing: border-box !important;
    }

    body.dashboard-mode:not(.locked) .executive-layout-grid > .dashboard-home-card {
      width: 100% !important;
      height: 100% !important;
      min-width: 0 !important;
      min-height: 0 !important;
      display: grid !important;
      gap: 0 !important;
      padding: 0 !important;
      border: 1px solid var(--go-line) !important;
      border-radius: 12px !important;
      background: #fff !important;
      box-shadow: var(--go-shadow) !important;
      overflow: hidden !important;
      position: static !important;
      transform: none !important;
    }

    body.dashboard-mode:not(.locked) .home-evolution-card {
      grid-area: evolution !important;
      grid-template-rows: 44px minmax(0, 1fr) !important;
    }

    body.dashboard-mode:not(.locked) .home-timeline-card {
      grid-area: timeline !important;
      grid-template-rows: 44px minmax(0, 1fr) 42px !important;
    }

    body.dashboard-mode:not(.locked) .home-summary-card {
      grid-area: summary !important;
      grid-template-rows: 44px minmax(0, 1fr) !important;
    }

    body.dashboard-mode:not(.locked) .home-actions-card {
      grid-area: actions !important;
      grid-template-rows: 44px minmax(0, 1fr) 42px !important;
    }

    body.dashboard-mode:not(.locked) .home-productivity-card {
      grid-area: productivity !important;
      grid-template-rows: 44px minmax(0, 1fr) 42px !important;
    }

    body.dashboard-mode:not(.locked) .home-photo-card {
      grid-area: photos !important;
      grid-template-rows: 44px minmax(0, 1fr) !important;
    }

    body.dashboard-mode:not(.locked) .dashboard-home-card .dashboard-card-head {
      height: 44px !important;
      min-height: 44px !important;
      display: flex !important;
      align-items: center !important;
      justify-content: space-between !important;
      padding: 0 16px !important;
      border: 0 !important;
      background: transparent !important;
      color: var(--go-ink) !important;
    }

    body.dashboard-mode:not(.locked) .dashboard-home-card .dashboard-card-head h3 {
      margin: 0 !important;
      color: var(--go-ink) !important;
      font-size: 13px !important;
      line-height: 1.1 !important;
      font-weight: 850 !important;
      text-transform: none !important;
      white-space: nowrap !important;
      overflow: hidden !important;
      text-overflow: ellipsis !important;
    }

    body.dashboard-mode:not(.locked) .dashboard-card-body {
      min-width: 0 !important;
      min-height: 0 !important;
      padding: 0 16px 14px !important;
      overflow: hidden !important;
    }

    body.dashboard-mode:not(.locked) .home-evolution-card .evolution-card-body {
      display: grid !important;
      grid-template-rows: 22px minmax(0, 1fr) !important;
      padding: 0 16px 14px !important;
    }

    body.dashboard-mode:not(.locked) .home-evolution-card .dashboard-body-legend {
      display: flex !important;
      justify-content: center !important;
      gap: 26px !important;
      align-items: center !important;
      min-height: 22px !important;
      color: #536878 !important;
      font-size: 12px !important;
      font-weight: 720 !important;
    }

    body.dashboard-mode:not(.locked) .home-evolution-card .dashboard-line-chart {
      height: 100% !important;
      min-height: 0 !important;
      display: grid !important;
      align-items: stretch !important;
      overflow: hidden !important;
      padding: 0 !important;
    }

    body.dashboard-mode:not(.locked) .home-evolution-card .dashboard-line-chart svg {
      width: 100% !important;
      height: 100% !important;
      min-height: 0 !important;
      max-height: none !important;
      display: block !important;
    }

    body.dashboard-mode:not(.locked) .timeline-card-body {
      position: relative !important;
      display: grid !important;
      grid-template-rows: minmax(0, 1fr) !important;
      padding: 0 16px 6px !important;
      overflow: hidden !important;
    }

    body.dashboard-mode:not(.locked) .home-timeline-card .dashboard-card-status {
      position: absolute !important;
      top: -31px !important;
      right: 16px !important;
      padding: 0 !important;
      background: transparent !important;
      color: var(--go-green) !important;
      font-size: 12px !important;
      line-height: 1 !important;
      font-weight: 850 !important;
    }

    body.dashboard-mode:not(.locked) .home-timeline-card .dashboard-timeline {
      display: grid !important;
      gap: 7px !important;
      min-height: 0 !important;
      max-height: none !important;
      overflow: hidden auto !important;
      padding: 0 4px 4px 0 !important;
    }

    body.dashboard-mode:not(.locked) .home-timeline-card .dashboard-progress {
      height: 9px !important;
      min-height: 9px !important;
      margin: 0 0 6px !important;
      background: #e6eef1 !important;
    }

    body.dashboard-mode:not(.locked) .home-timeline-card .timeline-section-head {
      min-height: 18px !important;
      color: var(--go-ink) !important;
      font-size: 11px !important;
      line-height: 1.15 !important;
      font-weight: 800 !important;
    }

    body.dashboard-mode:not(.locked) .home-timeline-card .timeline-compact-row {
      min-height: 32px !important;
      padding: 4px 0 !important;
      border-top: 1px solid var(--go-soft-line) !important;
    }

    body.dashboard-mode:not(.locked) .timeline-compact-row strong {
      color: var(--go-ink) !important;
      font-size: 12px !important;
      line-height: 1.15 !important;
      font-weight: 820 !important;
      white-space: nowrap !important;
      overflow: hidden !important;
      text-overflow: ellipsis !important;
    }

    body.dashboard-mode:not(.locked) .timeline-compact-row span {
      color: var(--go-muted) !important;
      font-size: 11px !important;
      line-height: 1.15 !important;
      font-weight: 600 !important;
    }

    body.dashboard-mode:not(.locked) .badge {
      border-radius: 999px !important;
      font-size: 10px !important;
      font-weight: 800 !important;
      line-height: 1 !important;
      padding: 7px 10px !important;
      white-space: nowrap !important;
    }

    body.dashboard-mode:not(.locked) .summary-card-body {
      display: grid !important;
      grid-template-rows: auto minmax(0, 1fr) !important;
      gap: 10px !important;
      padding: 0 16px 14px !important;
      align-content: start !important;
    }

    body.dashboard-mode:not(.locked) .dashboard-summary-text {
      max-height: 56px !important;
      margin: 0 !important;
      color: #536878 !important;
      font-size: 12px !important;
      line-height: 1.35 !important;
      font-weight: 650 !important;
      text-align: left !important;
      overflow: hidden !important;
    }

    body.dashboard-mode:not(.locked) .executive-meter-list {
      display: grid !important;
      grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
      gap: 12px !important;
      align-self: end !important;
    }

    body.dashboard-mode:not(.locked) .executive-meter-label {
      display: grid !important;
      grid-template-columns: 1fr !important;
      gap: 4px !important;
      color: #263845 !important;
      font-size: 10px !important;
      font-weight: 760 !important;
      line-height: 1.1 !important;
    }

    body.dashboard-mode:not(.locked) .executive-meter-label strong {
      color: var(--go-ink) !important;
      font-size: 15px !important;
      font-weight: 900 !important;
      text-align: left !important;
    }

    body.dashboard-mode:not(.locked) .executive-track {
      height: 7px !important;
      background: #e5edf0 !important;
    }

    body.dashboard-mode:not(.locked) .actions-card-body,
    body.dashboard-mode:not(.locked) .productivity-card-body {
      padding: 0 16px 8px !important;
      overflow: hidden !important;
    }

    body.dashboard-mode:not(.locked) .priority-summary-grid {
      display: grid !important;
      grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
      gap: 10px !important;
    }

    body.dashboard-mode:not(.locked) .priority-summary-card {
      min-height: 70px !important;
      padding: 10px 11px !important;
      border-radius: 10px !important;
    }

    body.dashboard-mode:not(.locked) .priority-summary-card span {
      font-size: 10px !important;
      font-weight: 820 !important;
    }

    body.dashboard-mode:not(.locked) .priority-summary-card strong {
      font-size: 24px !important;
      line-height: 1 !important;
      font-weight: 900 !important;
    }

    body.dashboard-mode:not(.locked) .priority-summary-card small {
      font-size: 10px !important;
      line-height: 1.15 !important;
      font-weight: 650 !important;
    }

    body.dashboard-mode:not(.locked) .priority-next-row,
    body.dashboard-mode:not(.locked) .productivity-week-row {
      min-height: 28px !important;
      padding: 5px 0 !important;
      border-top: 1px solid var(--go-soft-line) !important;
      color: var(--go-ink) !important;
      font-size: 11px !important;
      line-height: 1.15 !important;
    }

    body.dashboard-mode:not(.locked) .productivity-week-row strong {
      font-size: 11px !important;
      font-weight: 800 !important;
      white-space: nowrap !important;
      overflow: hidden !important;
      text-overflow: ellipsis !important;
    }

    body.dashboard-mode:not(.locked) .productivity-week-row span {
      color: var(--go-muted) !important;
      font-size: 11px !important;
      font-weight: 700 !important;
    }

    body.dashboard-mode:not(.locked) .trend-badge {
      min-width: 44px !important;
      color: var(--go-green) !important;
      font-size: 11px !important;
      font-weight: 820 !important;
      text-align: right !important;
      background: transparent !important;
    }

    body.dashboard-mode:not(.locked) .home-timeline-card .dashboard-card-action,
    body.dashboard-mode:not(.locked) .home-actions-card .dashboard-card-action,
    body.dashboard-mode:not(.locked) .home-productivity-card .dashboard-card-action {
      height: 30px !important;
      min-height: 30px !important;
      margin: 0 16px 10px !important;
      border: 1px solid var(--go-line) !important;
      border-radius: 8px !important;
      background: #fff !important;
      color: var(--go-green) !important;
      font-size: 11px !important;
      font-weight: 820 !important;
      text-transform: none !important;
    }

    body.dashboard-mode:not(.locked) .dashboard-head-link {
      border: 0 !important;
      background: transparent !important;
      color: var(--go-green) !important;
      font-size: 11px !important;
      font-weight: 820 !important;
      text-transform: none !important;
    }

    body.dashboard-mode:not(.locked) .home-photo-card .photo-card-body {
      padding: 0 14px 14px !important;
    }

    body.dashboard-mode:not(.locked) .home-photo-card .dashboard-evidence-grid {
      height: 100% !important;
      display: grid !important;
      grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
      gap: 12px !important;
    }

    body.dashboard-mode:not(.locked) .home-photo-card .evidence-card,
    body.dashboard-mode:not(.locked) .home-photo-card .evidence-frame {
      height: 100% !important;
      min-height: 0 !important;
      border-radius: 8px !important;
      overflow: hidden !important;
    }

    body.dashboard-mode:not(.locked) .home-photo-card .evidence-card {
      border: 1px dashed #c9d9de !important;
      background: #edf6f5 !important;
    }

    body.dashboard-mode:not(.locked) .home-photo-card .evidence-frame {
      background: #edf6f5 !important;
    }

    body.dashboard-mode:not(.locked) .home-photo-card .evidence-placeholder {
      width: 100% !important;
      height: 100% !important;
      display: grid !important;
      place-items: center !important;
      align-content: center !important;
      gap: 5px !important;
      border: 0 !important;
      background: transparent !important;
      color: #64748b !important;
      text-transform: none !important;
    }

    body.dashboard-mode:not(.locked) .home-photo-card .evidence-placeholder-icon {
      color: #9aa8b3 !important;
      font-size: 24px !important;
      line-height: 1 !important;
    }

    body.dashboard-mode:not(.locked) .home-photo-card .evidence-placeholder strong {
      color: var(--go-ink) !important;
      font-size: 11px !important;
      font-weight: 820 !important;
    }

    body.dashboard-mode:not(.locked) .home-photo-card .evidence-placeholder small {
      color: var(--go-muted) !important;
      font-size: 10px !important;
      font-weight: 600 !important;
    }

    body.dashboard-mode:not(.locked) .dashboard-footer-note {
      height: 40px !important;
      min-height: 40px !important;
      display: flex !important;
      align-items: center !important;
      gap: 14px !important;
      margin: 0 !important;
      padding: 0 30px !important;
      border: 0 !important;
      border-top: 1px solid var(--go-line) !important;
      border-radius: 0 !important;
      background: #fff !important;
      box-shadow: none !important;
      color: var(--go-muted) !important;
      font-size: 12px !important;
      line-height: 1 !important;
    }

    body.dashboard-mode:not(.locked) .dashboard-footer-note strong {
      color: var(--go-ink) !important;
      font-size: 12px !important;
      font-weight: 850 !important;
      text-transform: none !important;
    }

    @media (max-width: 1280px) {
      body.dashboard-mode:not(.locked) .dashboard-kpis,
      body.dashboard-mode:not(.locked):not(.dashboard-menu-collapsed) .dashboard-kpis,
      body.dashboard-mode:not(.locked).dashboard-menu-collapsed .dashboard-kpis {
        grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
      }

      body.dashboard-mode:not(.locked) .executive-layout-grid,
      body.dashboard-mode:not(.locked):not(.dashboard-menu-collapsed) .executive-layout-grid,
      body.dashboard-mode:not(.locked).dashboard-menu-collapsed .executive-layout-grid {
        grid-template-rows: 300px 190px 190px 188px !important;
        grid-template-areas:
          "evolution evolution evolution evolution evolution evolution evolution evolution evolution evolution evolution evolution"
          "timeline timeline timeline timeline timeline timeline productivity productivity productivity productivity productivity productivity"
          "summary summary summary summary summary summary actions actions actions actions actions actions"
          "photos photos photos photos photos photos photos photos photos photos photos photos" !important;
      }
    }

    @media (max-width: 820px) {
      body.dashboard-mode:not(.locked) .executive-dashboard-page,
      body.dashboard-mode:not(.locked):not(.dashboard-menu-collapsed) .executive-dashboard-page,
      body.dashboard-mode:not(.locked).dashboard-menu-collapsed .executive-dashboard-page {
        grid-template-columns: 1fr !important;
        overflow: visible !important;
      }

      body.dashboard-mode:not(.locked) .dashboard-sidebar,
      body.dashboard-mode:not(.locked):not(.dashboard-menu-collapsed) .dashboard-sidebar,
      body.dashboard-mode:not(.locked).dashboard-menu-collapsed .dashboard-sidebar {
        position: sticky !important;
        top: 0 !important;
        z-index: 30 !important;
        width: 100% !important;
        min-width: 0 !important;
        max-width: none !important;
        height: auto !important;
        min-height: 0 !important;
        display: grid !important;
        grid-template-columns: 70px minmax(0, 1fr) !important;
        grid-template-rows: auto !important;
        padding: 10px 12px !important;
      }

      body.dashboard-mode:not(.locked) .dashboard-side-brand {
        width: 56px !important;
        height: 32px !important;
        margin: 0 !important;
      }

      body.dashboard-mode:not(.locked) .dashboard-side-nav {
        display: flex !important;
        gap: 8px !important;
        overflow-x: auto !important;
        overflow-y: hidden !important;
      }

      body.dashboard-mode:not(.locked) .dash-nav-button {
        min-width: 112px !important;
        min-height: 42px !important;
      }

      body.dashboard-mode:not(.locked) .dashboard-topline,
      body.dashboard-mode:not(.locked):not(.dashboard-menu-collapsed) .dashboard-topline,
      body.dashboard-mode:not(.locked).dashboard-menu-collapsed .dashboard-topline {
        grid-template-columns: 1fr !important;
        padding: 18px 16px !important;
      }

      body.dashboard-mode:not(.locked) .dashboard-toolbar-actions,
      body.dashboard-mode:not(.locked) .dashboard-controls {
        grid-column: 1 !important;
        grid-row: auto !important;
        grid-template-columns: 1fr !important;
        width: 100% !important;
      }

      body.dashboard-mode:not(.locked) .dashboard-kpis,
      body.dashboard-mode:not(.locked):not(.dashboard-menu-collapsed) .dashboard-kpis,
      body.dashboard-mode:not(.locked).dashboard-menu-collapsed .dashboard-kpis {
        grid-template-columns: 1fr !important;
        padding: 14px 16px !important;
      }

      body.dashboard-mode:not(.locked) .executive-layout-grid,
      body.dashboard-mode:not(.locked):not(.dashboard-menu-collapsed) .executive-layout-grid,
      body.dashboard-mode:not(.locked).dashboard-menu-collapsed .executive-layout-grid {
        grid-template-columns: 1fr !important;
        grid-template-rows: auto !important;
        grid-template-areas:
          "evolution"
          "timeline"
          "summary"
          "actions"
          "productivity"
          "photos" !important;
        padding: 0 16px 14px !important;
      }

      body.dashboard-mode:not(.locked) .executive-layout-grid > .dashboard-home-card {
        min-height: 220px !important;
      }

      body.dashboard-mode:not(.locked) .home-photo-card .dashboard-evidence-grid {
        grid-template-columns: 1fr !important;
      }
    }

    /* Compact executive layout pass */
    @media (min-width: 821px) {
      body.dashboard-mode:not(.locked) .executive-dashboard-page,
      body.dashboard-mode:not(.locked):not(.dashboard-menu-collapsed) .executive-dashboard-page,
      body.dashboard-mode:not(.locked).dashboard-menu-collapsed .executive-dashboard-page {
        grid-template-columns: 154px minmax(0, 1fr) !important;
      }

      body.dashboard-mode:not(.locked) .dashboard-sidebar,
      body.dashboard-mode:not(.locked):not(.dashboard-menu-collapsed) .dashboard-sidebar,
      body.dashboard-mode:not(.locked).dashboard-menu-collapsed .dashboard-sidebar,
      body.executive-subpage-mode .subpage-dashboard-sidebar,
      body.executive-subpage-mode:not(.dashboard-menu-collapsed) .subpage-dashboard-sidebar,
      body.executive-subpage-mode.dashboard-menu-collapsed .subpage-dashboard-sidebar {
        width: 154px !important;
        min-width: 154px !important;
        max-width: 154px !important;
        grid-template-rows: 74px minmax(0, 1fr) !important;
        padding: 22px 12px !important;
      }

      body.executive-subpage-mode .shell,
      body.executive-subpage-mode.dashboard-menu-collapsed .shell {
        width: calc(100vw - 154px) !important;
        max-width: calc(100vw - 154px) !important;
        margin-left: 154px !important;
        padding: 20px 24px !important;
      }
    }

    body.dashboard-mode:not(.locked) .dashboard-side-brand,
    body.executive-subpage-mode .subpage-dashboard-sidebar .dashboard-side-brand {
      width: 70px !important;
      height: 38px !important;
      margin-bottom: 20px !important;
    }

    body.dashboard-mode:not(.locked) .dash-nav-button,
    body.dashboard-mode:not(.locked):not(.dashboard-menu-collapsed) .dash-nav-button,
    body.dashboard-mode:not(.locked).dashboard-menu-collapsed .dash-nav-button,
    body.executive-subpage-mode .subpage-dashboard-sidebar .dash-nav-button,
    body.executive-subpage-mode:not(.dashboard-menu-collapsed) .subpage-dashboard-sidebar .dash-nav-button,
    body.executive-subpage-mode.dashboard-menu-collapsed .subpage-dashboard-sidebar .dash-nav-button {
      min-height: 42px !important;
      grid-template-columns: 18px minmax(0, 1fr) !important;
      gap: 8px !important;
      padding: 0 9px !important;
      border-radius: 9px !important;
      font-size: 10.5px !important;
      font-weight: 760 !important;
      overflow: hidden !important;
    }

    body.dashboard-mode:not(.locked) .dash-nav-button .icon,
    body.executive-subpage-mode .subpage-dashboard-sidebar .dash-nav-button .icon {
      width: 16px !important;
      height: 16px !important;
    }

    body.dashboard-mode:not(.locked) .dash-nav-button span,
    body.executive-subpage-mode .subpage-dashboard-sidebar .dash-nav-button span {
      font-size: 10.5px !important;
      font-weight: 760 !important;
      letter-spacing: 0 !important;
    }

    body.dashboard-mode:not(.locked) .dashboard-main {
      grid-template-rows: auto auto auto 36px !important;
    }

    body.dashboard-mode:not(.locked) .dashboard-topline,
    body.dashboard-mode:not(.locked):not(.dashboard-menu-collapsed) .dashboard-topline,
    body.dashboard-mode:not(.locked).dashboard-menu-collapsed .dashboard-topline {
      position: relative !important;
      z-index: 3 !important;
      gap: 14px 18px !important;
      padding: 18px 26px 14px !important;
      min-height: 138px !important;
      overflow: visible !important;
    }

    body.dashboard-mode:not(.locked) .dashboard-heading h2,
    body.executive-subpage-mode .dashboard-heading h2,
    body.executive-subpage-mode .executive-page-topline h2 {
      font-size: 21px !important;
      line-height: 1.12 !important;
      font-weight: 850 !important;
      text-transform: none !important;
    }

    body.dashboard-mode:not(.locked) .dashboard-heading p,
    body.executive-subpage-mode .dashboard-heading p,
    body.executive-subpage-mode .executive-page-topline p {
      font-size: 12px !important;
      line-height: 1.2 !important;
      font-weight: 650 !important;
    }

    body.dashboard-mode:not(.locked) .dashboard-controls {
      position: relative !important;
      z-index: 4 !important;
      grid-template-columns: minmax(0, 1fr) 118px !important;
      gap: 14px !important;
    }

    body.dashboard-mode:not(.locked) .dashboard-select-card,
    body.dashboard-mode:not(.locked) .dashboard-work-card,
    body.dashboard-mode:not(.locked) .dashboard-period-card,
    body.dashboard-mode:not(.locked) .dashboard-new-work-button {
      height: 40px !important;
      min-height: 40px !important;
    }

    body.dashboard-mode:not(.locked) .dashboard-select-card select,
    body.dashboard-mode:not(.locked) .dashboard-select-card input[type="month"] {
      font-size: 14px !important;
    }

    body.dashboard-mode:not(.locked) .dashboard-kpis,
    body.dashboard-mode:not(.locked):not(.dashboard-menu-collapsed) .dashboard-kpis,
    body.dashboard-mode:not(.locked).dashboard-menu-collapsed .dashboard-kpis {
      position: relative !important;
      z-index: 1 !important;
      gap: 12px !important;
      padding: 14px 26px 10px !important;
    }

    body.dashboard-mode:not(.locked) .kpi-card {
      height: 88px !important;
      min-height: 88px !important;
      grid-template-rows: 14px 38px 12px !important;
      gap: 4px !important;
      padding: 11px 12px !important;
      border-radius: 11px !important;
    }

    body.dashboard-mode:not(.locked) .kpi-card > span {
      font-size: 9.5px !important;
    }

    body.dashboard-mode:not(.locked) .kpi-value-line {
      grid-template-columns: 36px minmax(0, auto) !important;
      gap: 8px !important;
    }

    body.dashboard-mode:not(.locked) .kpi-icon {
      width: 34px !important;
      height: 34px !important;
      min-width: 34px !important;
    }

    body.dashboard-mode:not(.locked) .kpi-value-line strong,
    body.dashboard-mode:not(.locked) #homePercentAvg,
    body.dashboard-mode:not(.locked) #homeCostRealized {
      font-size: 18px !important;
    }

    body.dashboard-mode:not(.locked) .kpi-card small {
      font-size: 9.5px !important;
    }

    body.dashboard-mode:not(.locked) .executive-layout-grid,
    body.dashboard-mode:not(.locked):not(.dashboard-menu-collapsed) .executive-layout-grid,
    body.dashboard-mode:not(.locked).dashboard-menu-collapsed .executive-layout-grid {
      grid-template-rows: 258px 162px 144px !important;
      gap: 12px !important;
      padding: 0 26px 12px !important;
    }

    body.dashboard-mode:not(.locked) .dashboard-home-card .dashboard-card-head {
      height: 38px !important;
      min-height: 38px !important;
      padding: 0 14px !important;
    }

    body.dashboard-mode:not(.locked) .dashboard-home-card .dashboard-card-head h3 {
      font-size: 12px !important;
    }

    body.dashboard-mode:not(.locked) .dashboard-card-body {
      padding: 0 14px 12px !important;
    }

    body.dashboard-mode:not(.locked) .home-evolution-card,
    body.dashboard-mode:not(.locked) .home-timeline-card,
    body.dashboard-mode:not(.locked) .home-summary-card,
    body.dashboard-mode:not(.locked) .home-actions-card,
    body.dashboard-mode:not(.locked) .home-productivity-card,
    body.dashboard-mode:not(.locked) .home-photo-card {
      grid-template-rows: 38px minmax(0, 1fr) !important;
    }

    body.dashboard-mode:not(.locked) .home-timeline-card,
    body.dashboard-mode:not(.locked) .home-actions-card,
    body.dashboard-mode:not(.locked) .home-productivity-card {
      grid-template-rows: 38px minmax(0, 1fr) 38px !important;
    }

    body.executive-subpage-mode .executive-page-topline {
      padding: 18px 20px !important;
      border: 1px solid var(--go-line, #dfe8eb) !important;
      border-radius: 12px !important;
      background: #fff !important;
      box-shadow: var(--go-shadow, 0 14px 34px rgba(15, 37, 45, 0.07)) !important;
    }

    /* Final visual alignment pass */
    @media (min-width: 821px) {
      body.dashboard-mode:not(.locked) .executive-dashboard-page,
      body.dashboard-mode:not(.locked):not(.dashboard-menu-collapsed) .executive-dashboard-page,
      body.dashboard-mode:not(.locked).dashboard-menu-collapsed .executive-dashboard-page {
        grid-template-columns: 168px minmax(0, 1fr) !important;
      }

      body.dashboard-mode:not(.locked) .dashboard-sidebar,
      body.dashboard-mode:not(.locked):not(.dashboard-menu-collapsed) .dashboard-sidebar,
      body.dashboard-mode:not(.locked).dashboard-menu-collapsed .dashboard-sidebar,
      body.executive-subpage-mode .subpage-dashboard-sidebar,
      body.executive-subpage-mode:not(.dashboard-menu-collapsed) .subpage-dashboard-sidebar,
      body.executive-subpage-mode.dashboard-menu-collapsed .subpage-dashboard-sidebar {
        width: 168px !important;
        min-width: 168px !important;
        max-width: 168px !important;
        grid-template-rows: 72px minmax(0, 1fr) !important;
        padding: 22px 12px !important;
      }

      body.executive-subpage-mode .shell,
      body.executive-subpage-mode.dashboard-menu-collapsed .shell {
        width: calc(100vw - 168px) !important;
        max-width: calc(100vw - 168px) !important;
        margin-left: 168px !important;
        padding: 20px 24px !important;
      }
    }

    body.dashboard-mode:not(.locked) .dashboard-main {
      display: flex !important;
      flex-direction: column !important;
      min-height: 100vh !important;
      max-height: 100vh !important;
      overflow-x: hidden !important;
      overflow-y: auto !important;
    }

    body.dashboard-mode:not(.locked) .dashboard-topline,
    body.dashboard-mode:not(.locked):not(.dashboard-menu-collapsed) .dashboard-topline,
    body.dashboard-mode:not(.locked).dashboard-menu-collapsed .dashboard-topline {
      flex: 0 0 auto !important;
      min-height: 128px !important;
      display: grid !important;
      grid-template-columns: minmax(260px, 1fr) auto !important;
      grid-template-rows: auto auto !important;
      gap: 16px 18px !important;
      align-items: center !important;
      padding: 20px 28px 16px !important;
      overflow: visible !important;
    }

    body.dashboard-mode:not(.locked) .dashboard-toolbar-actions {
      grid-template-columns: 40px 40px 46px !important;
      gap: 12px !important;
    }

    body.dashboard-mode:not(.locked) .dashboard-controls,
    body.dashboard-mode:not(.locked):not(.dashboard-menu-collapsed) .dashboard-controls,
    body.dashboard-mode:not(.locked).dashboard-menu-collapsed .dashboard-controls {
      grid-template-columns: minmax(0, 1fr) 124px !important;
      gap: 14px !important;
    }

    body.dashboard-mode:not(.locked) .dashboard-select-card span {
      font-size: 9px !important;
      font-weight: 860 !important;
    }

    body.dashboard-mode:not(.locked) .dashboard-select-card select,
    body.dashboard-mode:not(.locked) .dashboard-select-card input[type="month"] {
      font-size: 13px !important;
    }

    body.dashboard-mode:not(.locked) .dashboard-new-work-button {
      font-size: 11px !important;
      font-weight: 840 !important;
    }

    body.dashboard-mode:not(.locked) .dashboard-kpis,
    body.dashboard-mode:not(.locked):not(.dashboard-menu-collapsed) .dashboard-kpis,
    body.dashboard-mode:not(.locked).dashboard-menu-collapsed .dashboard-kpis {
      flex: 0 0 auto !important;
      position: static !important;
      z-index: auto !important;
      display: grid !important;
      grid-template-columns: repeat(6, minmax(0, 1fr)) !important;
      gap: 12px !important;
      padding: 14px 28px 12px !important;
      margin: 0 !important;
      overflow: visible !important;
    }

    body.dashboard-mode:not(.locked) .kpi-card {
      height: 92px !important;
      min-height: 92px !important;
      grid-template-rows: auto auto auto !important;
      gap: 6px !important;
      padding: 12px !important;
      overflow: hidden !important;
    }

    body.dashboard-mode:not(.locked) .kpi-card > span {
      font-size: 9px !important;
      line-height: 1.15 !important;
    }

    body.dashboard-mode:not(.locked) .kpi-value-line {
      grid-template-columns: 32px minmax(0, 1fr) !important;
      gap: 8px !important;
    }

    body.dashboard-mode:not(.locked) .kpi-icon {
      width: 32px !important;
      height: 32px !important;
      min-width: 32px !important;
    }

    body.dashboard-mode:not(.locked) .kpi-value-line strong,
    body.dashboard-mode:not(.locked) #homePercentAvg,
    body.dashboard-mode:not(.locked) #homeCostRealized {
      font-size: 18px !important;
      line-height: 1 !important;
      white-space: nowrap !important;
    }

    body.dashboard-mode:not(.locked) .kpi-card small {
      font-size: 9px !important;
      line-height: 1.15 !important;
      white-space: nowrap !important;
      overflow: hidden !important;
      text-overflow: ellipsis !important;
    }

    body.dashboard-mode:not(.locked) .executive-layout-grid,
    body.dashboard-mode:not(.locked):not(.dashboard-menu-collapsed) .executive-layout-grid,
    body.dashboard-mode:not(.locked).dashboard-menu-collapsed .executive-layout-grid {
      flex: 1 0 auto !important;
      display: grid !important;
      grid-template-columns: repeat(12, minmax(0, 1fr)) !important;
      grid-template-rows: 330px 178px 158px !important;
      grid-template-areas:
        "evolution evolution evolution evolution evolution evolution evolution timeline timeline timeline timeline timeline"
        "summary summary summary actions actions actions actions productivity productivity productivity productivity productivity"
        "photos photos photos photos photos photos photos photos photos photos photos photos" !important;
      gap: 14px !important;
      padding: 0 28px 14px !important;
      overflow: visible !important;
    }

    body.dashboard-mode:not(.locked) .home-evolution-card { grid-area: evolution !important; }
    body.dashboard-mode:not(.locked) .home-timeline-card { grid-area: timeline !important; }
    body.dashboard-mode:not(.locked) .home-summary-card { grid-area: summary !important; }
    body.dashboard-mode:not(.locked) .home-actions-card { grid-area: actions !important; }
    body.dashboard-mode:not(.locked) .home-productivity-card { grid-area: productivity !important; }
    body.dashboard-mode:not(.locked) .home-photo-card { grid-area: photos !important; }

    body.dashboard-mode:not(.locked) .dashboard-home-card {
      min-height: 0 !important;
      height: 100% !important;
      padding: 0 !important;
      border-radius: 12px !important;
      overflow: hidden !important;
    }

    body.dashboard-mode:not(.locked) .dashboard-home-card .dashboard-card-head {
      height: 40px !important;
      min-height: 40px !important;
      padding: 0 16px !important;
    }

    body.dashboard-mode:not(.locked) .dashboard-home-card .dashboard-card-head h3 {
      font-size: 12px !important;
      line-height: 1.1 !important;
      font-weight: 860 !important;
      text-transform: none !important;
    }

    body.dashboard-mode:not(.locked) .dashboard-card-body {
      min-height: 0 !important;
      padding: 0 16px 14px !important;
      overflow: hidden !important;
    }

    body.dashboard-mode:not(.locked) .home-evolution-card .evolution-card-body {
      display: grid !important;
      grid-template-rows: 26px minmax(0, 1fr) !important;
      gap: 4px !important;
    }

    body.dashboard-mode:not(.locked) .home-evolution-card .dashboard-line-chart,
    body.dashboard-mode:not(.locked) .home-evolution-card .dashboard-line-chart svg {
      width: 100% !important;
      height: 100% !important;
      min-height: 245px !important;
      max-height: none !important;
    }

    body.dashboard-mode:not(.locked) .home-timeline-card .dashboard-card-status,
    body.dashboard-mode:not(.locked) .home-productivity-card .dashboard-card-status {
      position: static !important;
      display: inline-flex !important;
      justify-self: end !important;
      margin: 0 !important;
      font-size: 11px !important;
    }

    body.dashboard-mode:not(.locked) .timeline-card-body {
      display: grid !important;
      grid-template-rows: auto minmax(0, 1fr) !important;
      gap: 8px !important;
    }

    body.dashboard-mode:not(.locked) .home-timeline-card .dashboard-timeline {
      max-height: none !important;
      overflow: auto !important;
    }

    body.dashboard-mode:not(.locked) .timeline-compact-row strong,
    body.dashboard-mode:not(.locked) .productivity-week-row strong,
    body.dashboard-mode:not(.locked) .priority-next-row strong {
      font-size: 11px !important;
    }

    body.dashboard-mode:not(.locked) .timeline-compact-row span,
    body.dashboard-mode:not(.locked) .productivity-week-row span,
    body.dashboard-mode:not(.locked) .priority-next-row span {
      font-size: 10px !important;
    }

    body.dashboard-mode:not(.locked) .dashboard-summary-text {
      max-height: none !important;
      font-size: 11px !important;
      line-height: 1.35 !important;
      overflow: visible !important;
    }

    body.dashboard-mode:not(.locked) .executive-meter-list {
      grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
      gap: 10px !important;
    }

    body.dashboard-mode:not(.locked) .priority-summary-card {
      min-height: 62px !important;
      padding: 9px !important;
    }

    body.dashboard-mode:not(.locked) .priority-summary-card strong {
      font-size: 22px !important;
    }

    body.dashboard-mode:not(.locked) .home-photo-card .dashboard-evidence-grid {
      grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
      gap: 12px !important;
    }

    body.dashboard-mode:not(.locked) .home-photo-card .evidence-card,
    body.dashboard-mode:not(.locked) .home-photo-card .evidence-frame {
      min-height: 100px !important;
    }

    body.dashboard-mode:not(.locked) .dashboard-footer-note {
      flex: 0 0 auto !important;
      min-height: 38px !important;
      height: 38px !important;
      padding: 0 28px !important;
      font-size: 11px !important;
    }

    body.dashboard-mode:not(.locked) .dashboard-side-brand,
    body.executive-subpage-mode .subpage-dashboard-sidebar .dashboard-side-brand {
      width: 82px !important;
      height: 42px !important;
      margin: 0 auto 18px !important;
    }

    body.dashboard-mode:not(.locked) .dash-nav-button,
    body.dashboard-mode:not(.locked):not(.dashboard-menu-collapsed) .dash-nav-button,
    body.dashboard-mode:not(.locked).dashboard-menu-collapsed .dash-nav-button,
    body.executive-subpage-mode .subpage-dashboard-sidebar .dash-nav-button,
    body.executive-subpage-mode:not(.dashboard-menu-collapsed) .subpage-dashboard-sidebar .dash-nav-button,
    body.executive-subpage-mode.dashboard-menu-collapsed .subpage-dashboard-sidebar .dash-nav-button {
      min-height: 42px !important;
      grid-template-columns: 20px minmax(0, 1fr) !important;
      gap: 8px !important;
      padding: 0 10px !important;
      font-size: 10.5px !important;
      line-height: 1.05 !important;
    }

    body.dashboard-mode:not(.locked) .dash-nav-button span,
    body.executive-subpage-mode .subpage-dashboard-sidebar .dash-nav-button span {
      font-size: 10.5px !important;
      line-height: 1.05 !important;
      white-space: normal !important;
      overflow: visible !important;
      text-overflow: clip !important;
    }

    body.dashboard-mode:not(.locked) .dash-nav-button .icon,
    body.executive-subpage-mode .subpage-dashboard-sidebar .dash-nav-button .icon {
      width: 17px !important;
      height: 17px !important;
    }

    body.executive-subpage-mode .app-view[data-view]:not([data-view="inicio"]).active {
      padding: 0 !important;
    }

    body.executive-subpage-mode .executive-page-topline .dashboard-heading h2 {
      font-size: 20px !important;
    }

    @media (max-width: 1360px) and (min-width: 821px) {
      body.dashboard-mode:not(.locked) .executive-layout-grid,
      body.dashboard-mode:not(.locked):not(.dashboard-menu-collapsed) .executive-layout-grid,
      body.dashboard-mode:not(.locked).dashboard-menu-collapsed .executive-layout-grid {
        grid-template-rows: 300px 178px 150px !important;
      }

      body.dashboard-mode:not(.locked) .home-evolution-card .dashboard-line-chart,
      body.dashboard-mode:not(.locked) .home-evolution-card .dashboard-line-chart svg {
        min-height: 218px !important;
      }
    }

    /* Final cleanup: executive alignment, financial scroll and photo zoom */
    body.dashboard-mode:not(.locked) .dashboard-main {
      overflow-y: auto !important;
      overflow-x: hidden !important;
    }

    body.dashboard-mode:not(.locked) .dashboard-kpis,
    body.dashboard-mode:not(.locked):not(.dashboard-menu-collapsed) .dashboard-kpis,
    body.dashboard-mode:not(.locked).dashboard-menu-collapsed .dashboard-kpis {
      position: relative !important;
      z-index: 1 !important;
      min-height: 112px !important;
      padding: 14px 28px 18px !important;
      margin: 0 0 8px !important;
      overflow: visible !important;
    }

    body.dashboard-mode:not(.locked) .kpi-card {
      height: 100px !important;
      min-height: 100px !important;
      overflow: hidden !important;
    }

    body.dashboard-mode:not(.locked) .executive-layout-grid,
    body.dashboard-mode:not(.locked):not(.dashboard-menu-collapsed) .executive-layout-grid,
    body.dashboard-mode:not(.locked).dashboard-menu-collapsed .executive-layout-grid {
      position: relative !important;
      z-index: 0 !important;
      flex: 0 0 auto !important;
      grid-template-rows: 340px 214px 210px !important;
      gap: 16px !important;
      padding: 0 28px 16px !important;
      margin: 0 !important;
      overflow: visible !important;
    }

    body.dashboard-mode:not(.locked) .dashboard-home-card {
      position: static !important;
      transform: none !important;
      overflow: hidden !important;
    }

    body.dashboard-mode:not(.locked) .home-evolution-card .dashboard-line-chart,
    body.dashboard-mode:not(.locked) .home-evolution-card .dashboard-line-chart svg {
      min-height: 0 !important;
      height: 100% !important;
      overflow: visible !important;
    }

    body.dashboard-mode:not(.locked) .home-actions-card .dashboard-action-list,
    body.dashboard-mode:not(.locked) .home-productivity-card .executive-list,
    body.dashboard-mode:not(.locked) .home-timeline-card .dashboard-timeline {
      overflow-y: auto !important;
      overflow-x: hidden !important;
      min-height: 0 !important;
      padding-right: 4px !important;
    }

    body.dashboard-mode:not(.locked) .actions-card-body,
    body.dashboard-mode:not(.locked) .productivity-card-body {
      overflow: hidden !important;
    }

    body.dashboard-mode:not(.locked) .priority-summary-grid {
      gap: 8px !important;
    }

    body.dashboard-mode:not(.locked) .priority-summary-card {
      min-height: 58px !important;
      padding: 8px !important;
    }

    body.dashboard-mode:not(.locked) .priority-next-list {
      overflow-y: auto !important;
      max-height: 68px !important;
    }

    body.dashboard-mode:not(.locked) .productivity-week-list {
      max-height: 100% !important;
      overflow-y: auto !important;
      padding-right: 4px !important;
    }

    body.dashboard-mode:not(.locked) .productivity-week-row {
      min-height: 27px !important;
    }

    body.dashboard-mode:not(.locked) .home-photo-card .dashboard-evidence-grid {
      height: 100% !important;
      grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
      gap: 14px !important;
    }

    body.dashboard-mode:not(.locked) .home-photo-card .evidence-card,
    body.dashboard-mode:not(.locked) .home-photo-card .evidence-frame {
      min-height: 150px !important;
      height: 100% !important;
    }

    .evidence-zoom-button {
      width: 100%;
      height: 100%;
      min-height: inherit;
      display: block;
      padding: 0;
      border: 0;
      border-radius: inherit;
      background: transparent;
      overflow: hidden;
      cursor: zoom-in;
    }

    .evidence-zoom-button img {
      width: 100%;
      height: 100%;
      object-fit: cover;
      display: block;
    }

    .photo-zoom-backdrop {
      position: fixed;
      inset: 0;
      z-index: 10000;
      display: grid;
      place-items: center;
      padding: 32px;
      background: rgba(5, 18, 24, 0.82);
    }

    .photo-zoom-backdrop[hidden] {
      display: none !important;
    }

    .photo-zoom-backdrop img {
      max-width: min(1100px, 96vw);
      max-height: 88vh;
      border-radius: 12px;
      object-fit: contain;
      box-shadow: 0 22px 70px rgba(0, 0, 0, 0.34);
    }

    .photo-zoom-close {
      position: fixed;
      top: 22px;
      right: 22px;
      width: 42px;
      height: 42px;
      display: grid;
      place-items: center;
      border: 1px solid rgba(255, 255, 255, 0.28);
      border-radius: 50%;
      color: #fff;
      background: rgba(255, 255, 255, 0.12);
    }

    .mobile-productivity-shell {
      max-width: 1100px !important;
    }

    .compact-filter select,
    #managementProductivityWork {
      width: 100% !important;
      min-height: 34px !important;
      color: var(--ink) !important;
      background: #fff !important;
      font-weight: 840 !important;
    }

    .app-kpi-card {
      position: relative !important;
      min-height: 138px !important;
      align-content: center !important;
      overflow: hidden !important;
    }

    .app-kpi-card .sparkline {
      position: absolute !important;
      left: 14px !important;
      right: 14px !important;
      bottom: 8px !important;
      height: 34px !important;
      min-height: 34px !important;
      opacity: 0.9;
      pointer-events: none;
    }

    .app-kpi-card.green {
      padding-bottom: 18px !important;
    }

    .production-mini-grid {
      grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
    }

    .production-mini-grid strong {
      font-size: 22px !important;
      white-space: nowrap !important;
      overflow: hidden !important;
      text-overflow: ellipsis !important;
    }

    .management-panel[data-management-panel="takeoff"] {
      overflow-x: auto !important;
      max-width: 100% !important;
      -webkit-overflow-scrolling: touch;
    }

    #takeoffTableWrap {
      width: 100% !important;
      max-width: 100% !important;
      overflow-x: auto !important;
      overflow-y: visible !important;
      -webkit-overflow-scrolling: touch;
      scrollbar-width: auto;
    }

    #takeoffTableWrap .takeoff-table {
      width: max-content !important;
      min-width: calc(900px + (var(--takeoff-bm-count, 1) * 68px)) !important;
    }

    .dashboard-period-card {
      display: none !important;
    }

    .home-curve-controls {
      display: flex;
      align-items: center;
      gap: 6px;
      margin-left: auto;
    }

    .home-curve-controls .icon-button,
    .home-curve-controls .secondary-button {
      min-height: 28px !important;
      height: 28px !important;
      border-color: rgba(255, 255, 255, 0.36) !important;
      color: #fff !important;
      background: rgba(255, 255, 255, 0.12) !important;
    }

    .home-curve-controls .icon-button {
      width: 28px !important;
    }

    .home-curve-controls .secondary-button {
      padding: 0 8px !important;
      font-size: 10px !important;
      border-radius: 8px !important;
    }

    body.dashboard-mode:not(.locked) .home-evolution-card .dashboard-line-chart {
      overflow-x: auto !important;
      overflow-y: hidden !important;
      align-items: stretch !important;
      -webkit-overflow-scrolling: touch;
    }

    body.dashboard-mode:not(.locked) .home-evolution-card .dashboard-line-chart svg {
      width: auto !important;
      min-width: 100% !important;
      max-width: none !important;
      flex: 0 0 auto !important;
    }

    .prod-company-field {
      grid-column: span 2;
    }

    #contratada {
      min-width: 0;
      overflow: hidden;
      text-overflow: ellipsis;
      white-space: nowrap;
    }

    .task-edit-row {
      grid-template-columns: minmax(130px, 0.82fr) minmax(190px, 1.22fr) repeat(4, minmax(122px, 0.74fr)) minmax(120px, 0.72fr) auto auto !important;
      align-items: end !important;
    }

    .task-edit-row > .badge {
      align-self: end;
      min-height: 34px;
      display: inline-grid;
      place-items: center;
      white-space: nowrap;
    }

    .task-edit-row .row-actions {
      align-self: end;
      min-height: 34px;
      align-items: center;
    }

    .safety-occurrence-send {
      display: grid;
      grid-template-columns: minmax(220px, 1fr) auto;
      gap: 12px;
      align-items: end;
      margin-top: 12px;
    }

    .safety-occurrence-send select {
      min-height: 96px;
    }

    .safety-occurrence-form {
      display: grid;
      grid-template-columns: minmax(180px, 0.8fr) minmax(150px, 0.55fr) minmax(210px, 0.8fr) minmax(220px, 0.9fr);
      gap: 12px;
      align-items: end;
      padding: 14px;
      border: 1px solid var(--line);
      border-radius: 12px;
      background: #f9fbfb;
    }

    .safety-occurrence-form .span-2 {
      grid-column: span 3;
    }

    .safety-occurrence-form textarea {
      min-height: 88px;
      resize: vertical;
    }

    .safety-occurrence-form .primary-button {
      min-height: 42px;
      align-self: end;
    }

    .safety-occurrence-list {
      display: grid;
      gap: 12px;
      margin-top: 16px;
    }

    .safety-occurrence-card .action-card-icon.safety {
      background: linear-gradient(135deg, #c46d00, #f29a21);
      box-shadow: 0 10px 22px rgba(196, 109, 0, 0.18);
    }

    body.executive-subpage-mode .safety-layout,
    .safety-layout {
      grid-template-columns: minmax(240px, 290px) minmax(0, 1fr) !important;
      align-items: stretch !important;
      gap: 12px !important;
    }

    .safety-score-entry {
      grid-template-columns: 1fr !important;
      align-content: start !important;
      align-items: stretch !important;
      gap: 10px !important;
      min-height: auto !important;
      overflow: visible !important;
    }

    .safety-score-entry > *,
    .safety-score-entry .safety-year-card,
    .safety-score-entry > .field,
    .safety-score-entry .safety-year-actions,
    .safety-score-entry > #saveSafetyScore {
      width: 100% !important;
      min-height: 0 !important;
    }

    .safety-score-entry .field {
      justify-content: start !important;
    }

    .safety-year-card {
      height: auto !important;
      align-content: start !important;
      gap: 5px !important;
    }

    .safety-year-card strong,
    .safety-score-entry input,
    .safety-score-entry select {
      height: 38px !important;
      min-height: 38px !important;
    }

    .safety-year-actions {
      grid-template-columns: minmax(0, 1fr) 38px !important;
      align-items: end !important;
      min-height: 0 !important;
    }

    .safety-score-entry > #saveSafetyScore {
      width: 100% !important;
      height: 38px !important;
      min-height: 38px !important;
      justify-self: stretch !important;
      align-self: stretch !important;
    }

    .safety-chart-stack {
      position: relative !important;
      display: grid !important;
      grid-template-rows: minmax(280px, 1fr) auto !important;
      gap: 10px !important;
      min-width: 0 !important;
      overflow: visible !important;
    }

    .safety-chart {
      min-height: 280px !important;
      overflow: hidden !important;
    }

    .safety-timeline-control {
      position: relative !important;
      z-index: 2 !important;
      grid-column: 1 / -1 !important;
      grid-row: auto !important;
      align-self: stretch !important;
      min-height: 44px !important;
      grid-template-columns: auto minmax(0, 1fr) auto !important;
      grid-template-areas: "label period buttons" !important;
      align-content: center !important;
      align-items: center !important;
      gap: 10px !important;
      padding: 7px 9px !important;
    }

    .safety-timeline-control strong {
      font-size: 12px !important;
      white-space: nowrap;
      overflow: hidden;
      text-overflow: ellipsis;
    }

    .safety-timeline-buttons {
      justify-content: flex-end !important;
      flex-wrap: nowrap !important;
    }

    .safety-timeline-buttons .icon-button {
      width: 30px !important;
      height: 30px !important;
      min-height: 30px !important;
    }

    .app-view[data-view="seguranca"] .management-switch {
      position: relative !important;
      z-index: 30 !important;
      pointer-events: auto !important;
    }

    .app-view[data-view="seguranca"] [data-safety-nav] {
      position: relative !important;
      z-index: 31 !important;
      pointer-events: auto !important;
      cursor: pointer !important;
    }

    .app-view[data-view="seguranca"] [data-safety-panel] {
      position: relative !important;
      z-index: 1 !important;
      margin-top: 14px !important;
      clear: both !important;
    }

    .app-view[data-view="seguranca"] [data-safety-panel]:not(.active) {
      display: none !important;
    }

    .app-view[data-view="seguranca"] [data-safety-panel].active {
      display: block !important;
    }

    .checkbox-stack {
      display: grid;
      gap: 6px;
      padding: 8px;
      border: 1px solid var(--line);
      border-radius: var(--radius-sm);
      background: #fff;
    }

    .checkbox-stack label {
      display: flex;
      align-items: center;
      gap: 8px;
      min-height: 28px;
      margin: 0;
      color: var(--ink);
      font-size: 12px;
      font-weight: 800;
      letter-spacing: 0;
      text-transform: none;
    }

    .checkbox-stack input {
      width: 15px;
      height: 15px;
      min-height: 15px;
      margin: 0;
      accent-color: var(--green);
    }

    .management-panel[data-management-panel="produtividade"] .mobile-productivity-shell {
      max-width: 1180px !important;
      padding: 24px !important;
    }

    .management-panel[data-management-panel="produtividade"] .app-kpi-grid {
      grid-template-columns: repeat(4, minmax(190px, 1fr)) !important;
    }

    .management-panel[data-management-panel="produtividade"] .app-kpi-card {
      min-height: 148px !important;
      align-content: center !important;
      padding: 20px 22px !important;
    }

    .management-panel[data-management-panel="produtividade"] .app-kpi-card > span {
      min-height: 32px;
      display: flex;
      align-items: flex-end;
    }

    .management-panel[data-management-panel="produtividade"] .service-front-row {
      grid-template-columns: 48px minmax(180px, 0.72fr) minmax(220px, 1fr) 62px;
    }

    .management-panel[data-management-panel="produtividade"] .service-front-progress {
      margin-top: 0;
    }

    @media (max-width: 820px) {
      .prod-company-field,
      .safety-occurrence-send,
      .safety-occurrence-form {
        grid-column: auto;
        grid-template-columns: 1fr !important;
      }

      .safety-occurrence-form .span-2 {
        grid-column: auto;
      }

      body.executive-subpage-mode .safety-layout,
      .safety-layout {
        grid-template-columns: 1fr !important;
      }

      .home-curve-controls {
        gap: 4px;
      }

      .home-curve-controls .secondary-button {
        width: auto !important;
      }

      body.dashboard-mode:not(.locked) .dashboard-main {
        height: auto !important;
        min-height: 100vh !important;
        padding: 20px 16px 96px !important;
        overflow: visible !important;
      }

      body.dashboard-mode:not(.locked) .dashboard-kpis {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
        padding: 12px 0 !important;
      }

      body.dashboard-mode:not(.locked) .executive-layout-grid {
        grid-template-columns: 1fr !important;
        grid-template-areas:
          "evolution"
          "timeline"
          "summary"
          "actions"
          "productivity"
          "photos" !important;
        grid-template-rows: auto !important;
        padding: 0 !important;
      }

      body.dashboard-mode:not(.locked) .home-evolution-card .dashboard-line-chart {
        min-height: 210px !important;
      }

      body.dashboard-mode:not(.locked) .home-actions-card,
      body.dashboard-mode:not(.locked) .home-productivity-card {
        min-height: 0 !important;
      }

      body.dashboard-mode:not(.locked) .home-photo-card .dashboard-evidence-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
      }

      body.dashboard-mode:not(.locked) .home-photo-card .evidence-card,
      body.dashboard-mode:not(.locked) .home-photo-card .evidence-frame {
        min-height: 86px !important;
      }

      .management-panel[data-management-panel="produtividade"] .mobile-productivity-head,
      .management-panel[data-management-panel="produtividade"] .app-kpi-grid,
      .management-panel[data-management-panel="produtividade"] .production-mini-grid {
        grid-template-columns: 1fr 1fr !important;
      }

      .management-panel[data-management-panel="produtividade"] .mobile-productivity-head > div:first-child,
      .management-panel[data-management-panel="produtividade"] .mobile-productivity-head .compact-filter {
        grid-column: 1 / -1;
      }

      .management-panel[data-management-panel="produtividade"] .service-front-row {
        grid-template-columns: 42px minmax(0, 1fr) 52px !important;
      }

      .management-panel[data-management-panel="produtividade"] .service-front-icon {
        grid-row: 1 / span 2;
      }

      .management-panel[data-management-panel="produtividade"] .service-front-main {
        grid-column: 2;
      }

      .management-panel[data-management-panel="produtividade"] .service-front-progress {
        grid-column: 2 / -1;
        grid-row: 2;
      }

      .management-panel[data-management-panel="produtividade"] .service-front-percent {
        grid-column: 3;
        grid-row: 1;
      }
    }

    @media (max-width: 1280px) and (min-width: 821px) {
      body.dashboard-mode:not(.locked) .executive-layout-grid,
      body.dashboard-mode:not(.locked):not(.dashboard-menu-collapsed) .executive-layout-grid,
      body.dashboard-mode:not(.locked).dashboard-menu-collapsed .executive-layout-grid {
        grid-template-rows: 320px 230px 210px !important;
      }
    }

    body.dashboard-mode:not(.locked) .home-summary-card #homeExecutiveMeters {
      display: grid;
      grid-template-columns: repeat(2, minmax(0, 1fr));
      gap: 16px;
      align-items: stretch;
    }

    body.dashboard-mode:not(.locked) .home-summary-card #homeExecutiveMeters .mini-meter {
      min-width: 0;
      width: 100%;
    }

    .project-file-cell {
      display: flex;
      flex-direction: column;
      gap: 3px;
      min-width: 180px;
    }

    .project-file-cell small {
      color: var(--muted);
      font-weight: 800;
    }

    .projects-library-band .band-body {
      padding: 0;
      overflow: hidden;
    }

    .projects-library {
      display: grid;
      grid-template-columns: 300px minmax(0, 1fr);
      min-height: 560px;
      border-top: 1px solid var(--line);
    }

    .projects-sidebar {
      border-right: 1px solid var(--line);
      padding: 22px 18px;
      background: linear-gradient(180deg, #ffffff 0%, #fbfefd 100%);
      min-width: 0;
    }

    .projects-sidebar-actions,
    .projects-toolbar-actions {
      display: flex;
      gap: 10px;
      align-items: center;
      flex-wrap: wrap;
    }

    .projects-sidebar-actions {
      margin-bottom: 18px;
    }

    .projects-sidebar-actions .secondary-button,
    .projects-toolbar-actions .secondary-button,
    .projects-toolbar-actions .primary-button {
      min-height: 42px;
      padding: 0 16px;
      border-radius: 7px;
      white-space: nowrap;
    }

    .project-folder-tree {
      display: grid;
      gap: 6px;
    }

    .project-tree-root {
      display: flex;
      align-items: center;
      gap: 8px;
      color: var(--ink);
      font-size: 0.8rem;
      margin-bottom: 6px;
    }

    .project-tree-root .icon,
    .project-tree-item .icon {
      width: 16px;
      height: 16px;
      color: #f59e0b;
      flex: 0 0 auto;
    }

    .project-tree-group {
      display: grid;
      gap: 4px;
    }

    .project-tree-children {
      display: grid;
      gap: 3px;
      padding-left: 18px;
    }

    .project-tree-item {
      border: 0;
      background: transparent;
      color: var(--ink);
      display: grid;
      grid-template-columns: 18px minmax(0, 1fr) auto;
      align-items: center;
      gap: 7px;
      width: 100%;
      min-height: 30px;
      padding: 6px 8px;
      border-radius: 8px;
      font: inherit;
      font-size: 0.78rem;
      font-weight: 760;
      text-align: left;
      cursor: pointer;
    }

    .project-tree-item span {
      min-width: 0;
      overflow: hidden;
      text-overflow: ellipsis;
      white-space: nowrap;
    }

    .project-tree-item small {
      color: var(--muted);
      font-size: 0.66rem;
      font-weight: 900;
    }

    .project-tree-meta {
      display: inline-flex;
      align-items: center;
      justify-content: flex-end;
      gap: 3px;
      min-width: 62px;
      overflow: visible;
      white-space: nowrap;
    }

    .project-folder-tool,
    .project-folder-delete {
      flex: 0 0 auto;
      width: 20px;
      height: 20px;
      border-radius: 6px;
      display: inline-grid;
      place-items: center;
      border: 1px solid var(--line);
      background: #fff;
      transition: opacity 0.15s ease, transform 0.15s ease;
    }

    .project-folder-tool {
      color: var(--green);
    }

    .project-folder-tool.edit {
      opacity: 0;
    }

    .project-folder-tool.toggle {
      opacity: 1;
      color: var(--muted);
    }

    .project-folder-delete {
      color: #dc2626;
      background: #fee2e2;
      border: 1px solid #fecaca;
      opacity: 0;
    }

    .project-tree-item:hover .project-folder-tool.edit,
    .project-tree-item.active .project-folder-tool.edit,
    .project-tree-item:hover .project-folder-delete,
    .project-tree-item.active .project-folder-delete {
      opacity: 1;
    }

    .project-folder-tool:hover,
    .project-folder-delete:hover {
      transform: translateY(-1px);
    }

    .project-folder-tool .icon,
    .project-folder-delete .icon {
      width: 12px;
      height: 12px;
      color: currentColor;
    }

    .project-tree-item.child {
      font-size: 0.76rem;
      font-weight: 720;
    }

    .project-tree-item.active {
      color: var(--green);
      background: #dff4ec;
    }

    .projects-workspace {
      padding: 22px 24px 24px;
      min-width: 0;
    }

    .projects-toolbar-row {
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 16px;
      margin-bottom: 14px;
    }

    .project-breadcrumb {
      color: var(--muted);
      font-weight: 900;
      font-size: 0.88rem;
      min-width: 0;
      overflow: hidden;
      text-overflow: ellipsis;
      white-space: nowrap;
    }

    .project-drop-zone {
      min-height: 136px;
      border: 1.5px dashed #9eb5c3;
      border-radius: 8px;
      background: linear-gradient(180deg, #ffffff 0%, #f8fbfc 100%);
      display: grid;
      place-items: center;
      align-content: center;
      gap: 7px;
      padding: 20px;
      color: var(--muted);
      text-align: center;
      cursor: pointer;
      transition: border-color 0.18s ease, background 0.18s ease, transform 0.18s ease;
    }

    .project-drop-zone strong {
      color: var(--ink);
      font-size: 0.95rem;
    }

    .project-drop-zone span,
    .project-drop-zone small {
      font-size: 0.82rem;
      font-weight: 800;
    }

    .project-drop-zone.dragging {
      border-color: var(--green);
      background: #edf9f5;
      transform: translateY(-1px);
    }

    .project-drop-zone.disabled {
      opacity: 0.58;
      cursor: not-allowed;
    }

    .project-drop-icon {
      width: 44px;
      height: 44px;
      color: #94a3b8;
    }

    .project-library-form {
      display: grid;
      grid-template-columns: 1.05fr 2.1fr 0.9fr 0.8fr;
      gap: 12px;
      margin-top: 18px;
      padding: 14px;
      border: 1px solid var(--line);
      border-radius: 8px;
      background: #fff;
    }

    .project-library-form .span-2 {
      grid-column: span 2;
    }

    .project-library-form .form-actions {
      align-self: end;
    }

    .project-library-form .form-actions .primary-button {
      width: 100%;
      min-height: 42px;
    }

    .project-table-wrap {
      margin-top: 16px;
      border: 1px solid var(--line);
      border-radius: 8px;
      overflow: auto;
    }

    .project-table-wrap table,
    .project-revision-table table {
      min-width: 1120px;
    }

    .project-table-wrap tr.selected {
      background: #f0faf6;
    }

    .project-file-name {
      display: flex;
      align-items: center;
      gap: 10px;
      min-width: 230px;
    }

    .project-file-name strong {
      min-width: 0;
      overflow: hidden;
      text-overflow: ellipsis;
      white-space: nowrap;
    }

    .project-type-icon {
      width: 28px;
      height: 28px;
      border-radius: 6px;
      display: inline-grid;
      place-items: center;
      font-size: 0.62rem;
      font-weight: 950;
      color: #fff;
      background: var(--green);
      flex: 0 0 auto;
    }

    .project-type-icon.pdf {
      background: #dc2626;
    }

    .project-type-icon.dwg {
      background: #047857;
    }

    .project-type-icon.sheet {
      background: #16a34a;
    }

    .project-type-icon.image {
      background: #2563eb;
    }

    .project-actions {
      display: flex;
      align-items: center;
      gap: 8px;
      justify-content: flex-end;
    }

    .project-action-button {
      width: 34px;
      height: 34px;
      border-radius: 7px;
      border: 1px solid var(--line);
      background: #fff;
      display: inline-grid;
      place-items: center;
      cursor: pointer;
      color: var(--green);
    }

    .project-action-button .icon {
      width: 17px;
      height: 17px;
    }

    .project-action-button.view {
      color: #2563eb;
      border-color: #bfdbfe;
      background: #eff6ff;
    }

    .project-action-button.move {
      color: #f59e0b;
      border-color: #fde68a;
      background: #fffbeb;
    }

    .project-action-button.history {
      color: #d97706;
      border-color: #fed7aa;
      background: #fff7ed;
    }

    .project-action-button.delete {
      color: #dc2626;
      border-color: #fecaca;
      background: #fff5f5;
    }

    .project-action-button:disabled {
      opacity: 0.45;
      cursor: not-allowed;
    }

    .project-revision-panel {
      margin: 20px 18px 18px;
      border: 1px solid var(--line);
      border-radius: 8px;
      background: #fff;
      padding: 16px;
    }

    .project-revision-header {
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 12px;
      margin-bottom: 12px;
    }

    .project-revision-header h3 {
      margin: 0;
      font-size: 0.95rem;
      letter-spacing: 0.02em;
      color: var(--ink);
    }

    .project-revision-header span {
      background: #dff4ec;
      color: var(--green);
      border-radius: 999px;
      padding: 7px 12px;
      font-size: 0.78rem;
      font-weight: 900;
      max-width: 46%;
      overflow: hidden;
      text-overflow: ellipsis;
      white-space: nowrap;
    }

    .empty-table-cell {
      text-align: center;
      color: var(--muted);
      padding: 24px !important;
    }

    @media (max-width: 1100px) {
      .projects-library {
        grid-template-columns: 1fr;
      }

      .projects-sidebar {
        border-right: 0;
        border-bottom: 1px solid var(--line);
      }

      .project-library-form {
        grid-template-columns: repeat(2, minmax(0, 1fr));
      }
    }

    @media (max-width: 720px) {
      .projects-workspace,
      .projects-sidebar {
        padding: 16px;
      }

      .projects-toolbar-row,
      .project-revision-header {
        align-items: stretch;
        flex-direction: column;
      }

      .project-library-form {
        grid-template-columns: 1fr;
      }

      .project-library-form .span-2 {
        grid-column: auto;
      }

      .project-revision-header span {
        max-width: 100%;
      }
    }

    /* Segurança: mantém os submenus e cards no mesmo ritmo visual das demais páginas. */
    body.executive-subpage-mode .app-view[data-view="seguranca"].active {
      gap: 12px !important;
      align-content: start !important;
      padding: 12px 14px 18px !important;
    }

    body.executive-subpage-mode .app-view[data-view="seguranca"] .executive-page-topline,
    body.executive-subpage-mode .app-view[data-view="seguranca"] .management-switch,
    body.executive-subpage-mode .app-view[data-view="seguranca"] [data-safety-panel].active {
      width: 100% !important;
      max-width: 100% !important;
      margin: 0 !important;
    }

    body.executive-subpage-mode .app-view[data-view="seguranca"] [data-safety-panel] {
      clear: none !important;
    }

    body.executive-subpage-mode .app-view[data-view="seguranca"] .page-grid.single {
      display: grid !important;
      grid-template-columns: minmax(0, 1fr) !important;
      gap: 12px !important;
      width: 100% !important;
      margin: 0 !important;
    }

    body.executive-subpage-mode .app-view[data-view="seguranca"] .band {
      width: 100% !important;
      margin: 0 !important;
    }

    body.executive-subpage-mode .app-view[data-view="seguranca"] .band-body {
      display: grid;
      gap: 10px;
    }

    body.executive-subpage-mode .app-view[data-view="seguranca"] .inline-form,
    body.executive-subpage-mode .app-view[data-view="seguranca"] .commodity-toolbar,
    body.executive-subpage-mode .app-view[data-view="seguranca"] .table-wrap,
    body.executive-subpage-mode .app-view[data-view="seguranca"] .empty {
      margin: 0 !important;
    }

    body.executive-subpage-mode .app-view[data-view="seguranca"] #safetyWorkerForm {
      grid-template-columns: minmax(180px, 0.9fr) minmax(260px, 1.4fr) minmax(180px, 0.9fr) minmax(150px, 0.75fr);
      align-items: end;
    }

    body.executive-subpage-mode .app-view[data-view="seguranca"] #safetyWorkerForm .form-actions {
      grid-column: auto;
    }

    body.executive-subpage-mode .app-view[data-view="seguranca"] #safetyWorkerForm .form-actions .primary-button {
      min-height: 34px;
    }

    body.executive-subpage-mode .app-view[data-view="seguranca"] #safetyWorkerForm + .commodity-toolbar {
      grid-template-columns: minmax(180px, 260px) minmax(0, 1fr);
      align-items: end;
    }

    /* Página inicial: centraliza os dados dos cards principais abaixo de cada título. */
    body.dashboard-mode:not(.locked) .dashboard-kpis .kpi-card {
      justify-items: center !important;
      text-align: center !important;
    }

    body.dashboard-mode:not(.locked) .dashboard-kpis .kpi-card > span,
    body.dashboard-mode:not(.locked) .dashboard-kpis .kpi-card small {
      width: 100% !important;
      text-align: center !important;
    }

    body.dashboard-mode:not(.locked) .dashboard-kpis .kpi-value-line {
      width: 100% !important;
      display: flex !important;
      align-items: center !important;
      justify-content: center !important;
      gap: 10px !important;
      text-align: center !important;
    }

    body.dashboard-mode:not(.locked) .dashboard-kpis .kpi-value-line strong {
      flex: 0 1 auto !important;
      min-width: 0 !important;
      text-align: left !important;
    }

    body.dashboard-mode .home-evolution-card .dashboard-body-legend,
    body.dashboard-mode:not(.locked) .home-evolution-card .dashboard-body-legend,
    body.dashboard-mode .executive-layout-grid .home-evolution-card .dashboard-body-legend {
      display: none !important;
    }

    .curve-s-legend-item.current {
      border-color: rgba(7, 95, 82, 0.45);
      background: linear-gradient(135deg, #075f52, #0aa887);
      color: #fff;
      box-shadow: 0 10px 22px rgba(7, 95, 82, 0.18);
    }

    .curve-s-legend-item.current strong {
      color: #fff;
      font-size: 12px;
    }

    body.dashboard-mode:not(.locked) .home-evolution-card .evolution-card-body,
    body.dashboard-mode .executive-layout-grid .home-evolution-card .evolution-card-body {
      grid-template-rows: minmax(0, 1fr) !important;
      overflow: visible !important;
    }

    body.dashboard-mode:not(.locked) .home-evolution-card .dashboard-line-chart,
    body.dashboard-mode .executive-layout-grid .home-evolution-card .dashboard-line-chart {
      min-height: 260px !important;
      height: 100% !important;
      display: block !important;
      overflow-x: auto !important;
      overflow-y: visible !important;
      padding: 0 2px 6px !important;
    }

    body.dashboard-mode:not(.locked) .home-evolution-card .dashboard-line-chart .curve-s-visual,
    body.dashboard-mode .executive-layout-grid .home-evolution-card .dashboard-line-chart .curve-s-visual {
      min-height: 250px !important;
      grid-template-rows: auto minmax(190px, 1fr) !important;
      align-content: stretch !important;
    }

    body.dashboard-mode:not(.locked) .home-evolution-card .dashboard-line-chart .curve-s-visual svg,
    body.dashboard-mode .executive-layout-grid .home-evolution-card .dashboard-line-chart .curve-s-visual svg {
      width: auto !important;
      min-width: 100% !important;
      height: 214px !important;
      max-height: none !important;
      display: block !important;
      overflow: visible !important;
    }

    /* Mobile executive layout: uses the same dashboard hierarchy without squeezing desktop columns. */
    @media (max-width: 820px) {
      html,
      body {
        width: 100%;
        max-width: 100%;
        overflow-x: hidden !important;
      }

      body.dashboard-mode:not(.locked),
      body.executive-subpage-mode:not(.locked) {
        background: #f5f8f9 !important;
      }

      body.dashboard-mode:not(.locked) .shell,
      body.executive-subpage-mode:not(.locked) .shell {
        width: 100% !important;
        max-width: 100% !important;
        margin: 0 !important;
        padding: 0 !important;
      }

      body.dashboard-mode:not(.locked) .executive-dashboard-page,
      body.dashboard-mode:not(.locked):not(.dashboard-menu-collapsed) .executive-dashboard-page,
      body.dashboard-mode:not(.locked).dashboard-menu-collapsed .executive-dashboard-page {
        display: block !important;
        width: 100% !important;
        max-width: 100% !important;
        min-height: 100vh !important;
      }

      body.dashboard-mode:not(.locked) .dashboard-sidebar,
      body.dashboard-mode:not(.locked):not(.dashboard-menu-collapsed) .dashboard-sidebar,
      body.dashboard-mode:not(.locked).dashboard-menu-collapsed .dashboard-sidebar,
      body.executive-subpage-mode:not(.locked) .subpage-dashboard-sidebar,
      body.executive-subpage-mode:not(.locked):not(.dashboard-menu-collapsed) .subpage-dashboard-sidebar,
      body.executive-subpage-mode:not(.locked).dashboard-menu-collapsed .subpage-dashboard-sidebar {
        position: fixed !important;
        left: 0 !important;
        right: 0 !important;
        bottom: 0 !important;
        top: auto !important;
        z-index: 9000 !important;
        width: 100% !important;
        min-width: 0 !important;
        max-width: 100% !important;
        height: calc(74px + env(safe-area-inset-bottom, 0px)) !important;
        min-height: 0 !important;
        padding: 8px 10px calc(8px + env(safe-area-inset-bottom, 0px)) !important;
        border: 1px solid rgba(217, 226, 230, 0.86) !important;
        border-right: 0 !important;
        border-left: 0 !important;
        border-bottom: 0 !important;
        border-radius: 20px 20px 0 0 !important;
        background: rgba(255, 255, 255, 0.96) !important;
        box-shadow: 0 -12px 34px rgba(13, 40, 48, 0.12) !important;
        overflow: visible !important;
      }

      body.dashboard-mode:not(.locked) .dashboard-side-brand,
      body.executive-subpage-mode:not(.locked) .subpage-dashboard-sidebar .dashboard-side-brand {
        position: fixed !important;
        top: 17px !important;
        left: 56px !important;
        z-index: 9100 !important;
        display: block !important;
        width: 58px !important;
        height: 34px !important;
        min-width: 0 !important;
        margin: 0 !important;
        padding: 0 !important;
        border: 0 !important;
        background: transparent !important;
        box-shadow: none !important;
      }

      body.dashboard-mode:not(.locked) .dashboard-side-brand .go-logo-img,
      body.executive-subpage-mode:not(.locked) .subpage-dashboard-sidebar .dashboard-side-brand .go-logo-img {
        display: block !important;
        width: 100% !important;
        height: 100% !important;
        object-fit: contain !important;
      }

      body.dashboard-mode:not(.locked) .dashboard-side-brand .icon,
      body.executive-subpage-mode:not(.locked) .subpage-dashboard-sidebar .dashboard-side-brand .icon,
      body.dashboard-mode:not(.locked) .dashboard-quick-links,
      body.executive-subpage-mode:not(.locked) .dashboard-quick-links {
        display: none !important;
      }

      body.dashboard-mode:not(.locked) .dashboard-side-nav,
      body.executive-subpage-mode:not(.locked) .subpage-dashboard-sidebar .dashboard-side-nav {
        display: flex !important;
        flex-direction: row !important;
        align-items: center !important;
        gap: 8px !important;
        width: 100% !important;
        height: 100% !important;
        overflow-x: auto !important;
        overflow-y: hidden !important;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
      }

      body.dashboard-mode:not(.locked) .dashboard-side-nav::-webkit-scrollbar,
      body.executive-subpage-mode:not(.locked) .subpage-dashboard-sidebar .dashboard-side-nav::-webkit-scrollbar {
        display: none;
      }

      body.dashboard-mode:not(.locked) .dash-nav-button,
      body.dashboard-mode:not(.locked):not(.dashboard-menu-collapsed) .dash-nav-button,
      body.dashboard-mode:not(.locked).dashboard-menu-collapsed .dash-nav-button,
      body.executive-subpage-mode:not(.locked) .subpage-dashboard-sidebar .dash-nav-button,
      body.executive-subpage-mode:not(.locked):not(.dashboard-menu-collapsed) .subpage-dashboard-sidebar .dash-nav-button,
      body.executive-subpage-mode:not(.locked).dashboard-menu-collapsed .subpage-dashboard-sidebar .dash-nav-button {
        flex: 0 0 78px !important;
        min-width: 78px !important;
        width: 78px !important;
        height: 54px !important;
        min-height: 54px !important;
        display: grid !important;
        grid-template-columns: 1fr !important;
        grid-template-rows: 24px 18px !important;
        place-items: center !important;
        gap: 2px !important;
        padding: 6px 6px 5px !important;
        border-radius: 14px !important;
        color: #6a7b86 !important;
        background: transparent !important;
        box-shadow: none !important;
        font-size: 10px !important;
        line-height: 1 !important;
      }

      body.dashboard-mode:not(.locked) .dash-nav-button.active,
      body.executive-subpage-mode:not(.locked) .subpage-dashboard-sidebar .dash-nav-button.active {
        color: #007a66 !important;
        background: rgba(0, 122, 102, 0.11) !important;
      }

      body.dashboard-mode:not(.locked) .dash-nav-button .icon,
      body.executive-subpage-mode:not(.locked) .subpage-dashboard-sidebar .dash-nav-button .icon {
        width: 21px !important;
        height: 21px !important;
      }

      body.dashboard-mode:not(.locked) .dash-nav-button span,
      body.executive-subpage-mode:not(.locked) .subpage-dashboard-sidebar .dash-nav-button span {
        max-width: 68px !important;
        font-size: 10px !important;
        line-height: 1.08 !important;
        font-weight: 780 !important;
        white-space: nowrap !important;
        overflow: hidden !important;
        text-overflow: ellipsis !important;
      }

      body.dashboard-mode:not(.locked) .dashboard-main {
        width: 100% !important;
        max-width: 100% !important;
        min-height: 100vh !important;
        max-height: none !important;
        padding: 14px 14px calc(92px + env(safe-area-inset-bottom, 0px)) !important;
        overflow: visible !important;
      }

      body.dashboard-mode:not(.locked) .dashboard-topline,
      body.dashboard-mode:not(.locked):not(.dashboard-menu-collapsed) .dashboard-topline,
      body.dashboard-mode:not(.locked).dashboard-menu-collapsed .dashboard-topline {
        display: grid !important;
        grid-template-columns: minmax(0, 1fr) auto !important;
        grid-template-areas:
          "heading actions"
          "controls controls" !important;
        align-items: center !important;
        gap: 12px !important;
        min-height: 0 !important;
        padding: 2px 0 12px !important;
        border: 0 !important;
        background: transparent !important;
        box-shadow: none !important;
      }

      body.dashboard-mode:not(.locked) .dashboard-heading {
        grid-area: heading !important;
        min-width: 0 !important;
        padding-left: 104px !important;
      }

      body.dashboard-mode:not(.locked) .dashboard-heading h2 {
        font-size: 17px !important;
        line-height: 1.12 !important;
        letter-spacing: 0 !important;
        margin: 0 !important;
      }

      body.dashboard-mode:not(.locked) .dashboard-heading p {
        font-size: 11px !important;
        line-height: 1.2 !important;
        margin: 3px 0 0 !important;
        white-space: normal !important;
      }

      body.dashboard-mode:not(.locked) .dashboard-toolbar-actions {
        grid-area: actions !important;
        display: flex !important;
        align-items: center !important;
        justify-content: flex-end !important;
        gap: 9px !important;
        width: auto !important;
        min-width: 0 !important;
      }

      body.dashboard-mode:not(.locked) .dashboard-notify-button,
      body.dashboard-mode:not(.locked) .dashboard-logout-button {
        width: 34px !important;
        height: 34px !important;
        min-width: 34px !important;
        min-height: 34px !important;
        border-radius: 50% !important;
        background: #fff !important;
        color: #0e2230 !important;
      }

      body.dashboard-mode:not(.locked) .dashboard-user-card {
        width: 38px !important;
        height: 38px !important;
        min-width: 38px !important;
        padding: 0 !important;
        border: 0 !important;
        background: transparent !important;
        box-shadow: none !important;
      }

      body.dashboard-mode:not(.locked) .dashboard-user-card > div:not(.dashboard-avatar) {
        display: none !important;
      }

      body.dashboard-mode:not(.locked) .dashboard-avatar {
        width: 38px !important;
        height: 38px !important;
        font-size: 12px !important;
      }

      body.dashboard-mode:not(.locked) .dashboard-controls,
      body.dashboard-mode:not(.locked):not(.dashboard-menu-collapsed) .dashboard-controls,
      body.dashboard-mode:not(.locked).dashboard-menu-collapsed .dashboard-controls {
        grid-area: controls !important;
        display: grid !important;
        grid-template-columns: minmax(0, 1fr) minmax(104px, 126px) !important;
        gap: 10px !important;
        width: 100% !important;
        max-width: 100% !important;
        margin: 4px 0 0 !important;
        overflow: visible !important;
      }

      body.dashboard-mode:not(.locked) .dashboard-select-card,
      body.dashboard-mode:not(.locked) .dashboard-work-card,
      body.dashboard-mode:not(.locked) .dashboard-select-card:first-child {
        width: 100% !important;
        min-width: 0 !important;
        height: 48px !important;
        min-height: 48px !important;
        padding: 7px 10px !important;
        grid-template-columns: minmax(92px, auto) minmax(0, 1fr) !important;
        gap: 8px !important;
        border-radius: 8px !important;
      }

      body.dashboard-mode:not(.locked) .dashboard-select-card span {
        font-size: 9px !important;
        line-height: 1 !important;
        white-space: nowrap !important;
      }

      body.dashboard-mode:not(.locked) .dashboard-select-card select {
        font-size: 12px !important;
        line-height: 1.1 !important;
        min-width: 0 !important;
        height: 26px !important;
      }

      body.dashboard-mode:not(.locked) .dashboard-new-work-button {
        width: 100% !important;
        min-width: 0 !important;
        height: 48px !important;
        min-height: 48px !important;
        padding: 0 8px !important;
        border-radius: 8px !important;
        font-size: 11px !important;
        white-space: nowrap !important;
      }

      body.dashboard-mode:not(.locked) .dashboard-kpis,
      body.dashboard-mode:not(.locked):not(.dashboard-menu-collapsed) .dashboard-kpis,
      body.dashboard-mode:not(.locked).dashboard-menu-collapsed .dashboard-kpis {
        display: grid !important;
        grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
        gap: 8px !important;
        min-height: 0 !important;
        padding: 0 !important;
        margin: 0 0 10px !important;
      }

      body.dashboard-mode:not(.locked) .kpi-card {
        height: 116px !important;
        min-height: 116px !important;
        padding: 12px 8px 10px !important;
        border-radius: 10px !important;
        gap: 7px !important;
      }

      body.dashboard-mode:not(.locked) .kpi-card > span {
        font-size: 9px !important;
        line-height: 1.15 !important;
        min-height: 22px !important;
      }

      body.dashboard-mode:not(.locked) .kpi-value-line {
        display: grid !important;
        grid-template-columns: 28px minmax(0, auto) !important;
        justify-content: center !important;
        align-items: center !important;
        gap: 7px !important;
      }

      body.dashboard-mode:not(.locked) .kpi-icon {
        width: 28px !important;
        height: 28px !important;
        min-width: 28px !important;
      }

      body.dashboard-mode:not(.locked) .kpi-value-line strong,
      body.dashboard-mode:not(.locked) #homePercentAvg,
      body.dashboard-mode:not(.locked) #homeCostRealized {
        font-size: 18px !important;
        line-height: 1 !important;
        max-width: 78px !important;
        overflow: hidden !important;
        text-overflow: ellipsis !important;
      }

      body.dashboard-mode:not(.locked) .kpi-card small {
        font-size: 9px !important;
        line-height: 1.18 !important;
        white-space: normal !important;
      }

      body.dashboard-mode:not(.locked) .executive-layout-grid,
      body.dashboard-mode:not(.locked):not(.dashboard-menu-collapsed) .executive-layout-grid,
      body.dashboard-mode:not(.locked).dashboard-menu-collapsed .executive-layout-grid {
        display: grid !important;
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
        grid-template-areas:
          "evolution evolution"
          "timeline timeline"
          "summary actions"
          "productivity productivity"
          "photos photos" !important;
        grid-template-rows: auto !important;
        gap: 10px !important;
        padding: 0 !important;
        margin: 0 !important;
        overflow: visible !important;
      }

      body.dashboard-mode:not(.locked) .dashboard-home-card {
        height: auto !important;
        min-height: 0 !important;
        border-radius: 11px !important;
        overflow: hidden !important;
      }

      body.dashboard-mode:not(.locked) .dashboard-home-card .dashboard-card-head {
        height: auto !important;
        min-height: 38px !important;
        padding: 10px 12px 6px !important;
      }

      body.dashboard-mode:not(.locked) .dashboard-home-card .dashboard-card-head h3 {
        font-size: 12px !important;
        line-height: 1.15 !important;
        text-transform: uppercase !important;
      }

      body.dashboard-mode:not(.locked) .dashboard-card-body {
        padding: 0 12px 12px !important;
      }

      body.dashboard-mode:not(.locked) .home-evolution-card .evolution-card-body {
        grid-template-rows: minmax(0, 1fr) !important;
        padding-bottom: 8px !important;
      }

      body.dashboard-mode:not(.locked) .home-curve-controls {
        flex-wrap: wrap !important;
        justify-content: flex-end !important;
        gap: 5px !important;
        max-width: 100% !important;
      }

      body.dashboard-mode:not(.locked) .curve-s-view-toggle {
        height: 30px !important;
      }

      body.dashboard-mode:not(.locked) .curve-s-view-toggle button,
      body.dashboard-mode:not(.locked) .home-curve-controls .secondary-button,
      body.dashboard-mode:not(.locked) .home-curve-controls .icon-button {
        height: 30px !important;
        min-height: 30px !important;
        color: #0d6658 !important;
        border-color: rgba(7, 95, 82, 0.24) !important;
        background: #fff !important;
      }

      body.dashboard-mode:not(.locked) .curve-s-view-toggle button {
        padding: 0 11px !important;
        font-size: 11px !important;
      }

      body.dashboard-mode:not(.locked) .curve-s-view-toggle button.active {
        color: #fff !important;
        background: #007a66 !important;
      }

      body.dashboard-mode:not(.locked) .home-evolution-card .dashboard-line-chart,
      body.dashboard-mode:not(.locked) .home-evolution-card .dashboard-line-chart .curve-s-visual {
        min-height: 260px !important;
        height: 260px !important;
        overflow-x: auto !important;
        overflow-y: hidden !important;
      }

      body.dashboard-mode:not(.locked) .home-evolution-card .dashboard-line-chart .curve-s-visual svg {
        height: 205px !important;
        min-width: 520px !important;
      }

      body.dashboard-mode:not(.locked) .curve-s-legend-rich {
        display: flex !important;
        flex-wrap: nowrap !important;
        gap: 8px !important;
        overflow-x: auto !important;
        padding: 2px 0 8px !important;
        scrollbar-width: none;
      }

      body.dashboard-mode:not(.locked) .curve-s-legend-rich::-webkit-scrollbar {
        display: none;
      }

      body.dashboard-mode:not(.locked) .curve-s-legend-item {
        flex: 0 0 auto !important;
        min-height: 28px !important;
        padding: 5px 10px !important;
        font-size: 10px !important;
      }

      body.dashboard-mode:not(.locked) .home-timeline-card .dashboard-timeline {
        max-height: 300px !important;
        overflow-y: auto !important;
      }

      body.dashboard-mode:not(.locked) .timeline-compact-row {
        grid-template-columns: minmax(0, 1fr) auto !important;
        gap: 8px !important;
        min-height: 42px !important;
        padding: 6px 0 !important;
      }

      body.dashboard-mode:not(.locked) .timeline-compact-row strong,
      body.dashboard-mode:not(.locked) .productivity-week-row strong,
      body.dashboard-mode:not(.locked) .priority-next-row strong {
        font-size: 11px !important;
      }

      body.dashboard-mode:not(.locked) .timeline-compact-row span,
      body.dashboard-mode:not(.locked) .productivity-week-row span,
      body.dashboard-mode:not(.locked) .priority-next-row span {
        font-size: 10px !important;
      }

      body.dashboard-mode:not(.locked) .home-summary-card .dashboard-card-body,
      body.dashboard-mode:not(.locked) .home-actions-card .dashboard-card-body {
        min-height: 176px !important;
      }

      body.dashboard-mode:not(.locked) .dashboard-summary-text {
        font-size: 10.5px !important;
        line-height: 1.35 !important;
      }

      body.dashboard-mode:not(.locked) .executive-meter-list {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
        gap: 10px !important;
      }

      body.dashboard-mode:not(.locked) .priority-summary-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
        gap: 6px !important;
      }

      body.dashboard-mode:not(.locked) .priority-summary-card {
        min-height: 72px !important;
        padding: 8px !important;
      }

      body.dashboard-mode:not(.locked) .priority-summary-card strong {
        font-size: 20px !important;
      }

      body.dashboard-mode:not(.locked) .priority-next-list {
        max-height: 64px !important;
        overflow-y: auto !important;
      }

      body.dashboard-mode:not(.locked) .productivity-week-list {
        max-height: 150px !important;
        overflow-y: auto !important;
      }

      body.dashboard-mode:not(.locked) .productivity-week-row {
        grid-template-columns: minmax(0, 1fr) auto auto !important;
        min-height: 29px !important;
      }

      body.dashboard-mode:not(.locked) .home-photo-card .dashboard-evidence-grid {
        display: grid !important;
        grid-auto-flow: column !important;
        grid-auto-columns: minmax(132px, 42%) !important;
        grid-template-columns: none !important;
        gap: 10px !important;
        overflow-x: auto !important;
        overflow-y: hidden !important;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
      }

      body.dashboard-mode:not(.locked) .home-photo-card .dashboard-evidence-grid::-webkit-scrollbar {
        display: none;
      }

      body.dashboard-mode:not(.locked) .home-photo-card .evidence-card,
      body.dashboard-mode:not(.locked) .home-photo-card .evidence-frame {
        min-height: 92px !important;
        height: 92px !important;
      }

      body.dashboard-mode:not(.locked) .dashboard-footer-note {
        display: none !important;
      }

      body.executive-subpage-mode:not(.locked) .shell {
        padding: 14px 14px calc(92px + env(safe-area-inset-bottom, 0px)) !important;
      }

      body.executive-subpage-mode:not(.locked) .app-view[data-view].active {
        width: 100% !important;
        max-width: 100% !important;
        padding: 0 !important;
        gap: 12px !important;
      }

      body.executive-subpage-mode:not(.locked) .executive-page-topline {
        min-height: 0 !important;
        padding: 14px 12px !important;
        border-radius: 12px !important;
        grid-template-columns: minmax(0, 1fr) !important;
        gap: 10px !important;
      }

      body.executive-subpage-mode:not(.locked) .executive-page-topline .dashboard-heading h2 {
        font-size: 18px !important;
        line-height: 1.1 !important;
      }

      body.executive-subpage-mode:not(.locked) .executive-page-topline .dashboard-heading p {
        font-size: 11px !important;
        line-height: 1.25 !important;
      }

      body.executive-subpage-mode:not(.locked) .management-switch {
        position: static !important;
        width: 100% !important;
        max-width: 100% !important;
        display: flex !important;
        flex-wrap: nowrap !important;
        overflow-x: auto !important;
        gap: 8px !important;
        padding: 8px !important;
        border-radius: 12px !important;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
      }

      body.executive-subpage-mode:not(.locked) .management-switch::-webkit-scrollbar {
        display: none;
      }

      body.executive-subpage-mode:not(.locked) .sub-tab-button {
        flex: 0 0 auto !important;
        min-width: max-content !important;
        min-height: 36px !important;
        padding: 0 14px !important;
        font-size: 11px !important;
      }

      body.executive-subpage-mode:not(.locked) .layout,
      body.executive-subpage-mode:not(.locked) .page-grid,
      body.executive-subpage-mode:not(.locked) .page-grid.single,
      body.executive-subpage-mode:not(.locked) .main-stack,
      body.executive-subpage-mode:not(.locked) .side-stack {
        display: grid !important;
        grid-template-columns: minmax(0, 1fr) !important;
        width: 100% !important;
        max-width: 100% !important;
        gap: 12px !important;
      }

      body.executive-subpage-mode:not(.locked) .band {
        width: 100% !important;
        max-width: 100% !important;
        border-radius: 12px !important;
        overflow: hidden !important;
      }

      body.executive-subpage-mode:not(.locked) .band-header {
        min-height: 44px !important;
        padding: 11px 12px !important;
        gap: 10px !important;
        flex-wrap: wrap !important;
      }

      body.executive-subpage-mode:not(.locked) .band-title h2 {
        font-size: 13px !important;
        line-height: 1.15 !important;
      }

      body.executive-subpage-mode:not(.locked) .band-body {
        padding: 12px !important;
      }

      body.executive-subpage-mode:not(.locked) .inline-form,
      body.executive-subpage-mode:not(.locked) .form-grid,
      body.executive-subpage-mode:not(.locked) .prod-hero-grid,
      body.executive-subpage-mode:not(.locked) .module-filter-row,
      body.executive-subpage-mode:not(.locked) .project-library-form,
      body.executive-subpage-mode:not(.locked) .safety-occurrence-form {
        display: grid !important;
        grid-template-columns: minmax(0, 1fr) !important;
        gap: 10px !important;
      }

      body.executive-subpage-mode:not(.locked) .field,
      body.executive-subpage-mode:not(.locked) .field.span-2,
      body.executive-subpage-mode:not(.locked) .span-2,
      body.executive-subpage-mode:not(.locked) .form-actions {
        grid-column: auto !important;
        min-width: 0 !important;
      }

      body.executive-subpage-mode:not(.locked) .form-actions .primary-button,
      body.executive-subpage-mode:not(.locked) .form-actions .secondary-button {
        width: 100% !important;
      }

      body.executive-subpage-mode:not(.locked) .table-wrap,
      body.executive-subpage-mode:not(.locked) .project-table-wrap,
      body.executive-subpage-mode:not(.locked) #takeoffTableWrap {
        width: 100% !important;
        max-width: 100% !important;
        overflow-x: auto !important;
        overflow-y: visible !important;
        -webkit-overflow-scrolling: touch;
      }

      body.executive-subpage-mode:not(.locked) table {
        min-width: 760px;
      }
    }

    @media (max-width: 430px) {
      body.dashboard-mode:not(.locked) .dashboard-heading {
        padding-left: 96px !important;
      }

      body.dashboard-mode:not(.locked) .dashboard-heading h2 {
        font-size: 16px !important;
      }

      body.dashboard-mode:not(.locked) .dashboard-controls,
      body.dashboard-mode:not(.locked):not(.dashboard-menu-collapsed) .dashboard-controls,
      body.dashboard-mode:not(.locked).dashboard-menu-collapsed .dashboard-controls {
        grid-template-columns: minmax(0, 1fr) 116px !important;
      }

      body.dashboard-mode:not(.locked) .dashboard-kpis,
      body.dashboard-mode:not(.locked):not(.dashboard-menu-collapsed) .dashboard-kpis,
      body.dashboard-mode:not(.locked).dashboard-menu-collapsed .dashboard-kpis {
        gap: 7px !important;
      }

      body.dashboard-mode:not(.locked) .kpi-card {
        height: 112px !important;
        min-height: 112px !important;
        padding: 10px 6px !important;
      }

      body.dashboard-mode:not(.locked) .kpi-value-line {
        gap: 5px !important;
      }

      body.dashboard-mode:not(.locked) .kpi-value-line strong,
      body.dashboard-mode:not(.locked) #homePercentAvg,
      body.dashboard-mode:not(.locked) #homeCostRealized {
        font-size: 16px !important;
      }
    }

    @media (max-width: 380px) {
      body.dashboard-mode:not(.locked) .dashboard-kpis,
      body.dashboard-mode:not(.locked):not(.dashboard-menu-collapsed) .dashboard-kpis,
      body.dashboard-mode:not(.locked).dashboard-menu-collapsed .dashboard-kpis {
        grid-template-columns: 1fr !important;
      }

      body.dashboard-mode:not(.locked) .executive-layout-grid,
      body.dashboard-mode:not(.locked):not(.dashboard-menu-collapsed) .executive-layout-grid,
      body.dashboard-mode:not(.locked).dashboard-menu-collapsed .executive-layout-grid {
        grid-template-columns: 1fr !important;
        grid-template-areas:
          "evolution"
          "timeline"
          "summary"
          "actions"
          "productivity"
          "photos" !important;
      }

      body.dashboard-mode:not(.locked) .dashboard-controls,
      body.dashboard-mode:not(.locked):not(.dashboard-menu-collapsed) .dashboard-controls,
      body.dashboard-mode:not(.locked).dashboard-menu-collapsed .dashboard-controls {
        grid-template-columns: 1fr !important;
      }

      body.dashboard-mode:not(.locked) .dashboard-heading {
        padding-left: 80px !important;
      }

      body.dashboard-mode:not(.locked) .dashboard-side-brand {
        left: 46px !important;
      }
    }

    /* v35 mobile polish: avoid cropped labels/cards and keep technical documents usable on phones. */
    @media (max-width: 820px) {
      body.dashboard-mode:not(.locked) .dashboard-main {
        padding: 12px 12px calc(106px + env(safe-area-inset-bottom, 0px)) !important;
      }

      body.dashboard-mode:not(.locked) .dashboard-side-brand,
      body.executive-subpage-mode:not(.locked) .subpage-dashboard-sidebar .dashboard-side-brand {
        top: 16px !important;
        left: 14px !important;
        width: 58px !important;
        height: 34px !important;
      }

      body.dashboard-mode:not(.locked) .dashboard-heading {
        padding-left: 76px !important;
      }

      body.dashboard-mode:not(.locked) .dashboard-heading h2 {
        font-size: clamp(15px, 4.1vw, 18px) !important;
        white-space: normal !important;
      }

      body.dashboard-mode:not(.locked) .dashboard-heading p {
        font-size: 10.5px !important;
      }

      body.dashboard-mode:not(.locked) .dashboard-toolbar-actions {
        gap: 7px !important;
      }

      body.dashboard-mode:not(.locked) .dashboard-notify-button,
      body.dashboard-mode:not(.locked) .dashboard-logout-button {
        width: 32px !important;
        height: 32px !important;
        min-width: 32px !important;
        min-height: 32px !important;
      }

      body.dashboard-mode:not(.locked) .dashboard-user-card,
      body.dashboard-mode:not(.locked) .dashboard-avatar {
        width: 36px !important;
        height: 36px !important;
        min-width: 36px !important;
      }

      body.dashboard-mode:not(.locked) .dashboard-controls,
      body.dashboard-mode:not(.locked):not(.dashboard-menu-collapsed) .dashboard-controls,
      body.dashboard-mode:not(.locked).dashboard-menu-collapsed .dashboard-controls {
        grid-template-columns: minmax(0, 1fr) minmax(98px, 122px) !important;
        gap: 8px !important;
      }

      body.dashboard-mode:not(.locked) .dashboard-select-card,
      body.dashboard-mode:not(.locked) .dashboard-work-card,
      body.dashboard-mode:not(.locked) .dashboard-select-card:first-child,
      body.dashboard-mode:not(.locked) .dashboard-new-work-button {
        min-height: 46px !important;
        height: auto !important;
      }

      body.dashboard-mode:not(.locked) .dashboard-select-card,
      body.dashboard-mode:not(.locked) .dashboard-select-card:first-child {
        grid-template-columns: 88px minmax(0, 1fr) !important;
      }

      body.dashboard-mode:not(.locked) .dashboard-select-card select {
        white-space: normal !important;
        overflow: visible !important;
        text-overflow: clip !important;
      }

      body.dashboard-mode:not(.locked) .dashboard-kpis,
      body.dashboard-mode:not(.locked):not(.dashboard-menu-collapsed) .dashboard-kpis,
      body.dashboard-mode:not(.locked).dashboard-menu-collapsed .dashboard-kpis {
        grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
        align-items: stretch !important;
        gap: 8px !important;
      }

      body.dashboard-mode:not(.locked) .kpi-card {
        min-height: 124px !important;
        height: auto !important;
        overflow: visible !important;
        padding: 11px 7px 10px !important;
      }

      body.dashboard-mode:not(.locked) .kpi-card > span {
        display: flex !important;
        align-items: flex-start !important;
        justify-content: center !important;
        min-height: 24px !important;
        white-space: normal !important;
        overflow: visible !important;
        text-overflow: clip !important;
      }

      body.dashboard-mode:not(.locked) .kpi-value-line {
        min-height: 34px !important;
        grid-template-columns: 28px minmax(0, 1fr) !important;
        justify-content: center !important;
      }

      body.dashboard-mode:not(.locked) .kpi-value-line strong,
      body.dashboard-mode:not(.locked) #homePercentAvg,
      body.dashboard-mode:not(.locked) #homeCostRealized {
        width: auto !important;
        max-width: none !important;
        font-size: clamp(15px, 4.2vw, 18px) !important;
        white-space: normal !important;
        overflow: visible !important;
        text-overflow: clip !important;
        text-align: left !important;
      }

      body.dashboard-mode:not(.locked) .kpi-card small {
        min-height: 26px !important;
        white-space: normal !important;
        overflow: visible !important;
        text-overflow: clip !important;
      }

      body.dashboard-mode:not(.locked) .dashboard-sidebar,
      body.dashboard-mode:not(.locked):not(.dashboard-menu-collapsed) .dashboard-sidebar,
      body.dashboard-mode:not(.locked).dashboard-menu-collapsed .dashboard-sidebar,
      body.executive-subpage-mode:not(.locked) .subpage-dashboard-sidebar,
      body.executive-subpage-mode:not(.locked):not(.dashboard-menu-collapsed) .subpage-dashboard-sidebar,
      body.executive-subpage-mode:not(.locked).dashboard-menu-collapsed .subpage-dashboard-sidebar {
        height: calc(88px + env(safe-area-inset-bottom, 0px)) !important;
        padding: 8px 8px calc(9px + env(safe-area-inset-bottom, 0px)) !important;
      }

      body.dashboard-mode:not(.locked) .dash-nav-button,
      body.dashboard-mode:not(.locked):not(.dashboard-menu-collapsed) .dash-nav-button,
      body.dashboard-mode:not(.locked).dashboard-menu-collapsed .dash-nav-button,
      body.executive-subpage-mode:not(.locked) .subpage-dashboard-sidebar .dash-nav-button,
      body.executive-subpage-mode:not(.locked):not(.dashboard-menu-collapsed) .subpage-dashboard-sidebar .dash-nav-button,
      body.executive-subpage-mode:not(.locked).dashboard-menu-collapsed .subpage-dashboard-sidebar .dash-nav-button {
        flex: 0 0 86px !important;
        min-width: 86px !important;
        width: 86px !important;
        height: 64px !important;
        min-height: 64px !important;
        grid-template-rows: 24px 30px !important;
        padding: 6px 6px 5px !important;
      }

      body.dashboard-mode:not(.locked) .dash-nav-button span,
      body.executive-subpage-mode:not(.locked) .subpage-dashboard-sidebar .dash-nav-button span {
        display: -webkit-box !important;
        max-width: 78px !important;
        font-size: 10px !important;
        line-height: 1.1 !important;
        white-space: normal !important;
        overflow: hidden !important;
        text-overflow: clip !important;
        -webkit-line-clamp: 2 !important;
        -webkit-box-orient: vertical !important;
      }

      body.dashboard-mode:not(.locked) .home-evolution-card .dashboard-line-chart,
      body.dashboard-mode:not(.locked) .home-evolution-card .dashboard-line-chart .curve-s-visual {
        min-height: 285px !important;
        height: 285px !important;
      }

      body.dashboard-mode:not(.locked) .home-evolution-card .dashboard-line-chart .curve-s-visual svg {
        min-width: 560px !important;
        height: 218px !important;
      }

      body.dashboard-mode:not(.locked) .dashboard-home-card .dashboard-card-head {
        align-items: flex-start !important;
        gap: 8px !important;
        flex-wrap: wrap !important;
      }

      body.dashboard-mode:not(.locked) .home-curve-controls {
        width: 100% !important;
        justify-content: flex-start !important;
        margin-left: 0 !important;
      }

      body.dashboard-mode:not(.locked) .home-summary-card .dashboard-card-body,
      body.dashboard-mode:not(.locked) .home-actions-card .dashboard-card-body {
        min-height: 0 !important;
      }

      body.dashboard-mode:not(.locked) .dashboard-summary-text {
        display: block !important;
        max-height: none !important;
        overflow: visible !important;
      }

      body.dashboard-mode:not(.locked) .priority-summary-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
      }

      body.dashboard-mode:not(.locked) .priority-summary-card span,
      body.dashboard-mode:not(.locked) .priority-next-row strong,
      body.dashboard-mode:not(.locked) .priority-next-row span {
        white-space: normal !important;
        overflow: visible !important;
        text-overflow: clip !important;
      }

      body.dashboard-mode:not(.locked) .productivity-week-row {
        grid-template-columns: minmax(0, 1fr) auto auto !important;
        gap: 8px !important;
      }

      body.dashboard-mode:not(.locked) .productivity-week-row strong {
        white-space: normal !important;
        overflow: visible !important;
        text-overflow: clip !important;
      }

      body.dashboard-mode:not(.locked) .home-photo-card .dashboard-evidence-grid {
        grid-auto-columns: minmax(128px, 44%) !important;
      }

      body.executive-subpage-mode:not(.locked) .shell {
        padding-bottom: calc(106px + env(safe-area-inset-bottom, 0px)) !important;
      }

      body.executive-subpage-mode:not(.locked) .executive-page-topline,
      body.executive-subpage-mode:not(.locked) .band,
      body.executive-subpage-mode:not(.locked) .band-body {
        overflow: visible !important;
      }

      body.executive-subpage-mode:not(.locked) .executive-page-topline .dashboard-heading {
        padding-left: 76px !important;
        min-width: 0 !important;
      }

      body.executive-subpage-mode:not(.locked) .executive-page-topline .dashboard-heading h2,
      body.executive-subpage-mode:not(.locked) .executive-page-topline .dashboard-heading p {
        white-space: normal !important;
        overflow: visible !important;
        text-overflow: clip !important;
      }

      body.executive-subpage-mode:not(.locked) .executive-page-toolbar {
        width: 100% !important;
        justify-content: flex-start !important;
        flex-wrap: wrap !important;
      }

      body.executive-subpage-mode:not(.locked) .dashboard-pill {
        min-height: 26px !important;
        white-space: normal !important;
        line-height: 1.1 !important;
      }

      body.executive-subpage-mode:not(.locked) .band-header {
        align-items: flex-start !important;
      }

      body.executive-subpage-mode:not(.locked) .band-actions {
        width: 100% !important;
        justify-content: flex-start !important;
        flex-wrap: wrap !important;
      }

      body.executive-subpage-mode:not(.locked) input,
      body.executive-subpage-mode:not(.locked) select,
      body.executive-subpage-mode:not(.locked) textarea {
        width: 100% !important;
        min-width: 0 !important;
      }

      body.executive-subpage-mode:not(.locked) .projects-library {
        display: grid !important;
        grid-template-columns: minmax(0, 1fr) !important;
      }

      body.executive-subpage-mode:not(.locked) .projects-sidebar {
        width: 100% !important;
        max-height: none !important;
        padding: 12px !important;
        border-right: 0 !important;
        border-bottom: 1px solid var(--line) !important;
      }

      body.executive-subpage-mode:not(.locked) .projects-sidebar-actions {
        display: grid !important;
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
        gap: 8px !important;
      }

      body.executive-subpage-mode:not(.locked) .project-folder-tree {
        max-height: 240px !important;
        overflow-y: auto !important;
        font-size: 11px !important;
      }

      body.executive-subpage-mode:not(.locked) .folder-row {
        min-height: 30px !important;
        padding: 5px 7px !important;
        gap: 6px !important;
      }

      body.executive-subpage-mode:not(.locked) .folder-row .folder-name {
        white-space: normal !important;
        overflow: visible !important;
        text-overflow: clip !important;
      }

      body.executive-subpage-mode:not(.locked) .projects-workspace {
        width: 100% !important;
        min-width: 0 !important;
        padding: 12px !important;
      }

      body.executive-subpage-mode:not(.locked) .projects-toolbar-row {
        display: grid !important;
        grid-template-columns: minmax(0, 1fr) !important;
        gap: 10px !important;
      }

      body.executive-subpage-mode:not(.locked) .project-breadcrumb {
        white-space: normal !important;
        overflow: visible !important;
        text-overflow: clip !important;
      }

      body.executive-subpage-mode:not(.locked) .projects-toolbar-actions {
        display: grid !important;
        grid-template-columns: minmax(0, 1fr) !important;
        gap: 8px !important;
      }

      body.executive-subpage-mode:not(.locked) .project-drop-zone {
        min-height: 120px !important;
        padding: 16px !important;
        text-align: center !important;
      }

      body.executive-subpage-mode:not(.locked) .project-drop-zone strong,
      body.executive-subpage-mode:not(.locked) .project-drop-zone span,
      body.executive-subpage-mode:not(.locked) .project-drop-zone small {
        white-space: normal !important;
      }

      body.executive-subpage-mode:not(.locked) .project-library-form {
        grid-template-columns: minmax(0, 1fr) !important;
      }

      body.executive-subpage-mode:not(.locked) .project-revision-panel {
        margin-top: 12px !important;
      }

      body.executive-subpage-mode:not(.locked) .table-wrap table,
      body.executive-subpage-mode:not(.locked) .project-table-wrap table,
      body.executive-subpage-mode:not(.locked) .project-revision-table table {
        min-width: 900px !important;
      }
    }

    @media (max-width: 430px) {
      body.dashboard-mode:not(.locked) .dashboard-heading {
        padding-left: 72px !important;
      }

      body.dashboard-mode:not(.locked) .dashboard-controls,
      body.dashboard-mode:not(.locked):not(.dashboard-menu-collapsed) .dashboard-controls,
      body.dashboard-mode:not(.locked).dashboard-menu-collapsed .dashboard-controls {
        grid-template-columns: minmax(0, 1fr) !important;
      }

      body.dashboard-mode:not(.locked) .dashboard-new-work-button {
        justify-self: stretch !important;
      }

      body.dashboard-mode:not(.locked) .executive-layout-grid,
      body.dashboard-mode:not(.locked):not(.dashboard-menu-collapsed) .executive-layout-grid,
      body.dashboard-mode:not(.locked).dashboard-menu-collapsed .executive-layout-grid {
        grid-template-areas:
          "evolution evolution"
          "timeline timeline"
          "summary summary"
          "actions actions"
          "productivity productivity"
          "photos photos" !important;
      }
    }

    @media (max-width: 390px) {
      body.dashboard-mode:not(.locked) .dashboard-kpis,
      body.dashboard-mode:not(.locked):not(.dashboard-menu-collapsed) .dashboard-kpis,
      body.dashboard-mode:not(.locked).dashboard-menu-collapsed .dashboard-kpis {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
      }
    }

    #editSafetyIndicators,
    #editProductionIndicators,
    #saveSafetyIndicators,
    #saveProductionIndicators {
      display: none !important;
    }

    @media (max-width: 820px) {
      body.dashboard-mode:not(.locked),
      body.dashboard-mode:not(.locked) .executive-dashboard-page,
      body.dashboard-mode:not(.locked) .dashboard-main {
        min-height: 100dvh !important;
        height: auto !important;
        overflow-x: hidden !important;
        overflow-y: visible !important;
      }

      body.dashboard-mode:not(.locked) .dashboard-main {
        padding-bottom: calc(104px + env(safe-area-inset-bottom, 0px)) !important;
      }

      body.dashboard-mode:not(.locked) .dashboard-kpis,
      body.dashboard-mode:not(.locked):not(.dashboard-menu-collapsed) .dashboard-kpis,
      body.dashboard-mode:not(.locked).dashboard-menu-collapsed .dashboard-kpis {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
        gap: 10px !important;
      }

      body.dashboard-mode:not(.locked) .kpi-card {
        min-height: 118px !important;
        height: auto !important;
      }

      body.dashboard-mode:not(.locked) .executive-layout-grid,
      body.dashboard-mode:not(.locked):not(.dashboard-menu-collapsed) .executive-layout-grid,
      body.dashboard-mode:not(.locked).dashboard-menu-collapsed .executive-layout-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
        grid-template-areas:
          "evolution evolution"
          "timeline timeline"
          "summary actions"
          "productivity productivity"
          "photos photos" !important;
        overflow: visible !important;
      }

      body.dashboard-mode:not(.locked) .home-evolution-card .dashboard-card-head {
        align-items: stretch !important;
      }

      body.dashboard-mode:not(.locked) .home-curve-controls {
        display: grid !important;
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
        gap: 6px !important;
        width: 100% !important;
      }

      body.dashboard-mode:not(.locked) .curve-s-view-toggle {
        grid-column: 1 / -1 !important;
        width: 100% !important;
        display: grid !important;
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
      }

      body.dashboard-mode:not(.locked) .home-curve-controls .icon-button,
      body.dashboard-mode:not(.locked) .home-curve-controls .secondary-button {
        width: 100% !important;
        min-width: 0 !important;
      }

      body.dashboard-mode:not(.locked) .home-evolution-card .dashboard-line-chart,
      body.dashboard-mode:not(.locked) .home-evolution-card .dashboard-line-chart .curve-s-visual {
        min-height: 302px !important;
        height: auto !important;
        overflow: visible !important;
      }

      body.dashboard-mode:not(.locked) .curve-s-legend-rich {
        display: grid !important;
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
        gap: 6px !important;
        width: 100% !important;
        overflow: visible !important;
        padding: 0 0 6px !important;
      }

      body.dashboard-mode:not(.locked) .curve-s-legend-item {
        min-width: 0 !important;
        width: 100% !important;
        justify-content: center !important;
        padding: 5px 6px !important;
        font-size: 9.5px !important;
        line-height: 1.1 !important;
        white-space: nowrap !important;
      }

      body.dashboard-mode:not(.locked) .curve-s-legend-item.deviation {
        grid-column: 1 / -1 !important;
        justify-self: center !important;
        max-width: 210px !important;
      }

      body.dashboard-mode:not(.locked) .home-evolution-card .dashboard-line-chart .curve-s-visual svg {
        width: 100% !important;
        min-width: 0 !important;
        height: 214px !important;
        max-width: 100% !important;
      }
    }

    /* Correção final mobile: a página inicial deve fluir inteira, sem gráfico ou card preso em altura fixa. */
    @media (max-width: 820px) {
      html,
      body,
      body.dashboard-mode:not(.locked),
      body.dashboard-mode:not(.locked) .executive-dashboard-page,
      body.dashboard-mode:not(.locked) .dashboard-main {
        width: 100% !important;
        max-width: 100% !important;
        height: auto !important;
        min-height: 100dvh !important;
        overflow-x: hidden !important;
        overflow-y: auto !important;
      }

      body.dashboard-mode:not(.locked) .dashboard-main {
        display: block !important;
        padding-bottom: calc(106px + env(safe-area-inset-bottom, 0px)) !important;
      }

      body.dashboard-mode:not(.locked) .dashboard-kpis,
      body.dashboard-mode:not(.locked):not(.dashboard-menu-collapsed) .dashboard-kpis,
      body.dashboard-mode:not(.locked).dashboard-menu-collapsed .dashboard-kpis {
        display: grid !important;
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
        gap: 10px !important;
      }

      body.dashboard-mode:not(.locked) .executive-layout-grid,
      body.dashboard-mode:not(.locked):not(.dashboard-menu-collapsed) .executive-layout-grid,
      body.dashboard-mode:not(.locked).dashboard-menu-collapsed .executive-layout-grid {
        display: grid !important;
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
        grid-template-rows: none !important;
        grid-auto-rows: auto !important;
        grid-template-areas:
          "evolution evolution"
          "timeline timeline"
          "summary actions"
          "productivity productivity"
          "photos photos" !important;
        gap: 10px !important;
        align-items: start !important;
        padding: 0 !important;
        margin: 0 !important;
        overflow: visible !important;
      }

      body.dashboard-mode:not(.locked) .executive-layout-grid > .dashboard-home-card,
      body.dashboard-mode:not(.locked) .dashboard-home-card {
        width: 100% !important;
        height: auto !important;
        min-height: 0 !important;
        overflow: visible !important;
      }

      body.dashboard-mode:not(.locked) .dashboard-card-body,
      body.dashboard-mode:not(.locked) .home-evolution-card .evolution-card-body {
        height: auto !important;
        min-height: 0 !important;
        overflow: visible !important;
      }

      body.dashboard-mode:not(.locked) .home-evolution-card {
        grid-area: evolution !important;
        grid-template-rows: auto auto !important;
      }

      body.dashboard-mode:not(.locked) .home-evolution-card .dashboard-card-head {
        align-items: flex-start !important;
        gap: 8px !important;
      }

      body.dashboard-mode:not(.locked) .home-evolution-card .dashboard-card-head h3 {
        white-space: normal !important;
      }

      body.dashboard-mode:not(.locked) .home-curve-controls {
        display: grid !important;
        grid-template-columns: repeat(4, minmax(0, auto)) !important;
        justify-content: end !important;
        align-items: center !important;
        gap: 5px !important;
        width: 100% !important;
      }

      body.dashboard-mode:not(.locked) .curve-s-view-toggle {
        grid-column: 1 / -1 !important;
        display: grid !important;
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
        width: 100% !important;
      }

      body.dashboard-mode:not(.locked) .home-evolution-card .dashboard-line-chart,
      body.dashboard-mode:not(.locked) .home-evolution-card .dashboard-line-chart .curve-s-visual {
        display: block !important;
        width: 100% !important;
        height: auto !important;
        min-height: 0 !important;
        max-height: none !important;
        overflow: visible !important;
        padding: 0 !important;
      }

      body.dashboard-mode:not(.locked) .home-evolution-card .dashboard-line-chart .curve-s-visual svg {
        display: block !important;
        width: 100% !important;
        min-width: 0 !important;
        max-width: 100% !important;
        height: auto !important;
        min-height: 0 !important;
        max-height: none !important;
      }

      body.dashboard-mode:not(.locked) .curve-s-legend-rich {
        display: grid !important;
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
        gap: 6px !important;
        width: 100% !important;
        overflow: visible !important;
        padding: 0 0 8px !important;
      }

      body.dashboard-mode:not(.locked) .curve-s-legend-item {
        width: 100% !important;
        min-width: 0 !important;
        justify-content: center !important;
        padding: 5px 6px !important;
        font-size: 9.5px !important;
        line-height: 1.1 !important;
        white-space: nowrap !important;
      }

      body.dashboard-mode:not(.locked) .curve-s-legend-item.deviation {
        grid-column: 1 / -1 !important;
        justify-self: center !important;
        width: auto !important;
        min-width: 160px !important;
        max-width: 100% !important;
      }

      body.dashboard-mode:not(.locked) .home-timeline-card {
        grid-area: timeline !important;
      }

      body.dashboard-mode:not(.locked) .home-timeline-card .dashboard-timeline {
        max-height: 360px !important;
        overflow-y: auto !important;
      }

      body.dashboard-mode:not(.locked) .home-summary-card {
        grid-area: summary !important;
      }

      body.dashboard-mode:not(.locked) .home-actions-card {
        grid-area: actions !important;
      }

      body.dashboard-mode:not(.locked) .home-productivity-card {
        grid-area: productivity !important;
      }

      body.dashboard-mode:not(.locked) .home-productivity-card .executive-list {
        max-height: 230px !important;
        overflow-y: auto !important;
      }

      body.dashboard-mode:not(.locked) .home-photo-card {
        grid-area: photos !important;
      }

      body.dashboard-mode:not(.locked) .home-photo-card .dashboard-evidence-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
      }
    }

    /* v40: no mobile, a moldura principal precisa acompanhar o conteúdo real.
       A regra desktop fixa a shell em 100vh; sem esta liberação, os cards abaixo
       da Curva S existem no DOM, mas ficam presos sem rolagem. */
    @media (max-width: 820px) {
      html,
      body,
      body.dashboard-mode:not(.locked),
      body.executive-subpage-mode:not(.locked) {
        height: auto !important;
        max-height: none !important;
        min-height: 100dvh !important;
        overflow-x: hidden !important;
        overflow-y: auto !important;
      }

      body.dashboard-mode:not(.locked) > .shell,
      body.executive-subpage-mode:not(.locked) > .shell,
      body:not(.locked) > .shell {
        position: static !important;
        inset: auto !important;
        width: 100% !important;
        max-width: 100% !important;
        height: auto !important;
        min-height: 100dvh !important;
        max-height: none !important;
        overflow: visible !important;
      }

      body.dashboard-mode:not(.locked) .app-view.active,
      body.dashboard-mode:not(.locked) .app-view[data-view="inicio"].active,
      body.dashboard-mode:not(.locked) .dashboard-main,
      body.dashboard-mode:not(.locked) .executive-dashboard-page,
      body.executive-subpage-mode:not(.locked) .app-view.active {
        height: auto !important;
        min-height: 100dvh !important;
        max-height: none !important;
        overflow: visible !important;
      }
    }

    /* v41: libera o clique do menu mobile e padroniza as fotos da página inicial. */
    @media (max-width: 820px) {
      body:not(.locked) .mobile-menu-fab {
        position: fixed !important;
        right: 14px !important;
        bottom: 16px !important;
        display: inline-flex !important;
        align-items: center !important;
        justify-content: center !important;
        gap: 8px !important;
        z-index: 30000 !important;
        pointer-events: auto !important;
      }

      body.mobile-menu-open .mobile-menu-backdrop {
        z-index: 30001 !important;
        pointer-events: auto !important;
      }

      body.mobile-menu-open .mobile-menu-drawer {
        z-index: 30002 !important;
        pointer-events: auto !important;
      }

      body:not(.locked) .mobile-menu-backdrop[hidden],
      body:not(.locked) .mobile-menu-drawer[hidden] {
        display: none !important;
        pointer-events: none !important;
      }

      body.dashboard-mode:not(.locked) .dashboard-sidebar,
      body.executive-subpage-mode:not(.locked) .subpage-dashboard-sidebar {
        pointer-events: none !important;
      }

      body.mobile-menu-open .dashboard-main,
      body.mobile-menu-open .app-view.active {
        pointer-events: none !important;
      }
    }

    body.dashboard-mode:not(.locked) .home-photo-card .dashboard-evidence-grid,
    body.dashboard-mode:not(.locked) .executive-layout-grid .home-photo-card .dashboard-evidence-grid {
      display: grid !important;
      grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
      grid-auto-flow: row !important;
      grid-auto-columns: auto !important;
      align-items: stretch !important;
      gap: 10px !important;
      height: auto !important;
      overflow: hidden !important;
    }

    body.dashboard-mode:not(.locked) .home-photo-card .evidence-card,
    body.dashboard-mode:not(.locked) .home-photo-card .evidence-frame,
    body.dashboard-mode:not(.locked) .home-photo-card .evidence-zoom-button,
    body.dashboard-mode:not(.locked) .home-photo-card .evidence-placeholder {
      width: 100% !important;
      height: clamp(82px, 10vw, 156px) !important;
      min-height: 0 !important;
      max-height: none !important;
      aspect-ratio: 16 / 9 !important;
      border-radius: 8px !important;
      overflow: hidden !important;
    }

    body.dashboard-mode:not(.locked) .home-photo-card .evidence-zoom-button {
      display: block !important;
      padding: 0 !important;
      border: 0 !important;
      background: transparent !important;
    }

    body.dashboard-mode:not(.locked) .home-photo-card .evidence-frame img {
      display: block !important;
      width: 100% !important;
      height: 100% !important;
      object-fit: cover !important;
    }

    @media (max-width: 560px) {
      body.dashboard-mode:not(.locked) .home-photo-card .dashboard-evidence-grid,
      body.dashboard-mode:not(.locked) .executive-layout-grid .home-photo-card .dashboard-evidence-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
        grid-auto-flow: row !important;
        grid-auto-columns: auto !important;
        gap: 6px !important;
        overflow: hidden !important;
      }

      body.dashboard-mode:not(.locked) .home-photo-card .evidence-card,
      body.dashboard-mode:not(.locked) .home-photo-card .evidence-frame,
      body.dashboard-mode:not(.locked) .home-photo-card .evidence-zoom-button,
      body.dashboard-mode:not(.locked) .home-photo-card .evidence-placeholder {
        height: 74px !important;
      }

      body.dashboard-mode:not(.locked) .home-photo-card .evidence-placeholder strong,
      body.dashboard-mode:not(.locked) .home-photo-card .evidence-placeholder small {
        display: none !important;
      }
    }

    /* v42: navegação única pelo menu lateral em todas as páginas. */
    .app-tabs,
    .mobile-menu-fab,
    .mobile-menu-backdrop,
    .mobile-menu-drawer {
      display: none !important;
      pointer-events: none !important;
    }

    body.mobile-menu-open {
      overflow: auto !important;
    }

    body.dashboard-mode:not(.locked) .subpage-dashboard-sidebar {
      display: none !important;
    }

    body.dashboard-mode:not(.locked) .dashboard-sidebar,
    body.executive-subpage-mode:not(.locked) .subpage-dashboard-sidebar {
      pointer-events: auto !important;
    }

    @media (max-width: 820px) {
      body.dashboard-mode:not(.locked) .shell,
      body.executive-subpage-mode:not(.locked) .shell {
        width: 100% !important;
        max-width: 100% !important;
        margin: 0 !important;
        padding-top: 0 !important;
        padding-right: 10px !important;
        padding-bottom: 14px !important;
      }

      body.executive-subpage-mode:not(.locked) .app-header {
        width: calc(100vw - 118px) !important;
        max-width: calc(100vw - 118px) !important;
        margin-left: 118px !important;
        padding: 14px 10px !important;
      }

      body.dashboard-mode:not(.locked) .executive-dashboard-page,
      body.dashboard-mode:not(.locked):not(.dashboard-menu-collapsed) .executive-dashboard-page,
      body.dashboard-mode:not(.locked).dashboard-menu-collapsed .executive-dashboard-page {
        display: block !important;
        width: 100% !important;
        max-width: 100% !important;
        min-height: 100dvh !important;
      }

      body.dashboard-mode:not(.locked) .dashboard-sidebar,
      body.dashboard-mode:not(.locked):not(.dashboard-menu-collapsed) .dashboard-sidebar,
      body.dashboard-mode:not(.locked).dashboard-menu-collapsed .dashboard-sidebar,
      body.executive-subpage-mode:not(.locked) .subpage-dashboard-sidebar,
      body.executive-subpage-mode:not(.locked):not(.dashboard-menu-collapsed) .subpage-dashboard-sidebar,
      body.executive-subpage-mode:not(.locked).dashboard-menu-collapsed .subpage-dashboard-sidebar {
        position: fixed !important;
        inset: 0 auto 0 0 !important;
        z-index: 3000 !important;
        display: flex !important;
        flex-direction: column !important;
        width: 118px !important;
        min-width: 118px !important;
        max-width: 118px !important;
        height: 100dvh !important;
        min-height: 100dvh !important;
        padding: 16px 8px !important;
        border: 0 !important;
        border-radius: 0 !important;
        background: linear-gradient(180deg, #007f68 0%, #005847 100%) !important;
        box-shadow: 12px 0 34px rgba(10, 38, 45, 0.13) !important;
        overflow-x: hidden !important;
        overflow-y: auto !important;
        pointer-events: auto !important;
      }

      body.dashboard-mode:not(.locked) .dashboard-main {
        width: calc(100vw - 118px) !important;
        max-width: calc(100vw - 118px) !important;
        margin-left: 118px !important;
        padding: 14px 10px 18px !important;
      }

      body.executive-subpage-mode:not(.locked) .shell {
        padding-left: 128px !important;
      }

      body.executive-subpage-mode:not(.locked) .app-view[data-view].active {
        width: 100% !important;
        max-width: 100% !important;
        padding: 14px 0 18px !important;
      }

      body.dashboard-mode:not(.locked) .dashboard-side-brand,
      body.executive-subpage-mode:not(.locked) .subpage-dashboard-sidebar .dashboard-side-brand {
        position: static !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        width: 100% !important;
        height: 54px !important;
        min-width: 0 !important;
        margin: 0 0 16px !important;
        padding: 0 !important;
        border: 0 !important;
        background: transparent !important;
        box-shadow: none !important;
      }

      body.dashboard-mode:not(.locked) .dashboard-side-brand .go-logo-img,
      body.executive-subpage-mode:not(.locked) .subpage-dashboard-sidebar .dashboard-side-brand .go-logo-img {
        display: block !important;
        width: 74px !important;
        height: auto !important;
        object-fit: contain !important;
      }

      body.dashboard-mode:not(.locked) .dashboard-side-brand .icon,
      body.executive-subpage-mode:not(.locked) .subpage-dashboard-sidebar .dashboard-side-brand .icon {
        display: none !important;
      }

      body.dashboard-mode:not(.locked) .dashboard-side-nav,
      body.executive-subpage-mode:not(.locked) .subpage-dashboard-sidebar .dashboard-side-nav {
        display: flex !important;
        flex: 1 1 auto !important;
        flex-direction: column !important;
        align-items: stretch !important;
        gap: 7px !important;
        width: 100% !important;
        height: auto !important;
        overflow: visible !important;
      }

      body.dashboard-mode:not(.locked) .dash-nav-button,
      body.dashboard-mode:not(.locked):not(.dashboard-menu-collapsed) .dash-nav-button,
      body.dashboard-mode:not(.locked).dashboard-menu-collapsed .dash-nav-button,
      body.executive-subpage-mode:not(.locked) .subpage-dashboard-sidebar .dash-nav-button,
      body.executive-subpage-mode:not(.locked):not(.dashboard-menu-collapsed) .subpage-dashboard-sidebar .dash-nav-button,
      body.executive-subpage-mode:not(.locked).dashboard-menu-collapsed .subpage-dashboard-sidebar .dash-nav-button {
        flex: 0 0 auto !important;
        display: grid !important;
        grid-template-columns: 20px minmax(0, 1fr) !important;
        grid-template-rows: 1fr !important;
        align-items: center !important;
        justify-content: start !important;
        gap: 7px !important;
        width: 100% !important;
        min-width: 0 !important;
        height: 42px !important;
        min-height: 42px !important;
        padding: 8px 7px !important;
        border-radius: 8px !important;
        color: rgba(255, 255, 255, 0.9) !important;
        background: transparent !important;
        box-shadow: none !important;
        font-size: 10px !important;
        line-height: 1.1 !important;
      }

      body.dashboard-mode:not(.locked) .dash-nav-button.active,
      body.executive-subpage-mode:not(.locked) .subpage-dashboard-sidebar .dash-nav-button.active {
        color: #fff !important;
        background: rgba(255, 255, 255, 0.18) !important;
        box-shadow: inset 3px 0 0 rgba(255, 255, 255, 0.82) !important;
      }

      body.dashboard-mode:not(.locked) .dash-nav-button .icon,
      body.executive-subpage-mode:not(.locked) .subpage-dashboard-sidebar .dash-nav-button .icon {
        width: 18px !important;
        height: 18px !important;
      }

      body.dashboard-mode:not(.locked) .dash-nav-button span,
      body.executive-subpage-mode:not(.locked) .subpage-dashboard-sidebar .dash-nav-button span {
        display: block !important;
        max-width: 100% !important;
        color: inherit !important;
        font-size: 10px !important;
        font-weight: 850 !important;
        line-height: 1.08 !important;
        white-space: normal !important;
        overflow: hidden !important;
        text-overflow: ellipsis !important;
        -webkit-line-clamp: unset !important;
      }

      body.dashboard-mode:not(.locked) .dashboard-quick-links,
      body.executive-subpage-mode:not(.locked) .dashboard-quick-links {
        display: none !important;
      }
    }

    @media (max-width: 560px) {
      body.dashboard-mode:not(.locked) .dashboard-sidebar,
      body.executive-subpage-mode:not(.locked) .subpage-dashboard-sidebar {
        width: 92px !important;
        min-width: 92px !important;
        max-width: 92px !important;
        padding: 14px 6px !important;
      }

      body.dashboard-mode:not(.locked) .dashboard-main {
        width: calc(100vw - 92px) !important;
        max-width: calc(100vw - 92px) !important;
        margin-left: 92px !important;
        padding: 12px 7px 16px !important;
      }

      body.executive-subpage-mode:not(.locked) .shell {
        padding-left: 100px !important;
        padding-right: 7px !important;
      }

      body.executive-subpage-mode:not(.locked) .app-header {
        width: calc(100vw - 92px) !important;
        max-width: calc(100vw - 92px) !important;
        margin-left: 92px !important;
        padding: 12px 7px !important;
      }

      body.dashboard-mode:not(.locked) .dashboard-side-brand .go-logo-img,
      body.executive-subpage-mode:not(.locked) .subpage-dashboard-sidebar .dashboard-side-brand .go-logo-img {
        width: 62px !important;
      }

      body.dashboard-mode:not(.locked) .dash-nav-button,
      body.executive-subpage-mode:not(.locked) .subpage-dashboard-sidebar .dash-nav-button {
        grid-template-columns: 1fr !important;
        grid-template-rows: 17px 20px !important;
        place-items: center !important;
        gap: 3px !important;
        height: 48px !important;
        min-height: 48px !important;
        padding: 6px 4px !important;
        text-align: center !important;
      }

      body.dashboard-mode:not(.locked) .dash-nav-button .icon,
      body.executive-subpage-mode:not(.locked) .subpage-dashboard-sidebar .dash-nav-button .icon {
        width: 17px !important;
        height: 17px !important;
      }

      body.dashboard-mode:not(.locked) .dash-nav-button span,
      body.executive-subpage-mode:not(.locked) .subpage-dashboard-sidebar .dash-nav-button span {
        max-width: 72px !important;
        font-size: 9px !important;
        line-height: 1.05 !important;
      }
    }

    /* v43: menu lateral oculto por padrão, aberto por botão discreto. */
    body.locked .global-menu-toggle {
      display: none !important;
      pointer-events: none !important;
    }

    .menu-icon-button {
      display: inline-grid !important;
      place-items: center !important;
      width: 42px !important;
      height: 42px !important;
      min-width: 42px !important;
      border: 1px solid #d9e5e7 !important;
      border-radius: 12px !important;
      background: #fff !important;
      color: #0f2530 !important;
      box-shadow: 0 10px 24px rgba(13, 39, 49, 0.08) !important;
      cursor: pointer !important;
      pointer-events: auto !important;
    }

    .menu-icon-button .icon {
      width: 20px !important;
      height: 20px !important;
    }

    .menu-icon-button .icon-close {
      display: none !important;
    }

    body.dashboard-menu-open .menu-icon-button .icon-menu {
      display: none !important;
    }

    body.dashboard-menu-open .menu-icon-button .icon-close {
      display: block !important;
    }

    body.dashboard-mode:not(.locked) .dashboard-topline {
      grid-template-columns: auto minmax(0, 1fr) auto !important;
      align-items: start !important;
    }

    body.dashboard-mode:not(.locked) .dashboard-menu-open-button {
      margin-top: 1px !important;
    }

    body.dashboard-mode:not(.locked) .executive-dashboard-page {
      display: block !important;
      width: 100% !important;
      max-width: 100% !important;
    }

    body.dashboard-mode:not(.locked) .dashboard-main,
    body.dashboard-mode:not(.locked):not(.dashboard-menu-collapsed) .dashboard-main,
    body.dashboard-mode:not(.locked).dashboard-menu-collapsed .dashboard-main {
      width: 100% !important;
      max-width: 100% !important;
      margin-left: 0 !important;
      padding-left: 0 !important;
    }

    body.executive-subpage-mode:not(.locked) .app-header,
    body.executive-subpage-mode:not(.locked).dashboard-menu-collapsed .app-header,
    body.executive-subpage-mode:not(.locked):not(.dashboard-menu-collapsed) .app-header {
      width: 100% !important;
      max-width: 100% !important;
      margin-left: 0 !important;
    }

    body.executive-subpage-mode:not(.locked) .shell,
    body.executive-subpage-mode:not(.locked).dashboard-menu-collapsed .shell,
    body.executive-subpage-mode:not(.locked):not(.dashboard-menu-collapsed) .shell {
      padding-left: 18px !important;
      padding-right: 18px !important;
    }

    body.dashboard-mode:not(.locked) .subpage-dashboard-sidebar {
      display: none !important;
    }

    body.dashboard-mode:not(.locked) .dashboard-sidebar,
    body.dashboard-mode:not(.locked):not(.dashboard-menu-collapsed) .dashboard-sidebar,
    body.dashboard-mode:not(.locked).dashboard-menu-collapsed .dashboard-sidebar,
    body.executive-subpage-mode:not(.locked) .subpage-dashboard-sidebar,
    body.executive-subpage-mode:not(.locked):not(.dashboard-menu-collapsed) .subpage-dashboard-sidebar,
    body.executive-subpage-mode:not(.locked).dashboard-menu-collapsed .subpage-dashboard-sidebar {
      position: fixed !important;
      inset: 0 auto 0 0 !important;
      z-index: 5000 !important;
      display: flex !important;
      flex-direction: column !important;
      width: 178px !important;
      min-width: 178px !important;
      max-width: 178px !important;
      height: 100dvh !important;
      min-height: 100dvh !important;
      padding: 18px 12px !important;
      border: 0 !important;
      border-radius: 0 18px 18px 0 !important;
      background: linear-gradient(180deg, #007f68 0%, #005847 100%) !important;
      box-shadow: 18px 0 44px rgba(10, 38, 45, 0.22) !important;
      overflow-x: hidden !important;
      overflow-y: auto !important;
      transition: transform 0.22s ease, opacity 0.2s ease !important;
    }

    body.dashboard-menu-collapsed:not(.locked) .dashboard-sidebar,
    body.dashboard-menu-collapsed:not(.locked) .subpage-dashboard-sidebar {
      transform: translateX(calc(-100% - 18px)) !important;
      opacity: 0 !important;
      pointer-events: none !important;
    }

    body.dashboard-menu-open:not(.locked) .dashboard-sidebar,
    body.dashboard-menu-open:not(.locked) .subpage-dashboard-sidebar {
      transform: translateX(0) !important;
      opacity: 1 !important;
      pointer-events: auto !important;
    }

    body.dashboard-mode:not(.locked) .dashboard-side-brand,
    body.executive-subpage-mode:not(.locked) .subpage-dashboard-sidebar .dashboard-side-brand {
      position: static !important;
      display: flex !important;
      align-items: center !important;
      justify-content: center !important;
      width: 100% !important;
      height: 62px !important;
      margin: 0 0 18px !important;
      padding: 0 !important;
      border: 0 !important;
      background: transparent !important;
      box-shadow: none !important;
    }

    body.dashboard-mode:not(.locked) .dashboard-side-brand .go-logo-img,
    body.executive-subpage-mode:not(.locked) .subpage-dashboard-sidebar .dashboard-side-brand .go-logo-img {
      display: block !important;
      width: 96px !important;
      height: auto !important;
      object-fit: contain !important;
    }

    body.dashboard-mode:not(.locked) .dashboard-side-brand .icon,
    body.executive-subpage-mode:not(.locked) .subpage-dashboard-sidebar .dashboard-side-brand .icon {
      display: none !important;
    }

    body.dashboard-mode:not(.locked) .dashboard-side-nav,
    body.executive-subpage-mode:not(.locked) .subpage-dashboard-sidebar .dashboard-side-nav {
      display: flex !important;
      flex-direction: column !important;
      gap: 7px !important;
      width: 100% !important;
      overflow: visible !important;
    }

    body.dashboard-mode:not(.locked) .dash-nav-button,
    body.executive-subpage-mode:not(.locked) .subpage-dashboard-sidebar .dash-nav-button {
      display: grid !important;
      grid-template-columns: 22px minmax(0, 1fr) !important;
      align-items: center !important;
      gap: 9px !important;
      width: 100% !important;
      min-width: 0 !important;
      height: 43px !important;
      min-height: 43px !important;
      padding: 8px 9px !important;
      border-radius: 9px !important;
      color: rgba(255, 255, 255, 0.92) !important;
      background: transparent !important;
      box-shadow: none !important;
      text-align: left !important;
    }

    body.dashboard-mode:not(.locked) .dash-nav-button.active,
    body.executive-subpage-mode:not(.locked) .subpage-dashboard-sidebar .dash-nav-button.active {
      color: #fff !important;
      background: rgba(255, 255, 255, 0.18) !important;
      box-shadow: inset 3px 0 0 rgba(255, 255, 255, 0.86) !important;
    }

    body.dashboard-mode:not(.locked) .dash-nav-button .icon,
    body.executive-subpage-mode:not(.locked) .subpage-dashboard-sidebar .dash-nav-button .icon {
      width: 18px !important;
      height: 18px !important;
    }

    body.dashboard-mode:not(.locked) .dash-nav-button span,
    body.executive-subpage-mode:not(.locked) .subpage-dashboard-sidebar .dash-nav-button span {
      display: block !important;
      max-width: 100% !important;
      color: inherit !important;
      font-size: 11px !important;
      font-weight: 850 !important;
      line-height: 1.12 !important;
      white-space: normal !important;
      overflow: hidden !important;
      text-overflow: ellipsis !important;
    }

    @media (max-width: 560px) {
      .menu-icon-button {
        width: 38px !important;
        height: 38px !important;
        min-width: 38px !important;
        border-radius: 10px !important;
      }

      body.executive-subpage-mode:not(.locked) .shell,
      body.dashboard-mode:not(.locked) .dashboard-main {
        padding-left: 0 !important;
        padding-right: 0 !important;
      }

      body.dashboard-mode:not(.locked) .dashboard-sidebar,
      body.executive-subpage-mode:not(.locked) .subpage-dashboard-sidebar {
        width: min(176px, 78vw) !important;
        min-width: min(176px, 78vw) !important;
        max-width: min(176px, 78vw) !important;
      }

      body.dashboard-mode:not(.locked) .dashboard-topline {
        grid-template-columns: auto minmax(0, 1fr) !important;
      }

      body.dashboard-mode:not(.locked) .dashboard-toolbar-actions {
        grid-column: 1 / -1 !important;
      }
    }

    /* v48: no desktop o menu fica lateral visivel; no mobile ele abre sob demanda. */
    @media (min-width: 821px) {
      body:not(.locked) .menu-icon-button,
      body:not(.locked) .global-menu-toggle,
      body.dashboard-mode:not(.locked) .dashboard-menu-open-button {
        display: none !important;
        pointer-events: none !important;
      }

      body.dashboard-mode:not(.locked) > .app-header,
      body.dashboard-mode:not(.locked) > .subpage-dashboard-sidebar {
        display: none !important;
      }

      body.dashboard-mode:not(.locked) .executive-dashboard-page,
      body.dashboard-mode:not(.locked):not(.dashboard-menu-collapsed) .executive-dashboard-page,
      body.dashboard-mode:not(.locked).dashboard-menu-collapsed .executive-dashboard-page {
        display: grid !important;
        grid-template-columns: 178px minmax(0, 1fr) !important;
        align-items: start !important;
        width: 100% !important;
        max-width: 100% !important;
        min-height: 100vh !important;
        margin: 0 !important;
        padding: 0 !important;
        overflow: hidden auto !important;
      }

      body.dashboard-mode:not(.locked) .dashboard-sidebar,
      body.dashboard-mode:not(.locked):not(.dashboard-menu-collapsed) .dashboard-sidebar,
      body.dashboard-mode:not(.locked).dashboard-menu-collapsed .dashboard-sidebar {
        position: sticky !important;
        inset: auto !important;
        top: 0 !important;
        z-index: 30 !important;
        grid-column: 1 !important;
        grid-row: 1 !important;
        display: flex !important;
        transform: none !important;
        opacity: 1 !important;
        pointer-events: auto !important;
        width: 178px !important;
        min-width: 178px !important;
        max-width: 178px !important;
        height: 100vh !important;
        min-height: 100vh !important;
        padding: 22px 14px !important;
        border-radius: 0 !important;
        box-shadow: none !important;
      }

      body.dashboard-mode:not(.locked) .dashboard-main,
      body.dashboard-mode:not(.locked):not(.dashboard-menu-collapsed) .dashboard-main,
      body.dashboard-mode:not(.locked).dashboard-menu-collapsed .dashboard-main {
        grid-column: 2 !important;
        grid-row: 1 !important;
        width: 100% !important;
        max-width: 100% !important;
        min-width: 0 !important;
        margin: 0 !important;
        padding: 24px 22px 28px !important;
      }

      body.dashboard-mode:not(.locked) .dashboard-topline {
        grid-template-columns: minmax(0, 1fr) auto !important;
      }

      body.dashboard-mode:not(.locked) .dashboard-topline,
      body.dashboard-mode:not(.locked) .dashboard-controls,
      body.dashboard-mode:not(.locked) .dashboard-kpis,
      body.dashboard-mode:not(.locked) .executive-layout-grid {
        width: 100% !important;
        max-width: 100% !important;
        margin-left: 0 !important;
        margin-right: 0 !important;
      }

      body.executive-subpage-mode:not(.locked) .subpage-dashboard-sidebar,
      body.executive-subpage-mode:not(.locked):not(.dashboard-menu-collapsed) .subpage-dashboard-sidebar,
      body.executive-subpage-mode:not(.locked).dashboard-menu-collapsed .subpage-dashboard-sidebar {
        position: fixed !important;
        inset: 0 auto 0 0 !important;
        z-index: 30 !important;
        display: flex !important;
        transform: none !important;
        opacity: 1 !important;
        pointer-events: auto !important;
        width: 178px !important;
        min-width: 178px !important;
        max-width: 178px !important;
        height: 100vh !important;
        min-height: 100vh !important;
        padding: 22px 14px !important;
        border-radius: 0 !important;
        box-shadow: none !important;
      }

      body.executive-subpage-mode:not(.locked) .app-header,
      body.executive-subpage-mode:not(.locked):not(.dashboard-menu-collapsed) .app-header,
      body.executive-subpage-mode:not(.locked).dashboard-menu-collapsed .app-header {
        width: calc(100vw - 178px) !important;
        max-width: calc(100vw - 178px) !important;
        margin-left: 178px !important;
        padding: 18px 22px !important;
      }

      body.executive-subpage-mode:not(.locked) .shell,
      body.executive-subpage-mode:not(.locked):not(.dashboard-menu-collapsed) .shell,
      body.executive-subpage-mode:not(.locked).dashboard-menu-collapsed .shell {
        width: calc(100vw - 178px) !important;
        max-width: calc(100vw - 178px) !important;
        min-width: 0 !important;
        margin: 0 0 0 178px !important;
        padding: 0 22px 28px !important;
        overflow-x: hidden !important;
      }

      body.executive-subpage-mode:not(.locked) .app-view[data-view].active,
      body.executive-subpage-mode:not(.locked):not(.dashboard-menu-collapsed) .app-view[data-view].active,
      body.executive-subpage-mode:not(.locked).dashboard-menu-collapsed .app-view[data-view].active {
        width: 100% !important;
        max-width: 100% !important;
        margin: 0 !important;
        padding-left: 0 !important;
        padding-right: 0 !important;
      }
    }

    /* v48: alinhamento uniforme das paginas internas, link discreto e Curva S com zoom interno. */
    .quick-link-hidden-url {
      display: inline-flex;
      align-items: center;
      min-height: 28px;
      color: #7a8a97;
      font-size: 11px;
      font-weight: 800;
      letter-spacing: 0.03em;
      text-transform: uppercase;
    }

    @media (min-width: 821px) {
      body.executive-subpage-mode:not(.locked) {
        overflow-x: hidden !important;
      }

      body.executive-subpage-mode:not(.locked) .page-hero,
      body.executive-subpage-mode:not(.locked) .band,
      body.executive-subpage-mode:not(.locked) .management-shell,
      body.executive-subpage-mode:not(.locked) .planning-shell,
      body.executive-subpage-mode:not(.locked) .section-card,
      body.executive-subpage-mode:not(.locked) .project-library-layout,
      body.executive-subpage-mode:not(.locked) .security-section-card,
      body.executive-subpage-mode:not(.locked) .quick-access-shell {
        width: 100% !important;
        max-width: 100% !important;
        margin-left: 0 !important;
        margin-right: 0 !important;
      }

      body.dashboard-mode:not(.locked) .dash-nav-button,
      body.executive-subpage-mode:not(.locked) .subpage-dashboard-sidebar .dash-nav-button {
        border-radius: 10px !important;
      }

      body.dashboard-mode:not(.locked) .dash-nav-button.active,
      body.executive-subpage-mode:not(.locked) .subpage-dashboard-sidebar .dash-nav-button.active {
        color: #fff !important;
        background: linear-gradient(135deg, rgba(255,255,255,0.22), rgba(255,255,255,0.12)) !important;
        box-shadow: inset 0 0 0 1px rgba(255,255,255,0.16), 0 14px 26px rgba(1, 43, 37, 0.18) !important;
      }

      body.dashboard-mode:not(.locked) .dash-nav-button.active::before,
      body.executive-subpage-mode:not(.locked) .subpage-dashboard-sidebar .dash-nav-button.active::before {
        content: "" !important;
        position: absolute !important;
        left: -10px !important;
        top: 9px !important;
        bottom: 9px !important;
        width: 3px !important;
        border-radius: 0 999px 999px 0 !important;
        background: #7ef0d0 !important;
        box-shadow: 0 0 16px rgba(126, 240, 208, 0.45) !important;
      }

      body.dashboard-mode:not(.locked) .home-evolution-card.dashboard-home-card {
        padding: 15px 16px 16px !important;
      }

      body.dashboard-mode:not(.locked) .home-evolution-card .dashboard-card-head {
        display: grid !important;
        grid-template-columns: minmax(0, 1fr) !important;
        row-gap: 6px !important;
        margin-bottom: 0 !important;
      }

      body.dashboard-mode:not(.locked) .home-evolution-card .dashboard-card-head h3 {
        width: 100% !important;
        overflow: visible !important;
        text-overflow: clip !important;
        white-space: nowrap !important;
      }

      body.dashboard-mode:not(.locked) .home-evolution-card .home-curve-controls {
        justify-content: flex-end !important;
        gap: 6px !important;
        width: 100% !important;
      }

      body.dashboard-mode:not(.locked) .home-evolution-card .dashboard-line-chart {
        width: 100% !important;
        max-width: 100% !important;
        min-height: 404px !important;
        height: 404px !important;
        padding: 0 0 8px !important;
        overflow-x: auto !important;
        overflow-y: hidden !important;
        scrollbar-width: thin;
      }

      body.dashboard-mode:not(.locked) .home-evolution-card .dashboard-line-chart .curve-s-visual {
        width: 100% !important;
        max-width: none !important;
        min-height: 376px !important;
        height: 376px !important;
        padding: 0 2px 12px !important;
        grid-template-rows: auto minmax(0, 1fr) !important;
        row-gap: 4px !important;
        align-content: start !important;
        overflow: visible !important;
      }

      body.dashboard-mode:not(.locked) .home-evolution-card .dashboard-line-chart .curve-s-legend-rich {
        position: sticky !important;
        left: 0 !important;
        z-index: 2 !important;
        width: 100% !important;
        max-width: 100% !important;
        margin: 0 auto 0 !important;
        padding-top: 0 !important;
      }

      body.dashboard-mode:not(.locked) .home-evolution-card .dashboard-line-chart .curve-s-visual svg {
        width: 100% !important;
        min-width: 100% !important;
        max-width: none !important;
        height: 330px !important;
        max-height: none !important;
        overflow: visible !important;
        align-self: start !important;
      }
    }

    @media (max-width: 820px) {
      body:not(.locked) .global-menu-toggle {
        position: fixed !important;
        top: 14px !important;
        left: 10px !important;
        z-index: 5200 !important;
        display: inline-grid !important;
        width: 38px !important;
        height: 38px !important;
        min-width: 38px !important;
        border-radius: 0 12px 12px 0 !important;
        border-left: 0 !important;
        opacity: 0.72 !important;
        background: rgba(255, 255, 255, 0.96) !important;
      }

      body:not(.locked) .global-menu-toggle:hover,
      body.dashboard-menu-open:not(.locked) .global-menu-toggle {
        opacity: 1 !important;
      }

      body:not(.locked) .app-header .menu-icon-button,
      body.dashboard-mode:not(.locked) .dashboard-menu-open-button {
        display: none !important;
      }

      body.dashboard-mode:not(.locked) .dashboard-main {
        padding-top: 58px !important;
      }

      body.executive-subpage-mode:not(.locked) .app-header {
        padding-left: 58px !important;
      }
    }

    @media print {
      body {
        background: #fff;
      }

      .app-header,
      .app-tabs,
      .table-toolbar,
      .side-stack,
      .trash-button,
      .photo-toolbar,
      .photo-actions,
      .photo-meta select {
        display: none !important;
      }

      .shell {
        max-width: none;
        padding: 0;
      }

      .layout {
        display: block;
      }

      .band,
      .metric,
      .photo-card {
        box-shadow: none;
        break-inside: avoid;
      }

      .status-strip {
        grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
      }

      table {
        min-width: 0;
        font-size: 10px;
      }

      input,
      select,
      textarea {
        border: 0;
        padding: 0;
        min-height: auto;
        background: transparent;
      }
    }
