    .service-area-grid {
      display: grid;
      grid-template-columns: 1fr 1fr;
      gap: 20px 24px;
    }

    .service-area-grid h3 {
      margin: 0 0 10px;
      font-size: 0.9rem;
    }

    @media (max-width: 700px) {
      .service-area-grid { grid-template-columns: 1fr; }
    }

    .logo-row {
      display: flex;
      align-items: flex-end;
      gap: 12px;
      margin-bottom: 8px;
    }

    .logo-preview {
      display: block;
      width: 80px;
      height: 80px;
      object-fit: contain;
      border: 1px solid var(--border);
      border-radius: 8px;
      background: #fff;
      margin: 0;
    }

    .toggle-row {
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 16px;
      padding: 12px 0;
      border-bottom: 1px solid var(--border);
    }

    .toggle-row:last-child { border-bottom: none; }

    .toggle-row > span,
    .toggle-row .module-name {
      font-weight: 600;
      font-size: 0.95rem;
    }

    .toggle-row .field-hint {
      margin: 4px 0 0;
      font-weight: 400;
    }

    .coming-soon {
      display: inline-block;
      margin-left: 8px;
      padding: 1px 6px;
      border-radius: 999px;
      background: #EEF0F3;
      color: var(--muted);
      font-size: 11px;
      font-weight: 600;
      vertical-align: middle;
    }

    .toggle input:disabled + .toggle-slider {
      opacity: 0.55;
      cursor: not-allowed;
    }

    .module-tiles {
      display: flex;
      flex-wrap: wrap;
      gap: 8px;
      padding: 14px 16px 8px;
    }

    .module-tile {
      min-width: 120px;
      flex: 1 1 120px;
      max-width: 180px;
      background: #FAFBFC;
      border: 1px solid var(--border);
      border-radius: 10px;
      padding: 10px 12px;
    }

    .module-tile-count {
      font-size: 13px;
      font-weight: 600;
      color: var(--text);
    }

    .module-tile-label {
      margin-top: 2px;
      font-size: 12px;
      color: var(--muted);
    }

    .offices-bulk-bar {
      display: flex;
      flex-wrap: wrap;
      align-items: center;
      gap: 8px;
      padding: 8px 16px 14px;
      font-size: 13px;
      color: var(--text);
    }

    .offices-bulk-bar select {
      width: auto;
      margin-bottom: 0;
      min-width: 160px;
    }

    .module-dot {
      width: 22px;
      height: 22px;
      border-radius: 50%;
      border: 2px solid var(--border);
      background: #fff;
      padding: 0;
      display: inline-flex;
      align-items: center;
      justify-content: center;
      color: #fff;
      cursor: pointer;
    }

    .module-dot.on {
      background: var(--accent);
      border-color: var(--accent);
    }

    .module-dot:disabled {
      opacity: 0.45;
      cursor: not-allowed;
    }

    .toggle {
      position: relative;
      width: 44px;
      height: 24px;
      flex-shrink: 0;
    }

    .toggle input {
      opacity: 0;
      width: 0;
      height: 0;
      position: absolute;
    }

    .toggle-slider {
      position: absolute;
      inset: 0;
      background: #c5cbd3;
      border-radius: 999px;
      cursor: pointer;
    }

    .toggle input:checked + .toggle-slider {
      background: var(--accent);
    }

    .toggle-slider::before {
      content: "";
      position: absolute;
      height: 18px;
      width: 18px;
      left: 3px;
      top: 3px;
      background: #fff;
      border-radius: 50%;
      transition: transform 0.15s ease;
    }

    .toggle input:checked + .toggle-slider::before {
      transform: translateX(20px);
    }

    .sidebar-toggle {
      background: transparent;
      border: 1px solid #2A3345;
      color: var(--sidebar-text);
      border-radius: var(--radius);
      min-height: 36px;
      padding: 0 12px;
      cursor: pointer;
      font: 500 13px var(--font-body);
      display: flex;
      align-items: center;
      justify-content: center;
      gap: 8px;
    }

    .create-office-wrap {
      margin-bottom: 14px;
    }

    .create-office-fixed {
      margin: 0 0 4px;
      font-weight: 600;
    }

    .usage-meter h1 {
      margin: 0 0 4px;
    }

    .usage-used-line {
      font-size: 18px;
      font-weight: 600;
      margin: 12px 0 8px;
    }

    .usage-chip {
      display: inline-block;
      padding: 2px 8px;
      border-radius: 999px;
      background: #EEF0F3;
      font-size: 12px;
      font-weight: 600;
    }

    .usage-chip-amber {
      background: #FEF3C7;
      color: #B45309;
    }

    .usage-chip-red {
      background: #FEE2E2;
      color: #B91C1C;
    }

    .usage-bar {
      height: 10px;
      background: #EEF0F3;
      border-radius: 999px;
      overflow: hidden;
      margin: 10px 0 16px;
    }

    .usage-bar-fill {
      height: 100%;
      background: #2B4EFF;
      border-radius: 999px;
    }

    .usage-bar-fill.is-warn { background: #D97706; }

    .usage-bar-fill.is-over { background: #DC2626; }

    .usage-stats {
      display: grid;
      grid-template-columns: repeat(4, minmax(0, 1fr));
      gap: 12px;
      margin-bottom: 12px;
    }

    .usage-stats .muted {
      display: block;
      font-size: 12px;
    }

    .usage-heads-up {
      background: #FFFBEB;
      border: 1px solid #F59E0B;
      border-radius: 10px;
      padding: 10px 12px;
    }

    #usage-body {
      padding: 24px;
    }

    #usage-view .page-band h1,
    #usage-body h1 {
      font-size: 20px;
      margin: 0 0 8px;
    }

    .usage-section {
      margin-top: 28px;
    }

    .usage-section h2 {
      margin: 0 0 12px;
      font-size: 13px;
      font-weight: 600;
      letter-spacing: 0.06em;
      text-transform: uppercase;
      color: var(--muted);
    }

    .usage-split {
      display: grid;
      grid-template-columns: 1fr 1fr;
      gap: 16px;
      margin-top: 20px;
    }

    .usage-split .usage-section {
      margin-top: 0;
      border: 1px solid var(--border);
      border-radius: 14px;
      padding: 16px;
    }

    .usage-meter .btn-secondary {
      margin-top: 12px;
      min-height: 44px;
    }

    .usage-type-list {
      list-style: none;
      padding: 0;
      margin: 0;
    }

    .usage-type-list li {
      display: flex;
      justify-content: space-between;
      padding: 8px 0;
      border-bottom: 1px solid var(--border);
    }

    .usage-incoming-off {
      color: var(--muted);
    }

    .usage-chart {
      display: flex;
      align-items: flex-end;
      justify-content: flex-start;
      gap: 18px;
      min-height: 140px;
      margin-top: 12px;
    }

    .usage-chart-col {
      flex: 0 0 auto;
      width: 56px;
      display: flex;
      flex-direction: column;
      align-items: center;
      justify-content: flex-end;
      gap: 6px;
      font-size: 11px;
      color: var(--muted);
    }

    .usage-chart-value {
      font-size: 11px;
      font-weight: 600;
      color: var(--text);
    }

    .usage-chart-stack {
      display: flex;
      flex-direction: column-reverse;
      justify-content: flex-start;
      width: 28px;
      height: 140px;
    }

    .usage-chart-base {
      background: #2B4EFF;
      border-radius: 4px 4px 0 0;
    }

    .usage-chart-over {
      background: #D97706;
    }

    .usage-extra {
      color: #B45309;
      font-weight: 600;
    }

    .usage-margin-neg {
      color: #B91C1C;
      font-weight: 600;
    }

    @media (max-width: 800px) {
      .usage-split {
        grid-template-columns: 1fr;
      }
    }

    .hub-grid {
      display: grid;
      grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
      gap: 16px;
    }

    .hub-tile {
      display: flex;
      align-items: flex-start;
      gap: 14px;
      text-align: left;
      padding: 16px;
      border: 1px solid var(--border);
      border-radius: 12px;
      background: #fff;
      cursor: pointer;
      color: inherit;
      font: inherit;
      width: 100%;
    }

    .hub-tile:hover {
      border-color: #c5cad3;
      box-shadow: 0 4px 14px rgba(15, 23, 42, 0.06);
    }

    .hub-tile-icon {
      flex: 0 0 auto;
      width: 40px;
      height: 40px;
      border-radius: 10px;
      background: #F3F5F8;
      color: #334155;
      display: flex;
      align-items: center;
      justify-content: center;
    }

    .hub-tile-body {
      display: flex;
      flex-direction: column;
      gap: 4px;
      min-width: 0;
    }

    .hub-tile-body strong {
      font-size: 15px;
      font-weight: 650;
    }

    .hub-tile-desc,
    .hub-tile-status {
      font-size: 13px;
      color: var(--muted);
      line-height: 1.35;
    }

    .hub-tile-status {
      font-weight: 550;
      color: #475569;
    }

    .system-emails-choose-title {
      margin: 0 0 16px;
      font-size: 16px;
      font-weight: 600;
    }

    .system-emails-layout {
      display: grid;
      grid-template-columns: 1fr;
      gap: 24px;
      align-items: start;
    }

    .system-emails-settings {
      min-width: 0;
    }

    .system-email-card {
      padding: 24px;
      background: #fff;
      border: 1px solid var(--border);
      border-radius: 12px;
    }

    .system-email-card h2 {
      margin: 0 0 6px;
      font-size: 20px;
    }

    .system-email-card-desc {
      margin: 0 0 18px;
      color: var(--muted);
      font-size: 14px;
      line-height: 1.4;
    }

    .system-email-group {
      margin: 20px 0 4px;
      font-size: 11px;
      font-weight: 650;
      letter-spacing: 0.06em;
      text-transform: uppercase;
      color: var(--muted);
    }

    .system-email-footer {
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 12px;
      margin-top: 8px;
      padding-top: 16px;
      border-top: 1px solid var(--border);
    }

    .system-email-footer .btn-primary {
      margin-left: auto;
    }

    .system-email-dirty {
      font-size: 13px;
      color: #9a6700;
    }

    .system-email-footnote {
      margin: 10px 0 0;
      font-size: 13px;
      color: var(--muted);
      line-height: 1.4;
    }

    .system-email-preview-card {
      padding: 20px;
      background: #fff;
      border: 1px solid var(--border);
      border-radius: 12px;
      min-width: 0;
    }

    .system-email-updating {
      margin: 8px 0 0;
      font-size: 13px;
      color: var(--muted);
    }

    .system-email-subject {
      font-weight: 600;
      margin: 12px 0 8px;
      word-break: break-word;
    }

    .system-email-frame {
      display: block;
      width: 100%;
      height: 80px;
      max-height: 900px;
      border: 1px solid var(--border);
      border-radius: 10px;
      background: #fff;
    }

    #booking-preview-results {
      display: flex;
      flex-direction: column;
      gap: 4px;
      margin: 6px 0 10px;
    }

    @media (min-width: 1100px) {
      .system-emails-layout {
        grid-template-columns: 480px minmax(0, 1fr);
      }

      .system-emails-preview {
        position: sticky;
        top: 16px;
        align-self: start;
      }
    }

    #office-detail-view:not(.hidden) {
      display: block;
      min-height: 0;
    }

    .setup-page {
      overflow-x: hidden;
    }

    .setup-stack {
      position: relative;
      z-index: 1;
      display: flex;
      flex-direction: column;
      gap: 16px;
      margin: -50px 32px 32px;
      min-width: 0;
    }

    .setup-stack > form,
    #office-extra {
      display: flex;
      flex-direction: column;
      gap: 16px;
      min-width: 0;
    }

    .setup-page .setup-card {
      padding: 22px 24px;
      margin: 0;
    }

    .setup-page .card h2,
    .lq-panel h2 {
      margin: 0 0 8px;
      font-family: var(--font-display);
      font-weight: 600;
      font-size: 22px;
      letter-spacing: -0.02em;
    }

    .setup-page .card h2 + .setup-help {
      margin: 0 0 16px;
    }

    .setup-page .setup-card label {
      display: block;
      margin: 16px 0 6px;
    }

    .setup-field {
      display: flex;
      flex-direction: column;
      gap: 6px;
      margin-top: 16px;
      min-width: 0;
    }

    .setup-card > .setup-field:first-of-type,
    .setup-card > h2 + .setup-field,
    .setup-card > h2 + .setup-help + .setup-list,
    .setup-add > .setup-field,
    .lq-panel form > .setup-field:first-of-type {
      margin-top: 0;
    }

    .setup-page .setup-field > label,
    .setup-page .form-grid label,
    .setup-page .toggle-row label,
    .lq-panel .setup-field > label,
    .lq-panel .toggle-row label {
      margin: 0;
    }

    .setup-page .setup-card input,
    .setup-page .setup-card select,
    .setup-page .setup-field input,
    .setup-page .setup-field select,
    .lq-panel input,
    .lq-panel select {
      height: 44px;
      min-height: 44px;
      margin-bottom: 0;
      max-width: 100%;
    }

    .setup-page input[type="color"] {
      width: 64px;
      height: 44px;
      padding: 4px;
    }

    .setup-page .field-hint,
    .setup-help,
    .setup-count {
      margin: 0;
      color: var(--muted);
      font-size: 13px;
      font-weight: 400;
      line-height: 1.4;
    }

    .setup-page .setup-field .field-hint,
    .setup-page .form-grid .field-hint,
    .setup-count {
      margin-top: 4px;
    }

    .setup-page .form-grid {
      grid-template-columns: 1fr 1fr;
      gap: 16px;
    }

    .setup-page .form-grid > div,
    .setup-page .service-area-grid > div {
      min-width: 0;
    }

    .setup-page .shared-hours-row input,
    #office-bookings-card .shared-hours-row input {
      width: 96px;
      max-width: 40%;
      flex: 0 0 96px;
      margin-bottom: 0;
    }

    .setup-page .shared-hours-row span {
      white-space: nowrap;
    }

    .setup-page .toggle-row .field-hint,
    .setup-page .toggle-row .setup-help,
    .lq-panel .toggle-row .setup-help {
      margin: 4px 0 0;
    }

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

    .setup-actions .btn-primary,
    .setup-actions .btn-secondary,
    .setup-actions .btn-ghost,
    .setup-page .toolbar .btn-secondary {
      min-height: 44px;
      height: 44px;
    }

    .setup-page .toolbar {
      display: flex;
      flex-wrap: wrap;
      align-items: center;
      justify-content: space-between;
      gap: 12px;
      margin-bottom: 8px;
    }

    .setup-page .staff-card {
      padding: 20px 24px 24px;
    }

    .setup-page .table-wrap {
      overflow-x: hidden;
    }

    .setup-page .staff-table th,
    .setup-page .staff-table td {
      white-space: normal;
      overflow-wrap: anywhere;
    }

    .setup-page .toggle,
    .lq-panel .toggle,
    .lq-row .toggle,
    .ls-survey .toggle {
      width: 44px;
      height: 44px;
    }

    .setup-page .toggle .toggle-slider,
    .lq-panel .toggle .toggle-slider,
    .lq-row .toggle .toggle-slider,
    .ls-survey .toggle .toggle-slider {
      inset: auto;
      top: 10px;
      left: 0;
      width: 44px;
      height: 24px;
    }

    .setup-list {
      display: flex;
      flex-direction: column;
      min-width: 0;
    }

    .setup-row {
      display: flex;
      align-items: flex-start;
      gap: 16px;
      padding: 14px 0;
      border-bottom: 1px solid var(--border);
      min-width: 0;
    }

    .setup-row > .toggle {
      margin-top: 2px;
    }

    .setup-row:last-child { border-bottom: 0; }

    .setup-row.is-off .setup-row-name { color: var(--muted); }

    .setup-row-main {
      flex: 1 1 180px;
      min-width: 0;
    }

    .setup-row-name {
      font-weight: 700;
      overflow-wrap: anywhere;
    }

    .setup-row-main .setup-help {
      margin-top: 4px;
    }

    .setup-row-actions {
      display: flex;
      align-items: center;
      gap: 8px;
      margin-left: auto;
    }

    .setup-add {
      margin-top: 8px;
      padding-top: 8px;
      border-top: 1px solid var(--border);
    }

    .ls-name {
      width: 100%;
    }

    .ls-survey {
      display: flex;
      align-items: center;
      gap: 8px;
      min-height: 44px;
      margin-top: 8px;
      font-size: 13px;
    }

    .lq-list {
      display: flex;
      flex-direction: column;
      gap: 10px;
      min-width: 0;
    }

    .lq-row,
    .lq-option {
      display: flex;
      flex-wrap: wrap;
      align-items: center;
      gap: 12px 16px;
      min-width: 0;
      padding: 14px 16px;
      border: 1px solid var(--border);
      border-radius: 14px;
      background: #fff;
    }

    .lq-row.is-off { background: #F7F5FC; }

    .lq-row.is-dragging,
    .lq-option.is-dragging { outline: 2px solid var(--accent); }

    .lq-drag {
      min-width: 44px;
      min-height: 44px;
      padding: 0;
      border: 0;
      background: transparent;
      color: var(--muted);
      cursor: grab;
      font-size: 18px;
      line-height: 1;
    }

    .lq-main { flex: 1 1 220px; min-width: 0; }

    .lq-label {
      font-weight: 700;
      overflow-wrap: anywhere;
    }

    .lq-meta {
      display: flex;
      flex-wrap: wrap;
      gap: 6px;
      margin-top: 4px;
      color: var(--muted);
      font-size: 13px;
    }

    .lq-chips {
      display: flex;
      flex-wrap: wrap;
      gap: 6px;
      margin-top: 8px;
    }

    .lq-chip {
      display: inline-flex;
      align-items: center;
      min-height: 26px;
      padding: 0 10px;
      border-radius: 13px;
      background: var(--soft);
      color: var(--text);
      font: 700 12px var(--font-body);
    }

    .lq-actions {
      display: flex;
      align-items: center;
      gap: 10px;
      margin-left: auto;
    }

    .lq-edit,
    .lq-add-office,
    .lq-option-remove,
    #lq-add-option {
      min-height: 44px;
    }

    .lq-empty {
      margin: 0;
      color: var(--muted);
    }

    .lq-option { padding: 8px; }

    .lq-option input {
      flex: 1 1 140px;
      min-width: 0;
    }

    .lq-scrim {
      position: fixed;
      inset: 0;
      z-index: 40;
      background: rgba(27, 21, 48, 0.35);
    }

    .lq-panel {
      position: fixed;
      top: 0;
      right: 0;
      bottom: 0;
      z-index: 41;
      width: min(440px, 100%);
      max-width: 100%;
      overflow-x: hidden;
      overflow-y: auto;
      padding: 22px 24px 32px;
      background: #fff;
      box-shadow: -12px 0 32px rgba(27, 21, 48, 0.16);
    }

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

    .lq-panel-head h2 {
      margin: 0;
      overflow-wrap: anywhere;
    }

    .lq-panel-close {
      width: 44px;
      height: 44px;
      border: 0;
      border-radius: 22px;
      background: var(--soft);
      color: var(--text);
      font-size: 22px;
      line-height: 1;
    }

    #lq-options-wrap .setup-help { margin-bottom: 8px; }

    #lq-add-option { margin-top: 10px; }

    #lq-form-msg,
    #ls-msg { margin-top: 12px; }

    .setup-msg { margin: 0; }

    @media (max-width: 760px) {
      .setup-stack {
        margin: -28px 16px 24px;
      }

      .setup-page .form-grid,
      .setup-page .service-area-grid {
        grid-template-columns: 1fr;
      }

      .setup-page .page-band-actions,
      .setup-page .toolbar-filter {
        width: 100%;
      }

      .setup-page .toolbar-filter {
        flex-wrap: wrap;
      }

      .setup-page .band-select {
        width: 100%;
        max-width: none;
        flex: 1 1 160px;
      }

      .setup-row {
        flex-wrap: wrap;
        align-items: flex-start;
      }

      .setup-row-actions {
        width: 100%;
        margin-left: 0;
        justify-content: space-between;
      }

      .lq-panel { width: 100%; }

      .setup-page .staff-table thead {
        position: absolute;
        width: 1px;
        height: 1px;
        overflow: hidden;
        clip: rect(0 0 0 0);
      }

      .setup-page .staff-table,
      .setup-page .staff-table tbody,
      .setup-page .staff-table tr,
      .setup-page .staff-table td {
        display: block;
        width: 100%;
      }

      .setup-page .staff-table tr {
        padding: 12px 0;
        border-bottom: 1px solid var(--border);
      }

      .setup-page .staff-table td {
        height: auto;
        border: 0;
        padding: 4px 0;
      }

      .setup-page .staff-table td[data-label]:not([data-label=""])::before {
        content: attr(data-label);
        display: block;
        margin-bottom: 2px;
        color: var(--muted);
        font-size: 12px;
        font-weight: 700;
      }
    }

    .twilio-check-result {
      margin-top: 14px;
      display: grid;
      gap: 8px;
    }

    .twilio-check-result p {
      margin: 0;
      overflow-wrap: anywhere;
    }

    .v1-steps,
    .v1-actions {
      display: flex;
      flex-wrap: wrap;
      gap: 8px;
    }

    .v1-steps {
      margin-bottom: 16px;
    }

    .v1-step,
    .v1-actions button,
    .v1-file input,
    .v1-row select,
    .v1-row input[type="text"],
    .v1-check {
      min-height: 44px;
    }

    .v1-step {
      padding: 8px 14px;
      border-radius: 999px;
      border: 1px solid var(--border-strong);
      background: transparent;
      color: inherit;
    }

    .v1-step.is-on {
      background: var(--text);
      color: var(--surface);
      border-color: var(--text);
    }

    .v1-note,
    .v1-error {
      margin: 0 0 12px;
      overflow-wrap: anywhere;
    }

    .v1-error {
      color: var(--danger, #9b2c2c);
    }

    .v1-file,
    .v1-row {
      display: grid;
      gap: 8px;
      padding: 12px 0;
      border-bottom: 1px solid var(--border);
      min-width: 0;
    }

    .v1-file strong,
    .v1-row strong,
    .v1-group-title {
      overflow-wrap: anywhere;
    }

    .v1-row label,
    .v1-file label {
      display: grid;
      gap: 4px;
      min-width: 0;
    }

    .v1-row select,
    .v1-row input[type="text"],
    #v1-office {
      width: 100%;
      max-width: 100%;
      min-height: 44px;
    }

    .v1-check {
      display: flex;
      align-items: center;
      gap: 10px;
    }

    .v1-actions {
      margin-top: 16px;
    }

    .v1-report {
      display: grid;
      gap: 6px;
      margin-top: 16px;
    }

    .v1-report p {
      margin: 0;
      overflow-wrap: anywhere;
    }

    #import-v1-view .progress-track {
      margin-top: 12px;
    }

    #import-v1-view,
    #import-v1-body {
      max-width: 100%;
      overflow-x: hidden;
    }

    #import-v1-view input,
    #import-v1-view select,
    #import-v1-view button {
      max-width: 100%;
    }

    /* Texting allowance (TX5): Admin › Texting usage, TellUS office settings and alerts */
    .allow-banner {
      margin: 0 0 16px;
      padding: 10px 14px;
      border-radius: 10px;
      background: var(--wait-bg);
      color: var(--wait);
      font-weight: 600;
    }

    .allow-banner.is-full {
      background: var(--attention-bg);
      color: var(--attention);
    }

    .allow-split {
      display: grid;
      grid-template-columns: minmax(0, 2fr) minmax(0, 1fr);
      gap: 16px;
    }

    .allow-card {
      border: 1px solid var(--border);
      border-radius: 14px;
      padding: 16px 18px;
    }

    .allow-card h2 {
      margin: 0 0 8px;
      font-size: 13px;
      font-weight: 700;
      letter-spacing: 0.06em;
      text-transform: uppercase;
      color: var(--muted);
    }

    .allow-headline {
      margin: 0 0 6px;
      font-family: var(--font-display);
      font-size: 24px;
      font-weight: 800;
      letter-spacing: -0.02em;
    }

    .usage-bar-fill.allow-fill { background: var(--accent); }

    .allow-stats {
      display: grid;
      grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
      gap: 12px 16px;
    }

    .allow-stat {
      display: flex;
      flex-direction: column;
      gap: 2px;
    }

    .allow-stat-label {
      font-size: 12px;
      color: var(--muted);
    }

    .allow-stat-value { font-size: 18px; }

    .allow-stat-help {
      font-size: 12px;
      color: var(--muted);
    }

    .allow-note {
      margin: 12px 0 0;
      font-size: 14px;
    }

    .allow-free {
      display: inline-flex;
      align-items: center;
      height: 24px;
      padding: 0 10px;
      margin-bottom: 8px;
      border-radius: 12px;
      background: var(--ok-bg);
      color: var(--ok);
      font: 800 12px var(--font-body);
    }

    .allow-legend {
      display: flex;
      flex-wrap: wrap;
      gap: 16px;
      font-size: 13px;
      color: var(--text);
    }

    .allow-legend-item {
      display: inline-flex;
      align-items: center;
      gap: 6px;
    }

    .allow-swatch {
      width: 10px;
      height: 10px;
      border-radius: 2px;
    }

    .allow-swatch.is-service,
    .allow-bar.is-service { background: #0D9488; }

    .allow-swatch.is-marketing,
    .allow-bar.is-marketing { background: var(--accent); }

    .allow-chart {
      display: flex;
      align-items: flex-end;
      gap: 18px;
      min-height: 150px;
      margin-top: 12px;
      padding-bottom: 4px;
      border-bottom: 1px solid var(--border);
      overflow-x: auto;
    }

    .allow-col {
      display: flex;
      flex-direction: column;
      align-items: center;
      gap: 6px;
      flex: 0 0 auto;
    }

    .allow-bars {
      display: flex;
      align-items: flex-end;
      gap: 2px;
      height: 120px;
    }

    .allow-bar {
      width: 14px;
      border-radius: 4px 4px 0 0;
    }

    .allow-col-label {
      font-size: 12px;
      color: var(--muted);
    }

    .allow-table { margin-top: 12px; }

    .allow-table summary {
      cursor: pointer;
      font-size: 13px;
      color: var(--accent);
      font-weight: 600;
    }

    .allow-table table {
      margin-top: 8px;
      font-size: 13px;
    }

    #usage-body > .btn-secondary { margin-top: 16px; }

    .billing-usage-line {
      display: grid;
      grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
      gap: 12px 16px;
      margin: 4px 0 16px;
      padding: 12px 14px;
      border: 1px solid var(--border);
      border-radius: 12px;
      background: var(--bg);
    }

    .billing-sub {
      margin: 20px 0 8px;
      font-size: 13px;
      font-weight: 700;
      letter-spacing: 0.06em;
      text-transform: uppercase;
      color: var(--muted);
    }

    .billing-add {
      margin-top: 20px;
      padding-top: 16px;
      border-top: 1px solid var(--border);
    }

    .billing-add-row {
      display: flex;
      flex-wrap: wrap;
      gap: 8px;
      align-items: center;
    }

    .billing-add-row input {
      margin: 0;
      width: auto;
      flex: 1 1 140px;
    }

    .billing-add-row input[type="number"] { flex: 0 0 120px; }

    .texting-alerts-card { margin: 24px 32px; }

    .texting-alerts-list {
      display: flex;
      flex-direction: column;
      gap: 8px;
    }

    .texting-alert {
      display: flex;
      align-items: flex-start;
      justify-content: space-between;
      gap: 12px;
      padding: 10px 12px;
      border: 1px solid var(--border);
      border-radius: 10px;
    }

    .texting-alert.is-dismissed { opacity: 0.6; }

    .texting-alert-main {
      display: flex;
      flex-wrap: wrap;
      align-items: center;
      gap: 6px 10px;
      min-width: 0;
    }

    .texting-alert-main p {
      flex: 1 1 100%;
      margin: 0;
    }

    .texting-alert-main .muted { font-size: 12px; }

    .composer-credits.is-warn { color: var(--wait); font-weight: 600; }

    .mk-paused-pill { margin-left: 6px; }

    @media (max-width: 760px) {
      .allow-split { grid-template-columns: minmax(0, 1fr); }
      .texting-alerts-card { margin: 0 16px 20px; }
    }

    /* GL1: Connect intakes and Login email */
    .gl-intake {
      margin-top: 16px;
      padding: 14px 16px;
      border: 1px solid var(--border);
      border-radius: 14px;
    }

    .gl-intake h3 {
      margin: 0 0 6px;
      font-family: var(--font-display);
      font-size: 17px;
      font-weight: 800;
    }

    .gl-last {
      margin: 0 0 8px;
      font-size: 14px;
    }

    .gl-last.is-failed { color: var(--attention); }

    .gl-last-real {
      display: block;
      font-size: 13px;
      color: var(--muted);
    }

    .gl-copy-row,
    .login-link-bar {
      display: flex;
      flex-wrap: wrap;
      align-items: center;
      gap: 6px 10px;
      margin: 6px 0;
    }

    .login-link-bar:empty { display: none; }

    .login-link-bar { padding: 12px 16px 0; }

    .setup-card .login-link-bar { padding: 0 0 8px; }

    .gl-copy-label {
      flex: 0 0 104px;
      font: 700 12px var(--font-body);
      color: var(--muted);
    }

    .gl-copy-value {
      flex: 1 1 260px;
      min-width: 0;
      padding: 6px 8px;
      border-radius: 8px;
      background: var(--bg);
      font: 13px var(--font-mono);
      overflow-wrap: anywhere;
    }

    .gl-copy-btn {
      min-height: 36px;
      padding: 0 12px;
    }

    .gl-fields { margin: 8px 0; }

    .gl-fields summary,
    .allow-table summary {
      cursor: pointer;
      font-size: 13px;
      font-weight: 600;
      color: var(--accent);
    }

    .gl-field-list {
      display: grid;
      grid-template-columns: max-content 1fr;
      gap: 4px 14px;
      margin: 8px 0 0;
      font-size: 13px;
    }

    .gl-field-list dt { font-family: var(--font-mono); }

    .gl-field-list dd {
      margin: 0;
      color: var(--muted);
    }

    .gl-example-head {
      display: flex;
      align-items: center;
      gap: 10px;
      margin-top: 8px;
    }

    .gl-example pre {
      margin: 6px 0 0;
      padding: 10px 12px;
      border-radius: 10px;
      background: var(--bg);
      font: 12px var(--font-mono);
      overflow-x: auto;
    }

    .gl-test {
      display: flex;
      flex-wrap: wrap;
      align-items: center;
      gap: 8px 12px;
      margin-top: 12px;
    }

    .gl-test-result { flex: 1 1 100%; }

    .gl-test-result .msg { margin: 0 0 6px; }

    .gl-test-actions {
      display: flex;
      flex-wrap: wrap;
      gap: 8px;
    }

    .gl-form {
      margin-top: 12px;
      padding-top: 12px;
      border-top: 1px solid var(--border);
    }

    .gl-form-head {
      display: flex;
      flex-wrap: wrap;
      align-items: center;
      gap: 8px;
      margin-bottom: 6px;
    }

    .gl-test-lead {
      display: flex;
      flex-wrap: wrap;
      align-items: center;
      justify-content: space-between;
      gap: 8px;
      padding: 8px 0;
      border-top: 1px solid var(--border);
      font-size: 14px;
    }

    .gl-login-flags {
      display: flex;
      flex-wrap: wrap;
      align-items: center;
      gap: 4px 8px;
      margin-top: 4px;
    }

    .gl-login-note {
      font-size: 12px;
      color: var(--muted);
    }

    @media (max-width: 640px) {
      .gl-copy-label { flex-basis: 100%; }
      .gl-field-list { grid-template-columns: minmax(0, 1fr); }
    }

    /* RL1: roles as ticks, and the staff list grouped by role */
    .role-ticks {
      border: 0;
      margin: 4px 0 10px;
      padding: 0;
      display: grid;
      gap: 8px;
    }
    .role-ticks legend {
      font-weight: 600;
      margin-bottom: 6px;
      padding: 0;
    }
    .role-tick {
      display: flex;
      align-items: flex-start;
      gap: 10px;
      padding: 10px 12px;
      border: 1px solid var(--border);
      border-radius: 10px;
      background: #fff;
      cursor: pointer;
      margin: 0;
    }
    .role-tick input { margin-top: 3px; flex: 0 0 auto; }
    .role-tick-copy { display: grid; gap: 2px; }
    .role-tick-name { font-weight: 700; color: var(--text); }
    .role-tick-line { font-size: 13px; color: var(--muted); font-weight: 400; }
    .role-tick:has(input:checked) { border-color: var(--accent); }
    .role-tick:has(input:disabled) { cursor: default; opacity: 0.7; }
    .role-ticks + .field-hint { margin-top: 0; }
    .staff-group-row td {
      font-family: "Bricolage Grotesque", sans-serif;
      font-weight: 700;
      color: var(--text);
      background: var(--soft);
      padding-top: 10px;
      padding-bottom: 10px;
    }

    /* DT1: mobile and work texts on the Staff page */
    .staff-texts-line { font-size: 12px; color: var(--muted); margin-top: 2px; }
    .staff-texts-tag { font-weight: 700; }
    .staff-texts-tag.is-on { color: var(--ok); }
    .staff-texts-tag.is-stopped { color: var(--attention); }
    .work-texts-check { display: flex; gap: 8px; align-items: center; margin-top: 10px; font-weight: 600; }
