/* Dream Tapir · 小程序中心 · 共享样式（无构建步骤） */

:root {
  --bg: #f4f6fc;
  --bg-soft: #eef1f9;
  --surface: #ffffff;
  --surface-muted: #f7f8fd;
  --ink: #0c1324;
  --ink-2: #253049;
  --muted: #667089;
  --muted-2: #8b94ab;
  --line: #e4e8f2;
  --line-strong: #d3d9e8;
  --brand: #4c63ff;
  --brand-2: #7b5cff;
  --brand-soft: #ecefff;
  --green: #12a06a;
  --green-soft: #e6f7ef;
  --amber: #d98218;
  --amber-soft: #fff4e2;
  --red: #e0464b;
  --red-soft: #ffecec;
  --shadow-sm: 0 1px 2px rgba(15, 23, 42, 0.04), 0 6px 18px rgba(15, 23, 42, 0.05);
  --shadow-md: 0 12px 32px rgba(15, 23, 42, 0.09);
  --radius: 20px;
  --radius-sm: 13px;
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC",
    "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans SC", sans-serif;
  --mono: "SFMono-Regular", "JetBrains Mono", Consolas, "Liberation Mono", monospace;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--font);
  color: var(--ink);
  background:
    radial-gradient(900px 500px at 8% -8%, #e7ebff 0%, rgba(231, 235, 255, 0) 62%),
    radial-gradient(760px 460px at 100% 0%, #f2e9ff 0%, rgba(242, 233, 255, 0) 58%),
    var(--bg);
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
  text-decoration: none;
}

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

code,
.mono {
  font-family: var(--mono);
}

.wrap {
  width: min(1160px, calc(100% - 40px));
  margin: 0 auto;
}

/* ---------- Nav ---------- */

.nav {
  position: sticky;
  top: 0;
  z-index: 40;
  backdrop-filter: saturate(180%) blur(16px);
  -webkit-backdrop-filter: saturate(180%) blur(16px);
  background: rgba(244, 246, 252, 0.82);
  border-bottom: 1px solid rgba(228, 232, 242, 0.9);
}

.nav-inner {
  display: flex;
  align-items: center;
  gap: 16px;
  height: 66px;
}

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

.brand-mark {
  width: 36px;
  height: 36px;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--brand), var(--brand-2));
  box-shadow: 0 8px 20px rgba(76, 99, 255, 0.28);
  display: grid;
  place-items: center;
  color: #fff;
  font-weight: 800;
  font-size: 15px;
  letter-spacing: -0.5px;
  flex: none;
}

.brand-name {
  font-size: 15px;
  font-weight: 700;
  line-height: 1.2;
  white-space: nowrap;
}

.brand-sub {
  font-size: 11px;
  color: var(--muted-2);
  margin-top: 2px;
  white-space: nowrap;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-left: auto;
  flex-wrap: wrap;
}

.nav-link {
  padding: 8px 13px;
  border-radius: 10px;
  font-size: 13px;
  color: var(--muted);
  transition: background 0.16s ease, color 0.16s ease;
}

.nav-link:hover {
  color: var(--ink);
  background: rgba(255, 255, 255, 0.8);
}

.nav-link.active {
  color: var(--brand);
  background: var(--brand-soft);
  font-weight: 600;
}

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  height: 42px;
  padding: 0 18px;
  border-radius: 12px;
  border: 1px solid transparent;
  background: var(--surface);
  color: var(--ink);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: transform 0.14s ease, box-shadow 0.16s ease, background 0.16s ease,
    border-color 0.16s ease;
  white-space: nowrap;
}

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

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

.btn.primary {
  background: linear-gradient(135deg, var(--brand), var(--brand-2));
  color: #fff;
  box-shadow: 0 10px 24px rgba(76, 99, 255, 0.26);
}

.btn.ghost {
  background: var(--surface);
  border-color: var(--line-strong);
}

.btn.ghost:hover {
  border-color: var(--brand);
  box-shadow: var(--shadow-sm);
}

.btn.soft {
  background: var(--brand-soft);
  color: var(--brand);
}

.btn.small {
  height: 34px;
  padding: 0 13px;
  font-size: 12px;
  border-radius: 10px;
}

.btn.danger {
  background: var(--red-soft);
  color: var(--red);
}

.btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

.icon-btn {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: var(--surface);
  cursor: pointer;
  color: var(--muted);
  transition: color 0.15s ease, border-color 0.15s ease;
}

.icon-btn:hover {
  color: var(--brand);
  border-color: var(--brand);
}

/* ---------- Hero ---------- */

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(320px, 0.75fr);
  gap: 26px;
  padding: 52px 0 30px;
  align-items: stretch;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.85);
  border: 1px solid var(--line);
  color: var(--muted);
  font-size: 12px;
  font-weight: 600;
}

.eyebrow .dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--green);
}

.hero h1 {
  margin: 18px 0 12px;
  font-size: clamp(34px, 5vw, 56px);
  line-height: 1.04;
  letter-spacing: -2px;
  font-weight: 800;
}

.hero h1 .grad {
  background: linear-gradient(120deg, var(--brand), var(--brand-2) 70%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero p.lead {
  margin: 0;
  max-width: 560px;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.75;
}

.hero-actions {
  display: flex;
  gap: 10px;
  margin-top: 24px;
  flex-wrap: wrap;
}

.source-line {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 20px;
  font-size: 12px;
  color: var(--muted);
  flex-wrap: wrap;
}

.source-line code {
  padding: 6px 10px;
  border-radius: 9px;
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid var(--line);
  color: var(--ink-2);
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.hero-panel {
  background: rgba(255, 255, 255, 0.86);
  border: 1px solid rgba(228, 232, 242, 0.95);
  border-radius: 26px;
  box-shadow: var(--shadow-sm);
  padding: 22px;
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.stat-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}

.stat {
  background: var(--surface-muted);
  border-radius: 14px;
  padding: 12px;
}

.stat .num {
  font-size: 22px;
  font-weight: 800;
  letter-spacing: -0.8px;
}

.stat .label {
  margin-top: 3px;
  font-size: 11px;
  color: var(--muted-2);
}

.donut-wrap {
  display: flex;
  align-items: center;
  gap: 16px;
  border-top: 1px dashed var(--line);
  padding-top: 16px;
}

.donut {
  width: 112px;
  height: 112px;
  border-radius: 50%;
  flex: none;
  position: relative;
  background: var(--bg-soft);
}

.donut::after {
  content: "";
  position: absolute;
  inset: 17px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.94);
}

.donut-center {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  z-index: 1;
  text-align: center;
  line-height: 1.15;
}

.donut-center strong {
  display: block;
  font-size: 15px;
  letter-spacing: -0.4px;
}

.donut-center span {
  font-size: 10px;
  color: var(--muted-2);
}

.legend {
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-width: 0;
  flex: 1;
}

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

.legend-swatch {
  width: 8px;
  height: 8px;
  border-radius: 3px;
  flex: none;
}

.legend-item .name {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  flex: 1;
}

.legend-item .val {
  color: var(--ink-2);
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}

/* ---------- Catalog toolbar ---------- */

.section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  padding-bottom: 14px;
}

.section-head h2 {
  margin: 0;
  font-size: 22px;
  letter-spacing: -0.6px;
}

.section-head p {
  margin: 5px 0 0;
  font-size: 12px;
  color: var(--muted);
}

.toolbar {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 18px;
}

.search {
  display: flex;
  align-items: center;
  gap: 9px;
  height: 44px;
  padding: 0 14px;
  border-radius: 13px;
  background: var(--surface);
  border: 1px solid var(--line);
  min-width: 260px;
  flex: 1;
  max-width: 420px;
  transition: border-color 0.16s ease, box-shadow 0.16s ease;
}

.search:focus-within {
  border-color: var(--brand);
  box-shadow: 0 0 0 4px rgba(76, 99, 255, 0.1);
}

.search input {
  border: 0;
  outline: 0;
  background: transparent;
  width: 100%;
  font-size: 14px;
}

.search input::placeholder {
  color: var(--muted-2);
}

.tabs {
  display: flex;
  gap: 6px;
  padding: 4px;
  border-radius: 13px;
  background: rgba(255, 255, 255, 0.7);
  border: 1px solid var(--line);
}

.tab {
  border: 0;
  background: transparent;
  padding: 8px 13px;
  border-radius: 9px;
  font-size: 12px;
  font-weight: 600;
  color: var(--muted);
  cursor: pointer;
  white-space: nowrap;
}

.tab.active {
  background: var(--ink);
  color: #fff;
}

.tab .count {
  opacity: 0.6;
  margin-left: 4px;
  font-size: 10px;
}

.spacer {
  flex: 1;
}

.demo-banner {
  display: none;
  align-items: center;
  gap: 10px;
  padding: 11px 14px;
  border-radius: 13px;
  background: var(--amber-soft);
  border: 1px solid #f2ddba;
  color: #8a5a12;
  font-size: 12px;
  margin-bottom: 16px;
}

.demo-banner.show {
  display: flex;
}

/* ---------- App grid ---------- */

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(248px, 1fr));
  gap: 14px;
}

.app-card {
  position: relative;
  display: flex;
  flex-direction: column;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 16px;
  min-height: 218px;
  cursor: pointer;
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

.app-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
  border-color: #cfd7f0;
}

.app-top {
  display: flex;
  align-items: flex-start;
  gap: 10px;
}

.app-icon {
  width: 52px;
  height: 52px;
  border-radius: 16px;
  display: grid;
  place-items: center;
  color: #fff;
  font-weight: 800;
  font-size: 21px;
  flex: none;
  overflow: hidden;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.26);
}

.app-icon img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.badges {
  margin-left: auto;
  display: flex;
  gap: 5px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 8px;
  border-radius: 999px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.1px;
}

.badge.brand {
  color: var(--brand);
  background: var(--brand-soft);
}

.badge.red {
  color: var(--red);
  background: var(--red-soft);
}

.badge.green {
  color: var(--green);
  background: var(--green-soft);
}

.badge.gray {
  color: var(--muted);
  background: var(--bg-soft);
}

.app-card h3 {
  margin: 14px 0 3px;
  font-size: 16px;
  font-weight: 700;
  letter-spacing: -0.3px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.appid {
  font-family: var(--mono);
  font-size: 10.5px;
  color: var(--muted-2);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.notes {
  margin: 10px 0 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.6;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  min-height: 38px;
}

.app-meta {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
  margin-top: 12px;
  font-size: 10.5px;
  color: var(--muted-2);
}

.app-meta .sep {
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: var(--line-strong);
}

.card-actions {
  display: flex;
  gap: 8px;
  margin-top: auto;
  padding-top: 14px;
}

.card-actions .btn {
  flex: 1;
  height: 36px;
  font-size: 12px;
  border-radius: 10px;
}

.card-actions .btn.primary {
  box-shadow: none;
}

/* ---------- Empty ---------- */

.empty {
  grid-column: 1 / -1;
  text-align: center;
  padding: 64px 20px;
  border: 1px dashed var(--line-strong);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.55);
}

.empty .big {
  font-size: 40px;
  line-height: 1;
  margin-bottom: 14px;
}

.empty h3 {
  margin: 0 0 6px;
  font-size: 17px;
}

.empty p {
  margin: 0 auto;
  max-width: 440px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.7;
}

.empty .row {
  display: flex;
  gap: 10px;
  justify-content: center;
  margin-top: 18px;
  flex-wrap: wrap;
}

/* ---------- Deploy ---------- */

.deploy {
  margin: 54px 0 20px;
}

.deploy-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 14px;
}

.deploy-card {
  background: rgba(255, 255, 255, 0.78);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 18px;
}

.deploy-card .step {
  width: 26px;
  height: 26px;
  border-radius: 9px;
  background: var(--ink);
  color: #fff;
  display: grid;
  place-items: center;
  font-size: 12px;
  font-weight: 700;
}

.deploy-card h3 {
  margin: 12px 0 6px;
  font-size: 14px;
}

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

.deploy-card code {
  display: inline-block;
  margin-top: 8px;
  padding: 5px 8px;
  border-radius: 7px;
  background: var(--surface-muted);
  border: 1px solid var(--line);
  font-size: 11px;
  color: var(--ink-2);
  word-break: break-all;
}

/* ---------- Footer ---------- */

.footer {
  border-top: 1px solid var(--line);
  margin-top: 40px;
  padding: 26px 0 42px;
  color: var(--muted-2);
  font-size: 11.5px;
  display: flex;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
}

/* ---------- Modal ---------- */

.modal-mask {
  position: fixed;
  inset: 0;
  z-index: 80;
  background: rgba(12, 19, 36, 0.42);
  backdrop-filter: blur(4px);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.modal-mask.open {
  display: flex;
}

.modal {
  width: min(560px, 100%);
  max-height: calc(100vh - 48px);
  overflow: auto;
  background: var(--surface);
  border-radius: 24px;
  box-shadow: 0 30px 80px rgba(12, 19, 36, 0.28);
  padding: 24px;
  animation: pop 0.18s ease;
}

@keyframes pop {
  from {
    opacity: 0;
    transform: translateY(10px) scale(0.985);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

.modal-head {
  display: flex;
  gap: 14px;
  align-items: center;
}

.modal-head .app-icon {
  width: 62px;
  height: 62px;
  border-radius: 19px;
  font-size: 26px;
}

.modal-head h3 {
  margin: 0 0 4px;
  font-size: 21px;
  letter-spacing: -0.5px;
}

.modal-head .appid {
  font-size: 11px;
}

.modal-close {
  margin-left: auto;
  align-self: flex-start;
}

.kv {
  margin-top: 18px;
  border: 1px solid var(--line);
  border-radius: 16px;
  overflow: hidden;
}

.kv-row {
  display: grid;
  grid-template-columns: 92px 1fr;
  gap: 10px;
  padding: 11px 14px;
  font-size: 12.5px;
  border-bottom: 1px solid var(--line);
}

.kv-row:last-child {
  border-bottom: 0;
}

.kv-row .k {
  color: var(--muted-2);
}

.kv-row .v {
  color: var(--ink-2);
  overflow-wrap: anywhere;
}

.note-box {
  margin-top: 14px;
  padding: 13px 14px;
  border-radius: 14px;
  background: var(--surface-muted);
  border: 1px solid var(--line);
}

.note-box h4 {
  margin: 0 0 6px;
  font-size: 12px;
}

.note-box p {
  margin: 0;
  color: var(--muted);
  font-size: 12.5px;
  line-height: 1.75;
  white-space: pre-wrap;
}

.modal-actions {
  display: flex;
  gap: 10px;
  margin-top: 18px;
}

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

/* ---------- Toast ---------- */

.toast {
  position: fixed;
  left: 50%;
  bottom: 28px;
  transform: translate(-50%, 20px);
  z-index: 120;
  background: rgba(12, 19, 36, 0.9);
  color: #fff;
  font-size: 12.5px;
  padding: 10px 16px;
  border-radius: 999px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease, transform 0.2s ease;
  max-width: calc(100vw - 40px);
}

.toast.show {
  opacity: 1;
  transform: translate(-50%, 0);
}

/* ---------- Admin ---------- */

.page-head {
  padding: 44px 0 26px;
}

.page-head h1 {
  margin: 10px 0 8px;
  font-size: clamp(28px, 4vw, 40px);
  letter-spacing: -1.2px;
  font-weight: 800;
}

.page-head p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.7;
  max-width: 720px;
}

.admin-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin-bottom: 14px;
}

.panel {
  background: rgba(255, 255, 255, 0.86);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 20px;
  box-shadow: var(--shadow-sm);
}

.panel h2 {
  margin: 0 0 4px;
  font-size: 15px;
  letter-spacing: -0.2px;
}

.panel .hint {
  margin: 0 0 14px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.65;
}

.btn-row {
  display: flex;
  gap: 9px;
  flex-wrap: wrap;
}

.field {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-top: 12px;
}

.field label {
  font-size: 11.5px;
  color: var(--muted);
  font-weight: 600;
}

.input,
textarea.input {
  width: 100%;
  border: 1px solid var(--line);
  background: var(--surface);
  border-radius: 10px;
  padding: 9px 11px;
  font-size: 13px;
  outline: 0;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.input:focus,
textarea.input:focus {
  border-color: var(--brand);
  box-shadow: 0 0 0 3px rgba(76, 99, 255, 0.1);
}

textarea.input {
  resize: vertical;
  min-height: 64px;
  line-height: 1.6;
}

.dropzone {
  border: 1.5px dashed var(--line-strong);
  border-radius: 16px;
  padding: 26px 18px;
  text-align: center;
  color: var(--muted);
  font-size: 12.5px;
  line-height: 1.7;
  background: var(--surface-muted);
  cursor: pointer;
  transition: border-color 0.16s ease, background 0.16s ease;
}

.dropzone:hover,
.dropzone.dragging {
  border-color: var(--brand);
  background: var(--brand-soft);
}

.dropzone strong {
  display: block;
  color: var(--ink);
  font-size: 13.5px;
  margin-bottom: 4px;
}

.dropzone .sub {
  font-size: 11.5px;
  color: var(--muted-2);
}

.entries {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.entry {
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 14px;
  background: var(--surface);
}

.entry-head {
  display: flex;
  align-items: center;
  gap: 11px;
}

.entry-head .app-icon {
  width: 42px;
  height: 42px;
  border-radius: 13px;
  font-size: 17px;
}

.entry-title {
  min-width: 0;
  flex: 1;
}

.entry-title strong {
  display: block;
  font-size: 14px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.entry-title span {
  display: block;
  color: var(--muted-2);
  font-family: var(--mono);
  font-size: 10.5px;
  margin-top: 2px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

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

.entry-grid .full {
  grid-column: 1 / -1;
}

.entry-foot {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 12px;
  flex-wrap: wrap;
}

.file-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 9px;
  border-radius: 8px;
  background: var(--surface-muted);
  border: 1px solid var(--line);
  font-size: 11px;
  color: var(--muted);
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.file-chip.ok {
  background: var(--green-soft);
  border-color: #bfe8d5;
  color: var(--green);
}

.checkbox {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  color: var(--ink-2);
  cursor: pointer;
  user-select: none;
}

.checkbox input {
  accent-color: var(--brand);
  width: 15px;
  height: 15px;
}

.table-wrap {
  overflow: auto;
  border: 1px solid var(--line);
  border-radius: 14px;
}

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 12px;
  min-width: 560px;
}

th,
td {
  text-align: left;
  padding: 10px 12px;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}

th {
  background: var(--surface-muted);
  color: var(--muted);
  font-weight: 600;
  font-size: 11px;
  letter-spacing: 0.2px;
}

tr:last-child td {
  border-bottom: 0;
}

td code {
  font-size: 11px;
  color: var(--ink-2);
  overflow-wrap: anywhere;
}

.code-preview {
  margin-top: 12px;
  background: #0e1526;
  color: #dbe4ff;
  border-radius: 14px;
  padding: 16px;
  font-family: var(--mono);
  font-size: 11.5px;
  line-height: 1.7;
  overflow: auto;
  max-height: 360px;
  white-space: pre;
}

.status-line {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 12px;
  font-size: 12px;
  color: var(--muted);
  flex-wrap: wrap;
}

.status-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--muted-2);
}

.status-dot.ok {
  background: var(--green);
}

.status-dot.err {
  background: var(--red);
}

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

/* ---------- Responsive ---------- */

@media (max-width: 900px) {
  .hero {
    grid-template-columns: 1fr;
    padding-top: 38px;
  }

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

@media (max-width: 620px) {
  .wrap {
    width: calc(100% - 28px);
  }

  .nav-inner {
    height: auto;
    padding: 10px 0;
    flex-wrap: wrap;
  }

  .brand-sub {
    display: none;
  }

  .nav-links {
    width: 100%;
    margin-left: 0;
    overflow-x: auto;
    padding-bottom: 2px;
  }

  .hero h1 {
    letter-spacing: -1.2px;
  }

  .stat-row {
    grid-template-columns: repeat(3, 1fr);
  }

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

  .app-card {
    padding: 12px;
    min-height: 200px;
    border-radius: 17px;
  }

  .app-icon {
    width: 44px;
    height: 44px;
    border-radius: 13px;
    font-size: 18px;
  }

  .app-card h3 {
    font-size: 14px;
  }

  .notes {
    display: none;
  }

  .card-actions .btn {
    font-size: 11px;
  }

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

  .modal {
    padding: 18px;
  }
}
