:root {
  --theme: #2f6bff;
  --theme-dark: #1f54d8;
  --paper: #f7f4ec;
  --ink: #1a1a1a;
  --muted: #667085;
  --line: #d9dde5;
  --danger: #c41e3a;
  --ok: #0f7b4a;
  --shadow: 0 8px 28px rgba(16, 24, 40, 0.08);
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: "PingFang SC", "Microsoft YaHei", "Noto Sans SC", sans-serif;
  color: var(--ink);
  background: #eef2f7;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--theme); text-decoration: none; }
button, .btn {
  appearance: none;
  border: 0;
  cursor: pointer;
  font: inherit;
}

/* ========== H5 Letter（对齐市面线上律师函版式） ========== */
.h5-body {
  min-height: 100vh;
  background: #f2f3f5;
  padding-bottom: 118px;
}

.h5-topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  background: var(--theme, #2f6bff);
  font-size: 16px;
  font-weight: 600;
  letter-spacing: 0.5px;
}

.h5-wrap {
  max-width: 720px;
  margin: 0 auto;
  padding: 12px 10px 16px;
}

.letter-image-card {
  background: #fff;
  border-radius: 2px;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.06);
  overflow: hidden;
}

.letter-image {
  display: block;
  width: 100%;
  height: auto;
  vertical-align: top;
}

.letter-sheet {
  background: #fff;
  border-radius: 2px;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.06);
  padding: 18px 16px 16px;
  position: relative;
  overflow: hidden;
}

.letter-head {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 14px;
}

.letter-head img,
.logo-fallback {
  width: 34px;
  height: 34px;
  object-fit: contain;
  flex-shrink: 0;
}

.logo-fallback {
  border-radius: 6px;
  background: var(--theme, #2f6bff);
  color: #fff;
  display: grid;
  place-items: center;
  font-size: 16px;
  font-weight: 700;
}

.letter-head .firm {
  font-size: 15px;
  font-weight: 700;
  color: #1f2a37;
  line-height: 1.3;
}

.letter-title {
  text-align: center;
  font-family: "PingFang SC", "Microsoft YaHei", sans-serif;
  font-size: 26px;
  font-weight: 700;
  letter-spacing: 8px;
  margin: 4px 0 8px;
  color: #111;
}

.letter-no {
  text-align: right;
  color: #333;
  font-size: 13px;
  margin-bottom: 16px;
}

.letter-body {
  font-family: "PingFang SC", "Microsoft YaHei", "Noto Sans SC", sans-serif;
  font-size: 14.5px;
  line-height: 1.85;
  color: #222;
  word-break: break-word;
}

.letter-body .indent {
  text-indent: 2em;
  margin: 0 0 0.75em;
}

.letter-body .plain {
  margin: 0 0 0.75em;
  text-indent: 0;
  font-weight: 600;
}

.pay-box {
  margin: 8px 0 14px;
  padding: 10px 12px;
  background: #f7f8fa;
  border-left: 3px solid var(--theme, #2f6bff);
  font-size: 14px;
  line-height: 1.8;
}

.pay-box div span {
  display: inline-block;
  min-width: 4.5em;
  color: #667085;
  margin-right: 6px;
}

.sign-block {
  position: relative;
  min-height: 128px;
  margin-top: 8px;
  padding-right: 8px;
}

.sign-text {
  text-align: right;
  font-size: 14px;
  line-height: 1.8;
  color: #222;
  padding-top: 8px;
}

.seal-area {
  position: absolute;
  right: 0;
  top: 0;
  width: 210px;
  height: 130px;
  pointer-events: none;
}

.seal {
  position: absolute;
  opacity: 0.9;
  mix-blend-mode: multiply;
}

.seal.lawyer {
  right: 96px;
  top: 18px;
  width: 86px;
}

.seal.firm {
  right: 0;
  top: 8px;
  width: 112px;
}

.letter-disclaimer {
  margin-top: 18px;
  padding-top: 12px;
  border-top: 1px dashed #e5e7eb;
  font-size: 11px;
  line-height: 1.65;
  color: #98a2b3;
}

.h5-icp {
  max-width: 720px;
  margin: 0 auto 10px;
  padding: 10px 12px;
  background: #4a5568;
  color: #e8edf5;
  font-size: 12px;
  line-height: 1.6;
  text-align: center;
}

.h5-side {
  position: fixed;
  right: 0;
  top: 34%;
  z-index: 30;
  display: flex;
  flex-direction: column;
  width: 56px;
  border-radius: 10px 0 0 10px;
  overflow: hidden;
  background: rgba(47, 107, 255, 0.95);
  box-shadow: -2px 4px 14px rgba(47, 107, 255, 0.28);
}

.h5-side a,
.h5-side button {
  background: transparent;
  color: #fff;
  border: 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.18);
  padding: 10px 4px 8px;
  font-size: 10px;
  line-height: 1.15;
  text-align: center;
  display: block;
  width: 100%;
}

.h5-side a:last-child,
.h5-side button:last-child {
  border-bottom: 0;
}

.h5-side .ico {
  display: grid;
  place-items: center;
  margin: 0 auto 4px;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.16);
}

.call-fab {
  position: fixed;
  right: 14px;
  bottom: 126px;
  z-index: 31;
  width: 58px;
  height: 58px;
  border-radius: 50%;
  background: #22c55e;
  color: #fff;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1px;
  box-shadow: 0 8px 18px rgba(34, 197, 94, 0.35);
  font-size: 11px;
  line-height: 1;
  text-decoration: none;
}

.h5-bottom {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 25;
  padding: 8px 10px calc(8px + env(safe-area-inset-bottom));
  background: #fff;
  border-top: 1px solid #e5e7eb;
}

.h5-bottom .verify-btn {
  display: block;
  width: 100%;
  max-width: 720px;
  margin: 0 auto;
  height: 44px;
  border-radius: 6px;
  background: var(--theme, #2f6bff);
  color: #fff;
  font-size: 16px;
  font-weight: 600;
  text-align: center;
  line-height: 44px;
}

.receipt-mask {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 80;
  background: rgba(0, 0, 0, 0.45);
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.receipt-card {
  width: min(360px, 100%);
  background: #fff;
  border-radius: 12px;
  padding: 18px 16px;
}

.receipt-card h3 {
  margin: 0 0 8px;
  font-size: 17px;
}

.receipt-card p {
  margin: 0;
  color: #475467;
  font-size: 14px;
  line-height: 1.6;
}

.receipt-actions {
  display: flex;
  gap: 10px;
  margin-top: 16px;
}

.receipt-actions .btn {
  flex: 1;
}

.msg-sheet .msg-tip {
  margin: 0 0 10px;
  color: #667085;
  font-size: 13px;
  line-height: 1.5;
}

.msg-sheet textarea {
  width: 100%;
  min-height: 110px;
  border: 1px solid #d0d7e2;
  border-radius: 8px;
  padding: 10px 12px;
  font: inherit;
  resize: vertical;
  margin-bottom: 4px;
}

.toast {
  position: fixed;
  left: 50%;
  top: 20%;
  transform: translateX(-50%);
  background: rgba(0, 0, 0, 0.78);
  color: #fff;
  padding: 10px 16px;
  border-radius: 8px;
  font-size: 14px;
  z-index: 99;
  display: none;
}

.verify-card, .empty-card {
  max-width: 720px;
  margin: 18px auto;
  background: #fff;
  border-radius: 12px;
  padding: 22px 18px;
  box-shadow: var(--shadow);
}

.verify-card h1 {
  margin: 0 0 8px;
  font-size: 20px;
  color: var(--theme);
}

.verify-card .meta {
  margin: 10px 0;
  font-size: 14px;
  line-height: 1.7;
  color: #333;
}

.verify-card .badge {
  display: inline-block;
  background: #e8f6ee;
  color: var(--ok);
  border: 1px solid #b7e0c7;
  border-radius: 999px;
  padding: 4px 10px;
  font-size: 12px;
  margin-bottom: 10px;
}

/* ========== Admin ========== */
.admin-body {
  min-height: 100vh;
  background: #f4f6fa;
  color: #18212f;
}

.admin-shell {
  display: grid;
  grid-template-columns: 168px 1fr;
  min-height: 100vh;
}

.admin-nav {
  background: #13233d;
  color: #dbe4f3;
  padding: 18px 14px;
}

.admin-nav .brand {
  font-size: 17px;
  font-weight: 700;
  margin-bottom: 6px;
  line-height: 1.3;
  padding: 0 8px;
  letter-spacing: 0.02em;
  color: #fff;
}
.admin-nav .nav-user {
  font-size: 12px;
  color: #8fa3c1;
  padding: 0 8px 14px;
  margin-bottom: 4px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
.admin-nav .nav-logout {
  margin-top: 16px;
  padding: 0 8px;
}
.admin-nav .nav-logout .btn {
  width: 100%;
}

.admin-nav a {
  display: block;
  color: #c9d6ea;
  padding: 10px 12px;
  border-radius: 8px;
  margin-bottom: 4px;
  font-size: 14px;
}

.admin-nav a.active, .admin-nav a:hover {
  background: rgba(255,255,255,0.08);
  color: #fff;
}

.admin-main {
  padding: 16px 20px 32px;
  min-width: 0;
}
.admin-main--narrow { max-width: none; }
.admin-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
  gap: 12px;
}
.admin-top h1 { margin: 0; font-size: 18px; font-weight: 700; }
.page-sub {
  margin: 2px 0 0;
  font-size: 12px;
  color: #8a97ab;
}

/* —— 系统设置：铺满主区、三列横排 —— */
.settings-page {
  width: 100%;
  max-width: none;
  padding-bottom: 72px;
}
.settings-page .admin-top h1 { font-size: 17px; }
.settings-form { width: 100%; }

.set-card {
  background: #fff;
  border: 1px solid #e4e9f1;
  border-radius: 8px;
  margin-bottom: 12px;
  box-shadow: 0 1px 2px rgba(16, 24, 40, 0.03);
}
.set-card-hd {
  display: flex;
  align-items: baseline;
  gap: 10px;
  padding: 10px 14px;
  border-bottom: 1px solid #eef1f6;
}
.set-card-hd b {
  font-size: 13px;
  font-weight: 650;
  color: #152033;
}
.set-card-hd i {
  font-style: normal;
  font-size: 12px;
  color: #95a1b3;
}

.set-grid {
  display: grid;
  gap: 10px 16px;
  padding: 14px;
}
.set-grid.cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.set-grid.cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }

.set-row {
  display: grid;
  grid-template-columns: 72px minmax(0, 1fr);
  align-items: center;
  gap: 8px;
  margin: 0;
  min-width: 0;
}
.set-row em {
  font-style: normal;
  font-size: 12px;
  color: #5f6e84;
  text-align: right;
  line-height: 1.25;
}
.set-row input,
.set-row select,
.set-row textarea {
  width: 100%;
  height: 32px;
  padding: 5px 10px;
  border: 1px solid #d5dde8;
  border-radius: 5px;
  font-size: 13px;
  background: #fff;
  color: #152033;
}
.set-row input::placeholder,
.set-row textarea::placeholder {
  color: #b4becc;
  opacity: 1;
}
.set-row em.req::after,
.upload-tile-t.req::after {
  content: ' *';
  color: #e11d48;
  font-weight: 700;
}
.req-mark { color: #e11d48; font-weight: 700; }
.flash-err {
  border: 1px solid #f5c2c7;
  background: #fff5f5;
  color: #b42318;
  border-radius: 8px;
  padding: 8px 12px;
  margin-bottom: 10px;
  font-size: 13px;
}
.set-row textarea {
  height: auto;
  min-height: 64px;
  padding: 8px 10px;
  line-height: 1.5;
  resize: vertical;
  align-self: stretch;
}
.set-row:has(textarea) {
  align-items: start;
}
.set-row:has(textarea) em {
  padding-top: 8px;
}
.set-row input:focus,
.set-row select:focus,
.set-row textarea:focus {
  outline: none;
  border-color: #2f6bff;
  box-shadow: 0 0 0 2px rgba(47, 107, 255, 0.12);
}
.span-2 { grid-column: span 2; }
.span-3 { grid-column: 1 / -1; }

.set-row .color-row {
  display: flex;
  gap: 8px;
  align-items: center;
}
.set-row .color-swatch {
  width: 32px;
  height: 32px;
  padding: 2px;
  border: 1px solid #d5dde8;
  border-radius: 5px;
  background: #fff;
  cursor: pointer;
  flex-shrink: 0;
}

.set-split {
  display: grid;
  grid-template-columns: 1.35fr 1fr;
  gap: 12px;
  margin-bottom: 0;
  align-items: start;
}
.set-split .set-card { margin-bottom: 12px; }

.upload-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  padding: 14px;
}
.upload-tile {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin: 0;
  padding: 10px;
  border: 1px dashed #cfd7e3;
  border-radius: 8px;
  background: #f8fafc;
  min-width: 0;
  cursor: pointer;
  transition: border-color 0.15s, background 0.15s;
}
.upload-tile:hover {
  border-color: #2f6bff;
  background: #f3f7ff;
}
.upload-tile-t {
  font-size: 12px;
  font-weight: 650;
  color: #344054;
}
.upload-tile img {
  height: 56px;
  width: auto;
  max-width: 100%;
  object-fit: contain;
  align-self: flex-start;
  background: #fff;
  border-radius: 4px;
  padding: 4px;
}
.upload-ph {
  height: 56px;
  display: grid;
  place-items: center;
  border-radius: 4px;
  background: #eef2f7;
  color: #98a2b3;
  font-size: 12px;
}
.upload-tile input[type="file"] {
  font-size: 11px;
  padding: 0;
  border: 0;
  height: auto;
  background: transparent;
}
.upload-tile em {
  font-style: normal;
  font-size: 10px;
  color: #98a2b3;
  word-break: break-all;
  line-height: 1.3;
}

.set-tip {
  margin: 0;
  padding: 0 14px 12px;
  font-size: 12px;
  color: #8a97ab;
  line-height: 1.5;
}
.set-grid.cols-1 {
  grid-template-columns: 1fr;
}
.how-card {
  background: #fffbeb;
  border: 1px solid #fde68a;
  border-radius: 8px;
  padding: 12px 14px;
  margin-bottom: 12px;
  font-size: 13px;
  color: #78350f;
  line-height: 1.65;
}
.how-card b { color: #92400e; }
.how-card ol { margin: 8px 0 0; padding-left: 1.2em; }
.how-card li { margin: 4px 0; }
.guide-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}
.guide-table th {
  background: #f7f9fc;
  color: #5f6e84;
  font-weight: 600;
  padding: 8px 10px;
  border-bottom: 1px solid #eef1f6;
  text-align: left;
}
.guide-table td {
  padding: 10px;
  border-bottom: 1px solid #eef1f6;
  vertical-align: middle;
}
.guide-table td small {
  display: block;
  margin-top: 2px;
  color: #95a1b3;
  font-size: 11px;
}
.guide-table .ex {
  color: #64748b;
  font-size: 12px;
  line-height: 1.45;
}
.guide-table .bad { color: #e11d48; }
.guide-table input {
  width: 100%;
  height: 34px;
  padding: 5px 10px;
  border: 1px solid #d5dde8;
  border-radius: 5px;
  font-size: 13px;
}
.guide-table input:focus {
  outline: none;
  border-color: #2f6bff;
  box-shadow: 0 0 0 2px rgba(47, 107, 255, 0.12);
}
.sms-preview {
  margin: 12px 14px 14px;
  padding: 12px;
  background: #f8fafc;
  border: 1px dashed #cbd5e1;
  border-radius: 8px;
}
.sms-preview-hd {
  font-size: 12px;
  font-weight: 650;
  color: #475467;
  margin-bottom: 8px;
}
.sms-preview-body {
  font-size: 13px;
  line-height: 1.65;
  color: #1f2937;
  word-break: break-all;
}
.set-more {
  margin-bottom: 12px;
  background: #fff;
  border: 1px solid #e4e9f1;
  border-radius: 8px;
  overflow: hidden;
}
.set-more > summary {
  cursor: pointer;
  list-style: none;
  padding: 12px 14px;
  font-size: 13px;
  font-weight: 650;
  color: #344054;
  user-select: none;
}
.set-more > summary::-webkit-details-marker { display: none; }
.set-more > summary::before {
  content: '▸ ';
  color: #2f6bff;
}
.set-more[open] > summary::before { content: '▾ '; }
.set-more .set-card {
  border: 0;
  border-top: 1px solid #eef1f6;
  border-radius: 0;
  box-shadow: none;
  margin: 0;
}

.set-foot {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 14px;
  padding: 8px 0;
}
.sticky-foot {
  position: sticky;
  bottom: 0;
  margin: 0 -20px -32px;
  padding: 12px 20px;
  background: rgba(244, 246, 250, 0.92);
  border-top: 1px solid #e6ebf2;
  backdrop-filter: blur(8px);
}
.set-foot .hint { margin: 0; font-size: 12px; color: #8a97ab; }
.set-foot .btn,
.settings-page .admin-top .btn {
  height: 34px;
  padding: 0 18px;
  border-radius: 6px;
  font-size: 13px;
}

@media (max-width: 1200px) {
  .set-grid.cols-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .span-3 { grid-column: 1 / -1; }
  .set-split { grid-template-columns: 1fr; }
}
@media (max-width: 720px) {
  .set-grid.cols-3,
  .set-grid.cols-2 { grid-template-columns: 1fr; }
  .span-2, .span-3 { grid-column: auto; }
  .set-row { grid-template-columns: 1fr; gap: 4px; }
  .set-row em { text-align: left; }
  .upload-grid { grid-template-columns: 1fr 1fr; }
}

.cards {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 18px;
}
.card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 14px 16px;
  box-shadow: 0 1px 2px rgba(16,24,40,0.04);
}
.card .label { color: var(--muted); font-size: 12px; }
.card .value { font-size: 26px; font-weight: 700; margin-top: 6px; }
.card .rate { margin-top: 6px; font-size: 12px; color: #344054; }
.card .hint-inline { color: var(--muted); font-weight: 400; }

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

.stats-toolbar {
  display: flex;
  gap: 10px;
  align-items: center;
  flex-wrap: wrap;
}
.seg {
  display: inline-flex;
  border: 1px solid var(--line);
  border-radius: 999px;
  overflow: hidden;
  background: #fff;
}
.seg a {
  padding: 7px 12px;
  color: #475467;
  font-size: 13px;
}
.seg a.on, .seg a:hover {
  background: var(--theme);
  color: #fff;
}

.stats-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 16px;
}
.chart-wrap { position: relative; min-height: 260px; }

.funnel { display: grid; gap: 12px; margin-top: 8px; }
.funnel-row {
  display: grid;
  grid-template-columns: 72px 1fr auto;
  gap: 10px;
  align-items: center;
  font-size: 13px;
}
.funnel-row .bar {
  height: 10px;
  background: #eef2f7;
  border-radius: 999px;
  overflow: hidden;
}
.funnel-row .bar i {
  display: block;
  height: 100%;
  background: #98a2b3;
  border-radius: 999px;
}
.funnel-row b { font-size: 12px; color: #344054; white-space: nowrap; }

@media (max-width: 1100px) {
  .cards-6 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .stats-grid { grid-template-columns: 1fr; }
}

.panel {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 16px;
  margin-bottom: 16px;
}
.panel-compact { padding: 12px 14px 14px; }
.sec-title {
  margin: 14px 0 8px;
  font-size: 14px;
  font-weight: 650;
  color: #1f2a37;
}
.sec-title:first-child { margin-top: 0; }
.flash-ok {
  border: 1px solid #b7e0c7;
  background: #f3faf6;
  border-radius: 8px;
  padding: 8px 12px;
  margin-bottom: 10px;
  font-size: 13px;
}
.form-actions { margin-top: 12px; }
.color-row {
  display: flex;
  gap: 8px;
  align-items: center;
}
.color-swatch {
  width: 36px;
  height: 34px;
  padding: 2px;
  border-radius: 6px;
  flex-shrink: 0;
  cursor: pointer;
}
.thumb-sm { height: 40px; margin-top: 4px; display: block; }
.thumb-md { height: 56px; margin-top: 4px; display: block; }
.thumb-lg { height: 72px; margin-top: 4px; display: block; }

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}
th, td {
  padding: 10px 8px;
  border-bottom: 1px solid #eef1f6;
  text-align: left;
  vertical-align: top;
}
th { color: #667085; font-weight: 600; background: #fafbfd; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 36px;
  padding: 0 14px;
  border-radius: 8px;
  background: var(--theme);
  color: #fff;
  font-size: 13px;
}
.btn.secondary { background: #eef2f7; color: #243247; }
.btn.danger { background: #c41e3a; }
.btn.small { height: 30px; padding: 0 10px; font-size: 12px; }

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
.form-grid--tight {
  gap: 8px 12px;
}
.form-grid .full { grid-column: 1 / -1; }
label {
  display: block;
  font-size: 12px;
  color: #5b6b7f;
  margin-bottom: 4px;
  line-height: 1.3;
}
input, select, textarea {
  width: 100%;
  border: 1px solid #d0d7e2;
  border-radius: 6px;
  padding: 7px 10px;
  font: inherit;
  font-size: 13px;
  background: #fff;
  line-height: 1.35;
}
textarea { min-height: 72px; resize: vertical; }
.hint { color: #667085; font-size: 11px; margin-top: 4px; }

.status {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 999px;
  font-size: 12px;
  background: #eef2f7;
}
.status.opened { background: #e8f1ff; color: #1e4b8c; }
.status.receipted { background: #e8f6ee; color: #0f7b4a; }
.status.rejected { background: #fdecec; color: #b42318; }
.status.ready, .status.draft { background: #f2f4f7; color: #475467; }

.login-page {
  min-height: 100vh;
  margin: 0;
  background:
    linear-gradient(145deg, rgba(10, 22, 40, 0.92), rgba(19, 42, 72, 0.88)),
    radial-gradient(ellipse at 15% 20%, rgba(201, 162, 89, 0.18), transparent 45%),
    #0b1628;
  display: grid;
  place-items: center;
  padding: 24px 16px;
}
.login-stage {
  width: min(880px, 100%);
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.35);
}
.login-aside {
  padding: 48px 40px;
  color: #f4f1ea;
  background:
    linear-gradient(160deg, rgba(201, 162, 89, 0.16), transparent 55%),
    linear-gradient(180deg, #13233d, #0e1a2e);
}
.login-kicker {
  margin: 0 0 14px;
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #c9a259;
}
.login-aside h1 {
  margin: 0 0 12px;
  font-size: 34px;
  font-weight: 700;
  letter-spacing: 0.04em;
}
.login-aside-desc {
  margin: 0;
  color: #a8b7cd;
  font-size: 14px;
  line-height: 1.7;
}
.login-card {
  background: #fff;
  padding: 40px 36px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.login-card h2 {
  margin: 0 0 6px;
  font-size: 24px;
  color: #13233d;
}
.login-sub {
  margin: 0 0 22px;
  color: #667085;
  font-size: 13px;
}
.login-card label {
  display: block;
  margin-bottom: 14px;
  font-size: 13px;
  color: #344054;
  font-weight: 600;
}
.login-card input {
  width: 100%;
  margin-top: 6px;
  height: 44px;
  border: 1px solid #d0d5dd;
  border-radius: 10px;
  padding: 0 12px;
  font: inherit;
  background: #fbfcfe;
}
.login-card input:focus {
  outline: none;
  border-color: #1f4b8c;
  box-shadow: 0 0 0 3px rgba(31, 75, 140, 0.12);
}
.login-submit {
  width: 100%;
  height: 46px;
  margin-top: 8px;
  border-radius: 10px;
  background: #13233d;
  color: #fff;
  font-weight: 600;
}
.login-submit:hover { background: #1a3054; }
.login-card .error {
  background: #fdecec;
  color: #b42318;
  padding: 10px 12px;
  border-radius: 8px;
  margin-bottom: 14px;
  font-size: 13px;
}
@media (max-width: 720px) {
  .login-stage { grid-template-columns: 1fr; }
  .login-aside { padding: 28px 24px 20px; }
  .login-aside h1 { font-size: 26px; }
  .login-card { padding: 28px 22px 32px; }
}

.mono {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 12px;
  word-break: break-all;
}

.sms-box {
  background: #0f172a;
  color: #e2e8f0;
  border-radius: 10px;
  padding: 12px 14px;
  font-size: 13px;
  line-height: 1.7;
  white-space: pre-wrap;
}

@media (max-width: 960px) {
  .admin-shell { grid-template-columns: 1fr; }
  .admin-nav { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
  .admin-nav .brand { margin: 0; padding: 0; }
  .admin-nav .nav-user { border: 0; margin: 0; padding: 0 8px; }
  .admin-nav .nav-logout { margin: 0; padding: 0; }
  .admin-nav .nav-logout .btn { width: auto; }
  .admin-nav a { white-space: nowrap; }
  .cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .form-grid { grid-template-columns: 1fr; }
}
