    :root {
      --brand-navy: #163f73;
      --brand-navy-dark: #0d2c50;
      --brand-yellow: #f5a300;
      --brand-yellow-hover: #ffb31a;
      --brand-ink: #142033;
      --brand-muted: #667287;
      --brand-surface: #ffffff;
      --brand-background: #f3f6fa;
      --brand-border: #dfe6ef;
    }

    * { box-sizing: border-box; }

    html { min-width: 0; }

    body {
      min-width: 0;
      min-height: 100vh;
      margin: 0;
      overflow-x: hidden;
      font-family: Arial, Helvetica, sans-serif;
      background:
        linear-gradient(180deg, rgba(245, 163, 0, 0.045), transparent 190px),
        var(--brand-background);
      color: var(--brand-ink);
    }

    .site-header {
      position: sticky;
      top: 0;
      z-index: 1000;
      min-height: 72px;
      padding: 0 24px;
      border-bottom: 4px solid var(--brand-yellow);
      background: var(--brand-navy);
      color: #ffffff;
      box-shadow: 0 6px 24px rgba(13, 44, 80, 0.18);
    }

    .header-shell {
      width: min(1540px, 100%);
      min-height: 72px;
      margin: 0 auto;
      display: flex;
      align-items: center;
      gap: 24px;
    }

    .brand {
      display: inline-flex;
      flex: 0 0 auto;
      align-items: center;
      gap: 8px;
      color: #ffffff;
      text-decoration: none;
    }

    .brand img {
      display: block;
      width: 122px;
      height: 56px;
      object-fit: contain;
    }

    .brand span {
      display: inline-flex;
      align-items: center;
      justify-content: center;
      min-width: 38px;
      height: 28px;
      padding: 0 8px;
      border-radius: 999px;
      background: var(--brand-yellow);
      color: var(--brand-navy-dark);
      font-size: 13px;
      font-weight: 900;
      letter-spacing: 0.08em;
    }

    .desktop-navigation {
      min-width: 0;
      display: flex;
      flex: 1 1 auto;
      align-items: center;
      gap: 5px;
    }

    .desktop-navigation > a,
    .nav-group > summary {
      min-height: 42px;
      display: inline-flex;
      align-items: center;
      padding: 8px 11px;
      border-radius: 9px;
      color: #ffffff;
      text-decoration: none;
      font-size: 14px;
      font-weight: 700;
      white-space: nowrap;
      cursor: pointer;
      list-style: none;
    }

    .nav-group > summary::-webkit-details-marker,
    .mobile-navigation > summary::-webkit-details-marker,
    .user-menu > summary::-webkit-details-marker {
      display: none;
    }

    .desktop-navigation > a:hover,
    .nav-group > summary:hover,
    .nav-group[open] > summary {
      background: rgba(245, 163, 0, 0.18);
      color: #ffd16e;
    }

    .nav-group {
      position: relative;
    }

    .nav-group > summary::after {
      content: '▾';
      margin-left: 7px;
      color: var(--brand-yellow);
      font-size: 11px;
    }

    .nav-dropdown {
      position: absolute;
      top: calc(100% + 12px);
      left: 0;
      z-index: 1100;
      min-width: 230px;
      padding: 8px;
      border: 1px solid var(--brand-border);
      border-top: 4px solid var(--brand-yellow);
      border-radius: 14px;
      background: #ffffff;
      box-shadow: 0 18px 45px rgba(13, 44, 80, 0.22);
    }

    .nav-dropdown a {
      display: block;
      padding: 11px 12px;
      border-radius: 9px;
      color: var(--brand-navy);
      text-decoration: none;
      font-weight: 700;
    }

    .nav-dropdown a:hover {
      background: #fff6df;
      color: var(--brand-navy-dark);
    }

    .header-actions {
      margin-left: auto;
      display: flex;
      flex: 0 0 auto;
      align-items: center;
      gap: 10px;
    }

    .mobile-navigation { display: none; }

    .user-menu {
      position: relative;
    }

    .user-menu > summary {
      width: 44px;
      height: 44px;
      display: inline-flex;
      align-items: center;
      justify-content: center;
      border: 2px solid rgba(255, 255, 255, 0.52);
      border-radius: 50%;
      background: var(--brand-yellow);
      color: var(--brand-navy-dark);
      font-size: 15px;
      font-weight: 900;
      letter-spacing: 0.04em;
      cursor: pointer;
      list-style: none;
    }

    .user-menu > summary:hover,
    .user-menu[open] > summary {
      background: var(--brand-yellow-hover);
      transform: translateY(-1px);
    }

    .user-menu-panel {
      position: absolute;
      top: calc(100% + 12px);
      right: 0;
      z-index: 1200;
      width: min(300px, calc(100vw - 24px));
      padding: 10px;
      border: 1px solid var(--brand-border);
      border-top: 4px solid var(--brand-yellow);
      border-radius: 15px;
      background: #ffffff;
      color: var(--brand-ink);
      box-shadow: 0 18px 45px rgba(13, 44, 80, 0.24);
    }

    .user-menu-identity {
      padding: 11px 12px 13px;
      border-bottom: 1px solid var(--brand-border);
      margin-bottom: 6px;
    }

    .user-menu-identity strong,
    .user-menu-identity span {
      display: block;
      overflow-wrap: anywhere;
    }

    .user-menu-identity span {
      margin-top: 5px;
      color: var(--brand-muted);
      font-size: 13px;
    }

    .user-menu-panel > a,
    .user-menu-panel form button {
      width: 100%;
      min-height: 42px;
      display: flex;
      align-items: center;
      justify-content: flex-start;
      padding: 10px 12px;
      border-radius: 9px;
      background: transparent;
      color: var(--brand-navy);
      text-decoration: none;
      font-size: 14px;
      font-weight: 700;
    }

    .user-menu-panel > a:hover,
    .user-menu-panel form button:hover {
      background: #fff6df;
      color: var(--brand-navy-dark);
    }

    .user-menu-panel form { margin: 0; }
    .user-menu-panel form input { display: none; }

    main {
      width: min(680px, calc(100% - 32px));
      margin: 34px auto;
    }

    .card,
    .notice {
      border: 1px solid var(--brand-border);
      border-radius: 18px;
      background: var(--brand-surface);
      box-shadow: 0 14px 40px rgba(20, 32, 51, 0.08);
    }

    .card {
      padding: 30px;
      border-top: 4px solid rgba(245, 163, 0, 0.88);
    }

    h1 {
      margin: 0 0 12px;
      font-size: 29px;
    }

    h2 { margin-top: 0; }

    h1::after,
    .section-card > h2::after {
      content: '';
      display: block;
      width: 54px;
      height: 4px;
      margin-top: 10px;
      border-radius: 999px;
      background: var(--brand-yellow);
    }

    p {
      line-height: 1.6;
      color: var(--brand-muted);
    }

    label {
      display: block;
      margin: 18px 0 7px;
      font-weight: 700;
    }

    input,
    select,
    textarea {
      width: 100%;
      min-height: 48px;
      padding: 11px 13px;
      border: 1px solid #bdc7d5;
      border-radius: 10px;
      font: inherit;
      color: inherit;
      background: #ffffff;
    }

    textarea {
      min-height: 110px;
      resize: vertical;
    }

    input:focus,
    select:focus,
    textarea:focus {
      outline: 3px solid rgba(245, 163, 0, 0.22);
      border-color: var(--brand-yellow);
    }

    button,
    .button {
      display: inline-flex;
      align-items: center;
      justify-content: center;
      min-height: 46px;
      padding: 10px 18px;
      border: 0;
      border-radius: 10px;
      background: var(--brand-yellow);
      color: var(--brand-navy-dark);
      font: inherit;
      font-weight: 800;
      text-decoration: none;
      cursor: pointer;
    }

    button:hover,
    .button:hover {
      background: var(--brand-yellow-hover);
    }

    .button.secondary,
    button.secondary {
      border: 1px solid #b9c4d3;
      background: #ffffff;
      color: var(--brand-navy);
    }

    .button.secondary:hover,
    button.secondary:hover {
      border-color: var(--brand-yellow);
      background: #fff8e8;
    }

    .form-actions {
      display: flex;
      flex-wrap: wrap;
      gap: 10px;
      margin-top: 24px;
    }

    .message,
    .notice {
      margin: 18px 0;
      padding: 14px 16px;
      line-height: 1.5;
    }

    .error {
      border: 1px solid #efb1b1;
      background: #fff1f1;
      color: #8d2424;
    }

    .warning {
      border-color: #f0cf83;
      background: #fff8e6;
      color: #705314;
    }

    .success {
      border-color: #9fd5b2;
      background: #edf9f1;
      color: #17653a;
    }

    .qr {
      display: block;
      width: min(260px, 100%);
      margin: 22px auto;
      border: 12px solid #ffffff;
      border-radius: 12px;
      box-shadow: 0 6px 20px rgba(20, 32, 51, 0.10);
    }

    .secret {
      padding: 13px;
      border-radius: 10px;
      background: #edf2f8;
      font-family: Consolas, Monaco, monospace;
      text-align: center;
      overflow-wrap: anywhere;
      letter-spacing: 0.08em;
    }

    .codes {
      display: grid;
      grid-template-columns: repeat(2, minmax(0, 1fr));
      gap: 10px;
      margin: 22px 0;
      padding: 0;
      list-style: none;
    }

    .codes li {
      padding: 12px;
      border: 1px solid #dce3ec;
      border-radius: 9px;
      background: #f8fafc;
      font-family: Consolas, Monaco, monospace;
      text-align: center;
      letter-spacing: 0.08em;
    }

    table {
      width: 100%;
      border-collapse: collapse;
      margin-top: 18px;
    }

    th,
    td {
      padding: 12px 10px;
      border-bottom: 1px solid #e4e9f0;
      text-align: left;
      vertical-align: top;
    }

    th {
      font-size: 13px;
      color: #566277;
      text-transform: uppercase;
      letter-spacing: 0.04em;
    }

    .muted {
      color: #748095;
      font-size: 13px;
    }

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

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

    .checkboxes {
      display: flex;
      flex-wrap: wrap;
      gap: 10px;
      margin-top: 8px;
    }

    .checkbox-item {
      display: inline-flex;
      align-items: center;
      gap: 7px;
      margin: 0;
      padding: 9px 11px;
      border: 1px solid #d5dde8;
      border-radius: 9px;
      background: #f8fafc;
      font-weight: 400;
    }

    .checkbox-item input {
      width: auto;
      min-height: auto;
      margin: 0;
      accent-color: var(--brand-yellow);
    }

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

    .client-information-divider {
      height: 1px;
      margin: 30px 0 24px;
      background: var(--brand-border);
    }

    .client-related-header h2 {
      margin-bottom: 8px;
    }

    .client-related-header p {
      margin: 0;
      color: var(--brand-muted);
    }

    .client-related-controls {
      display: flex;
      flex-wrap: wrap;
      gap: 12px;
      margin-top: 18px;
    }

    .client-related-toggle {
      display: inline-flex;
      align-items: center;
      justify-content: center;
      gap: 9px;
      min-width: 190px;
      border: 1px solid #c9d4e2;
      background: #ffffff;
      color: var(--brand-navy);
    }

    .client-related-toggle:hover,
    .client-related-toggle.is-active {
      border-color: var(--brand-yellow);
      background: var(--brand-yellow);
      color: var(--brand-navy);
      transform: translateY(-1px);
    }

    .client-related-toggle .badge {
      min-width: 27px;
      padding: 3px 8px;
      background: rgba(20, 59, 107, 0.10);
      color: var(--brand-navy);
      text-align: center;
    }

    .client-related-content {
      margin-top: 24px;
      padding-top: 22px;
      border-top: 1px solid var(--brand-border);
      animation: clientPanelAppear 180ms ease-out;
    }

    .client-related-content[hidden] {
      display: none;
    }

    .client-related-content .toolbar {
      margin-bottom: 12px;
    }

    @keyframes clientPanelAppear {
      from {
        opacity: 0;
        transform: translateY(-6px);
      }
      to {
        opacity: 1;
        transform: translateY(0);
      }
    }

    .filter-grid {
      display: grid;
      grid-template-columns: 2fr repeat(3, 1fr) auto;
      gap: 10px;
      align-items: end;
    }

    .filter-grid label { margin-top: 0; }

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

    .summary-item,
    .summary-card {
      padding: 15px;
      border: 1px solid #e0e6ee;
      border-left: 4px solid rgba(245, 163, 0, 0.72);
      border-radius: 12px;
      background: #f8fafc;
    }

    .summary-item strong,
    .summary-card strong {
      display: block;
      margin-top: 6px;
      font-size: 24px;
    }

    .module-card,
    .summary-grid > a.card {
      display: block;
      padding: 30px;
      border: 1px solid var(--brand-border);
      border-top: 4px solid var(--brand-yellow);
      border-radius: 18px;
      background: #ffffff;
      box-shadow: 0 14px 40px rgba(20, 32, 51, 0.08);
      color: inherit;
      text-decoration: none;
      cursor: pointer;
      transition:
        transform 180ms ease,
        box-shadow 180ms ease,
        border-color 180ms ease;
    }

    .module-card:hover,
    .summary-grid > a.card:hover {
      transform: translateY(-4px);
      border-color: rgba(245, 163, 0, 0.68);
      box-shadow: 0 20px 48px rgba(20, 32, 51, 0.15);
    }

    .module-card:focus-visible,
    .summary-grid > a.card:focus-visible {
      outline: 3px solid rgba(245, 163, 0, 0.30);
      outline-offset: 3px;
      transform: translateY(-3px);
    }

    .module-card strong,
    .module-card h2,
    .summary-grid > a.card h2 {
      display: block;
      margin: 0 0 12px;
      color: var(--brand-navy);
      font-size: 24px;
      line-height: 1.2;
    }

    .module-card span,
    .module-card p,
    .summary-grid > a.card p {
      margin: 0;
      color: var(--brand-muted);
      line-height: 1.6;
    }

    .status-prospect { background: #eef2ff; color: #3a4d91; }
    .status-active { background: #e8f4eb; color: #17653a; }
    .status-conditioned { background: #fff4d6; color: #745510; }
    .status-blocked { background: #fdecec; color: #8d2424; }
    .status-inactive { background: #edf0f4; color: #596477; }

    .pagination {
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 12px;
      margin-top: 20px;
    }

    .empty-state {
      padding: 34px;
      border: 1px dashed #c8d1dd;
      border-radius: 14px;
      text-align: center;
      color: #687386;
    }

    .section-card { margin-top: 20px; }

    .danger { background: #a52b2b; color: #ffffff; }
    .danger:hover { background: #842020; }

    .badge {
      display: inline-block;
      padding: 5px 9px;
      border-radius: 999px;
      background: #e8f4eb;
      color: #17653a;
      font-size: 12px;
      font-weight: 700;
    }

    .number {
      text-align: right;
      white-space: nowrap;
    }

    .detail-grid {
      display: grid;
      grid-template-columns: repeat(2, minmax(0, 1fr));
      gap: 14px;
      margin-top: 18px;
    }

    .detail-grid > div,
    .detail-item {
      padding: 15px;
      border: 1px solid #e0e6ee;
      border-left: 4px solid rgba(245, 163, 0, 0.58);
      border-radius: 12px;
      background: #f8fafc;
    }

    .detail-grid > div strong,
    .detail-item strong {
      display: block;
      margin-top: 6px;
      font-size: 16px;
      overflow-wrap: anywhere;
    }

    .danger-zone {
      margin-top: 24px;
      padding: 20px;
      border: 1px solid #efb1b1;
      border-radius: 14px;
      background: #fff7f7;
    }

    .danger-zone h2 { color: #8d2424; }
    .inline-form { display: inline; }

    .badge.status-prospect { background: #eef2ff; color: #3a4d91; }
    .badge.status-active { background: #e8f4eb; color: #17653a; }
    .badge.status-conditioned { background: #fff4d6; color: #745510; }
    .badge.status-blocked { background: #fdecec; color: #8d2424; }
    .badge.status-inactive { background: #edf0f4; color: #596477; }

    .login-brand {
      display: flex;
      align-items: center;
      justify-content: center;
      gap: 12px;
      margin-bottom: 22px;
      padding: 16px;
      border-radius: 14px;
      background: var(--brand-navy);
    }

    .login-brand img {
      width: min(210px, 70%);
      height: 86px;
      object-fit: contain;
    }

    .login-brand span {
      padding: 6px 10px;
      border-radius: 999px;
      background: var(--brand-yellow);
      color: var(--brand-navy-dark);
      font-size: 14px;
      font-weight: 900;
    }

    @media (max-width: 1180px) {
      .desktop-navigation { display: none; }
      .mobile-navigation {
        position: static;
        display: block;
      }

      .mobile-navigation > summary {
        width: 44px;
        height: 44px;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        border: 1px solid rgba(255, 255, 255, 0.48);
        border-radius: 11px;
        background: rgba(255, 255, 255, 0.08);
        cursor: pointer;
        list-style: none;
      }

      .mobile-navigation[open] > summary,
      .mobile-navigation > summary:hover {
        border-color: var(--brand-yellow);
        background: rgba(245, 163, 0, 0.16);
      }

      .hamburger-lines {
        width: 21px;
        display: grid;
        gap: 4px;
      }

      .hamburger-lines i {
        display: block;
        height: 2px;
        border-radius: 999px;
        background: #ffffff;
      }

      .mobile-nav-panel {
        position: absolute;
        top: calc(100% + 4px);
        left: 0;
        right: 0;
        z-index: 1150;
        max-height: calc(100vh - 82px);
        overflow-y: auto;
        padding: 18px max(18px, env(safe-area-inset-right)) 24px max(18px, env(safe-area-inset-left));
        border-bottom: 4px solid var(--brand-yellow);
        background: #ffffff;
        color: var(--brand-ink);
        box-shadow: 0 22px 42px rgba(13, 44, 80, 0.24);
      }

      .mobile-home {
        display: block;
        margin-bottom: 12px;
        padding: 13px 14px;
        border-radius: 10px;
        background: var(--brand-yellow);
        color: var(--brand-navy-dark);
        text-decoration: none;
        font-weight: 900;
      }

      .mobile-nav-section {
        padding: 14px 0;
        border-top: 1px solid var(--brand-border);
      }

      .mobile-nav-section > strong {
        display: block;
        margin-bottom: 7px;
        color: var(--brand-yellow);
        font-size: 12px;
        letter-spacing: 0.09em;
        text-transform: uppercase;
      }

      .mobile-nav-section a {
        display: block;
        padding: 11px 12px;
        border-radius: 9px;
        color: var(--brand-navy);
        text-decoration: none;
        font-weight: 700;
      }

      .mobile-nav-section a:hover {
        background: #fff6df;
      }
    }

    @media (max-width: 700px) {
      .site-header {
        min-height: 66px;
        padding: 0 12px;
      }

      .header-shell {
        min-height: 66px;
        gap: 8px;
      }

      .brand img {
        width: 112px;
        height: 50px;
      }

      .brand span {
        min-width: 34px;
        height: 25px;
        font-size: 11px;
      }

      .header-actions { gap: 7px; }

      .mobile-navigation > summary,
      .user-menu > summary {
        width: 42px;
        height: 42px;
      }

      main {
        width: min(100% - 20px, 680px);
        margin: 20px auto 30px;
      }

      .card { padding: 20px; }
      h1 { font-size: clamp(25px, 8vw, 34px); }
      h2 { font-size: 23px; }

      .field-grid,
      .filter-grid,
      .summary-grid {
        grid-template-columns: 1fr;
      }

      .codes,
      .detail-grid { grid-template-columns: 1fr; }

      table {
        display: block;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
      }

      .client-related-controls {
        display: grid;
        grid-template-columns: 1fr;
      }

      .client-related-toggle {
        width: 100%;
        min-width: 0;
      }

      .client-related-content {
        overflow-x: auto;
      }

      .module-card,
      .summary-grid > a.card {
        padding: 22px;
      }

      .module-card strong,
      .module-card h2,
      .summary-grid > a.card h2 {
        font-size: 21px;
      }

      .user-menu-panel { right: -4px; }
    }

    @media (max-width: 390px) {
      .brand img { width: 96px; }
      .brand span { display: none; }
      .site-header { padding-inline: 9px; }
    }

    /* VOLTAMPER ERP v1.3.0 — sistema visual común */
    main.layout-wide {
      width: min(1440px, calc(100% - 32px));
    }

    main.layout-narrow {
      width: min(680px, calc(100% - 32px));
    }

    .section-card {
      margin-top: 22px;
      padding: 28px;
      border: 1px solid var(--brand-border);
      border-top: 4px solid var(--brand-yellow);
      border-radius: 18px;
      background: var(--brand-surface);
      box-shadow: 0 14px 40px rgba(20, 32, 51, 0.07);
    }

    .section-card.card {
      margin-top: 22px;
    }

    .page-heading,
    .page-header,
    .toolbar {
      display: flex;
      flex-wrap: wrap;
      align-items: flex-start;
      justify-content: space-between;
      gap: 18px;
      margin-bottom: 20px;
    }

    .page-heading > div:first-child,
    .page-header > div:first-child,
    .toolbar > div:first-child {
      min-width: 0;
      flex: 1 1 360px;
    }

    .page-heading h1,
    .page-heading h2,
    .page-header h1,
    .page-header h2,
    .toolbar h1,
    .toolbar h2 {
      margin-bottom: 8px;
    }

    .page-heading p,
    .page-header p,
    .toolbar p {
      margin: 0;
    }

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

    .form-grid,
    .field-grid {
      display: grid;
      grid-template-columns: repeat(2, minmax(0, 1fr));
      gap: 18px 22px;
    }

    .form-grid > label,
    .field-grid > label,
    .form-grid > div > label,
    .field-grid > div > label {
      margin-top: 0;
    }

    .full,
    .field-full {
      grid-column: 1 / -1;
    }

    .form-page {
      max-width: 1220px;
      margin-inline: auto;
    }

    .form-section {
      margin-top: 26px;
      padding-top: 22px;
      border-top: 1px solid var(--brand-border);
    }

    .form-section h2 {
      margin-bottom: 16px;
    }

    .stat-grid {
      display: grid;
      grid-template-columns: repeat(4, minmax(0, 1fr));
      gap: 14px;
      margin-top: 20px;
    }

    .stat-card {
      min-width: 0;
      padding: 16px;
      border: 1px solid var(--brand-border);
      border-left: 4px solid var(--brand-yellow);
      border-radius: 12px;
      background: #f8fafc;
    }

    .stat-card span {
      color: var(--brand-muted);
    }

    .stat-card strong {
      display: block;
      margin-top: 6px;
      overflow-wrap: anywhere;
      font-size: 18px;
    }

    .detail-grid-3 {
      grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .filter-bar {
      display: grid;
      grid-template-columns: minmax(240px, 2fr) repeat(3, minmax(150px, 1fr)) auto;
      gap: 12px;
      align-items: end;
    }

    .table-wrap {
      width: 100%;
      overflow-x: auto;
      -webkit-overflow-scrolling: touch;
    }

    .table-wrap table {
      min-width: 100%;
    }

    details > summary {
      cursor: pointer;
    }

    details.section-card > summary,
    .workflow-panel {
      padding: 16px 18px;
      border: 1px solid var(--brand-border);
      border-radius: 12px;
      background: #f8fafc;
    }

    .workflow-panel {
      margin: 18px 0;
    }

    input[type="checkbox"],
    input[type="radio"] {
      width: 18px;
      min-height: 18px;
      height: 18px;
      padding: 0;
      accent-color: var(--brand-yellow);
    }

    button:disabled,
    .button[aria-disabled="true"] {
      cursor: not-allowed;
      opacity: 0.56;
    }

    .user-menu > summary img {
      width: 100%;
      height: 100%;
      border-radius: 50%;
      object-fit: cover;
    }

    .profile-hero-main {
      display: grid;
      grid-template-columns: minmax(210px, 260px) minmax(0, 1fr);
      gap: 30px;
      align-items: start;
    }

    .profile-photo-column {
      display: grid;
      gap: 12px;
    }

    .profile-photo-large {
      width: 190px;
      height: 190px;
      max-width: 100%;
      border: 5px solid #ffffff;
      border-radius: 50%;
      object-fit: cover;
      box-shadow: 0 10px 30px rgba(20, 32, 51, 0.16);
    }

    .profile-photo-fallback {
      display: flex;
      align-items: center;
      justify-content: center;
      background: var(--brand-yellow);
      color: var(--brand-navy-dark);
      font-size: 52px;
      font-weight: 900;
    }

    .profile-photo-form {
      display: grid;
      gap: 9px;
    }

    .profile-photo-form label {
      margin: 0;
    }

    .profile-photo-form input[type="file"] {
      min-height: auto;
      padding: 10px;
    }

    .profile-hero-content {
      min-width: 0;
    }

    .module-card,
    .summary-grid > a.card {
      min-height: 100%;
    }

    @media (max-width: 960px) {
      .stat-grid,
      .detail-grid-3 {
        grid-template-columns: repeat(2, minmax(0, 1fr));
      }

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

      .profile-hero-main {
        grid-template-columns: 1fr;
      }

      .profile-photo-column {
        justify-items: center;
      }
    }

    @media (max-width: 700px) {
      main.layout-wide,
      main.layout-narrow {
        width: min(100% - 20px, 680px);
      }

      .section-card {
        padding: 20px;
      }

      .form-grid,
      .field-grid,
      .stat-grid,
      .detail-grid-3,
      .filter-bar {
        grid-template-columns: 1fr;
      }

      .page-actions,
      .page-heading > .form-actions,
      .toolbar > .form-actions {
        width: 100%;
      }

      .page-actions > *,
      .page-heading > .form-actions > *,
      .toolbar > .form-actions > * {
        flex: 1 1 100%;
        width: 100%;
        text-align: center;
      }

      .mobile-card-table {
        display: table;
        overflow: visible;
      }

      .mobile-card-table thead {
        display: none;
      }

      .mobile-card-table tbody,
      .mobile-card-table tr,
      .mobile-card-table td {
        display: block;
        width: 100%;
      }

      .mobile-card-table tr {
        margin: 14px 0;
        padding: 14px;
        border: 1px solid var(--brand-border);
        border-left: 4px solid var(--brand-yellow);
        border-radius: 12px;
        background: #ffffff;
      }

      .mobile-card-table td {
        display: grid;
        grid-template-columns: minmax(105px, 38%) 1fr;
        gap: 12px;
        padding: 8px 0;
        border: 0;
      }

      .mobile-card-table td::before {
        content: attr(data-label);
        color: var(--brand-muted);
        font-size: 12px;
        font-weight: 800;
        letter-spacing: 0.04em;
        text-transform: uppercase;
      }

      .mobile-card-table td[colspan] {
        display: block;
      }

      .mobile-card-table td[colspan]::before {
        display: none;
      }

      .table-actions {
        display: grid;
        grid-template-columns: 1fr;
      }

      .table-actions > *,
      .table-actions form,
      .table-actions button,
      .table-actions .button {
        width: 100%;
      }
    }

