:root {
  --bg: #f2f2f7;
  --card: #ffffff;
  --ink: #1d1d1f;
  --muted: #6e6e73;
  --line: rgba(60, 60, 67, 0.12);
  --line-strong: rgba(60, 60, 67, 0.18);
  --blue: #007aff;
  --blue-deep: #0066d6;
  --blue-soft: rgba(0, 122, 255, 0.12);
  --red: #ff3b30;
  --green: #248a3d;
  --sidebar: rgba(255, 255, 255, 0.72);
  --glass: rgba(255, 255, 255, 0.48);
  --glass-strong: rgba(255, 255, 255, 0.66);
  --glass-edge: rgba(255, 255, 255, 0.78);
  --shadow: inset 0 1px 0 rgba(255, 255, 255, 0.9), 0 10px 30px rgba(28, 32, 48, 0.07);
  color: var(--ink);
  background:
    radial-gradient(980px 520px at 0% -8%, rgba(10, 132, 255, 0.2), transparent 58%),
    radial-gradient(760px 460px at 100% 0%, rgba(94, 200, 255, 0.18), transparent 52%),
    radial-gradient(640px 420px at 78% 100%, rgba(255, 255, 255, 0.75), transparent 46%),
    #e6e8f0;
  font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 15px;
  line-height: 1.45;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
}

* { box-sizing: border-box; }
body { margin: 0; }
button, input, select { font: inherit; color: inherit; }
h1, h2, h3 {
  font-family: inherit;
  font-weight: 600;
  letter-spacing: -0.03em;
}
button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: auto;
  background: var(--blue);
  color: white;
  border: 0;
  border-radius: 10px;
  height: 36px;
  padding: 0 14px;
  cursor: pointer;
  font-size: 14px;
  font-weight: 500;
  white-space: nowrap;
}
button:hover { background: var(--blue-deep); }
button:disabled { opacity: 0.45; cursor: wait; }
button:focus-visible, a:focus-visible, input:focus-visible, select:focus-visible {
  outline: 2px solid var(--blue);
  outline-offset: 2px;
}
.textish, .ghost {
  background: rgba(255, 255, 255, 0.42);
  color: var(--ink);
  border: 1px solid var(--glass-edge);
  backdrop-filter: blur(16px) saturate(1.5);
  -webkit-backdrop-filter: blur(16px) saturate(1.5);
}
.textish:hover, .ghost:hover { background: rgba(255, 255, 255, 0.68); }
.quiet {
  height: auto;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: var(--blue);
  font-size: 13px;
  font-weight: 500;
}
.quiet:hover { background: transparent; color: var(--blue-deep); }
.danger {
  height: 36px;
  background: transparent;
  color: var(--red);
  border: 0;
  padding: 0 10px;
}
.danger:hover { background: #fff1f0; }
.kicker, .eyebrow {
  margin: 0;
  font-family: inherit;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0;
  text-transform: none;
  color: var(--muted);
}
.field {
  display: grid;
  gap: 6px;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0;
  text-transform: none;
  color: var(--ink);
}
.field input, .field select, .url-box input, .props select, .props input, .modal input, .modal select {
  width: 100%;
  background: rgba(255, 255, 255, 0.42);
  border: 1px solid transparent;
  border-radius: 10px;
  height: 40px;
  padding: 0 12px;
  font-size: 15px;
  letter-spacing: 0;
  text-transform: none;
  font-weight: 400;
  color: var(--ink);
}
.field input:focus, .field select:focus, .url-box input:focus, .props select:focus, .props input:focus, .modal input:focus, .modal select:focus {
  background: white;
  border-color: var(--blue);
  outline: none;
}
.field.compact { min-width: 0; }
.form-error { color: var(--red); margin: 0; font-size: 14px; }
.check {
  display: flex;
  gap: 10px;
  align-items: center;
  font-size: 14px;
  text-transform: none;
  letter-spacing: 0;
  color: var(--ink);
  font-weight: 400;
}
.check input { width: 16px; height: 16px; accent-color: var(--blue); }
.logo {
  width: 34px;
  height: 26px;
  display: inline-block;
  flex: none;
  background: url("/mark.svg") center / contain no-repeat;
}
.mark {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  background: linear-gradient(180deg, #409cff, #007aff);
  display: inline-block;
  flex: none;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.35);
}

.auth-body { min-height: 100vh; background: var(--bg); }
.auth { min-height: 100vh; display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(360px, 0.95fr); }
.auth-copy {
  padding: 64px 72px;
  color: var(--ink);
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 22px;
  background:
    radial-gradient(520px 280px at 12% 18%, rgba(0, 122, 255, 0.16), transparent 70%),
    #f7f8fa;
}
.auth-copy .eyebrow { color: var(--ink); display: flex; align-items: center; gap: 10px; text-transform: none; letter-spacing: -0.02em; font-size: 17px; font-weight: 600; }
.auth-copy h1 {
  margin: 0;
  max-width: 14ch;
  font-size: clamp(36px, 4vw, 52px);
  line-height: 1.05;
  color: var(--ink);
}
.steps { list-style: none; margin: 8px 0 0; padding: 0; display: grid; gap: 0; max-width: 460px; }
.steps li {
  display: grid;
  grid-template-columns: 32px 1fr;
  gap: 14px;
  align-items: center;
  padding: 14px 0;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 15px;
}
.steps strong {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--blue-soft);
  color: var(--blue);
  display: grid;
  place-items: center;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0;
}
.auth-card {
  background: transparent;
  padding: 64px 56px;
  display: grid;
  align-content: center;
  gap: 18px;
}
.segmented {
  display: flex;
  background: rgba(255, 255, 255, 0.38);
  border: 1px solid var(--glass-edge);
  border-radius: 10px;
  padding: 2px;
  width: min(100%, 240px);
  backdrop-filter: blur(18px) saturate(1.6);
  -webkit-backdrop-filter: blur(18px) saturate(1.6);
}
.segmented button { flex: 1; background: transparent; color: var(--ink); border-radius: 8px; height: 32px; }
.segmented button.on {
  background: rgba(255, 255, 255, 0.78);
  color: var(--ink);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.9), 0 1px 3px rgba(0, 0, 0, 0.08);
}
.segmented button:hover { background: transparent; }
.segmented button.on:hover { background: rgba(255, 255, 255, 0.86); }
body[data-mode="login"] .register-only { display: none; }
#form {
  display: grid;
  gap: 14px;
  background: var(--glass);
  border: 1px solid var(--glass-edge);
  border-radius: 20px;
  padding: 22px;
  box-shadow: var(--shadow);
  backdrop-filter: blur(28px) saturate(1.7);
  -webkit-backdrop-filter: blur(28px) saturate(1.7);
}
#form button[type="submit"] { margin-top: 4px; height: 44px; width: 100%; border-radius: 12px; }

.shell { height: 100vh; display: grid; grid-template-columns: 248px minmax(0, 1fr); }
.side {
  background: rgba(255, 255, 255, 0.42);
  color: var(--ink);
  padding: 22px 14px 16px;
  display: flex;
  flex-direction: column;
  gap: 18px;
  height: 100vh;
  border-right: 1px solid rgba(255, 255, 255, 0.55);
  backdrop-filter: blur(28px) saturate(1.7);
  -webkit-backdrop-filter: blur(28px) saturate(1.7);
}
.side-brand {
  color: var(--ink);
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0 8px;
  font-size: 17px;
  font-weight: 600;
  letter-spacing: -0.03em;
  line-height: 1;
}
.side-label {
  margin: 0 0 6px 10px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.side-menus { display: grid; align-content: start; margin-top: 16px; }
.side nav { display: grid; gap: 2px; }
.side-more { margin-top: 26px; }
.nav-icon { width: 16px; height: 16px; flex: none; }
.side nav a {
  color: var(--ink);
  text-decoration: none;
  padding: 8px 10px;
  border-radius: 8px;
  display: flex;
  gap: 8px;
  align-items: center;
  font-size: 14px;
  font-weight: 500;
}
.side nav em { display: none; }
.side nav a.on {
  background: rgba(255, 255, 255, 0.62);
  color: var(--blue);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.95), 0 1px 2px rgba(0, 0, 0, 0.04);
}
.side nav a:hover { background: rgba(255, 255, 255, 0.34); }
.side nav a.on:hover { background: rgba(255, 255, 255, 0.72); }
.side-user {
  margin-top: auto;
  display: flex;
  gap: 10px;
  align-items: center;
  padding: 14px 8px 0;
  border-top: 1px solid var(--line);
}
.avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--blue);
  color: white;
  font-size: 13px;
  font-weight: 600;
  flex: none;
}
.side-user strong { display: block; font-weight: 600; font-size: 14px; line-height: 1.2; }
.trial-card {
  margin-top: auto;
  display: grid;
  gap: 3px;
  padding: 12px;
  border-radius: 12px;
  background: rgba(0, 122, 255, 0.08);
  border: 1px solid rgba(0, 122, 255, 0.18);
  color: var(--ink);
  text-decoration: none;
}
.trial-card:hover { background: rgba(0, 122, 255, 0.12); }
.trial-card strong { font-size: 13px; font-weight: 600; }
.trial-card span { font-size: 12px; color: var(--muted); }
.trial-card i { display: block; height: 4px; margin-top: 6px; border-radius: 4px; background: linear-gradient(90deg, var(--blue) var(--left), rgba(0, 122, 255, 0.15) var(--left)); }
.sync-notice {
  margin: 8px 0 0;
  padding: 10px 12px;
  border-radius: 10px;
  background: #fff6e8;
  color: var(--ink);
  font-size: 13px;
  line-height: 1.45;
}
.sync-notice a { color: var(--blue); font-weight: 600; }
.page-fixed .sync-notice { margin: 0 0 12px; }
.billing-banner {
  display: block;
  margin-bottom: 16px;
  padding: 12px 14px;
  border-radius: 12px;
  background: #fff6e8;
  color: var(--ink);
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  line-height: 1.4;
}
.billing-banner.is-final, .billing-banner.is-locked { background: #fff1f0; }
.account-danger { border-color: rgba(255, 59, 48, 0.28); }
.account-danger .is-delete { background: var(--red); }
.account-danger .is-delete:hover { background: #d70015; }
.trial-card.is-expired { background: #fff1f0; border-color: rgba(255, 59, 48, 0.25); }
.trial-card.is-expired strong { color: var(--red); }
.trial-card + .side-user { margin-top: 12px; }
.side-user div { display: grid; gap: 1px; min-width: 0; }
#view {
  height: 100vh;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  padding: 28px 36px 16px;
}
.page-fixed { flex: none; border-bottom: 1px solid rgba(60, 60, 67, 0.14); padding-bottom: 16px; }
.page-fixed .page-head { border-bottom: 0; margin-bottom: 0; padding-bottom: 0; }
.page-fixed .product-bar { margin: 16px 0 0; }
.page-body { flex: 1; min-height: 0; overflow: auto; padding-top: 18px; padding-bottom: 28px; }
.page-body:has(.camp-build), .page-body:has(.camp-list) { display: flex; flex-direction: column; }
.page-head {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  align-items: flex-end;
  padding-bottom: 16px;
  margin-bottom: 18px;
  border-bottom: 1px solid rgba(60, 60, 67, 0.14);
}
.page-head > button, .head-side { flex: none; align-self: center; }
.head-side { display: flex; align-items: center; gap: 8px; margin-left: auto; }
.head-side .ghost.on { background: var(--blue-soft); color: var(--blue-deep); }
.head-side .ghost.is-live-link { color: var(--green); border-color: rgba(52, 199, 89, 0.55); background: rgba(52, 199, 89, 0.1); }
.head-side .ghost.is-live-link:hover { background: rgba(52, 199, 89, 0.16); }
.feed-facts { display: flex; align-items: center; color: var(--muted); font-size: 14px; white-space: nowrap; }
.feed-facts span + span { margin-left: 16px; padding-left: 16px; border-left: 1px solid rgba(60, 60, 67, 0.16); }
.sync-when { display: grid; gap: 1px; line-height: 1.2; }
.sync-when small { font-size: 11px; }
.product-bar { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 0 0 12px; }
.product-bar h2 { margin: 0; font-size: 18px; }
.product-bar input {
  width: min(100%, 280px);
  height: 36px;
  padding: 0 12px;
  border-radius: 10px;
  border: 1px solid var(--glass-edge);
  background: var(--glass);
}
.product-pager { display: flex; align-items: center; gap: 10px; margin-top: 14px; font-size: 13px; color: var(--muted); }
.product-pager .ghost { height: 32px; padding: 0 12px; }
.page-size { display: flex; align-items: center; gap: 8px; margin-left: auto; }
.page-size select {
  height: 32px;
  border-radius: 8px;
  border: 1px solid var(--glass-edge);
  background: rgba(255, 255, 255, 0.55);
  padding: 0 8px;
}
.page-copy { display: grid; gap: 6px; min-width: 0; }
.page-head h1 { margin: 0; font-size: 32px; line-height: 1.1; }
.lede { margin: 0; color: var(--muted); max-width: 62ch; font-size: 15px; }
.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); gap: 12px; }
.card {
  background: var(--glass);
  border: 1px solid var(--glass-edge);
  border-radius: 18px;
  padding: 16px;
  display: grid;
  gap: 8px;
  align-content: start;
  box-shadow: var(--shadow);
  backdrop-filter: blur(26px) saturate(1.7);
  -webkit-backdrop-filter: blur(26px) saturate(1.7);
}
.account-stack { display: grid; gap: 16px; }
.account-card { justify-items: stretch; gap: 14px; width: 100%; max-width: none; }
.account-card .span-2 { grid-column: 1 / -1; }
.phone-line { display: grid; grid-template-columns: 168px minmax(0, 1fr); gap: 8px; }
.phone-line select, .phone-line input { width: 100%; }
.account-card h2 { margin: 8px 0 0; font-size: 16px; }
.account-card .ticket-list + h2 { margin-top: 18px; }
.account-card h2:first-child { margin-top: 0; }
.account-intro { display: grid; gap: 4px; }
.account-intro h3 { margin: 0; font-size: 15px; }
.account-intro p { margin: 0; color: var(--muted); font-size: 13px; line-height: 1.45; }
.mail-check { display: flex; align-items: center; gap: 8px; font-size: 14px; }
.mail-check input { width: 16px; height: 16px; }
.mail-auto {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.55);
}
.mail-auto p { margin: 4px 0 0; color: var(--muted); font-size: 13px; }
.mail-auto-side { display: flex; align-items: center; gap: 8px; }
.ticket-pill.is-off { color: var(--muted); background: rgba(60, 60, 67, 0.08); }
.modal.is-log .sheet { width: min(720px, 100%); max-height: calc(100vh - 48px); overflow: auto; }
.modal .sheet:has(form) { width: min(560px, 100%); max-height: calc(100vh - 48px); overflow: auto; }
.modal .sheet form { width: 100%; }
.field textarea {
  width: 100%;
  min-height: 140px;
  height: auto;
  resize: vertical;
  border-radius: 10px;
  padding: 10px 12px;
  font: inherit;
  font-size: 15px;
  background: rgba(255, 255, 255, 0.42);
  border: 1px solid transparent;
  color: var(--ink);
}
.mail-log { display: grid; }
.mail-log-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
  align-items: center;
  padding: 10px 0;
  border-bottom: 1px solid var(--line);
}
.mail-log-row:last-child { border-bottom: 0; }
.mail-log-row p { margin: 2px 0 0; color: var(--muted); font-size: 12px; }
.head-side .info-btn { width: 28px; height: 28px; min-width: 28px; padding: 0; }
.verify-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.account-card .ticket-pill { justify-self: start; }
.account-split { height: 1px; background: var(--line); margin: 6px 0 2px; }
.account-card textarea {
  width: 100%;
  min-height: 88px;
  resize: vertical;
  border-radius: 10px;
  padding: 10px 12px;
  font: inherit;
  background: rgba(255, 255, 255, 0.42);
  border: 1px solid transparent;
  color: var(--ink);
}
.account-card textarea:focus { background: white; border-color: var(--blue); outline: none; }
.account-card button { justify-self: start; }
button.ticket-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  width: 100%;
  height: auto;
  padding: 12px 14px;
  text-align: left;
  background: rgba(255, 255, 255, 0.55);
  color: var(--ink);
  border: 1px solid var(--line);
  border-radius: 14px;
  font-weight: 400;
  white-space: normal;
}
button.ticket-row:hover { background: white; }
.ticket-copy { display: grid; gap: 2px; min-width: 0; }
.ticket-copy strong { font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ticket-copy span { color: var(--muted); font-size: 12px; font-weight: 400; }
.ticket-pill {
  font-size: 12px;
  font-weight: 600;
  color: var(--blue);
  background: var(--blue-soft);
  border-radius: 999px;
  padding: 4px 8px;
}
.lead-card { display: grid; gap: 4px; padding: 14px; border: 1px solid var(--line); border-radius: 14px; background: rgba(255, 255, 255, 0.55); }
.lead-card strong { font-weight: 600; }
.lead-card span, .lead-card p { margin: 0; color: var(--muted); font-size: 13px; font-weight: 400; }
.lead-card p { color: var(--ink); font-size: 14px; }
.meeting-card { grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 12px; }
.meeting-info { display: grid; gap: 4px; min-width: 0; }
.meeting-info a { color: var(--blue); text-decoration: none; }
.meeting-info a:hover { text-decoration: underline; }
.brand-facts { display: grid; grid-template-columns: 1fr 1fr; gap: 12px 18px; }
.brand-fact { display: grid; gap: 2px; }
.brand-fact span { color: var(--muted); font-size: 12px; font-weight: 500; }
.brand-fact strong { font-weight: 600; font-size: 14px; }
.brand-lines { display: grid; }
.brand-line { margin: 0; padding: 10px 0; border-top: 1px solid var(--line); font-size: 14px; }
.brand-feed { display: grid; gap: 8px; padding-bottom: 12px; }
.brand-feed .brand-line { border-top: 1px solid var(--line); }
.brand-feed .ghost { justify-self: start; }
.xml-admin-map { display: grid; gap: 4px; }
.xml-admin-map p { margin: 0; color: var(--muted); font-size: 13px; }
.account-card h3 { margin: 8px 0 0; font-size: 15px; }
.support-note { margin: 0; color: var(--muted); font-size: 13px; line-height: 1.45; font-weight: 400; }
.support-form { align-content: start; }
.file-pick { display: flex; align-items: center; gap: 10px; min-height: 40px; }
.file-pick .ghost { height: 36px; }
.file-name { color: var(--muted); font-size: 13px; font-weight: 400; }
.field input.file-input {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}
.support-shot { width: min(100%, 220px); max-height: 140px; object-fit: cover; border-radius: 12px; border: 1px solid var(--line); cursor: zoom-in; }
.support-shot[hidden], .chat-form[hidden], .support-note[hidden], .ghost[hidden], .shot-layer[hidden] { display: none !important; }
.shot-layer {
  position: fixed;
  inset: 0;
  z-index: 40;
  display: grid;
  place-items: center;
  padding: 28px 24px 72px;
  background: rgba(15, 18, 24, 0.78);
}
.shot-full {
  display: block;
  width: min(1100px, calc(100vw - 48px));
  height: calc(100vh - 120px);
  object-fit: contain;
  border-radius: 16px;
  background: transparent;
}
.shot-close { position: fixed; right: 20px; bottom: 20px; }
.page-body.chat-page { display: flex; flex-direction: column; overflow: hidden; padding-bottom: 16px; }
.chat-sheet { flex: 1; min-height: 0; display: flex; flex-direction: column; }
.chat {
  flex: 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
  overflow: auto;
}
.chat > :first-child { margin-top: auto; }
.chat-form { position: relative; display: grid; grid-template-columns: 40px minmax(0, 1fr) auto; gap: 8px; align-items: center; }
.chat-form .file-input {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}
.chat-attach {
  width: 40px;
  height: 40px;
  padding: 0;
}
.chat-attach svg { width: 18px; height: 18px; }
.chat-picked { margin: 0; color: var(--muted); font-size: 12px; }
.chat-picked[hidden] { display: none !important; }
.chat-form input[type="text"], .chat-form input:not([type="file"]) {
  width: 100%;
  height: 40px;
  border-radius: 10px;
  border: 1px solid transparent;
  background: rgba(255, 255, 255, 0.55);
  padding: 0 12px;
  font: inherit;
  font-size: 15px;
  color: var(--ink);
}
.chat-form input:focus { background: white; border-color: var(--blue); outline: none; }
.bubble {
  display: grid;
  gap: 4px;
  width: min(100%, 440px);
  padding: 10px 12px;
  border-radius: 14px;
}
.bubble p { margin: 0; white-space: pre-wrap; }
.bubble small, .bubble strong { font-size: 12px; }
.bubble small { color: var(--muted); }
.bubble.theirs { justify-self: start; background: rgba(255, 255, 255, 0.72); border: 1px solid var(--line); align-self: flex-start; }
.bubble.mine { justify-self: end; background: var(--blue-soft); align-self: flex-end; }
.card h2 { margin: 0; font-size: 20px; line-height: 1.2; }
.design-list { grid-template-columns: repeat(auto-fill, minmax(168px, 200px)); }
.design-card {
  display: grid;
  gap: 10px;
  padding: 12px;
  position: relative;
}
.design-foot { position: relative; display: flex; align-items: center; gap: 8px; }
.feed-list { grid-template-columns: 1fr; }
.feed-card {
  grid-template-columns: 1fr auto;
  align-items: center;
  width: 100%;
  padding: 14px 16px;
}
.feed-body { display: flex; align-items: center; min-width: 0; }
.feed-id { display: grid; gap: 2px; min-width: 140px; }
.feed-id h2 { font-size: 22px; }
.feed-stat {
  margin: 0 0 0 36px;
  padding-left: 28px;
  border-left: 1px solid rgba(60, 60, 67, 0.16);
  color: var(--ink);
  font-size: 15px;
}
.feed-stat + .feed-stat { margin-left: 64px; }
.feed-card .info-menu { right: 16px; top: 48px; }
.feed-link { cursor: pointer; text-align: left; }
.feed-link:hover { border-color: rgba(0, 122, 255, 0.35); }
.product-list { display: grid; gap: 8px; }
.product-row {
  width: 100%;
  height: auto;
  display: grid;
  grid-template-columns: 52px minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  justify-content: stretch;
  text-align: left;
  padding: 8px 12px;
  border-radius: 16px;
  background: var(--glass);
  color: var(--ink);
  border: 1px solid var(--glass-edge);
  box-shadow: var(--shadow);
  backdrop-filter: blur(20px) saturate(1.5);
  -webkit-backdrop-filter: blur(20px) saturate(1.5);
  cursor: pointer;
}
.product-row.has-edit { grid-template-columns: 52px minmax(0, 1fr) auto auto; }
.product-row:hover { background: rgba(255, 255, 255, 0.72); }
.product-edit {
  display: inline-flex;
  align-items: center;
  height: 32px;
  padding: 0 10px;
  border-radius: 10px;
  font-size: 12px;
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
}
.page-head .product-edit-head {
  align-self: flex-end;
  height: 36px;
  margin-bottom: 2px;
  padding: 0 14px;
  border: 0;
  border-radius: 12px;
  background: #007aff;
  color: white;
  font-size: 13px;
  box-shadow: none;
}
.page-head .product-edit-head:hover { background: #0066d6; color: white; }
.product-row img { width: 52px; height: 52px; object-fit: cover; border-radius: 10px; background: #f2f2f7; }
.product-copy { display: grid; gap: 2px; min-width: 0; }
.product-row strong { display: block; font-weight: 600; font-size: 14px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.product-meta { display: flex; gap: 10px; color: var(--muted); font-size: 13px; }
.product-meta .out { color: #d70015; }
.product-prices { display: flex; align-items: baseline; gap: 8px; white-space: nowrap; }
.product-prices .list { color: var(--muted); font-size: 13px; }
.product-prices .struck { text-decoration: line-through; }
.product-prices .sale { color: var(--ink); font-size: 14px; font-weight: 600; }
.product-detail { display: grid; gap: 22px; }
.product-hero { display: grid; grid-template-columns: 200px minmax(0, 1fr); gap: 18px; align-items: center; }
.product-detail img { width: 200px; height: 200px; object-fit: cover; border-radius: 16px; background: #f2f2f7; }
.product-intro { display: grid; gap: 6px; }
.meta-counts { display: flex; flex-wrap: wrap; gap: 8px; }
.meta-counts span { padding: 4px 10px; border-radius: 999px; font-size: 12px; font-weight: 600; background: rgba(60, 60, 67, 0.08); color: var(--muted); }
.meta-counts .is-ok { background: rgba(52, 199, 89, 0.16); color: #1b7f3a; }
.meta-counts .is-miss { background: rgba(255, 149, 0, 0.16); color: #9a5b00; }
.product-intro .meta { margin: 0; }
.meta-group { display: grid; gap: 0; }
.meta-group h3 { margin: 14px 0 0; font-size: 16px; letter-spacing: -0.02em; }
.meta-lead { margin: 4px 0 8px; color: var(--muted); font-size: 13px; }
.meta-row { display: grid; grid-template-columns: minmax(140px, 210px) minmax(0, 1fr); gap: 12px; padding: 12px 0; border-top: 1px solid rgba(60, 60, 67, 0.1); }
.meta-name { display: grid; gap: 2px; align-content: start; }
.meta-name strong { font-size: 14px; font-weight: 600; }
.meta-name code { font-size: 11px; color: var(--muted); }
.meta-body { display: grid; gap: 4px; min-width: 0; }
.meta-line { display: flex; gap: 10px; align-items: flex-start; justify-content: space-between; }
.meta-line a, .meta-line > span:first-child { font-size: 14px; word-break: break-word; }
.meta-empty { color: var(--muted); }
.meta-flag { flex: none; padding: 2px 8px; border-radius: 999px; font-size: 11px; font-weight: 600; background: rgba(60, 60, 67, 0.08); color: var(--muted); }
.meta-flag.is-ok { background: rgba(52, 199, 89, 0.16); color: #1b7f3a; }
.meta-flag.is-miss { background: rgba(255, 149, 0, 0.16); color: #9a5b00; }
.meta-flag.is-hold { background: rgba(0, 122, 255, 0.12); color: #0056b3; }
.meta-note { margin: 0; color: var(--muted); font-size: 12px; line-height: 1.45; }
.detail-rows { display: grid; gap: 0; margin: 0; }
.detail-rows div { display: grid; grid-template-columns: 120px 1fr; gap: 12px; padding: 10px 0; border-top: 1px solid rgba(60, 60, 67, 0.1); }
.detail-rows dt { color: var(--muted); font-size: 13px; }
.detail-rows dd { margin: 0; font-size: 14px; word-break: break-word; }
@media (max-width: 720px) {
  .head-side, .product-bar, .feed-facts { flex-wrap: wrap; white-space: normal; }
  .feed-body { flex-wrap: wrap; gap: 8px; }
  .feed-stat, .feed-stat + .feed-stat { margin-left: 0; }
  .product-row.has-edit { grid-template-columns: 52px minmax(0, 1fr); }
  .product-edit { grid-column: 2 / -1; justify-self: start; }
  .product-hero { grid-template-columns: 120px minmax(0, 1fr); }
  .product-detail img { width: 120px; height: 120px; }
  .meta-row { grid-template-columns: 1fr; gap: 4px; }
}
.template-page { display: grid; gap: 22px; }
.template-group { display: grid; gap: 12px; }
.template-group h2 { margin: 0; font-size: 15px; }
.template-use { width: 100%; }
.design-copy { min-width: 0; flex: 1; display: grid; gap: 2px; }
.design-copy h2 { font-size: 15px; }
.design-thumb {
  position: relative;
  width: 100%;
  aspect-ratio: 1;
  overflow: hidden;
  border-radius: 12px;
  container-type: inline-size;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.35);
}
.thumb-layer { position: absolute; overflow: hidden; pointer-events: none; }
.thumb-layer img { width: 100%; height: 100%; display: block; }
.thumb-empty {
  width: 100%;
  height: 100%;
  background: repeating-linear-gradient(45deg, rgba(255, 255, 255, 0.18), rgba(255, 255, 255, 0.18) 6px, rgba(255, 255, 255, 0.05) 6px, rgba(255, 255, 255, 0.05) 12px);
}
.info-btn {
  width: 28px;
  height: 28px;
  min-width: 28px;
  padding: 0;
  border-radius: 50%;
  background: rgba(0, 122, 255, 0.12);
  color: var(--blue);
  font-family: Georgia, "Iowan Old Style", serif;
  font-style: italic;
  font-weight: 600;
  font-size: 15px;
  flex: none;
}
.info-btn:hover { background: rgba(0, 122, 255, 0.2); }
.info-menu {
  position: absolute;
  right: 0;
  top: calc(100% + 6px);
  z-index: 3;
  min-width: 148px;
  display: grid;
  gap: 2px;
  padding: 6px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.78);
  border: 1px solid var(--glass-edge);
  box-shadow: var(--shadow);
  backdrop-filter: blur(24px) saturate(1.6);
  -webkit-backdrop-filter: blur(24px) saturate(1.6);
}
.info-menu[hidden] { display: none; }
.info-menu button {
  width: 100%;
  justify-content: flex-start;
  height: 34px;
  background: transparent;
  color: var(--ink);
  border-radius: 8px;
}
.info-menu button:hover { background: rgba(0, 0, 0, 0.05); }
.info-menu .danger { width: 100%; justify-content: flex-start; color: var(--red); }
.info-menu .danger:hover { background: #fff1f0; }
.card > button { justify-self: start; }
.card-top, .row-between { display: flex; justify-content: space-between; gap: 12px; align-items: center; }
.stats { display: flex; gap: 8px; align-items: center; color: var(--muted); font-size: 13px; }
.stats span + span::before { content: "·"; margin-right: 8px; color: #c7c7cc; }
.meta { color: var(--muted); font-size: 13px; margin: 0; }
.actions { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; margin-top: 4px; }
.pill, .badge {
  display: inline-flex;
  align-items: center;
  height: 22px;
  padding: 0 8px;
  border-radius: 99px;
  border: 1px solid rgba(255, 255, 255, 0.7);
  background: rgba(0, 122, 255, 0.12);
  font-size: 11px;
  letter-spacing: 0.02em;
  text-transform: none;
  color: var(--blue);
  font-weight: 600;
}
.badge.live { background: rgba(52, 199, 89, 0.16); color: var(--green); }
.url-box { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 8px; }
.url-box input {
  font-family: ui-monospace, "SF Mono", Menlo, monospace;
  font-size: 12px;
  background: rgba(255, 255, 255, 0.4);
}
.badge.ready { background: rgba(255, 149, 0, 0.14); color: #b25000; }
.campaign-sheet { padding: 18px; gap: 14px; max-width: 720px; }
.campaign-sheet h2 { margin: 0; font-size: 16px; }
.campaign-sheet .field, .catalog-link .field { font-size: 13px; font-weight: 600; color: var(--muted); }
.campaign-page { display: grid; gap: 16px; align-content: start; }
.campaign-page > .campaign-sheet, .campaign-page > .catalog-link { max-width: 720px; }
.catalog-link { padding: 18px; gap: 12px; background: radial-gradient(360px 200px at 100% 0%, rgba(0, 122, 255, 0.12), transparent 70%), var(--glass-strong); }
.catalog-link-top { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; }
.catalog-link h2 { margin: 0 0 4px; font-size: 16px; }
.catalog-link .meta { margin: 0; }
.live-page { place-content: center; }
.live-sheet { max-width: 720px; width: min(720px, 100%); margin: 0 auto; padding: 32px; gap: 18px; }
.live-sheet h2 { font-size: 28px; }
.live-sheet .meta { font-size: 15px; max-width: 36em; }
.catalog-now { flex: none; padding: 4px 10px; border-radius: 999px; font-size: 12px; font-weight: 600; color: var(--muted); background: rgba(60, 60, 67, 0.08); }
.catalog-now.is-live { color: var(--green); background: rgba(52, 199, 89, 0.14); }
.campaign-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.card.is-live-campaign { border-color: rgba(52, 199, 89, 0.45); box-shadow: 0 0 0 3px rgba(52, 199, 89, 0.1), var(--shadow); }
.link-page { display: grid; gap: 14px; width: 100%; align-content: start; }
.link-page > .meta { margin: 0; }
.link-urls { display: grid; gap: 16px; padding: 18px 20px; }
.link-channel { display: grid; gap: 8px; }
.link-channel + .link-channel { padding-top: 14px; border-top: 1px solid var(--line); }
.link-channel h3 { margin: 0; font-size: 15px; }
.channel-block { display: grid; gap: 8px; }
.channel-block + .channel-block { margin-top: 8px; padding-top: 16px; border-top: 1px solid var(--line); }
.channel-title { display: flex; align-items: center; gap: 8px; }
.channel-title h3 { margin: 0; font-size: 16px; }
.channel-tag { font-size: 11px; font-weight: 600; color: var(--blue); }
.channel-tag.is-optional { color: var(--muted); font-weight: 500; }
.channel-hint { margin: 0; font-size: 12px; font-weight: 400; color: rgba(110, 110, 115, 0.72); }
.channel-lines { display: grid; }
.channel-line { display: flex; justify-content: space-between; gap: 12px; padding: 10px 0; border-top: 1px solid var(--line); }
.channel-line strong { font-size: 14px; }
.channel-line span { color: var(--muted); font-size: 14px; }
.link-list { display: grid; gap: 10px; }
.link-row { display: grid; grid-template-columns: minmax(220px, 1fr) minmax(240px, 1.2fr); gap: 16px; align-items: center; padding: 18px 20px; }
.link-row.is-live { box-shadow: inset 0 0 0 1px rgba(52, 199, 89, 0.45); }
.link-copy { display: grid; gap: 4px; min-width: 0; }
.link-copy h2 { margin: 0; font-size: 18px; }
.link-copy .meta, .link-note { margin: 0; }
.link-note { color: var(--muted); font-size: 14px; }
.camp-list { display: grid; gap: 10px; width: 100%; max-width: none; align-content: start; flex: 1; }
.camp-row { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 18px 20px; }
.camp-row:hover { background: var(--glass-strong); }
.camp-copy { display: grid; gap: 7px; min-width: 0; flex: 1; }
.camp-title { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.camp-facts { display: flex; flex-wrap: wrap; gap: 6px; }
.camp-job { display: grid; gap: 8px; margin-top: 12px; padding: 12px 14px; border-radius: 12px; background: var(--blue-soft); }
.camp-job-top { display: flex; justify-content: space-between; gap: 12px; font-size: 13px; }
.camp-job-top strong { font-weight: 600; }
.camp-job p { margin: 0; color: var(--muted); font-size: 12px; line-height: 1.4; }
.camp-job .bar { background: rgba(255, 255, 255, 0.72); }
.publish-screen { width: min(560px, 100%); }
.publish-card { display: grid; gap: 16px; padding: 28px; }
.publish-card h2 { margin: 0; font-size: 22px; letter-spacing: -0.03em; }
.publish-store { margin: 0; color: var(--muted); font-size: 13px; }
.publish-figure { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.publish-figure strong { font-size: 48px; letter-spacing: -0.05em; line-height: 1; }
.publish-figure span { color: var(--muted); font-size: 15px; }
.publish-card .bar { height: 8px; }
.publish-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(120px, 1fr)); gap: 10px; }
.publish-stat { display: grid; gap: 2px; padding: 12px 14px; border-radius: 12px; background: rgba(60, 60, 67, 0.05); }
.publish-stat span { color: var(--muted); font-size: 12px; }
.publish-stat strong { font-size: 16px; }
.camp-fact { padding: 4px 9px; border-radius: 999px; background: rgba(60, 60, 67, 0.06); color: var(--muted); font-size: 12px; font-weight: 500; }
.camp-fact.is-warn { background: rgba(255, 59, 48, 0.12); color: #d70015; }
.camp-fact.is-warn::before { content: "!"; display: inline-grid; place-items: center; width: 14px; height: 14px; margin-right: 6px; border-radius: 50%; background: #d70015; color: white; font-size: 10px; font-weight: 700; }
.camp-title h2 { margin: 0; font-size: 16px; }
.camp-title .badge {
  height: auto;
  padding: 4px 8px;
  background: rgba(0, 122, 255, 0.12);
  color: var(--blue);
}
.camp-title .badge.live { background: rgba(52, 199, 89, 0.16); color: var(--green); }
.camp-actions { display: flex; align-items: center; gap: 12px; flex: none; }
.switch { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 500; cursor: pointer; }
.switch input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.switch i { width: 40px; height: 24px; border-radius: 999px; background: rgba(60, 60, 67, 0.18); position: relative; transition: background .16s ease; }
.switch i::after { content: ""; position: absolute; top: 2px; left: 2px; width: 20px; height: 20px; border-radius: 50%; background: white; box-shadow: 0 1px 3px rgba(0,0,0,.18); transition: transform .16s ease; }
.switch input:checked + i { background: #34c759; }
.switch input:checked + i::after { transform: translateX(16px); }
.switch input:disabled + i { opacity: .45; }
.campaign-page.is-detail { max-width: none; display: grid; gap: 16px; }
.campaign-page.is-detail .assign-board { min-height: 520px; }
.shell.builder-open { grid-template-columns: minmax(0, 1fr); }
.shell.builder-open .side { display: none; }
.shell.builder-open #view { padding: 0; height: 100vh; display: flex; flex-direction: column; }
.builder-top {
  display: flex;
  align-items: center;
  gap: 12px;
  height: 56px;
  padding: 0 16px;
  border-bottom: 1px solid rgba(60, 60, 67, 0.14);
  background: rgba(255, 255, 255, 0.72);
  backdrop-filter: blur(22px) saturate(1.6);
}
.builder-top strong { flex: 1; font-size: 16px; }
.builder-body { flex: 1; min-height: 0; overflow: auto; padding: 20px 24px 28px; display: grid; gap: 16px; align-content: start; }
.builder-feeds { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 12px; }
.builder-feed { display: grid; gap: 4px; text-align: left; height: auto; padding: 16px; background: var(--glass); color: inherit; }
.builder-feed.on { box-shadow: 0 0 0 3px rgba(0, 122, 255, 0.18); border-color: rgba(0, 122, 255, 0.45); }
.builder-name { max-width: 480px; display: grid; gap: 12px; }
.camp-build { display: flex; flex-direction: column; gap: 16px; width: 100%; max-width: none; flex: 1; min-height: 0; }
.camp-build > .card { width: 100%; }
.camp-build > .camp-empty,
.camp-build > .camp-section,
.camp-build > .camp-filter { flex: 1; }
.setup-strip { margin: 0 0 16px; }
.setup-kicker {
  margin: 0 0 8px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--muted);
}
.setup-rail {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.setup-rail a,
.setup-rail span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 36px;
  padding: 0 12px 0 6px;
  border-radius: 999px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 500;
  text-decoration: none;
  background: rgba(255, 255, 255, 0.7);
  border: 1px solid transparent;
}
.setup-rail i {
  width: 22px;
  height: 22px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: rgba(60, 60, 67, 0.08);
  font-style: normal;
  font-size: 11px;
  font-weight: 700;
}
.setup-rail .is-on a { color: var(--blue); background: var(--blue-soft); border-color: rgba(0, 122, 255, 0.16); }
.setup-rail .is-on i { background: var(--blue); color: white; }
.setup-rail .is-done a,
.setup-rail .is-done span { color: var(--green); }
.setup-rail .is-done i { background: rgba(52, 199, 89, 0.16); color: var(--green); }
.setup-rail .is-wait span { opacity: 0.55; }

.camp-rail {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.camp-rail li {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 34px;
  padding: 0 12px 0 6px;
  border-radius: 999px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 500;
  background: rgba(255, 255, 255, 0.55);
  border: 1px solid transparent;
}
.camp-rail li i {
  width: 22px;
  height: 22px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: rgba(60, 60, 67, 0.08);
  color: inherit;
  font-style: normal;
  font-size: 11px;
  font-weight: 700;
}
.camp-rail li.is-on { color: var(--blue); background: var(--blue-soft); border-color: rgba(0, 122, 255, 0.16); }
.camp-rail li.is-on i { background: var(--blue); color: white; }
.camp-rail li.is-done { color: var(--green); }
.camp-rail li.is-done i { background: rgba(52, 199, 89, 0.16); color: var(--green); }
.camp-empty {
  min-height: 0;
  place-content: center;
  justify-items: start;
  gap: 22px;
  padding: 48px 56px;
  background:
    radial-gradient(620px 320px at 100% 0%, rgba(0, 122, 255, 0.16), transparent 70%),
    var(--glass-strong);
}
.camp-empty > button { height: 42px; padding: 0 20px; }
.camp-name .field { width: min(560px, 100%); }
.camp-name input { height: 48px; font-size: 17px; }
.camp-step-head { display: flex; align-items: flex-start; gap: 16px; }
.camp-step-no {
  flex: none;
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  background: var(--blue-soft);
  color: var(--blue);
  font-size: 15px;
  font-weight: 700;
  letter-spacing: -0.03em;
}
.camp-step-head .kicker { margin: 0 0 4px; }
.camp-step-head h2 { margin: 0 0 6px; font-size: 26px; }
.camp-step-head .meta { margin: 0; max-width: 38em; font-size: 15px; }
.camp-section { padding: 24px; gap: 18px; }
.camp-section-top { display: flex; justify-content: space-between; align-items: center; gap: 16px; }
.camp-section-top h2 { margin: 0; font-size: 18px; }
.camp-section-top .meta { margin: 4px 0 0; }
.camp-stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.camp-stat { padding: 18px 20px; gap: 4px; }
.camp-stat:nth-child(1) { background: radial-gradient(180px 80px at 100% 0%, rgba(52, 199, 89, 0.14), transparent 70%), var(--glass); }
.camp-stat:nth-child(2) { background: radial-gradient(180px 80px at 100% 0%, rgba(255, 149, 0, 0.14), transparent 70%), var(--glass); }
.camp-stat:nth-child(3) { background: radial-gradient(180px 80px at 100% 0%, rgba(0, 122, 255, 0.12), transparent 70%), var(--glass); }
.camp-stat.is-warn { background: radial-gradient(180px 80px at 100% 0%, rgba(255, 59, 48, 0.16), transparent 70%), var(--glass); }
.camp-stat.is-warn strong { color: #d70015; }
.camp-stat.is-warn span::before { content: "! "; font-weight: 700; color: #d70015; }
.camp-stat.is-clear strong { color: var(--green); }
.camp-stat strong { font-size: 30px; letter-spacing: -0.04em; }
.camp-stat span { color: var(--muted); font-size: 13px; }
.camp-lines { display: grid; gap: 8px; }
.camp-line { display: grid; grid-template-columns: 64px minmax(0, 1fr) auto; align-items: center; gap: 14px; padding: 10px 8px; border-radius: 16px; }
.camp-line:hover { background: rgba(255, 255, 255, 0.55); }
.camp-line .design-thumb { width: 64px; height: 64px; border-radius: 12px; overflow: hidden; box-shadow: inset 0 0 0 1px var(--line); }
.camp-line div { display: grid; gap: 2px; }
.camp-foot { display: flex; justify-content: flex-end; gap: 8px; padding-top: 4px; }
.filter-board { display: grid; gap: 14px; }
.filter-board .product-pager { margin-top: 2px; }
.camp-filter { padding: 16px; gap: 14px; }
.pick-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 12px; }
.pick-card {
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr);
  justify-content: stretch;
  white-space: normal;
  min-width: 0;
  align-items: center;
  gap: 12px;
  height: auto;
  padding: 14px;
  text-align: left;
  background: rgba(255, 255, 255, 0.72);
  color: inherit;
  border: 1px solid var(--line);
  border-radius: 16px;
}
.pick-card.has-thumb { grid-template-columns: minmax(0, 1fr); gap: 10px; padding: 10px; }
.pick-card .design-thumb { width: 100%; aspect-ratio: 1; border-radius: 12px; overflow: hidden; }
.pick-mark {
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  background: var(--blue-soft);
  color: var(--blue);
  font-size: 18px;
  font-weight: 700;
}
.pick-copy { display: grid; gap: 2px; min-width: 0; }
.pick-card.has-thumb .pick-copy { padding: 0 4px 4px; }
.pick-copy span { color: var(--muted); font-size: 12px; }
.pick-card.on { border-color: var(--blue); box-shadow: 0 0 0 3px rgba(0, 122, 255, 0.14); }
.pick-card:hover { background: white; }
.camp-meta {
  display: grid;
  grid-template-columns: minmax(180px, 240px) minmax(0, 1fr) auto;
  gap: 12px;
  align-items: end;
}
.camp-picked { display: grid; gap: 2px; padding: 8px 0; }
.camp-picked .quiet { justify-self: start; }
.assign-board { display: grid; grid-template-rows: auto auto minmax(360px, 1fr); gap: 12px; min-height: 0; }
.assign-bar { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.assign-chips { display: flex; flex-wrap: wrap; gap: 8px; flex: 1; }
.assign-chip {
  height: 34px;
  padding: 0 12px;
  background: rgba(255, 255, 255, 0.7);
  color: var(--ink);
  border: 1px solid var(--line);
}
.assign-chip.on { background: var(--blue); color: white; border-color: transparent; }
.assign-chip.on:hover { background: var(--blue-deep); }
.assign-filters { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; padding: 10px; border-radius: 14px; background: rgba(255, 255, 255, 0.58); border: 1px solid var(--line); }
.assign-filters input, .assign-filters select {
  height: 40px;
  border-radius: 10px;
  border: 1px solid var(--line);
  padding: 0 12px;
  background: rgba(255, 255, 255, 0.88);
}
.assign-filters input { min-width: min(100%, 220px); flex: 1; }
.assign-tally { color: var(--muted); font-size: 13px; font-weight: 500; white-space: nowrap; }
.assign-work { display: grid; grid-template-columns: minmax(0, 1fr) 220px; gap: 16px; min-height: 0; }
.assign-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(132px, 1fr)); gap: 10px; overflow: auto; align-content: start; padding-right: 4px; }
.assign-item {
  position: relative;
  display: grid;
  gap: 6px;
  height: auto;
  padding: 8px;
  text-align: left;
  background: rgba(255, 255, 255, 0.78);
  color: inherit;
  border: 1px solid var(--line);
}
.assign-item img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 8px; background: #eee; }
.assign-item i {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 0 0 1px var(--line);
}
.assign-item i.is-on { background: var(--blue) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='m4.4 8.2 2.3 2.2 5-5.2' fill='none' stroke='white' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 12px no-repeat; box-shadow: none; }
.assign-item strong { font-size: 12px; line-height: 1.3; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.assign-item span { font-size: 11px; color: var(--muted); }
.assign-item.is-on { border-color: rgba(0, 122, 255, 0.35); }
.assign-item.is-current { border-color: var(--blue); box-shadow: 0 0 0 3px rgba(0, 122, 255, 0.12); }
.assign-item.is-taken { opacity: 0.45; cursor: default; }
.assign-item.is-taken:hover { background: rgba(255, 255, 255, 0.72); }
.assign-preview { display: grid; gap: 8px; align-content: start; }
.assign-preview .design-thumb { width: 100%; border-radius: 12px; overflow: hidden; }
@media (max-width: 980px) {
  .assign-work, .camp-meta, .assign-filters { grid-template-columns: minmax(0, 1fr); }
  .camp-row, .link-row { flex-direction: column; align-items: stretch; }
  .link-row { grid-template-columns: 1fr; }
}
.back, .editor-back {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  width: auto;
  height: 34px;
  margin: 0 0 12px;
  padding: 0 12px 0 8px;
  border-radius: 10px;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.62);
  border: 1px solid rgba(60, 60, 67, 0.14);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.9), 0 1px 2px rgba(28, 32, 48, 0.04);
  backdrop-filter: blur(16px) saturate(1.5);
  -webkit-backdrop-filter: blur(16px) saturate(1.5);
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
  white-space: nowrap;
}
.editor-top .back, .editor-top .editor-back { margin: 0; }
.back svg, .editor-back svg { width: 16px; height: 16px; color: var(--blue); flex: none; }
.back:hover, .editor-back:hover { background: white; color: var(--ink); }
.modal {
  position: fixed;
  inset: 0;
  background: rgba(232, 236, 244, 0.35);
  display: grid;
  place-items: center;
  padding: 24px;
  z-index: 5;
  backdrop-filter: blur(18px) saturate(1.4);
  -webkit-backdrop-filter: blur(18px) saturate(1.4);
}
.modal form, .modal .sheet {
  width: min(420px, 100%);
  background: rgba(255, 255, 255, 0.62);
  border: 1px solid var(--glass-edge);
  border-radius: 22px;
  padding: 22px;
  display: grid;
  gap: 12px;
  box-shadow: var(--shadow);
  backdrop-filter: blur(32px) saturate(1.8);
  -webkit-backdrop-filter: blur(32px) saturate(1.8);
}
.modal.is-link .sheet { width: min(640px, 100%); }
.modal.is-wide .sheet { width: min(1080px, 100%); max-height: calc(100vh - 48px); overflow: auto; }
.modal.is-wide .assign-board { height: min(520px, calc(100vh - 240px)); }
.modal.is-ask .sheet { width: min(440px, 100%); }
.modal.is-ask .actions { display: flex; justify-content: flex-end; gap: 8px; }
.modal.is-ask .ask-yes { background: #e5484d; color: white; }
.modal.is-ask .ask-yes:hover { background: #d03c41; }
.modal.is-ikas form { width: min(480px, 100%); }
.modal.is-xml form { width: min(520px, 100%); max-height: calc(100vh - 48px); overflow: auto; }
.modal .pick { display: grid; gap: 8px; }
.modal .pick button { width: 100%; }
.xml-map { display: grid; gap: 10px; }
.xml-map[hidden] { display: none; }
.ikas-title { display: flex; align-items: center; gap: 12px; }
.ikas-title h2 { margin: 0; }
.ikas-mark {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: #fff1ea;
  display: grid;
  place-items: center;
  flex: none;
}
.modal .lead { margin: 0; color: var(--ink); font-size: 14px; line-height: 1.45; font-weight: 400; }
.modal .hint, .integ-form .hint { margin: -4px 0 0; color: var(--muted); font-size: 13px; font-weight: 400; }
.store-line {
  display: flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding-right: 12px;
}
.store-line:focus-within { background: white; border-color: var(--blue); }
.modal .store-line input, .integ-form .store-line input {
  border: 0;
  background: transparent;
  width: 1%;
  flex: 1;
  min-width: 0;
  box-shadow: none;
}
.modal .store-line input:focus, .integ-form .store-line input:focus { border: 0; background: transparent; }
.store-line span { color: #8e8e93; font-size: 14px; white-space: nowrap; }
.integ-page { display: grid; gap: 16px; }
.integ-form { display: grid; gap: 14px; max-width: 780px; }
.integ-inputs { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 14px; }
.xml-map-grid { grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 12px 16px; padding-top: 4px; }
.plat-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 12px; }
.plat-card {
  display: grid;
  gap: 12px;
  align-content: start;
  justify-content: stretch;
  justify-items: stretch;
  white-space: normal;
  min-width: 0;
  height: auto;
  min-height: 138px;
  padding: 16px;
  text-align: left;
  background: rgba(255, 255, 255, 0.72);
  color: inherit;
  border: 1px solid var(--line);
  border-radius: 18px;
  transition: border-color 0.15s, box-shadow 0.15s, background 0.15s;
}
.plat-card:hover { background: white; }
.plat-card.on { border-color: var(--blue); background: white; box-shadow: 0 0 0 3px rgba(0, 122, 255, 0.14); }
.plat-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.plat-mark {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: -0.03em;
  background: var(--blue-soft);
  color: var(--blue);
}
.plat-card.is-shopify .plat-mark { background: #eaf7e8; color: #2e7d32; }
.plat-card.is-ikas .plat-mark { background: #fff1ea; color: #ff5a26; }
.plat-card.is-ticimax .plat-mark { background: #eef2ff; color: #3b5bdb; }
.plat-card.is-ideasoft .plat-mark { background: #e6fcf5; color: #0ca678; }
.plat-card.is-tsoft .plat-mark { background: #fff4e6; color: #e8590c; }
.plat-badge {
  font-size: 11px;
  font-weight: 600;
  padding: 4px 9px;
  border-radius: 999px;
  background: rgba(60, 60, 67, 0.06);
  color: var(--muted);
}
.plat-card.on .plat-badge { background: var(--blue-soft); color: var(--blue); }
.plat-copy { display: grid; gap: 4px; min-width: 0; }
.plat-badge { white-space: nowrap; }
.plat-copy strong { font-size: 15px; font-weight: 600; color: var(--ink); }
.plat-copy span { font-size: 12.5px; line-height: 1.45; color: var(--muted); font-weight: 400; }
.modal .actions { justify-content: flex-end; }
.modal .catalog-link { display: grid; gap: 12px; }
.modal .catalog-link h2 { font-size: 22px; }
.bar { height: 4px; background: #e5e5ea; border-radius: 99px; overflow: hidden; }
.bar span { display: block; height: 100%; width: 0; background: var(--blue); }
.empty {
  grid-column: 1 / -1;
  padding: 40px 20px;
  border: 1px dashed var(--line-strong);
  border-radius: 16px;
  color: var(--muted);
  text-align: center;
  background: rgba(255, 255, 255, 0.55);
}
.empty::before { content: none; }

#view:has(.editor) {
  display: block;
  overflow: hidden;
  height: 100vh;
  padding: 0;
  background: transparent;
}
.shell.editor-open { grid-template-columns: minmax(0, 1fr); }
.shell.editor-open .side { display: none; }
.editor { display: grid; grid-template-rows: 56px minmax(0, 1fr); gap: 0; height: 100vh; }
.editor-top { display: flex; gap: 12px; align-items: center; padding: 0 16px; border-bottom: 1px solid rgba(60, 60, 67, 0.14); background: rgba(255, 255, 255, 0.72); backdrop-filter: blur(22px) saturate(1.6); -webkit-backdrop-filter: blur(22px) saturate(1.6); }
.editor-id { display: flex; align-items: center; gap: 8px; min-width: 0; }
.name-field {
  display: flex;
  align-items: center;
  gap: 8px;
  height: 34px;
  width: 220px;
  max-width: 42vw;
  padding: 0 10px 0 12px;
  border-radius: 10px;
  background: #fff;
  border: 1px solid rgba(60, 60, 67, 0.18);
  box-shadow: inset 0 1px 2px rgba(28, 32, 48, 0.04);
  cursor: text;
}
.name-field:focus-within {
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(0, 122, 255, 0.16);
}
.name-field input {
  flex: 1;
  min-width: 0;
  border: 0;
  background: transparent;
  font-family: inherit;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: -0.02em;
  height: 32px;
  padding: 0;
  box-shadow: none;
}
.name-field input:focus { outline: none; }
.name-field svg { flex: none; color: var(--muted); }
.editor-top .history { display: flex; gap: 2px; margin-left: auto; border: 0; padding: 0; }
.history .icon { width: 32px; padding: 0; color: var(--ink); }
.history .flip svg { transform: scaleX(-1); }
.history button:disabled { opacity: 0.35; cursor: default; }
.editor-top > button:last-child {
  flex: none;
  height: 32px;
  border-radius: 10px;
  padding: 0 14px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.35);
}
.stage-col { display: grid; grid-template-rows: minmax(0, 1fr); min-width: 0; min-height: 0; overflow: hidden; }
.stage-frame { position: relative; min-width: 0; min-height: 0; height: 100%; overflow: hidden; }
.editor-body { display: grid; grid-template-columns: 280px minmax(0, 1fr) 300px; gap: 0; min-height: 0; }
.rail {
  min-width: 0;
  min-height: 0;
  display: flex;
  flex-direction: column;
  background: rgba(255, 255, 255, 0.78);
  border-right: 1px solid rgba(60, 60, 67, 0.14);
}
.rail-tabs { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-bottom: 1px solid rgba(60, 60, 67, 0.12); }
.rail-tabs button {
  height: 44px;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: var(--muted);
  font-weight: 500;
  border-bottom: 2px solid transparent;
}
.rail-tabs button:hover { background: transparent; color: var(--ink); }
.rail-tabs button.on { color: var(--blue); border-bottom-color: var(--blue); background: transparent; }
.rail-body { flex: 1; min-height: 0; overflow: auto; padding: 14px; display: grid; align-content: start; gap: 12px; }
.rail h3 { margin: 4px 0 0; font-size: 12px; letter-spacing: 0.04em; text-transform: uppercase; color: var(--muted); }
.rail .field { gap: 4px; }
.add-grid, .feed-images, .asset-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.add-card {
  height: 78px;
  display: grid;
  gap: 7px;
  justify-items: center;
  align-content: center;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.62);
  color: var(--ink);
  border: 1px solid rgba(60, 60, 67, 0.1);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.9);
  font-size: 13px;
  font-weight: 500;
  white-space: normal;
}
.add-card:hover { background: white; border-color: rgba(0, 122, 255, 0.28); }
.add-glyph {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  background: var(--blue-soft);
  color: var(--blue);
  display: grid;
  place-items: center;
}
.rail .ghost.wide { width: 100%; height: 36px; border-radius: 12px; }
.feed-image, .feed-field, .asset-card {
  background: rgba(255, 255, 255, 0.72);
  color: var(--ink);
  border: 1px solid rgba(60, 60, 67, 0.1);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.85);
  white-space: normal;
}
.feed-image:hover, .feed-field:hover, .asset-card:hover { background: white; border-color: rgba(0, 122, 255, 0.22); }
.feed-image, .asset-card {
  display: grid;
  gap: 6px;
  height: auto;
  padding: 8px;
  border-radius: 12px;
  justify-items: stretch;
}
.feed-image img, .asset-card img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 8px; background: #f2f2f7; }
.feed-image span { font-size: 12px; color: var(--muted); text-align: left; }
.feed-fields { display: grid; gap: 8px; }
.feed-field {
  display: grid;
  gap: 2px;
  height: auto;
  padding: 10px 12px;
  border-radius: 12px;
  justify-content: start;
  text-align: left;
}
.feed-key { font-size: 11px; color: var(--muted); font-weight: 500; }
.feed-field strong {
  font-size: 13px;
  font-weight: 600;
  line-height: 1.35;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.product-search { height: 36px; border-radius: 10px; border: 1.5px solid rgba(60, 60, 67, 0.38); padding: 0 10px; background: white; }
.board {
  background: rgba(246, 247, 251, 0.96);
  border: 0;
  border-radius: 0;
  overflow: auto;
  width: 100%;
  min-width: 0;
  height: 100%;
  max-height: none;
  min-height: 0;
}
.board-fit {
  box-sizing: border-box;
  min-width: 100%;
  min-height: 100%;
  width: max-content;
  height: max-content;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 28px 64px 52px 28px;
}
.board.panning, .board.panning .layer { cursor: grab; }
.zoom {
  position: absolute;
  left: 14px;
  bottom: 14px;
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 4px;
  border-radius: 12px;
  background: var(--glass-strong);
  border: 1px solid var(--glass-edge);
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px) saturate(1.5);
  -webkit-backdrop-filter: blur(18px) saturate(1.5);
  z-index: 2;
}
.zoom button {
  width: 28px;
  height: 28px;
  padding: 0;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: var(--ink);
  font-size: 18px;
}
.zoom button:hover { background: rgba(255, 255, 255, 0.7); }
.zoom span { min-width: 42px; text-align: center; font-size: 13px; font-weight: 600; color: var(--ink); }
.canvas { position: relative; background: white; box-shadow: 0 12px 40px rgba(0, 0, 0, 0.12); border-radius: 2px; }
.layer { position: absolute; overflow: hidden; cursor: move; user-select: none; }
.layer.selected { outline: 2px solid var(--blue); outline-offset: 0; }
.layer img { width: 100%; height: 100%; pointer-events: none; }
.layer span { width: 100%; pointer-events: none; }
.handle {
  position: absolute;
  width: 11px;
  height: 11px;
  margin: -6px 0 0 -6px;
  background: white;
  border: 1.5px solid #1d1d1f;
  border-radius: 2px;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.18);
  pointer-events: auto;
}
.handle.nw { left: 0; top: 0; }
.handle.n { left: 50%; top: 0; }
.handle.ne { left: 100%; top: 0; }
.handle.e { left: 100%; top: 50%; }
.handle.se { left: 100%; top: 100%; }
.handle.s { left: 50%; top: 100%; }
.handle.sw { left: 0; top: 100%; }
.handle.w { left: 0; top: 50%; }
.chrome { position: absolute; pointer-events: none; z-index: 3; }
.rotator {
  position: absolute;
  left: calc(100% + 22px);
  top: 50%;
  width: 22px;
  height: 22px;
  margin-top: -11px;
  padding: 0;
  border-radius: 50%;
  border: 1.5px solid #1d1d1f;
  background: white;
  color: #1d1d1f;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.18);
  pointer-events: auto;
  cursor: grab;
}
.rotator:hover, .rotator:active { background: white; cursor: grabbing; }
.angle-badge {
  position: absolute;
  left: calc(100% + 22px);
  top: calc(50% - 32px);
  transform: none;
  background: var(--blue);
  color: white;
  font-size: 11px;
  font-weight: 600;
  line-height: 1.4;
  border-radius: 6px;
  padding: 1px 6px;
}
.placeholder {
  width: 100%;
  height: 100%;
  display: grid;
  place-items: center;
  color: var(--muted);
  background: repeating-linear-gradient(45deg, #f5f5f7, #f5f5f7 8px, #ececf1 8px, #ececf1 16px);
  font-size: 11px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.props {
  position: relative;
  z-index: 1;
  background: rgba(255, 255, 255, 0.96);
  border: 0;
  border-left: 1px solid rgba(60, 60, 67, 0.14);
  border-radius: 0;
  padding: 0;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  min-height: 0;
  backdrop-filter: blur(26px) saturate(1.7);
  -webkit-backdrop-filter: blur(26px) saturate(1.7);
}
.props-tabs { display: grid; grid-template-columns: 1fr 1fr; flex: none; border-bottom: 1px solid rgba(60, 60, 67, 0.12); }
.props-tabs button {
  height: 44px;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: var(--muted);
  font-weight: 500;
  border-bottom: 2px solid transparent;
}
.props-tabs button:hover { background: transparent; color: var(--ink); }
.props-tabs button.on { color: var(--blue); border-bottom-color: var(--blue); background: transparent; }
.props-pane {
  flex: 1;
  min-height: 0;
  overflow: auto;
  padding: 14px;
  display: grid;
  align-content: start;
  gap: 12px;
}
.props input, .props select {
  border: 1.5px solid rgba(60, 60, 67, 0.38);
  background: rgba(255, 255, 255, 0.86);
}
.place-row { display: flex; align-items: center; gap: 10px; }
.place-xy { flex: 1; min-width: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.place-row .field { gap: 4px; font-size: 12px; }
.place-row .field input { height: 32px; padding: 0 8px; font-size: 13px; border-radius: 8px; }
.align-grid { display: grid; grid-template-columns: repeat(3, 18px); gap: 2px; flex: none; }
.align-grid button {
  position: relative;
  width: 18px;
  height: 18px;
  min-height: 0;
  padding: 0;
  border-radius: 4px;
  border: 1px solid rgba(60, 60, 67, 0.38);
  background: rgba(255, 255, 255, 0.86);
  color: var(--ink);
}
.align-grid button:hover { background: white; }
.align-btn .mark {
  position: absolute;
  width: 5px;
  height: 5px;
  border: 1.5px solid currentColor;
  border-radius: 1px;
}
.align-btn.tl .mark { left: 2px; top: 2px; }
.align-btn.t .mark { left: 50%; top: 2px; margin-left: -2.5px; }
.align-btn.tr .mark { right: 2px; top: 2px; }
.align-btn.l .mark { left: 2px; top: 50%; margin-top: -2.5px; }
.align-btn.c .mark { left: 50%; top: 50%; margin: -2.5px 0 0 -2.5px; }
.align-btn.r .mark { right: 2px; top: 50%; margin-top: -2.5px; }
.align-btn.bl .mark { left: 2px; bottom: 2px; }
.align-btn.b .mark { left: 50%; bottom: 2px; margin-left: -2.5px; }
.align-btn.br .mark { right: 2px; bottom: 2px; }
.guide { position: absolute; background: #007aff; pointer-events: none; z-index: 4; }
.guide.v { top: 0; bottom: 0; width: 1px; }
.guide.h { left: 0; right: 0; height: 1px; }
.props-empty { margin: 0; color: var(--muted); font-size: 13px; }
.props h3 {
  margin: 0;
  font-family: inherit;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--muted);
}
.layer.locked { cursor: default; }
.layers { display: grid; gap: 0; align-content: start; }
.layer-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 28px;
  align-items: center;
  border-radius: 6px;
  position: relative;
}
.layer-row:not(:last-child)::after {
  content: "";
  position: absolute;
  left: 10px;
  right: 8px;
  bottom: 0;
  height: 1px;
  background: rgba(60, 60, 67, 0.16);
  pointer-events: none;
}
.layer-row.on { background: var(--blue-soft); }
.layer-row.dragging { opacity: 0.4; }
.layer-row.drop { box-shadow: inset 0 2px 0 var(--blue); }
.layers .layer-name {
  background: transparent;
  color: var(--ink);
  text-align: left;
  justify-content: flex-start;
  border: 0;
  border-radius: 8px;
  height: 32px;
  padding: 0 10px;
  font-weight: 500;
  cursor: grab;
  min-width: 0;
}
.layer-row.on .layer-name { color: var(--blue); }
.layers .layer-name:hover { background: transparent; }
.layer-row:hover { background: #f5f5f7; }
.layer-row.on:hover { background: var(--blue-soft); }
.layers .lock {
  width: 28px;
  height: 28px;
  padding: 0;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: rgba(60, 60, 67, 0.38);
}
.layers .lock:hover { background: rgba(0, 0, 0, 0.05); color: var(--ink); }
.layers .lock.locked { color: var(--ink); }
.props-fields.is-locked { opacity: 0.55; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.text-settings {
  display: grid;
  gap: 8px;
  padding-top: 12px;
  border-top: 1px solid rgba(60, 60, 67, 0.12);
}
.text-settings > h3 { margin-bottom: -2px; }
.shape-settings {
  display: grid;
  gap: 8px;
  padding-top: 12px;
  border-top: 1px solid rgba(60, 60, 67, 0.12);
}
.shape-settings > h3 { margin-bottom: -2px; }
.surface-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  align-items: center;
  gap: 8px;
  height: 40px;
  padding: 0 8px 0 12px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.78);
  border: 1px solid rgba(60, 60, 67, 0.12);
}
.surface-name { font-size: 13px; font-weight: 500; }
.surface-hex {
  font-size: 12px;
  color: var(--muted);
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.03em;
}
.surface-row input[type="number"] {
  width: 52px;
  height: 26px;
  padding: 0 6px;
  border-radius: 8px;
  font-size: 13px;
  text-align: center;
}
.surface-row input[type="color"] {
  -webkit-appearance: none;
  appearance: none;
  width: 22px;
  height: 22px;
  padding: 0;
  border: 1px solid rgba(60, 60, 67, 0.18);
  border-radius: 50%;
  background: transparent;
  cursor: pointer;
}
.surface-row input[type="color"]::-webkit-color-swatch-wrapper { padding: 0; }
.surface-row input[type="color"]::-webkit-color-swatch { border: 0; border-radius: 50%; }
.text-settings .field { gap: 4px; font-size: 12px; }
.text-settings .switch { display: flex; margin: 2px 0 4px; }
.text-settings .field input,
.text-settings .field select { height: 34px; padding: 0 10px; font-size: 13px; border-radius: 8px; }
.text-settings .color-field {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 34px;
  padding: 0 6px 0 10px;
  border: 1px solid rgba(60, 60, 67, 0.16);
  border-radius: 8px;
  background: #fff;
}
.text-settings .color-field input[type="color"] {
  width: 22px;
  height: 22px;
  padding: 0;
  border: 0;
  border-radius: 6px;
}
.type-toggles {
  display: flex;
  flex-wrap: wrap;
  gap: 3px;
  padding: 3px;
  background: rgba(255, 255, 255, 0.46);
  border: 1px solid rgba(60, 60, 67, 0.1);
  border-radius: 12px;
}
.style-row, .align-row { display: grid; }
.style-row { grid-template-columns: repeat(5, minmax(0, 1fr)); }
.align-row { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.style-row .type-toggle, .align-row .type-toggle { width: 100%; padding: 0; }
.style-glyph { font-size: 14px; line-height: 1; pointer-events: none; }
.style-glyph.bold { font-weight: 700; }
.style-glyph.italic { font-family: "Times New Roman", Times, serif; font-style: italic; font-weight: 600; }
.style-glyph.underline { text-decoration: underline; text-underline-offset: 2px; }
.style-glyph.strikethrough { text-decoration: line-through; text-decoration-thickness: 1.5px; }
.style-glyph.uppercase { font-size: 12px; font-weight: 650; letter-spacing: 0.04em; }
.type-toggle {
  flex: 1 1 auto;
  height: 30px;
  padding: 0 8px;
  border: 0;
  border-radius: 9px;
  background: transparent;
  color: var(--muted);
  font-size: 12px;
  font-weight: 500;
}
.type-toggle:hover { background: transparent; color: var(--ink); }
.type-toggle.on {
  background: white;
  color: var(--ink);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.95), 0 1px 2px rgba(28, 32, 48, 0.08);
}
.type-toggle.on:hover { background: white; }
input[type="color"] { height: 32px; padding: 3px; width: 44px; border-radius: 8px; border: 1px solid var(--line); background: white; }
.field.color-field input[type="color"] { width: 44px; justify-self: start; cursor: pointer; }
.text-settings .field.color-field input[type="color"] {
  width: 22px;
  height: 22px;
  padding: 0;
  border: 0;
  border-radius: 6px;
}
input[type="range"] { accent-color: var(--blue); }

@media (max-width: 1080px) {
  .auth { grid-template-columns: 1fr; }
  .auth-copy { min-height: auto; padding: 28px 20px 8px; gap: 14px; }
  .auth-copy h1 { font-size: 32px; max-width: 16ch; }
  .steps li { padding: 10px 0; }
  .auth-card { padding: 16px 16px 36px; }
  .shell { grid-template-columns: 1fr; grid-template-rows: auto minmax(0, 1fr); height: 100vh; }
  .side {
    height: auto;
    display: grid;
    grid-template-columns: 1fr auto;
    grid-template-areas: "brand user" "nav nav";
    gap: 8px 12px;
    padding: 12px 12px 0;
    border-right: 0;
    border-bottom: 1px solid var(--line);
    background: rgba(255, 255, 255, 0.46);
    backdrop-filter: blur(24px) saturate(1.7);
    -webkit-backdrop-filter: blur(24px) saturate(1.7);
  }
  .side-brand { grid-area: brand; font-size: 17px; padding: 0 4px; }
  .side-menus { grid-area: nav; gap: 10px; margin-top: 0; }
  .side-label { margin: 0 0 4px 4px; }
  .side-more { margin-top: 0; }
  .side nav a { flex-direction: column; gap: 3px; }
  .nav-icon { width: 15px; height: 15px; }
  .side nav {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 0;
  }
  .side nav a {
    justify-content: center;
    padding: 10px 4px 8px;
    font-size: 13px;
    border-radius: 0;
    background: transparent;
    color: var(--muted);
    border-bottom: 2px solid transparent;
  }
  .side nav a.on { color: var(--blue); background: transparent; border-bottom-color: var(--blue); box-shadow: none; }
  .side nav a:hover { background: transparent; }
  .side-user { grid-area: user; margin: 0; border: 0; padding: 0 4px 0 0; }
  #view { height: 100%; min-height: 0; overflow: hidden; padding: 18px 16px 16px; }
  .page-head h1 { font-size: 28px; }
  .shell.editor-open { grid-template-columns: minmax(0, 1fr); grid-template-rows: minmax(0, 1fr); }
  .shell.editor-open .side { display: none; }
  .shell.editor-open #view { padding: 0; height: 100vh; }
  .shell.editor-open .editor { height: 100vh; }
  .shell.editor-open .editor-body { grid-template-columns: 220px minmax(0, 1fr) 240px; }
  .shell.editor-open .board { height: 100%; max-height: none; min-height: 0; }
}

.sub-page { display: grid; gap: 16px; max-width: 1080px; }
.sub-hero {
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 28px;
  padding: 26px 28px;
  background:
    radial-gradient(420px 240px at 100% 0%, rgba(0, 122, 255, 0.16), transparent 70%),
    var(--glass-strong);
}
.sub-hero.is-active { background: radial-gradient(420px 240px at 100% 0%, rgba(52, 199, 89, 0.18), transparent 70%), var(--glass-strong); }
.sub-hero.is-expired { background: radial-gradient(420px 240px at 100% 0%, rgba(255, 59, 48, 0.14), transparent 70%), var(--glass-strong); }
.sub-hero-copy { display: grid; gap: 8px; justify-items: start; }
.sub-hero-copy h2 { margin: 2px 0 0; font-size: 28px; }
.sub-hero-copy > p { margin: 0; max-width: 560px; color: var(--muted); font-size: 14px; line-height: 1.5; }
.sub-hero-copy .sub-price { display: flex; align-items: baseline; gap: 6px; margin-top: 4px; color: var(--ink); }
.sub-price strong { font-size: 26px; letter-spacing: -0.03em; }
.sub-price span { color: var(--muted); font-size: 13px; }
.sub-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
  color: var(--blue);
  background: var(--blue-soft);
}
.sub-badge::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.sub-badge.is-active { color: var(--green); background: rgba(52, 199, 89, 0.14); }
.sub-badge.is-expired { color: var(--red); background: rgba(255, 59, 48, 0.12); }
.sub-badge.is-none { color: var(--muted); background: rgba(60, 60, 67, 0.08); }
.sub-ring {
  --p: 0deg;
  --tone: var(--blue);
  width: 132px;
  height: 132px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: conic-gradient(var(--tone) var(--p), rgba(60, 60, 67, 0.1) 0);
}
.is-active .sub-ring { --tone: #34c759; }
.is-expired .sub-ring { --tone: var(--red); }
.sub-ring-inner {
  width: 108px;
  height: 108px;
  border-radius: 50%;
  display: grid;
  place-content: center;
  text-align: center;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: inset 0 0 0 1px var(--line);
}
.sub-ring-inner strong { font-size: 34px; line-height: 1; letter-spacing: -0.04em; }
.sub-ring-inner span { margin-top: 4px; color: var(--muted); font-size: 12px; }
.sub-facts { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.sub-fact {
  display: grid;
  gap: 4px;
  align-content: start;
  padding: 14px 16px;
  border-radius: 16px;
  background: var(--glass);
  border: 1px solid var(--glass-edge);
  box-shadow: var(--shadow);
}
.sub-fact span { color: var(--muted); font-size: 12px; }
.sub-fact strong { font-size: 15px; font-weight: 600; }
.sub-fact small { color: var(--muted); font-size: 12px; }
.sub-grid { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 16px; align-items: start; }
.sub-card { gap: 12px; padding: 20px; }
.sub-card h2 { margin: 0; font-size: 17px; }
.sub-plans { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.sub-plan {
  display: grid;
  gap: 6px;
  align-content: start;
  padding: 16px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.6);
  border: 1px solid var(--line);
}
.sub-plan.is-current { border-color: rgba(52, 199, 89, 0.5); box-shadow: 0 0 0 3px rgba(52, 199, 89, 0.12); }
.sub-plan-top { display: flex; justify-content: space-between; align-items: flex-start; gap: 8px; }
.sub-plan-top strong { font-size: 14px; }
.sub-tag { flex: none; padding: 2px 8px; border-radius: 999px; font-size: 11px; font-weight: 600; color: #b25000; background: rgba(255, 149, 0, 0.16); }
.sub-tag.is-current { color: var(--green); background: rgba(52, 199, 89, 0.14); }
.sub-tag.is-requested { color: var(--blue); background: var(--blue-soft); }
.sub-plan.is-requested { border-color: rgba(0, 122, 255, 0.45); box-shadow: 0 0 0 3px rgba(0, 122, 255, 0.1); }
.sub-admin-request { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px; padding: 10px 12px; border-radius: 10px; background: var(--blue-soft); color: var(--blue-deep); font-size: 13px; font-weight: 500; }
.sub-plan-price { display: flex; align-items: baseline; gap: 4px; margin: 4px 0 0; }
.sub-plan-price b { font-size: 24px; letter-spacing: -0.03em; }
.sub-plan-price span, .sub-plan small { color: var(--muted); font-size: 12px; }
.sub-plan button { margin-top: 8px; width: 100%; }
.sub-usage { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.sub-usage-cell { display: grid; gap: 2px; padding: 14px; border-radius: 14px; background: rgba(255, 255, 255, 0.6); border: 1px solid var(--line); }
.sub-usage-cell strong { font-size: 24px; letter-spacing: -0.03em; }
.sub-usage-cell span { font-size: 13px; font-weight: 500; }
.sub-usage-cell small { color: var(--muted); font-size: 12px; }
.sub-links { display: grid; gap: 6px; padding-top: 4px; }
.sub-links a { color: var(--blue); font-size: 13px; font-weight: 500; text-decoration: none; }
.sub-links a::after { content: " →"; }
.sub-links a:hover { color: var(--blue-deep); }
.sub-features { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px 18px; }
.sub-features li { display: flex; gap: 10px; align-items: flex-start; }
.sub-features li div { display: grid; gap: 2px; }
.sub-features b { font-size: 14px; font-weight: 600; }
.sub-features small { color: var(--muted); font-size: 12px; }
.sub-check {
  flex: none;
  width: 20px;
  height: 20px;
  margin-top: 1px;
  border-radius: 50%;
  background: rgba(52, 199, 89, 0.16) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='m4.5 8.2 2.3 2.3 4.7-5' fill='none' stroke='%23248a3d' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 14px no-repeat;
}
.sub-admin { display: grid; gap: 10px; padding: 14px; border: 1px solid var(--line); border-radius: 14px; background: rgba(255, 255, 255, 0.55); }
.sub-admin-status { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.sub-admin-status strong { font-size: 14px; }
.sub-admin-controls { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.sub-admin-controls select { height: 36px; padding: 0 10px; border-radius: 10px; border: 1px solid var(--line); background: white; }
@media (max-width: 900px) {
  .sub-facts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .sub-grid, .sub-plans, .sub-features { grid-template-columns: minmax(0, 1fr); }
  .sub-hero { grid-template-columns: minmax(0, 1fr); }
}

/* Kurulum sihirbazı: entegrasyonu olmayan yeni hesaplar menüsüz, tam ekran adım adım ilerler */
.shell.is-onboarding { grid-template-columns: minmax(0, 1fr); grid-template-rows: minmax(0, 1fr); }
.shell.is-onboarding .side { display: none; }
.shell.is-onboarding #view { width: 100%; max-width: 1180px; margin: 0 auto; }
.onboard-bar { display: grid; gap: 14px; margin: 0 0 18px; padding-bottom: 16px; border-bottom: 1px solid var(--line); }
.onboard-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.onboard-brand { display: flex; align-items: center; gap: 8px; min-width: 0; }
.onboard-brand strong { font-size: 17px; letter-spacing: -0.02em; }
.onboard-brand span:last-child {
  padding: 3px 9px;
  border-radius: 999px;
  background: var(--blue-soft);
  color: var(--blue);
  font-size: 12px;
  font-weight: 600;
}
.onboard-tools { display: flex; align-items: center; gap: 4px; }
.onboard-link,
button.onboard-link {
  height: 32px;
  padding: 0 10px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: var(--muted);
  font-size: 13px;
  font-weight: 500;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  box-shadow: none;
  cursor: pointer;
}
.onboard-link:hover { background: rgba(60, 60, 67, 0.08); color: var(--ink); }
.onboard-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.onboard-rail li.is-here a { box-shadow: 0 0 0 2px rgba(0, 122, 255, 0.28); }
.onboard-rail li.is-done.is-here a { box-shadow: 0 0 0 2px rgba(36, 138, 61, 0.28); }
.onboard-next { flex: none; }
.onboard-hint { margin: 0; color: var(--muted); font-size: 14px; }
.onboard-finish .camp-foot { padding-top: 8px; }
.onboard-go { min-width: 160px; justify-content: center; }
.shell.is-onboarding .page-fixed .page-head .kicker { color: var(--blue); }

.onboard-bar > *, .onboard-row > * { min-width: 0; }
@media (max-width: 1080px) {
  .shell.is-onboarding { grid-template-rows: minmax(0, 1fr); }
  .onboard-row { flex-direction: column; align-items: stretch; flex-wrap: nowrap; }
  .onboard-rail { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; max-width: 100%; }
  .onboard-rail::-webkit-scrollbar { display: none; }
  .onboard-rail li { flex: none; }
  .onboard-rail a, .onboard-rail span { white-space: nowrap; }
  .onboard-next { width: 100%; justify-content: center; }
}

/* Kurulum ekranları: düzen */
@media (min-width: 900px) {
  .plat-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
.integ-card .integ-form,
.integ-card > .support-note,
.integ-card > .form-error { margin-left: 60px; }
.shell.is-onboarding .design-list:has(.onboard-choice) { display: block; }
.onboard-choice { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; max-width: 880px; }
.onboard-option {
  display: grid;
  grid-template-columns: 52px minmax(0, 1fr);
  grid-template-areas: "mark copy" ". go";
  align-items: start;
  justify-content: stretch;
  gap: 14px 16px;
  height: auto;
  min-height: 168px;
  padding: 22px;
  text-align: left;
  white-space: normal;
  color: inherit;
  background: var(--glass-strong);
  border: 1px solid var(--glass-edge);
  border-radius: 20px;
  box-shadow: var(--shadow);
  transition: border-color 0.15s, box-shadow 0.15s, background 0.15s, transform 0.15s;
}
.onboard-option:hover { background: white; border-color: rgba(0, 122, 255, 0.35); transform: translateY(-1px); }
.onboard-option-mark {
  grid-area: mark;
  width: 52px;
  height: 52px;
  display: grid;
  place-items: center;
  border-radius: 16px;
  background: var(--blue-soft);
  color: var(--blue);
  font-size: 24px;
  font-weight: 600;
}
.onboard-option-copy { grid-area: copy; display: grid; gap: 6px; min-width: 0; }
.onboard-option-copy strong { font-size: 18px; font-weight: 600; letter-spacing: -0.02em; }
.onboard-option-copy span { color: var(--muted); font-size: 14px; line-height: 1.5; }
.onboard-option-go { grid-area: go; align-self: end; color: var(--blue); font-size: 14px; font-weight: 600; }
.onboard-option-go::after { content: " →"; }
@media (max-width: 720px) {
  .onboard-choice { grid-template-columns: 1fr; }
  .integ-card .integ-form,
  .integ-card > .support-note,
  .integ-card > .form-error { margin-left: 0; }
}

/* Modül menüsü */
.side-group { margin-top: 18px; }
.side nav a.is-soon { color: var(--muted); }
.side nav a.is-soon em.soon-tag {
  display: inline-flex;
  margin-left: auto;
  padding: 2px 7px;
  border-radius: 999px;
  background: rgba(60, 60, 67, 0.07);
  color: var(--muted);
  font-size: 10.5px;
  font-style: normal;
  font-weight: 600;
}
@media (max-width: 1080px) {
  .side-group { margin-top: 4px; }
  .side nav a.is-soon em.soon-tag { display: none; }
}

/* Ana sayfa */
.home-page { display: grid; gap: 26px; align-content: start; }
.home-section { display: grid; gap: 12px; }
.home-title { margin: 0; font-size: 13px; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); }
.home-empty { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 18px 20px; }
.home-empty p { margin: 0; color: var(--muted); }
.module-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); gap: 14px; }
.module-card { display: grid; gap: 14px; align-content: start; padding: 20px; }
.module-card.is-soon { opacity: 0.72; }
.module-top { display: flex; align-items: center; gap: 12px; }
.module-mark {
  width: 44px;
  height: 44px;
  flex: none;
  display: grid;
  place-items: center;
  border-radius: 14px;
  background: var(--blue-soft);
  color: var(--blue);
  font-size: 18px;
  font-weight: 700;
}
.module-mark.is-wheel { background: #fff1ea; color: #ff5a26; }
.module-mark.is-whatsapp { background: #eaf7e8; color: #2e7d32; }
.module-title { display: grid; gap: 4px; justify-items: start; }
.module-title h3 { margin: 0; font-size: 18px; }
.module-pill { padding: 2px 9px; border-radius: 999px; font-size: 11.5px; font-weight: 600; background: rgba(60, 60, 67, 0.07); color: var(--muted); }
.module-pill.is-live { background: rgba(52, 199, 89, 0.14); color: var(--green); }
.module-pill.is-wait { background: var(--blue-soft); color: var(--blue); }
.module-summary { margin: 0; color: var(--muted); font-size: 14px; line-height: 1.5; }
.module-checks { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; font-size: 13.5px; color: var(--muted); }
.module-checks .is-done { color: var(--green); }
.module-actions { display: flex; gap: 8px; flex-wrap: wrap; }

/* Çark modülü */
.wheel-list { display: grid; gap: 12px; align-content: start; }
.wheel-empty { display: grid; gap: 10px; justify-items: start; padding: 28px; max-width: 640px; }
.wheel-empty h2 { margin: 0; font-size: 22px; }
.wheel-empty p { margin: 0 0 6px; color: var(--muted); }
.wheel-row { display: grid; grid-template-columns: minmax(0, 1.2fr) auto auto; align-items: center; gap: 20px; padding: 18px 20px; }
.wheel-row-copy .meta { margin: 4px 0 0; }
.wheel-stats { display: flex; gap: 22px; }
.wheel-stat { display: grid; justify-items: center; gap: 1px; min-width: 56px; }
.wheel-stat strong { font-size: 20px; letter-spacing: -0.02em; }
.wheel-stat span { font-size: 12px; color: var(--muted); }
.wheel-editor { display: grid; grid-template-columns: minmax(0, 1fr) minmax(320px, 440px); gap: 22px; align-items: start; }
.wheel-left { display: grid; gap: 14px; min-width: 0; }
.wheel-name { height: 40px; font-size: 16px; font-weight: 600; border-radius: 12px; border: 1px solid var(--line-strong); padding: 0 12px; background: rgba(255, 255, 255, 0.6); max-width: 420px; }
.wheel-tabs { display: flex; flex-wrap: wrap; gap: 6px; }
.wheel-tab, button.wheel-tab {
  height: 34px;
  padding: 0 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.62);
  color: var(--muted);
  border: 1px solid transparent;
  font-size: 13px;
  font-weight: 500;
}
.wheel-tab:hover { background: white; color: var(--ink); }
.wheel-tab.on { background: var(--blue-soft); color: var(--blue); border-color: rgba(0, 122, 255, 0.16); }
.wheel-panel { display: grid; gap: 12px; align-content: start; }
.wheel-panel > .meta { margin: 0; }
.wheel-seg { display: grid; gap: 12px; padding: 14px 16px; }
.wheel-seg-top { display: grid; grid-template-columns: 40px minmax(0, 1fr) auto; gap: 10px; align-items: center; }
.wheel-seg-top input[type="text"] { height: 38px; border-radius: 10px; border: 1px solid var(--line-strong); padding: 0 10px; background: rgba(255, 255, 255, 0.7); font-weight: 600; }
.wheel-panel input[type="color"] { width: 40px; height: 38px; padding: 3px; border-radius: 10px; border: 1px solid var(--line-strong); background: white; cursor: pointer; }
.wheel-seg-grid, .wheel-grid-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.wheel-grid-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.wheel-panel .field input, .wheel-panel .field select { height: 38px; }
.wheel-hint { color: var(--muted); font-size: 12px; font-weight: 400; }
.wheel-codes { display: grid; gap: 8px; padding-top: 10px; border-top: 1px solid var(--line); }
.wheel-code-row { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.wheel-pool { margin: 0; color: var(--green); font-size: 13px; font-weight: 500; flex: 1; }
.wheel-pool.is-empty { color: #b25000; }
.danger-text { color: var(--red); }
.wheel-check { display: flex; align-items: center; gap: 8px; font-size: 14px; cursor: pointer; }
.wheel-check input { width: 16px; height: 16px; accent-color: var(--blue); }
.wheel-fields { display: grid; gap: 8px; }
.wheel-field-row { display: flex; gap: 22px; align-items: center; padding: 10px 14px; border-radius: 12px; background: rgba(255, 255, 255, 0.55); }
.wheel-field-row .wheel-check:first-child { min-width: 140px; font-weight: 500; }
.wheel-preview { position: sticky; top: 0; display: grid; gap: 8px; }
.wheel-preview-box { min-height: 420px; }
.wheel-preview .meta { margin: 0; text-align: center; font-size: 12px; }
.wheel-save-note { color: #b25000; font-size: 13px; }
.wheel-install { display: grid; gap: 12px; padding: 18px 20px; justify-items: start; }
.wheel-install > * { width: 100%; }
.wheel-install > button { width: auto; }
.wheel-install h3 { margin: 0; font-size: 17px; }
.wheel-install .meta { margin: 0; }
.wheel-howto { display: grid; gap: 8px; }
.wheel-howto-item { display: grid; gap: 2px; padding: 10px 12px; border-radius: 12px; background: rgba(255, 255, 255, 0.55); font-size: 13px; }
.wheel-howto-item span { color: var(--muted); }
.wheel-leads { display: grid; gap: 10px; align-content: start; }
.lead-scroll { padding: 0; overflow: auto; }
.lead-table { width: 100%; border-collapse: collapse; font-size: 13px; }
.lead-table th { text-align: left; font-weight: 600; color: var(--muted); padding: 12px 14px; border-bottom: 1px solid var(--line); white-space: nowrap; }
.lead-table td { padding: 10px 14px; border-bottom: 1px solid var(--line); white-space: nowrap; }
.lead-table tr:last-child td { border-bottom: 0; }
.button-link { display: inline-flex; align-items: center; height: 36px; padding: 0 14px; border-radius: 10px; text-decoration: none; font-size: 14px; font-weight: 500; }
.button-link.ghost { background: rgba(255, 255, 255, 0.7); color: var(--ink); border: 1px solid var(--line-strong); }
.head-side select { height: 36px; border-radius: 10px; border: 1px solid var(--line-strong); padding: 0 10px; background: rgba(255, 255, 255, 0.7); }
.module-choice { text-align: left; white-space: normal; height: auto; color: inherit; justify-content: stretch; cursor: pointer; }
.module-choice:hover:not(:disabled) { border-color: rgba(0, 122, 255, 0.4); background: white; }
.module-choice:disabled { cursor: default; }
@media (max-width: 1080px) {
  .wheel-editor { grid-template-columns: 1fr; }
  .wheel-preview { position: static; order: -1; }
  .wheel-row { grid-template-columns: 1fr; }
  .wheel-seg-grid, .wheel-grid-3, .wheel-grid-2 { grid-template-columns: 1fr 1fr; }
}

/* Masaüstü: menü ekrana sığmazsa sadece bağlantılar kayar; deneme kartı ve kullanıcı altta sabit */
.side { overflow: hidden; }
.side-brand, .trial-card, .side-user { flex: none; }
.side-menus {
  flex: 1 1 auto;
  min-height: 0;
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-width: thin;
  margin-right: -6px;
  padding-right: 6px;
}
.side-group { margin-top: 14px; }
.side nav a { padding: 7px 10px; }
.trial-card { margin-top: 0; }

/* Dar ekran: menü tek satır, yatay kayar; grup başlıkları ve deneme kartı gizli */
@media (max-width: 1080px) {
  .side-menus {
    display: flex;
    flex-wrap: nowrap;
    gap: 0;
    overflow-x: auto;
    scrollbar-width: none;
    margin: 0 -12px;
    padding: 0 8px;
  }
  .side-menus::-webkit-scrollbar { display: none; }
  .side-menus { flex: none; overflow-y: hidden; margin-right: -12px; padding-right: 8px; }
  .side { overflow: visible; }
  .side-label, .side-group { display: none; }
  .side nav, .side nav.side-more { display: contents; }
  .side nav a { flex: none; padding: 8px 10px 8px; min-width: 76px; }
  .side .trial-card { display: none; }
}

/* Dar ekran: sayfa başlığı ve sağdaki düğmeler üst üste binmesin */
@media (max-width: 1080px) {
  .page-head { flex-wrap: wrap; align-items: flex-end; row-gap: 12px; }
  .page-copy { flex: 1 1 220px; min-width: 0; }
  .page-head h1 { overflow-wrap: anywhere; }
  .head-side { flex-wrap: wrap; }
  .wheel-save-note { display: none; }
}

/* Entegrasyon kartı: tıklanınca ürünler açılır */
.feed-card.feed-link { grid-template-columns: 1fr auto auto; gap: 12px; }
.feed-go { color: var(--muted); font-size: 12px; font-weight: 400; white-space: nowrap; }
.feed-card.feed-link:hover .feed-go { color: var(--blue); }
.feed-card.feed-link:focus-visible { outline: 2px solid var(--blue); outline-offset: 2px; }
.integration-hint { grid-column: 1 / -1; }
@media (max-width: 720px) {
  .feed-card.feed-link { grid-template-columns: 1fr auto; }
  .feed-go { grid-column: 1; grid-row: 2; }
}

/* Menü: modül başlığı (Katalog, Çark) ve açılan alt sayfaları */
.side nav a.nav-module .nav-caret { width: 14px; height: 14px; margin-left: auto; color: var(--muted); transition: transform 0.15s; }
.side nav a.nav-module.is-open { color: var(--blue); font-weight: 600; }
.side nav a.nav-module.is-open .nav-caret { transform: rotate(90deg); color: var(--blue); }
.nav-sub { display: none; gap: 2px; margin: 2px 0 6px 17px; padding-left: 9px; border-left: 1px solid var(--line-strong); }
.nav-sub.is-open { display: grid; }
.side nav a.nav-sublink { font-size: 13.5px; padding: 6px 10px; }
.side nav a.nav-sublink .nav-icon { width: 14px; height: 14px; }
.side-more .side-label { margin-top: 0; }
@media (max-width: 1080px) {
  .nav-sub, .nav-sub.is-open { display: none; }
  .nav-sub.is-open { display: contents; }
  .side nav a.nav-module .nav-caret { display: none; }
  .side nav a.nav-module.is-open { border-bottom-color: var(--blue); }
}
