:root {
  color-scheme: light;
  --ink: #171915;
  --muted: #74766f;
  --paper: #f5f2eb;
  --surface: rgba(255, 255, 255, 0.82);
  --line: rgba(23, 25, 21, 0.12);
  --accent: #d54f2a;
  --accent-dark: #b93d1d;
  --shadow: 0 30px 90px rgba(35, 31, 24, 0.11);
}

.auth-feedback { min-height: 1.5em; margin: 20px 0 0; font-size: 14px; color: var(--accent-dark); }
.auth-test-note { margin: 20px 0 0; font-size: 13px; line-height: 1.7; color: var(--muted); }
.auth-card label { font-size: 14px; }
.auth-tabs { display: flex; gap: 24px; margin-top: 28px; border-bottom: 1px solid var(--line); }
.auth-tabs button { padding: 12px 0; border: 0; border-bottom: 2px solid transparent; background: none; color: var(--muted); cursor: pointer; font-size: 15px; }
.auth-tabs button[aria-pressed="true"] { border-bottom-color: var(--accent); color: var(--ink); font-weight: 650; }
.auth-submit { width: 100%; margin-top: 28px; }
.recharge-note { color: var(--muted); font-size: 14px; line-height: 1.7; }
.card-type-tabs { display: flex; flex-wrap: wrap; gap: 12px; margin: 24px 0 16px; }
.card-type-tabs button { padding: 12px 20px; border: 1px solid var(--line); background: transparent; color: var(--ink); cursor: pointer; font-size: 15px; border-radius: 4px; }
.card-type-tabs button[aria-pressed="true"] { background: var(--ink); border-color: var(--ink); color: #fff; }
.cards-generate-form { display: flex; gap: 20px; align-items: flex-end; flex-wrap: wrap; margin: 20px 0; }
.cards-generate-form label { font-size: 14px; }
.cards-generate-form input { width: 120px; }
.admin-table.cards-table td:first-child { min-width: 370px; max-width: none; }
.cards-table code { display: inline-block; font-size: 14px; line-height: 1.6; user-select: all; white-space: nowrap; }
.cards-pagination { display: flex; justify-content: flex-end; align-items: center; gap: 22px; margin-top: 20px; font-size: 14px; }
#auth-form { margin-top: 26px; }
.service-top-actions { flex-wrap: wrap; }
#account-name { max-width: 180px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.account-expiry { color: var(--muted); font-size: 14px; }
.admin-page { width: min(1260px, 100%); margin: 0 auto; padding: 28px clamp(16px, 4vw, 48px); }
.admin-header, .admin-header > div, .admin-section-heading { display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap; }
.admin-header { margin-bottom: 36px; }
.admin-header .wordmark { text-decoration: none; color: var(--ink); }
.admin-header span { font-size: 16px; color: var(--muted); }
.admin-login { max-width: 480px; margin: 8vh auto 0; }
.admin-page [hidden] { display: none !important; }
.admin-page h1, .admin-page h2 { margin: 0; font-size: 24px; font-weight: 600; }
.admin-section { background: var(--surface); border: 1px solid var(--line); padding: 26px; margin-bottom: 24px; border-radius: 4px; }
.admin-settings-form { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 24px; margin: 12px 0 0; }
.admin-settings-form > div { flex: 1 1 260px; }
.admin-settings-form p, .admin-time-note { font-size: 14px; color: var(--muted); line-height: 1.7; }
.admin-settings-form label { font-size: 14px; }
.admin-settings-form > button { margin-bottom: 42px; }
.admin-table-scroll { overflow-x: auto; }
.admin-table { border-collapse: collapse; width: 100%; text-align: left; font-size: 14px; }
.admin-table th, .admin-table td { padding: 18px 14px 18px 0; border-bottom: 1px solid var(--line); }
.admin-table th { white-space: nowrap; font-weight: 600; }
.admin-table td:first-child { min-width: 100px; max-width: 200px; overflow-wrap: anywhere; }
.admin-table td:nth-child(2), .admin-table td:nth-child(3), .admin-table td:nth-child(4) { white-space: nowrap; }
.admin-expiry-form { display: flex; gap: 10px; align-items: center; margin: 0; }
.admin-expiry-form input[type="datetime-local"] { min-width: 220px; height: 42px; }
.admin-expiry-form label { display: flex; gap: 6px; margin: 0; align-items: center; white-space: nowrap; font-size: 14px; }
.admin-expiry-form input[type="checkbox"] { width: 16px; height: 16px; }
.admin-expiry-form button { min-height: 42px; white-space: nowrap; padding: 0 14px; }
.admin-active { color: #18794e; }
.admin-expired, .admin-feedback.is-error { color: #b42318; }
.admin-feedback { min-height: 1.6em; font-size: 15px; color: #18794e; }
.remark-form { margin: 22px 0; }
.remark-form label { font-size: 14px; }
.remark-form > div { display: flex; gap: 8px; }
.remark-form input { min-width: 0; height: 42px; }
.remark-form button { flex-shrink: 0; padding: 0 12px; min-height: 42px; }

* {
  box-sizing: border-box;
}

html {
  min-width: 320px;
  background: var(--paper);
}

body {
  margin: 0;
  min-width: 320px;
  min-height: 100vh;
  color: var(--ink);
  background:
    linear-gradient(rgba(245, 242, 235, 0.78), rgba(245, 242, 235, 0.78)),
    repeating-linear-gradient(90deg, transparent 0, transparent 79px, rgba(23, 25, 21, 0.045) 80px),
    var(--paper);
  font-family: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
}

button,
input {
  font: inherit;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

button:focus-visible,
input:focus-visible,
a:focus-visible {
  outline: 3px solid rgba(213, 79, 42, 0.24);
  outline-offset: 3px;
}

.page-shell {
  position: relative;
  min-height: 100vh;
  padding: clamp(24px, 4vw, 56px);
  overflow: hidden;
  isolation: isolate;
}

.page-shell::before,
.page-shell::after {
  position: absolute;
  z-index: -2;
  content: "";
}

.page-shell::before {
  top: 0;
  left: clamp(22px, 5vw, 72px);
  width: 1px;
  height: 22vh;
  background: var(--ink);
  opacity: 0.28;
}

.page-shell::after {
  right: clamp(22px, 5vw, 72px);
  bottom: 0;
  width: 1px;
  height: 18vh;
  background: var(--accent);
  opacity: 0.6;
}

.ambient {
  position: absolute;
  z-index: -3;
  border-radius: 50%;
  filter: blur(4px);
  pointer-events: none;
}

.ambient-one {
  top: -210px;
  right: -130px;
  width: 520px;
  height: 520px;
  background: radial-gradient(circle, rgba(213, 79, 42, 0.13), transparent 67%);
}

.ambient-two {
  bottom: -260px;
  left: -160px;
  width: 620px;
  height: 620px;
  background: radial-gradient(circle, rgba(116, 118, 111, 0.12), transparent 64%);
}

.auth-layout {
  display: grid;
  grid-template-columns: minmax(300px, 1fr) minmax(380px, 470px);
  align-items: center;
  gap: clamp(56px, 9vw, 150px);
  width: min(1120px, 100%);
  min-height: calc(100vh - clamp(48px, 8vw, 112px));
  margin: 0 auto;
}

.brand-panel {
  max-width: 570px;
  animation: rise 700ms ease-out both;
}

.eyebrow,
.section-label {
  margin: 0 0 18px;
  color: var(--accent);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.22em;
}

.brand-panel h1 {
  margin: 0;
  font-family: "Songti SC", "STSong", serif;
  font-size: clamp(58px, 8vw, 112px);
  font-weight: 600;
  line-height: 0.98;
  letter-spacing: -0.06em;
}

.brand-copy {
  margin: 28px 0 0;
  color: var(--muted);
  font-size: clamp(15px, 1.4vw, 18px);
  letter-spacing: 0.08em;
}

.route-mark {
  display: flex;
  align-items: center;
  width: min(420px, 80%);
  margin-top: 54px;
}

.route-mark span {
  flex: 0 0 8px;
  width: 8px;
  height: 8px;
  border: 2px solid var(--ink);
  border-radius: 50%;
}

.route-mark span:last-child {
  border-color: var(--accent);
  background: var(--accent);
}

.route-mark i {
  width: 100%;
  height: 1px;
  background: var(--line);
}

.auth-card {
  position: relative;
  padding: clamp(30px, 4vw, 50px);
  border: 1px solid rgba(255, 255, 255, 0.9);
  border-radius: 4px;
  background: var(--surface);
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
  animation: rise 700ms 100ms ease-out both;
}

.auth-card::before {
  position: absolute;
  top: 0;
  left: 0;
  width: 42px;
  height: 3px;
  background: var(--accent);
  content: "";
}

.card-heading h2,
.modal h2 {
  margin: 0;
  font-family: "Songti SC", "STSong", serif;
  font-size: 32px;
  font-weight: 600;
  letter-spacing: -0.03em;
}

.card-heading > p:last-child {
  margin: 12px 0 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.7;
}

form {
  margin-top: 38px;
}

label {
  display: block;
  margin: 22px 0 9px;
  font-size: 13px;
  font-weight: 650;
  letter-spacing: 0.04em;
}

input {
  width: 100%;
  height: 52px;
  padding: 0 15px;
  border: 1px solid var(--line);
  border-radius: 3px;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.7);
  transition: border-color 160ms ease, background 160ms ease, box-shadow 160ms ease;
}

input::placeholder {
  color: #a3a49e;
}

input:hover {
  border-color: rgba(23, 25, 21, 0.26);
}

input:focus {
  border-color: var(--accent);
  background: #fff;
  box-shadow: 0 0 0 3px rgba(213, 79, 42, 0.08);
  outline: none;
}

.actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-top: 30px;
}

.button {
  min-height: 48px;
  padding: 0 20px;
  border: 1px solid transparent;
  border-radius: 3px;
  cursor: pointer;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.06em;
  transition: transform 150ms ease, color 150ms ease, background 150ms ease, border-color 150ms ease;
}

.button:hover {
  transform: translateY(-1px);
}

.button:active {
  transform: translateY(0);
}

.button-primary {
  color: #fff;
  background: var(--ink);
}

.button-primary:hover {
  background: var(--accent-dark);
}

.button-secondary {
  border-color: var(--line);
  color: var(--ink);
  background: transparent;
}

.button-secondary:hover {
  border-color: var(--ink);
  background: rgba(255, 255, 255, 0.55);
}

.test-note {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 26px 0 0;
  color: var(--muted);
  font-size: 12px;
}

.test-note span {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 4px rgba(213, 79, 42, 0.1);
}

.modal-backdrop {
  position: fixed;
  z-index: 20;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 24px;
  background: rgba(17, 19, 16, 0.42);
  opacity: 0;
  backdrop-filter: blur(6px);
  transition: opacity 160ms ease;
}

.modal-backdrop[hidden] {
  display: none;
}

.modal-backdrop.is-visible {
  opacity: 1;
}

.modal {
  width: min(400px, 100%);
  padding: 32px;
  border-radius: 4px;
  background: #fff;
  box-shadow: 0 30px 100px rgba(0, 0, 0, 0.22);
  transform: translateY(12px) scale(0.98);
  transition: transform 160ms ease;
}

.is-visible .modal {
  transform: translateY(0) scale(1);
}

.modal p:nth-of-type(2) {
  margin: 14px 0 26px;
  color: var(--muted);
  line-height: 1.7;
}

.modal-button {
  width: 100%;
}

.modal-open {
  overflow: hidden;
}

.settings-shell {
  display: grid;
  place-items: center;
}

.settings-card {
  width: min(820px, 100%);
  border: 1px solid rgba(255, 255, 255, 0.9);
  border-radius: 4px;
  background: var(--surface);
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
  animation: rise 600ms ease-out both;
}

.settings-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 24px clamp(24px, 5vw, 48px);
  border-bottom: 1px solid var(--line);
}

.wordmark {
  color: var(--ink);
  font-family: "Songti SC", "STSong", serif;
  font-size: 21px;
  font-weight: 650;
  text-decoration: none;
}

.text-button {
  padding: 7px 0;
  border: 0;
  border-bottom: 1px solid var(--line);
  color: var(--muted);
  background: transparent;
  cursor: pointer;
  font-size: 13px;
}

.text-button:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.text-button:disabled {
  cursor: wait;
  opacity: 0.5;
}

.settings-intro {
  padding: clamp(38px, 6vw, 64px) clamp(24px, 7vw, 72px) 34px;
}

.settings-intro h1 {
  margin: 0;
  font-family: "Songti SC", "STSong", serif;
  font-size: clamp(36px, 6vw, 58px);
  font-weight: 600;
  letter-spacing: -0.05em;
}

.settings-intro > p:last-child {
  margin: 14px 0 0;
  color: var(--muted);
}

.profile-grid {
  display: grid;
  grid-template-columns: 1fr 210px;
  margin: 0 clamp(24px, 7vw, 72px) clamp(38px, 6vw, 64px);
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
}

.profile-item {
  min-width: 0;
  padding: 26px;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.profile-item span {
  display: block;
  margin-bottom: 12px;
  color: var(--muted);
  font-size: 12px;
  letter-spacing: 0.08em;
}

.profile-item strong {
  display: block;
  overflow: hidden;
  font-size: 19px;
  font-weight: 650;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.points-item strong {
  color: var(--accent);
  font-family: Georgia, serif;
  font-size: 38px;
  font-weight: 500;
  line-height: 1;
}

.profile-id {
  grid-column: 1 / -1;
}

.profile-id strong {
  color: var(--muted);
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 12px;
  font-weight: 500;
}

.settings-footer {
  padding: 17px clamp(24px, 5vw, 48px);
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 12px;
  text-align: right;
}

.settings-actions {
  display: flex;
  align-items: center;
  gap: 22px;
}

.service-entry {
  padding: 8px 13px;
  border: 1px solid var(--ink);
  border-radius: 3px;
  color: var(--ink);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-decoration: none;
}

.service-entry:hover {
  color: #fff;
  background: var(--ink);
}

.support-launcher {
  position: fixed;
  z-index: 12;
  right: clamp(18px, 3vw, 38px);
  bottom: clamp(18px, 3vw, 38px);
  display: flex;
  align-items: center;
  gap: 9px;
  min-height: 48px;
  padding: 0 20px;
  border: 0;
  border-radius: 999px;
  color: #fff;
  background: var(--ink);
  box-shadow: 0 15px 40px rgba(23, 25, 21, 0.22);
  cursor: pointer;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.04em;
  transition: transform 160ms ease, background 160ms ease;
}

.support-launcher:hover {
  background: var(--accent-dark);
  transform: translateY(-2px);
}

.support-launcher-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #7ee2a8;
  box-shadow: 0 0 0 4px rgba(126, 226, 168, 0.16);
}

.support-panel {
  position: fixed;
  z-index: 15;
  right: clamp(18px, 3vw, 38px);
  bottom: clamp(78px, 8vw, 98px);
  width: min(400px, calc(100vw - 36px));
  max-height: min(720px, calc(100vh - 110px));
  overflow: auto;
  border: 1px solid rgba(255, 255, 255, 0.9);
  border-radius: 5px;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 28px 90px rgba(23, 25, 21, 0.2);
  opacity: 0;
  transform: translateY(14px) scale(0.98);
  transform-origin: bottom right;
  backdrop-filter: blur(22px);
  transition: opacity 180ms ease, transform 180ms ease;
}

.support-panel[hidden] {
  display: none;
}

.support-panel.is-open {
  opacity: 1;
  transform: translateY(0) scale(1);
}

.support-panel-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  padding: 25px 26px 21px;
  border-bottom: 1px solid var(--line);
}

.support-panel-header .section-label {
  margin-bottom: 7px;
}

.support-panel-header h2 {
  margin: 0;
  font-family: "Songti SC", "STSong", serif;
  font-size: 24px;
  font-weight: 600;
}

.support-close {
  width: 34px;
  height: 34px;
  border: 1px solid var(--line);
  border-radius: 50%;
  color: var(--muted);
  background: transparent;
  cursor: pointer;
  font-size: 22px;
  line-height: 1;
}

.support-close:hover {
  border-color: var(--ink);
  color: var(--ink);
}

.support-content {
  padding: 28px 26px 26px;
}

.support-content h3 {
  margin: 0;
  font-family: "Songti SC", "STSong", serif;
  font-size: 25px;
  font-weight: 600;
}

.support-content section > p {
  margin: 12px 0 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.75;
}

.support-signal {
  display: flex;
  align-items: center;
  width: 86px;
  margin-bottom: 28px;
}

.support-signal span {
  width: 9px;
  height: 9px;
  border: 2px solid var(--ink);
  border-radius: 50%;
}

.support-signal span:last-child {
  border-color: var(--accent);
  background: var(--accent);
}

.support-signal i {
  flex: 1;
  height: 1px;
  background: var(--line);
}

.support-consent {
  display: grid;
  gap: 6px;
  margin-top: 20px;
  padding: 14px 15px;
  border-left: 2px solid var(--accent);
  color: var(--muted);
  background: rgba(213, 79, 42, 0.055);
  font-size: 11px;
  line-height: 1.65;
}

.support-consent strong {
  color: var(--ink);
  font-size: 12px;
}

.support-main-button {
  width: 100%;
  margin-top: 24px;
}

.qr-frame {
  position: relative;
  display: grid;
  place-items: center;
  width: 250px;
  height: 250px;
  margin: 0 auto;
  border: 1px solid var(--line);
  background: #fff;
}

.qr-frame::before,
.qr-frame::after {
  position: absolute;
  width: 24px;
  height: 24px;
  content: "";
}

.qr-frame::before {
  top: -1px;
  left: -1px;
  border-top: 2px solid var(--accent);
  border-left: 2px solid var(--accent);
}

.qr-frame::after {
  right: -1px;
  bottom: -1px;
  border-right: 2px solid var(--accent);
  border-bottom: 2px solid var(--accent);
}

.qr-frame img {
  width: 226px;
  height: 226px;
  image-rendering: pixelated;
}

.qr-loading {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  color: var(--muted);
  background: #fff;
  font-size: 13px;
}

.qr-loading[hidden],
.verify-box[hidden] {
  display: none;
}

.support-status {
  min-height: 24px;
  color: var(--ink) !important;
  font-weight: 650;
  text-align: center;
}

.support-footnote {
  margin-top: 3px !important;
  font-size: 11px !important;
  text-align: center;
}

.verify-box {
  margin-top: 18px;
  padding: 14px;
  border: 1px solid var(--line);
  background: var(--paper);
}

.verify-box label {
  margin: 0 0 9px;
  font-size: 12px;
}

.verify-box > div {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 8px;
}

.verify-box input {
  height: 44px;
}

.verify-box .button {
  min-height: 44px;
}

.support-restart {
  display: block;
  margin: 15px auto 0;
}

.support-success {
  padding: 18px 0 4px;
  text-align: center;
}

.success-mark {
  display: grid;
  place-items: center;
  width: 58px;
  height: 58px;
  margin: 0 auto 22px;
  border: 1px solid rgba(47, 130, 79, 0.2);
  border-radius: 50%;
  color: #2f824f;
  background: rgba(126, 226, 168, 0.12);
  font-size: 25px;
}

.qr-body {
  overflow-x: hidden;
  background:
    radial-gradient(circle at 85% 10%, rgba(213, 79, 42, 0.12), transparent 30%),
    linear-gradient(rgba(245, 242, 235, 0.82), rgba(245, 242, 235, 0.82)),
    repeating-linear-gradient(90deg, transparent 0, transparent 79px, rgba(23, 25, 21, 0.045) 80px),
    var(--paper);
}

.qr-page {
  display: grid;
  grid-template-rows: 72px minmax(0, 1fr);
  width: min(1220px, 100%);
  min-height: 100vh;
  margin: 0 auto;
  padding: 0 clamp(24px, 5vw, 72px) clamp(34px, 5vw, 70px);
}

.qr-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--line);
}

.qr-test-badge {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--muted);
  font-size: 11px;
  letter-spacing: 0.05em;
}

.qr-test-badge i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #49a86a;
  box-shadow: 0 0 0 4px rgba(73, 168, 106, 0.1);
}

.qr-layout {
  display: grid;
  grid-template-columns: minmax(320px, 1fr) minmax(370px, 470px);
  align-items: center;
  gap: clamp(58px, 9vw, 140px);
  padding-top: clamp(42px, 7vh, 84px);
}

.qr-intro {
  max-width: 590px;
  animation: rise 650ms ease-out both;
}

.qr-intro h1 {
  margin: 0;
  font-family: "Songti SC", "STSong", serif;
  font-size: clamp(54px, 7vw, 96px);
  font-weight: 600;
  line-height: 1.06;
  letter-spacing: -0.055em;
}

.qr-intro > p:not(.eyebrow) {
  max-width: 520px;
  margin: 28px 0 0;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.9;
}

.qr-route {
  display: grid;
  grid-template-columns: auto minmax(30px, 1fr) auto minmax(30px, 1fr) auto;
  align-items: center;
  gap: 12px;
  width: min(440px, 100%);
  margin-top: 46px;
  color: var(--muted);
  font-size: 10px;
  letter-spacing: 0.1em;
}

.qr-route i {
  height: 1px;
  background: var(--line);
}

.qr-route span:last-child {
  color: var(--accent);
}

.qr-card {
  position: relative;
  padding: clamp(26px, 4vw, 40px);
  border: 1px solid rgba(255, 255, 255, 0.9);
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.84);
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
  animation: rise 650ms 80ms ease-out both;
}

.qr-card::before {
  position: absolute;
  top: 0;
  left: 0;
  width: 44px;
  height: 3px;
  background: var(--accent);
  content: "";
}

.qr-card-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
}

.qr-card-heading .section-label {
  margin-bottom: 5px;
}

.qr-card-heading h2 {
  margin: 0;
  font-family: "Songti SC", "STSong", serif;
  font-size: 27px;
  font-weight: 600;
}

.qr-live-dot {
  width: 8px;
  height: 8px;
  margin-top: 7px;
  border-radius: 50%;
  background: #49a86a;
  box-shadow: 0 0 0 5px rgba(73, 168, 106, 0.1);
}

.qr-display {
  position: relative;
  display: grid;
  place-items: center;
  width: min(310px, 100%);
  aspect-ratio: 1;
  margin: 28px auto 20px;
  border: 1px solid var(--line);
  background: #fff;
}

.qr-display::before,
.qr-display::after {
  position: absolute;
  z-index: 2;
  width: 28px;
  height: 28px;
  content: "";
  pointer-events: none;
}

.qr-display::before {
  top: -1px;
  left: -1px;
  border-top: 2px solid var(--accent);
  border-left: 2px solid var(--accent);
}

.qr-display::after {
  right: -1px;
  bottom: -1px;
  border-right: 2px solid var(--accent);
  border-bottom: 2px solid var(--accent);
}

.qr-display > img {
  width: calc(100% - 28px);
  height: calc(100% - 28px);
  image-rendering: pixelated;
}

.qr-display > img[hidden],
.qr-placeholder[hidden],
.qr-connected[hidden],
.qr-verify[hidden],
.qr-retry[hidden] {
  display: none;
}

.qr-placeholder {
  display: grid;
  grid-template-columns: repeat(2, 42px);
  gap: 8px;
  place-content: center;
  justify-items: center;
  width: 100%;
  height: 100%;
  color: var(--muted);
}

.qr-placeholder span {
  width: 42px;
  height: 42px;
  border: 7px solid rgba(23, 25, 21, 0.1);
  animation: qr-pulse 1.2s ease-in-out infinite alternate;
}

.qr-placeholder span:nth-child(2) {
  animation-delay: 150ms;
}

.qr-placeholder span:nth-child(3) {
  animation-delay: 300ms;
}

.qr-placeholder span:nth-child(4) {
  animation-delay: 450ms;
}

.qr-placeholder p {
  grid-column: 1 / -1;
  margin: 14px 0 0;
  font-size: 12px;
}

.qr-connected {
  display: grid;
  place-items: center;
  padding: 34px;
  text-align: center;
}

.qr-connected > span {
  display: grid;
  place-items: center;
  width: 62px;
  height: 62px;
  margin-bottom: 20px;
  border-radius: 50%;
  color: #2f824f;
  background: rgba(73, 168, 106, 0.11);
  font-size: 27px;
}

.qr-connected strong {
  font-family: "Songti SC", "STSong", serif;
  font-size: 23px;
}

.qr-connected p {
  margin: 9px 0 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.7;
}

.qr-status-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  min-height: 24px;
}

.qr-status-row p {
  margin: 0;
  font-size: 12px;
  font-weight: 650;
}

.qr-status-indicator {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #b4b6af;
}

.qr-status-indicator[data-state="active"] {
  background: var(--accent);
  box-shadow: 0 0 0 4px rgba(213, 79, 42, 0.1);
}

.qr-status-indicator[data-state="success"] {
  background: #49a86a;
  box-shadow: 0 0 0 4px rgba(73, 168, 106, 0.1);
}

.qr-status-indicator[data-state="error"] {
  background: #b53e2b;
}

.qr-verify {
  margin-top: 16px;
  padding: 13px;
  border: 1px solid var(--line);
  background: var(--paper);
}

.qr-verify label {
  margin: 0 0 9px;
  font-size: 11px;
}

.qr-verify > div {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 8px;
}

.qr-verify input {
  height: 44px;
}

.qr-verify .button {
  min-height: 44px;
}

.qr-retry {
  width: 100%;
  margin-top: 16px;
}

.qr-disclaimer {
  margin: 19px 0 0;
  padding-top: 15px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 10px;
  line-height: 1.7;
  text-align: center;
}

@keyframes qr-pulse {
  to {
    border-color: rgba(213, 79, 42, 0.28);
  }
}

@media (max-width: 820px) {
  .qr-page {
    grid-template-rows: 64px auto;
  }

  .qr-layout {
    grid-template-columns: 1fr;
    gap: 38px;
    padding-block: 48px 18px;
  }

  .qr-intro {
    text-align: center;
  }

  .qr-intro h1 {
    font-size: clamp(48px, 14vw, 72px);
  }

  .qr-intro > p:not(.eyebrow),
  .qr-route {
    margin-inline: auto;
  }

  .qr-card {
    width: min(470px, 100%);
    margin: 0 auto;
  }
}

@media (max-width: 480px) {
  .qr-page {
    padding-inline: 16px;
  }

  .qr-test-badge {
    font-size: 0;
  }

  .qr-intro > p:not(.eyebrow) {
    font-size: 13px;
  }

  .qr-card {
    padding: 24px 18px;
  }
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.service-body {
  overflow: hidden;
  background: #ece9e1;
}

.service-app {
  display: grid;
  grid-template-rows: 68px minmax(0, 1fr);
  height: 100vh;
  min-height: 0;
  background:
    linear-gradient(rgba(245, 242, 235, 0.85), rgba(245, 242, 235, 0.85)),
    repeating-linear-gradient(90deg, transparent 0, transparent 79px, rgba(23, 25, 21, 0.04) 80px);
}

.service-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 28px;
  border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.84);
  backdrop-filter: blur(14px);
}

.service-brand,
.service-top-actions {
  display: flex;
  align-items: center;
}

.service-brand {
  gap: 14px;
}

.service-brand > span {
  padding-left: 14px;
  border-left: 1px solid var(--line);
  color: var(--muted);
  font-size: 12px;
  letter-spacing: 0.08em;
}

.service-top-actions {
  gap: 25px;
}

.service-online {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--muted);
  font-size: 12px;
}

.service-online i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #49a86a;
  box-shadow: 0 0 0 4px rgba(73, 168, 106, 0.1);
}

.service-top-actions .text-button {
  color: var(--muted);
  text-decoration: none;
}

.service-layout {
  display: grid;
  grid-template-columns: 310px minmax(420px, 1fr) 300px;
  min-height: 0;
}

.conversation-panel {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  min-height: 0;
  border-right: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.72);
}

.conversation-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  padding: 34px 26px 24px;
  border-bottom: 1px solid var(--line);
}

.conversation-heading .section-label {
  margin-bottom: 6px;
}

.conversation-heading h1 {
  margin: 0;
  font-family: "Songti SC", "STSong", serif;
  font-size: 28px;
  font-weight: 600;
}

.conversation-count {
  display: grid;
  place-items: center;
  min-width: 28px;
  height: 28px;
  padding: 0 7px;
  border: 1px solid var(--line);
  border-radius: 50%;
  color: var(--muted);
  font-size: 12px;
}

.conversation-list {
  min-height: 0;
  overflow-y: auto;
  scrollbar-gutter: stable;
}

.conversation-loading,
.conversation-list-empty {
  padding: 42px 24px;
  color: var(--muted);
  font-size: 13px;
  text-align: center;
}

.conversation-item {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr) auto;
  gap: 12px;
  width: 100%;
  padding: 17px 20px;
  border: 0;
  border-bottom: 1px solid var(--line);
  color: var(--ink);
  background: transparent;
  cursor: pointer;
  text-align: left;
  transition: background 140ms ease;
}

.conversation-item:hover,
.conversation-item.is-active {
  background: rgba(213, 79, 42, 0.065);
}

.conversation-item.is-active {
  box-shadow: inset 3px 0 0 var(--accent);
}

.conversation-avatar {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  color: #fff;
  background: var(--ink);
  font-family: "Songti SC", "STSong", serif;
  font-size: 16px;
}

.conversation-copy {
  display: grid;
  gap: 6px;
  min-width: 0;
}

.conversation-copy strong,
.conversation-copy > span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.conversation-copy strong {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 13px;
}

.conversation-copy strong em {
  flex: none;
  padding: 2px 5px;
  border-radius: 2px;
  color: var(--accent-dark);
  background: rgba(213, 79, 42, 0.1);
  font-size: 9px;
  font-style: normal;
  font-weight: 700;
}

.conversation-copy > span {
  color: var(--muted);
  font-size: 12px;
}

.conversation-meta {
  display: grid;
  justify-items: end;
  align-content: space-between;
  color: var(--muted);
  font-size: 10px;
}

.conversation-meta b {
  display: grid;
  place-items: center;
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  border-radius: 10px;
  color: #fff;
  background: var(--accent);
  font-size: 10px;
}

.chat-workspace {
  position: relative;
  min-width: 0;
  min-height: 0;
  background: rgba(245, 242, 235, 0.52);
}

.chat-empty {
  position: absolute;
  inset: 0;
  display: grid;
  place-content: center;
  justify-items: center;
  padding: 40px;
  text-align: center;
}

.chat-empty[hidden] {
  display: none;
}

.empty-orbit {
  position: relative;
  width: 112px;
  height: 112px;
  margin-bottom: 28px;
  border: 1px solid var(--line);
  border-radius: 50%;
}

.empty-orbit::before,
.empty-orbit::after {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 72px;
  height: 1px;
  background: var(--line);
  content: "";
  transform-origin: center;
}

.empty-orbit::before {
  transform: translate(-50%, -50%) rotate(45deg);
}

.empty-orbit::after {
  transform: translate(-50%, -50%) rotate(-45deg);
}

.empty-orbit span {
  position: absolute;
  z-index: 1;
  top: 50%;
  left: 50%;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 7px rgba(213, 79, 42, 0.1);
  transform: translate(-50%, -50%);
}

.chat-empty .section-label {
  margin-bottom: 9px;
}

.chat-empty h2 {
  margin: 0;
  font-family: "Songti SC", "STSong", serif;
  font-size: 32px;
  font-weight: 600;
}

.chat-empty > p:last-child {
  max-width: 390px;
  margin: 12px 0 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.7;
}

.chat-active {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto;
  height: calc(100vh - 68px);
}

.chat-active[hidden] {
  display: none;
}

.chat-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 22px 30px;
  border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.68);
}

.chat-channel {
  color: var(--accent);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.chat-actions { display: flex; align-items: center; justify-content: flex-end; gap: 12px; flex-wrap: wrap; }
.clear-history-button { color: #a13737; font-size: 14px; white-space: nowrap; }
.clear-history-button:disabled { opacity: 0.45; cursor: not-allowed; }

.chat-header h2 {
  margin: 5px 0 0;
  font-size: 17px;
  font-weight: 700;
}

.chat-status {
  padding: 7px 10px;
  border-radius: 2px;
  color: #2f824f;
  background: rgba(73, 168, 106, 0.1);
  font-size: 11px;
}

.chat-status.is-offline {
  color: var(--muted);
  background: rgba(116, 118, 111, 0.1);
}

.message-list {
  min-height: 0;
  padding: 28px 34px;
  overflow-y: auto;
}

.message-row {
  display: flex;
  margin-bottom: 17px;
}

.message-admin {
  justify-content: flex-end;
}

.message-system {
  justify-content: center;
}

.message-bubble {
  max-width: min(620px, 72%);
  padding: 12px 15px 9px;
  border: 1px solid var(--line);
  border-radius: 3px 13px 13px 13px;
  background: rgba(255, 255, 255, 0.9);
}

.message-admin .message-bubble {
  border-color: var(--ink);
  border-radius: 13px 3px 13px 13px;
  color: #fff;
  background: var(--ink);
}

.message-system .message-bubble {
  padding: 7px 12px;
  border: 0;
  border-radius: 20px;
  color: var(--muted);
  background: rgba(116, 118, 111, 0.09);
  font-size: 11px;
  text-align: center;
}

.message-bubble p {
  margin: 0;
  font-size: 13px;
  line-height: 1.7;
  white-space: pre-wrap;
}

.message-bubble.has-media {
  overflow: hidden;
  padding: 6px;
}

.message-bubble.has-media p {
  padding: 7px 8px 3px;
}

.message-media {
  display: block;
  overflow: hidden;
  border-radius: 2px 9px 9px 9px;
  background: rgba(23, 25, 21, 0.06);
}

.message-admin .message-media {
  border-radius: 9px 2px 9px 9px;
  background: rgba(255, 255, 255, 0.1);
}

.message-media img {
  display: block;
  width: auto;
  max-width: min(360px, 58vw);
  max-height: 360px;
  object-fit: contain;
}

.message-video {
  background: #111;
}

.message-video video {
  display: block;
  width: min(420px, 58vw);
  max-width: 100%;
  max-height: 360px;
  background: #000;
}

.message-video > a {
  display: block;
  overflow: hidden;
  padding: 8px 10px;
  color: rgba(255, 255, 255, 0.78);
  font-size: 10px;
  text-decoration: none;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.message-video > a:hover {
  color: #fff;
  text-decoration: underline;
}

.message-file {
  display: grid;
  grid-template-columns: 40px minmax(0, 1fr);
  align-items: center;
  gap: 11px;
  min-width: min(280px, 55vw);
  padding: 11px 13px;
  border-radius: 2px 9px 9px 9px;
  color: var(--ink);
  background: rgba(23, 25, 21, 0.06);
  text-decoration: none;
}

.message-admin .message-file {
  border-radius: 9px 2px 9px 9px;
  color: #fff;
  background: rgba(255, 255, 255, 0.12);
}

.message-file > span:first-child {
  display: grid;
  place-items: center;
  width: 40px;
  height: 44px;
  border: 1px solid currentColor;
  border-radius: 3px;
  font-family: "Songti SC", "STSong", serif;
  font-size: 16px;
}

.message-file > span:last-child {
  display: grid;
  gap: 5px;
  min-width: 0;
}

.message-file strong,
.message-file small {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.message-file strong {
  font-size: 12px;
}

.message-file small {
  color: var(--muted);
  font-size: 9px;
}

.message-admin .message-file small {
  color: rgba(255, 255, 255, 0.62);
}

.message-file:hover strong {
  text-decoration: underline;
}

.message-media.is-broken {
  display: grid;
  place-items: center;
  min-width: 180px;
  min-height: 110px;
  color: var(--muted);
  font-size: 11px;
  text-decoration: none;
}

.message-bubble.has-media time {
  padding: 0 7px 2px;
}

.message-bubble time {
  display: block;
  margin-top: 5px;
  color: var(--muted);
  font-size: 9px;
  text-align: right;
}

.message-admin .message-bubble time {
  color: rgba(255, 255, 255, 0.58);
}

.message-system .message-bubble time {
  display: none;
}

.reply-form {
  margin: 0;
  padding: 18px 24px 20px;
  border-top: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.82);
}

.reply-form textarea {
  width: 100%;
  min-height: 82px;
  max-height: 180px;
  padding: 13px 15px;
  resize: vertical;
  border: 1px solid var(--line);
  border-radius: 3px;
  color: var(--ink);
  background: #fff;
  font: inherit;
  font-size: 13px;
  line-height: 1.6;
}

.reply-form textarea:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(213, 79, 42, 0.08);
  outline: 0;
}

.reply-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 10px;
}

.reply-tools {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 11px;
  min-width: 0;
}

.reply-actions span {
  color: var(--muted);
  font-size: 10px;
}

.attachment-button {
  flex: none;
  margin: 0;
  padding: 7px 9px;
  border: 1px solid var(--line);
  border-radius: 3px;
  background: rgba(255, 255, 255, 0.72);
  cursor: pointer;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.03em;
  transition: border-color 150ms ease, background 150ms ease;
}

.attachment-button:hover {
  border-color: var(--ink);
  background: #fff;
}

.media-compose-preview {
  display: grid;
  grid-template-columns: 54px minmax(0, 1fr) 28px;
  align-items: center;
  gap: 11px;
  margin-top: 10px;
  padding: 8px;
  border: 1px solid rgba(213, 79, 42, 0.22);
  border-radius: 3px;
  background: rgba(213, 79, 42, 0.055);
}

.media-compose-preview[hidden] {
  display: none;
}

.media-compose-visual {
  display: grid;
  place-items: center;
  width: 54px;
  height: 46px;
  overflow: hidden;
  border-radius: 2px;
  color: #fff;
  background: var(--ink);
}

.media-compose-visual img,
.media-compose-visual video {
  display: block;
  width: 54px;
  height: 46px;
  object-fit: cover;
}

.media-compose-visual img[hidden],
.media-compose-visual video[hidden],
.media-compose-visual span[hidden] {
  display: none;
}

.media-compose-visual span {
  font-family: "Songti SC", "STSong", serif;
  font-size: 17px;
}

.media-compose-copy {
  display: grid;
  gap: 3px;
  min-width: 0;
}

.media-compose-copy strong,
.media-compose-copy span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.media-compose-copy strong {
  font-size: 11px;
}

.media-compose-copy span {
  color: var(--muted);
  font-size: 10px;
}

.media-compose-preview button {
  width: 28px;
  height: 28px;
  border: 0;
  border-radius: 50%;
  color: var(--muted);
  background: rgba(23, 25, 21, 0.07);
  cursor: pointer;
  font-size: 18px;
  line-height: 1;
}

.media-compose-preview button:disabled {
  cursor: wait;
  opacity: 0.45;
}

.reply-actions .button {
  min-width: 90px;
  min-height: 40px;
}

.customer-panel {
  min-width: 0;
  min-height: 0;
  padding: 26px 22px;
  overflow-y: auto;
  border-left: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.74);
}

.customer-empty {
  display: grid;
  place-content: center;
  height: 100%;
  color: var(--muted);
  font-size: 12px;
  text-align: center;
}

.customer-empty[hidden] {
  display: none;
}

.customer-empty .section-label {
  margin-bottom: 4px;
}

.customer-active[hidden] {
  display: none;
}

.customer-title-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--line);
}

.customer-title-row .section-label {
  margin-bottom: 5px;
}

.customer-title-row h2 {
  margin: 0;
  font-family: "Songti SC", "STSong", serif;
  font-size: 24px;
  font-weight: 600;
}

.returning-badge {
  flex: none;
  padding: 6px 8px;
  border-radius: 2px;
  color: #2f824f;
  background: rgba(73, 168, 106, 0.1);
  font-size: 10px;
  font-weight: 700;
}

.returning-badge.is-returning {
  color: var(--accent-dark);
  background: rgba(213, 79, 42, 0.1);
}

.customer-details {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0 14px;
  margin: 0;
}

.customer-details > div {
  grid-column: 1 / -1;
  min-width: 0;
  padding: 13px 0;
  border-bottom: 1px solid var(--line);
}

.customer-details > .detail-half {
  grid-column: auto;
}

.customer-details dt {
  margin-bottom: 6px;
  color: var(--muted);
  font-size: 10px;
}

.customer-details dd {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 7px;
  min-width: 0;
  margin: 0;
  font-size: 12px;
  font-weight: 650;
}

.customer-details code {
  min-width: 0;
  overflow-wrap: anywhere;
  color: var(--ink);
  font-family: ui-monospace, "SFMono-Regular", Menlo, monospace;
  font-size: 9px;
  line-height: 1.5;
}

.copy-button {
  flex: none;
  padding: 3px 6px;
  border: 1px solid var(--line);
  border-radius: 2px;
  color: var(--muted);
  background: transparent;
  cursor: pointer;
  font-size: 9px;
}

.copy-button:hover {
  border-color: var(--ink);
  color: var(--ink);
}

.copy-button:disabled {
  opacity: 0.45;
  cursor: default;
}

.connection-history {
  padding-top: 20px;
}

.connection-history h3 {
  margin: 0 0 13px;
  font-size: 12px;
}

#connection-history-list {
  display: grid;
  gap: 14px;
}

#connection-history-list > div {
  display: grid;
  grid-template-columns: 8px minmax(0, 1fr);
  gap: 9px;
}

.connection-marker {
  width: 6px;
  height: 6px;
  margin-top: 4px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 3px rgba(213, 79, 42, 0.1);
}

#connection-history-list > div > div {
  display: grid;
  gap: 3px;
  min-width: 0;
}

#connection-history-list strong {
  font-size: 10px;
}

#connection-history-list time {
  color: var(--muted);
  font-size: 9px;
}

#connection-history-list code {
  overflow-wrap: anywhere;
  color: var(--muted);
  font-size: 8px;
  line-height: 1.5;
}

.customer-privacy-note {
  margin: 22px 0 0;
  padding: 12px;
  border-left: 2px solid var(--accent);
  color: var(--muted);
  background: rgba(213, 79, 42, 0.05);
  font-size: 10px;
  line-height: 1.7;
}

.service-toast {
  position: fixed;
  z-index: 30;
  right: 24px;
  bottom: 24px;
  max-width: 360px;
  padding: 13px 17px;
  border-left: 3px solid var(--accent);
  color: #fff;
  background: var(--ink);
  box-shadow: 0 14px 40px rgba(23, 25, 21, 0.2);
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 180ms ease, transform 180ms ease;
}

.service-toast.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 760px) {
  .service-body {
    overflow: auto;
  }

  .service-app {
    grid-template-rows: 62px auto;
    height: auto;
    min-height: 100vh;
  }

  .service-topbar {
    padding: 0 16px;
  }

  .service-brand > span,
  .service-online {
    display: none;
  }

  .service-layout {
    grid-template-columns: 1fr;
    grid-template-rows: 280px minmax(560px, calc(100vh - 342px)) auto;
  }

  .conversation-panel {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .conversation-heading {
    padding: 20px 18px 14px;
  }

  .conversation-heading h1 {
    font-size: 23px;
  }

  .chat-empty {
    position: relative;
    min-height: 560px;
  }

  .chat-active {
    height: 100%;
    min-height: 560px;
  }

  .message-list {
    padding: 22px 16px;
  }

  .message-bubble {
    max-width: 86%;
  }

  .customer-panel {
    min-height: 420px;
    border-top: 1px solid var(--line);
    border-left: 0;
  }

  .reply-tools > span {
    display: none;
  }
}

@media (min-width: 761px) and (max-width: 1120px) {
  .service-layout {
    grid-template-columns: 270px minmax(380px, 1fr) 250px;
  }

  .customer-panel {
    padding: 22px 16px;
  }

  .conversation-item {
    padding-inline: 15px;
  }
}

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

@media (max-width: 800px) {
  .auth-layout {
    grid-template-columns: 1fr;
    gap: 42px;
    padding: 56px 0;
  }

  .brand-panel {
    text-align: center;
  }

  .brand-panel h1 {
    font-size: clamp(54px, 18vw, 82px);
  }

  .route-mark {
    width: min(320px, 80%);
    margin: 38px auto 0;
  }
}

@media (max-width: 520px) {
  .page-shell {
    padding: 18px;
  }

  .auth-layout {
    padding: 38px 0;
  }

  .brand-copy {
    font-size: 14px;
  }

  .auth-card {
    padding: 30px 24px;
  }

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

  .settings-card {
    margin: 28px 0;
  }

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

  .profile-id {
    grid-column: auto;
  }
}

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