.auth { display: grid; grid-template-columns: 440px 1fr; min-height: 100vh; }
.auth-side { background: radial-gradient(120% 80% at 20% 90%, #2a2622 0%, #111 60%); color: #fff; padding: 40px; display: flex; flex-direction: column; justify-content: space-between; }
.side-title { font-size: 52px; letter-spacing: -0.035em; margin-bottom: 16px; }
.side-sub { color: #aaa; max-width: 300px; }
.side-list { list-style: none; padding: 0; margin: 32px 0 0; display: grid; gap: 12px; color: #ddd; font-size: 14px; }
.side-list li { display: flex; gap: 10px; align-items: center; }
.auth-main { display: grid; place-items: center; padding: 40px 24px; background: #fff; }
.auth-box { width: 100%; max-width: 420px; }
.auth-box h1 { font-size: 32px; margin-bottom: 6px; }
.auth-box .sub { margin-bottom: 28px; }
.mobile-logo { display: none; margin-bottom: 36px; }
.switch-text { text-align: center; margin-top: 20px; font-size: 14px; color: var(--muted); }
.switch-text a { color: var(--black); font-weight: 600; }
.legal { text-align: center; margin-top: 14px; font-size: 12px; color: var(--muted); }

/* setup wizard */
.setup { min-height: 100vh; background: #fff; }
.setup-top { display: flex; justify-content: space-between; align-items: center; padding: 20px 24px; max-width: 760px; margin: 0 auto; }
.setup-body { max-width: 560px; margin: 0 auto; padding: 16px 24px 80px; }
.progress { display: flex; gap: 6px; margin: 8px 0 28px; }
.progress span { flex: 1; height: 3px; border-radius: 3px; background: var(--line); }
.progress span.on { background: var(--black); }
.step-label { font-size: 13px; color: var(--muted); margin-bottom: 6px; }
.setup h1 { font-size: 30px; margin-bottom: 6px; }
.setup .lead { color: var(--muted); margin-bottom: 28px; }
.setup-actions { display: flex; gap: 10px; justify-content: space-between; align-items: center; margin-top: 28px; flex-wrap: wrap; }
.setup-actions .btn-dark { min-width: 160px; }
.optional { border: 1px dashed var(--line); border-radius: var(--radius); margin: 8px 0 0; }
.optional summary { padding: 14px 16px; cursor: pointer; font-weight: 600; font-size: 14px; list-style: none; display: flex; justify-content: space-between; align-items: center; }
.optional summary::-webkit-details-marker { display: none; }
.optional[open] summary .i { transform: rotate(180deg); }
.optional .inner { padding: 0 16px 8px; }
.slug-box { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.slug-box button { border: 1px solid var(--line); background: #fff; border-radius: 99px; padding: 5px 12px; font-size: 12px; cursor: pointer; }
.slug-box button:hover { border-color: var(--black); }
.slug-status { font-size: 12px; display: flex; gap: 6px; align-items: center; }
.slug-status.ok { color: var(--ok); }
.slug-status.bad { color: var(--err); }
.img-pick { display: flex; gap: 14px; align-items: center; }
.img-prev { width: 64px; height: 64px; border-radius: 14px; border: 1px dashed #ccc; display: grid; place-items: center; overflow: hidden; color: #aaa; background: var(--bg); flex: none; }
.img-prev img { width: 100%; height: 100%; object-fit: cover; }
.tpl-grid { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 20px; }
.tpl { border: 1px solid var(--line); border-radius: 99px; padding: 8px 14px; background: #fff; cursor: pointer; font-size: 13px; display: inline-flex; gap: 6px; align-items: center; font-weight: 500; }
.tpl:hover { border-color: var(--black); }
.tpl.added { background: var(--black); color: #fff; border-color: var(--black); }
.svc-row { display: grid; grid-template-columns: 1fr 90px 90px 40px; gap: 8px; align-items: center; margin-bottom: 8px; }
.svc-row .input { min-height: 42px; padding: 8px 10px; }
.svc-head { display: grid; grid-template-columns: 1fr 90px 90px 40px; gap: 8px; font-size: 12px; color: var(--muted); margin-bottom: 6px; }
.week { display: grid; gap: 8px; }
.day-row { display: grid; grid-template-columns: 130px 1fr; gap: 12px; align-items: center; padding: 10px 12px; border: 1px solid var(--line); border-radius: 10px; }
.day-row.off { background: var(--bg); }
.day-times { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.day-times .input { width: 110px; min-height: 40px; padding: 6px 10px; }
.done-hero { text-align: center; padding: 20px 0; }
.done-hero .ok-circle { width: 72px; height: 72px; border-radius: 50%; background: var(--black); color: #fff; display: grid; place-items: center; margin: 0 auto 20px; }
.link-box { display: flex; align-items: center; gap: 8px; border: 1px solid var(--line); border-radius: 12px; padding: 8px 8px 8px 16px; margin: 24px 0; background: var(--bg); }
.link-box span { flex: 1; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; text-align: left; }
.done-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }

@media (max-width: 900px) {
  .auth { grid-template-columns: 1fr; }
  .auth-side { display: none; }
  .mobile-logo { display: inline-flex; }
  .auth-main { place-items: start center; padding-top: 32px; }
}
@media (max-width: 520px) {
  .svc-row, .svc-head { grid-template-columns: 1fr 70px 70px 36px; }
  .day-row { grid-template-columns: 1fr; }
  .done-actions { grid-template-columns: 1fr; }
}
