@import url("https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800;900&family=Fira+Code:wght@500;600;700&display=swap");

:root {
  --bg: #ffffff;
  --bg-soft: #f6f9fc;
  --surface: #ffffff;
  --surface-soft: #f4f8fc;
  --ink: #0f172a;
  --muted: #64748b;
  --line: #dbe5ef;
  --blue: #0369a1;
  --blue-2: #0ea5e9;
  --navy: #111827;
  --green: #16a34a;
  --red: #dc2626;
  --amber: #d97706;
  --sidebar: #151922;
  --sidebar-soft: #242b38;
  --shadow: 0 18px 42px rgba(15, 23, 42, .08);
  --shadow-soft: 0 10px 28px rgba(15, 23, 42, .06);
  --radius: 8px;
  --ease: cubic-bezier(.2, .8, .2, 1);
}

[data-bs-theme="dark"],
.dark-mode {
  --bg: #0b1220;
  --bg-soft: #0f172a;
  --surface: #111827;
  --surface-soft: #172033;
  --ink: #f8fafc;
  --muted: #a8b3c7;
  --line: #29364b;
  --blue: #38bdf8;
  --blue-2: #0ea5e9;
  --navy: #f8fafc;
  --sidebar: #070b12;
  --sidebar-soft: #151b27;
  --shadow: 0 20px 52px rgba(0, 0, 0, .28);
  --shadow-soft: 0 10px 30px rgba(0, 0, 0, .18);
}

* {
  box-sizing: border-box;
}

html,
body {
  min-height: 100%;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: Inter, "Segoe UI", system-ui, -apple-system, sans-serif;
  letter-spacing: 0;
  text-rendering: optimizeLegibility;
}

button,
a,
input,
select,
textarea {
  touch-action: manipulation;
}

a {
  color: var(--blue);
}

.container-fluid {
  max-width: 1440px;
}

.btn {
  min-height: 44px;
  border-radius: var(--radius);
  font-weight: 750;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: background-color .2s var(--ease), border-color .2s var(--ease), color .2s var(--ease), box-shadow .2s var(--ease), opacity .2s var(--ease);
}

.btn:hover,
.btn:active {
  transform: none !important;
}

.btn-primary {
  background: #0b63ce;
  border-color: #0b63ce;
  color: #fff;
  box-shadow: 0 10px 22px rgba(11, 99, 206, .18);
}

.btn-primary:hover {
  background: #0758bb;
  border-color: #0758bb;
}

.btn-light {
  background: var(--surface) !important;
  border-color: var(--line) !important;
  color: var(--ink) !important;
}

.btn-outline-primary {
  border-color: rgba(3, 105, 161, .36);
  color: var(--blue);
  background: var(--surface);
}

.btn-outline-primary:hover {
  background: rgba(14, 165, 233, .09);
  color: var(--blue);
  border-color: rgba(3, 105, 161, .55);
}

.btn-outline-danger {
  min-height: 44px;
}

.compact-btn {
  min-height: 34px;
  padding: 6px 10px;
  font-size: 12px;
}

.icon-btn {
  width: 44px;
  min-width: 44px;
  height: 44px;
  padding: 0;
}

.form-control,
.form-select {
  min-height: 44px;
  border-radius: var(--radius);
  border-color: var(--line);
  background-color: var(--surface);
  color: var(--ink);
}

.form-control::placeholder {
  color: #94a3b8;
}

.form-control:focus,
.form-select:focus,
.btn:focus-visible,
.tool-tab:focus-visible,
.admin-sidebar button:focus-visible {
  border-color: var(--blue);
  box-shadow: 0 0 0 4px rgba(14, 165, 233, .16);
  outline: 0;
}

.form-label {
  margin-bottom: 6px;
  color: var(--ink);
  font-size: 13px;
  font-weight: 760;
}

.brand-mark {
  display: inline-flex;
  align-items: center;
  color: var(--navy);
  font-size: 24px;
  font-weight: 900;
  text-decoration: none;
  white-space: nowrap;
}

.brand-mark span {
  display: inline-grid;
  place-items: center;
  min-width: 48px;
  height: 36px;
  margin-right: 3px;
  border-radius: 8px;
  color: #fff;
  background: linear-gradient(135deg, #0b63ce, #0ea5e9);
}

.public-navbar {
  background: rgba(255, 255, 255, .88);
  border-bottom: 1px solid rgba(219, 229, 239, .76);
  backdrop-filter: blur(18px);
}

[data-bs-theme="dark"] .public-navbar,
.dark-mode .public-navbar {
  background: rgba(17, 24, 39, .88);
}

.public-navbar .container-fluid {
  min-height: 76px;
  display: flex;
  align-items: center;
}

.top-service-nav {
  min-height: 48px;
  gap: 4px;
  margin-left: 28px;
  padding: 4px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface-soft);
}

.top-service-nav a {
  min-height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 16px;
  border-radius: 999px;
  color: var(--muted);
  text-decoration: none;
  font-size: 14px;
  font-weight: 760;
  transition: background-color .2s var(--ease), color .2s var(--ease);
}

.top-service-nav a.active,
.top-service-nav a:hover {
  color: var(--ink);
  background: var(--surface);
  box-shadow: var(--shadow-soft);
}

.nav-action {
  min-height: 44px;
  padding: 0 16px;
  white-space: nowrap;
}

.account-chip,
.notify-pill,
.lang-pill {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  max-width: 230px;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--ink);
  background: var(--surface);
  font-size: 13px;
  font-weight: 760;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.notify-pill b {
  color: var(--blue);
  font-family: "Fira Code", monospace;
}

.public-shell {
  width: min(1020px, calc(100% - 32px));
  margin: 0 auto;
  padding: 34px 0 64px;
}

.public-shell.narrow {
  width: min(780px, calc(100% - 32px));
}

.public-hero {
  margin-bottom: 18px;
}

.public-hero.compact {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--blue);
  font-size: 12px;
  font-weight: 850;
  text-transform: uppercase;
}

.public-hero h1,
.simple-panel h1,
.auth-card h1 {
  margin: 8px 0;
  font-size: clamp(42px, 7vw, 82px);
  line-height: .96;
  font-weight: 900;
}

.public-hero p,
.simple-panel p,
.auth-card p {
  margin: 0;
  color: var(--muted);
  max-width: 660px;
  line-height: 1.6;
}

.tool-card,
.simple-panel,
.auth-card,
.data-panel,
.stat-card,
.sub-panel,
.ticket-card,
.redirect-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.tool-card {
  overflow: hidden;
}

.tool-tabs {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  background: var(--surface-soft);
  border-bottom: 1px solid var(--line);
}

.tool-tab {
  min-height: 58px;
  border: 0;
  border-right: 1px solid var(--line);
  background: transparent;
  color: var(--muted);
  font-weight: 820;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  transition: background-color .2s var(--ease), color .2s var(--ease);
}

.tool-tab:last-child {
  border-right: 0;
}

.tool-tab.active {
  background: var(--surface);
  color: var(--blue);
}

.tool-panel,
.simple-panel,
.auth-card {
  padding: 24px;
}

.focused-form,
.stack-form {
  display: grid;
  gap: 14px;
}

.stack-form.dense {
  gap: 10px;
}

.field-block small,
.mini-note,
small {
  color: var(--muted);
  font-size: 12px;
}

.advanced-toggle {
  justify-content: center;
}

.advanced-toggle.active {
  color: var(--blue) !important;
  background: rgba(14, 165, 233, .1) !important;
}

.advanced-options {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface-soft);
  animation: softIn .24s var(--ease);
}

.advanced-options.d-none,
.tool-panel.d-none,
.qr-fields.d-none,
.admin-section.d-none,
.user-section.d-none {
  display: none !important;
}

.split-input {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 118px;
  gap: 8px;
}

.toggle-card {
  min-height: 64px;
  display: flex;
  align-items: center;
  gap: 10px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 10px 12px;
  background: var(--surface);
  cursor: pointer;
}

.toggle-card.compact {
  min-height: 44px;
}

.toggle-card input {
  width: 16px;
  height: 16px;
}

.toggle-card span {
  display: grid;
  gap: 2px;
}

.toggle-card b {
  color: var(--ink);
}

.qr-subgrid,
.two-col,
.dashboard-split {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.qr-subgrid .span-2 {
  grid-column: 1 / -1;
}

.result-box {
  margin-top: 18px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface-soft);
  animation: softIn .24s var(--ease);
}

.result-link-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
}

.result-box small {
  display: block;
}

.result-box strong {
  display: block;
  overflow-wrap: anywhere;
  font-family: "Fira Code", monospace;
}

#qrBox,
#qrCreatorBox {
  min-height: 214px;
  display: grid;
  place-items: center;
  margin-top: 12px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
}

.auth-page {
  background: var(--bg);
}

.auth-shell {
  min-height: calc(100vh - 76px);
  display: grid;
  place-items: start center;
  padding: 42px 16px;
}

.auth-card {
  width: min(460px, 100%);
}

.inline-form-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
}

.admin-body {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 82px minmax(0, 1fr);
  background: var(--bg-soft);
}

.admin-sidebar {
  position: sticky;
  top: 0;
  height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  padding: 12px 8px;
  background: var(--sidebar);
  color: #dce7ff;
  z-index: 20;
}

.admin-sidebar .brand-mark {
  width: 60px;
  justify-content: center;
  color: #fff;
  font-size: 12px;
}

.admin-sidebar .brand-mark span {
  min-width: 44px;
  height: 34px;
  margin: 0;
}

.admin-sidebar .staff-card {
  width: 60px;
  min-height: 54px;
  padding: 7px 5px;
  text-align: center;
  background: rgba(255, 255, 255, .07);
  border-color: rgba(255, 255, 255, .13);
  box-shadow: none;
}

.staff-card strong,
.staff-card small {
  display: block;
}

.admin-sidebar .staff-card strong {
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
  font-size: 10px;
}

.admin-sidebar .staff-card small {
  color: #9fb0ca;
  font-size: 9px;
}

.admin-sidebar nav {
  width: 100%;
  display: grid;
  gap: 6px;
}

.admin-sidebar button {
  width: 100%;
  min-height: 54px;
  display: grid;
  place-items: center;
  gap: 3px;
  border: 0;
  border-radius: var(--radius);
  background: transparent;
  color: #b9c6dc;
  padding: 6px 3px;
  text-align: center;
  font-size: 9.5px;
  font-weight: 760;
  line-height: 1.12;
  transition: background-color .2s var(--ease), color .2s var(--ease);
}

.admin-sidebar i {
  font-size: 17px;
}

.admin-sidebar button.active,
.admin-sidebar button:hover {
  background: var(--sidebar-soft);
  color: #fff;
}

.admin-main {
  min-width: 0;
}

.admin-topbar {
  min-height: 76px;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 0 26px;
  background: color-mix(in srgb, var(--surface) 94%, transparent);
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  z-index: 15;
  backdrop-filter: blur(16px);
  box-shadow: var(--shadow-soft);
}

.admin-topbar strong {
  display: block;
  font-size: 18px;
}

.admin-topbar small {
  display: block;
  color: var(--muted);
}

.admin-search {
  min-height: 44px;
  flex: 1 1 360px;
  max-width: 560px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0 14px;
  background: var(--surface);
  color: var(--muted);
}

.admin-search input {
  width: 100%;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--ink);
}

.admin-content {
  padding: 18px 26px 30px;
}

.stat-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(132px, 1fr));
  gap: 10px;
  margin-bottom: 16px;
}

.stat-card {
  min-height: 112px;
  padding: 14px;
  display: grid;
  align-content: space-between;
}

.stat-card i {
  color: var(--blue);
}

.stat-card span {
  color: var(--muted);
  font-size: 13px;
  font-weight: 650;
}

.stat-card strong {
  color: var(--ink);
  font-size: 26px;
  font-weight: 900;
  line-height: 1.1;
}

.stat-card.attention {
  border-color: rgba(217, 119, 6, .35);
  background: color-mix(in srgb, var(--surface) 82%, #fef3c7);
}

.data-panel {
  overflow: hidden;
  margin-bottom: 16px;
}

.data-panel > header {
  min-height: 60px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 14px 16px;
  border-bottom: 1px solid var(--line);
}

.data-panel h2 {
  margin: 0;
  color: var(--ink);
  font-size: 18px;
  font-weight: 860;
}

.badge-soft {
  min-height: 30px;
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 4px 10px;
  background: var(--surface-soft);
  color: var(--blue);
  font-size: 12px;
  font-weight: 800;
  white-space: nowrap;
}

.action-area {
  padding: 14px 16px;
  border-bottom: 1px solid var(--line);
  background: var(--surface-soft);
}

.panel-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  padding: 12px 16px;
  border-bottom: 1px solid var(--line);
  background: var(--surface);
}

.panel-toolbar .form-select {
  width: auto;
  min-width: 180px;
}

.segmented-toolbar .btn {
  min-height: 38px;
}

.segmented-toolbar .btn.active {
  background: #0b63ce !important;
  border-color: #0b63ce !important;
  color: #fff !important;
}

.table-responsive {
  overflow-x: auto;
}

.table {
  min-width: 980px;
  margin: 0;
  color: var(--ink);
  table-layout: fixed;
}

.table th,
.table td {
  padding: 11px 10px;
  border-color: var(--line);
  vertical-align: middle;
  font-size: 14px;
}

.table th {
  background: var(--surface-soft);
  color: var(--muted);
  font-size: 11px;
  font-weight: 820;
  text-transform: uppercase;
}

.inline-status {
  min-height: 34px;
  padding: 4px 28px 4px 8px;
  font-size: 12px;
}

.link-button {
  border: 0;
  background: transparent;
  color: var(--blue);
  padding: 0;
  font-family: "Fira Code", monospace;
  font-weight: 800;
}

.status-pill {
  min-height: 26px;
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 3px 9px;
  font-size: 12px;
  font-weight: 850;
  border: 1px solid transparent;
  white-space: nowrap;
}

.status-pill.success { color: #08704f; background: rgba(22, 163, 74, .10); border-color: rgba(22, 163, 74, .20); }
.status-pill.warning { color: #92400e; background: rgba(217, 119, 6, .13); border-color: rgba(217, 119, 6, .22); }
.status-pill.danger { color: #991b1b; background: rgba(220, 38, 38, .10); border-color: rgba(220, 38, 38, .20); }
.status-pill.primary { color: #075985; background: rgba(14, 165, 233, .12); border-color: rgba(14, 165, 233, .24); }
.status-pill.info { color: #0369a1; background: rgba(3, 105, 161, .10); border-color: rgba(3, 105, 161, .20); }
.status-pill.secondary { color: var(--muted); background: var(--surface-soft); border-color: var(--line); }

[data-bs-theme="dark"] .status-pill.success,
.dark-mode .status-pill.success { color: #86efac; }
[data-bs-theme="dark"] .status-pill.warning,
.dark-mode .status-pill.warning { color: #fbbf24; }
[data-bs-theme="dark"] .status-pill.danger,
.dark-mode .status-pill.danger { color: #fca5a5; }
[data-bs-theme="dark"] .status-pill.primary,
.dark-mode .status-pill.primary,
[data-bs-theme="dark"] .status-pill.info,
.dark-mode .status-pill.info { color: #7dd3fc; }

.ticket-warning td {
  background: rgba(217, 119, 6, .07);
}

.ticket-late td {
  background: rgba(220, 38, 38, .07);
}

.empty-state {
  color: var(--muted);
  padding: 18px;
}

.action-cluster {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.triple-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  padding: 14px;
}

.sub-panel {
  padding: 14px;
}

.sub-panel h3 {
  margin: 0 0 12px;
  font-size: 15px;
  font-weight: 850;
}

.inline-stack {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
}

.checkbox-button {
  gap: 6px;
}

.detail-drawer {
  width: min(560px, 100%);
  background: var(--surface);
  color: var(--ink);
}

.detail-drawer.wide-drawer {
  width: min(920px, 100%);
}

.drawer-tabs {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin: 12px 0;
  padding: 8px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface-soft);
}

.drawer-tabs .btn {
  min-height: 38px;
  padding: 6px 12px;
  font-size: 12px;
}

.drawer-tabs .btn.active {
  background: var(--blue) !important;
  border-color: var(--blue) !important;
  color: #fff !important;
}

.drawer-pane {
  animation: softIn .2s var(--ease);
}

.drawer-heading {
  margin: 16px 0 10px;
  font-size: 16px;
  font-weight: 850;
}

.ticket-detail-head {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 14px;
}

.ticket-detail-head > div,
.detail-message {
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface-soft);
}

.ticket-detail-head span {
  display: block;
  color: var(--muted);
  font-size: 12px;
  font-weight: 750;
}

.ticket-detail-head strong {
  display: block;
  overflow-wrap: anywhere;
}

.detail-message {
  margin-bottom: 14px;
  white-space: pre-wrap;
}

.ticket-timeline {
  list-style: none;
  display: grid;
  gap: 10px;
  margin: 0 0 14px;
  padding: 0;
}

.ticket-timeline li {
  position: relative;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
}

.ticket-timeline p {
  margin: 8px 0 5px;
  color: var(--ink);
  white-space: pre-wrap;
}

.ticket-timeline.compact p {
  margin: 0 0 4px;
}

.ticket-card-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  padding: 14px;
}

.ticket-card {
  padding: 14px;
}

.ticket-card header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
}

.ticket-card h3 {
  margin: 0 0 8px;
  font-size: 16px;
  font-weight: 850;
}

.ticket-card > p {
  color: var(--muted);
}

.toast-stack {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 2000;
  display: grid;
  gap: 8px;
}

.mini-toast {
  min-width: min(360px, calc(100vw - 36px));
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 14px;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--ink);
  box-shadow: var(--shadow);
  opacity: 0;
  transform: translateY(8px);
  transition: opacity .2s var(--ease), transform .2s var(--ease);
}

.mini-toast.show {
  opacity: 1;
  transform: translateY(0);
}

.mini-toast.success i {
  color: var(--green);
}

.mini-toast.danger i {
  color: var(--red);
}

.skeleton-list {
  display: grid;
  gap: 12px;
}

.skeleton-list span {
  height: 58px;
  border-radius: var(--radius);
  background: linear-gradient(90deg, var(--surface-soft), color-mix(in srgb, var(--surface-soft), var(--surface) 60%), var(--surface-soft));
  background-size: 180% 100%;
  animation: shimmer 1.1s linear infinite;
}

.redirect-page {
  min-height: 100vh;
  background: var(--bg-soft);
}

.redirect-shell {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 24px;
}

.mini-brand {
  position: fixed;
  top: 20px;
  left: 24px;
  color: var(--ink);
  font-weight: 900;
  text-decoration: none;
}

.mini-brand span {
  color: var(--blue);
}

.redirect-card {
  width: min(520px, 100%);
  padding: 24px;
}

.redirect-card h1 {
  font-size: 28px;
  font-weight: 900;
}

.redirect-card p {
  color: var(--muted);
}

.status-dot {
  width: 46px;
  height: 46px;
  margin-bottom: 18px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 0 8px rgba(22, 163, 74, .13);
}

.status-dot.danger {
  background: var(--red);
  box-shadow: 0 0 0 8px rgba(220, 38, 38, .12);
}

.status-dot.lock {
  background: var(--blue);
  box-shadow: 0 0 0 8px rgba(14, 165, 233, .14);
}

.ad-square {
  aspect-ratio: 1;
  width: min(280px, 100%);
  margin: 0 auto 18px;
  display: grid;
  align-content: center;
  gap: 10px;
  padding: 20px;
  border-radius: var(--radius);
  background: linear-gradient(145deg, #0b63ce, #111827);
  color: #fff;
  cursor: pointer;
}

.ad-square span {
  font-size: 12px;
  font-weight: 850;
  opacity: .72;
}

.ad-square strong {
  font-size: 25px;
  line-height: 1.05;
}

.ad-square small {
  color: rgba(255, 255, 255, .78);
}

.progress {
  height: 8px;
  background: var(--surface-soft);
}

.progress-bar {
  transition: width .3s var(--ease);
}

@keyframes softIn {
  from {
    opacity: 0;
    transform: translateY(6px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes shimmer {
  to {
    background-position: -180% 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: .01ms !important;
  }
}

@media (max-width: 1200px) {
  .stat-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .triple-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 991px) {
  .public-navbar .top-service-nav {
    display: none !important;
  }

  .admin-body {
    grid-template-columns: 1fr;
  }

  .admin-sidebar {
    position: fixed;
    inset: 0 auto 0 0;
    width: 264px;
    align-items: stretch;
    padding: 18px 14px;
    transform: translateX(-105%);
    transition: transform .24s var(--ease);
  }

  .admin-sidebar.open {
    transform: translateX(0);
  }

  .admin-sidebar .brand-mark,
  .admin-sidebar .staff-card {
    width: auto;
  }

  .admin-sidebar button {
    min-height: 48px;
    grid-template-columns: 28px minmax(0, 1fr);
    place-items: center start;
    text-align: left;
    padding: 8px 10px;
    font-size: 14px;
  }
}

@media (max-width: 720px) {
  .public-navbar .container-fluid {
    min-height: 70px;
    gap: 8px;
  }

  .public-navbar .brand-mark {
    font-size: 18px;
  }

  .public-navbar .brand-mark span {
    min-width: 42px;
    height: 32px;
  }

  .account-chip,
  .public-navbar .btn-outline-primary:not(.nav-action),
  .public-navbar .nav-action i {
    display: none;
  }

  .nav-action {
    min-width: 44px;
    padding: 0 12px;
  }

  .public-shell {
    width: min(100% - 20px, 760px);
    padding-top: 22px;
  }

  .public-hero.compact,
  .advanced-options,
  .qr-subgrid,
  .two-col,
  .dashboard-split,
  .inline-form-row,
  .ticket-detail-head,
  .ticket-card-grid {
    grid-template-columns: 1fr;
    display: grid;
  }

  .public-hero h1,
  .simple-panel h1,
  .auth-card h1 {
    font-size: 42px;
  }

  .tool-panel,
  .simple-panel,
  .auth-card {
    padding: 16px;
  }

  .tool-tab {
    min-height: 54px;
    font-size: 14px;
  }

  .split-input {
    grid-template-columns: 1fr;
  }

  .stat-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .admin-content {
    padding: 14px;
  }

  .admin-topbar {
    min-height: 68px;
    padding: 0 10px;
    gap: 8px;
  }

  .admin-topbar strong {
    max-width: 112px;
    font-size: 16px;
    line-height: 1.12;
  }

  .admin-topbar small {
    display: none;
  }

  .admin-topbar .btn,
  .admin-topbar .icon-btn,
  .notify-pill {
    min-width: 44px;
    padding-left: 10px;
    padding-right: 10px;
  }

  .table {
    min-width: 780px;
  }
}
