:root {
  --bg: #f4fbf9;
  --bg-strong: #e9f8f4;
  --panel: #ffffff;
  --panel-soft: #f8fcfb;
  --ink: #122034;
  --muted: #64748b;
  --faint: #94a3b8;
  --line: #dce8e6;
  --primary: #0aa889;
  --primary-dark: #077760;
  --primary-soft: #e5f8f3;
  --blue: #2f80ed;
  --amber: #f59e0b;
  --red: #ef4444;
  --purple: #7c3aed;
  --shadow: 0 18px 50px rgba(15, 77, 69, .08);
}

* { box-sizing: border-box; }

html { min-width: 1180px; }

body {
  margin: 0;
  min-height: 100vh;
  background:
    radial-gradient(circle at 16% 12%, rgba(10, 168, 137, .14), transparent 28%),
    linear-gradient(135deg, #f7fffd 0%, #eff8ff 45%, #fbfefd 100%);
  color: var(--ink);
  font-family: "Microsoft YaHei", "PingFang SC", "Segoe UI", Arial, sans-serif;
  letter-spacing: 0;
}

button, input, select, textarea { font: inherit; }

button {
  height: 38px;
  padding: 0 15px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: var(--ink);
  cursor: pointer;
  transition: border-color .18s ease, color .18s ease, background .18s ease, transform .18s ease;
}

button:hover {
  border-color: rgba(10, 168, 137, .46);
  color: var(--primary-dark);
  background: #fbfffe;
}

button:active { transform: translateY(1px); }

button.primary {
  border-color: var(--primary);
  background: linear-gradient(180deg, #12b993 0%, #079a7c 100%);
  color: #fff;
  box-shadow: 0 10px 22px rgba(10, 168, 137, .22);
}

button.primary:hover {
  border-color: var(--primary-dark);
  background: linear-gradient(180deg, #0faa8a 0%, #077b64 100%);
  color: #fff;
}

.hidden { display: none !important; }

#app {
  width: min(1440px, calc(100vw - 40px));
  min-height: 100vh;
  margin: 0 auto;
  padding: 20px 0 28px;
}

.hero {
  min-height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 16px 22px;
  border: 1px solid rgba(220, 232, 230, .84);
  border-radius: 16px;
  background: rgba(255, 255, 255, .86);
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
}

.brand-lockup,
.sidebar-brand,
.software-history-head,
.software-version-row,
.software-version-actions,
.content-topbar,
.admin-hero,
.auth-row {
  display: flex;
  align-items: center;
  gap: 12px;
}

.brand-logo {
  width: 44px;
  height: 44px;
  object-fit: contain;
}

.hero h1 {
  margin: 2px 0 0;
  font-size: 20px;
  line-height: 1.25;
  letter-spacing: 0;
}

.hero-copy {
  min-width: 360px;
  text-align: right;
}

.hero-copy strong {
  display: block;
  font-size: 14px;
  color: #0f3f38;
}

.hero p,
.auth-intro p,
.panel header span,
.item-card p,
.metric-card p,
.service-card span,
.admin-hero p {
  margin: 0;
  color: var(--muted);
  line-height: 1.65;
}

.eyebrow {
  margin: 0;
  color: var(--primary-dark);
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0;
}

.hero-actions {
  min-width: 120px;
  display: flex;
  justify-content: flex-end;
}

.auth-shell {
  min-height: calc(100vh - 136px);
  display: grid;
  grid-template-columns: minmax(0, 1fr) 430px;
  gap: 44px;
  align-items: center;
  padding: 38px 10px 28px;
}

.dashboard-mode .auth-shell,
.dashboard-mode .hero-copy {
  display: none;
}

.dashboard-mode .hero {
  display: none;
}

.auth-intro {
  max-width: 610px;
  padding-left: 20px;
}

.intro-badge {
  display: inline-flex;
  align-items: center;
  height: 32px;
  padding: 0 12px;
  border: 1px solid rgba(10, 168, 137, .22);
  border-radius: 999px;
  background: rgba(229, 248, 243, .9);
  color: var(--primary-dark);
  font-size: 13px;
  font-weight: 700;
}

.auth-intro h2 {
  max-width: 520px;
  margin: 24px 0 14px;
  font-size: 34px;
  line-height: 1.24;
  letter-spacing: 0;
}

.preview-panel {
  position: relative;
  width: 420px;
  height: 220px;
  margin-top: 28px;
  display: grid;
  grid-template-columns: 72px 1fr;
  gap: 16px;
  padding: 18px;
  border: 1px solid rgba(185, 211, 207, .7);
  border-radius: 20px;
  background: rgba(255, 255, 255, .78);
  box-shadow: 0 22px 60px rgba(29, 108, 95, .12);
  overflow: hidden;
}

.preview-panel::after {
  content: "";
  position: absolute;
  right: -30px;
  top: -24px;
  width: 120px;
  height: 120px;
  border-radius: 32px;
  background: linear-gradient(135deg, rgba(16, 185, 129, .15), rgba(47, 128, 237, .12));
  transform: rotate(12deg);
}

.preview-sidebar,
.preview-main span,
.preview-main strong,
.preview-main small {
  display: block;
  border-radius: 999px;
  background: #dcefe9;
}

.preview-sidebar { border-radius: 14px; }

.preview-main {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 16px;
  align-content: start;
  padding-top: 4px;
}

.preview-main span { height: 14px; width: 74%; }
.preview-main span:nth-child(2) { width: 52%; background: #e8eef7; }
.preview-main span:nth-child(3) { width: 82%; background: #e3f7f1; }
.preview-main strong { height: 44px; width: 92%; border-radius: 12px; background: #f2f8f7; }
.preview-main small { height: 22px; width: 44%; background: var(--primary); }

.trust-grid {
  width: 420px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin-top: 24px;
}

.trust-grid span,
.status-dot,
.kbd {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 28px;
  border: 1px solid rgba(220, 232, 230, .88);
  border-radius: 999px;
  background: rgba(255, 255, 255, .72);
  color: #31544d;
  font-size: 12px;
}

.auth-stack {
  display: grid;
  gap: 16px;
}

.service-card {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 15px 16px;
  border: 1px solid rgba(220, 232, 230, .86);
  border-radius: 14px;
  background: rgba(255, 255, 255, .82);
  box-shadow: 0 12px 36px rgba(15, 77, 69, .06);
}

.panel {
  margin-top: 18px;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(255, 255, 255, .94);
  box-shadow: 0 14px 42px rgba(15, 77, 69, .06);
}

.panel.inner { margin-top: 0; }

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

.panel h2,
.dialog-form h3,
.admin-hero h2 {
  margin: 0;
  font-size: 20px;
  line-height: 1.3;
  letter-spacing: 0;
}

.auth-panel {
  width: 100%;
  margin-top: 0;
  padding: 26px;
  border-radius: 18px;
}

.auth-tabs {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 4px;
  height: 44px;
  padding: 4px;
  margin-bottom: 18px;
  border-radius: 12px;
  background: #eef7f5;
}

.auth-tabs button {
  display: grid;
  place-items: center;
  border: 0;
  border-radius: 9px;
  background: transparent;
  color: #4b635f;
  font-weight: 700;
  cursor: pointer;
}

.auth-tabs .active {
  background: #fff;
  color: var(--primary-dark);
  box-shadow: 0 7px 18px rgba(15, 77, 69, .08);
}

.auth-panel.login-mode #nicknameField {
  display: none;
}

.auth-hint {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  max-width: 220px;
  padding: 5px 10px;
  border-radius: 999px;
  background: #eef7f5;
  color: #506a66;
  font-size: 12px;
  font-weight: 700;
  line-height: 1.4;
}

.auth-hint:empty {
  display: none;
}

.auth-hint.ok {
  background: var(--primary-soft);
  color: var(--primary-dark);
}

.auth-hint.loading {
  background: #eff6ff;
  color: #1d4ed8;
}

.auth-hint.error {
  border: 1px solid #fecaca;
  background: #fff1f2;
  color: #b91c1c;
}

.auth-row {
  justify-content: space-between;
  margin-top: 12px;
}

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

.auth-actions button { width: 100%; }

.install-panel {
  margin-top: 0;
}

.form-grid,
.settings-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.settings-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  align-items: start;
}

.settings-grid .panel.inner {
  display: grid;
  gap: 12px;
  box-shadow: none;
}

.settings-grid .panel.inner.wide {
  grid-column: 1 / -1;
}

#adminTabView .settings-grid {
  grid-template-columns: 1fr;
}

label {
  display: grid;
  gap: 7px;
  color: #334155;
  font-size: 13px;
  font-weight: 700;
}

label.wide { grid-column: 1 / -1; }

input,
select,
textarea {
  width: 100%;
  min-width: 0;
  min-height: 40px;
  padding: 9px 11px;
  border: 1px solid var(--line);
  border-radius: 8px;
  outline: none;
  background: #fff;
  color: var(--ink);
}

input::placeholder,
textarea::placeholder { color: #a1afbd; }

textarea {
  min-height: 104px;
  resize: vertical;
}

textarea.privacy-editor {
  min-height: 220px;
  line-height: 1.7;
}

.notice-compose {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) 180px 180px;
  gap: 12px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfefd;
}

.notice-compose .wide {
  grid-column: 1 / -1;
}

.notice-compose textarea {
  min-height: 130px;
}

.station-message-table .station-title {
  display: grid;
  gap: 4px;
}

.station-message-table .station-title p {
  margin: 0;
  color: #64748b;
  font-size: 12px;
  line-height: 1.5;
}

input:focus,
select:focus,
textarea:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 4px rgba(10, 168, 137, .12);
}

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

.toggle {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 500;
}

.toggle input {
  width: 16px;
  min-height: 16px;
  accent-color: var(--primary);
}

.actions,
.toolbar {
  display: flex;
  gap: 10px;
  align-items: center;
  flex-wrap: wrap;
  margin-top: 16px;
}

.link-button {
  height: auto;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--primary-dark);
  box-shadow: none;
}

.dashboard {
  min-height: calc(100vh - 48px);
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr);
  border: 1px solid rgba(220, 232, 230, .86);
  border-radius: 18px;
  overflow: hidden;
  background: rgba(255, 255, 255, .94);
  box-shadow: var(--shadow);
}

.sidebar {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 18px 14px;
  border-right: 1px solid var(--line);
  background: linear-gradient(180deg, #fbfffd 0%, #f5fbfa 100%);
}

.sidebar-brand {
  min-height: 58px;
  margin-bottom: 10px;
  padding: 4px 6px 14px;
  border-bottom: 1px solid var(--line);
}

.sidebar-brand img {
  width: 38px;
  height: 38px;
  object-fit: contain;
}

.sidebar-brand strong {
  display: block;
  font-size: 15px;
}

.sidebar-brand span {
  display: block;
  margin-top: 3px;
  color: var(--muted);
  font-size: 12px;
}

.sidebar button {
  position: relative;
  width: 100%;
  height: 42px;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0 12px;
  border-color: transparent;
  background: transparent;
  text-align: left;
  font-weight: 700;
}

.sidebar button::before {
  content: "";
  width: 24px;
  height: 24px;
  flex: 0 0 auto;
  border-radius: 8px;
  background: rgba(10, 168, 137, .12);
  box-shadow: inset 0 0 0 1px rgba(10, 168, 137, .25);
}

.sidebar button[data-icon="file"]::before { background: rgba(47, 128, 237, .12); box-shadow: inset 0 0 0 1px rgba(47, 128, 237, .25); }
.sidebar button[data-icon="emoji"]::before { background: rgba(245, 158, 11, .14); box-shadow: inset 0 0 0 1px rgba(245, 158, 11, .28); }
.sidebar button[data-icon="team"]::before { background: rgba(124, 58, 237, .12); box-shadow: inset 0 0 0 1px rgba(124, 58, 237, .25); }
.sidebar button[data-icon="admin"]::before { background: rgba(239, 68, 68, .11); box-shadow: inset 0 0 0 1px rgba(239, 68, 68, .24); }

.sidebar button.active {
  border-color: rgba(10, 168, 137, .16);
  background: var(--primary-soft);
  color: var(--primary-dark);
}

.sidebar .logout-button {
  margin-top: auto;
  color: #8a3a3a;
  background: #fff7f7;
}

.content {
  min-width: 0;
  padding: 18px;
  background: #fbfefd;
}

.content-topbar {
  height: 58px;
  margin: -2px 0 18px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--line);
}

.menu-button {
  width: 38px;
  padding: 0;
  border-color: transparent;
  background: transparent;
  font-size: 18px;
}

.global-search {
  flex: 1;
  height: 38px;
  display: flex;
  align-items: center;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: 11px;
  background: #fff;
  color: #9aa6b2;
  font-size: 13px;
}

.topbar-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.kbd {
  min-width: 72px;
  font-family: "Segoe UI", Arial, sans-serif;
}

.status-dot {
  min-width: 56px;
  color: var(--primary-dark);
}

.admin-hero {
  justify-content: space-between;
  min-height: 86px;
  padding: 4px 2px 16px;
}

.admin-overview {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 16px;
}

.metric-card {
  min-height: 132px;
  display: grid;
  align-content: start;
  gap: 8px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #fff;
}

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

.metric-card strong {
  display: block;
  font-size: 22px;
  color: var(--primary-dark);
}

.metric-amber strong { color: #b45309; }
.metric-blue strong { color: #1d4ed8; }
.metric-red strong { color: #dc2626; }
.metric-purple strong { color: #6d28d9; }

.mini-progress {
  height: 8px;
  overflow: hidden;
  border-radius: 999px;
  background: #edf2f7;
}

.mini-progress i {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: var(--primary);
}

.admin-subnav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 14px;
  padding: 8px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #fff;
}

.admin-subnav button {
  background: transparent;
  border-color: transparent;
}

.admin-subnav button.active {
  border-color: rgba(10, 168, 137, .2);
  background: var(--primary-soft);
  color: var(--primary-dark);
  font-weight: 700;
}

.split {
  margin-top: 14px;
  display: grid;
  grid-template-columns: 240px minmax(0, 1fr);
  gap: 14px;
}

.list,
.cards {
  display: grid;
  gap: 10px;
  align-content: start;
}

#emojisTab .toolbar {
  display: grid;
  grid-template-columns: minmax(180px, 1fr) auto minmax(220px, 1fr) minmax(260px, 1.4fr) auto;
  gap: 10px;
  align-items: center;
}

#emojisTab .toolbar input,
#emojisTab .toolbar select,
#emojisTab .toolbar button {
  margin: 0;
}

#emojisTab .toolbar input[type="file"] {
  min-height: 40px;
  padding: 7px 10px;
  background: #fff;
}

#emojiList {
  grid-template-columns: repeat(auto-fill, minmax(154px, 1fr));
  gap: 14px;
  margin-top: 16px;
}

.item-card {
  padding: 15px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
}

.item-card strong {
  display: block;
  margin-bottom: 6px;
}

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

.badge {
  display: inline-flex;
  align-items: center;
  height: 24px;
  padding: 0 8px;
  border-radius: 999px;
  background: var(--primary-soft);
  color: var(--primary-dark);
  font-size: 12px;
  font-weight: 700;
}

.badge.ok {
  background: var(--primary-soft);
  color: var(--primary-dark);
}

.badge.danger {
  background: #fee2e2;
  color: #b91c1c;
}

.software-history {
  display: grid;
  gap: 10px;
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px solid var(--line);
}

.software-history-head,
.software-version-row {
  justify-content: space-between;
}

.software-version-list {
  display: grid;
  gap: 10px;
}

.software-version-row {
  align-items: flex-start;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fff;
}

.software-version-main {
  display: grid;
  gap: 5px;
  min-width: 0;
}

.software-version-main p {
  margin: 2px 0 0;
  color: #475569;
  line-height: 1.55;
  white-space: pre-wrap;
}

.software-version-actions {
  flex: 0 0 auto;
}

.software-version-actions a {
  color: var(--primary-dark);
  text-decoration: none;
  font-size: 13px;
}

.software-version-actions button[disabled] {
  opacity: .48;
  cursor: not-allowed;
}

.software-version-actions .danger-action {
  border-color: #fecaca;
  color: #b91c1c;
  background: #fff7f7;
}

.software-version-actions .danger-action:hover {
  border-color: #ef4444;
  color: #991b1b;
  background: #fee2e2;
}

.software-version-actions .soft-disabled {
  min-width: 112px;
  color: #64748b;
  background: #f8fafc;
}

#memberList,
#memberAdminList,
#licenseKeyList {
  display: grid;
  gap: 8px;
}

.member-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 120px;
  gap: 10px;
  align-items: center;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fff;
}

.audit-toolbar {
  display: grid;
  grid-template-columns: minmax(260px, 1fr) 140px auto auto;
  gap: 10px;
  align-items: center;
  margin: 2px 0 16px;
}

.audit-table {
  display: grid;
  gap: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
}

.audit-head,
.audit-row {
  display: grid;
  grid-template-columns: minmax(260px, 1.35fr) minmax(190px, .95fr) minmax(160px, .8fr) 92px 154px 92px;
  gap: 12px;
  align-items: center;
}

.audit-head {
  min-height: 44px;
  padding: 0 14px;
  background: #f4fbf9;
  color: #45615d;
  font-size: 12px;
  font-weight: 700;
}

.audit-row {
  min-height: 72px;
  padding: 12px 14px;
  border-top: 1px solid var(--line);
  color: #334155;
  font-size: 13px;
}

.audit-row strong,
.audit-file strong {
  display: block;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 13px;
}

.audit-row p {
  margin: 4px 0 0;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: var(--muted);
  font-size: 12px;
}

.audit-file {
  min-width: 0;
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr);
  gap: 10px;
  align-items: center;
}

.file-kind {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  background: var(--primary-soft);
  color: var(--primary-dark);
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
}

.audit-row a {
  color: var(--primary-dark);
  text-decoration: none;
  font-weight: 700;
}

.share-report-head,
.share-report-row {
  grid-template-columns: minmax(190px, 1fr) minmax(240px, 1.1fr) minmax(160px, .8fr) minmax(120px, .65fr) 150px minmax(180px, .9fr);
}

.audit-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

.audit-actions button {
  height: 32px;
  padding: 0 10px;
  font-size: 12px;
}

.audit-pager {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 10px;
  margin-top: 14px;
}

.audit-pager span {
  min-width: 96px;
  text-align: center;
  color: var(--muted);
  font-size: 13px;
}

.emoji-admin-card {
  min-width: 0;
  display: grid;
  grid-template-rows: 132px auto auto;
  gap: 10px;
  padding: 10px;
  border-radius: 14px;
  transition: border-color .18s ease, transform .18s ease, box-shadow .18s ease;
}

.emoji-admin-card:hover {
  border-color: rgba(10, 168, 137, .34);
  box-shadow: 0 14px 30px rgba(15, 77, 69, .08);
  transform: translateY(-1px);
}

.emoji-thumb {
  display: grid;
  place-items: center;
  min-width: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 12px;
  background:
    linear-gradient(135deg, rgba(10, 168, 137, .06), rgba(47, 128, 237, .05)),
    #f8fafc;
}

.emoji-thumb img {
  max-width: 100%;
  max-height: 116px;
  width: auto;
  height: auto;
  object-fit: contain;
  display: block;
}

.emoji-card-body {
  min-width: 0;
  display: grid;
  gap: 7px;
}

.emoji-card-body strong {
  min-width: 0;
  margin: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 14px;
}

.emoji-card-body .meta {
  min-width: 0;
  flex-wrap: wrap;
  gap: 6px;
}

.emoji-card-actions {
  min-height: 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.emoji-card-actions button {
  height: 32px;
  padding: 0 12px;
  color: #b91c1c;
  border-color: #fecaca;
  background: #fff7f7;
}

.empty-card {
  grid-column: 1 / -1;
}

.item-card a {
  display: inline-flex;
  align-items: center;
  height: 34px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--primary-dark);
  text-decoration: none;
}

dialog {
  width: min(520px, calc(100vw - 32px));
  border: 0;
  border-radius: 14px;
  padding: 0;
  box-shadow: 0 24px 70px rgba(15, 23, 42, .2);
}

dialog::backdrop {
  background: rgba(15, 23, 42, .28);
}

.dialog-form {
  display: grid;
  gap: 12px;
  padding: 20px;
}

.dialog-form menu {
  display: flex;
  justify-content: end;
  gap: 10px;
  padding: 0;
  margin: 0;
}

@media (max-width: 1180px) {
  html { min-width: 0; }
  #app { width: min(100vw - 20px, 980px); }
  .auth-shell { grid-template-columns: 1fr; }
  .auth-intro { max-width: none; padding-left: 0; }
  .preview-panel,
  .trust-grid { width: 100%; max-width: 520px; }
  .dashboard {
    grid-template-columns: 190px minmax(0, 1fr);
  }
  .admin-overview {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 860px) {
  body { background: #f7fbfa; }
  .hero,
  .dashboard,
  .content-topbar { display: block; }
  .dashboard { min-height: auto; }
  .sidebar {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }
  .form-grid,
  .settings-grid,
  .split,
  .admin-overview { grid-template-columns: 1fr; }
  .hero-copy { min-width: 0; text-align: left; }
  .auth-actions { grid-template-columns: 1fr; }
}
