@font-face {
  font-family: Vazir;
  src: url("/static/fonts/vazir-arabic.woff2") format("woff2");
  font-weight: 100 900;
  font-display: swap;
}
@font-face {
  font-family: Vazir;
  src: url("/static/fonts/vazir-latin.woff2") format("woff2");
  font-weight: 100 900;
  font-display: swap;
  unicode-range: U+0000-00FF;
}
:root {
  --ink: #18253c;
  --muted: #68758a;
  --blue: #2865e9;
  --border: #e3e8f0;
  --bg: #f5f7fb;
  --nav: #101827;
  --green: #11795c;
  --radius: 16px;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  font-family: Vazir, Arial, sans-serif;
  color: var(--ink);
  background: var(--bg);
  font-size: 16px;
  line-height: 1.75;
}
button,
input,
select,
textarea {
  font: inherit;
}
button,
a,
input,
select {
  -webkit-tap-highlight-color: transparent;
}
button,
a {
  touch-action: manipulation;
}
button {
  cursor: pointer;
}
button:disabled {
  cursor: wait;
  opacity: 0.6;
}
a {
  color: inherit;
  text-decoration: none;
}
a:hover {
  color: var(--blue);
}
[hidden] {
  display: none !important;
}
button:focus-visible,
a:focus-visible {
  outline: 3px solid #6b9cfa;
  outline-offset: 4px;
}
h1,
h2,
h3,
p {
  margin-top: 0;
}
h1 {
  font-size: 29px;
  line-height: 1.6;
  margin-bottom: 4px;
  font-weight: 800;
}
h2 {
  font-size: 21px;
  line-height: 1.65;
}
h3 {
  font-size: 17px;
}
.muted {
  color: var(--muted);
}
.accent {
  color: var(--blue);
}
.eyebrow {
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 7px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 22px;
  font-weight: 800;
  color: white !important;
}
.brand small {
  font-size: 10px;
  letter-spacing: 2px;
  color: #8e9cb4;
  display: block;
  direction: ltr;
  font-weight: 500;
  line-height: 1.6;
}
.brand-symbol {
  width: 42px;
  height: 45px;
  display: inline-grid;
  place-items: center;
  background: var(--blue);
  border-radius: 12px;
  color: white;
  font: 800 27px Arial;
  flex-shrink: 0;
}
.shell {
  display: flex;
  min-height: 100vh;
}
.sidebar {
  position: fixed;
  inset: 0 0 0 auto;
  width: 248px;
  background: var(--nav);
  padding: 34px 20px;
  color: #a4b1c8;
  display: flex;
  flex-direction: column;
  z-index: 20;
}
.sidebar .brand {
  padding: 0 12px;
}
.workspace-label {
  margin: 47px 17px 12px;
  font-size: 12px;
  color: #75839d;
}
.nav-item {
  border: 0;
  background: none;
  color: #a4b1c8;
  display: flex;
  align-items: center;
  gap: 13px;
  padding: 13px 16px;
  width: 100%;
  text-align: right;
  font-size: 15px;
  border-radius: 10px;
  min-height: 49px;
  margin: 4px 0;
  transition:
    background 0.15s,
    color 0.15s;
}
.nav-item.active {
  background: #223758;
  color: #d2e3ff;
  box-shadow: inset -3px 0 #5893ff;
}
.nav-item:hover {
  background: #1c2940;
  color: white;
}
.nav-item svg {
  width: 20px;
  height: 20px;
  vertical-align: middle;
}
.nav-item small {
  margin-right: auto;
}
.nav-divider {
  height: 1px;
  background: #263145;
  margin: 24px 13px;
}
.sidebar-bottom {
  margin-top: auto;
  padding-top: 45px;
}
.account-row {
  display: flex;
  align-items: center;
  gap: 10px;
  border-top: 1px solid #283246;
  padding: 22px 3px 16px;
}
.account-row strong {
  display: block;
  color: #edf3ff;
  font-size: 14px;
  max-width: 112px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.account-row small {
  font-size: 12px;
  color: #8f9db4;
  display: block;
}
.avatar {
  width: 38px;
  height: 38px;
  border-radius: 12px;
  background: #dce7fb;
  color: #3466b6;
  display: inline-grid;
  place-items: center;
  font-weight: 700;
  flex-shrink: 0;
}
.avatar.small {
  width: 32px;
  height: 32px;
  font: 700 15px Arial;
}
.account-row .icon-button {
  margin-right: auto;
  color: #98a6bc;
}
.version {
  font: 10px Arial;
  display: block;
  direction: ltr;
  text-align: center;
  letter-spacing: 1px;
  color: #72819b;
}
.main-shell {
  margin-right: 248px;
  min-width: 0;
  flex: 1;
}
.topbar {
  height: 84px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 42px;
  background: white;
  border-bottom: 1px solid var(--border);
  font-size: 14px;
}
.breadcrumb {
  display: flex;
  gap: 14px;
  align-items: center;
  color: var(--muted);
}
.breadcrumb strong {
  font-weight: 500;
  color: var(--ink);
}
.breadcrumb span {
  color: #bbc3d0;
}
.topbar-end {
  display: flex;
  align-items: center;
  gap: 23px;
  color: var(--muted);
  font-size: 13px;
}
main {
  max-width: 1540px;
  margin: auto;
  padding: 36px 42px 48px;
  min-height: calc(100vh - 149px);
}
.page-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 28px;
}
.page-heading .muted {
  font-size: 14px;
  margin: 6px 0 0;
}
.btn {
  min-height: 45px;
  border: 1px solid var(--border);
  border-radius: 9px;
  background: white;
  color: var(--ink);
  padding: 9px 18px;
  font-size: 14px;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}
.btn:hover {
  background: #eef3fd;
}
.btn.primary {
  color: white;
  background: var(--blue);
  border-color: var(--blue);
  box-shadow: 0 3px 8px #2865e920;
}
.btn.primary:hover {
  background: #1d55cf;
}
.btn.danger {
  color: #bd3745;
  border-color: #f3cbd0;
  background: #fff5f5;
}
.btn.small {
  min-height: 35px;
  padding: 5px 11px;
  font-size: 13px;
}
.btn svg {
  width: 18px;
  height: 18px;
}
.btn.full {
  width: 100%;
}
.icon-button {
  background: transparent;
  border: 0;
  padding: 8px;
  border-radius: 8px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--muted);
}
.icon-button:hover {
  background: #7888a51a;
}
.icon-button svg {
  width: 19px;
  height: 19px;
}
.overview-grid {
  display: grid;
  grid-template-columns: 1.35fr 1fr 1fr;
  gap: 18px;
  margin-bottom: 25px;
}
.card {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: white;
  padding: 23px;
}
.quota-card {
  color: #fff;
  background: var(--nav);
  position: relative;
  overflow: hidden;
  border-color: var(--nav);
}
.quota-card .muted {
  color: #a0aec4;
}
.card-label {
  font-size: 14px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  margin-bottom: 18px;
}
.card-label svg {
  width: 20px;
  height: 20px;
  color: #6b87b2;
}
.stat-number {
  font-size: 36px;
  font-weight: 750;
  line-height: 1.4;
  letter-spacing: -1px;
  margin-bottom: 14px;
}
.stat-number small {
  font-size: 14px;
  font-weight: 400;
  letter-spacing: 0;
  margin-right: 6px;
}
.stat-note {
  font-size: 13px;
  color: var(--muted);
  display: flex;
  align-items: center;
  gap: 8px;
}
.stat-note .badge {
  font-size: 12px;
}
.progress {
  height: 6px;
  border-radius: 4px;
  background: #eaf0f8;
  overflow: hidden;
  margin: 16px 0 10px;
}
.progress > i {
  height: 100%;
  display: block;
  border-radius: 4px;
  background: var(--blue);
}
.quota-card .progress {
  background: #2d3a50;
}
.quota-card .progress > i {
  background: #71a3ff;
}
.quota-note {
  display: flex;
  justify-content: space-between;
  font-size: 12px;
  color: #b3bfd2;
}
.policy-strip {
  background: #edf3ff;
  color: #315584;
  border: 1px solid #dce8fd;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 15px 20px;
  border-radius: 11px;
  gap: 15px;
  font-size: 14px;
  margin-bottom: 28px;
}
.policy-strip strong {
  font-weight: 600;
}
.policy-strip .policy-details {
  font-size: 13px;
  color: #5f789a;
}
.section-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 15px;
  margin-bottom: 18px;
}
.section-header h2 {
  margin: 0;
  font-size: 18px;
}
.section-header small {
  color: var(--muted);
  font-size: 13px;
}
.text-button {
  border: 0;
  background: none;
  color: var(--blue);
  font-size: 14px;
  cursor: pointer;
  padding: 5px;
}
.table-card {
  background: white;
  border: 1px solid var(--border);
  border-radius: 14px;
  overflow: hidden;
}
.table-wrap {
  overflow: auto;
}
table {
  border-collapse: collapse;
  width: 100%;
  font-size: 14px;
  text-align: right;
  white-space: nowrap;
}
th {
  background: #fafbfd;
  color: #7a8699;
  font-size: 13px;
  font-weight: 500;
  padding: 15px 20px;
  border-bottom: 1px solid var(--border);
}
td {
  padding: 18px 20px;
  border-bottom: 1px solid #edf0f5;
}
tr:last-child td {
  border-bottom: 0;
}
tbody tr:hover {
  background: #fafcff;
}
.cell-name {
  font-weight: 600;
}
.cell-secondary {
  display: block;
  font-size: 12px;
  font-weight: 400;
  color: var(--muted);
  margin-top: 3px;
}
.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border-radius: 6px;
  padding: 3px 9px;
  background: #edf1f7;
  color: #61718b;
  font-size: 13px;
}
.badge.success {
  background: #eaf7f1;
  color: #147652;
}
.badge.warn {
  background: #fff5df;
  color: #946410;
}
.badge.danger {
  background: #fcecef;
  color: #b63b4e;
}
.table-bottom {
  padding: 13px 20px;
  border-top: 1px solid var(--border);
  font-size: 12px;
  color: var(--muted);
}
.empty {
  padding: 54px 22px;
  text-align: center;
  color: var(--muted);
}
.empty-icon {
  background: #eff4fc;
  width: 55px;
  height: 55px;
  border-radius: 16px;
  display: grid;
  place-items: center;
  margin: 0 auto 17px;
  color: #7896c2;
}
.empty-icon svg {
  width: 26px;
  height: 26px;
}
.empty h3 {
  color: var(--ink);
  margin-bottom: 7px;
}
.empty p {
  font-size: 14px;
  margin-bottom: 18px;
}
.toolbar {
  display: flex;
  gap: 12px;
  align-items: center;
  margin-bottom: 19px;
}
.toolbar input {
  max-width: 340px;
}
.toolbar select {
  max-width: 230px;
}
.count {
  font-size: 13px;
  color: var(--muted);
  margin-right: auto;
}
label {
  display: block;
  font-size: 14px;
  font-weight: 500;
  margin-bottom: 18px;
}
input,
select,
textarea {
  display: block;
  width: 100%;
  padding: 11px 13px;
  border: 1px solid #dce3ed;
  background: white;
  border-radius: 9px;
  outline: none;
  color: var(--ink);
  font-size: 15px;
  margin-top: 7px;
  min-height: 46px;
}
input:focus,
select:focus,
textarea:focus {
  border-color: #6e9cf6;
  box-shadow: 0 0 0 3px #2865e912;
}
input::placeholder {
  color: #a2aabc;
  font-size: 14px;
}
input[type="range"] {
  padding: 0;
  box-shadow: none;
  accent-color: var(--blue);
}
textarea {
  resize: vertical;
}
.toolbar input,
.toolbar select {
  margin-top: 0;
}
.field-help {
  font-size: 12px;
  color: var(--muted);
  font-weight: 400;
  display: block;
  margin-top: 5px;
}
.field-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.form-actions {
  display: flex;
  gap: 10px;
  justify-content: flex-start;
  margin-top: 24px;
}
.form-error,
.error {
  color: #ad3142;
  background: #fff0f2;
  border: 1px solid #f4d4d9;
  padding: 10px 13px;
  border-radius: 8px;
  font-size: 14px;
}
.notice {
  font-size: 13px;
  background: #f0f5ff;
  padding: 12px 15px;
  border-radius: 9px;
  color: #4b6489;
  margin: 15px 0;
}
.notice strong {
  display: block;
  color: #214479;
}
.volume-preview {
  border: 1px solid #d9e6ff;
  border-radius: 12px;
  padding: 17px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 18px;
  background: #f6f9ff;
}
.volume-preview strong {
  font-size: 29px;
  color: var(--blue);
}
.volume-preview small {
  font-size: 13px;
}
.presets {
  display: flex;
  gap: 7px;
  margin-bottom: 18px;
  flex-wrap: wrap;
}
.preset {
  flex: 1;
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 7px 4px;
  background: white;
  color: var(--muted);
  font-size: 13px;
  min-width: 50px;
}
.preset.selected {
  background: #eaf1ff;
  border-color: #8caef3;
  color: var(--blue);
}
dialog {
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 27px;
  width: 490px;
  max-width: calc(100vw - 24px);
  max-height: 90dvh;
  overflow: auto;
  color: var(--ink);
  box-shadow: 0 30px 100px #10182735;
}
dialog::backdrop {
  background: #10182788;
  backdrop-filter: blur(3px);
}
.modal-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 19px;
}
.modal-heading h2 {
  margin: 0;
}
.detail-list {
  margin: 0;
}
.detail-list > div {
  padding: 11px 0;
  border-bottom: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
  gap: 20px;
  font-size: 14px;
}
.detail-list dt {
  color: var(--muted);
}
.detail-list dd {
  margin: 0;
  text-align: left;
  overflow-wrap: anywhere;
}
.link-box {
  font: 13px/1.8 monospace;
  direction: ltr;
  overflow-wrap: anywhere;
  background: #f2f5fa;
  padding: 14px;
  border-radius: 9px;
  margin: 12px 0;
  user-select: all;
}
.toast {
  position: fixed;
  bottom: 26px;
  left: 26px;
  z-index: 100;
  background: #13243b;
  color: white;
  box-shadow: 0 8px 30px #14243b30;
  padding: 13px 21px;
  border-radius: 12px;
  max-width: calc(100vw - 32px);
  font-size: 14px;
}
.boot {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 100vh;
  gap: 15px;
  color: var(--muted);
}
footer {
  padding: 18px 42px;
  border-top: 1px solid var(--border);
  display: flex;
  gap: 12px;
  font-size: 12px;
  color: #8490a3;
}
footer span {
  border-right: 1px solid #dce3ee;
  padding-right: 12px;
}
footer a {
  margin-right: auto;
}
.login-screen {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 100vh;
}
.login-story {
  padding: 65px 70px;
  background: #101827;
  color: #f4f7ff;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 100vh;
}
.login-story h1 {
  font-size: 42px;
  line-height: 1.8;
  margin: 15px 0 20px;
}
.login-story p {
  font-size: 16px;
  color: #a8b7d0;
  max-width: 390px;
}
.login-story .eyebrow {
  color: #86afff;
}
.login-story > .muted {
  color: #8595af;
  font-size: 13px;
}
.login-tags {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 35px;
}
.login-tags span {
  border: 1px solid #314056;
  border-radius: 7px;
  padding: 6px 12px;
  font-size: 12px;
  color: #c0cce0;
}
.login-form-area {
  display: grid;
  place-items: center;
  padding: 40px;
  background: #fff;
}
.login-form {
  width: 100%;
  max-width: 350px;
}
.login-form h2 {
  font-size: 29px;
  margin: 5px 0;
}
.login-form > .muted {
  font-size: 14px;
  margin-bottom: 32px;
}
.login-note {
  font-size: 12px;
  color: var(--muted);
  text-align: center;
  margin-top: 22px;
}
.login-form .full {
  margin-top: 7px;
}
.skeleton {
  padding: 70px 20px;
  text-align: center;
  color: var(--muted);
}
.mono {
  font-family: monospace;
  direction: ltr;
  unicode-bidi: embed;
}
.key-once {
  background: #fff7e5;
  color: #876011;
  font-size: 13px;
  padding: 12px;
  border-radius: 8px;
}
.docs-shell {
  max-width: 1000px;
  margin: 0 auto;
  padding: 40px 25px;
}
.docs-shell > header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 35px;
}
.docs-shell .brand {
  color: var(--ink) !important;
}
.docs-shell section {
  background: white;
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 26px;
  margin: 20px 0;
}
.docs-shell pre {
  background: #111c2d;
  color: #dce7ff;
  border-radius: 10px;
  padding: 20px;
  overflow: auto;
  direction: ltr;
  text-align: left;
  font: 13px/1.9 monospace;
}
.docs-shell code {
  direction: ltr;
  unicode-bidi: embed;
  font-size: 13px;
}
.docs-shell li {
  margin-bottom: 9px;
}
.method {
  color: #187356;
  background: #edf9f3;
  padding: 3px 8px;
  border-radius: 4px;
  font: bold 12px monospace;
}
.docs-shell .endpoint {
  display: flex;
  direction: ltr;
  gap: 10px;
  align-items: center;
  margin-top: 22px;
}
@media (min-width: 1600px) {
  main {
    padding-top: 46px;
  }
  .overview-grid {
    gap: 24px;
  }
  .card {
    padding: 28px;
  }
  .stat-number {
    font-size: 42px;
  }
}
@media (max-width: 1150px) {
  .sidebar {
    width: 215px;
    padding: 30px 14px;
  }
  .main-shell {
    margin-right: 215px;
  }
  main {
    padding: 28px;
  }
  .topbar {
    padding: 0 28px;
  }
  .overview-grid {
    grid-template-columns: 1.2fr 1fr 1fr;
    gap: 12px;
  }
  .card {
    padding: 18px;
  }
  .stat-number {
    font-size: 31px;
  }
  .login-story {
    padding: 50px 40px;
  }
  .login-story h1 {
    font-size: 34px;
  }
  td,
  th {
    padding: 15px;
  }
}
@media (max-width: 820px) {
  .sidebar {
    position: static;
    width: 100%;
    padding: 17px 20px 10px;
  }
  .shell {
    display: block;
  }
  .sidebar .brand {
    font-size: 19px;
    padding: 0;
  }
  .brand-symbol {
    width: 36px;
    height: 39px;
    font-size: 23px;
  }
  .sidebar .workspace-label,
  .sidebar-bottom,
  .nav-divider {
    display: none;
  }
  .sidebar nav {
    display: flex;
    overflow-x: auto;
    gap: 6px;
    margin-top: 15px;
    padding-bottom: 2px;
  }
  .nav-item {
    width: auto;
    flex-shrink: 0;
    font-size: 13px;
    min-height: 42px;
    padding: 9px 12px;
    margin: 0;
    gap: 8px;
  }
  .nav-item svg {
    width: 17px;
    height: 17px;
  }
  .nav-item.active {
    box-shadow: none;
    background: #273c5c;
  }
  .main-shell {
    margin: 0;
  }
  .topbar {
    height: 61px;
    padding: 0 22px;
  }
  .topbar-end time {
    font-size: 12px;
  }
  main {
    padding: 27px 22px;
    min-height: 60vh;
  }
  .page-heading {
    margin-bottom: 23px;
  }
  h1 {
    font-size: 25px;
  }
  .overview-grid {
    grid-template-columns: 1fr 1fr;
  }
  .quota-card {
    grid-column: 1/-1;
  }
  .quota-card .stat-number {
    font-size: 37px;
  }
  .policy-strip {
    flex-direction: column;
    align-items: flex-start;
    gap: 3px;
    padding: 13px 16px;
  }
  .toolbar {
    flex-wrap: wrap;
  }
  .toolbar input {
    max-width: none;
    flex: 1;
    min-width: 180px;
  }
  .count {
    margin: 0;
  }
  .login-screen {
    grid-template-columns: 1fr;
  }
  .login-story {
    min-height: auto;
    padding: 30px;
    gap: 32px;
  }
  .login-story > div:not(.brand) {
    display: none;
  }
  .login-story > .muted {
    display: none;
  }
  .login-form-area {
    padding: 44px 25px;
  }
  .login-form {
    max-width: 400px;
  }
  .login-form h2 {
    font-size: 27px;
  }
  footer {
    padding: 18px 22px;
  }
}
@media (max-width: 480px) {
  main {
    padding: 24px 16px;
  }
  .topbar {
    padding: 0 16px;
  }
  .topbar-end .avatar {
    display: none;
  }
  .breadcrumb {
    font-size: 12px;
    gap: 8px;
  }
  .page-heading {
    align-items: flex-start;
    gap: 12px;
  }
  .page-heading > .btn {
    font-size: 12px;
    padding: 8px 11px;
    gap: 5px;
    min-height: 40px;
    margin-top: 25px;
  }
  .page-heading .muted {
    font-size: 13px;
    max-width: 210px;
  }
  .page-heading .eyebrow {
    font-size: 12px;
  }
  .card {
    padding: 18px 16px;
  }
  .stat-number {
    font-size: 29px;
  }
  .card-label {
    font-size: 13px;
  }
  .stat-note {
    font-size: 12px;
    flex-wrap: wrap;
  }
  .overview-grid {
    gap: 11px;
  }
  .policy-strip {
    font-size: 13px;
  }
  .section-header h2 {
    font-size: 16px;
  }
  .section-header small {
    font-size: 12px;
  }
  .toolbar select {
    max-width: none;
    width: 100%;
  }
  dialog {
    padding: 22px;
  }
  .field-row {
    gap: 11px;
  }
  .docs-shell section {
    padding: 18px;
  }
  .docs-shell > header {
    flex-wrap: wrap;
    gap: 16px;
  }
  footer {
    padding: 16px;
    flex-wrap: wrap;
    font-size: 11px;
  }
  .toast {
    left: 16px;
    bottom: 16px;
  }
}
@media (prefers-reduced-motion: reduce) {
  * {
    scroll-behavior: auto !important;
    transition: none !important;
  }
}

.inline {
  display: inline !important;
}
.link-label {
  margin-top: 20px;
}
.mobile-only {
  display: none;
}
@media (max-width: 820px) {
  .mobile-only {
    display: inline-flex;
  }
  .topbar-end {
    gap: 10px;
  }
}

.pagination {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 17px 3px;
  color: var(--muted);
  font-size: 13px;
  gap: 12px;
}
.sidebar nav {
  scrollbar-width: none;
}
.sidebar nav::-webkit-scrollbar {
  display: none;
}
@media (max-width: 480px) {
  .presets {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
  }
}

.service-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 9px;
  margin: 20px 0 10px;
}
.service-actions .btn {
  font-size: 13px;
  padding: 9px 10px;
}
.danger-text {
  color: #b63b4e;
}
.direct-links {
  margin-top: 18px;
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 12px;
}
.direct-links summary {
  font-size: 14px;
  cursor: pointer;
  color: var(--blue);
}
.direct-link-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 10px 0;
  border-top: 1px solid var(--border);
  margin-top: 8px;
  font-size: 13px;
}
.direct-link-row span {
  overflow-wrap: anywhere;
  min-width: 0;
}
.direct-link-row button {
  flex-shrink: 0;
}

.link-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}
.link-actions > .btn {
  flex: 1;
  white-space: nowrap;
  text-align: center;
}
.connection-actions {
  display: flex;
  gap: 6px;
  flex-shrink: 0;
}
.qr-frame {
  width: min(100%, 300px);
  margin: 10px auto;
  background: #fff;
  padding: 12px;
  border: 1px solid var(--border);
  border-radius: 16px;
  color: #111;
  text-align: center;
}
.qr-frame svg {
  display: block;
  width: 100%;
  height: auto;
}
.qr-hint {
  text-align: center;
  font-size: 13px;
  color: var(--muted);
}

.billing-summary {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  padding: 16px;
  margin-bottom: 18px;
  background: #eef8f4;
  border: 1px solid #cae9da;
  border-radius: 12px;
}
.billing-summary span {
  display: block;
  color: var(--muted);
  font-size: 12px;
  margin-bottom: 6px;
}
.billing-summary strong {
  font-size: 15px;
  color: #20604c;
}

.location-intro {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 22px;
}
.location-intro h2 {
  font-size: 18px;
  margin: 0 0 8px;
}
.location-intro p {
  max-width: 750px;
  color: var(--muted);
  line-height: 1.9;
  font-size: 14px;
  margin: 0;
}
.location-selected-count {
  white-space: nowrap;
  background: #edf3ff;
  color: var(--blue);
  padding: 10px 15px;
  border-radius: 10px;
  font-size: 14px;
}
.location-toolbar {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}
.location-search-label {
  flex: 1;
  min-width: 200px;
  margin: 0;
}
.location-search-label input {
  margin: 0;
}
.location-help {
  font-size: 12px;
  line-height: 1.9;
  margin: 14px 0 20px;
}
.location-select-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}
.location-select-card {
  padding: 18px;
  border: 1px solid var(--border);
  transition:
    border-color 0.15s,
    background 0.15s;
}
.location-select-card.selected {
  background: #f7faff;
  border-color: #9bbcff;
}
.inbound-toggle {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  cursor: pointer;
  margin: 0;
}
.inbound-toggle input,
.primary-inbound-label input {
  width: 18px;
  height: 18px;
  margin: 2px 0 0;
  padding: 0;
  accent-color: var(--blue);
  flex-shrink: 0;
}
.inbound-toggle strong {
  display: block;
  font-size: 16px;
  overflow-wrap: anywhere;
}
.inbound-toggle small {
  display: block;
  margin-top: 6px;
  color: var(--muted);
  font-size: 11px;
}
.inbound-card-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  margin-top: 22px;
}
.primary-inbound-label {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  color: var(--muted);
  margin: 0;
  cursor: pointer;
}
.location-save-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  margin: 24px 0 10px;
  border-top: 1px solid var(--border);
  padding-top: 20px;
}
.location-save-bar strong {
  font-size: 14px;
}
.location-save-bar p {
  font-size: 12px;
  color: var(--muted);
  margin: 7px 0;
  line-height: 1.9;
}
.location-save-bar .btn {
  flex-shrink: 0;
}
.location-label-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}
.location-card-heading {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-bottom: 18px;
}
.location-card-heading h3 {
  margin: 0;
  font-size: 16px;
}
.location-card-heading .mono {
  font-size: 11px;
}
.preview-name-label {
  width: 230px;
  flex-shrink: 0;
  margin: 0;
  font-size: 12px;
}
.label-example {
  background: #f6f8fc;
  border-radius: 10px;
  padding: 12px 14px;
}
.label-example span {
  display: block;
  font-size: 11px;
  color: var(--muted);
  margin-bottom: 6px;
}
.label-example strong {
  font-size: 14px;
  overflow-wrap: anywhere;
}
.label-reset {
  margin-top: 12px;
  font-size: 12px;
}
@media (max-width: 1100px) {
  .location-select-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 600px) {
  .location-intro {
    flex-direction: column;
    align-items: stretch;
    gap: 16px;
  }
  .location-selected-count {
    align-self: flex-start;
  }
  .location-select-grid,
  .location-label-grid {
    grid-template-columns: 1fr;
  }
  .preview-name-label {
    width: 100%;
  }
  .location-toolbar .btn {
    flex: 1;
    font-size: 12px;
  }
  .location-search-label {
    flex-basis: 100%;
  }
  .location-save-bar {
    flex-direction: column;
    align-items: stretch;
  }
}

.reseller-location-picker {
  display: flex;
  align-items: center;
  gap: 24px;
  margin-bottom: 18px;
}
.reseller-location-field {
  min-width: 280px;
  max-width: 500px;
  flex: 1;
  margin: 0;
}
.reseller-location-picker p {
  font-size: 13px;
  color: var(--muted);
}
@media (max-width: 600px) {
  .reseller-location-picker {
    display: block;
  }
  .reseller-location-field {
    min-width: 0;
    max-width: none;
  }
}
