  
    :root {
      --gov-950: #05264d;
      --gov-900: #073568;
      --gov-800: #0a4788;
      --gov-700: #0d5eb4;
      --gov-600: #1674d1;
      --gov-500: #2789e8;
      --gov-100: #dcecff;
      --gov-50: #eff6ff;
      --cyan: #0f9ca8;
      --gold: #c79028;
      --red: #c83f4d;
      --orange: #d97706;
      --green: #16835c;
      --ink: #17263a;
      --muted: #66778d;
      --line: #dbe4ef;
      --soft: #f5f8fc;
      --paper: #ffffff;
      --shadow: 0 14px 38px rgba(18, 50, 86, 0.10);
      --shadow-soft: 0 6px 22px rgba(18, 50, 86, 0.07);
      --radius: 16px;
      --font-display: "STZhongsong", "Songti SC", "Noto Serif CJK SC", serif;
      --font-ui: "HarmonyOS Sans SC", "Source Han Sans SC", "PingFang SC", sans-serif;
    }

    * { box-sizing: border-box; }
    html { scroll-behavior: smooth; }
    body {
      margin: 0;
      min-width: 320px;
      color: var(--ink);
      font-family: var(--font-ui);
      background:
        radial-gradient(circle at 84% 4%, rgba(39, 137, 232, 0.13), transparent 26%),
        linear-gradient(rgba(10, 71, 136, 0.025) 1px, transparent 1px),
        linear-gradient(90deg, rgba(10, 71, 136, 0.025) 1px, transparent 1px),
        #f5f8fc;
      background-size: auto, 28px 28px, 28px 28px, auto;
    }

    button, input, select, textarea { font: inherit; }
    button { cursor: pointer; }
    a { color: inherit; }
    .hidden { display: none !important; }

    .app-shell { min-height: 100vh; }
    .sidebar {
      position: fixed;
      inset: 0 auto 0 0;
      z-index: 40;
      width: 248px;
      padding: 24px 16px 18px;
      color: #fff;
      overflow-y: auto;
      background:
        radial-gradient(circle at 0 0, rgba(61, 154, 241, 0.35), transparent 32%),
        linear-gradient(164deg, #073b75 0%, #052a56 54%, #041e3f 100%);
      box-shadow: 14px 0 40px rgba(4, 38, 77, 0.12);
    }

    .sidebar::after {
      content: "";
      position: absolute;
      inset: auto -80px -100px auto;
      width: 220px;
      height: 220px;
      border: 1px solid rgba(255,255,255,0.08);
      border-radius: 50%;
      box-shadow: 0 0 0 34px rgba(255,255,255,0.025), 0 0 0 70px rgba(255,255,255,0.018);
      pointer-events: none;
    }

    .brand {
      display: flex;
      align-items: center;
      gap: 12px;
      padding: 0 6px 24px;
      border-bottom: 1px solid rgba(255,255,255,0.12);
    }

    .brand-mark {
      display: grid;
      place-items: center;
      width: 47px;
      height: 47px;
      flex: 0 0 47px;
      border: 1px solid rgba(255,255,255,0.52);
      border-radius: 12px 4px 12px 4px;
      color: #fff;
      font-family: var(--font-display);
      font-size: 14px;
      font-weight: 700;
      line-height: 1.05;
      letter-spacing: 1px;
      background: linear-gradient(145deg, rgba(255,255,255,0.18), rgba(255,255,255,0.05));
      box-shadow: inset 0 0 0 3px rgba(255,255,255,0.06);
    }

    .brand-copy strong {
      display: block;
      font-family: var(--font-display);
      font-size: 16px;
      letter-spacing: 0.8px;
    }

    .brand-copy small {
      display: block;
      margin-top: 5px;
      color: rgba(255,255,255,0.60);
      font-size: 9px;
      letter-spacing: 1.2px;
    }

    .nav-label {
      margin: 21px 12px 8px;
      color: rgba(255,255,255,0.42);
      font-size: 10px;
      letter-spacing: 1.6px;
    }

    .nav-list { display: grid; gap: 5px; }
    .nav-item {
      position: relative;
      display: flex;
      align-items: center;
      gap: 11px;
      width: 100%;
      padding: 10px 12px;
      border: 0;
      border-radius: 11px;
      color: rgba(255,255,255,0.74);
      text-decoration: none;
      text-align: left;
      background: transparent;
      transition: 160ms ease;
    }

    .nav-item:hover { color: #fff; background: rgba(255,255,255,0.08); }
    .nav-item.active {
      color: #fff;
      background: linear-gradient(90deg, rgba(57, 148, 239, 0.36), rgba(255,255,255,0.08));
      box-shadow: inset 3px 0 #66b7ff;
    }

    .nav-mark {
      display: grid;
      place-items: center;
      width: 27px;
      height: 27px;
      border: 1px solid rgba(255,255,255,0.16);
      border-radius: 8px;
      color: rgba(255,255,255,0.88);
      font-family: var(--font-display);
      font-size: 12px;
      background: rgba(255,255,255,0.05);
    }

    .nav-badge {
      margin-left: auto;
      min-width: 20px;
      padding: 2px 6px;
      border-radius: 999px;
      color: #fff;
      font-size: 10px;
      text-align: center;
      background: var(--red);
    }

    .sidebar-foot {
      position: relative;
      z-index: 1;
      margin-top: 26px;
      padding: 14px;
      border: 1px solid rgba(255,255,255,0.10);
      border-radius: 12px;
      color: rgba(255,255,255,0.62);
      font-size: 11px;
      line-height: 1.7;
      background: rgba(255,255,255,0.045);
    }

    .sidebar-foot strong { display: block; color: #fff; font-size: 12px; }
    .main-shell { min-height: 100vh; margin-left: 248px; }
    .topbar {
      position: sticky;
      top: 0;
      z-index: 30;
      display: flex;
      align-items: center;
      gap: 20px;
      min-height: 78px;
      padding: 13px 30px;
      border-bottom: 1px solid rgba(204, 218, 233, 0.82);
      background: rgba(248, 251, 255, 0.88);
      backdrop-filter: blur(16px);
    }

    .mobile-menu { display: none; }
    .page-heading { min-width: 260px; }
    .page-heading small {
      display: block;
      margin-bottom: 3px;
      color: var(--gov-600);
      font-size: 10px;
      font-weight: 700;
      letter-spacing: 1.6px;
      text-transform: uppercase;
    }

    .page-heading h1 {
      margin: 0;
      font-family: var(--font-display);
      font-size: 22px;
      letter-spacing: 0.4px;
    }

    .top-actions {
      display: flex;
      align-items: center;
      justify-content: flex-end;
      gap: 10px;
      flex: 1;
    }

    .search-box {
      position: relative;
      width: min(360px, 34vw);
    }

    .search-box::before {
      content: "";
      position: absolute;
      left: 14px;
      top: 50%;
      width: 11px;
      height: 11px;
      border: 2px solid #7c8da3;
      border-radius: 50%;
      transform: translateY(-58%);
    }

    .search-box::after {
      content: "";
      position: absolute;
      left: 26px;
      top: 51%;
      width: 7px;
      height: 2px;
      background: #7c8da3;
      transform: rotate(45deg);
    }

    .search-box input {
      width: 100%;
      height: 40px;
      padding: 0 14px 0 40px;
      border: 1px solid var(--line);
      border-radius: 11px;
      outline: none;
      color: var(--ink);
      background: #fff;
      transition: 160ms ease;
    }

    .search-box input:focus { border-color: var(--gov-500); box-shadow: 0 0 0 3px rgba(39,137,232,0.11); }
    .icon-btn {
      position: relative;
      display: grid;
      place-items: center;
      width: 40px;
      height: 40px;
      border: 1px solid var(--line);
      border-radius: 11px;
      color: var(--gov-800);
      background: #fff;
    }

    .icon-btn .dot {
      position: absolute;
      top: 2px;
      right: 2px;
      min-width: 18px;
      height: 18px;
      padding: 0 5px;
      line-height: 14px;
      font-size: 11px;
      font-weight: 700;
      color: #fff;
      text-align: center;
      border: 2px solid #fff;
      border-radius: 999px;
      background: var(--red);
      box-shadow: 0 1px 3px rgba(200, 63, 77, 0.35);
    }

    .role-box {
      display: flex;
      align-items: center;
      gap: 8px;
      height: 42px;
      padding: 4px 8px 4px 5px;
      border: 1px solid var(--line);
      border-radius: 12px;
      background: #fff;
    }

    .avatar {
      display: grid;
      place-items: center;
      width: 31px;
      height: 31px;
      border-radius: 9px;
      color: #fff;
      font-size: 12px;
      font-weight: 700;
      background: linear-gradient(145deg, var(--gov-700), var(--gov-500));
    }

    .role-box label { display: grid; gap: 1px; }
    .role-box small { color: var(--muted); font-size: 9px; }
    .role-box select { border: 0; outline: 0; color: var(--ink); font-size: 12px; font-weight: 700; background: transparent; }
    .role-box .logout-link {
      margin-left: 8px;
      color: var(--danger);
      font-size: 12px;
      font-weight: 600;
      text-decoration: none;
      padding: 5px 10px;
      border-radius: 8px;
      background: rgba(var(--danger-rgb, 239, 68, 68), 0.08);
      border: 1px solid rgba(var(--danger-rgb, 239, 68, 68), 0.2);
      transition: all .15s;
      white-space: nowrap;
    }
    .role-box .logout-link:hover {
      color: #fff;
      background: var(--danger);
      border-color: var(--danger);
    }

    .content { width: 100%; max-width: 1720px; margin: 0 auto; padding: 26px 30px 50px; }
    .view-enter { animation: rise-in 360ms ease both; }
    @keyframes rise-in { from { opacity: 0; transform: translateY(9px); } to { opacity: 1; transform: translateY(0); } }

    .hero {
      position: relative;
      display: grid;
      grid-template-columns: minmax(0, 1.2fr) minmax(360px, .8fr);
      gap: 24px;
      overflow: hidden;
      padding: 28px 30px;
      border-radius: 20px;
      color: #fff;
      background:
        linear-gradient(112deg, rgba(4, 43, 88, 0.98), rgba(9, 88, 168, 0.94)),
        var(--gov-900);
      box-shadow: 0 18px 42px rgba(5, 53, 104, 0.18);
    }

    .hero::before {
      content: "";
      position: absolute;
      width: 320px;
      height: 320px;
      right: -125px;
      top: -155px;
      border: 1px solid rgba(255,255,255,0.18);
      border-radius: 50%;
      box-shadow: 0 0 0 42px rgba(255,255,255,0.035), 0 0 0 84px rgba(255,255,255,0.025);
    }

    .hero-copy, .hero-flow { position: relative; z-index: 1; }
    .hero-kicker {
      display: inline-flex;
      align-items: center;
      gap: 8px;
      padding: 5px 9px;
      border: 1px solid rgba(255,255,255,0.20);
      border-radius: 999px;
      color: rgba(255,255,255,0.82);
      font-size: 10px;
      letter-spacing: 1px;
      background: rgba(255,255,255,0.07);
    }

    .hero h2 { margin: 14px 0 9px; font-family: var(--font-display); font-size: clamp(24px, 3vw, 34px); letter-spacing: 1px; }
    .hero p { max-width: 700px; margin: 0; color: rgba(255,255,255,0.72); font-size: 13px; line-height: 1.8; }
    .hero-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 21px; }
    .hero-flow {
      align-self: center;
      display: grid;
      grid-template-columns: repeat(3, 1fr);
      gap: 9px;
    }

    .flow-step {
      min-height: 112px;
      padding: 15px;
      border: 1px solid rgba(255,255,255,0.12);
      border-radius: 14px;
      background: rgba(255,255,255,0.075);
      backdrop-filter: blur(6px);
    }

    .flow-step span {
      display: grid;
      place-items: center;
      width: 26px;
      height: 26px;
      margin-bottom: 18px;
      border-radius: 8px;
      color: var(--gov-900);
      font-family: var(--font-display);
      font-size: 12px;
      font-weight: 700;
      background: #fff;
    }

    .flow-step strong { display: block; font-size: 12px; }
    .flow-step small { display: block; margin-top: 5px; color: rgba(255,255,255,0.58); font-size: 10px; line-height: 1.5; }

    .btn {
      display: inline-flex;
      align-items: center;
      justify-content: center;
      gap: 7px;
      min-height: 36px;
      padding: 8px 13px;
      border: 1px solid transparent;
      border-radius: 10px;
      font-size: 12px;
      font-weight: 700;
      transition: 150ms ease;
    }

    .btn:hover { transform: translateY(-1px); }
    .btn-primary { color: #fff; background: linear-gradient(135deg, var(--gov-700), var(--gov-500)); box-shadow: 0 7px 16px rgba(22, 116, 209, 0.22); }
    .btn-secondary { color: var(--gov-800); border-color: #c9dcf2; background: #eef6ff; }
    .btn-light { color: var(--gov-900); background: #fff; }
    .btn-ghost { color: var(--ink); border-color: var(--line); background: #fff; }
    .btn-danger { color: #a52837; border-color: #f2c8ce; background: #fff1f3; }
    .btn-success { color: #0d6848; border-color: #bfe4d4; background: #ebfaf4; }
    .btn-sm { min-height: 30px; padding: 5px 9px; border-radius: 8px; font-size: 11px; }
    .btn:disabled { cursor: not-allowed; opacity: 0.45; transform: none; }

    .stats-grid { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 13px; margin-top: 17px; }
    .stat-card {
      position: relative;
      overflow: hidden;
      min-height: 122px;
      padding: 18px;
      border: 1px solid rgba(216,226,238,0.94);
      border-radius: var(--radius);
      background: rgba(255,255,255,0.93);
      box-shadow: var(--shadow-soft);
      animation: rise-in 420ms ease both;
    }

    .stat-card:nth-child(2) { animation-delay: 35ms; }
    .stat-card:nth-child(3) { animation-delay: 70ms; }
    .stat-card:nth-child(4) { animation-delay: 105ms; }
    .stat-card:nth-child(5) { animation-delay: 140ms; }
    .stat-card::after { content: ""; position: absolute; inset: 0 auto 0 0; width: 3px; background: var(--accent, var(--gov-600)); }
    .stat-label { color: var(--muted); font-size: 11px; }
    .stat-value { margin: 9px 0 4px; color: var(--ink); font-family: var(--font-display); font-size: 29px; font-weight: 700; line-height: 1; }
    .stat-note { color: var(--muted); font-size: 10px; }
    .stat-note strong { color: var(--accent, var(--gov-700)); }

    .layout-2-1 { display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(300px, .75fr); gap: 17px; margin-top: 17px; }
    .layout-1-1 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 17px; margin-top: 17px; }
    .panel {
      overflow: hidden;
      border: 1px solid rgba(216,226,238,0.94);
      border-radius: var(--radius);
      background: rgba(255,255,255,0.95);
      box-shadow: var(--shadow-soft);
    }

    .panel-head {
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 16px;
      min-height: 60px;
      padding: 14px 18px;
      border-bottom: 1px solid #e7edf4;
    }

    .panel-title h3 { margin: 0; font-family: var(--font-display); font-size: 16px; }
    .panel-title p { margin: 4px 0 0; color: var(--muted); font-size: 10px; }
    .panel-body { padding: 17px 18px; }
    .panel-body.flush { padding: 0; }

    .toolbar {
      display: flex;
      align-items: center;
      justify-content: space-between;
      flex-wrap: wrap;
      gap: 12px;
      margin-bottom: 15px;
      padding: 14px;
      border: 1px solid var(--line);
      border-radius: 14px;
      background: rgba(255,255,255,0.88);
      box-shadow: var(--shadow-soft);
    }

    .filters, .toolbar-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; }
    .control {
      min-height: 36px;
      padding: 7px 10px;
      border: 1px solid var(--line);
      border-radius: 9px;
      outline: none;
      color: var(--ink);
      background: #fff;
    }

    .control:focus { border-color: var(--gov-500); box-shadow: 0 0 0 3px rgba(39,137,232,0.09); }
    .control-sm { min-height: 31px; padding: 5px 8px; font-size: 11px; }
    .table-wrap { width: 100%; overflow-x: auto; }
    table { width: 100%; border-collapse: collapse; }
    th {
      padding: 11px 13px;
      color: #65768c;
      font-size: 10px;
      font-weight: 700;
      text-align: left;
      white-space: nowrap;
      background: #f7f9fc;
      border-bottom: 1px solid #e2e9f1;
    }

    td { padding: 12px 13px; border-bottom: 1px solid #edf1f6; font-size: 11px; vertical-align: middle; }
    tbody tr { transition: 120ms ease; }
    tbody tr:hover { background: #f6faff; }
    tbody tr.clickable { cursor: pointer; }
    tbody tr:last-child td { border-bottom: 0; }
    .cell-main { font-size: 12px; font-weight: 700; }
    .cell-sub { margin-top: 4px; color: var(--muted); font-size: 9px; line-height: 1.45; }
    .cell-actions { display: flex; align-items: center; gap: 6px; white-space: nowrap; }

    .badge {
      display: inline-flex;
      align-items: center;
      gap: 5px;
      min-height: 22px;
      padding: 3px 8px;
      border: 1px solid transparent;
      border-radius: 999px;
      font-size: 9px;
      font-weight: 700;
      white-space: nowrap;
    }

    .badge::before { content: ""; width: 5px; height: 5px; border-radius: 50%; background: currentColor; }
    .badge-blue { color: #145fac; border-color: #c8dff7; background: #edf6ff; }
    .badge-green { color: #157052; border-color: #c8e7da; background: #effaf6; }
    .badge-orange { color: #ad6508; border-color: #f0d8b6; background: #fff8e9; }
    .badge-red { color: #b42d3c; border-color: #f0cbd0; background: #fff1f3; }
    .badge-gray { color: #657487; border-color: #dfe5ec; background: #f4f6f8; }
    .badge-gold { color: #8e6418; border-color: #e8dabd; background: #fff9e9; }
    .level { display: inline-grid; place-items: center; width: 25px; height: 25px; border-radius: 8px; font-family: var(--font-display); font-size: 12px; font-weight: 800; }
    .level-A { color: #9d2937; background: #ffecee; border: 1px solid #f3cbd1; }
    .level-B { color: #145fa9; background: #eaf4ff; border: 1px solid #c9def5; }
    .level-C { color: #687789; background: #f0f3f6; border: 1px solid #dce3ea; }

    .task-list { display: grid; gap: 9px; }
    .task-item {
      display: grid;
      grid-template-columns: 8px minmax(0, 1fr) auto;
      gap: 12px;
      align-items: center;
      padding: 12px;
      border: 1px solid var(--line);
      border-radius: 12px;
      background: #fff;
    }

    .task-priority { width: 8px; height: 40px; border-radius: 999px; background: var(--gov-500); }
    .task-priority.overdue { background: var(--red); }
    .task-priority.today { background: var(--orange); }
    .task-priority.high { background: var(--gold); }
    .task-copy strong { display: block; font-size: 12px; }
    .task-copy p { margin: 4px 0 0; color: var(--muted); font-size: 10px; }
    .task-actions { display: flex; gap: 6px; }

    .focus-list { display: grid; gap: 9px; }
    .focus-card {
      padding: 13px;
      border: 1px solid var(--line);
      border-radius: 12px;
      background: linear-gradient(135deg, #fff, #f8fbff);
      cursor: pointer;
    }

    .focus-card:hover { border-color: #b8d5f3; }
    .focus-top { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
    .focus-card h4 { margin: 0; font-size: 12px; }
    .focus-card p { margin: 7px 0 0; color: var(--muted); font-size: 10px; line-height: 1.6; }

    .kanban {
      display: grid;
      grid-auto-flow: column;
      grid-auto-columns: 270px;
      gap: 12px;
      min-height: 590px;
      overflow-x: auto;
      padding: 3px 2px 14px;
    }

    .kanban-col {
      align-self: start;
      overflow: hidden;
      border: 1px solid var(--line);
      border-radius: 14px;
      background: #f3f6fa;
    }

    .kanban-head { padding: 13px; border-top: 3px solid var(--stage-color, var(--gov-600)); background: #fff; }
    .kanban-head-row { display: flex; justify-content: space-between; align-items: center; }
    .kanban-head strong { font-size: 12px; }
    .kanban-head span { color: var(--muted); font-size: 10px; }
    .kanban-head small { display: block; margin-top: 5px; color: var(--muted); font-size: 9px; }
    .kanban-cards { display: grid; gap: 9px; padding: 9px; max-height: 690px; overflow-y: auto; }
    .kanban-card { padding: 12px; border: 1px solid #dde5ef; border-radius: 11px; background: #fff; box-shadow: 0 3px 10px rgba(29,60,96,0.05); }
    .kanban-card:hover { border-color: #b8d4f1; box-shadow: 0 7px 16px rgba(29,60,96,0.08); }
    .kanban-card h4 { margin: 0 0 6px; font-size: 12px; cursor: pointer; }
    .kanban-meta { display: flex; justify-content: space-between; gap: 7px; color: var(--muted); font-size: 9px; }
    .kanban-next { min-height: 42px; margin: 10px 0; padding: 8px; border-radius: 8px; color: #496079; font-size: 9px; line-height: 1.5; background: #f4f7fb; }
    .kanban-actions { display: flex; gap: 6px; }

    .progress { width: 100%; height: 7px; overflow: hidden; border-radius: 999px; background: #e8edf3; }
    .progress > span { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, var(--gov-600), #42a5f5); }
    .success-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
    .success-card { padding: 17px; border: 1px solid var(--line); border-radius: 15px; background: #fff; box-shadow: var(--shadow-soft); }
    .success-card-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; }
    .success-card h3 { margin: 0; font-family: var(--font-display); font-size: 16px; }
    .success-card .meta { margin-top: 5px; color: var(--muted); font-size: 10px; }
    .success-progress { display: flex; justify-content: space-between; margin: 17px 0 7px; color: var(--muted); font-size: 10px; }
    .next-milestone { margin: 14px 0; padding: 10px; border-left: 3px solid var(--gov-500); border-radius: 0 8px 8px 0; color: #38536f; font-size: 10px; line-height: 1.6; background: var(--gov-50); }

    .rights-card { overflow: hidden; margin-bottom: 14px; border: 1px solid var(--line); border-radius: 15px; background: #fff; box-shadow: var(--shadow-soft); }
    .rights-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 16px 18px; color: #fff; background: linear-gradient(100deg, var(--gov-900), var(--gov-700)); }
    .rights-head h3 { margin: 0; font-family: var(--font-display); font-size: 16px; }
    .rights-head p { margin: 4px 0 0; color: rgba(255,255,255,0.65); font-size: 9px; }
    .rights-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .right-item { min-height: 124px; padding: 15px; border-right: 1px solid #edf1f5; border-bottom: 1px solid #edf1f5; }
    .right-item:nth-child(3n) { border-right: 0; }
    .right-item h4 { margin: 0 0 7px; font-size: 11px; }
    .right-item p { min-height: 32px; margin: 0 0 11px; color: var(--muted); font-size: 9px; line-height: 1.6; }
    .right-foot { display: flex; align-items: center; justify-content: space-between; gap: 8px; }

    .funnel-list { display: grid; gap: 11px; }
    .funnel-row { display: grid; grid-template-columns: 92px minmax(0, 1fr) 52px; gap: 10px; align-items: center; }
    .funnel-row label { font-size: 10px; }
    .funnel-bar { height: 26px; overflow: hidden; border-radius: 7px; background: #eef2f6; }
    .funnel-bar span { display: flex; align-items: center; height: 100%; min-width: 18px; padding-left: 8px; border-radius: inherit; color: #fff; font-size: 9px; background: linear-gradient(90deg, var(--gov-800), var(--gov-500)); }
    .funnel-row strong { font-family: var(--font-display); font-size: 13px; text-align: right; }

    .warning-list { display: grid; gap: 9px; }
    .warning-item { display: flex; align-items: flex-start; gap: 10px; padding: 11px; border: 1px solid #f0d5d9; border-radius: 11px; background: #fff8f9; }
    .warning-mark { display: grid; place-items: center; width: 24px; height: 24px; flex: 0 0 24px; border-radius: 8px; color: #fff; font-size: 10px; font-weight: 800; background: var(--red); }
    .warning-item strong { display: block; font-size: 11px; }
    .warning-item p { margin: 4px 0 0; color: var(--muted); font-size: 9px; line-height: 1.5; }

    .empty { padding: 38px 20px; color: var(--muted); text-align: center; }
    .empty-mark { display: grid; place-items: center; width: 48px; height: 48px; margin: 0 auto 12px; border: 1px solid #c9d9ea; border-radius: 15px; color: var(--gov-700); font-family: var(--font-display); background: #f0f7ff; }
    .empty strong { display: block; color: var(--ink); font-size: 12px; }
    .empty p { margin: 6px 0 0; font-size: 10px; }

    .drawer-backdrop, .modal-backdrop {
      position: fixed;
      inset: 0;
      z-index: 80;
      visibility: hidden;
      opacity: 0;
      background: rgba(3, 20, 40, 0.42);
      backdrop-filter: blur(3px);
      transition: 180ms ease;
    }

    .drawer-backdrop.open, .modal-backdrop.open { visibility: visible; opacity: 1; }
    .drawer {
      position: absolute;
      inset: 0 0 0 auto;
      width: min(760px, 92vw);
      overflow-y: auto;
      background: #f6f9fc;
      box-shadow: -20px 0 55px rgba(4,30,62,0.18);
      transform: translateX(100%);
      transition: 220ms ease;
    }

    .drawer-backdrop.open .drawer { transform: translateX(0); }
    .drawer-head { position: sticky; top: 0; z-index: 4; padding: 20px 22px 14px; color: #fff; background: linear-gradient(110deg, var(--gov-950), var(--gov-700)); }
    .drawer-head-top { display: flex; justify-content: space-between; gap: 18px; }
    .drawer-head h2 { margin: 5px 0 7px; font-family: var(--font-display); font-size: 23px; }
    .drawer-head p { margin: 0; color: rgba(255,255,255,0.68); font-size: 10px; }
    .close-btn { display: grid; place-items: center; width: 34px; height: 34px; border: 1px solid rgba(255,255,255,0.20); border-radius: 10px; color: #fff; background: rgba(255,255,255,0.08); }
    .drawer-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
    .drawer-tabs { display: flex; gap: 5px; margin-top: 15px; overflow-x: auto; }
    .drawer-tab { padding: 8px 12px; border: 0; border-radius: 9px 9px 0 0; color: rgba(255,255,255,0.60); font-size: 10px; background: transparent; }
    .drawer-tab.active { color: var(--gov-900); background: #f6f9fc; }
    .drawer-body { padding: 18px 22px 38px; }

    .detail-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
    .detail-item { min-height: 78px; padding: 12px; border: 1px solid var(--line); border-radius: 11px; background: #fff; }
    .detail-item label { display: block; color: var(--muted); font-size: 9px; }
    .detail-item strong { display: block; margin-top: 8px; font-size: 11px; line-height: 1.5; }
    .detail-section { margin-top: 15px; padding: 16px; border: 1px solid var(--line); border-radius: 13px; background: #fff; }
    .detail-section h3 { margin: 0 0 12px; font-family: var(--font-display); font-size: 15px; }
    .detail-section > p { color: var(--muted); font-size: 10px; line-height: 1.7; }
    .quality-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 7px; }
    .quality-item { display: flex; align-items: center; gap: 8px; padding: 8px; border-radius: 9px; color: #66758a; font-size: 10px; background: #f5f7fa; }
    .quality-item.ok { color: #176f53; background: #edf9f4; }
    .quality-dot { display: grid; place-items: center; width: 18px; height: 18px; border-radius: 50%; color: #fff; font-size: 9px; background: #9ba8b7; }
    .quality-item.ok .quality-dot { background: var(--green); }

    .timeline { position: relative; display: grid; gap: 15px; padding-left: 19px; }
    .timeline::before { content: ""; position: absolute; left: 5px; top: 7px; bottom: 8px; width: 1px; background: #ccdae8; }
    .timeline-item { position: relative; }
    .timeline-item::before { content: ""; position: absolute; left: -18px; top: 5px; width: 9px; height: 9px; border: 2px solid #fff; border-radius: 50%; background: var(--gov-500); box-shadow: 0 0 0 1px #9bc6ef; }
    .timeline-item strong { font-size: 11px; }
    .timeline-item span { margin-left: 7px; color: var(--muted); font-size: 9px; }
    .timeline-item p { margin: 6px 0 0; color: #53677e; font-size: 10px; line-height: 1.65; }

    .checklist { display: grid; gap: 8px; }
    .check-item { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 10px; align-items: center; padding: 10px; border: 1px solid var(--line); border-radius: 10px; background: #fff; }
    .check-toggle { display: grid; place-items: center; width: 23px; height: 23px; border: 1px solid #b7c6d6; border-radius: 7px; color: transparent; background: #fff; }
    .check-toggle.done { color: #fff; border-color: var(--green); background: var(--green); }
    .check-copy strong { display: block; font-size: 10px; }
    .check-copy small { display: block; margin-top: 3px; color: var(--muted); font-size: 8px; }

    .modal {
      position: absolute;
      left: 50%;
      top: 50%;
      width: min(680px, calc(100vw - 28px));
      max-height: 88vh;
      overflow: hidden;
      border-radius: 17px;
      background: #fff;
      box-shadow: 0 28px 80px rgba(3,24,50,0.26);
      transform: translate(-50%, -47%) scale(.98);
      transition: 180ms ease;
    }

    .modal-backdrop.open .modal { transform: translate(-50%, -50%) scale(1); }
    .modal-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 15px; padding: 19px 21px; border-bottom: 1px solid var(--line); }
    .modal-head h2 { margin: 0; font-family: var(--font-display); font-size: 19px; }
    .modal-head p { margin: 5px 0 0; color: var(--muted); font-size: 10px; }
    .modal-head .close-btn { color: var(--muted); border-color: var(--line); background: #f6f8fb; }
    .modal-body { max-height: calc(88vh - 150px); overflow-y: auto; padding: 19px 21px; }
    .modal-foot { display: flex; justify-content: flex-end; gap: 9px; padding: 13px 21px; border-top: 1px solid var(--line); background: #f8fafc; }
    .form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
    .field { display: grid; gap: 6px; }
    .field.full { grid-column: 1 / -1; }
    .field label { color: #41566e; font-size: 10px; font-weight: 700; }
    .field label em { color: var(--red); font-style: normal; }
    .field input, .field select, .field textarea {
      width: 100%;
      min-height: 39px;
      padding: 8px 10px;
      border: 1px solid var(--line);
      border-radius: 9px;
      outline: none;
      color: var(--ink);
      background: #fff;
    }

    .field textarea { min-height: 82px; resize: vertical; line-height: 1.6; }
    .field input:focus, .field select:focus, .field textarea:focus { border-color: var(--gov-500); box-shadow: 0 0 0 3px rgba(39,137,232,0.09); }
    .field small { color: var(--muted); font-size: 9px; line-height: 1.5; }
    .form-section { grid-column: 1 / -1; margin-top: 4px; padding-top: 13px; border-top: 1px dashed #d8e1eb; }
    .form-section h3 { margin: 0 0 11px; color: var(--gov-800); font-family: var(--font-display); font-size: 14px; }
    .checkbox-row { display: flex; flex-wrap: wrap; gap: 7px; }
    .check-chip input { position: absolute; opacity: 0; pointer-events: none; }
    .check-chip span { display: block; padding: 6px 9px; border: 1px solid var(--line); border-radius: 999px; color: var(--muted); font-size: 9px; background: #fff; }
    .check-chip input:checked + span { color: var(--gov-700); border-color: #9bc5ee; background: var(--gov-50); }
    .help-box { padding: 12px; border: 1px solid #cbe0f5; border-radius: 10px; color: #45617d; font-size: 10px; line-height: 1.7; background: #f2f8ff; }

    .toast-wrap { position: fixed; z-index: 120; right: 20px; bottom: 20px; display: grid; gap: 8px; }
    .toast { min-width: 260px; max-width: 380px; padding: 12px 14px; border: 1px solid #bcd8f2; border-radius: 11px; color: #214565; font-size: 11px; background: #f3f9ff; box-shadow: var(--shadow); animation: toast-in 220ms ease both; }
    .toast.error { color: #8c2933; border-color: #e9c3c8; background: #fff4f5; }
    @keyframes toast-in { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: translateY(0); } }

    .settings-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
    .settings-card { padding: 18px; border: 1px solid var(--line); border-radius: 14px; background: #fff; box-shadow: var(--shadow-soft); }
    .settings-card.full { grid-column: 1 / -1; }
    .settings-card h3 { margin: 0 0 7px; font-family: var(--font-display); font-size: 16px; }
    .settings-card > p { margin: 0 0 16px; color: var(--muted); font-size: 10px; line-height: 1.7; }
    .account-row { display: flex; align-items: center; gap: 10px; padding: 10px 0; border-bottom: 1px solid #edf1f5; }
    .account-row:last-child { border-bottom: 0; }
    .account-copy strong { display: block; font-size: 11px; }
    .account-copy small { color: var(--muted); font-size: 9px; }
    .system-note { padding: 15px; border-left: 4px solid var(--gold); border-radius: 0 12px 12px 0; color: #5f512e; font-size: 10px; line-height: 1.8; background: #fff9e9; }

    @media (max-width: 1260px) {
      .stats-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
      .success-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
      .rights-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
      .right-item:nth-child(3n) { border-right: 1px solid #edf1f5; }
      .right-item:nth-child(2n) { border-right: 0; }
      .hero { grid-template-columns: 1fr; }
    }

    @media (max-width: 980px) {
      .sidebar { transform: translateX(-100%); transition: 200ms ease; }
      body.sidebar-open .sidebar { transform: translateX(0); }
      .main-shell { margin-left: 0; }
      .mobile-menu { display: grid; place-items: center; width: 38px; height: 38px; border: 1px solid var(--line); border-radius: 10px; color: var(--gov-800); background: #fff; }
      .topbar { padding: 12px 16px; }
      .page-heading { min-width: 0; }
      .page-heading small { display: none; }
      .page-heading h1 { font-size: 18px; }
      .search-box { display: none; }
      .content { padding: 20px 16px 42px; }
      .layout-2-1, .layout-1-1 { grid-template-columns: 1fr; }
    }

    @media (max-width: 700px) {
      .top-actions .icon-btn { display: none; }
      .role-box small { display: none; }
      .role-box { padding-right: 4px; }
      .hero { padding: 22px 19px; }
      .hero-flow { grid-template-columns: 1fr; }
      .flow-step { min-height: auto; display: grid; grid-template-columns: 30px 1fr; column-gap: 10px; }
      .flow-step span { grid-row: 1 / 3; margin: 0; }
      .stats-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
      .stat-card { min-height: 105px; padding: 15px; }
      .stat-value { font-size: 25px; }
      .success-grid, .rights-grid, .settings-grid { grid-template-columns: 1fr; }
      .settings-card.full { grid-column: auto; }
      .right-item, .right-item:nth-child(3n) { border-right: 0; }
      .form-grid, .detail-grid { grid-template-columns: 1fr; }
      .field.full { grid-column: auto; }
      .form-section { grid-column: auto; }
      .quality-grid { grid-template-columns: 1fr; }
      .drawer { width: 100vw; }
      .drawer-body { padding: 15px 14px 32px; }
      .drawer-head { padding: 17px 15px 12px; }
      .task-item { grid-template-columns: 7px 1fr; }
      .task-actions { grid-column: 2; }
    }
  
