    :root {
      color-scheme: light;
      --bg: #eef4f7;
      --bg-soft: #f7fafc;
      --panel: #ffffff;
      --text: #172033;
      --muted: #5f6f7f;
      --line: #d7e1e8;
      --line-strong: #bdccd7;
      --accent: #116a75;
      --accent-strong: #0b4d56;
      --accent-soft: #e5f3f5;
      --blue: #285a8f;
      --blue-soft: #e8f0f8;
      --amber: #8a6418;
      --amber-soft: #fff6dd;
      --danger: #9f2d20;
      --danger-soft: #f8e9e6;
      --ok: #1f6b43;
      --ok-soft: #e7f4ed;
      --shadow: 0 14px 36px rgba(24, 50, 71, 0.09);
      --shadow-soft: 0 8px 22px rgba(24, 50, 71, 0.07);
    }
    * { box-sizing: border-box; }
    body {
      margin: 0;
      min-height: 100vh;
      background:
        linear-gradient(135deg, rgba(17, 106, 117, 0.08), transparent 34%),
        linear-gradient(315deg, rgba(40, 90, 143, 0.07), transparent 30%),
        var(--bg);
      color: var(--text);
      font-family: Arial, Helvetica, sans-serif;
      line-height: 1.45;
    }
    .shell {
      width: min(var(--shell-width), calc(100% - 32px));
      margin: 0 auto;
      padding: 22px 0 44px;
    }
    .topbar {
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 16px;
      margin-bottom: 20px;
      padding: 12px 14px;
      background: rgba(255, 255, 255, 0.86);
      border: 1px solid rgba(215, 225, 232, 0.9);
      border-radius: 8px;
      box-shadow: 0 8px 24px rgba(24, 50, 71, 0.06);
      backdrop-filter: blur(8px);
    }
    .brand {
      display: inline-flex;
      align-items: center;
      gap: 10px;
      font-size: 20px;
      font-weight: 700;
      color: var(--text);
      text-decoration: none;
    }
    .brand-icon {
      display: inline-grid;
      place-items: center;
      width: 42px;
      height: 42px;
      border-radius: 7px;
      background: var(--accent);
      color: #fff;
      font-size: 22px;
      font-weight: 700;
      line-height: 1;
      box-shadow: 0 8px 18px rgba(17, 106, 117, 0.18);
    }
    .brand-text {
      display: flex;
      flex-direction: column;
      line-height: 1.05;
      color: var(--text);
    }
    .brand-text small {
      margin-top: 3px;
      color: var(--muted);
      font-size: 12px;
      font-weight: 700;
      text-transform: uppercase;
      letter-spacing: .04em;
    }
    .nav {
      display: flex;
      gap: 10px;
      align-items: center;
      flex-wrap: wrap;
    }
    a, .link-button {
      color: var(--accent);
      text-decoration: none;
      font-weight: 600;
    }
    .nav a, .nav .link-button {
      border-radius: 6px;
      padding: 7px 9px;
    }
    .nav a:hover, .nav .link-button:hover {
      background: var(--accent-soft);
    }
    .link-button {
      border: 0;
      background: transparent;
      cursor: pointer;
      font: inherit;
    }
    .panel {
      background: var(--panel);
      border: 1px solid var(--line);
      border-radius: 8px;
      padding: 24px;
      box-shadow: var(--shadow);
    }
    .workbench {
      display: grid;
      gap: 20px;
    }
    .panel-header {
      display: flex;
      justify-content: space-between;
      align-items: flex-start;
      gap: 16px;
      margin-bottom: 18px;
    }
    .panel-header h1 {
      margin-bottom: 6px;
    }
    .panel-kicker {
      margin: 0;
      max-width: 680px;
      color: var(--muted);
    }
    h1 {
      margin: 0 0 18px;
      font-size: 26px;
      line-height: 1.2;
    }
    h2 {
      margin: 22px 0 10px;
      font-size: 18px;
    }
    label {
      display: block;
      margin: 14px 0 6px;
      font-weight: 700;
    }
    input, select {
      width: 100%;
      border: 1px solid var(--line);
      border-radius: 6px;
      padding: 12px 12px;
      font-size: 16px;
      background: #fff;
      color: var(--text);
    }
    input:focus, select:focus, textarea:focus {
      outline: 3px solid rgba(17, 106, 117, 0.16);
      border-color: var(--accent);
    }
    textarea {
      width: 100%;
      min-height: 96px;
      border: 1px solid var(--line);
      border-radius: 6px;
      padding: 11px 12px;
      font-size: 16px;
      font-family: inherit;
      resize: vertical;
    }
    input[type="checkbox"] {
      width: auto;
      margin-right: 8px;
    }
    button.primary {
      margin-top: 16px;
      border: 0;
      border-radius: 6px;
      background: var(--accent);
      color: white;
      padding: 12px 16px;
      font-size: 16px;
      font-weight: 700;
      cursor: pointer;
      box-shadow: 0 8px 18px rgba(17, 106, 117, 0.18);
    }
    button.primary:hover { background: var(--accent-strong); }
    .grid {
      display: grid;
      grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
      gap: 14px;
    }
    .quick-actions {
      display: grid;
      grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
      gap: 12px;
      margin: 4px 0 20px;
      padding: 14px;
      border: 1px solid var(--line);
      border-radius: 8px;
      background: #f9fbfc;
    }
    .tool {
      display: block;
      border: 1px solid var(--line);
      border-radius: 8px;
      padding: 17px;
      background: linear-gradient(180deg, #ffffff, var(--bg-soft));
      min-height: 118px;
      transition: border-color .15s ease, transform .15s ease, box-shadow .15s ease;
    }
    .priority-tool {
      min-height: 102px;
      background: #ffffff;
      box-shadow: var(--shadow-soft);
    }
    .tool:hover {
      border-color: var(--line-strong);
      transform: translateY(-1px);
      box-shadow: 0 10px 22px rgba(24, 50, 71, 0.08);
    }
    .tool strong {
      display: block;
      margin-bottom: 6px;
      color: var(--text);
    }
    .tool span {
      color: var(--muted);
      font-weight: 400;
    }
    .tool[hidden] {
      display: none;
    }
    .tool-search {
      margin: 4px 0 22px;
      padding: 14px;
      border: 1px solid var(--line);
      border-radius: 8px;
      background: var(--bg-soft);
    }
    .tool-search label {
      margin-top: 0;
    }
    .empty-tools {
      display: none;
      margin-top: 12px;
    }
    .empty-tools.visible {
      display: block;
    }
    .result {
      white-space: pre-wrap;
      overflow-wrap: anywhere;
      border: 1px solid var(--line-strong);
      border-radius: 8px;
      padding: 16px;
      background: #fbfdfe;
      margin-top: 18px;
      box-shadow: inset 3px 0 0 var(--accent);
    }
    .error {
      color: var(--danger);
      font-weight: 700;
      margin-bottom: 12px;
      border: 1px solid #edc7c0;
      background: var(--danger-soft);
      border-radius: 6px;
      padding: 10px 12px;
    }
    .muted { color: var(--muted); }
    .auth-card {
      max-width: 460px;
      margin: 6vh auto 0;
    }
    .account-summary {
      display: grid;
      grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
      gap: 12px;
      margin-bottom: 22px;
    }
    .summary-item {
      border: 1px solid var(--line);
      border-radius: 8px;
      padding: 14px;
      background: var(--bg-soft);
    }
    .summary-item span {
      display: block;
      color: var(--muted);
      font-size: 13px;
      font-weight: 700;
      text-transform: uppercase;
      letter-spacing: .04em;
      margin-bottom: 4px;
    }
    .summary-item strong {
      display: block;
      font-size: 18px;
    }
    .actions {
      display: flex;
      align-items: center;
      gap: 10px;
      flex-wrap: wrap;
    }
    .row-actions {
      display: flex;
      gap: 10px;
      align-items: center;
      flex-wrap: wrap;
    }
    .bulk-actions {
      display: flex;
      align-items: flex-end;
      gap: 12px;
      flex-wrap: wrap;
      margin-top: 14px;
      padding: 14px;
      border: 1px solid var(--line);
      border-radius: 8px;
      background: var(--bg-soft);
    }
    .bulk-actions label {
      margin-top: 0;
    }
    .bulk-actions input {
      max-width: 180px;
    }
    .bulk-actions button.primary {
      margin-top: 0;
    }
    .admin-table-wrap {
      overflow-x: auto;
      margin-top: 14px;
      border: 1px solid var(--line);
      border-radius: 8px;
      background: #fff;
    }
    .admin-table-wrap table {
      min-width: 920px;
      margin-top: 0;
      border: 0;
      border-radius: 0;
    }
    .admin-table-wrap th {
      position: sticky;
      top: 0;
      z-index: 1;
    }
    .user-cell strong {
      display: block;
      margin-bottom: 4px;
    }
    .user-meta {
      display: grid;
      gap: 2px;
    }
    .access-badges {
      display: flex;
      flex-direction: column;
      gap: 6px;
    }
    .status-pill {
      display: inline-flex;
      align-items: center;
      width: max-content;
      border-radius: 999px;
      padding: 4px 8px;
      background: var(--ok-soft);
      color: var(--ok);
      font-size: 12px;
      font-weight: 700;
    }
    .status-pill.off {
      background: var(--amber-soft);
      color: var(--amber);
    }
    .access-toggle-form {
      display: grid;
      gap: 8px;
    }
    .access-toggle-form label {
      margin: 0;
    }
    .access-toggle-form button.primary {
      width: max-content;
      margin-top: 0;
      padding: 8px 10px;
      font-size: 14px;
    }
    table {
      width: 100%;
      border-collapse: collapse;
      margin-top: 14px;
      background: #fff;
      border: 1px solid var(--line);
      border-radius: 8px;
      overflow: hidden;
    }
    th, td {
      border-bottom: 1px solid var(--line);
      padding: 11px 8px;
      text-align: left;
      vertical-align: top;
    }
    th {
      color: var(--muted);
      font-size: 13px;
      text-transform: uppercase;
      letter-spacing: .03em;
      background: var(--bg-soft);
    }
    .status {
      display: inline-block;
      border-radius: 6px;
      padding: 4px 8px;
      font-size: 13px;
      font-weight: 700;
      background: var(--ok-soft);
      color: var(--ok);
    }
    .status.off {
      background: var(--amber-soft);
      color: var(--amber);
    }
    .danger-button {
      border: 0;
      background: transparent;
      color: var(--danger);
      font: inherit;
      font-weight: 700;
      cursor: pointer;
      padding: 0;
    }
    .notice {
      border: 1px solid #e7d59a;
      background: var(--amber-soft);
      color: #4d3a0f;
      border-radius: 8px;
      padding: 14px;
      margin-top: 14px;
    }
    .two-col {
      display: grid;
      grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
      gap: 14px;
    }
    .form-panel form {
      display: grid;
      gap: 14px;
    }
    .form-grid {
      display: grid;
      grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
      gap: 14px;
      padding: 14px;
      border: 1px solid var(--line);
      border-radius: 8px;
      background: var(--bg-soft);
    }
    .field-unit label {
      margin-top: 0;
    }
    .field-unit .unit {
      display: inline-block;
      margin-top: 5px;
      color: var(--muted);
      font-size: 13px;
      font-weight: 700;
    }
    .section-title {
      margin-top: 26px;
      margin-bottom: 12px;
      color: var(--muted);
      font-size: 13px;
      font-weight: 700;
      text-transform: uppercase;
      letter-spacing: .04em;
    }
    .hp-field {
      position: absolute;
      left: -10000px;
      top: auto;
      width: 1px;
      height: 1px;
      overflow: hidden;
    }
    @media (max-width: 640px) {
      .shell { width: min(100% - 20px, var(--shell-width)); padding-top: 10px; }
      .topbar { align-items: flex-start; flex-direction: column; }
      .nav { width: 100%; gap: 6px; }
      .nav a, .nav .link-button { padding: 8px 7px; }
      .brand { font-size: 17px; }
      .brand-icon { width: 38px; height: 38px; }
      .brand-text small { display: none; }
      .panel { padding: 18px; }
      .panel-header { display: block; }
      .quick-actions, .form-grid { padding: 12px; }
      h1 { font-size: 23px; }
      th, td { padding: 10px 6px; }
    }
