@font-face {
  font-family: Inter;
  src: url('/static/fonts/InterVariable.woff2') format('woff2');
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
}
:root {
  --brand: #ffb928;
  --ink: #090a0e;
  --muted: #62666d;
  --line: #dbdbdb;
  --surface: #fff;
  --canvas: #f0f2f5;
  --sidebar-width: 260px;
  --bs-body-font-family: Inter, sans-serif;
  --bs-body-font-size: 14px;
  --bs-body-color: var(--ink);
  --bs-border-color: var(--line);
  --bs-border-radius: 4px;
  --bs-border-radius-sm: 4px;
  --bs-border-radius-lg: 4px;
  --bs-link-color: #090a0e;
  --bs-link-hover-color: #000;
  --bs-primary-rgb: 0, 0, 0;
  --bs-info-rgb: 0, 0, 0;
}
* { box-sizing: border-box; }
body { margin: 0; background: var(--canvas); color: var(--ink); font: 14px/22px Inter, sans-serif; }
::selection { background: #ffefcc; color: #000; }
:focus-visible { outline: 2px solid #a36b00; outline-offset: 3px; }
[hidden] { display: none !important; }
a { text-underline-offset: 3px; }
code, .font-monospace { overflow-wrap: anywhere; }
h1, h2, h3, h4, h5, h6 { color: var(--ink); font-weight: 600; line-height: 1.3; }
h1, .h1 { font-size: 28px; }
h2, .h2 { font-size: 22px; }
h3, .h3, h4, .h4 { font-size: 20px; }
h5, .h5 { font-size: 17px; }
h6, .h6 { font-size: 14px; }
.text-muted, .text-secondary, .form-text { color: var(--muted) !important; }
.text-info, .text-primary { color: var(--ink) !important; }
.admin-sidebar { position: fixed; inset: 0 auto 0 0; width: var(--sidebar-width); background: #000; color: #fff; display: flex; flex-direction: column; z-index: 1040; padding: 24px 8px 12px; }
.admin-brand { display: block; color: var(--brand); font-size: 26px; font-weight: 700; letter-spacing: -.7px; padding: 8px 16px 28px; text-decoration: none; }
.admin-brand:hover { color: var(--brand); }
.admin-nav { display: flex; flex-direction: column; gap: 4px; overflow-y: auto; }
.admin-nav a { display: flex; align-items: center; gap: 12px; min-height: 42px; padding: 10px 14px; border-radius: 4px; color: #fff; text-decoration: none; font-size: 14px; }
.admin-nav a.active { background: var(--brand); color: #000; }
.admin-nav .bi { font-size: 18px; width: 22px; text-align: center; }
.admin-nav hr { border-color: #555; margin: 14px 8px; }
.admin-sidebar-footer { margin-top: auto; padding: 16px 14px 0; border-top: 1px solid #393939; }
.admin-account { display: flex; align-items: center; gap: 8px; margin-bottom: 14px; overflow-wrap: anywhere; }
.admin-sidebar-footer .btn { color: #fff; width: 100%; text-align: left; }
.admin-main { margin-left: var(--sidebar-width); padding: 28px 32px 100px; max-width: none; min-height: 100vh; }
.admin-mobile-header { display: none; }
.admin-sidebar-backdrop { display: none; }
.page-heading { display: flex; justify-content: space-between; align-items: center; gap: 16px; margin-bottom: 24px; }
.page-heading h1 { margin: 0; font-size: 22px; }
.page-tools { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.page-tools .user-search { width: 240px; flex: 0 1 240px; }
.page-tools > .btn { white-space: nowrap; }
.user-heading { background: #fff; padding: 24px; border-radius: 4px; }
.user-heading h1 { font-size: 28px; overflow-wrap: anywhere; }
.user-heading-meta { color: var(--muted); margin-top: 8px; font-size: 13px; }
.back-link { display: inline-flex; align-items: center; gap: 8px; margin-bottom: 20px; text-decoration: none; font-weight: 600; }
.card { border: 0; border-radius: 4px; background: #fff; }
.shadow-sm { box-shadow: none !important; }
.card-body { padding: 24px; }
.card-header, .card-header.bg-warning, .card-header.bg-info, .card-header.bg-success, .card-header.bg-primary, .card-header.bg-danger, .card-header.bg-dark, .card-header.bg-secondary { background: #fff !important; color: var(--ink) !important; border-bottom: 1px solid var(--line); padding: 16px 24px !important; font-size: 15px; }
.card-header .text-white { color: var(--ink) !important; }
.card .card { border: 1px solid var(--line); }
.btn { min-height: 36px; padding: 7px 14px; font-size: 14px; line-height: 20px; font-weight: 600; border-radius: 4px; transition: background-color 150ms ease, border-color 150ms ease, transform 100ms ease-out; }
.btn-sm { min-height: 30px; padding: 4px 10px; font-size: 12px; }
.btn:active:not(:disabled) { transform: scale(.98); }
.btn-primary, .btn-warning, .btn-login { --bs-btn-bg: #ffb928; --bs-btn-border-color: #ffb928; --bs-btn-color: #000; --bs-btn-hover-bg: #edaa20; --bs-btn-hover-border-color: #edaa20; --bs-btn-hover-color: #000; --bs-btn-active-bg: #e5a21c; --bs-btn-active-color: #000; --bs-btn-disabled-bg: #ffb928; --bs-btn-disabled-border-color: #ffb928; --bs-btn-disabled-color: #000; }
.btn-outline-primary, .btn-outline-dark, .btn-outline-secondary { --bs-btn-color: #090a0e; --bs-btn-border-color: #b7b9be; --bs-btn-hover-bg: #f0f2f5; --bs-btn-hover-border-color: #090a0e; --bs-btn-hover-color: #000; --bs-btn-active-bg: #e5e7eb; --bs-btn-active-color: #000; }
.btn-info { --bs-btn-bg: #090a0e; --bs-btn-border-color: #090a0e; --bs-btn-hover-bg: #303237; --bs-btn-hover-color: #fff; color: #fff; }
.btn-secondary { --bs-btn-bg: #f0f2f5; --bs-btn-border-color: #f0f2f5; --bs-btn-color: #000; --bs-btn-hover-bg: #e5e7eb; --bs-btn-hover-color: #000; }
.form-control, .form-select { min-height: 36px; padding: 6px 10px; color: var(--ink); border-color: var(--line); border-radius: 4px; font-size: 14px; line-height: 22px; }
.form-control::placeholder { color: #72767d; opacity: 1; }
.form-control:focus, .form-select:focus { border-color: #bf8000; box-shadow: 0 0 0 2px rgb(255 185 40 / 18%); }
.form-label { font-weight: 600; margin-bottom: 6px; }
.form-text { font-size: 12px; line-height: 19px; }
textarea.form-control { min-height: 88px; }
.tpl-textarea { font: 13px/21px ui-monospace, SFMono-Regular, monospace; min-height: 90px; }
.form-check-input { border-color: #b7b9be; cursor: pointer; }
.form-check-input:checked { background-color: #000; border-color: #000; }
.form-check-input:focus { border-color: #a36b00; box-shadow: 0 0 0 3px rgb(255 185 40 / 20%); }
.form-switch { min-height: 28px; padding-left: 44px; }
.form-switch .form-check-input { width: 34px; height: 20px; margin-left: -44px; margin-top: 1px; }
.input-group-text { background: #f6f7f9; font-size: 13px; border-color: var(--line); }
.nav-tabs { border-bottom: 1px solid var(--line); flex-wrap: nowrap; overflow-x: auto; gap: 18px; margin-bottom: 24px !important; }
.nav-tabs .nav-link { border: 0; border-bottom: 3px solid transparent; border-radius: 0; white-space: nowrap; color: #62666d; padding: 12px 2px; font-weight: 500; background: transparent; }
.nav-tabs .nav-link.active, .nav-tabs .nav-link:hover { color: #000; background: transparent; border-color: transparent transparent var(--brand); }
.nav-tabs .nav-link.active { font-weight: 600; }
.agent-tabs { gap: 24px; }
.agent-panel[hidden] { display: none !important; }
.tab-pane.fade { transition: none; }
.table { --bs-table-bg: #fff; --bs-table-color: #090a0e; --bs-table-hover-bg: #fffaee; --bs-table-hover-color: #090a0e; font-size: 13px; font-variant-numeric: tabular-nums; }
.table > :not(caption) > * > * { padding: 12px 16px; border-bottom-color: var(--line); }
.table thead, .table-dark { --bs-table-bg: #fff; --bs-table-color: #62666d; --bs-table-border-color: #dbdbdb; font-weight: 500; }
.table th { font-size: 12px; font-weight: 500; white-space: nowrap; }
.table tbody tr:nth-child(2n) { --bs-table-bg: #f6f7f9; }
.table td a:not(.btn) { color: var(--ink); font-weight: 600; }
.table td code { color: #62666d; font-size: 12px; }
.badge { padding: 4px 8px; border-radius: 100px; font-size: 11px; font-weight: 600; line-height: 16px; }
.badge-active { color: #17653b; background: #dff3e8; }
.badge-paused { color: #735000; background: #ffefcc; }
.alert { border-radius: 4px; border-width: 1px; font-size: 13px; line-height: 21px; }
.alert-info, .alert-secondary, .alert-light { background: #f6f7f9; border-color: #e3e5e9; color: #43464c; }
.alert-warning { background: #fff6df; border-color: #ecd49e; color: #6d4a00; }
.alert-danger { background: #fbebea; border-color: #e8b9b6; color: #8b2723; }
.alert-success { background: #eaf6ef; border-color: #bfdcc9; color: #1b6039; }
.modal-content { border: 0; border-radius: 0; box-shadow: 0 2px 10px rgb(0 0 0 / 10%); }
.modal-header { padding: 20px 24px; border-bottom: 1px solid var(--line); }
.modal-body, .modal-footer { padding: 24px; }
.modal-backdrop { --bs-backdrop-opacity: .42; }
.toast-stack { position: fixed; top: 20px; right: 20px; z-index: 1090; width: min(400px, calc(100vw - 40px)); }
.toast { font: inherit; border-radius: 4px; box-shadow: 0 2px 10px rgb(0 0 0 / 12%); }
.toast.text-bg-success { color: #17653b !important; background: #eaf6ef !important; border: 1px solid #bfdcc9 !important; }
.toast .btn-close-white { filter: none; }
.save-bar { position: fixed; bottom: 0; right: 0; left: var(--sidebar-width); z-index: 1030; background: #fff; border-top: 1px solid var(--line); padding: 12px 32px; display: flex; align-items: center; justify-content: space-between; gap: 16px; box-shadow: 0 -2px 8px rgb(0 0 0 / 4%); }
.save-bar-message { font-size: 13px; color: #62666d; min-width: 0; overflow-wrap: anywhere; }
.save-bar[data-dirty="true"] .save-bar-message { color: #090a0e; font-weight: 600; }
.save-bar-actions { display: flex; gap: 8px; }
.save-bar[hidden] { display: none; }
.help-trigger { border: 0; padding: 0 4px; color: #62666d; background: transparent; font-size: 14px; vertical-align: baseline; cursor: help; min-width: 24px; min-height: 24px; }
.help-trigger:hover, .help-trigger:focus-visible { color: #000; }
.popover { font: 13px/21px Inter, sans-serif; --bs-popover-max-width: 360px; --bs-popover-border-color: #dbdbdb; --bs-popover-border-radius: 4px; --bs-popover-box-shadow: 0 2px 10px rgb(0 0 0 / 10%); }
.popover-body { color: #43464c; white-space: pre-line; }
.section-help { margin-bottom: 16px; }
.section-help > summary { font-size: 12px; color: #62666d; cursor: pointer; display: inline-flex; align-items: center; gap: 6px; }
.section-help > summary::marker { content: ''; }
.section-help[open] > summary { margin-bottom: 8px; color: #000; }
.field-help { margin-top: 6px; margin-bottom: 0; }
.user-search { max-width: 300px; min-width: 200px; }
.empty-users { text-align: center; padding: 48px 24px; color: #62666d; }
.accounts-search { padding: 20px 24px 16px; border-bottom: 1px solid var(--line); }
.accounts-search-input { position: relative; max-width: 560px; }
.accounts-search-input > .bi { position: absolute; top: 8px; left: 12px; color: var(--muted); pointer-events: none; }
.accounts-search-input .form-control { padding-left: 36px; }
.accounts-status { margin: 8px 0 0; font-size: 12px; }
.accounts-table { min-width: 920px; margin-bottom: 0; }
.account-name { min-width: 180px; }
.account-phone { white-space: nowrap; }
.account-email { overflow-wrap: anywhere; }
.accounts-footer { display: flex; align-items: center; flex-wrap: wrap; gap: 16px; padding: 12px 16px; }
.accounts-pagination { display: flex; align-items: center; flex-wrap: wrap; gap: 4px; }
.accounts-page { display: inline-flex; align-items: center; justify-content: center; min-width: 36px; height: 36px; padding: 0 8px; border: 0; border-radius: 4px; background: transparent; color: var(--ink); text-decoration: none; font: inherit; }
.accounts-page:hover { background: var(--canvas); color: var(--ink); }
.accounts-page[aria-current="page"] { background: #fff6df; font-weight: 600; }
.accounts-page:disabled { color: var(--muted); opacity: .6; cursor: default; background: transparent; }
.accounts-page-gap { padding: 0 4px; color: var(--muted); }
.accounts-range { font-size: 12px; font-variant-numeric: tabular-nums; }
.accounts-page-size { display: flex; align-items: center; gap: 8px; margin-left: auto; }
.accounts-page-size label { white-space: nowrap; color: var(--muted); }
.accounts-page-size .form-select { width: 84px; }
.account-directory [aria-busy="true"] .accounts-table { opacity: .6; }
.qr-preview { max-width: 140px; max-height: 140px; border: 1px solid var(--line); border-radius: 4px; }
body.login-page { background: #f0f2f5; }
.login-page .login-shell { min-height: 100vh; display: grid; place-items: center; padding: 24px; }
.login-page .login-panel { width: min(100%, 420px); background: #fff; padding: 40px; border-radius: 0; border: 0; box-shadow: 0 2px 10px rgb(0 0 0 / 8%); }
.login-page .brand-mark { width: auto; height: auto; border-radius: 0; background: transparent; color: #000; display: block; font-size: 26px; font-weight: 700; }
.login-page .login-title { font-size: 22px; margin: 24px 0 8px; }
.login-page .login-subtitle { color: #62666d; margin-bottom: 28px; }
#subscription-dialog { border-radius: 0 !important; }
@media (hover: hover) {
  .admin-nav a:not(.active):hover { background: #222; }
}
@media (max-width: 1100px) {
  :root { --sidebar-width: 224px; }
  .admin-main { padding: 24px 20px 100px; }
  .save-bar { padding: 12px 20px; }
  .card-body { padding: 20px; }
}
@media (max-width: 767px) {
  body.menu-open { overflow: hidden; }
  .admin-sidebar { width: 260px; transform: translateX(-100%); transition: transform 180ms ease-out; }
  .admin-sidebar.is-open { transform: translateX(0); }
  .admin-sidebar-backdrop.is-open { display: block; position: fixed; inset: 0; background: rgb(0 0 0 / 42%); z-index: 1035; }
  .admin-main { margin-left: 0; padding: 20px 16px 150px; }
  .admin-mobile-header { display: flex; align-items: center; justify-content: space-between; padding: 12px 16px; background: #000; color: #fff; }
  .admin-mobile-header .btn { color: #fff; }
  .admin-mobile-header strong { color: var(--brand); font-size: 18px; }
  .page-heading { align-items: flex-start; flex-direction: column; }
  .page-tools { width: 100%; }
  .page-tools .user-search { min-width: 0; max-width: none; flex: 1 1 100%; width: 100%; }
  .user-heading { padding: 20px; }
  .user-heading h1 { font-size: 24px; }
  .nav-tabs { gap: 18px; }
  .card-body { padding: 16px; }
  .card-header { padding: 16px !important; }
  .save-bar { left: 0; padding: 12px 16px; flex-wrap: wrap; gap: 8px; }
  .save-bar-actions { margin-left: auto; }
  .save-bar-actions .btn { font-size: 12px; padding: 7px 10px; }
  .save-bar-message { width: 100%; }
  .login-page .login-panel { padding: 28px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; }
  .btn:active:not(:disabled) { transform: none; }
}
