    button:not(.band-btn):not(.band-tab):not(.detail-action):not(.side-link):not(.sign-out-btn):focus-visible,
    .btn-primary:focus-visible,
    .btn-secondary:focus-visible,
    .btn-ghost:focus-visible {
      outline: 2px solid color-mix(in srgb, var(--accent) 60%, white);
      outline-offset: 2px;
    }

    .btn-primary {
      background: var(--accent);
      color: #fff;
      border: 0;
      height: 42px;
      padding: 0 18px;
      border-radius: 21px;
      font: 800 14px var(--font-body);
      display: inline-flex;
      align-items: center;
      justify-content: center;
      text-decoration: none;
      cursor: pointer;
    }

    .btn-primary:hover:not(:disabled) {
      background: var(--accent-hover);
    }

    .btn-secondary {
      background: #fff;
      color: var(--text);
      border: 1.5px solid var(--border-strong);
      height: 42px;
      padding: 0 16px;
      border-radius: 21px;
      font: 700 14px var(--font-body);
      display: inline-flex;
      align-items: center;
      justify-content: center;
      text-decoration: none;
      cursor: pointer;
    }

    .btn-secondary:hover:not(:disabled) {
      background: var(--soft);
    }

    .btn-ghost {
      background: transparent;
      color: var(--muted);
      border: 0;
      height: 38px;
      padding: 0 18px;
      border-radius: 19px;
      font: 500 14px var(--font-body);
      display: inline-flex;
      align-items: center;
      justify-content: center;
      cursor: pointer;
    }

    .btn-ghost:hover:not(:disabled) {
      color: var(--text);
      background: #F3F4F6;
    }

    .btn-danger {
      background: #fff;
      color: #B42318;
      border: 1px solid #F1C0BA;
      height: 38px;
      padding: 0 18px;
      border-radius: 19px;
      font: 500 14px var(--font-body);
      display: inline-flex;
      align-items: center;
      justify-content: center;
      cursor: pointer;
    }

    .btn-danger:hover:not(:disabled) {
      background: #FEF3F2;
    }

    .msg {
      margin-top: 14px;
      font-size: 0.9rem;
    }

    .msg.error { color: var(--danger); }

    .field-problem {
      color: var(--danger);
      font-size: 13px;
      margin: 4px 0 10px;
    }

    .msg.success { color: var(--ok); }

    .inline-field {
      display: flex;
      align-items: center;
      gap: 8px;
      margin-bottom: 16px;
    }

    .inline-field input { width: 120px; margin-bottom: 0; }

    .inline-field span { color: var(--muted); }

    .check-col {
      width: 36px;
      text-align: center;
    }

    .actions-col {
      width: 44px;
      text-align: right;
    }

    .row-menu-btn {
      font-size: 1.2rem;
      line-height: 1;
      letter-spacing: 0.08em;
      padding: 4px 8px;
      color: var(--muted);
    }

    .row-menu-btn:hover { color: var(--text); }

    .row-menu {
      position: fixed;
      z-index: 30;
      min-width: 188px;
      background: var(--surface);
      border: 1px solid var(--border);
      border-radius: 8px;
      box-shadow: 0 8px 24px rgba(26, 29, 35, 0.14);
      padding: 6px;
    }

    .row-menu button {
      display: block;
      width: 100%;
      text-align: left;
      background: transparent;
      color: var(--text);
      font-weight: 500;
      padding: 8px 10px;
      border-radius: 6px;
    }

    .row-menu button:hover { background: var(--bg); }

    .status-line {
      margin: 0 0 16px;
      color: var(--muted);
      font-size: 0.95rem;
    }

    .table-wrap {
      overflow-x: auto;
      background: var(--surface);
      border: 1px solid var(--border);
      border-radius: 12px;
    }

    table {
      width: 100%;
      border-collapse: collapse;
      font-size: 0.9rem;
    }

    th, td {
      text-align: left;
      padding: 10px 12px;
      border-bottom: 1px solid var(--border);
      white-space: nowrap;
    }

    .table-wrap table th {
      height: 40px;
      padding: 0 12px;
      background: #FAFBFC;
      font-weight: 600;
      font-size: 11px;
      letter-spacing: 0.05em;
      text-transform: uppercase;
      color: var(--muted);
    }

    .table-wrap table td {
      padding: 10px 12px;
      border-bottom: 1px solid #EEF0F3;
    }

    th {
      background: #f8f9fb;
      font-weight: 600;
      font-size: 0.8rem;
      letter-spacing: 0.02em;
      text-transform: uppercase;
      color: var(--muted);
    }

    tbody tr:last-child td { border-bottom: none; }

    .table-wrap table tbody tr:hover { background: #F7F8FA; }

    tbody tr.row-click { cursor: pointer; }

    .empty, .error-banner {
      padding: 24px;
      color: var(--muted);
    }

    .error-banner { color: var(--danger); }

    .card {
      background: var(--surface);
      border: 1px solid var(--border);
      border-radius: var(--radius-lg);
      padding: 20px;
      margin-bottom: 16px;
    }

    .card h2 {
      margin: 0 0 14px;
      font-size: 15px;
      font-weight: 600;
    }

    .badge {
      display: inline-flex;
      align-items: center;
      height: 24px;
      padding: 0 10px;
      border-radius: 12px;
      font: 500 12px var(--font-body);
      background: #F1F3F6;
      color: #3B4352;
      border: 1px solid transparent;
      white-space: nowrap;
    }

    .badge-warn {
      background: #fef6e8;
      color: #8a5a12;
      border-color: #ead7b0;
    }

    .cell-with-badge,
    .kv-badge {
      display: inline-flex;
      align-items: center;
      gap: 8px;
      flex-wrap: wrap;
    }

    .action-row {
      display: flex;
      flex-wrap: wrap;
      gap: 8px;
    }

    .choice-row {
      display: flex;
      flex-wrap: wrap;
      gap: 8px;
      margin-bottom: 16px;
    }

    .choice {
      background: #fff;
      color: var(--text);
      border: 1px solid var(--border);
      border-radius: 8px;
      font-size: 0.9rem;
      padding: 8px 12px;
    }

    .choice.selected {
      background: color-mix(in srgb, var(--accent) 12%, white);
      color: var(--accent);
      border-color: var(--accent);
      font-weight: 600;
    }

    .badge-muted {
      background: #f3f4f6;
      color: var(--muted);
      border-color: var(--border);
    }

    .badge-row {
      display: flex;
      flex-wrap: wrap;
      gap: 6px;
    }

    .field-hint {
      color: var(--muted);
      font-size: 0.8rem;
      font-weight: 400;
      margin: -8px 0 16px;
    }

    .chip-list {
      display: flex;
      flex-wrap: wrap;
      gap: 8px;
      min-height: 32px;
      margin-bottom: 10px;
    }

    .chip {
      display: inline-flex;
      align-items: center;
      gap: 4px;
      background: #eef3f8;
      color: var(--accent);
      border: 1px solid #d5e0ec;
      border-radius: 999px;
      padding: 4px 8px 4px 10px;
      font-size: 0.85rem;
      font-weight: 600;
    }

    .chip button {
      background: transparent;
      color: var(--muted);
      padding: 0 4px;
      line-height: 1;
      font-size: 1rem;
    }

    .chip button:hover { color: var(--danger); }

    .add-inline {
      display: flex;
      gap: 8px;
      align-items: center;
    }

    .add-inline input {
      margin-bottom: 0;
      flex: 1;
    }

    .add-inline button { flex-shrink: 0; }

    .check-row {
      display: flex;
      align-items: center;
      gap: 8px;
      margin: 0 0 16px;
      font-size: 0.95rem;
    }

    .check-row input { margin: 0; }

    .check-row label { margin: 0; font-weight: 500; }

    .list-item {
      border-top: 1px solid var(--border);
      padding: 12px 0;
    }

    .list-item:first-of-type { border-top: none; padding-top: 0; }

    .list-meta {
      color: var(--muted);
      font-size: 0.85rem;
      margin-bottom: 4px;
    }

    .list-body { white-space: pre-wrap; }

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

    .modal-backdrop {
      position: fixed;
      inset: 0;
      background: rgba(14, 17, 23, 0.5);
      display: flex;
      align-items: center;
      justify-content: center;
      padding: 16px;
      z-index: 20;
    }

    .modal {
      background: #fff;
      border-radius: 16px;
      border: 1px solid var(--border);
      box-shadow: 0 24px 60px rgba(14, 17, 23, 0.25);
      padding: 24px;
      width: 100%;
      max-width: 520px;
      max-height: 90vh;
      overflow: auto;
    }

    .modal.modal-wide { max-width: 720px; }

    .modal.modal-with-picker {
      display: flex;
      flex-direction: column;
      overflow: hidden;
      max-height: 90vh;
      max-width: 560px;
    }

    .modal.modal-wide.modal-with-picker {
      max-width: 720px;
    }

    .modal.modal-with-picker h2 {
      flex-shrink: 0;
    }

    .modal.modal-with-picker form {
      display: flex;
      flex-direction: column;
      min-height: 0;
      flex: 1 1 auto;
      overflow: hidden;
    }

    .modal.modal-with-picker .modal-with-picker-body {
      flex: 1 1 auto;
      min-height: 0;
      overflow: auto;
    }

    .modal.modal-with-picker .modal-actions {
      flex-shrink: 0;
      margin-top: 0;
      padding-top: 12px;
      border-top: 1px solid var(--border);
      background: #fff;
    }

    .form-grid {
      display: grid;
      grid-template-columns: 1fr 1fr;
      gap: 0 12px;
    }

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

    .map-row {
      display: grid;
      grid-template-columns: 1fr 1fr;
      gap: 8px 12px;
      align-items: center;
      margin-bottom: 8px;
    }

    .map-row select { margin-bottom: 0; }

    .progress-track {
      height: 8px;
      background: var(--soft);
      border-radius: 4px;
      overflow: hidden;
      margin: 12px 0 16px;
    }

    .progress-fill {
      height: 100%;
      width: 0%;
      background: var(--accent);
    }

    .modal h2 {
      margin: 0 0 16px;
      font-size: 20px;
      font-weight: 700;
    }

    .modal-section {
      margin: 4px 0 12px;
      font-size: 1rem;
      font-weight: 600;
    }

    .modal-section.split {
      margin-top: 8px;
      padding-top: 16px;
      border-top: 1px solid var(--border);
    }

    .modal-actions {
      display: flex;
      justify-content: flex-end;
      gap: 8px;
      margin-top: 8px;
    }

    .row-menu {
      background: #fff;
      border: 1px solid var(--border);
      border-radius: var(--radius);
      box-shadow: 0 8px 24px rgba(16, 24, 40, 0.14);
      padding: 4px 0;
    }

    .row-menu button {
      padding: 9px 14px;
      font-size: 13px;
      width: 100%;
      text-align: left;
    }

    .row-menu button:hover {
      background: #F3F4F6;
    }

    .status-dot-cell {
      display: inline-flex;
      align-items: center;
      gap: 8px;
      white-space: nowrap;
    }

    .status-dot-cell .status-dot {
      width: 8px;
      height: 8px;
      border-radius: 50%;
      flex-shrink: 0;
    }

    .link-btn {
      border: 0;
      background: none;
      color: var(--accent);
      font: 500 13px var(--font-body);
      cursor: pointer;
      padding: 0;
    }

    .modal-sheet {
      padding: 0;
      overflow: hidden;
      display: flex;
      flex-direction: column;
      max-height: min(90vh, 760px);
    }

    .modal-sheet form {
      padding: 16px 20px 0;
      overflow: auto;
    }

    .modal-strip {
      background: var(--band-bg);
      color: #fff;
      padding: 16px 20px;
    }

    .modal-strip h2 {
      margin: 0;
      color: #fff;
    }

    .modal-strip-row {
      display: flex;
      justify-content: space-between;
      align-items: center;
      gap: 12px;
    }

    .modal-strip-sub {
      margin: 8px 0 0;
      color: var(--band-muted);
      font-size: 13px;
    }

    .modal-strip-close {
      border: 0;
      background: var(--band-surface);
      color: #fff;
      width: 32px;
      height: 32px;
      border-radius: 8px;
    }

    .modal-actions-sticky {
      position: sticky;
      bottom: 0;
      background: #fff;
      padding: 12px 20px 16px;
      margin: 0;
      border-top: 1px solid var(--border);
    }

    .req-tag {
      color: var(--muted);
      font-size: 11px;
      font-weight: 600;
    }

    .choice.selected::before {
      content: "✓ ";
    }

    .menu-divider {
      border: 0;
      border-top: 1px solid var(--border);
      margin: 4px 0;
    }

    .row-menu .menu-danger {
      color: var(--danger);
    }

    .app-toast {
      position: fixed;
      bottom: 24px;
      left: 50%;
      transform: translateX(-50%);
      z-index: 80;
      background: var(--band-bg);
      color: #fff;
      padding: 10px 16px;
      border-radius: 13px;
      font-size: 14px;
      box-shadow: 0 8px 24px rgba(27, 21, 48, 0.2);
    }

    .status-pill {
      display: inline-flex;
      align-items: center;
      height: 26px;
      padding: 0 10px;
      border-radius: 13px;
      font: 800 12px var(--font-body);
      white-space: nowrap;
    }

    .status-pill.violet { background: var(--soft); color: var(--accent); }
    .status-pill.green { background: var(--ok-bg); color: var(--ok); }
    .status-pill.coral { background: var(--attention-bg); color: var(--attention); }
    .status-pill.amber { background: var(--wait-bg); color: var(--wait); }
    .status-pill.grey { background: var(--soft); color: var(--muted); }

    .stat-tile .stat-label {
      margin: 0;
      font: 800 12px var(--font-body);
      letter-spacing: 0.05em;
      text-transform: uppercase;
      color: var(--muted);
    }

    .stat-tile .stat-value {
      margin: 4px 0 0;
      font-family: var(--font-display);
      font-weight: 800;
      font-size: 30px;
      line-height: 1.1;
      color: var(--text);
    }

    .stat-tile .stat-pace {
      margin: 6px 0 0;
      font-size: 13px;
      color: var(--muted);
    }

    .sheet-handle { display: none; }

    @media (max-width: 759px) {
      .modal-backdrop.is-sheet {
        align-items: flex-end;
        padding: 0;
      }

      .modal-backdrop.is-sheet .modal {
        width: 100%;
        max-width: none;
        margin: 0;
        max-height: 92vh;
        border-radius: 28px 28px 0 0;
        animation: kit-sheet-in 220ms ease;
      }

      .modal-backdrop.is-sheet .sheet-handle {
        display: block;
        width: 40px;
        height: 5px;
        margin: 10px auto 8px;
        border-radius: 3px;
        background: var(--border-strong);
        flex: none;
        touch-action: none;
      }

      .modal-backdrop.is-sheet .modal.is-dragging {
        animation: none;
        transition: none;
      }

      .btn-primary,
      .btn-secondary,
      .band-btn {
        min-height: 44px;
        height: 44px;
        border-radius: 22px;
      }
    }

    @keyframes kit-sheet-in {
      from { transform: translateY(100%); }
      to { transform: translateY(0); }
    }

    .kit-section { margin: 0 0 28px; }
    .kit-section h2 { margin: 0 0 10px; font-size: 20px; font-weight: 800; }
    .kit-swatches {
      display: grid;
      grid-template-columns: repeat(auto-fill, minmax(148px, 1fr));
      gap: 10px;
    }
    .kit-swatch {
      background: var(--surface);
      border: 1px solid var(--border);
      border-radius: var(--radius);
      overflow: hidden;
    }
    .kit-swatch i { display: block; height: 48px; }
    .kit-swatch span, .kit-swatch small {
      display: block;
      padding: 0 10px;
    }
    .kit-swatch span { padding-top: 8px; font-size: 12px; font-weight: 700; }
    .kit-swatch small { padding-bottom: 8px; color: var(--muted); font-size: 11px; }
    .kit-row { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
    .kit-type { display: flex; flex-direction: column; gap: 8px; }
    .kit-type-display { margin: 0; font-family: var(--font-display); font-weight: 800; font-size: 34px; line-height: 1.1; }
    .kit-type-title { margin: 0; font-family: var(--font-display); font-weight: 800; font-size: 20px; }
    .kit-type-body { margin: 0; font-size: 16px; }
    .kit-type-secondary { margin: 0; font-size: 14px; color: var(--muted); }
    .kit-type-label { margin: 0; font: 800 12px var(--font-body); letter-spacing: 0.05em; text-transform: uppercase; color: var(--muted); }
    .kit-dark {
      display: flex;
      flex-wrap: wrap;
      gap: 10px;
      align-items: center;
      background: var(--band-bg);
      border-radius: var(--radius-lg);
      padding: 16px;
    }
    #styleguide-view .band-card { padding: 20px 22px 8px; }
