:root {
  --yellow: #ffdd00;
  --yellow-soft: #fff4b0;
  --ink: #171717;
  --muted: #6f6f6b;
  --faint: #9a9a96;
  --line: #ececea;
  --surface: #f5f5f3;
  --soft: #f7f7f5;
  --bubble: #f3f3f1;
  --white: #fff;
  --danger: #9f2d2d;
  --ok: #146c36;
  --radius: 22px;
  --shadow: 0 10px 30px rgba(23, 23, 23, 0.04);
}

* { box-sizing: border-box; }
html, body { height: 100%; }
body {
  margin: 0;
  background: var(--surface);
  color: var(--ink);
  font-family: Manrope, "Segoe UI", Helvetica, Arial, sans-serif;
  padding: 14px;
}
button, input, select, textarea { font: inherit; color: inherit; }
a { color: inherit; }

.shell {
  height: calc(100vh - 28px);
  display: grid;
  grid-template-columns: 252px minmax(0, 1fr);
  background: var(--white);
  border-radius: 28px;
  overflow: hidden;
  box-shadow: var(--shadow);
}
.sidebar {
  display: flex;
  flex-direction: column;
  width: 252px;
  min-width: 252px;
  min-height: 0;
  padding: 22px 14px 16px;
  border-right: 1px solid var(--line);
}
.brand {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0 10px;
  text-decoration: none;
}
.brand-name { font-weight: 800; letter-spacing: -0.05em; font-size: 22px; }
.brand-go {
  background: var(--yellow);
  border-radius: 7px;
  font-weight: 800;
  font-size: 13px;
  line-height: 1;
  padding: 5px 6px 4px;
  letter-spacing: -0.04em;
}
.brand-caption { margin: 8px 10px 18px; color: var(--faint); font-size: 12.5px; }
.nav { display: flex; flex-direction: column; gap: 4px; overflow: auto; }
.nav a {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 42px;
  padding: 8px 12px;
  border-radius: 13px;
  text-decoration: none;
  font-weight: 650;
  font-weight: 600;
  font-size: 14.5px;
  color: #2c2c2a;
  white-space: nowrap;
}
.nav svg { width: 18px; height: 18px; stroke: currentColor; fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.nav a:hover { background: var(--soft); }
.nav a.is-active { background: var(--yellow); color: var(--ink); }
.nav-badge {
  margin-left: auto;
  min-width: 20px;
  height: 20px;
  padding: 0 6px;
  border-radius: 999px;
  background: #e5282d;
  color: #fff;
  font-weight: 800;
  padding: 0 5px;
  font-size: 11px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.sidebar-foot { margin-top: auto; padding: 14px 12px 6px; }
.foot-label { font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--faint); }
.foot-role { margin-top: 4px; font-weight: 800; letter-spacing: -0.03em; }

.main { min-width: 0; min-height: 0; display: flex; flex-direction: column; position: relative; }
.partner-strip { margin: 14px 22px 0; padding: 10px 14px; border-radius: 14px; background: var(--yellow); font-weight: 700; }
.partner-strip a { margin-left: 8px; }
.topstrip {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 16px 22px 0;
}
.topstrip select, .search input {
  height: 40px;
  border-radius: 12px;
  border: 1px solid #e6e6e2;
  background: var(--white);
  padding: 0 12px;
}
.search { margin-left: auto; display: flex; }
.search input { width: 250px; background: var(--soft); }
.userchip { display: flex; align-items: center; gap: 10px; font-size: 13px; font-weight: 700; }
.userchip a { color: var(--muted); font-weight: 600; text-decoration: none; }
.content { padding: 18px 22px 28px; overflow: auto; min-height: 0; }

.page-head { display: flex; justify-content: space-between; gap: 16px; align-items: flex-end; margin-bottom: 18px; }
.page-head h1, .msg-head h1 { margin: 0; font-size: 34px; letter-spacing: -0.05em; line-height: 1; }
.lede { margin: 8px 0 0; color: var(--muted); font-size: 14px; }
.page-actions, .filters { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.filters select, .inline-select {
  height: 42px;
  border-radius: 12px;
  border: 1px solid #e6e6e2;
  background: var(--white);
  padding: 0 12px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 0 16px;
  border-radius: 12px;
  border: 1px solid transparent;
  background: var(--white);
  color: var(--ink);
  font-weight: 700;
  font-size: 14px;
  text-decoration: none;
  cursor: pointer;
}
.btn-yellow { background: var(--yellow); }
.btn-ghost { border-color: #e4e4e0; }
.btn-block { width: 100%; }
.btn-sm { min-height: 34px; padding: 0 12px; border-radius: 10px; font-size: 13px; }
.btn:disabled { opacity: 0.5; cursor: default; }

.stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin-bottom: 18px; }
.stat { background: var(--soft); border-radius: 18px; padding: 16px; }
.stat.accent { background: var(--yellow); }
.stat span { display: block; color: var(--muted); font-size: 13px; font-weight: 650; font-weight: 600; }
.stat.accent span { color: #3d3a12; }
.stat b { display: block; margin-top: 8px; font-size: 28px; letter-spacing: -0.045em; }
.split { display: grid; grid-template-columns: 1.35fr 0.8fr; gap: 16px; }
.auth-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; align-items: start; }
.switch-row { display: flex; flex-wrap: wrap; gap: 8px; margin: 12px 0; }
.switch {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  border-radius: 999px;
  background: var(--surface);
  font-weight: 700;
  font-size: 14px;
}
.switch input { width: 16px; height: 16px; }
.btn-row { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.card-kicker { color: var(--muted); font-size: 12px; font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase; }
.card, .table-wrap { border: 1px solid #efefec; border-radius: 20px; background: var(--white); }
.card { padding: 16px 16px 8px; }
.card h2, .section-title { margin: 0 0 12px; font-size: 16px; letter-spacing: -0.03em; }
.table-wrap { overflow: auto; }
table { width: 100%; border-collapse: collapse; font-size: 14px; }
th { text-align: left; font-size: 12px; color: var(--faint); font-weight: 700; padding: 12px 14px; background: #fafaf8; }
td { padding: 13px 14px; border-top: 1px solid #f3f3f0; vertical-align: middle; }
.table-compact th, .table-compact td { padding: 7px 10px; font-size: 13px; }
.product-cell { display: flex; align-items: center; gap: 10px; min-width: 220px; }
.product-thumb {
  width: 52px;
  height: 52px;
  flex: none;
  object-fit: contain;
  border-radius: 10px;
  background: #fff;
  border: 1px solid #ecece8;
}
a:has(.product-thumb) { display: flex; flex: none; text-decoration: none; }
.product-thumb-empty { background: var(--soft); }
tr.click:hover td { background: #fcfcfa; }
.rowlink { font-weight: 800; text-decoration: none; letter-spacing: -0.02em; }

.pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border-radius: 999px;
  padding: 4px 10px;
  background: var(--bubble);
  font-size: 12px;
  font-weight: 700;
  white-space: nowrap;
}
.pill:before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.pill-confirmed, .pill-in_progress, .pill-picking, .pill-arrived, .pill-ready, .pill-assigned { background: #fff6c2; }
.pill-completed, .pill-paid, .pill-received, .pill-approved, .pill-published { background: #e7f7ec; color: var(--ok); }
.pill-pending, .pill-pending_payment, .pill-created, .pill-draft, .pill-new { background: var(--bubble); color: #5c5c58; }
.pill-cancelled, .pill-cancelled_client, .pill-cancelled_location, .pill-failed, .pill-expired, .pill-no_show, .pill-rejected, .pill-returned { background: #fdecec; color: var(--danger); }

.board { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(220px, 1fr); gap: 12px; overflow: auto; padding-bottom: 8px; }
.board-col { background: var(--soft); border-radius: 18px; padding: 12px; min-height: 240px; }
.board-col h3 { margin: 0; font-size: 15px; }
.board-col p { margin: 2px 0 10px; color: var(--muted); font-size: 12px; }
.board-card { display: block; background: var(--white); border-radius: 14px; padding: 12px; text-decoration: none; margin-bottom: 8px; }
.board-card strong { display: block; }
.board-card span { display: block; color: var(--muted); font-size: 13px; margin-top: 2px; }

.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px 14px; }
.field { display: flex; flex-direction: column; gap: 6px; }
.field.wide, .field:has(textarea) { grid-column: 1 / -1; }
.field label, .check { font-size: 13px; font-weight: 700; }
.field input, .field select, .field textarea, .bare {
  width: 100%;
  min-height: 44px;
  border-radius: 12px;
  border: 1px solid #e4e4e0;
  background: var(--white);
  padding: 10px 12px;
}
.field textarea { min-height: 96px; resize: vertical; }
.field input[type="checkbox"] { width: auto; min-height: 0; }
.check { display: flex; gap: 8px; align-items: center; grid-column: 1 / -1; }
.choice-list { display: flex; flex-direction: column; gap: 8px; margin: 14px 0; }
.shop-fulfillment {
  margin: -4px 0 14px;
  padding: 4px 4px 4px 28px;
  border-left: 3px solid var(--yellow);
}
.shop-fulfillment .choice-list { margin-top: 0; }
.choice {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 12px;
  border: 1px solid #e4e4e0;
  border-radius: 14px;
  background: var(--soft);
}
.choice input { width: 18px; height: 18px; margin-top: 2px; }
.choice b { display: block; }
.choice span span { display: block; color: var(--muted); font-size: 13px; font-weight: 500; }
.err { color: var(--danger); font-size: 13px; margin: 0; }
.actions { display: flex; gap: 8px; margin-top: 14px; }

.msg-page { flex: 1; min-height: 0; display: flex; flex-direction: column; padding: 8px 22px 14px; }
.msg-head { display: flex; justify-content: space-between; gap: 16px; align-items: flex-end; margin: 8px 0 14px; }
.msg-grid {
  flex: 1;
  min-height: 0;
  display: grid;
  grid-template-columns: 292px minmax(0, 1fr) 280px;
  gap: 16px;
}
.dialog-col, .thread-col, .context-col { min-height: 0; display: flex; flex-direction: column; }
.col-title { margin: 0 0 10px; font-size: 15px; }
.dialog-scroll, .thread-scroll, .context-scroll { overflow: auto; min-height: 0; }
.dialog {
  display: block;
  position: relative;
  padding: 13px 14px 12px;
  border-radius: 16px;
  text-decoration: none;
  margin-bottom: 6px;
}
.dialog.is-current { background: var(--yellow-soft); }
.dialog:hover:not(.is-current) { background: var(--soft); }
.dialog-title { font-weight: 800; letter-spacing: -0.03em; }
.dialog-client, .dialog-preview { color: #666660; font-size: 13px; margin-top: 3px; }
.dialog-preview { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tag {
  display: inline-flex;
  margin-top: 8px;
  background: var(--white);
  border-radius: 999px;
  padding: 3px 8px;
  font-size: 12px;
  font-weight: 700;
}
.dialog.is-current .tag { background: rgba(255, 255, 255, 0.72); }
.unread-dot {
  position: absolute;
  top: 14px;
  right: 12px;
  min-width: 18px;
  height: 18px;
  border-radius: 999px;
  background: #e5282d;
  color: #fff;
  font-weight: 800;
  padding: 0 5px;
  font-size: 11px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.thread-head { display: flex; gap: 12px; align-items: center; margin-bottom: 12px; }
.avatar {
  width: 44px; height: 44px; border-radius: 50%;
  background: var(--yellow);
  display: flex; align-items: center; justify-content: center;
  font-weight: 800;
}
.thread-head h2 { margin: 0; font-size: 18px; letter-spacing: -0.03em; }
.thread-head p { margin: 3px 0 0; color: var(--muted); font-size: 13px; }
.context-card {
  background: var(--bubble);
  border-radius: 16px;
  padding: 14px;
  margin-bottom: 12px;
  text-decoration: none;
  display: block;
}
.context-card strong { display: block; letter-spacing: -0.02em; }
.context-card span { display: block; color: #5e5e5a; font-size: 13px; margin-top: 4px; }
.thread-scroll { display: flex; flex-direction: column; gap: 12px; padding-right: 6px; }
.bubble-row { max-width: min(78%, 520px); }
.bubble-row.is-client { align-self: flex-start; }
.bubble-row.is-staff { align-self: flex-end; }
.bubble-row.is-system { align-self: center; max-width: 92%; }
.bubble { padding: 12px 14px; border-radius: 18px; line-height: 1.45; font-size: 14.5px; white-space: pre-wrap; }
.is-client .bubble { background: var(--bubble); border-bottom-left-radius: 6px; }
.is-staff .bubble { background: var(--yellow); border-bottom-right-radius: 6px; }
.is-system .bubble { background: transparent; color: var(--faint); font-size: 12.5px; text-align: center; padding: 2px 8px; }
.bubble-meta { margin-top: 4px; color: var(--faint); font-size: 11px; }
.is-staff .bubble-meta { text-align: right; }
.bubble img { max-width: 220px; border-radius: 12px; display: block; margin-top: 8px; }
.bubble a.file { display: inline-block; margin-top: 6px; font-weight: 700; }
.composer {
  display: flex;
  gap: 8px;
  align-items: center;
  border: 1px solid #e6e6e2;
  border-radius: 999px;
  padding: 6px;
  margin-top: 10px;
  background: var(--white);
}
.composer input[type="text"] { flex: 1; border: 0; outline: none; background: transparent; height: 36px; min-width: 0; }
.icon-btn, .send-btn {
  width: 40px; height: 40px; border-radius: 50%;
  border: 1px solid #e6e6e2; background: var(--white);
  display: inline-flex; align-items: center; justify-content: center;
  cursor: pointer; font-weight: 700; position: relative;
}
.send-btn { background: var(--yellow); border-color: transparent; font-size: 18px; }
.icon-btn input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.chips { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 10px; }
.chip {
  border: 1px solid #e6e6e2;
  background: var(--white);
  border-radius: 999px;
  padding: 7px 12px;
  cursor: pointer;
  font-size: 13px;
}
.context-label { margin: 16px 0 6px; font-size: 12px; color: var(--faint); font-weight: 800; letter-spacing: 0.04em; text-transform: uppercase; }
.stack { display: flex; flex-direction: column; gap: 8px; }
.note {
  background: #fffbe8;
  border: 1px dashed #e2d48a;
  border-radius: 12px;
  padding: 8px 10px;
  font-size: 12.5px;
  margin-bottom: 8px;
}
.note b { display: block; margin-bottom: 2px; }
.fine { color: var(--faint); font-size: 11px; text-align: center; margin: 8px 0 0; }
.empty { color: var(--muted); padding: 28px 8px; text-align: center; }

.toasts { position: absolute; top: 14px; right: 18px; z-index: 5; display: flex; flex-direction: column; gap: 8px; }
.toast { background: var(--ink); color: white; border-radius: 12px; padding: 10px 12px; font-size: 13px; max-width: 320px; }
.toast-error { background: var(--danger); }
.toast-success { background: #173222; }

.auth-body {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 28px;
  background:
    radial-gradient(520px 280px at 12% 0%, rgba(255, 221, 0, 0.55), transparent 70%),
    var(--surface);
}
.auth-shell {
  width: min(980px, 100%);
  min-height: 560px;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  background: var(--white);
  border-radius: 32px;
  overflow: hidden;
  box-shadow: 0 24px 60px rgba(23, 23, 23, 0.08);
}
.auth-aside {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 36px 36px 32px;
  background: var(--yellow);
  overflow: hidden;
}
.auth-aside .brand { padding: 0; }
.brand-go-ink { background: var(--ink); color: var(--yellow); }
.auth-kicker {
  margin: 28px 0 0;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.auth-aside h1 {
  margin: 10px 0 0;
  max-width: 360px;
  font-size: 40px;
  line-height: 0.98;
  letter-spacing: -0.055em;
}
.auth-aside p { margin: 16px 0 0; max-width: 320px; font-size: 15px; line-height: 1.45; }
.auth-points { list-style: none; margin: auto 0 0; padding: 28px 0 0; display: flex; flex-direction: column; gap: 10px; }
.auth-points li { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: 14px; }
.auth-points i {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--ink);
  flex: none;
}
.auth-orb {
  position: absolute;
  right: -70px;
  bottom: -80px;
  width: 220px;
  height: 220px;
  border-radius: 50%;
  background: var(--ink);
}
.auth-main {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 40px 40px 32px;
}
.auth-main h2 { margin: 0; font-size: 32px; letter-spacing: -0.05em; }
.auth-main .lede { margin: 8px 0 22px; }
.auth-form { display: flex; flex-direction: column; gap: 14px; }
.auth-form .field input:focus {
  outline: none;
  border-color: #171717;
  box-shadow: 0 0 0 4px rgba(255, 221, 0, 0.55);
}
.auth-error {
  margin: 0 0 4px;
  padding: 10px 12px;
  border-radius: 12px;
  background: #fdecec;
  color: var(--danger);
  font-size: 13px;
  font-weight: 600;
}
.auth-submit { min-height: 48px; font-size: 15px; border-radius: 14px; }
.auth-actions { display: flex; gap: 10px; margin-top: 6px; }
.auth-actions .btn { flex: 1; min-height: 48px; border-radius: 14px; }
.auth-foot { margin: 22px 0 0; color: var(--faint); font-size: 12px; line-height: 1.45; }
.auth-person { margin: 0 0 18px; padding: 14px 14px 12px; border-radius: 16px; background: var(--soft); }
.auth-person b { display: block; font-size: 16px; letter-spacing: -0.03em; }
.auth-person span { color: var(--muted); font-size: 13px; }
@media (max-width: 820px) {
  .auth-body { padding: 0; }
  .auth-shell { min-height: 100vh; border-radius: 0; grid-template-columns: 1fr; }
  .auth-aside { min-height: 240px; padding: 28px 24px 24px; }
  .auth-aside h1 { font-size: 32px; }
  .auth-orb { width: 140px; height: 140px; right: -40px; bottom: -50px; }
  .auth-main { padding: 28px 24px 32px; }
}
.pager { display: flex; gap: 8px; justify-content: flex-end; margin-top: 12px; }
.muted { color: var(--muted); }
.list { display: flex; flex-direction: column; gap: 8px; }
.list a, .attention {
  display: flex; justify-content: space-between; gap: 12px;
  text-decoration: none; padding: 10px 0; border-top: 1px solid var(--line);
}
.kvs { display: grid; grid-template-columns: 140px 1fr; gap: 8px 12px; font-size: 14px; }
.kvs span { color: var(--muted); }

.brand-logo { height: 38px; width: auto; max-width: 168px; object-fit: contain; }
.auth-logo { height: 64px; width: auto; max-width: 220px; object-fit: contain; }
.pill-ok { background: #e7f6ec; color: var(--ok); }

.partner-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 14px; }
.partner-card {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 16px;
  border: 1px solid #efefec;
  border-radius: 22px;
  background: var(--white);
}
.partner-card-top { display: flex; align-items: center; gap: 12px; }
.partner-card-top .rowlink { display: block; font-size: 18px; }
.partner-card-top .pill { margin-left: auto; }
.partner-logo {
  width: 56px;
  height: 56px;
  border-radius: 16px;
  object-fit: cover;
  background: var(--soft);
  flex: none;
}
.partner-logo-empty {
  display: grid;
  place-items: center;
  font-weight: 800;
  font-size: 22px;
  letter-spacing: -0.04em;
}
.partner-phone { font-size: 20px; font-weight: 800; letter-spacing: -0.04em; }
.partner-meta { display: flex; flex-wrap: wrap; gap: 6px; }
.partner-meta span { padding: 4px 8px; border-radius: 999px; background: var(--soft); font-size: 12px; font-weight: 700; }
.partner-swatches { display: flex; gap: 6px; }
.partner-swatches i { width: 18px; height: 18px; border-radius: 50%; border: 1px solid rgba(23, 23, 23, 0.12); }
.partner-login {
  padding: 10px 12px;
  border-radius: 14px;
  background: var(--soft);
}
.partner-login span { display: block; color: var(--faint); font-size: 11px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; }
.partner-login a { display: block; margin-top: 4px; font-weight: 700; text-decoration: none; word-break: break-all; }
.partner-card-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.partner-access {
  display: flex;
  flex-direction: column;
  gap: 3px;
  padding: 8px;
  border-radius: 12px;
  background: var(--ink);
  color: white;
}
.partner-access-kicker {
  color: rgba(255, 255, 255, 0.62);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.partner-access label { font-size: 11px; font-weight: 700; color: rgba(255, 255, 255, 0.72); }
.access-line { display: flex; gap: 6px; align-items: center; }
.access-line input { flex: 1; min-width: 0; }
.partner-access .access-line input {
  min-height: 30px;
  border: 0;
  border-radius: 8px;
  padding: 4px 8px;
  background: white;
  color: var(--ink);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: -0.03em;
}
.partner-access .btn {
  min-height: 30px;
  padding: 0 8px;
  border-radius: 8px;
  background: #fff;
  color: var(--ink);
  font-size: 12px;
}
.partner-access .btn-yellow { align-self: flex-start; margin-top: 2px; background: var(--yellow); color: var(--ink); }
.partner-access input[name="password"] {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-weight: 700;
  letter-spacing: 0.01em;
}
.partner-access .access-note { margin: 2px 0 0; color: rgba(255, 255, 255, 0.78); font-size: 11px; line-height: 1.35; }
.access-line input[name="password"] {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-weight: 700;
}

.login-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin: -6px 0 16px;
  padding: 12px 14px;
  border-radius: 16px;
  background: var(--ink);
  color: white;
}
.login-banner span { display: block; color: rgba(255, 255, 255, 0.62); font-size: 11px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; }
.login-banner a { color: var(--yellow); font-weight: 800; text-decoration: none; word-break: break-all; }
.partner-editor { display: flex; flex-direction: column; gap: 14px; }
.partner-section { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(280px, 0.95fr); gap: 18px; align-items: start; padding: 18px; }
.partner-look { grid-template-columns: 220px minmax(0, 1fr) 220px; }
#partner-map { height: 360px; border-radius: 18px; border: 1px solid #ecece8; }
.map-note { margin: 8px 2px 0; color: var(--muted); font-size: 12.5px; line-height: 1.4; }
.map-pin { background: transparent; border: 0; }
.map-pin span {
  display: block;
  width: 18px;
  height: 18px;
  margin: 2px 0 0 5px;
  background: #171717;
  border: 3px solid #ffdd00;
  border-radius: 50% 50% 50% 0;
  transform: rotate(-45deg);
  box-shadow: 0 8px 16px rgba(23, 23, 23, 0.28);
}
.logo-drop {
  display: grid;
  place-items: center;
  min-height: 180px;
  padding: 12px;
  border: 1.5px dashed #d9d9d4;
  border-radius: 18px;
  background: var(--soft);
  text-align: center;
  color: var(--muted);
  cursor: pointer;
}
.logo-drop img { max-width: 100%; max-height: 150px; object-fit: contain; }
.logo-drop input { display: none; }
.palette { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 14px; }
.palette button {
  height: 36px;
  padding: 0 12px;
  border: 1px solid #e6e6e2;
  border-radius: 999px;
  background: white;
  font-weight: 700;
  cursor: pointer;
}
.color-row { display: flex; gap: 10px; flex-wrap: wrap; }
.swatch {
  display: grid;
  grid-template-columns: 42px 1fr;
  grid-template-rows: auto auto;
  column-gap: 8px;
  align-items: center;
  min-width: 140px;
  padding: 8px;
  border-radius: 14px;
  background: var(--soft);
}
.swatch input { grid-row: 1 / span 2; width: 42px; height: 42px; padding: 0; border: 0; background: transparent; cursor: pointer; }
.swatch span { font-size: 13px; font-weight: 700; }
.swatch b { color: var(--muted); font-size: 12px; font-weight: 700; }
.app-preview { display: grid; justify-content: center; }
.app-preview-screen {
  width: 210px;
  min-height: 280px;
  padding: 16px;
  border-radius: 28px;
  background: #f5f5f3;
  box-shadow: inset 0 0 0 1px rgba(23, 23, 23, 0.06);
}
.app-preview-bar { display: flex; align-items: center; gap: 8px; min-height: 36px; }
.app-preview-bar img { width: 28px; height: 28px; border-radius: 8px; object-fit: cover; }
.app-preview-bar b { font-size: 14px; letter-spacing: -0.03em; }
.app-preview-card { margin-top: 18px; padding: 14px; border-radius: 16px; background: white; font-weight: 700; }
.app-preview-btn { margin-top: 16px; padding: 12px; border-radius: 14px; background: #ffdd00; text-align: center; font-weight: 800; }

@media (max-width: 1180px) {
  body:not(.auth-body) { padding: 8px; }
  .shell { height: calc(100vh - 16px); }
  .msg-grid, .split, .stats, .form-grid, .partner-section, .partner-look, .auth-grid { grid-template-columns: 1fr; }
  .search input { width: 160px; }
  .page-head h1, .msg-head h1 { font-size: 28px; }
  #partner-map { height: 280px; }
}

.live-toast { position: fixed; right: 20px; bottom: 20px; z-index: 50; background: var(--ink); color: #fff; border-radius: 16px; padding: 14px 16px; max-width: 340px; box-shadow: 0 18px 40px rgba(0,0,0,.28); text-decoration: none; display: block; border-left: 5px solid #e5282d; }
.live-toast b { display: block; margin-bottom: 3px; }
.live-toast span { font-size: 13px; opacity: .85; }

.auth-facade { width: 100%; max-width: 360px; aspect-ratio: 16 / 9; object-fit: cover; border-radius: 18px; margin: 18px 0 4px; display: block; }
.qr-box { display: flex; gap: 16px; align-items: center; margin: 22px 0 6px; padding: 14px; border: 1px solid var(--line, #e6e6e0); border-radius: 18px; background: #fff; }
.qr-img { width: 132px; height: 132px; flex: none; transition: opacity .2s; }
.qr-img svg { width: 100%; height: 100%; display: block; }
.qr-text { display: flex; flex-direction: column; gap: 6px; font-size: 14px; color: #55575f; }
.qr-text b { color: #171717; font-size: 15px; }
@media (max-width: 520px) { .qr-box { flex-direction: column; text-align: center; } }
.qr-text [hidden], .qr-box[hidden] { display: none !important; }
