:root,
html[data-theme="light"],
html[data-theme="dark"] {
  --nav-sidebar-width: 290px;
  --primary: #0f4f47;
  --secondary: #f5faf9;
  --accent: #56c8b9;
  --accent-strong: #238f82;
  --accent-soft: #d5f4ef;
  --header-bg: #0d2c27;
  --header-color: #f4fbf9;
  --body-bg: #e7f1ee;
  --body-fg: #132422;
  --body-quiet-color: #5a6b66;
  --body-medium-color: #42514d;
  --darkened-bg: #eaf3f1;
  --selected-bg: #e7fbf7;
  --selected-row: #ddf4ef;
  --hairline-color: #d5e4de;
  --border-color: #d3e0dc;
  --link-fg: #146f64;
  --link-hover-color: #0c3f3a;
  --link-selected-fg: #0b302b;
  --button-fg: #effcf9;
  --button-bg: #0f4f47;
  --button-hover-bg: #0c3f3a;
  --default-button-bg: #56c8b9;
  --default-button-hover-bg: #3eb8a8;
  --close-button-bg: #6a776f;
  --close-button-hover-bg: #555d57;
  --delete-button-bg: #ba2015;
  --delete-button-hover-bg: #9d1b11;
  --qr-surface: #ffffff;
  --qr-muted-surface: #eef6f4;
  --qr-border: #d6e4de;
  --qr-text: #132422;
  --qr-muted: #5a6b66;
  color-scheme: light;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

[hidden] { display: none !important; }

html { color-scheme: light !important; }

body {
  margin: 0;
  min-height: 100vh;
  background:
    radial-gradient(circle at 8% 12%, rgba(86, 200, 185, .24), transparent 30%),
    radial-gradient(circle at 92% 36%, rgba(20, 68, 61, .16), transparent 30%),
    var(--body-bg);
  color: var(--qr-text);
  font-family: "Inter", "Avenir Next", "Segoe UI", Roboto, system-ui, -apple-system, sans-serif;
}

button,
input,
select,
textarea,
summary {
  font-family: inherit;
}

#header,
#header a:link,
#header a:visited {
  color: #f8fcfb;
}

#header {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  min-height: 72px;
  padding: 10px 26px;
  background:
    linear-gradient(120deg, #0d2c27 0%, #103d35 55%, #0d2f2a 100%);
  box-shadow: 0 6px 30px rgba(11, 40, 34, 0.2);
}

#branding {
  display: flex;
  align-items: center;
  gap: 24px;
  min-width: 0;
}

#branding #site-name {
  margin: 0;
}

.qr-simple-brand,
.qr-simple-brand:link,
.qr-simple-brand:visited {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  color: #ecfffb !important;
  font-size: .95rem;
  letter-spacing: .12em;
  font-weight: 820;
  text-transform: uppercase;
  text-decoration: none;
}

.qr-simple-brand img {
  width: 38px;
  height: 38px;
  border: 1px solid rgba(255,255,255,.22);
  border-radius: 11px;
  object-fit: contain;
}

#header .qr-top-nav {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-left: auto;
  flex-wrap: wrap;
}

#header .qr-top-nav a,
#header .qr-top-nav a:link,
#header .qr-top-nav a:visited {
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  padding: 8px 12px;
  border-radius: 11px;
  color: #f2fff9;
  font-size: .84rem;
  font-weight: 730;
  letter-spacing: .01em;
  text-decoration: none;
}

#header .qr-top-nav a:hover,
#header .qr-top-nav a:focus-visible {
  background: rgba(255,255,255,.14);
}

#user-tools {
  position: relative;
  margin-left: 14px;
  color: #d9f2eb;
  font-size: .8rem;
}

#user-tools a,
#user-tools a:link,
#user-tools a:visited {
  color: #d9f2eb;
}

#user-tools a:hover,
#user-tools a:focus-visible {
  color: #ffffff;
}

#nav-sidebar {
  border-right: 1px solid var(--qr-border);
  background: #ffffff;
  box-shadow: 12px 0 30px rgba(13, 46, 40, 0.06);
}

#nav-sidebar .module {
  border: 1px solid #e3efe9;
}

#nav-sidebar .module caption {
  padding: 13px 15px;
  color: #2d3f3b;
  font-size: .72rem;
  letter-spacing: .07em;
  text-transform: uppercase;
}

#nav-sidebar .module th,
#nav-sidebar .module td {
  padding: 11px 15px;
}

#nav-sidebar .module th a,
#nav-sidebar .module td a {
  color: #1f3d3a;
  font-size: .94rem;
}

#nav-sidebar .current-model {
  border-left: 4px solid var(--accent);
  background: #e7fbf7;
}

#nav-sidebar .current-app {
  border-left: 0;
}

#nav-sidebar .current-model a {
  color: #0f3a34;
  font-weight: 760;
}

#nav-sidebar #recent-actions-module {
  margin-top: 10px;
}

#nav-filter {
  margin: 10px 12px;
  border-radius: 12px;
  border: 1px solid var(--qr-border);
  padding: 10px 12px;
  min-height: 42px;
}

div.breadcrumbs {
  border-bottom: 1px solid var(--qr-border);
  background: #f6fbf9;
  color: #32413d;
}

div.breadcrumbs a,
div.breadcrumbs a:link,
div.breadcrumbs a:visited {
  color: #1d5148;
}

#content {
  max-width: 1560px;
  padding: 18px 20px 24px;
}

#content h1 {
  margin-bottom: 8px;
  color: #132422;
  font-size: clamp(1.45rem, 2.5vw, 1.95rem);
  letter-spacing: -.03em;
}

#content h2 {
  color: #132422;
  font-size: 1.2rem;
}

a,
a:link {
  color: #13665d;
}

a:hover,
a:focus-visible {
  color: #0a3f38;
}

.module,
fieldset.module {
  border: 1px solid var(--qr-border);
  border-radius: 14px;
  background: var(--qr-surface);
  box-shadow: 0 8px 24px rgba(14, 42, 34, 0.05);
  overflow: hidden;
}

.module h2,
fieldset.module h2,
.module caption,
.inline-group h2 {
  border-bottom: 1px solid var(--qr-border);
  background: linear-gradient(180deg, #ffffff, #f7fbfa);
  color: #152924;
  font-size: 1rem;
}

table thead th,
td,
th {
  border-bottom-color: var(--qr-border);
}

table td,
table th {
  border-bottom: 1px solid #e4eeea;
}

.aligned .form-row {
  padding-top: 14px;
  padding-bottom: 14px;
}

.aligned label {
  color: #273834;
  font-size: .98rem;
  font-weight: 700;
}

.aligned .form-row input[type="text"],
.aligned .form-row input[type="url"],
.aligned .form-row input[type="email"],
.aligned .form-row input[type="number"],
.aligned .form-row input[type="password"],
.aligned .form-row textarea,
.aligned .form-row select {
  width: min(760px, 100%);
  min-height: 44px;
  border: 1px solid var(--qr-border);
  border-radius: 10px;
  padding: 10px 12px;
  background: #ffffff;
  color: var(--qr-text);
  font-size: 1rem;
}

.aligned .form-row textarea {
  min-height: 100px;
  line-height: 1.45;
}

.aligned .form-row select {
  min-width: min(420px, 100%);
}

.aligned .form-row .help,
.help,
p.help,
form p.help,
div.help,
form div.help,
div.help li {
  margin-top: 8px;
  color: var(--qr-muted);
  font-size: .83rem;
  line-height: 1.45;
}

.aligned input:focus,
.aligned textarea:focus,
.aligned select:focus {
  border-color: #8cd8cb;
  box-shadow: 0 0 0 3px rgba(86,200,185,.2);
  outline: none;
}

.field-new_partner_name,
.field-message_variable input,
.field-whatsapp_template_en input,
.field-whatsapp_template_ru input {
  width: min(760px, 100%);
}

.field-new_partner_name {
  padding-bottom: 2px;
  background: linear-gradient(180deg, #f4fffc, #f3fdf8);
  border: 1px solid #d4efe7;
  border-radius: 11px;
}

.field-new_partner_name label {
  color: #275b4e;
  font-weight: 790;
}

.field-new_partner_name input {
  margin-bottom: 0;
}

.field-message_variable input {
  min-width: min(540px, 100%);
}

#content-main > .module {
  margin-bottom: 16px;
}

.submit-row {
  position: static;
  margin-top: 0;
  border: 1px solid var(--qr-border);
  border-radius: 12px;
  background: #ffffff;
  box-shadow: 0 12px 28px rgba(15, 56, 49, 0.08);
}

input[type="submit"],
input[type="button"],
.button,
button {
  min-height: 42px;
  padding: 10px 16px;
  border-radius: 10px;
  border: 1px solid transparent;
  font-weight: 760;
  letter-spacing: .01em;
}

.button:focus-visible,
input[type="submit"]:focus-visible,
input[type="button"]:focus-visible,
button:focus-visible,
a:focus-visible {
  outline: 3px solid rgba(86,200,185,.45);
  outline-offset: 2px;
}

.deletelink {
  background: var(--delete-button-bg);
}

.deletelink:hover {
  background: var(--delete-button-hover-bg);
}

.submit-row input.default {
  background: var(--default-button-bg);
  color: #082925;
}

.submit-row input.default:hover {
  background: var(--default-button-hover-bg);
}

.submit-row input[type="submit"]:not(.default),
.submit-row a,
.submit-row .button {
  background: #ffffff;
  color: #13312b;
  border-color: #d8e7e2;
}

.submit-row input[type="submit"]:not(.default):hover,
.submit-row a:hover {
  background: #f1fbf8;
  border-color: #b5d7ce;
}

.login #container {
  width: min(470px, calc(100% - 32px));
  min-width: 0;
  margin: 8vh auto 32px;
  border: 1px solid var(--qr-border);
  border-radius: 20px;
  background: #ffffff;
  box-shadow: 0 24px 68px rgba(12, 44, 36, .22);
  overflow: hidden;
}

.login #header {
  justify-content: center;
  height: auto;
  padding: 24px 28px;
}

.login .qr-login-heading {
  margin-bottom: 22px;
}

.login .qr-login-heading h1 {
  margin: 4px 0 8px;
  color: #0f3a34;
  font-size: 1.6rem;
  letter-spacing: -.03em;
}

.login .qr-login-heading p {
  color: #556862;
}

.login #branding { float: none; }
.login .qr-top-nav { display: none; }

body.login #content {
  width: auto;
  max-width: none;
  padding: 28px;
}

body.login #content-main {
  width: 100%;
}

body.login #login-form {
  margin: 0;
}

body.login #login-form .form-row {
  padding: 0 0 16px;
  border: 0;
}

.qr-otp-row small {
  display: block;
  margin-top: 7px;
  color: var(--qr-muted);
  font-size: .74rem;
}

.errornote {
  margin-bottom: 18px;
  border-radius: 10px;
}

.dashboard #content.colMS {
  width: min(1180px, calc(100% - 48px));
  max-width: 1180px;
  margin-right: auto;
  margin-left: auto;
}
.dashboard #content-related { display: none; }

.qr-admin-hero {
  position: relative;
  overflow: hidden;
  margin: 0 0 16px;
  padding: 28px 30px;
  border: 1px solid #d8ebe7;
  border-radius: 20px;
  background:
    radial-gradient(circle at 88% 14%, rgba(86,200,185,.28), transparent 30%),
    linear-gradient(135deg, #ffffff, #e8fbf6);
  color: #122b27;
  box-shadow: 0 18px 42px rgba(8, 46, 38, .1);
}

.qr-admin-hero::after {
  position: absolute;
  right: -88px;
  bottom: -130px;
  width: 260px;
  height: 260px;
  border: 1px solid rgba(14, 79, 71, .09);
  border-radius: 50%;
  box-shadow: 0 0 0 40px rgba(86,200,185,.08);
  content: "";
}

.qr-admin-hero > * {
  position: relative;
  z-index: 1;
}

.qr-admin-hero h1 {
  margin: 3px 0 0;
  color: #0d2c27;
  font-size: clamp(1.8rem, 2.9vw, 2.05rem);
  letter-spacing: -.035em;
}

.qr-hero-copy {
  max-width: 620px;
  margin-top: 8px;
  color: #56716a;
  line-height: 1.45;
}

.eyebrow {
  margin: 0;
  color: #2a6a5f;
  font-size: .68rem;
  font-weight: 780;
  letter-spacing: .15em;
  text-transform: uppercase;
}

.qr-hero-actions {
  margin-top: 16px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: flex-end;
}

.qr-primary-link,
.qr-export-row a,
.qr-secondary-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  border-radius: 10px;
  text-decoration: none;
  padding: 10px 15px;
  font-size: .9rem;
  font-weight: 760;
}

.qr-primary-link,
.qr-export-row a {
  background: #1d6358;
  color: #e7fffa !important;
}

.qr-primary-link:hover,
.qr-export-row a:hover {
  background: #134f46;
}

.qr-secondary-link {
  border: 1px solid #194c45;
  color: #10453f !important;
  background: #ffffff;
}

.qr-secondary-link:hover { background: #f1fbf9; }

.qr-warning {
  margin-bottom: 16px;
  padding: 13px 15px;
  border: 1px solid #86d6ca;
  border-radius: 11px;
  background: #eefbf7;
  color: #2f615a;
}

.qr-warning a {
  color: #1f544d;
  text-decoration: underline;
}

.qr-quick-actions {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 11px;
  margin: 18px 0 26px;
}

.qr-quick-actions a {
  display: grid;
  grid-template-columns: auto 1fr;
  column-gap: 12px;
  align-items: center;
  min-height: 86px;
  padding: 14px;
  border: 1px solid var(--qr-border);
  border-radius: 13px;
  background: var(--qr-surface);
  color: var(--qr-text);
  text-decoration: none;
  transition: transform .14s ease, border-color .14s ease, box-shadow .14s ease;
}

.qr-quick-actions a:hover,
.qr-quick-actions a:focus-visible {
  transform: translateY(-2px);
  border-color: #89d3c6;
  box-shadow: 0 12px 30px rgba(15, 63, 53, 0.12);
}

.qr-quick-actions strong,
.qr-quick-actions small { grid-column: 2; }

.qr-quick-actions strong { font-size: 1rem; }
.qr-quick-actions small { margin-top: 2px; color: var(--qr-muted); }

.qr-action-icon {
  grid-row: 1 / 3;
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background: #56c8b9;
  color: #083830;
  font-size: 1.35rem;
  font-weight: 800;
}

.qr-section-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin: 12px 0;
}

.qr-section-heading h2 {
  margin: 0;
}

.qr-section-heading span {
  color: var(--qr-muted);
  font-size: .77rem;
}

.qr-metrics {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(125px, 1fr));
  gap: 12px;
  margin: 14px 0;
}

.qr-metrics article {
  padding: 16px;
  border: 1px solid var(--qr-border);
  border-radius: 12px;
  background: var(--qr-surface);
  box-shadow: 0 7px 20px rgba(13, 55, 46, 0.05);
}

.qr-metrics span,
.qr-metrics small {
  display: block;
  color: var(--qr-muted);
}

.qr-metrics strong {
  display: block;
  margin: 5px 0;
  color: var(--qr-text);
  font-size: 1.85rem;
  letter-spacing: -.045em;
}

.qr-footnote {
  color: var(--qr-muted);
  font-size: .8rem;
}

.qr-filters {
  display: flex;
  flex-wrap: wrap;
  align-items: end;
  gap: 12px;
  padding: 16px;
  border: 1px solid var(--qr-border);
  border-radius: 13px;
  background: var(--qr-muted-surface);
}

.qr-filters label {
  display: grid;
  gap: 5px;
}

.qr-filters input,
.qr-filters select,
.qr-totp input,
.qr-export-row button {
  min-height: 38px;
}

.qr-filters button {
  min-height: 38px;
  padding: 8px 14px;
}

.qr-export-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 18px 0;
}

.qr-panel {
  margin: 18px 0;
  padding: 18px;
  border: 1px solid var(--qr-border);
  border-radius: 13px;
  background: var(--qr-surface);
  overflow: auto;
}

.qr-panel h2 { margin-top: 0; }

.qr-panel-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 16px;
}

.qr-panel-heading h2 {
  margin: 2px 0 0;
}

.qr-panel-heading > span {
  color: var(--qr-muted);
  font-size: .78rem;
}

.qr-panel table {
  width: 100%;
  border-collapse: collapse;
}

.qr-panel td,
.qr-panel th {
  padding: 9px;
  border-bottom: 1px solid var(--qr-border);
  text-align: left;
}

.qr-table-scroll {
  width: 100%;
  overflow-x: auto;
}

.qr-analytics-table {
  min-width: 1040px;
  font-variant-numeric: tabular-nums;
}

.qr-analytics-table thead th {
  padding: 11px 7px;
  background: var(--qr-muted-surface);
  color: #4f5f5b;
  font-size: .65rem;
  letter-spacing: .045em;
  text-transform: uppercase;
}

.qr-analytics-table tbody td {
  padding: 13px 7px;
  font-size: .86rem;
}

.qr-analytics-table tbody tr:hover td {
  background: #e7fbf7;
}

.qr-analytics-table tbody strong {
  color: var(--qr-text);
  font-size: 1rem;
}

.qr-analytics-table tfoot th {
  padding: 12px 7px;
  border-top: 2px solid var(--qr-border);
  border-bottom: 0;
  background: var(--qr-muted-surface);
  color: var(--qr-text);
}

.qr-partner-cell {
  min-width: 145px;
}

.qr-partner-cell a {
  display: block;
  font-weight: 760;
}

.qr-partner-cell small {
  display: block;
  margin-top: 4px;
  color: var(--qr-muted);
  font-size: .7rem;
}

.qr-status-dot {
  display: inline-block;
  width: 6px;
  height: 6px;
  margin-right: 2px;
  border-radius: 50%;
  background: #22c55e;
  box-shadow: 0 0 0 3px rgba(34,197,94,.14);
}

.qr-conversion {
  display: inline-block;
  min-width: 58px;
  padding: 5px 8px;
  border-radius: 999px;
  background: #dbf9ef;
  color: #2f6245;
  font-weight: 800;
  text-align: center;
}

.qr-empty-row {
  padding: 28px !important;
  color: var(--qr-muted);
  text-align: center !important;
}

.qr-dimensions {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}

.qr-dimensions .qr-panel { margin: 0; }

.qr-totp {
  max-width: 620px;
}

.qr-totp img {
  display: block;
  margin: 12px 0;
}

.qr-totp code {
  display: block;
  margin: 10px 0;
  padding: 12px;
  word-break: break-all;
  background: #f6fafa;
  border: 1px solid var(--qr-border);
  border-radius: 9px;
}

.qr-totp form {
  display: flex;
  gap: 10px;
  align-items: center;
}

.qr-form-guide {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin: 0 0 20px;
  padding: 18px 20px;
  border: 1px solid #d0ebe5;
  border-radius: 14px;
  background: linear-gradient(135deg, #ffffff, #ebf9f6);
}

.qr-form-guide strong,
.qr-form-guide p {
  display: block;
}

.qr-form-guide strong {
  margin-top: 4px;
  color: #1d3e39;
  font-size: 1rem;
}

.qr-form-guide p {
  margin: 5px 0 0;
  color: #66716d;
}

.qr-guide-step {
  color: #237266;
  font-size: .67rem;
  font-weight: 850;
  letter-spacing: .14em;
}

.qr-create-steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin: 0 0 18px;
  padding: 0;
  list-style: none;
}

.qr-create-steps li {
  display: grid;
  grid-template-columns: 36px 1fr;
  column-gap: 10px;
  align-items: center;
  min-height: 62px;
  padding: 12px;
  border: 1px solid var(--qr-border);
  border-radius: 13px;
  background: #ffffff;
}

.qr-create-steps span {
  grid-row: 1 / 3;
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--accent);
  color: #083830;
  font-weight: 850;
}

.qr-create-steps strong,
.qr-create-steps small {
  grid-column: 2;
}

.qr-create-steps strong { color: #1f3a34; }
.qr-create-steps small { color: var(--qr-muted); }

.qr-submit-simple {
  display: flex;
  align-items: center;
  gap: 14px;
}

.qr-submit-simple input.default { min-width: 240px; }

.qr-submit-simple small { color: var(--qr-muted); }

.qr-section-primary,
.qr-section-routing,
.qr-section-landing,
.qr-section-qr {
  margin-bottom: 18px !important;
}

.qr-section-qr .readonly {
  width: 100%;
}

.qr-preview-card {
  display: grid;
  justify-items: start;
  gap: 12px;
}

.qr-preview-card img {
  width: min(380px, 100%);
  border: 1px solid var(--qr-border);
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 9px 28px rgba(16, 50, 43, .12);
}

.qr-preview-card > div {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.qr-preview-card > a { font-weight: 700; }

.qr-preview-card .qr-download-primary .button:first-child {
  border-color: #8fd2c7;
  background: var(--accent);
  color: #083830;
}

.qr-preview-card details {
  width: min(440px, 100%);
  color: var(--qr-muted);
}

.qr-preview-card details summary {
  cursor: pointer;
  font-weight: 700;
}

.qr-preview-card details div {
  display: flex;
  gap: 14px;
  padding-top: 8px;
}

.qr-tracking-links {
  display: grid;
  gap: 14px;
  width: min(920px, 100%);
}

.qr-tracking-links > p { margin: 0; color: var(--qr-muted); }

.qr-tracking-link {
  display: grid;
  grid-template-columns: 96px minmax(220px, 1fr) auto;
  gap: 8px 12px;
  align-items: center;
  padding: 14px;
  border: 1px solid var(--qr-border);
  border-radius: 12px;
  background: var(--qr-muted-surface);
}

.qr-tracking-link code {
  overflow-x: auto;
  padding: 9px 11px;
  border-radius: 8px;
  background: var(--qr-surface);
  color: var(--qr-text);
  white-space: nowrap;
}

.qr-tracking-link small {
  grid-column: 2 / 4;
  color: var(--qr-muted);
}

.qr-row-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
}

.qr-row-actions a {
  padding: 5px 8px;
  border: 1px solid var(--qr-border);
  border-radius: 7px;
  background: var(--qr-surface);
  text-decoration: none;
}

.qr-row-actions a:first-child {
  border-color: var(--primary);
  background: var(--primary);
  color: #ffffff;
}

.inline-group {
  border-radius: 12px;
}

@media (max-width: 1100px) {
  .qr-quick-actions { grid-template-columns: repeat(2, 1fr); }
  .qr-metrics { grid-template-columns: repeat(3, 1fr); }
  .qr-dimensions { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 1100px) {
  body #header {
    flex: 0 0 auto;
    height: auto;
    min-height: 0;
    padding: 12px 16px;
    flex-direction: row;
  }
  #header #branding {
    width: 100%;
    gap: 12px;
  }
  #header #branding #site-name {
    flex: 0 0 auto;
    margin: 0;
  }
  #header .qr-top-nav {
    width: auto;
    margin: 0 0 0 auto;
  }
  #header #user-tools { display: none; }
}

@media (max-width: 700px) {
  body #header {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    height: auto;
    min-height: 0;
    padding: 12px;
  }
  #header #branding {
    display: grid;
    float: none;
    grid-template-columns: minmax(0, 1fr);
    width: 100%;
    gap: 8px;
  }
  #header #branding #site-name {
    width: 100%;
    min-width: 0;
    margin: 0;
  }
  #header .qr-top-nav {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    width: 100%;
    gap: 4px;
    margin: 0;
  }
  #header .qr-top-nav a,
  #header .qr-top-nav a:link,
  #header .qr-top-nav a:visited {
    justify-content: center;
    min-width: 0;
    min-height: 44px;
    padding: 8px 4px;
    font-size: .78rem;
    text-align: center;
  }
  #header #user-tools { display: none; }
  body.login #header .qr-top-nav { display: none; }
  #content { padding: 16px 12px; }
  .dashboard #content.colMS {
    width: 100%;
    max-width: none;
    margin: 0;
  }
  .qr-admin-hero,
  .qr-form-guide { align-items: flex-start; flex-direction: column; }
  .qr-admin-hero { padding: 22px 20px; }
  .qr-hero-actions { justify-content: flex-start; }
  .qr-hero-copy { max-width: 100%; }
  .qr-create-steps { grid-template-columns: 1fr; }
  .qr-submit-simple { align-items: stretch; flex-direction: column; }
  .qr-submit-simple input.default { width: 100%; }
  .qr-quick-actions,
  .qr-metrics,
  .qr-dimensions { grid-template-columns: 1fr 1fr; }
  .qr-events-table { max-width: 100%; overflow: auto; }
  .qr-tracking-link {
    grid-template-columns: minmax(0, 1fr);
  }
  .qr-tracking-link code,
  .qr-tracking-link button,
  .qr-tracking-link small {
    grid-column: 1;
    width: 100%;
    max-width: 100%;
  }
  .qr-tracking-link button { justify-self: stretch; }
  .qr-preview-card details div { flex-wrap: wrap; }
  .qr-totp form { align-items: stretch; flex-direction: column; }
  .qr-filters {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .qr-filters label,
  .qr-filters input,
  .qr-filters select { width: 100%; min-width: 0; }
  .qr-filters button { grid-column: 1 / -1; width: 100%; }
  .qr-panel-heading { align-items: flex-start; flex-direction: column; gap: 6px; }
  .qr-partner-panel { overflow: visible; padding: 14px; }
  .qr-table-scroll { overflow: visible; }
  .qr-analytics-table { display: block; min-width: 0; }
  .qr-analytics-table thead,
  .qr-analytics-table tfoot { display: none; }
  .qr-analytics-table tbody,
  .qr-analytics-table tr { display: block; }
  .qr-analytics-table tbody tr {
    margin-bottom: 12px;
    padding: 8px 12px;
    border: 1px solid var(--qr-border);
    border-radius: 12px;
    background: var(--qr-muted-surface);
  }
  .qr-analytics-table tbody td {
    display: grid;
    grid-template-columns: minmax(105px, 1fr) auto;
    align-items: center;
    gap: 14px;
    min-width: 0;
    padding: 8px 0;
    border-bottom: 1px solid var(--qr-border);
    text-align: right;
  }
  .qr-analytics-table tbody td:last-child { border-bottom: 0; }
  .qr-analytics-table tbody td::before {
    color: var(--qr-muted);
    content: attr(data-label);
    font-size: .66rem;
    font-weight: 760;
    letter-spacing: .04em;
    text-align: left;
    text-transform: uppercase;
  }
  .qr-analytics-table .qr-partner-cell { display: block; padding: 8px 0 12px; text-align: left; }
  .qr-analytics-table .qr-partner-cell::before { display: none; }
  .login #container { width: calc(100% - 20px); margin-top: 10px; border-radius: 15px; }
  .login #content { padding: 24px 20px; }
  .login #header { padding: 19px 20px; }
}

@media (max-width: 460px) {
  .qr-quick-actions,
  .qr-dimensions,
  .qr-section-heading { grid-template-columns: 1fr; }
  .qr-filters {
    grid-template-columns: 1fr;
  }
  .qr-filters button { width: 100%; }
  .qr-form-guide .button { width: 100%; text-align: center; }
  .qr-analytics .qr-metrics { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

body .collapse summary h2,
body fieldset.collapse summary h2,
body fieldset.collapse summary .fieldset-heading,
#content fieldset.collapse summary .fieldset-heading {
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
  color: #f7f7f7;
}

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