    :root {
      --ink: #17202f;
      --text: #243044;
      --muted: #68758a;
      --line: #dfe6ef;
      --soft-line: #edf1f6;
      --page: #f4f6fa;
      --panel: #ffffff;
      --nav: #193149;
      --nav-2: #214562;
      --teal: #0f766e;
      --blue: #315f86;
      --gold: #b4872f;
      --orange: #c76f1a;
      --green: #11845b;
      --red: #b42318;
      --violet: #6651b9;
      --shadow: 0 18px 42px rgba(20, 35, 55, 0.09);
      --radius: 14px;
    }

    * {
      box-sizing: border-box;
    }

    html {
      scroll-behavior: smooth;
    }

    body {
      margin: 0;
      min-height: 100vh;
      color: var(--text);
      background:
        linear-gradient(180deg, rgba(255,255,255,0.72), rgba(244,246,250,0.82)),
        radial-gradient(circle at 0 0, rgba(49,95,134,0.12), transparent 34%),
        var(--page);
      font-family: Aptos, Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
      font-size: 15px;
      line-height: 1.5;
      letter-spacing: 0;
      -webkit-font-smoothing: antialiased;
      text-rendering: optimizeLegibility;
    }

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

    button {
      cursor: pointer;
    }

    .app {
      display: grid;
      grid-template-columns: 280px minmax(0, 1fr);
      min-height: 100vh;
      transition: grid-template-columns 180ms ease;
    }

    .app.nav-collapsed {
      grid-template-columns: 86px minmax(0, 1fr);
    }

    .sidebar {
      position: sticky;
      top: 0;
      height: 100vh;
      color: #fff;
      background: linear-gradient(180deg, var(--nav), #14273b);
      padding: 22px 18px;
      display: grid;
      grid-template-rows: auto 1fr auto;
      border-right: 1px solid rgba(255,255,255,0.08);
      transition: padding 180ms ease;
    }

    .app.nav-collapsed .sidebar {
      padding-inline: 14px;
    }

    .brand {
      display: grid;
      grid-template-columns: 42px 1fr;
      gap: 12px;
      align-items: center;
      padding: 4px 4px 18px;
    }

    .app.nav-collapsed .brand {
      grid-template-columns: 42px;
      justify-content: center;
      padding-inline: 0;
    }

    .app.nav-collapsed .brand > div:not(.brand-mark),
    .app.nav-collapsed .side-summary {
      display: none;
    }

    .brand-mark {
      width: 42px;
      height: 42px;
      border-radius: 12px;
      display: grid;
      place-items: center;
      background: linear-gradient(135deg, #c99b3c, #efd17c);
      color: #102033;
      font-weight: 900;
      box-shadow: 0 10px 22px rgba(0,0,0,0.18);
    }

    .brand h1 {
      margin: 0;
      color: #fff;
      font-size: 16px;
      line-height: 1.2;
    }

    .brand p {
      margin: 3px 0 0;
      color: rgba(255,255,255,0.68);
      font-size: 12px;
    }

    .sidebar-toggle {
      width: calc(100% - 8px);
      min-height: 38px;
      margin: 0 4px 14px;
      border: 1px solid rgba(255,255,255,0.14);
      border-radius: 12px;
      background: rgba(255,255,255,0.08);
      color: rgba(255,255,255,0.82);
      display: grid;
      grid-template-columns: 22px 1fr;
      gap: 8px;
      align-items: center;
      padding: 8px 10px;
      font-size: 12px;
      font-weight: 800;
      text-align: left;
    }

    .sidebar-toggle:hover {
      background: rgba(255,255,255,0.13);
      color: #fff;
    }

    .sidebar-toggle svg {
      width: 18px;
      height: 18px;
      stroke: currentColor;
      stroke-width: 2;
      stroke-linecap: round;
      stroke-linejoin: round;
      fill: none;
    }

    .app.nav-collapsed .sidebar-toggle {
      width: 42px;
      grid-template-columns: 1fr;
      place-items: center;
      padding: 8px;
      margin-inline: auto;
    }

    .app.nav-collapsed .sidebar-toggle span {
      display: none;
    }

    .nav {
      display: grid;
      align-content: start;
      gap: 6px;
      overflow: auto;
      padding-right: 4px;
    }

    .nav button {
      border: 0;
      width: 100%;
      min-height: 46px;
      border-radius: 12px;
      color: rgba(255,255,255,0.76);
      background: transparent;
      display: grid;
      grid-template-columns: 30px minmax(0, 1fr) auto;
      gap: 10px;
      align-items: center;
      text-align: left;
      padding: 8px 10px;
      font-size: 13px;
      font-weight: 750;
      transition: background 160ms ease, color 160ms ease, transform 160ms ease;
    }

    .app.nav-collapsed .nav {
      padding-right: 0;
    }

    .app.nav-collapsed .nav button {
      grid-template-columns: 30px;
      justify-content: center;
      padding: 8px;
      font-size: 0;
    }

    .app.nav-collapsed .nav button.active {
      box-shadow: inset 0 -3px 0 #d6a84c;
    }

    .nav button:hover,
    .nav button.active {
      color: #fff;
      background: rgba(255,255,255,0.12);
    }

    .nav button.active {
      box-shadow: inset 3px 0 0 #d6a84c;
    }

    .nav svg,
    .mobile-menu svg,
    .icon-btn svg,
    .btn svg {
      width: 18px;
      height: 18px;
      stroke: currentColor;
      stroke-width: 2;
      stroke-linecap: round;
      stroke-linejoin: round;
      fill: none;
    }

    .nav-icon {
      width: 30px;
      height: 30px;
      border-radius: 10px;
      display: grid;
      place-items: center;
      background: rgba(255,255,255,0.1);
    }

    .side-summary {
      margin: 18px 4px 0;
      padding: 14px;
      border-radius: 12px;
      background: rgba(255,255,255,0.92);
      color: var(--ink);
    }

    .side-summary span {
      display: block;
      color: var(--muted);
      font-size: 12px;
      line-height: 1.45;
    }

    .mini-meter {
      margin-top: 12px;
      height: 8px;
      border-radius: 999px;
      overflow: hidden;
      background: #e8edf4;
    }

    .mini-meter i {
      display: block;
      width: 68%;
      height: 100%;
      background: linear-gradient(90deg, var(--gold), #edc96b);
    }

    .main {
      min-width: 0;
      padding: 20px 24px 34px;
    }

    .topbar {
      position: sticky;
      top: 16px;
      z-index: 9;
      display: grid;
      grid-template-columns: minmax(190px, 300px) minmax(0, 1fr);
      align-items: center;
      gap: 14px;
      padding: 12px;
      border: 1px solid rgba(223,230,239,0.9);
      border-radius: 16px;
      background: rgba(255,255,255,0.88);
      backdrop-filter: blur(14px);
      box-shadow: 0 12px 30px rgba(20,35,55,0.07);
    }

    .mobile-menu,
    .icon-btn {
      width: 40px;
      height: 40px;
      border: 1px solid var(--line);
      color: var(--blue);
      border-radius: 12px;
      background: #fff;
      display: none;
      place-items: center;
    }

    .search {
      height: 42px;
      display: grid;
      grid-template-columns: 18px 1fr;
      gap: 9px;
      align-items: center;
      min-width: 0;
      padding: 0 13px;
      background: #f5f7fa;
      border: 1px solid var(--line);
      border-radius: 12px;
      color: var(--muted);
    }

    .search input {
      width: 100%;
      border: 0;
      background: transparent;
      outline: 0;
      color: var(--text);
      font-size: 13px;
    }

    .profile {
      display: flex;
      flex-wrap: nowrap;
      gap: 10px;
      align-items: center;
      justify-content: end;
      min-width: 0;
    }

    .topbar-role {
      flex: 0 1 220px;
      min-width: 0;
      gap: 4px;
    }

    .topbar-role > span {
      font-size: 10px;
    }

    .topbar-role select {
      min-height: 38px;
    }

    .user {
      display: grid;
      grid-template-columns: 38px minmax(112px, auto);
      gap: 9px;
      align-items: center;
      flex: 0 0 auto;
      min-width: 0;
    }

    .avatar,
    .small-avatar,
    .big-avatar {
      display: grid;
      place-items: center;
      border-radius: 50%;
      background: #e7eef6;
      color: var(--blue);
      font-weight: 900;
    }

    .avatar {
      width: 38px;
      height: 38px;
      border: 2px solid #fff;
    }

    .user b {
      display: block;
      color: var(--ink);
      font-size: 13px;
      line-height: 1.2;
      white-space: nowrap;
    }

    .user span {
      display: block;
      margin-top: 2px;
      color: var(--muted);
      font-size: 11px;
      white-space: nowrap;
    }

    .btn {
      min-height: 40px;
      border: 1px solid var(--line);
      border-radius: 12px;
      background: #fff;
      color: var(--blue);
      display: inline-flex;
      gap: 8px;
      align-items: center;
      justify-content: center;
      padding: 9px 13px;
      font-size: 13px;
      font-weight: 850;
      text-decoration: none;
      white-space: nowrap;
    }

    .btn.primary {
      border-color: #254d70;
      background: #254d70;
      color: #fff;
      box-shadow: 0 10px 22px rgba(37,77,112,0.18);
    }

    .btn.gold {
      border-color: var(--gold);
      background: var(--gold);
      color: #fff;
    }

    .btn.ghost {
      background: #f8fafc;
    }

    .btn:disabled,
    .btn[disabled] {
      opacity: 0.52;
      cursor: not-allowed;
      box-shadow: none;
    }

    .toast-region {
      position: fixed;
      top: 18px;
      right: 18px;
      z-index: 80;
      display: grid;
      gap: 10px;
      width: min(360px, calc(100vw - 36px));
      pointer-events: none;
    }

    .toast {
      display: grid;
      gap: 3px;
      padding: 13px 15px;
      border: 1px solid var(--line);
      border-left: 5px solid var(--blue);
      border-radius: 14px;
      background: rgba(255,255,255,0.98);
      color: var(--ink);
      box-shadow: 0 18px 44px rgba(20,35,55,0.18);
      transform: translateY(-8px);
      opacity: 0;
      transition: opacity 180ms ease, transform 180ms ease;
    }

    .toast.show {
      transform: translateY(0);
      opacity: 1;
    }

    .toast strong {
      font-size: 13px;
      line-height: 1.25;
    }

    .toast span {
      color: var(--muted);
      font-size: 12px;
      line-height: 1.45;
    }

    .toast.red {
      border-left-color: #c2410c;
    }

    .toast.gold {
      border-left-color: var(--gold);
    }

    .manager-alert {
      border-color: rgba(194,65,12,0.28);
      background: linear-gradient(180deg, #fff 0%, #fff8f1 100%);
      margin-bottom: 16px;
    }

    .notification-list {
      display: grid;
      gap: 10px;
      margin-top: 12px;
    }

    .notification-item {
      display: grid;
      grid-template-columns: minmax(0, 1fr) auto;
      gap: 12px;
      align-items: center;
      padding: 12px;
      border: 1px solid rgba(194,65,12,0.16);
      border-radius: 12px;
      background: #fff;
    }

    .notification-item p {
      margin: 3px 0 0;
      color: var(--muted);
      font-size: 13px;
      line-height: 1.45;
    }

    .view {
      display: none;
      padding-top: 26px;
      animation: enter 220ms ease;
    }

    .view.active {
      display: block;
    }

    @keyframes enter {
      from {
        opacity: 0;
        transform: translateY(8px);
      }
      to {
        opacity: 1;
        transform: translateY(0);
      }
    }

    .page-head {
      display: grid;
      grid-template-columns: minmax(0, 1fr) auto;
      align-items: end;
      gap: 18px;
      margin-bottom: 18px;
    }

    .eyebrow {
      color: var(--gold);
      font-size: 12px;
      font-weight: 900;
      text-transform: uppercase;
      letter-spacing: 0.08em;
      margin-bottom: 8px;
    }

    h2 {
      margin: 0;
      color: var(--ink);
      font-size: clamp(28px, 4vw, 42px);
      line-height: 1.03;
      letter-spacing: 0;
    }

    .page-head p {
      margin: 10px 0 0;
      max-width: 850px;
      color: var(--muted);
      font-size: 15px;
      line-height: 1.55;
    }

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

    .grid {
      display: grid;
      gap: 16px;
    }

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

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

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

    .split {
      display: grid;
      grid-template-columns: minmax(0, 1.15fr) minmax(320px, 0.85fr);
      gap: 16px;
      align-items: start;
    }

    .card,
    .panel {
      background: var(--panel);
      border: 1px solid var(--line);
      border-radius: var(--radius);
      box-shadow: var(--shadow);
    }

    .card {
      padding: 18px;
    }

    .panel {
      overflow: hidden;
    }

    .panel-pad {
      padding: 18px;
    }

    h3 {
      margin: 0 0 13px;
      color: var(--ink);
      font-size: 18px;
      line-height: 1.25;
    }

    h4 {
      margin: 0;
      color: var(--ink);
      font-size: 14px;
      line-height: 1.35;
    }

    p {
      margin: 0;
      color: var(--muted);
      line-height: 1.55;
    }

    .kpi {
      min-height: 128px;
      display: grid;
      gap: 12px;
      align-content: space-between;
      box-shadow: none;
    }

    .filter-card {
      text-align: left;
      cursor: pointer;
      transition: border-color 160ms ease, box-shadow 160ms ease, transform 160ms ease;
    }

    .filter-card:hover {
      border-color: #b9c8d9;
      box-shadow: 0 14px 34px rgba(20,35,55,0.08);
      transform: translateY(-1px);
    }

    .filter-card.active {
      border-color: var(--blue);
      box-shadow: inset 0 0 0 2px rgba(49,95,134,0.18), 0 14px 34px rgba(20,35,55,0.08);
    }

    .approval-filter-grid {
      display: grid;
      grid-template-columns: repeat(5, minmax(0, 1fr));
      gap: 16px;
      margin-bottom: 16px;
    }

    .kpi-top {
      display: flex;
      justify-content: space-between;
      gap: 12px;
    }

    .kpi-label {
      color: var(--muted);
      font-size: 12px;
      font-weight: 850;
    }

    .kpi-number {
      margin-top: 6px;
      color: var(--ink);
      font-size: 34px;
      line-height: 1;
      font-weight: 950;
    }

    .dashboard-category-strip {
      display: flex;
      gap: 8px;
      flex-wrap: wrap;
      margin: 16px 0;
    }

    .category-chip {
      min-height: 34px;
      border: 1px solid var(--line);
      border-radius: 999px;
      background: #fff;
      color: var(--muted);
      padding: 7px 12px;
      font-size: 12px;
      font-weight: 900;
      cursor: pointer;
      transition: background 160ms ease, border-color 160ms ease, color 160ms ease, transform 160ms ease;
    }

    .category-chip:hover {
      border-color: #b9c8d9;
      color: var(--blue);
      transform: translateY(-1px);
    }

    .category-chip.active {
      border-color: var(--blue);
      background: #eef6ff;
      color: var(--blue);
      box-shadow: inset 0 0 0 1px rgba(49,95,134,0.14);
    }

    .dashboard-chart-grid {
      display: grid;
      grid-template-columns: minmax(220px, 0.75fr) minmax(0, 1.25fr) minmax(220px, 0.75fr);
      gap: 16px;
      margin-top: 16px;
    }

    .chart-card {
      min-height: 226px;
      display: grid;
      gap: 14px;
      align-content: start;
      box-shadow: none;
    }

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

    .donut-wrap {
      display: grid;
      place-items: center;
      gap: 8px;
      padding-top: 4px;
    }

    .donut {
      --value: 50;
      --tone: #315f86;
      width: 132px;
      aspect-ratio: 1;
      border-radius: 50%;
      display: grid;
      place-items: center;
      background: conic-gradient(var(--tone) calc(var(--value) * 1%), #edf2f7 0);
      position: relative;
    }

    .donut::before {
      content: "";
      position: absolute;
      inset: 16px;
      border-radius: 50%;
      background: #fff;
      box-shadow: inset 0 0 0 1px var(--soft-line);
    }

    .donut b {
      position: relative;
      z-index: 1;
      color: var(--ink);
      font-size: 26px;
      font-weight: 950;
    }

    .donut-caption {
      text-align: center;
      color: var(--muted);
      font-size: 12px;
      font-weight: 800;
      line-height: 1.4;
    }

    .chart-bars {
      display: grid;
      gap: 12px;
      margin-top: 2px;
    }

    .chart-bar-row {
      display: grid;
      grid-template-columns: minmax(94px, 0.8fr) minmax(0, 1.5fr) 44px;
      gap: 10px;
      align-items: center;
      font-size: 12px;
      font-weight: 850;
      color: var(--ink);
    }

    .chart-bar-track {
      height: 10px;
      overflow: hidden;
      border-radius: 999px;
      background: #edf2f7;
    }

    .chart-bar-track span {
      display: block;
      height: 100%;
      width: var(--value);
      border-radius: inherit;
      background: var(--blue);
    }

    .chart-bar-track.gold span {
      background: var(--gold);
    }

    .chart-bar-track.orange span {
      background: #c26a22;
    }

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

    .chart-stat {
      display: grid;
      grid-template-columns: 12px minmax(0, 1fr) auto;
      gap: 9px;
      align-items: center;
      color: var(--muted);
      font-size: 12px;
      font-weight: 800;
    }

    .chart-dot {
      width: 10px;
      height: 10px;
      border-radius: 999px;
      background: var(--blue);
    }

    .chart-dot.gold {
      background: var(--gold);
    }

    .chart-dot.orange {
      background: #c26a22;
    }

    .chart-dot.red {
      background: #c2410c;
    }

    .dashboard-detail {
      margin-top: 16px;
    }

    .dashboard-detail .table-wrap {
      margin-top: 4px;
    }

    .metric-icon {
      width: 38px;
      height: 38px;
      border-radius: 12px;
      display: grid;
      place-items: center;
      color: var(--blue);
      background: #eef4fb;
    }

    .pill {
      display: inline-flex;
      align-items: center;
      gap: 6px;
      width: max-content;
      max-width: 100%;
      border-radius: 999px;
      padding: 6px 10px;
      background: #ecfdf5;
      color: var(--green);
      font-size: 11px;
      font-weight: 900;
      line-height: 1.1;
      white-space: nowrap;
    }

    .pill.blue {
      background: #eff6ff;
      color: #245d8f;
    }

    .pill.gold {
      background: #fff8e7;
      color: #86601c;
    }

    .pill.orange {
      background: #fff4e8;
      color: var(--orange);
    }

    .pill.red {
      background: #fff1f0;
      color: var(--red);
    }

    .pill.violet {
      background: #f3f0ff;
      color: var(--violet);
    }

    .pill.gray {
      background: #f2f4f7;
      color: #4b5563;
    }

    .notification-badge {
      display: inline-grid;
      place-items: center;
      min-width: 22px;
      height: 22px;
      padding: 0 7px;
      border-radius: 999px;
      background: #c2410c;
      color: #fff;
      font-size: 11px;
      font-weight: 950;
      line-height: 1;
    }

    .nav .notification-badge {
      justify-self: end;
      margin-left: auto;
    }

    .app.nav-collapsed .nav .notification-badge {
      position: absolute;
      top: 4px;
      right: 4px;
      min-width: 18px;
      height: 18px;
      padding: 0 5px;
      font-size: 10px;
    }

    .app.nav-collapsed .nav button {
      position: relative;
    }

    .notification-button {
      position: relative;
      min-width: 132px;
    }

    .lang-toggle {
      min-width: 104px;
    }

    .notification-button .notification-badge {
      position: absolute;
      top: -7px;
      right: -7px;
      min-width: 19px;
      height: 19px;
      font-size: 10px;
    }

    .drawer-overlay {
      position: fixed;
      inset: 0;
      display: none;
      justify-content: flex-end;
      background: rgba(15,23,42,0.34);
      z-index: 40;
    }

    .drawer-overlay.open {
      display: flex;
    }

    .drawer {
      width: min(760px, 100vw);
      height: 100%;
      overflow: auto;
      background: #f8fafc;
      border-left: 1px solid var(--line);
      box-shadow: -18px 0 50px rgba(20,35,55,0.18);
      padding: 20px;
    }

    .drawer-head {
      display: flex;
      align-items: flex-start;
      justify-content: space-between;
      gap: 12px;
      margin-bottom: 14px;
    }

    .drawer-section {
      margin-bottom: 14px;
    }

    [hidden] {
      display: none !important;
    }

    .bar-list {
      display: grid;
      gap: 14px;
    }

    .bar-row {
      display: grid;
      grid-template-columns: minmax(110px, 150px) minmax(140px, 1fr) 42px;
      gap: 12px;
      align-items: center;
      color: #344054;
      font-size: 13px;
    }

    .bar {
      height: 10px;
      border-radius: 999px;
      background: #edf2f7;
      overflow: hidden;
    }

    .bar span {
      display: block;
      height: 100%;
      border-radius: 999px;
      background: linear-gradient(90deg, var(--blue), var(--teal));
    }

    .bar.gold span {
      background: linear-gradient(90deg, var(--gold), #e9c76d);
    }

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

    table {
      width: 100%;
      min-width: 620px;
      border-collapse: separate;
      border-spacing: 0 10px;
    }

    th {
      text-align: left;
      color: var(--muted);
      font-size: 11px;
      font-weight: 900;
      text-transform: uppercase;
      letter-spacing: 0.06em;
      padding: 0 12px;
    }

    td {
      padding: 13px 12px;
      background: #fff;
      border-top: 1px solid var(--soft-line);
      border-bottom: 1px solid var(--soft-line);
      color: #2d3a4e;
      font-size: 13px;
      vertical-align: middle;
    }

    td:first-child {
      border-left: 1px solid var(--soft-line);
      border-radius: 12px 0 0 12px;
    }

    td:last-child {
      border-right: 1px solid var(--soft-line);
      border-radius: 0 12px 12px 0;
    }

    .person {
      display: grid;
      grid-template-columns: 34px minmax(0, 1fr);
      gap: 10px;
      align-items: center;
      min-width: 190px;
    }

    .small-avatar {
      width: 34px;
      height: 34px;
      font-size: 11px;
    }

    .person b,
    .task b {
      color: var(--ink);
      font-size: 13px;
    }

    .meta {
      display: block;
      margin-top: 3px;
      color: var(--muted);
      font-size: 11px;
      line-height: 1.25;
    }

    .workflow {
      display: grid;
      grid-template-columns: repeat(6, minmax(130px, 1fr));
      gap: 12px;
    }

    .flow-step {
      position: relative;
      min-height: 158px;
      padding: 16px;
      background: #fff;
      border: 1px solid var(--line);
      border-radius: 14px;
      box-shadow: 0 12px 28px rgba(20,35,55,0.06);
    }

    .flow-step:not(:last-child)::after {
      content: "";
      position: absolute;
      right: -9px;
      top: 32px;
      width: 16px;
      height: 16px;
      transform: rotate(45deg);
      border-top: 1px solid var(--line);
      border-right: 1px solid var(--line);
      background: #fff;
      z-index: 2;
    }

    .step-num {
      width: 34px;
      height: 34px;
      display: grid;
      place-items: center;
      margin-bottom: 14px;
      border-radius: 11px;
      background: #edf5fb;
      color: var(--blue);
      font-weight: 950;
    }

    .profile-hero {
      min-height: 268px;
      display: grid;
      grid-template-columns: 1fr auto;
      gap: 20px;
      align-items: end;
      padding: 22px;
      color: #fff;
      background:
        linear-gradient(135deg, rgba(25,49,73,0.98), rgba(15,118,110,0.88)),
        linear-gradient(45deg, rgba(180,135,47,0.18), transparent);
      border: 0;
    }

    .profile-hero h3 {
      margin: 14px 0 4px;
      color: #fff;
      font-size: 28px;
    }

    .profile-hero p {
      color: rgba(255,255,255,0.76);
    }

    .big-avatar {
      width: 76px;
      height: 76px;
      border-radius: 22px;
      background: #fff;
      color: var(--blue);
      font-size: 24px;
    }

    .score-card {
      width: 170px;
      height: 170px;
      display: grid;
      place-items: center;
      border-radius: 50%;
      background: conic-gradient(#d9ad55 0 82%, rgba(255,255,255,0.18) 82% 100%);
    }

    .score-card div {
      width: 124px;
      height: 124px;
      display: grid;
      place-items: center;
      border-radius: 50%;
      background: #fff;
      color: var(--ink);
      text-align: center;
      font-weight: 900;
    }

    .score-card b {
      display: block;
      color: var(--blue);
      font-size: 32px;
      line-height: 1;
    }

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

    .info-item {
      padding: 13px;
      border-radius: 12px;
      background: #f8fafc;
      border: 1px solid var(--soft-line);
    }

    .info-item span {
      display: block;
      margin-bottom: 4px;
      color: var(--muted);
      font-size: 11px;
      font-weight: 800;
    }

    .info-item b {
      color: var(--ink);
      font-size: 13px;
    }

    .form-section {
      display: grid;
      gap: 18px;
    }

    .form-card {
      padding: 20px;
      border: 1px solid var(--line);
      border-radius: 16px;
      background: #fff;
    }

    .form-card header {
      display: flex;
      align-items: start;
      justify-content: space-between;
      gap: 12px;
      margin-bottom: 18px;
    }

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

    .field {
      display: grid;
      gap: 7px;
    }

    .field label {
      color: #344054;
      font-size: 12.5px;
      font-weight: 850;
    }

    .field input,
    .field select,
    .field textarea {
      width: 100%;
      min-height: 44px;
      border: 1px solid #cfd8e3;
      border-radius: 11px;
      background: #fff;
      color: var(--text);
      outline: 0;
      padding: 11px 12px;
      font-size: 13.5px;
    }

    .field textarea {
      min-height: 92px;
      resize: vertical;
    }

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

    .check-grid label {
      display: flex;
      align-items: center;
      gap: 10px;
      min-height: 44px;
      padding: 10px 12px;
      border: 1px solid #d9e3ee;
      border-radius: 11px;
      background: #fbfcfe;
      color: var(--text);
      font-size: 13px;
      font-weight: 800;
    }

    .check-grid input {
      accent-color: var(--brand);
    }

    .progress-panel {
      display: grid;
      gap: 10px;
      margin-bottom: 16px;
    }

    .progress-title {
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 12px;
      font-size: 13px;
      font-weight: 900;
      color: var(--ink);
    }

    .quiz-stack {
      display: grid;
      gap: 14px;
    }

    .quiz-card {
      padding: 16px;
      border: 1px solid var(--soft-line);
      border-radius: 14px;
      background: #fbfcfe;
    }

    .quiz-card h4 {
      margin-bottom: 12px;
      color: var(--ink);
      font-size: 14px;
    }

    .quiz-options {
      display: grid;
      gap: 8px;
    }

    .quiz-options label {
      display: flex;
      gap: 10px;
      align-items: center;
      min-height: 42px;
      padding: 10px 12px;
      border: 1px solid #d9e3ee;
      border-radius: 11px;
      background: #fff;
      color: var(--text);
      font-size: 13px;
      font-weight: 750;
    }

    .quiz-options input {
      accent-color: var(--brand);
    }

    .assessment-block {
      box-shadow: 0 10px 28px rgba(20,35,55,0.045);
    }

    .assessment-block .field-grid {
      grid-template-columns: 1fr;
      gap: 10px;
    }

    .rating-field {
      display: grid;
      grid-template-columns: minmax(150px, 0.65fr) minmax(188px, 0.78fr) minmax(220px, 1fr);
      gap: 12px;
      align-items: start;
      padding: 13px;
      border: 1px solid var(--soft-line);
      border-radius: 14px;
      background: #fbfcfe;
    }

    .rating-field > label {
      padding-top: 8px;
      color: var(--ink);
      font-size: 13px;
      line-height: 1.35;
    }

    .rating-comment {
      min-height: 40px !important;
      resize: vertical;
      background: #fff !important;
    }

    .rating {
      display: grid;
      grid-template-columns: repeat(5, minmax(34px, 1fr));
      gap: 6px;
    }

    .rating button {
      min-height: 40px;
      border: 1px solid #cfd8e3;
      border-radius: 10px;
      background: #fff;
      color: var(--muted);
      font-weight: 900;
      font-size: 14px;
    }

    .rating button.active {
      color: #fff;
      background: var(--blue);
      border-color: var(--blue);
      box-shadow: 0 8px 18px rgba(49,95,134,0.18);
    }

    .summary-box {
      position: sticky;
      top: 98px;
      display: grid;
      gap: 14px;
    }

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

    .score-row {
      display: grid;
      grid-template-columns: 1fr auto;
      gap: 8px;
      align-items: center;
      font-size: 13px;
    }

    .score-row strong {
      color: var(--ink);
    }

    .timeline {
      display: grid;
      gap: 12px;
    }

    .timeline-item {
      display: grid;
      grid-template-columns: 34px 1fr;
      gap: 10px;
      align-items: start;
    }

    .timeline-dot {
      width: 34px;
      height: 34px;
      display: grid;
      place-items: center;
      border-radius: 50%;
      color: var(--blue);
      background: #edf5fb;
      font-weight: 950;
    }

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

    .matrix-cell {
      min-height: 124px;
      border: 1px solid var(--line);
      border-radius: 14px;
      background: #f8fafc;
      padding: 15px;
    }

    .matrix-cell.high {
      border-color: #b6e3d7;
      background: #eefbf7;
    }

    .matrix-cell.mid {
      border-color: #f5d596;
      background: #fff9ec;
    }

    .matrix-cell.low {
      border-color: #f5beb8;
      background: #fff5f4;
    }

    .model-strip {
      display: grid;
      grid-template-columns: repeat(6, minmax(0, 1fr));
      gap: 10px;
      margin-bottom: 16px;
    }

    .model-item {
      padding: 12px;
      border: 1px solid var(--line);
      border-radius: 12px;
      background: #fff;
      box-shadow: 0 8px 22px rgba(20,35,55,0.04);
    }

    .model-item span {
      display: block;
      color: var(--gold);
      font-size: 11px;
      font-weight: 950;
    }

    .model-item b {
      display: block;
      margin-top: 4px;
      color: var(--ink);
      font-size: 12px;
      line-height: 1.25;
    }

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

    .timeline-track {
      display: grid;
      gap: 12px;
    }

    .probation-step {
      display: grid;
      grid-template-columns: 42px minmax(0, 1fr) auto;
      gap: 12px;
      align-items: center;
      padding: 14px;
      border: 1px solid var(--line);
      border-radius: 14px;
      background: #fff;
    }

    .probation-step .step-num {
      margin: 0;
    }

    .probation-step h4 {
      margin-bottom: 3px;
    }

    .form-mode-note {
      padding: 12px;
      border: 1px solid #d7e7f5;
      border-radius: 12px;
      background: #f4f9fd;
      color: #245d8f;
      font-size: 13px;
      font-weight: 750;
    }

    .report-page {
      padding: 24px;
      background: #fff;
      border: 1px solid var(--line);
      border-radius: 14px;
      box-shadow: var(--shadow);
    }

    .report-banner {
      display: grid;
      grid-template-columns: 1fr auto;
      gap: 16px;
      align-items: center;
      padding: 20px;
      border-radius: 14px;
      color: #fff;
      background: linear-gradient(135deg, var(--nav), var(--blue));
    }

    .report-banner h3 {
      margin-bottom: 4px;
      color: #fff;
      font-size: 24px;
    }

    .report-banner p {
      color: rgba(255,255,255,0.76);
    }

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

    .module {
      padding: 15px;
      border: 1px solid var(--line);
      border-radius: 14px;
      background: #fff;
    }

    .module-icon {
      width: 38px;
      height: 38px;
      display: grid;
      place-items: center;
      margin-bottom: 12px;
      border-radius: 12px;
      color: var(--blue);
      background: #edf5fb;
    }

    .empty-state {
      padding: 24px;
      border: 1px dashed #cad4e0;
      border-radius: 14px;
      background: #fbfcfe;
      text-align: center;
    }

    .mobile-preview {
      max-width: 340px;
      margin: 0 auto;
      padding: 14px;
      border: 10px solid #17202f;
      border-radius: 34px;
      background: #fff;
      box-shadow: var(--shadow);
    }

    .mobile-preview::before {
      content: "";
      display: block;
      width: 92px;
      height: 7px;
      margin: 0 auto 14px;
      border-radius: 999px;
      background: #111827;
    }

    .mobile-card {
      padding: 14px;
      border: 1px solid var(--soft-line);
      border-radius: 14px;
      margin-bottom: 10px;
      background: #fff;
    }

    .overlay {
      display: none;
    }

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

      .app.nav-collapsed {
        grid-template-columns: 1fr;
      }

      .sidebar {
        position: fixed;
        inset: 0 auto 0 0;
        width: min(320px, 86vw);
        transform: translateX(-102%);
        transition: transform 180ms ease;
        z-index: 20;
      }

      .app.nav-collapsed .sidebar {
        padding: 22px 18px;
      }

      .app.nav-collapsed .brand {
        grid-template-columns: 42px 1fr;
        justify-content: start;
        padding: 4px 4px 18px;
      }

      .app.nav-collapsed .brand > div:not(.brand-mark),
      .app.nav-collapsed .side-summary {
        display: block;
      }

      .sidebar-toggle {
        display: none;
      }

      .app.nav-collapsed .nav {
        padding-right: 4px;
      }

      .app.nav-collapsed .nav button {
        grid-template-columns: 30px minmax(0, 1fr) auto;
        justify-content: stretch;
        padding: 8px 10px;
        font-size: 13px;
      }

      .app.nav-collapsed .nav button.active {
        box-shadow: inset 3px 0 0 #d6a84c;
      }

      .app.nav-open .sidebar {
        transform: translateX(0);
      }

      .overlay {
        position: fixed;
        inset: 0;
        display: none;
        background: rgba(15,23,42,0.42);
        z-index: 19;
      }

      .app.nav-open .overlay {
        display: block;
      }

      .main {
        padding: 16px;
      }

      .mobile-menu {
        display: grid;
      }

      .topbar {
        grid-template-columns: auto minmax(180px, 1fr);
      }

      .profile {
        grid-column: 1 / -1;
        justify-content: flex-end;
        flex-wrap: wrap;
      }

      .workflow,
      .module-list,
      .approval-filter-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
      }

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

      .flow-step:not(:last-child)::after {
        display: none;
      }
    }

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

      .profile {
        justify-content: stretch;
      }

      .topbar-role {
        flex: 1 1 180px;
      }

      .user {
        flex: 1 1 100%;
      }

      .cols-4,
      .cols-3,
      .cols-2,
      .split,
      .info-grid,
      .model-strip,
      .approval-filter-grid,
      .dashboard-chart-grid,
      .field-grid,
      .check-grid,
      .rating-field {
        grid-template-columns: 1fr;
      }

      .rating-field > label {
        padding-top: 0;
      }

      .page-head,
      .profile-hero,
      .report-banner {
        grid-template-columns: 1fr;
      }

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

      .summary-box {
        position: static;
      }
    }

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

      .profile {
        flex-wrap: wrap;
      }

      .topbar-role,
      .user {
        flex: 1 1 100%;
      }

      .profile .notification-button {
        flex: 1 1 calc(50% - 6px);
        min-width: 0;
      }

      .lang-toggle {
        flex: 1 1 calc(50% - 6px);
      }

      .profile .notification-button[hidden] {
        display: none;
      }

      .user div {
        display: none;
      }

      .workflow,
      .module-list,
      .matrix,
      .probation-step {
        grid-template-columns: 1fr;
      }

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

      .toast-region {
        top: 10px;
        right: 10px;
        width: calc(100vw - 20px);
      }

      .notification-item {
        grid-template-columns: 1fr;
      }

      .notification-item .btn {
        width: 100%;
      }

      .rating {
        grid-template-columns: repeat(5, minmax(38px, 1fr));
      }

      .score-card {
        width: 148px;
        height: 148px;
      }

      .score-card div {
        width: 108px;
        height: 108px;
      }
    }

    @media print {
      body {
        background: #fff;
      }

      .sidebar,
      .topbar,
      .page-head .actions,
      .overlay {
        display: none !important;
      }

      .app {
        display: block;
      }

      .main {
        padding: 0;
      }

      .view {
        display: none !important;
      }

      #report {
        display: block !important;
        padding: 0;
      }

      .report-page {
        box-shadow: none;
        border: 0;
      }
    }
