:root {
  --bg: #f3f6f4;
  --panel: #ffffff;
  --ink: #162422;
  --muted: #687773;
  --subtle: #8a9692;
  --line: #dbe4e0;
  --line-strong: #c7d5cf;
  --navy: #153c45;
  --teal: #0f7a72;
  --mint: #dff2ed;
  --amber: #c77718;
  --amber-soft: #fff1dc;
  --red: #c94032;
  --red-soft: #ffe6e1;
  --green: #1d7d4f;
  --green-soft: #e4f4e9;
  --blue: #286f9b;
  --blue-soft: #e3f0f7;
  --purple: #7a5a9e;
  --purple-soft: #eee6f5;
  --shadow: 0 18px 44px rgba(22, 36, 34, .08);
  --radius: 8px;
}

* {
  box-sizing: border-box;
}

html {
  min-width: 360px;
  background: var(--bg);
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--ink);
  font-family: "PingFang SC", "Noto Sans SC", "Microsoft YaHei", system-ui, sans-serif;
  letter-spacing: 0;
}

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

button {
  cursor: pointer;
}

.app-shell {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 248px minmax(0, 1fr) 348px;
}

.sidebar {
  position: sticky;
  top: 0;
  height: 100vh;
  padding: 18px 14px;
  background: #112f36;
  color: #f4faf8;
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 6px 8px 16px;
  border-bottom: 1px solid rgba(255,255,255,.14);
}

.brand-mark {
  width: 42px;
  height: 42px;
  border-radius: 8px;
  display: grid;
  place-items: center;
  background: #f4c57a;
  color: #112f36;
  font-weight: 900;
}

.brand strong,
.brand span {
  display: block;
}

.brand span {
  margin-top: 2px;
  font-size: 12px;
  color: rgba(244,250,248,.68);
}

.nav {
  display: grid;
  gap: 4px;
}

.nav-item {
  width: 100%;
  min-height: 42px;
  padding: 0 10px;
  border: 0;
  border-radius: 7px;
  color: rgba(244,250,248,.76);
  background: transparent;
  display: grid;
  grid-template-columns: 28px 1fr auto;
  align-items: center;
  text-align: left;
  transition: background .16s ease, color .16s ease;
}

.nav-item:hover {
  background: rgba(255,255,255,.08);
  color: #fff;
}

.nav-item.active {
  background: #f4faf8;
  color: #112f36;
  font-weight: 800;
}

.nav-icon {
  width: 24px;
  height: 24px;
  border-radius: 7px;
  display: grid;
  place-items: center;
  color: inherit;
}

.nav-item em {
  min-width: 22px;
  padding: 1px 7px;
  border-radius: 999px;
  background: #f4c57a;
  color: #112f36;
  font-size: 11px;
  font-style: normal;
  text-align: center;
  font-weight: 800;
}

.side-note {
  margin-top: auto;
  padding: 14px;
  border-radius: var(--radius);
  background: rgba(255,255,255,.09);
  border: 1px solid rgba(255,255,255,.12);
}

.side-note span,
.side-note strong {
  display: block;
}

.side-note span {
  font-size: 12px;
  color: rgba(244,250,248,.68);
}

.side-note strong {
  margin-top: 6px;
  line-height: 1.5;
  font-size: 13px;
}

.main {
  min-width: 0;
  padding: 20px 24px 32px;
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.crumb {
  color: var(--muted);
  font-size: 13px;
}

h1,
h2,
h3,
p {
  margin: 0;
}

h1 {
  margin-top: 4px;
  font-size: 26px;
  line-height: 1.18;
  font-weight: 850;
}

.top-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.search {
  width: 300px;
  height: 40px;
  border-radius: 8px;
  border: 1px solid var(--line);
  background: #fff;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0 12px;
}

.search input {
  width: 100%;
  border: 0;
  outline: 0;
  color: var(--ink);
}

.icon-btn,
.primary-btn,
.secondary-btn,
.ghost-btn,
.danger-btn,
.tiny-btn {
  border-radius: 7px;
  border: 1px solid transparent;
  min-height: 38px;
  padding: 0 14px;
  font-weight: 760;
  transition: transform .16s ease, box-shadow .16s ease, background .16s ease;
}

.icon-btn {
  width: 40px;
  padding: 0;
  background: #fff;
  border-color: var(--line);
  color: var(--navy);
}

.primary-btn {
  background: var(--teal);
  color: #fff;
}

.secondary-btn {
  background: var(--navy);
  color: #fff;
}

.ghost-btn {
  background: #fff;
  color: var(--navy);
  border-color: var(--line);
}

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

.tiny-btn {
  min-height: 30px;
  padding: 0 10px;
  background: #f7faf8;
  border-color: var(--line);
  color: var(--navy);
  font-size: 12px;
}

.primary-btn:hover,
.secondary-btn:hover,
.ghost-btn:hover,
.danger-btn:hover,
.tiny-btn:hover,
.icon-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 18px rgba(22, 36, 34, .12);
}

.user-chip {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 5px 9px 5px 5px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.user-chip > span {
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  border-radius: 7px;
  background: var(--mint);
  color: var(--teal);
  font-weight: 900;
}

.user-chip strong,
.user-chip small {
  display: block;
}

.user-chip strong {
  font-size: 13px;
}

.user-chip small {
  color: var(--muted);
  font-size: 11px;
}

.notice-strip {
  margin: 18px 0;
  min-height: 44px;
  padding: 12px 14px;
  border-radius: var(--radius);
  border: 1px solid #e6d1ad;
  background: #fff8ec;
  display: flex;
  align-items: center;
  gap: 10px;
  color: #6b4b17;
}

.notice-strip strong {
  flex: 0 0 auto;
}

.view-root {
  display: grid;
  gap: 18px;
}

.section-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}

.section-head h2 {
  font-size: 18px;
}

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

.grid {
  display: grid;
  gap: 14px;
}

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

.grid.two {
  grid-template-columns: minmax(0, 1.25fr) minmax(320px, .75fr);
}

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

.card {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.metric-card {
  padding: 16px;
  min-height: 122px;
  display: grid;
  align-content: space-between;
  position: relative;
  overflow: hidden;
}

.metric-card::after {
  content: "";
  position: absolute;
  right: 14px;
  top: 14px;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: var(--mint);
  opacity: .72;
}

.metric-card.warn::after {
  background: var(--amber-soft);
}

.metric-card.danger::after {
  background: var(--red-soft);
}

.metric-label {
  color: var(--muted);
  font-size: 13px;
  font-weight: 720;
}

.metric-value {
  font-size: 30px;
  font-weight: 900;
}

.metric-foot {
  color: var(--subtle);
  font-size: 12px;
}

.metric-card.warn .metric-value {
  color: var(--amber);
}

.metric-card.danger .metric-value {
  color: var(--red);
}

.work-card {
  padding: 18px;
}

.work-list {
  display: grid;
  gap: 10px;
  margin-top: 14px;
}

.work-item {
  min-height: 72px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  display: grid;
  grid-template-columns: 10px 1fr auto;
  gap: 12px;
  align-items: center;
  background: #fbfdfc;
}

.work-dot {
  width: 10px;
  height: 42px;
  border-radius: 999px;
  background: var(--teal);
}

.work-item.warn .work-dot {
  background: var(--amber);
}

.work-item.danger .work-dot {
  background: var(--red);
}

.work-item strong {
  display: block;
  font-size: 14px;
}

.work-item span {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  font-size: 12px;
}

.workflow-card {
  overflow: hidden;
  min-height: 280px;
  display: grid;
  grid-template-rows: 1fr auto;
}

.hero-copy {
  padding: 20px;
}

.hero-copy h2 {
  font-size: 20px;
}

.hero-copy p {
  margin-top: 8px;
  color: var(--muted);
  line-height: 1.6;
}

.route-strip {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  padding: 0 20px 18px;
}

.route-strip span {
  min-height: 78px;
  border-radius: 8px;
  background-color: #dfe9e5;
  background-size: cover;
  background-position: center;
  border: 1px solid var(--line);
}

.mini-flow {
  margin-top: 18px;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
}

.flow-step {
  padding: 10px;
  min-height: 86px;
  border-radius: 8px;
  border: 1px solid var(--line);
  background: #fbfdfc;
}

.flow-step strong {
  display: block;
  font-size: 13px;
}

.flow-step span {
  display: block;
  margin-top: 5px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.45;
}

.toolbar {
  padding: 12px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.toolbar input,
.toolbar select {
  height: 36px;
  border: 1px solid var(--line);
  border-radius: 7px;
  padding: 0 10px;
  background: #fbfdfc;
  color: var(--ink);
}

.toolbar input {
  min-width: 220px;
}

.segment {
  display: inline-flex;
  padding: 3px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f6faf8;
}

.segment button {
  min-height: 30px;
  padding: 0 10px;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: var(--muted);
  font-weight: 760;
}

.segment button.active {
  background: #fff;
  color: var(--teal);
  box-shadow: 0 3px 9px rgba(22, 36, 34, .08);
}

.table-card {
  overflow: hidden;
}

table {
  width: 100%;
  border-collapse: collapse;
}

th,
td {
  padding: 13px 14px;
  text-align: left;
  border-bottom: 1px solid #eef3f1;
  vertical-align: middle;
  font-size: 13px;
}

th {
  color: #50605c;
  background: #f8fbfa;
  font-weight: 850;
}

tbody tr:hover {
  background: #fcf8f0;
}

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

.strong {
  font-weight: 850;
}

.muted {
  color: var(--muted);
}

.subtext {
  display: block;
  margin-top: 4px;
  color: var(--subtle);
  font-size: 12px;
}

.tag {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 2px 8px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 800;
  border: 1px solid transparent;
  white-space: nowrap;
}

.tag.pending,
.tag.warn {
  color: #8d580d;
  background: var(--amber-soft);
  border-color: #f3d4a2;
}

.tag.ready,
.tag.ok {
  color: var(--green);
  background: var(--green-soft);
  border-color: #c8e8d2;
}

.tag.voyaging,
.tag.info {
  color: var(--blue);
  background: var(--blue-soft);
  border-color: #c6dfed;
}

.tag.done {
  color: var(--teal);
  background: var(--mint);
  border-color: #c6e6df;
}

.tag.bad {
  color: var(--red);
  background: var(--red-soft);
  border-color: #ffc7bd;
}

.tag.neutral {
  color: #51615d;
  background: #eef3f1;
  border-color: #dce6e2;
}

.action-row {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}

.schedule-board {
  display: grid;
  grid-template-columns: 170px repeat(7, minmax(128px, 1fr));
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  box-shadow: var(--shadow);
}

.schedule-cell {
  min-height: 104px;
  padding: 10px;
  border-right: 1px solid #edf3f1;
  border-bottom: 1px solid #edf3f1;
}

.schedule-cell.head {
  min-height: 52px;
  background: #f8fbfa;
  font-weight: 850;
  color: #50605c;
}

.boat-head {
  background: #fbfdfc;
}

.slot {
  display: grid;
  gap: 5px;
  padding: 8px;
  border-radius: 8px;
  background: #f7fbfa;
  border: 1px solid var(--line);
}

.slot + .slot {
  margin-top: 8px;
}

.slot.warn {
  background: #fff8ec;
  border-color: #f0d3a5;
}

.slot.bad {
  background: #fff0ed;
  border-color: #ffc7bd;
}

.slot strong {
  font-size: 12px;
}

.slot span {
  color: var(--muted);
  font-size: 11px;
}

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

.product-card {
  overflow: hidden;
}

.product-thumb {
  height: 132px;
  background-size: cover;
  background-position: center;
  border-bottom: 1px solid var(--line);
}

.product-body {
  padding: 14px;
}

.product-body h3 {
  font-size: 15px;
}

.product-meta {
  margin-top: 10px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}

.product-price {
  font-size: 18px;
  font-weight: 900;
  color: var(--teal);
}

.kanban {
  display: grid;
  grid-template-columns: repeat(4, minmax(190px, 1fr));
  gap: 14px;
  overflow-x: auto;
}

.kanban-col {
  padding: 12px;
  min-height: 380px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.kanban-col h3 {
  font-size: 14px;
  display: flex;
  justify-content: space-between;
}

.task-card {
  margin-top: 10px;
  padding: 12px;
  border-radius: 8px;
  border: 1px solid var(--line);
  background: #fbfdfc;
}

.task-card.bad {
  background: #fff0ed;
  border-color: #ffc7bd;
}

.task-card strong {
  display: block;
}

.task-card span {
  display: block;
  margin-top: 6px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.45;
}

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

.fleet-card {
  padding: 14px;
  display: grid;
  grid-template-columns: 84px 1fr;
  gap: 14px;
}

.boat-image {
  width: 84px;
  height: 84px;
  border-radius: 8px;
  background-size: cover;
  background-position: center;
}

.compliance {
  display: flex;
  gap: 6px;
  margin-top: 8px;
  flex-wrap: wrap;
}

.audit-list {
  display: grid;
  gap: 12px;
}

.audit-item {
  display: grid;
  grid-template-columns: 74px 1fr auto;
  gap: 12px;
  align-items: center;
  padding: 12px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.audit-thumb {
  width: 74px;
  height: 58px;
  border-radius: 8px;
  background-size: cover;
  background-position: center;
}

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

.setting-card {
  padding: 16px;
}

.setting-card h3 {
  font-size: 15px;
}

.setting-card p {
  margin-top: 8px;
  color: var(--muted);
  line-height: 1.55;
  font-size: 13px;
}

.context-panel {
  position: sticky;
  top: 0;
  height: 100vh;
  padding: 20px;
  overflow-y: auto;
  background: #fbfdfc;
  border-left: 1px solid var(--line);
}

.context-panel.is-open {
  transform: translateX(0);
}

.panel-close {
  display: none;
  position: absolute;
  top: 12px;
  right: 12px;
  width: 34px;
  height: 34px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: var(--navy);
  font-size: 22px;
}

.panel-card {
  padding: 16px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.panel-card + .panel-card {
  margin-top: 14px;
}

.panel-card h2 {
  font-size: 18px;
}

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

.panel-form {
  margin-top: 14px;
  display: grid;
  gap: 12px;
}

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

.form-field {
  display: grid;
  gap: 7px;
  font-size: 13px;
  color: var(--ink);
}

.form-field span,
.checkbox-field span {
  font-weight: 700;
}

.form-field input,
.form-field select,
.form-field textarea {
  width: 100%;
  min-height: 38px;
  padding: 9px 10px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: #fbfdfc;
  color: var(--ink);
}

.form-field textarea {
  min-height: 92px;
  resize: vertical;
}

.checkbox-field {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
}

.checkbox-field input {
  width: 16px;
  height: 16px;
  margin: 0;
}

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

.panel-error {
  margin-top: 12px;
  padding: 10px 12px;
  border-radius: 7px;
  border: 1px solid #ffc7bd;
  background: #fff0ed;
  color: var(--red);
  font-size: 13px;
  line-height: 1.5;
}

.kv {
  display: grid;
  gap: 10px;
  margin-top: 14px;
}

.kv div {
  display: grid;
  grid-template-columns: 88px 1fr;
  gap: 10px;
  font-size: 13px;
}

.kv span {
  color: var(--muted);
}

.timeline {
  margin-top: 12px;
  display: grid;
  gap: 10px;
}

.timeline-item {
  display: grid;
  grid-template-columns: 10px 1fr;
  gap: 10px;
}

.timeline-dot {
  width: 10px;
  height: 10px;
  margin-top: 5px;
  border-radius: 50%;
  background: var(--teal);
}

.timeline-item p {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.45;
}

.toast {
  position: fixed;
  left: 50%;
  bottom: 24px;
  z-index: 20;
  transform: translate(-50%, 20px);
  opacity: 0;
  pointer-events: none;
  padding: 10px 14px;
  border-radius: 8px;
  background: #112f36;
  color: #fff;
  box-shadow: var(--shadow);
  transition: opacity .2s ease, transform .2s ease;
}

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

@media (max-width: 1240px) {
  .app-shell {
    grid-template-columns: 224px minmax(0, 1fr);
  }

  .context-panel {
    position: fixed;
    z-index: 12;
    right: 0;
    top: 0;
    width: min(380px, 92vw);
    transform: translateX(105%);
    transition: transform .2s ease;
    box-shadow: -24px 0 60px rgba(22,36,34,.18);
  }

  .panel-close {
    display: block;
  }

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

  .catalog-grid,
  .grid.three {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

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

@media (max-width: 880px) {
  .app-shell {
    display: block;
  }

  .sidebar {
    position: static;
    height: auto;
  }

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

  .topbar,
  .top-actions,
  .notice-strip {
    align-items: stretch;
    flex-direction: column;
  }

  .search {
    width: 100%;
  }

  .grid.two,
  .grid.metrics,
  .catalog-grid,
  .fleet-grid,
  .settings-grid,
  .workflow-card {
    grid-template-columns: 1fr;
  }

  .route-strip {
    grid-template-columns: 1fr;
  }

  .mini-flow {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.auth-gate {
  position: fixed;
  inset: 0;
  z-index: 24;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: rgba(17, 47, 54, .52);
  backdrop-filter: blur(8px);
}

.auth-gate.is-open {
  display: flex;
}

.auth-card {
  width: min(980px, 100%);
  min-height: 560px;
  display: grid;
  grid-template-columns: minmax(280px, .92fr) minmax(0, 1.08fr);
  overflow: hidden;
  border-radius: 8px;
  border: 1px solid rgba(255,255,255,.24);
  box-shadow: 0 30px 60px rgba(10, 21, 24, .22);
  background: #fff;
}

.auth-copy {
  padding: 32px 30px;
  background: #112f36;
  color: #f4faf8;
  display: grid;
  align-content: start;
  gap: 18px;
}

.auth-eyebrow {
  display: inline-flex;
  width: fit-content;
  min-height: 28px;
  padding: 0 10px;
  align-items: center;
  border-radius: 999px;
  background: rgba(255,255,255,.12);
  color: rgba(244,250,248,.82);
  font-size: 12px;
  font-weight: 700;
}

.auth-copy h2 {
  font-size: 28px;
  line-height: 1.18;
}

.auth-copy p {
  color: rgba(244,250,248,.78);
  line-height: 1.7;
}

.auth-points {
  display: grid;
  gap: 12px;
}

.auth-points div {
  padding: 14px;
  border-radius: 8px;
  border: 1px solid rgba(255,255,255,.12);
  background: rgba(255,255,255,.06);
}

.auth-points strong,
.auth-points span {
  display: block;
}

.auth-points strong {
  font-size: 13px;
}

.auth-points span {
  margin-top: 6px;
  color: rgba(244,250,248,.72);
  font-size: 13px;
  line-height: 1.6;
}

.auth-panel {
  padding: 32px 30px;
  display: grid;
  align-content: center;
  gap: 16px;
  background: #fff;
}

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

.auth-header h3 {
  font-size: 22px;
}

.auth-header p {
  margin-top: 8px;
  color: var(--muted);
  line-height: 1.65;
}

.auth-form {
  display: grid;
  gap: 12px;
}

.auth-field {
  display: grid;
  gap: 8px;
}

.auth-field label {
  font-size: 13px;
  font-weight: 700;
  color: var(--navy);
}

.auth-field input {
  width: 100%;
  min-height: 44px;
  padding: 0 12px;
  border-radius: 8px;
  border: 1px solid var(--line-strong);
  outline: 0;
  color: var(--ink);
  background: #fff;
}

.auth-field input:focus {
  border-color: var(--teal);
  box-shadow: 0 0 0 3px rgba(15, 122, 114, .14);
}

.auth-field input[readonly] {
  background: #f7faf8;
  color: var(--muted);
}

.auth-alert {
  min-height: 42px;
  padding: 11px 12px;
  border-radius: 8px;
  border: 1px solid var(--line);
  background: #f7faf8;
  color: var(--muted);
  line-height: 1.6;
}

.auth-alert.is-error {
  border-color: #ffd1c9;
  background: var(--red-soft);
  color: var(--red);
}

.auth-help {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.7;
}

.auth-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.auth-actions .primary-btn,
.auth-actions .ghost-btn {
  min-width: 120px;
}

.auth-empty {
  padding: 28px 22px;
}

.auth-empty p {
  margin-top: 10px;
  color: var(--muted);
  line-height: 1.65;
}

@media (max-width: 880px) {
  .auth-gate {
    padding: 16px;
  }

  .auth-card {
    min-height: auto;
    grid-template-columns: 1fr;
  }

  .auth-copy,
  .auth-panel {
    padding: 24px 20px;
  }
}
