@charset "UTF-8";
:root {
  --ink: #192a42;
  --muted: #63738b;
  --blue: #245ce7;
  --blue-dark: #1649c8;
  --line: #e5eaf2;
  --surface: #f5f7fb;
  --green: #167454;
  --radius: 18px;
  font-family: "PingFang SC", "Microsoft YaHei", "Noto Sans CJK SC", sans-serif;
  color: var(--ink);
  background: var(--surface);
  font-size: 15px;
  line-height: 1.65;
  font-synthesis: none;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
}
a {
  color: var(--blue);
  text-decoration: none;
}
a:hover {
  text-decoration: underline;
}
button,
input,
textarea {
  font: inherit;
}
button,
a,
input,
textarea {
  touch-action: manipulation;
}
button {
  cursor: pointer;
}
button:disabled {
  cursor: not-allowed;
  opacity: 0.55;
}
button:focus-visible,
a:focus-visible,
input:focus-visible,
textarea:focus-visible {
  outline: 3px solid #89aaff;
  outline-offset: 3px;
}
button,
a {
  transition:
    background 0.18s,
    color 0.18s,
    box-shadow 0.18s;
}
h1,
h2,
h3,
p {
  margin: 0;
}
h1 {
  font-size: 36px;
  line-height: 1.3;
  letter-spacing: -1.2px;
  font-weight: 700;
}
h2 {
  font-size: 19px;
  letter-spacing: -0.4px;
}
h3 {
  font-size: 17px;
}
small {
  display: block;
  font-size: 12px;
  color: var(--muted);
  line-height: 1.6;
}
img {
  object-fit: cover;
}
button {
  border: 0;
}
form {
  margin: 0;
}
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 24px;
  border: 1px solid transparent;
  min-height: 46px;
  padding: 10px 23px;
  border-radius: 10px;
  background: var(--blue);
  color: white;
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
}
.button:hover {
  background: var(--blue-dark);
  text-decoration: none;
  box-shadow: 0 4px 14px #245ce724;
}
.button span {
  font-size: 18px;
}
.button.secondary {
  background: white;
  border-color: var(--line);
  color: var(--ink);
}
.button.secondary:hover {
  background: var(--surface);
}
.full {
  width: 100%;
}
.muted {
  color: var(--muted);
}
.small {
  font-size: 12px;
}
.eyebrow {
  display: block;
  color: var(--blue);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 2px;
}
.accent {
  color: var(--blue);
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
  line-height: 1.2;
  font-size: 21px;
  font-weight: 700;
  letter-spacing: -0.6px;
  text-decoration: none;
}
.brand:hover {
  text-decoration: none;
}
.brand small {
  font-weight: 400;
  letter-spacing: 2px;
  font-size: 10px;
  margin-top: 4px;
}
.brand-mark {
  background: var(--blue);
  color: white;
  font-size: 29px;
  border-radius: 12px;
  width: 43px;
  height: 43px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}
.brand-mark > span {
  font-size: 17px;
  position: absolute;
  right: 6px;
  top: 0;
}
.topbar {
  max-width: 1200px;
  margin: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 28px 40px;
}
.text-link,
.text-button {
  font-size: 13px;
  color: var(--muted);
  background: transparent;
}
.text-button {
  min-height: 44px;
}
.text-link:hover,
.text-button:hover {
  color: var(--blue);
}
.header-note {
  color: var(--muted);
  font-size: 13px;
}
footer {
  max-width: 1200px;
  padding: 27px 40px;
  margin: 40px auto 0;
  display: flex;
  justify-content: space-between;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 11px;
}
label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 7px;
}
label span {
  color: var(--blue);
}
input:not([type="checkbox"]),
textarea {
  display: block;
  width: 100%;
  border: 1px solid #dbe2ee;
  border-radius: 9px;
  background: #fff;
  padding: 11px 13px;
  min-height: 45px;
  color: var(--ink);
  outline-offset: 0;
}
input::placeholder,
textarea::placeholder {
  color: #75839a;
}
input[readonly] {
  background: #f0f3f8;
  color: var(--muted);
}
input[type="file"] {
  padding: 7px;
  font-size: 12px;
}
input[type="file"]::file-selector-button {
  background: #edf2ff;
  border: 0;
  padding: 6px 12px;
  border-radius: 5px;
  color: var(--blue);
  margin-right: 10px;
  cursor: pointer;
}
textarea {
  resize: vertical;
}
input + small {
  margin-top: 6px;
}
.alert {
  padding: 12px 16px;
  border-radius: 9px;
  font-size: 13px;
  margin: 16px 0;
  border: 1px solid;
}
.alert.error {
  background: #fff1f0;
  color: #a52c2c;
  border-color: #f5ccca;
}
.alert.success {
  background: #edf9f2;
  color: #216542;
  border-color: #ccebd8;
}
.alert.info {
  background: #edf3ff;
  border-color: #cbdcff;
  color: #254b95;
}
[hidden] {
  display: none !important;
}
.public-body {
  background: linear-gradient(130deg, #f3f6ff 0, #fff 45%, #f7f9fd 100%);
  min-height: 100vh;
}
.catalog {
  max-width: 1120px;
  margin: 70px auto 100px;
  padding: 0 40px;
}
.catalog h1 {
  font-size: 56px;
  margin-top: 20px;
}
.catalog > .muted {
  margin-top: 20px;
}
.catalog-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
  margin-top: 45px;
}
.catalog-card {
  background: white;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 25px;
  display: flex;
  gap: 18px;
  align-items: center;
  color: var(--ink);
}
.catalog-card:hover {
  border-color: #b4c9ff;
  text-decoration: none;
  box-shadow: 0 8px 30px #1d43810a;
}
.catalog-card h2 {
  font-size: 18px;
}
.catalog-card p {
  font-size: 12px;
  color: var(--muted);
  margin-top: 7px;
}
.catalog-card .app-icon {
  width: 58px;
  height: 58px;
  border-radius: 14px;
}
.arrow {
  margin-left: auto;
  color: var(--blue);
  font-size: 24px;
}
.empty-state {
  padding: 40px 20px;
  text-align: center;
  color: var(--muted);
}
.empty-state h2,
.empty-state h3 {
  color: var(--ink);
}
.empty-state p {
  margin: 10px 0 20px;
  font-size: 13px;
}
.catalog-grid > .empty-state {
  grid-column: 1/-1;
  background: white;
  border: 1px dashed #cdd7e8;
  border-radius: 16px;
}
.empty-page {
  padding: 90px 25px;
  text-align: center;
  min-height: 65vh;
}
.empty-page h1 {
  margin: 15px 0;
}
.empty-page .button {
  margin-top: 30px;
}
.app-icon {
  display: block;
  width: 96px;
  height: 96px;
  border-radius: 24px;
  box-shadow: 0 5px 18px #162d6410;
}
.download-layout {
  max-width: 1040px;
  margin: 55px auto 70px;
  padding: 0 35px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  gap: 95px;
}
.download-main > .eyebrow {
  margin-bottom: 25px;
}
.app-hero {
  display: flex;
  gap: 24px;
  align-items: center;
}
.app-hero h1 {
  font-size: 33px;
  overflow-wrap: anywhere;
}
.version {
  display: inline-block;
  font-size: 12px;
  color: var(--muted);
  margin-top: 10px;
  border: 1px solid var(--line);
  padding: 2px 10px;
  border-radius: 5px;
}
.app-description {
  color: var(--muted);
  margin: 26px 0 30px;
  line-height: 1.9;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  font-size: 14px;
}
.platform-tabs {
  display: flex;
  background: #edf0f6;
  padding: 5px;
  border-radius: 11px;
  gap: 4px;
}
.platform-tabs button {
  width: 50%;
  color: var(--muted);
  min-height: 43px;
  background: transparent;
  border-radius: 8px;
  font-size: 14px;
}
.platform-tabs button[aria-selected="true"] {
  color: var(--blue);
  background: white;
  box-shadow: 0 2px 5px #102a4310;
  font-weight: 600;
}
.platform-copy {
  margin: 23px 0 17px;
  font-size: 13px;
  color: var(--muted);
}
.download-button {
  width: 100%;
  justify-content: space-between;
  min-height: 54px;
}
.fine-print {
  display: block;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.8;
  margin-top: 11px;
}
.steps {
  margin-top: 37px;
}
.section-label {
  border-bottom: 1px solid var(--line);
  padding-bottom: 15px;
  font-size: 14px;
  font-weight: 600;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.section-label > span {
  font-size: 9px;
  letter-spacing: 1.5px;
  color: var(--muted);
  font-weight: 400;
}
.steps ol {
  list-style: none;
  padding: 0;
  margin: 23px 0 0;
}
.steps li {
  display: flex;
  gap: 17px;
  margin-bottom: 25px;
}
.step-no {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 33px;
  height: 33px;
  background: #edf2ff;
  color: var(--blue);
  font-size: 11px;
  flex-shrink: 0;
  border-radius: 10px;
  font-weight: 700;
}
.steps strong {
  font-size: 13px;
  font-weight: 600;
}
.steps p {
  font-size: 12px;
  color: var(--muted);
  margin-top: 5px;
  line-height: 1.8;
}
.download-aside {
  padding-top: 5px;
}
.qr-card {
  background: #edf2ff;
  border-radius: 24px;
  padding: 32px;
  text-align: center;
  border: 1px solid #e0e9ff;
  position: relative;
}
.qr-card .eyebrow {
  font-size: 9px;
}
.qr-card h2 {
  font-size: 27px;
  line-height: 1.5;
  margin: 17px 0 25px;
}
.qr-frame {
  background: white;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 15px;
  box-shadow: 0 6px 18px #1a3c6b06;
}
.qr-frame canvas {
  display: block;
  width: 100%;
  height: auto;
  image-rendering: pixelated;
}
.qr-card p {
  margin-top: 22px;
  font-size: 12px;
  color: var(--muted);
  line-height: 1.9;
}
.copy-link {
  background: white;
  border: 1px solid #d2def7;
  color: var(--blue);
  min-height: 44px;
  border-radius: 8px;
  width: 100%;
  font-size: 12px;
  margin-top: 23px;
}
.copy-link:hover {
  background: #f8faff;
}
.aside-note {
  padding: 25px 8px;
  color: var(--muted);
  font-size: 11px;
}
.aside-note > span {
  color: var(--ink);
  font-weight: 600;
}
.aside-note p {
  margin-top: 9px;
  line-height: 1.9;
}
.login-body {
  min-height: 100vh;
  background: #f6f8fc;
}
.login-layout {
  max-width: 1000px;
  padding: 50px 40px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 390px;
  gap: 100px;
  align-items: center;
}
.login-intro h1 {
  font-size: 38px;
  margin: 20px 0;
}
.login-intro > p {
  color: var(--muted);
  font-size: 13px;
  line-height: 2;
}
.login-card {
  padding: 37px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 22px;
  box-shadow: 0 20px 60px #1a3d6b06;
}
.login-card h2 {
  font-size: 24px;
  margin: 15px 0 8px;
}
.login-card > .muted {
  font-size: 12px;
}
.login-card form {
  margin-top: 32px;
}
.login-card .button {
  margin-top: 22px;
  justify-content: space-between;
}
.login-note {
  font-size: 11px;
  color: var(--muted);
  margin-top: 25px;
  line-height: 1.9;
}
.login-note code {
  font-size: 10px;
}
.orbit {
  width: 250px;
  height: 195px;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 40px;
  background: radial-gradient(ellipse, #dfe8ff 0, transparent 70%);
}
.orbit:before,
.orbit:after {
  content: "";
  position: absolute;
  border: 1px solid #d2ddf6;
  border-radius: 50%;
  width: 235px;
  height: 100px;
  transform: rotate(-25deg);
}
.orbit:after {
  transform: rotate(25deg);
}
.orbit-inner {
  position: relative;
  z-index: 1;
  transform: rotate(-8deg);
}
.orbit-inner img {
  width: 78px;
  height: 78px;
  border-radius: 22px;
  box-shadow: 0 15px 28px #245ce72a;
}
.orbit-label {
  position: absolute;
  right: -15px;
  bottom: 27px;
  background: white;
  padding: 6px 14px;
  border-radius: 8px;
  font-size: 10px;
  border: 1px solid var(--line);
  z-index: 2;
}
.sidebar {
  position: fixed;
  inset: 0 auto 0 0;
  width: 225px;
  padding: 30px 22px;
  background: #fff;
  border-right: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  z-index: 10;
}
.sidebar .brand {
  padding-left: 5px;
}
.nav-caption {
  font-size: 9px;
  letter-spacing: 1.7px;
  color: var(--muted);
  margin: 50px 12px 13px;
}
.nav-item {
  display: flex;
  align-items: center;
  gap: 13px;
  color: var(--muted);
  padding: 11px 14px;
  min-height: 46px;
  border-radius: 9px;
  font-size: 13px;
  margin: 3px 0;
}
.nav-item > span {
  font-size: 18px;
}
.nav-item:hover {
  background: #f5f7fb;
  text-decoration: none;
}
.nav-item.active {
  color: var(--blue);
  background: #edf2ff;
  font-weight: 600;
}
.sidebar-bottom {
  margin-top: auto;
  font-size: 11px;
  color: var(--muted);
  padding: 20px 8px 0;
  border-top: 1px solid var(--line);
}
.sidebar-bottom small {
  font-size: 8px;
  letter-spacing: 1.4px;
  margin-top: 13px;
}
.status-dot {
  display: inline-block;
  width: 7px;
  height: 7px;
  background: #23a878;
  border-radius: 50%;
  margin-right: 6px;
}
.admin-workspace {
  margin-left: 225px;
}
.admin-top {
  padding: 15px 35px;
  background: #fff;
  border-bottom: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 12px;
  height: 72px;
}
.crumb {
  color: var(--muted);
  margin-left: 12px;
}
.admin-main {
  padding: 35px;
  max-width: 1450px;
  margin: auto;
}
.page-title {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 27px;
  gap: 20px;
}
.page-title h1 {
  font-size: 29px;
  margin-top: 8px;
}
.page-title p {
  font-size: 12px;
  margin-top: 9px;
}
.count-pill {
  display: inline-flex;
  vertical-align: middle;
  font-size: 12px;
  background: #e7edfa;
  color: var(--blue);
  padding: 3px 10px;
  border-radius: 8px;
  letter-spacing: 0;
  margin-left: 12px;
}
.stat-row {
  display: grid;
  grid-template-columns: 1fr 1fr 1.8fr;
  background: white;
  border: 1px solid var(--line);
  border-radius: 14px;
  margin-bottom: 28px;
  padding: 22px 0;
}
.stat-row > div {
  padding: 0 26px;
  border-right: 1px solid var(--line);
}
.stat-row > div:last-child {
  border: 0;
}
.stat-row > div > span:not(.status-dot) {
  font-size: 11px;
  color: var(--muted);
}
.stat-row strong {
  display: block;
  font-size: 29px;
  line-height: 1.5;
  font-weight: 600;
}
.stat-row strong small {
  display: inline;
  font-weight: 400;
  font-size: 11px;
  margin-left: 10px;
}
.stat-note {
  display: flex;
  align-items: center;
  gap: 10px;
}
.stat-note p {
  font-size: 12px;
}
.stat-note small {
  font-size: 10px;
  margin-top: 6px;
}
.panel {
  border: 1px solid var(--line);
  background: white;
  border-radius: 14px;
  margin-bottom: 26px;
  overflow: hidden;
  scroll-margin-top: 25px;
}
.panel-header {
  padding: 19px 24px;
  border-bottom: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 15px;
}
.panel-header h2 {
  font-size: 15px;
}
.table-scroll {
  overflow-x: auto;
}
table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  font-size: 12px;
}
th {
  font-weight: 500;
  color: var(--muted);
  font-size: 11px;
  background: #fafbfd;
  padding: 13px 24px;
  white-space: nowrap;
}
td {
  padding: 18px 24px;
  border-top: 1px solid #f0f3f7;
  vertical-align: middle;
}
.table-app {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 150px;
  max-width: 280px;
  overflow-wrap: anywhere;
}
.table-app .app-icon {
  width: 41px;
  height: 41px;
  border-radius: 11px;
  flex-shrink: 0;
}
.table-app strong {
  font-size: 12px;
}
.table-app small {
  font-size: 10px;
  margin-top: 3px;
}
.platform-tag {
  display: inline-block;
  border: 1px solid var(--line);
  background: #f8fafc;
  color: var(--muted);
  padding: 3px 7px;
  border-radius: 5px;
  margin: 2px;
  font-size: 10px;
  white-space: nowrap;
}
.platform-tag.configured {
  color: #35527d;
  background: #f2f5fc;
}
.badge {
  display: inline-block;
  color: var(--green);
  background: #ecf8f2;
  padding: 3px 10px;
  border-radius: 5px;
  font-size: 10px;
  white-space: nowrap;
}
.badge:before {
  content: "";
  display: inline-block;
  width: 5px;
  height: 5px;
  background: currentColor;
  border-radius: 50%;
  margin-right: 6px;
}
.badge.off {
  background: #f0f2f5;
  color: var(--muted);
}
.row-actions {
  display: flex;
  align-items: center;
  gap: 15px;
  white-space: nowrap;
}
.row-actions > a {
  padding: 10px 0;
}
.danger-link {
  color: #b14040;
  background: none;
  font-size: 11px;
  min-height: 44px;
  padding: 0;
}
.form-section {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 35px;
  margin: 0 26px;
  padding: 28px 0;
  border-bottom: 1px solid var(--line);
}
.section-index {
  font-size: 10px;
  letter-spacing: 1px;
  color: var(--blue);
}
.form-section-intro h3 {
  font-size: 14px;
  margin: 12px 0 9px;
}
.form-section-intro p {
  font-size: 11px;
  line-height: 1.9;
  color: var(--muted);
  max-width: 190px;
}
.field-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
  margin-bottom: 20px;
}
.form-fields > label:not(:first-child) {
  margin-top: 20px;
}
.check-label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 500;
  flex-wrap: wrap;
}
.check-label input {
  accent-color: var(--blue);
  width: 17px;
  height: 17px;
}
.check-label span {
  display: block;
  flex-basis: 100%;
  font-size: 11px;
  color: var(--muted);
  font-weight: 400;
  margin-left: 25px;
}
.form-bottom {
  padding: 20px 26px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  background: #fcfdff;
}
.password-form {
  display: flex;
  align-items: flex-end;
  gap: 20px;
  padding: 25px;
}
.password-form > div {
  flex: 1;
}
.password-form .button {
  min-height: 47px;
}
.admin-footer {
  display: flex;
  justify-content: space-between;
  font-size: 10px;
  color: var(--muted);
  padding: 0 35px 25px;
}
@media (min-width: 1500px) {
  .admin-main {
    padding-top: 45px;
  }
  .form-section {
    grid-template-columns: 260px 1fr;
    gap: 50px;
  }
  .sidebar {
    width: 245px;
  }
  .admin-workspace {
    margin-left: 245px;
  }
}
@media (max-width: 1100px) {
  .sidebar {
    width: 195px;
    padding: 25px 14px;
  }
  .admin-workspace {
    margin-left: 195px;
  }
  .admin-main {
    padding: 25px;
  }
  .form-section {
    grid-template-columns: 170px 1fr;
    gap: 20px;
  }
  .stat-row {
    grid-template-columns: 1fr 1fr;
  }
  .stat-note {
    display: none;
  }
  .stat-row > div:nth-child(2) {
    border: 0;
  }
  td,
  th {
    padding-left: 16px;
    padding-right: 16px;
  }
  .download-layout {
    gap: 45px;
  }
  .login-layout {
    gap: 50px;
  }
}
@media (max-width: 800px) {
  .sidebar {
    position: static;
    width: auto;
    border-right: 0;
    border-bottom: 1px solid var(--line);
    padding: 16px 22px;
    flex-direction: row;
    gap: 12px;
    align-items: center;
  }
  .sidebar .brand {
    margin-right: auto;
  }
  .sidebar .brand small {
    display: none;
  }
  .sidebar .brand {
    font-size: 18px;
  }
  .sidebar .brand-mark {
    width: 36px;
    height: 36px;
  }
  .nav-caption,
  .sidebar-bottom {
    display: none;
  }
  .nav-item {
    font-size: 11px;
    padding: 7px 10px;
    gap: 6px;
  }
  .nav-item > span {
    font-size: 15px;
  }
  .admin-workspace {
    margin: 0;
  }
  .admin-top {
    height: 55px;
    padding: 6px 25px;
  }
  .form-section {
    grid-template-columns: 1fr;
    gap: 18px;
  }
  .form-section-intro {
    display: flex;
    gap: 15px;
    align-items: center;
    flex-wrap: wrap;
  }
  .form-section-intro p {
    max-width: none;
    flex-basis: 100%;
    margin-top: -5px;
  }
  .form-section-intro h3 {
    margin: 0;
  }
  .download-layout {
    gap: 35px;
    grid-template-columns: minmax(0, 1fr) 260px;
    padding: 0 25px;
  }
  .qr-card {
    padding: 25px;
  }
  .qr-card h2 {
    font-size: 23px;
  }
  .app-hero .app-icon {
    width: 75px;
    height: 75px;
    border-radius: 19px;
  }
  .app-hero {
    gap: 17px;
  }
  .app-hero h1 {
    font-size: 25px;
  }
  .login-layout {
    grid-template-columns: 1fr;
    max-width: 480px;
    gap: 35px;
    padding: 35px 25px;
  }
  .login-intro {
    display: none;
  }
  .login-card {
    padding: 30px;
  }
  .catalog-grid {
    grid-template-columns: 1fr;
  }
}
@media (max-width: 600px) {
  .topbar {
    padding: 22px;
  }
  .topbar .brand {
    font-size: 18px;
  }
  .brand-mark {
    width: 37px;
    height: 37px;
    border-radius: 10px;
  }
  .header-note {
    font-size: 11px;
  }
  .download-layout {
    display: flex;
    flex-direction: column;
    margin: 25px auto 20px;
    padding: 0 24px;
    gap: 35px;
    max-width: 470px;
  }
  .download-main > .eyebrow {
    font-size: 9px;
    margin-bottom: 22px;
  }
  .app-hero .app-icon {
    width: 84px;
    height: 84px;
    border-radius: 22px;
  }
  .app-hero h1 {
    font-size: 27px;
  }
  .app-description {
    font-size: 14px;
  }
  .platform-tabs button {
    font-size: 15px;
  }
  .platform-copy,
  .steps strong {
    font-size: 14px;
  }
  .steps p {
    font-size: 13px;
  }
  .download-aside {
    padding: 0;
  }
  .qr-card {
    padding: 25px 30px;
    display: flex;
    flex-direction: column;
    align-items: center;
  }
  .qr-card h2 {
    font-size: 22px;
    margin: 10px 0 18px;
  }
  .qr-card h2 br {
    display: none;
  }
  .qr-frame {
    width: 180px;
  }
  .qr-card p {
    margin-top: 14px;
  }
  .copy-link {
    max-width: 230px;
    margin-top: 15px;
  }
  .aside-note {
    padding: 20px 5px;
  }
  footer {
    margin-top: 25px;
    padding: 22px;
    gap: 15px;
    font-size: 10px;
  }
  footer span:last-child {
    display: none;
  }
  .catalog {
    margin: 35px auto 50px;
    padding: 0 24px;
  }
  .catalog h1 {
    font-size: 43px;
  }
  .catalog-card {
    padding: 20px;
  }
  .sidebar {
    padding: 14px 18px;
    gap: 5px;
    flex-wrap: wrap;
  }
  .sidebar .brand {
    flex-basis: 100%;
    margin-bottom: 9px;
  }
  .sidebar .brand small {
    display: block;
  }
  .nav-item {
    flex: 1;
    justify-content: center;
    white-space: nowrap;
  }
  .admin-main {
    padding: 23px 16px;
  }
  .page-title {
    align-items: flex-start;
    gap: 10px;
  }
  .page-title h1 {
    font-size: 25px;
  }
  .page-title .button {
    padding: 8px 13px;
    font-size: 12px;
    margin-top: 22px;
  }
  .page-title p {
    font-size: 11px;
    max-width: 185px;
  }
  .stat-row {
    padding: 18px 0;
    margin-bottom: 22px;
  }
  .stat-row > div {
    padding: 0 20px;
  }
  .panel-header {
    padding: 17px;
  }
  .panel-header .small {
    font-size: 10px;
  }
  .form-section {
    margin: 0 18px;
    padding: 23px 0;
  }
  .field-grid {
    grid-template-columns: 1fr;
    gap: 18px;
    margin-bottom: 18px;
  }
  .form-section-intro p {
    font-size: 12px;
  }
  .form-section-intro h3 {
    font-size: 13px;
  }
  .form-bottom {
    padding: 18px;
    align-items: flex-start;
    flex-direction: column;
  }
  .form-bottom .button {
    width: 100%;
  }
  .password-form {
    flex-direction: column;
    align-items: stretch;
    padding: 18px;
    gap: 18px;
  }
  label {
    font-size: 14px;
  }
  input:not([type="checkbox"]),
  textarea {
    font-size: 16px;
  }
  .admin-footer {
    padding: 0 18px 22px;
  }
  .admin-footer span {
    display: none;
  }
  .login-body .topbar {
    gap: 15px;
  }
  .login-body .text-link {
    font-size: 11px;
  }
}
@media (prefers-reduced-motion: reduce) {
  *,
  *:before,
  *:after {
    transition: none !important;
    scroll-behavior: auto !important;
  }
}

/* Fill the viewport without letterboxing; crop excess artwork proportionally. */
.launch-root {
  min-height: 100vh;
  min-height: 100dvh;
}
.launch-root.has-splash {
  padding: 0;
  background: #fff;
}
.launch-splash {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  background: #fff;
}
.has-splash .launch-original,
.has-splash .launch-feedback {
  display: none;
}
.has-splash.launch-error .launch-feedback {
  display: block;
  position: fixed;
  left: 16px;
  right: 16px;
  bottom: calc(16px + env(safe-area-inset-bottom, 0px));
  z-index: 2;
  padding: 18px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 4px 24px #0002;
  text-align: center;
}
.launch-feedback .button {
  margin-top: 20px;
}
.splash-preview {
  display: flex;
  align-items: center;
  gap: 20px;
  margin: 14px 0 20px;
  flex-wrap: wrap;
}
.splash-preview img {
  width: 90px;
  height: 160px;
  object-fit: contain;
  background: #f5f7fb;
  border: 1px solid var(--line);
  border-radius: 8px;
}
