
    :root {

      --bg: #f5f1ea;

      --panel: #ffffff;

      --muted: #6b7280;

      --text: #1f2937;

      --accent: #0f766e;

      --accent-soft: #d9f3ee;

      --warn: #f97316;

      --border: #e5e7eb;

      --shadow: 0 14px 40px rgba(17, 24, 39, 0.08);

    }

    * { box-sizing: border-box; }

    body {

      margin: 0;

      background: radial-gradient(circle at 20% 20%, #fce8d5 0, #f5f1ea 26%, #f5f1ea 100%);

      font-family: 'Space Grotesk', 'Inter', system-ui, -apple-system, sans-serif;

      color: var(--text);

      line-height: 1.6;

    }

    a { color: var(--accent); text-decoration: none; }

    a:hover { text-decoration: underline; }

    .page {

      max-width: 1400px;

      margin: 0 auto 64px;

      padding: 32px 24px;

    }

    .hidden { display: none !important; }

    .auth-overlay {
      position: fixed;
      inset: 0;
      background: linear-gradient(135deg, #0f766e, #0ea5e9);
      display: grid;
      place-items: center;
      z-index: 9999;
      color: #0b1729;
    }
    .auth-box {
      background: #fff;
      padding: 28px;
      border-radius: 16px;
      width: min(360px, 90vw);
      box-shadow: 0 18px 44px rgba(0,0,0,0.15);
      display: grid;
      gap: 12px;
    }
    .auth-box h2 { margin: 0; }
    .auth-box p { margin: 0; color: #4b5563; }
    .modal-overlay {
      position: fixed;
      inset: 0;
      background: rgba(0,0,0,0.45);
      display: none;
      justify-content: center;
      align-items: center;
      z-index: 9000;
      padding: 16px;
    }
    .modal-overlay.active { display: flex; }
    .modal {
      background: #fff;
      border-radius: 16px;
      padding: 18px;
      max-width: 640px;
      width: 100%;
      box-shadow: 0 18px 44px rgba(0,0,0,0.2);
    }
    .modal-header {
      display: flex;
      justify-content: space-between;
      align-items: center;
      margin-bottom: 12px;
    }
    .modal-close {
      border: none;
      background: #f3f4f6;
      border-radius: 50%;
      width: 32px;
      height: 32px;
      cursor: pointer;
      font-weight: 700;
    }

    }

    header {

      display: grid;

      grid-template-columns: 1fr auto;

      gap: 16px;

      align-items: center;

      margin-bottom: 24px;

    }

    .eyebrow {

      text-transform: uppercase;

      letter-spacing: 0.1em;

      font-size: 12px;

      color: var(--muted);

      margin: 0 0 8px;

    }

    h1 {

      margin: 0 0 8px;

      font-size: 34px;

      letter-spacing: -0.02em;

    }

    .lede {

      margin: 0;

      color: #4b5563;

      max-width: 700px;

    }

    .hero-actions {

      display: flex;

      gap: 12px;

      flex-wrap: wrap;

      align-items: center;

      margin-top: 12px;

    }

    button, input, select, textarea {

      font-family: inherit;

    }

    .btn {

      border: none;

      border-radius: 12px;

      padding: 10px 14px;

      font-weight: 600;

      cursor: pointer;

      transition: transform 0.08s ease, box-shadow 0.1s ease, background 0.2s;

    }

    .btn-primary {

      background: linear-gradient(135deg, var(--accent), #12a089);

      color: white;

      box-shadow: 0 10px 30px rgba(15, 118, 110, 0.25);

    }

    .btn-ghost {

      background: rgba(15, 118, 110, 0.1);

      color: var(--accent);

      border: 1px solid rgba(15, 118, 110, 0.2);

    }

    .btn-warning {

      background: #fff7ed;

      color: #c2410c;

      border: 1px solid #fed7aa;

    }

    .btn:hover { transform: translateY(-1px); }

    .btn:active { transform: translateY(0); }

    .badge {

      padding: 8px 12px;

      border-radius: 12px;

      background: var(--accent-soft);

      color: var(--accent);

      font-weight: 600;

      display: inline-flex;

      align-items: center;

      gap: 8px;

    }

    .nav {
      display: inline-flex;
      gap: 10px;
      margin: 12px 0 20px;
    }
    .nav button {
      border: 1px solid var(--border);
      background: #fff;
      padding: 10px 14px;
      border-radius: 12px;
      font-weight: 600;
      cursor: pointer;
      color: var(--text);
    }
    .nav button.active {
      background: var(--accent-soft);
      color: var(--accent);
      border-color: rgba(15, 118, 110, 0.4);
    }

    .stats {

      display: grid;

      grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));

      gap: 16px;

      margin: 20px 0 24px;

    }

    .card {

      background: var(--panel);

      border-radius: 18px;

      padding: 16px;

      border: 1px solid var(--border);

      box-shadow: var(--shadow);

    }

    .card h3 { margin: 4px 0 8px; font-size: 18px; }

    .card small { color: var(--muted); }

    .muted { color: var(--muted); }

    .big-number { font-size: 28px; font-weight: 700; }

    .progress {

      width: 100%;

      background: #e5e7eb;

      border-radius: 10px;

      height: 10px;

      overflow: hidden;

      margin-top: 6px;

    }

    .progress span {

      display: block;

      height: 100%;

      background: linear-gradient(90deg, var(--accent), #0ea5e9);

      width: 0%;

      transition: width 0.3s ease;

    }

    .filters {

      display: grid;

      grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));

      gap: 12px;

      margin-bottom: 16px;

      align-items: center;

    }

    .input, .select, textarea {

      width: 100%;

      border-radius: 10px;

      border: 1px solid var(--border);

      padding: 10px 12px;

      background: #fff;

      color: var(--text);

    }

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

    .input:focus, .select:focus, textarea:focus {

      outline: 2px solid rgba(15, 118, 110, 0.2);

      border-color: rgba(15, 118, 110, 0.4);

    }

    .layout {

      display: block;

    }

    .table-wrap { overflow: auto; }

    table {

      width: 100%;

      border-collapse: collapse;

      min-width: 780px;

    }

    thead {

      background: #f9fafb;

      position: sticky;

      top: 0;

      z-index: 1;

    }

    th, td {

      padding: 10px 8px;

      text-align: left;

      border-bottom: 1px solid #f1f2f4;

      font-size: 14px;

    }

    tbody tr:hover { background: #f9fafb; }

    .pill {

      display: inline-flex;

      align-items: center;

      gap: 6px;

      padding: 4px 10px;

      border-radius: 999px;

      font-weight: 600;

      font-size: 12px;

    }

    .pill.high { background: #fef2f2; color: #b91c1c; }

    .pill.medium { background: #fff7ed; color: #c2410c; }

    .pill.low { background: #ecfdf3; color: #15803d; }

    .status {

      display: inline-flex;

      align-items: center;

      gap: 6px;

      padding: 4px 8px;

      border-radius: 10px;

      font-weight: 600;

      font-size: 12px;

    }

    .status.have { background: #ecfdf3; color: #15803d; }

    .status.need { background: #fff1f2; color: #be123c; }

    .actions {

      display: flex;

      gap: 6px;

      flex-wrap: wrap;

    }

    .actions button {

      padding: 6px 10px;

      font-size: 12px;

      border-radius: 10px;

      border: 1px solid var(--border);

      background: #f8fafc;

      cursor: pointer;

    }

    .actions button:hover { background: #eef2f7; }

.form-grid {

  display: grid;

  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));

  gap: 10px;

}
.field {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.field-label {
  font-size: 12px;
  font-weight: 600;
  color: var(--muted);
}

    .section-title {

      display: flex;

      justify-content: space-between;

      align-items: center;

      margin-bottom: 10px;

    }

    .mini-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }

    .mini-card {

      border: 1px solid var(--border);

      padding: 10px 12px;

      border-radius: 12px;

      display: grid;

      gap: 6px;

      background: #fff;

    }

    .mini-card strong { font-size: 15px; }

    .tag {

      display: inline-block;

      padding: 4px 8px;

      border-radius: 10px;

      background: #eef2ff;

      color: #4338ca;

      font-weight: 600;

      font-size: 12px;

    }

    .helper-actions {

      display: flex;

      flex-wrap: wrap;

      gap: 8px;

      margin-top: 8px;

    }

.table-top {

  display: flex;

  justify-content: space-between;

      align-items: center;

      gap: 10px;

  margin-bottom: 10px;

  flex-wrap: wrap;

}
.table-controls {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
}
.table-controls select,
.table-controls button {
  width: 100%;
  max-width: 220px;
}
    .group-row {
      background: #f3f4f6;
      font-weight: 700;
    }
    .group-row td {
      padding-top: 12px;
      padding-bottom: 12px;
    }
    .view { display: none; }
    .view.active { display: block; }

    @media (max-width: 960px) {

      header { grid-template-columns: 1fr; }

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

    }

