: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; justify-items: start; }
.side-user #logout { text-align: left; }
#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); }
}

/* Yeni tasarım seçimi (şablon / sıfırdan) */
.modal.is-choice .sheet { display: grid; gap: 14px; max-width: 760px; padding: 24px; }
.modal.is-choice .choice-title { margin: 0; font-size: 22px; }
.modal.is-choice .meta { margin: 0; }
.modal.is-choice .onboard-choice { max-width: none; }
.modal.is-choice .sheet > .ghost { justify-self: end; }

.design-list:has(.onboard-choice) { display: block; }

/* Popup türleri */
.popup-type-icon { width: 44px; height: 44px; display: inline-grid; place-items: center; color: var(--blue); flex: none; }
.popup-type-icon svg { width: 100%; height: 100%; display: block; }
.popup-types { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.popup-type {
  display: grid;
  justify-items: center;
  align-content: start;
  gap: 8px;
  height: auto;
  padding: 20px 14px;
  text-align: center;
  white-space: normal;
  color: inherit;
  background: var(--glass-strong);
  border: 1px solid var(--glass-edge);
  border-radius: 18px;
  box-shadow: var(--shadow);
  transition: border-color 0.15s, transform 0.15s, background 0.15s;
}
.popup-type:hover { background: white; border-color: rgba(0, 122, 255, 0.35); transform: translateY(-1px); }
.popup-type.is-default { border-color: rgba(0, 122, 255, 0.4); }
.popup-type .popup-type-icon { width: 64px; height: 64px; }
.popup-type strong { font-size: 16px; display: inline-flex; gap: 6px; align-items: center; }
.popup-type strong em { font-style: normal; font-size: 11px; font-weight: 600; color: var(--blue); background: var(--blue-soft); padding: 2px 7px; border-radius: 999px; }
.popup-type span:last-child { color: var(--muted); font-size: 13px; line-height: 1.45; }
.popup-picker .sheet { max-width: 900px; }
.popup-type-bar { display: flex; flex-wrap: wrap; gap: 6px; }
.popup-type-chip, button.popup-type-chip {
  height: 38px;
  padding: 0 12px 0 6px;
  gap: 6px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.62);
  color: var(--ink);
  border: 1px solid var(--line);
  font-size: 13px;
}
.popup-type-chip .popup-type-icon { width: 26px; height: 26px; }
.popup-type-chip:hover { background: white; }
.popup-type-chip.on { background: var(--blue-soft); color: var(--blue); border-color: rgba(0, 122, 255, 0.3); font-weight: 600; }
.wheel-row { grid-template-columns: 44px minmax(0, 1.2fr) auto auto; }
.wheel-seg-top.no-color { grid-template-columns: minmax(0, 1fr) auto; }
@media (max-width: 900px) { .popup-types { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 1080px) {
  .wheel-row { grid-template-columns: 44px minmax(0, 1fr); }
  .wheel-row > .wheel-stats, .wheel-row > .camp-actions { grid-column: 2 / -1; }
  .wheel-row > .camp-actions { flex-wrap: wrap; }
}

/* "i" menüsü açık kart, yanındaki/altındaki kartların önüne çıksın (kart cam efekti ayrı katman oluşturuyor) */
.card:has(.info-menu:not([hidden])) { position: relative; z-index: 30; }
/* Menü, başka bir kartın fotoğrafının üstüne açılınca da okunur kalsın */
.info-menu { background: rgba(255, 255, 255, 0.97); box-shadow: 0 12px 32px rgba(28, 32, 48, 0.18); }

/* Entegrasyonlar: tam sayfa bağlantı paneli */
.integ-page { display: grid; gap: 18px; align-content: start; }
.integ-panel { display: grid; gap: 14px; }
.integ-hero { display: flex; align-items: center; justify-content: space-between; gap: 18px; padding: 20px 22px; flex-wrap: wrap; }
.integ-id { display: flex; align-items: center; gap: 16px; min-width: 0; flex: 1 1 360px; }
.integ-mark { width: 56px; height: 56px; flex: none; display: grid; place-items: center; border-radius: 16px; font-weight: 800; font-size: 17px; letter-spacing: -0.03em; background: var(--blue-soft); color: var(--blue); }
.integ-mark.is-ikas { background: #fff1ea; color: #ff5a26; }
.integ-mark.is-shopify { background: #eaf7e8; color: #2e7d32; }
.integ-mark.is-xml { font-size: 13px; }
.integ-name { display: grid; gap: 2px; min-width: 0; }
.integ-kind { font-size: 12px; font-weight: 600; letter-spacing: 0.04em; text-transform: uppercase; color: var(--muted); }
.integ-name h2 { margin: 0; font-size: 24px; overflow-wrap: anywhere; }
.integ-host { color: var(--muted); font-size: 13.5px; text-decoration: none; overflow-wrap: anywhere; }
.integ-host:hover { color: var(--blue); }
.integ-status { flex: none; align-self: flex-start; margin-top: 4px; padding: 5px 11px; border-radius: 999px; font-size: 12.5px; font-weight: 600; display: inline-flex; align-items: center; gap: 6px; }
.integ-status::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.is-ok.integ-status { background: rgba(52, 199, 89, 0.14); color: var(--green); }
.is-warn.integ-status { background: rgba(255, 149, 0, 0.14); color: #b25000; }
.is-bad.integ-status { background: rgba(255, 59, 48, 0.12); color: #d70015; }
.integ-actions { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.integ-menu { position: relative; }
.integ-menu .info-menu { right: 0; top: calc(100% + 6px); }
.integ-alert { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 14px 18px; border-color: rgba(255, 59, 48, 0.25); background: #fff6f5; }
.integ-alert div { display: grid; gap: 2px; }
.integ-alert strong { color: #d70015; }
.integ-alert span { color: var(--muted); font-size: 13.5px; }
.integ-stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.integ-tile { display: grid; gap: 4px; align-content: start; padding: 16px 18px; border-radius: 18px; background: var(--glass); border: 1px solid var(--glass-edge); box-shadow: var(--shadow); }
.integ-tile-label { font-size: 12px; font-weight: 600; color: var(--muted); letter-spacing: 0.03em; text-transform: uppercase; }
.integ-tile strong { font-size: 22px; letter-spacing: -0.02em; }
.integ-tile small { color: var(--muted); font-size: 12.5px; line-height: 1.45; }
.integ-tile.is-ok strong { color: var(--green); }
.integ-tile.is-warn strong { color: #b25000; }
.integ-tile.is-bad strong { color: #d70015; }
.integ-tile-link { color: var(--blue); font-size: 13px; font-weight: 600; text-decoration: none; }
.integ-tile-link::after { content: " →"; }
.integ-grid { display: grid; grid-template-columns: minmax(0, 1.7fr) minmax(280px, 1fr); gap: 14px; align-items: start; }
.integ-side { display: grid; gap: 14px; }
.integ-block { display: grid; gap: 12px; padding: 18px 20px; }
.integ-block h3 { margin: 0; font-size: 16px; }
.integ-block-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.integ-sub { margin-top: 8px !important; }
.integ-bars { display: grid; grid-template-columns: repeat(24, minmax(0, 1fr)); gap: 3px; height: 34px; }
.integ-bar { border-radius: 4px; background: rgba(60, 60, 67, 0.1); }
.integ-bar.is-ok { background: #34c759; }
.integ-bar.is-bad { background: #ff3b30; }
.integ-bars-scale { display: flex; justify-content: space-between; font-size: 11.5px; color: var(--muted); margin-top: -6px; }
.integ-log { list-style: none; margin: 0; padding: 0; display: grid; }
.integ-log li { display: grid; grid-template-columns: 22px minmax(150px, auto) 110px minmax(0, 1fr); gap: 10px; align-items: center; padding: 9px 0; border-top: 1px solid var(--line); font-size: 13.5px; }
.integ-log li:first-child { border-top: 0; }
.integ-log-icon { width: 20px; height: 20px; display: grid; place-items: center; border-radius: 50%; font-size: 11px; font-weight: 700; }
.integ-log .is-ok .integ-log-icon, .integ-log li.is-ok .integ-log-icon { background: rgba(52, 199, 89, 0.16); color: var(--green); }
.integ-log li.is-bad .integ-log-icon { background: rgba(255, 59, 48, 0.12); color: #d70015; }
.integ-log-when { color: var(--ink); }
.integ-log-kind { color: var(--muted); }
.integ-log-result { color: var(--muted); text-align: right; }
.integ-log li.is-bad .integ-log-result { color: #d70015; }
.integ-perms, .integ-usage { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.integ-perms li { display: grid; grid-template-columns: 22px minmax(0, 1fr); column-gap: 10px; align-items: start; }
.integ-perms li > span:nth-child(2) { font-size: 14px; }
.integ-perms li small { grid-column: 2; color: var(--muted); font-size: 12.5px; }
.integ-perm-icon { width: 20px; height: 20px; display: grid; place-items: center; border-radius: 50%; font-size: 11px; font-weight: 700; }
.integ-perms .is-on .integ-perm-icon { background: rgba(52, 199, 89, 0.16); color: var(--green); }
.integ-perms .is-off .integ-perm-icon { background: rgba(60, 60, 67, 0.08); color: var(--muted); }
.integ-perms .is-off strong { color: var(--muted); }
.integ-block > .ghost { justify-self: start; }
.integ-usage a { display: grid; gap: 2px; padding: 10px 12px; border-radius: 12px; background: rgba(255, 255, 255, 0.55); text-decoration: none; color: var(--ink); }
.integ-usage a:hover { background: white; }
.integ-usage a span { color: var(--muted); font-size: 13px; }
@media (max-width: 1080px) {
  .integ-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .integ-grid { grid-template-columns: 1fr; }
  .integ-log li { grid-template-columns: 22px minmax(0, 1fr); }
  .integ-log-kind { display: none; }
  .integ-log-result { grid-column: 2; text-align: left; }
  .integ-alert { flex-direction: column; align-items: stretch; }
}

/* Platform logoları (ikas, Shopify, Ticimax) */
.plat-mark.has-logo, .integ-mark.has-logo { padding: 0; overflow: hidden; background: #fff; box-shadow: inset 0 0 0 1px var(--line); }
.plat-mark.has-logo img, .integ-mark.has-logo img { width: 100%; height: 100%; object-fit: cover; display: block; }

.plat-card.is-soon, .plat-card.is-soon:hover { cursor: not-allowed; background: rgba(255, 255, 255, 0.5); box-shadow: none; border-color: var(--line); }
.plat-card.is-soon { opacity: 1; }
.plat-card.is-soon .plat-mark { opacity: 0.75; filter: grayscale(0.25); }
.plat-card.is-soon .plat-copy { opacity: 0.72; }
.plat-card.is-soon .plat-badge { background: #fff4e6; color: #c25e00; }

/* Nasıl yapılır paneli */
.camp-step-head .guide-open { margin-left: auto; align-self: start; white-space: nowrap; }
.link-btn { all: unset; cursor: pointer; color: var(--blue); font-weight: 600; }
.link-btn:hover { text-decoration: underline; }
.link-btn:focus-visible { outline: 2px solid var(--blue); outline-offset: 2px; border-radius: 4px; }
.guide-overlay { position: fixed; inset: 0; z-index: 200; background: rgba(15, 18, 25, 0); transition: background 0.2s; display: flex; justify-content: flex-end; }
.guide-overlay.open { background: rgba(15, 18, 25, 0.38); }
.guide-panel { width: min(560px, 100%); height: 100%; background: #fff; display: flex; flex-direction: column; box-shadow: -18px 0 48px rgba(15, 18, 25, 0.18); transform: translateX(100%); transition: transform 0.22s ease; }
.guide-overlay.open .guide-panel { transform: none; }
.guide-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; padding: 22px 24px 16px; border-bottom: 1px solid var(--line); }
.guide-head h2 { margin: 2px 0 0; font-size: 20px; }
.guide-close { width: 36px; height: 36px; padding: 0; border-radius: 10px; background: rgba(60, 60, 67, 0.07); color: var(--ink); font-size: 22px; line-height: 1; box-shadow: none; }
.guide-body { flex: 1; overflow-y: auto; padding: 20px 24px; }
.guide-lead { margin: 0 0 18px; color: var(--muted); font-size: 14px; line-height: 1.55; }
.guide-steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 20px; }
.guide-steps li { display: grid; grid-template-columns: 28px 1fr; gap: 12px; }
.guide-no { width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; background: var(--blue); color: #fff; font-size: 13px; font-weight: 700; }
.guide-copy { min-width: 0; display: grid; gap: 10px; }
.guide-copy p { margin: 4px 0 0; font-size: 14px; line-height: 1.55; color: var(--ink); }
.guide-shot { display: block; border-radius: 12px; overflow: hidden; border: 1px solid var(--line); box-shadow: 0 6px 18px rgba(15, 18, 25, 0.08); }
.guide-shot img { display: block; width: 100%; height: auto; }
.guide-body code { font-size: 12.5px; padding: 1px 6px; border-radius: 6px; background: rgba(60, 60, 67, 0.07); }
.guide-tip { margin: 22px 0 0; padding: 12px 14px; border-radius: 12px; background: var(--blue-soft); color: var(--ink); font-size: 13px; line-height: 1.5; }
.guide-foot { padding: 14px 24px; border-top: 1px solid var(--line); display: flex; justify-content: flex-end; }
@media (max-width: 640px) {
  .guide-head, .guide-body, .guide-foot { padding-left: 16px; padding-right: 16px; }
  .camp-step-head { flex-wrap: wrap; }
}

/* Abonelik: entegrasyon paneli düzeninde */
.sub-mark { background: var(--blue-soft); color: var(--blue); }
.is-info.integ-status { background: var(--blue-soft); color: var(--blue); }
.integ-alert.is-soft { border-color: rgba(255, 149, 0, 0.3); background: #fff8ee; }
.integ-alert.is-soft strong { color: #b25000; }
.sub-meter { height: 6px; border-radius: 999px; background: rgba(60, 60, 67, 0.1); overflow: hidden; margin-top: 6px; }
.sub-meter span { display: block; height: 100%; border-radius: inherit; background: var(--blue); }
.integ-tile.is-warn .sub-meter span { background: #ff9500; }
.sub-note { margin: -4px 0 0; font-size: 13.5px; line-height: 1.5; }
.sub-rows { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.sub-rows li { display: grid; grid-template-columns: minmax(0, 1fr) auto auto; align-items: center; gap: 18px; padding: 14px 16px; border: 1px solid var(--line); border-radius: 14px; background: rgba(255, 255, 255, 0.55); }
.sub-rows li.is-current { border-color: rgba(52, 199, 89, 0.45); background: rgba(52, 199, 89, 0.06); }
.sub-rows li.is-requested { border-color: rgba(0, 122, 255, 0.4); background: var(--blue-soft); }
.sub-row-info { display: grid; gap: 3px; min-width: 0; }
.sub-row-title { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.sub-row-title strong { font-size: 15px; }
.sub-row-info small { color: var(--muted); font-size: 12.5px; }
.sub-row-price { white-space: nowrap; }
.sub-row-price b { font-size: 22px; letter-spacing: -0.02em; }
.sub-row-price span { color: var(--muted); font-size: 13px; margin-left: 3px; }
.sub-rows li > button { min-width: 96px; }
.sub-row-ok { width: 28px; height: 28px; display: grid; place-items: center; border-radius: 50%; background: rgba(52, 199, 89, 0.16); color: var(--green); font-weight: 700; justify-self: end; }
.sub-usage-list { list-style: none; margin: 0; padding: 0; display: grid; }
.sub-usage-list li { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 0; border-top: 1px solid var(--line); }
.sub-usage-list li:first-child { border-top: 0; padding-top: 2px; }
.sub-usage-list div { display: grid; gap: 1px; }
.sub-usage-list span { font-size: 14px; }
.sub-usage-list small { color: var(--muted); font-size: 12.5px; }
.sub-usage-list strong { font-size: 18px; letter-spacing: -0.02em; }
@media (max-width: 640px) {
  .sub-rows li { grid-template-columns: minmax(0, 1fr) auto; }
  .sub-rows li > button, .sub-rows li > .sub-row-ok { grid-column: 1 / -1; justify-self: stretch; }
  .sub-row-ok { width: auto; border-radius: 10px; }
}

/* Kişiler: mağaza müşterilerine aktarım */
.lead-store-card { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 16px 20px; margin-bottom: 14px; flex-wrap: wrap; }
.lead-store-card > div { display: grid; gap: 4px; min-width: 0; flex: 1 1 320px; }
.lead-store-card strong { font-size: 15px; }
.lead-store-card span { color: var(--muted); font-size: 13.5px; line-height: 1.5; }
.lead-store-card.is-warn { border-color: rgba(255, 149, 0, 0.35); background: #fff8ee; }
.lead-store-facts { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 4px; }
.lead-store-facts span { font-size: 12.5px; font-weight: 600; padding: 3px 10px; border-radius: 999px; background: rgba(60, 60, 67, 0.07); color: var(--muted); }
.lead-store-facts span.is-ok { background: rgba(52, 199, 89, 0.14); color: var(--green); }
.lead-store-facts span.is-bad { background: rgba(255, 59, 48, 0.12); color: #d70015; }
.lead-store.is-ok { color: var(--green); font-weight: 600; }
.lead-store.is-error { color: #d70015; cursor: help; }
.lead-store.is-wait, .lead-store.is-skip, .lead-store.is- { color: var(--muted); }

/* Popup raporu */
.wheel-report .lead-store-card { margin-bottom: 0; }
.report-bars { display: grid; grid-template-columns: repeat(14, minmax(0, 1fr)); gap: 6px; height: 150px; align-items: end; }
.report-col { display: grid; grid-template-rows: 1fr auto; gap: 6px; height: 100%; min-width: 0; }
.report-stack { position: relative; display: flex; align-items: flex-end; justify-content: center; gap: 3px; height: 100%; border-radius: 8px; background: rgba(60, 60, 67, 0.04); padding: 0 3px; }
.report-stack span { flex: 1; max-width: 14px; min-height: 2px; border-radius: 4px 4px 2px 2px; }
.report-stack .is-view, .report-legend .is-view::before { background: rgba(0, 122, 255, 0.28); }
.report-stack .is-spin, .report-legend .is-spin::before { background: var(--blue); }
.report-col small { text-align: center; font-size: 11px; color: var(--muted); }
.report-legend { display: flex; gap: 16px; font-size: 12.5px; color: var(--muted); }
.report-legend span { display: inline-flex; align-items: center; gap: 6px; }
.report-legend span::before { content: ""; width: 10px; height: 10px; border-radius: 3px; }
.wheel-report .lead-scroll { overflow-x: auto; margin: 0 -4px; }

/* Popup boş ekranı: kaydırmalı tanıtım kartları */
.popup-intro { display: grid; justify-items: center; text-align: center; gap: 10px; padding: 26px 0 8px; overflow-x: clip; }
.popup-intro h2 { margin: 0; font-size: 26px; letter-spacing: -0.02em; }
.popup-intro-lead { margin: 0; max-width: 560px; color: var(--muted); font-size: 15px; line-height: 1.55; }
.ia-stage { position: relative; width: min(920px, 100%); height: 380px; margin-top: 18px; touch-action: pan-y; user-select: none; outline: none; }
.ia-stage:focus-visible { box-shadow: 0 0 0 3px rgba(0, 122, 255, 0.25); border-radius: 24px; }
.ia-card {
  position: absolute; top: 50%; left: 50%; width: min(400px, 74%); display: grid; grid-template-rows: 230px auto; overflow: hidden;
  border-radius: 22px; background: #fff; border: 1px solid var(--line); box-shadow: 0 18px 48px rgba(28, 32, 48, 0.16);
  transition: transform 0.45s cubic-bezier(.2,.8,.2,1), opacity 0.45s, filter 0.45s; cursor: pointer; text-align: left;
}
.ia-card[data-pos="center"] { transform: translate(-50%, -50%) scale(1); z-index: 3; cursor: grab; }
.ia-card[data-pos="left"] { transform: translate(-108%, -50%) scale(0.8); z-index: 2; opacity: 0.7; filter: saturate(0.8); }
.ia-card[data-pos="right"] { transform: translate(8%, -50%) scale(0.8); z-index: 2; opacity: 0.7; filter: saturate(0.8); }
.ia-card[data-pos="back"] { transform: translate(-50%, -50%) scale(0.6); z-index: 1; opacity: 0; pointer-events: none; }
.ia-card[data-pos="left"]:hover, .ia-card[data-pos="right"]:hover { opacity: 0.9; }
.ia-art { position: relative; overflow: hidden; background: linear-gradient(160deg, #eef5ff 0%, #f7f9fc 60%, #e9f3ff 100%); }
.ia-copy { display: grid; gap: 4px; padding: 16px 20px 18px; }
.ia-copy strong { font-size: 16px; letter-spacing: -0.01em; }
.ia-copy span { color: var(--muted); font-size: 13.5px; line-height: 1.5; }
.ia-nav {
  position: absolute; top: 50%; transform: translateY(-50%); z-index: 4; width: 42px; height: 42px; padding: 0; border-radius: 50%;
  display: grid; place-items: center; font-size: 26px; line-height: 1; background: rgba(255, 255, 255, 0.92); color: var(--ink);
  border: 1px solid var(--line); box-shadow: 0 6px 18px rgba(28, 32, 48, 0.12);
}
.ia-nav:hover { background: #fff; color: var(--blue); }
.ia-nav.is-prev { left: 4px; }
.ia-nav.is-next { right: 4px; }
.ia-dots { display: flex; gap: 8px; }
.ia-dots button { width: 8px; height: 8px; padding: 0; border-radius: 50%; background: rgba(60, 60, 67, 0.2); box-shadow: none; border: 0; transition: width 0.2s, background 0.2s; }
.ia-dots button.on { width: 22px; border-radius: 999px; background: var(--blue); }
.ia-create { margin-top: 10px; padding-left: 26px; padding-right: 26px; }

/* Kart görselleri */
.ia-browser { position: absolute; inset: 14px 14px auto; height: 18px; display: flex; gap: 5px; align-items: center; padding: 0 8px; border-radius: 8px 8px 0 0; background: #fff; border: 1px solid var(--line); }
.ia-browser i { width: 7px; height: 7px; border-radius: 50%; background: #d8dbe2; }
.ia-shop { position: absolute; inset: 32px 14px 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; padding: 10px; background: #fff; border: 1px solid var(--line); border-top: 0; }
.ia-shop span { border-radius: 8px; background: #eef1f6; }
.ia-pop { position: absolute; left: 50%; top: 54%; transform: translate(-50%, -50%); width: 66%; display: grid; gap: 6px; padding: 16px; border-radius: 16px; background: #fff; box-shadow: 0 16px 40px rgba(28, 32, 48, 0.22); text-align: center; }
.ia-pop b { font-size: 17px; color: var(--ink); }
.ia-pop small { font-size: 11.5px; color: var(--muted); }
.ia-pop em { font-style: normal; font-size: 11.5px; color: #9aa0ab; text-align: left; padding: 7px 10px; border-radius: 9px; border: 1px solid var(--line); }
.ia-pop strong { font-size: 12.5px; color: #fff; padding: 8px; border-radius: 9px; background: var(--blue); }
.ia-wheel { position: absolute; left: 50%; top: 44%; width: 150px; height: 150px; transform: translate(-50%, -50%); filter: drop-shadow(0 12px 22px rgba(0, 122, 255, 0.22)); }
.ia-wheel svg { width: 100%; height: 100%; }
.ia-card[data-pos="center"] .ia-wheel svg g { animation: ia-spin 6s cubic-bezier(.3,.1,.2,1) infinite; transform-origin: 0 0; }
@keyframes ia-spin { 0% { transform: translate(60px, 60px) rotate(0deg); } 60%, 100% { transform: translate(60px, 60px) rotate(720deg); } }
.ia-prizes { position: absolute; left: 0; right: 0; bottom: 14px; display: flex; justify-content: center; gap: 6px; }
.ia-prizes span { font-size: 11.5px; font-weight: 600; padding: 4px 10px; border-radius: 999px; background: #fff; color: var(--blue); border: 1px solid rgba(0, 122, 255, 0.2); }
.ia-list { position: absolute; inset: 22px 26px; display: grid; align-content: start; gap: 8px; padding: 14px; border-radius: 14px; background: #fff; border: 1px solid var(--line); box-shadow: 0 10px 26px rgba(28, 32, 48, 0.1); }
.ia-list-head { display: flex; align-items: center; gap: 6px; margin-bottom: 2px; }
.ia-list-head img { width: 22px; height: 22px; border-radius: 6px; box-shadow: inset 0 0 0 1px var(--line); }
.ia-list-head b { margin-left: 4px; font-size: 13px; }
.ia-list p { margin: 0; display: grid; grid-template-columns: 26px 1fr auto; align-items: center; gap: 8px; padding: 6px 4px; border-top: 1px solid var(--line); font-size: 12px; }
.ia-list i { width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; font-style: normal; font-size: 10px; font-weight: 700; color: var(--blue); background: var(--blue-soft); }
.ia-list span { color: var(--ink); text-align: left; }
.ia-list em { font-style: normal; width: 18px; height: 18px; border-radius: 50%; display: grid; place-items: center; font-size: 10px; background: rgba(52, 199, 89, 0.16); color: var(--green); }
.ia-report { position: absolute; inset: 22px 26px; display: grid; grid-template-rows: auto 1fr; gap: 12px; padding: 14px; border-radius: 14px; background: #fff; border: 1px solid var(--line); box-shadow: 0 10px 26px rgba(28, 32, 48, 0.1); }
.ia-kpis { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.ia-kpis p { margin: 0; display: grid; gap: 2px; padding: 8px; border-radius: 10px; background: #f5f7fb; text-align: left; }
.ia-kpis small { font-size: 10px; color: var(--muted); text-transform: uppercase; letter-spacing: 0.03em; }
.ia-kpis b { font-size: 16px; }
.ia-bars { display: flex; align-items: flex-end; gap: 7px; }
.ia-bars span { flex: 1; border-radius: 5px 5px 2px 2px; background: linear-gradient(180deg, #4da3ff, var(--blue)); }
@media (max-width: 720px) {
  .ia-stage { height: 360px; }
  .ia-card { width: 82%; grid-template-rows: 200px auto; }
  .ia-card[data-pos="left"] { transform: translate(-96%, -50%) scale(0.78); opacity: 0.45; }
  .ia-card[data-pos="right"] { transform: translate(-4%, -50%) scale(0.78); opacity: 0.45; }
  .ia-nav { width: 36px; height: 36px; font-size: 22px; }
  .popup-intro h2 { font-size: 22px; }
  .ia-list, .ia-report { inset: 14px 16px; padding: 10px; gap: 6px; }
  .ia-list p { padding: 4px 2px; }
  .ia-list p:last-child { display: none; }
  .ia-wheel { width: 128px; height: 128px; }
}
@media (prefers-reduced-motion: reduce) {
  .ia-card { transition: none; }
  .ia-card[data-pos="center"] .ia-wheel svg g { animation: none; }
}

/* Boş popup ekranı tam sayfa, kaydırmasız */
.page-fixed:empty { display: none; }
.page-body:has(.popup-intro) { display: flex; flex-direction: column; justify-content: center; padding: 0; }
.wheel-list:has(.popup-intro) { display: block; }
.popup-intro { padding: 0; gap: clamp(6px, 1.2vh, 10px); }
.ia-stage { height: clamp(250px, 46vh, 380px); margin-top: clamp(8px, 2vh, 18px); }
.ia-card { grid-template-rows: clamp(140px, 26vh, 230px) auto; }
.ia-create { margin-top: clamp(4px, 1.2vh, 10px); }
.ia-store { width: 22px; height: 22px; display: grid; place-items: center; border-radius: 6px; background: var(--blue-soft); color: var(--blue); }
.ia-store svg { width: 14px; height: 14px; }

/* Yeni popup: tam sayfa tür seçimi */
.page-body:has(.type-page) { display: flex; flex-direction: column; justify-content: center; padding: 0; }
.type-page { position: relative; display: grid; justify-items: center; text-align: center; gap: clamp(6px, 1.2vh, 10px); width: min(1080px, 100%); margin: 0 auto; }
.type-page h2 { margin: 0; font-size: 26px; letter-spacing: -0.02em; }
.type-back { position: absolute; top: 0; left: 0; height: auto; padding: 6px 10px; border-radius: 10px; background: transparent; color: var(--muted); box-shadow: none; font-weight: 500; }
.type-back:hover { background: rgba(60, 60, 67, 0.06); color: var(--blue); }
.type-grid { width: 100%; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; margin-top: clamp(10px, 2.4vh, 22px); }
.type-card {
  position: relative; display: grid; grid-template-rows: clamp(130px, 24vh, 200px) auto; align-content: start; align-items: stretch; justify-items: stretch; overflow: hidden;
  height: auto; padding: 0; text-align: left; white-space: normal; color: inherit;
  border-radius: 20px; background: #fff; border: 1px solid var(--line); box-shadow: 0 10px 30px rgba(28, 32, 48, 0.08);
  transition: transform 0.2s, box-shadow 0.2s, border-color 0.2s;
}
.type-card:hover { background: #fff; transform: translateY(-3px); box-shadow: 0 18px 40px rgba(28, 32, 48, 0.14); }
.type-card.on { border-color: var(--blue); box-shadow: 0 0 0 3px rgba(0, 122, 255, 0.18), 0 18px 40px rgba(0, 122, 255, 0.14); }
.type-check { position: absolute; top: 12px; right: 12px; z-index: 2; width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; font-size: 13px; font-weight: 700; color: #fff; background: var(--blue); opacity: 0; transform: scale(0.6); transition: opacity 0.2s, transform 0.2s; }
.type-card.on .type-check { opacity: 1; transform: none; }
.type-art { position: relative; align-self: stretch; height: 100%; display: grid; place-items: center; overflow: hidden; background: linear-gradient(160deg, #eef5ff 0%, #f7f9fc 60%, #e9f3ff 100%); border-bottom: 1px solid var(--line); }
.type-copy { display: grid; gap: 4px; padding: 14px 16px 16px; }
.type-copy strong { font-size: 16px; display: inline-flex; align-items: center; gap: 6px; }
.type-copy strong em { font-style: normal; font-size: 11px; font-weight: 600; color: var(--blue); background: var(--blue-soft); padding: 2px 7px; border-radius: 999px; }
.type-copy span { color: var(--muted); font-size: 13px; line-height: 1.45; }
.type-foot { display: flex; gap: 10px; justify-content: center; margin-top: clamp(8px, 2vh, 18px); }
.type-go { padding-left: 30px; padding-right: 30px; }
/* önizlemeler */
.tp-pop { width: 72%; display: grid; justify-items: center; gap: 6px; padding: 14px 12px; border-radius: 14px; background: #fff; box-shadow: 0 12px 28px rgba(28, 32, 48, 0.16); }
.tp-badge { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; font-size: 13px; font-weight: 800; color: #fff; background: var(--blue); box-shadow: 0 0 0 6px var(--blue-soft); }
.tp-pop b { font-size: 12.5px; }
.tp-pop em { width: 100%; font-style: normal; font-size: 10.5px; color: #9aa0ab; padding: 5px 8px; border-radius: 7px; border: 1px solid var(--line); text-align: left; }
.tp-pop strong { width: 100%; font-size: 11px; color: #fff; padding: 6px; border-radius: 7px; background: var(--blue); text-align: center; }
.tp-wheel { width: min(64%, 140px); height: auto; filter: drop-shadow(0 10px 18px rgba(0, 122, 255, 0.22)); }
.type-card:hover .tp-wheel g, .type-card.on .tp-wheel g { animation: tp-spin 2.4s cubic-bezier(.3,.1,.2,1); transform-origin: 0 0; }
@keyframes tp-spin { from { transform: translate(60px, 62px) rotate(0); } to { transform: translate(60px, 62px) rotate(360deg); } }
.tp-gifts { position: relative; display: flex; align-items: flex-end; gap: 8px; padding-top: 20px; }
.tp-gift { width: 46px; height: auto; overflow: visible; }
.tp-gift.is-open { width: 58px; }
.tp-gift .tp-lid { transition: transform 0.35s; transform-origin: 24px 18px; }
.tp-gift.is-open .tp-lid { transform: translate(-4px, -10px) rotate(-14deg); }
.tp-prize { position: absolute; left: 50%; top: -2px; transform: translateX(-50%); font-size: 11.5px; font-weight: 700; color: var(--blue); background: #fff; padding: 3px 9px; border-radius: 999px; box-shadow: 0 6px 14px rgba(0, 122, 255, 0.2); }
.tp-cards { position: relative; width: 150px; height: 104px; }
.tp-card { position: absolute; top: 6px; left: 50%; width: 62px; height: 88px; margin-left: -31px; border-radius: 10px; box-shadow: 0 10px 22px rgba(28, 32, 48, 0.16); }
.tp-card.is-back { background: repeating-linear-gradient(45deg, #b8dcff 0 6px, #cfe4ff 6px 12px); border: 3px solid #fff; }
.tp-card.is-back:first-child { transform: translateX(-44px) rotate(-12deg); }
.tp-card.is-back:last-child { transform: translateX(44px) rotate(12deg); }
.tp-card.is-front { z-index: 1; display: grid; place-content: center; text-align: center; background: #fff; border: 2px solid var(--blue); transform: translateY(-4px); }
.tp-card.is-front b { font-size: 17px; color: var(--blue); }
.tp-card.is-front small { font-size: 10px; color: var(--muted); }
@media (max-width: 1080px) { .type-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } .type-card { grid-template-rows: clamp(110px, 16vh, 160px) auto; } }
@media (max-width: 720px) {
  .page-body:has(.type-page) { justify-content: flex-start; padding-top: 8px; }
  .type-page { padding-top: 34px; }
  .type-page h2 { font-size: 22px; }
  .type-grid { gap: 10px; }
  .type-copy { padding: 10px 12px 12px; }
  .type-copy span { font-size: 12px; }
  .type-card { grid-template-rows: 124px auto; }
  .tp-pop { width: 80%; gap: 4px; padding: 10px 8px; }
  .tp-pop em { display: none; }
  .tp-badge { width: 30px; height: 30px; font-size: 11px; box-shadow: 0 0 0 4px var(--blue-soft); }
  .tp-pop b { font-size: 11px; }
  .tp-wheel { width: 96px; }
  .tp-gifts { gap: 4px; transform: scale(0.78); }
  .tp-cards { transform: scale(0.72); }
  .type-foot { position: sticky; bottom: 0; z-index: 3; width: calc(100% + 32px); margin: 8px -16px 0; padding: 12px 16px; background: linear-gradient(180deg, rgba(240, 243, 248, 0), rgba(240, 243, 248, 0.96) 30%); }
  .type-foot button { flex: 1; }
}
@media (prefers-reduced-motion: reduce) { .type-card:hover .tp-wheel g, .type-card.on .tp-wheel g { animation: none; } }

/* Tür seçimi: klasik popup önizlemesi ve üstüne gelince animasyonlar */
.tp-classic { width: 82%; display: grid; grid-template-columns: 44% 1fr; overflow: hidden; border-radius: 14px; background: #fff; box-shadow: 0 12px 28px rgba(28, 32, 48, 0.16); transition: transform 0.35s cubic-bezier(.2,.8,.2,1), box-shadow 0.35s; }
.tp-photo { position: relative; min-height: 118px; overflow: hidden; background: linear-gradient(180deg, #bfe0ff 0%, #e6f2ff 70%); }
.tp-sun { position: absolute; top: 14px; right: 14px; width: 18px; height: 18px; border-radius: 50%; background: #ffd25e; transition: transform 0.6s cubic-bezier(.2,.8,.2,1); }
.tp-hill { position: absolute; left: -20%; right: -20%; bottom: -30%; height: 62%; border-radius: 50% 50% 0 0; background: #7fbaff; transition: transform 0.6s cubic-bezier(.2,.8,.2,1); }
.tp-bag { position: absolute; left: 50%; bottom: 16px; width: 30px; height: 32px; margin-left: -15px; border-radius: 4px 4px 7px 7px; background: var(--blue); box-shadow: 0 6px 12px rgba(0, 122, 255, 0.3); transition: transform 0.45s cubic-bezier(.2,.8,.2,1); }
.tp-bag::before { content: ""; position: absolute; left: 7px; right: 7px; top: -9px; height: 12px; border: 3px solid var(--blue); border-bottom: 0; border-radius: 10px 10px 0 0; }
.tp-text { display: grid; align-content: center; gap: 5px; padding: 10px; text-align: left; }
.tp-text b { font-size: 11.5px; }
.tp-text i { height: 5px; border-radius: 3px; background: #e6e9ef; }
.tp-text i.short { width: 62%; }
.tp-text em { font-style: normal; font-size: 8.5px; color: #9aa0ab; padding: 4px 6px; border-radius: 6px; border: 1px solid var(--line); }
.tp-text strong { font-size: 9.5px; color: #fff; padding: 5px; border-radius: 6px; background: var(--blue); text-align: center; transition: box-shadow 0.3s; }
.type-card:hover .tp-classic { transform: translateY(-4px) scale(1.03); box-shadow: 0 18px 34px rgba(28, 32, 48, 0.2); }
.type-card:hover .tp-sun { transform: translate(-6px, 4px) scale(1.15); }
.type-card:hover .tp-hill { transform: translateX(-8%); }
.type-card:hover .tp-bag { transform: translateY(-6px) rotate(-6deg); }
.type-card:hover .tp-text strong { box-shadow: 0 0 0 4px rgba(0, 122, 255, 0.18); }
/* hediye: ortadaki kutu açılır, yanlar sallanır, ödül fırlar */
.tp-gift { transition: transform 0.4s cubic-bezier(.2,.8,.2,1); }
.tp-gift .tp-lid { transition: transform 0.45s cubic-bezier(.2,.8,.2,1); }
.tp-prize { transition: transform 0.45s cubic-bezier(.2,.8,.2,1); }
.type-card:hover .tp-gift.is-open { transform: translateY(-4px); }
.type-card:hover .tp-gift.is-open .tp-lid { transform: translate(-8px, -18px) rotate(-24deg); }
.type-card:hover .tp-gift:not(.is-open) { animation: tp-wiggle 0.6s ease-in-out 2; }
.type-card:hover .tp-gift:last-child { animation-delay: 0.15s; }
.type-card:hover .tp-prize { transform: translate(-50%, -10px) scale(1.15); }
@keyframes tp-wiggle { 0%, 100% { transform: rotate(0); } 25% { transform: rotate(-6deg); } 75% { transform: rotate(6deg); } }
/* kartlar: yelpaze açılır, öndeki kart döner */
.tp-card { transition: transform 0.45s cubic-bezier(.2,.8,.2,1); }
.type-card:hover .tp-card.is-back:first-child { transform: translateX(-56px) rotate(-20deg); }
.type-card:hover .tp-card.is-back:last-child { transform: translateX(56px) rotate(20deg); }
.type-card:hover .tp-card.is-front { animation: tp-flip 0.7s cubic-bezier(.2,.8,.2,1); transform: translateY(-10px) scale(1.06); }
@keyframes tp-flip { 0% { transform: translateY(-4px) rotateY(0); } 50% { transform: translateY(-8px) rotateY(90deg); } 100% { transform: translateY(-10px) scale(1.06) rotateY(0); } }
/* çark: üstüne gelince her seferinde döner */
.type-card .tp-wheel g { transition: transform 1.6s cubic-bezier(.2,.8,.2,1); transform: translate(60px, 62px); transform-origin: 0 0; }
.type-card:hover .tp-wheel g { animation: none; transform: translate(60px, 62px) rotate(300deg); }
.type-card.on:not(:hover) .tp-wheel g { animation: none; }
@media (max-width: 720px) {
  .tp-classic { width: 90%; }
  .tp-photo { min-height: 92px; }
  .tp-text em { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  .tp-classic, .tp-sun, .tp-hill, .tp-bag, .tp-gift, .tp-gift .tp-lid, .tp-prize, .tp-card, .type-card .tp-wheel g { transition: none; animation: none !important; }
}
/* Düzenleyici: popup görseli */
.wheel-image { display: grid; grid-template-columns: 120px minmax(0, 1fr); gap: 16px; align-items: start; padding: 14px; margin-bottom: 14px; border-radius: 14px; border: 1px solid var(--line); background: rgba(255, 255, 255, 0.6); }
.wheel-image-thumb { width: 120px; height: 90px; border-radius: 10px; overflow: hidden; display: grid; place-items: center; background: repeating-linear-gradient(45deg, #f2f4f8 0 8px, #e9edf3 8px 16px); color: var(--muted); font-size: 12px; }
.wheel-image-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.wheel-image-copy { display: grid; gap: 6px; min-width: 0; }
.wheel-image-copy > span { color: var(--muted); font-size: 13px; line-height: 1.45; }
.wheel-image-actions { display: flex; flex-wrap: wrap; gap: 8px; align-items: end; margin-top: 4px; }
.wheel-image-actions .field { margin: 0; min-width: 210px; }
.danger-text { color: #d70015 !important; }
@media (max-width: 640px) { .wheel-image { grid-template-columns: 1fr; } .wheel-image-thumb { width: 100%; height: 140px; } }

/* Popup düzenleyici: tam ekran */
.shell.popup-open { grid-template-columns: minmax(0, 1fr); grid-template-rows: minmax(0, 1fr); }
.shell.popup-open .side { display: none; }
.shell.popup-open #view { padding: 0; height: 100vh; }
.page-body:has(.pe) { padding: 0; overflow: hidden; display: flex; }
.pe { flex: 1; min-height: 0; display: grid; grid-template-rows: auto minmax(0, 1fr); }
.pe-bar { display: flex; align-items: center; gap: 14px; padding: 12px 20px; background: rgba(255, 255, 255, 0.82); border-bottom: 1px solid var(--line); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); }
.pe-back { width: 38px; height: 38px; padding: 0; flex: none; border-radius: 12px; font-size: 22px; line-height: 1; background: rgba(60, 60, 67, 0.06); color: var(--ink); box-shadow: none; }
.pe-back:hover { background: rgba(60, 60, 67, 0.12); }
.pe-ident { display: flex; align-items: center; gap: 10px; min-width: 0; flex: 1; }
/* Popup adı: düzenlenebilir olduğu her zaman belli olsun (çerçeveli kutu) */
.pe-name { min-width: 120px; width: min(360px, 40vw); height: 38px; padding: 0 10px; border-radius: 10px; border: 1px solid var(--line); background: rgba(255, 255, 255, 0.7); font-size: 17px; font-weight: 650; letter-spacing: -0.01em; color: var(--ink); }
.pe-name:hover { border-color: rgba(60, 60, 67, 0.28); background: #fff; }
.pe-name:focus { border-color: rgba(0, 122, 255, 0.45); background: #fff; outline: none; box-shadow: 0 0 0 3px rgba(0, 122, 255, 0.12); }
.pe-kind { display: inline-flex; align-items: center; gap: 6px; height: 30px; padding: 0 12px 0 6px; border-radius: 999px; background: rgba(60, 60, 67, 0.06); font-size: 13px; font-weight: 600; color: var(--ink); white-space: nowrap; }
.pe-kind .popup-type-icon { width: 22px; height: 22px; }
.pe-status { height: 26px; display: inline-flex; align-items: center; gap: 6px; padding: 0 10px; border-radius: 999px; font-size: 12px; font-weight: 600; background: rgba(60, 60, 67, 0.08); color: var(--muted); white-space: nowrap; }
.pe-status::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.pe-status.is-live { background: rgba(52, 199, 89, 0.14); color: var(--green); }
.pe-tools { display: flex; align-items: center; gap: 8px; flex: none; }
.pe-tools .wheel-save-note { margin-right: 4px; }
.pe-body { min-height: 0; display: grid; grid-template-columns: minmax(380px, 520px) minmax(0, 1fr); }
.pe-side { min-height: 0; display: grid; grid-template-rows: auto minmax(0, 1fr); border-right: 1px solid var(--line); background: rgba(255, 255, 255, 0.55); }
.pe-tabs { padding: 14px 20px 12px; border-bottom: 1px solid var(--line); }
.pe-scroll { min-height: 0; overflow-y: auto; padding: 18px 20px 40px; display: grid; gap: 12px; align-content: start; }
.pe-preview { min-height: 0; display: grid; grid-template-rows: auto minmax(0, 1fr) auto; justify-items: center; gap: 12px; padding: 16px 24px 14px; background:
  radial-gradient(circle at 20% 10%, rgba(0, 122, 255, 0.08), transparent 45%),
  radial-gradient(circle at 85% 90%, rgba(90, 200, 250, 0.10), transparent 40%),
  repeating-linear-gradient(0deg, transparent 0 23px, rgba(60, 60, 67, 0.035) 23px 24px),
  repeating-linear-gradient(90deg, transparent 0 23px, rgba(60, 60, 67, 0.035) 23px 24px); }
.pe-device { display: inline-flex; gap: 2px; padding: 3px; border-radius: 12px; background: rgba(60, 60, 67, 0.08); }
.pe-device button { height: 30px; padding: 0 14px; border-radius: 9px; background: transparent; color: var(--muted); box-shadow: none; font-size: 13px; font-weight: 500; }
.pe-device button.on { background: #fff; color: var(--ink); box-shadow: 0 1px 4px rgba(28, 32, 48, 0.12); }
.pe-stage { width: 100%; min-height: 0; overflow: auto; display: grid; place-items: center; transition: max-width 0.3s; }
.pe-stage .wheel-preview-box { width: min(760px, 100%); min-height: 0; }
.pe-stage.is-mobile { max-width: 400px; }
.pe-stage.is-mobile .wheel-preview-box { width: 375px; max-width: 100%; padding: 14px; border-radius: 34px; background: #1c1c1e; box-shadow: 0 20px 50px rgba(28, 32, 48, 0.25); }
.pe-preview > .meta { margin: 0; font-size: 12px; }
@media (max-width: 1080px) {
  .pe-body { grid-template-columns: minmax(0, 1fr); grid-template-rows: auto minmax(0, 1fr); overflow-y: auto; }
  .pe-preview { order: -1; max-height: none; }
  .pe-side { border-right: 0; }
  .pe-scroll { overflow: visible; }
  .pe-kind, .pe-tools .wheel-save-note { display: none; }
}
@media (max-width: 640px) {
  .pe-bar { flex-wrap: wrap; padding: 10px 12px; gap: 8px; }
  .pe-ident { flex: 1 1 calc(100% - 50px); }
  .pe-name { width: 100%; }
  .pe-tools { width: 100%; }
  .pe-tools button { flex: 1; }
  .pe-device { display: none; }
  .pe-stage.is-mobile .wheel-preview-box { padding: 0; background: none; box-shadow: none; }
}

/* Popup düzenleyici: sol ayar kartları net ve okunur */
.pe-side { background: #f4f6fa; }
.pe-tabs { background: rgba(255, 255, 255, 0.9); }
.pe-tabs .wheel-tab { background: transparent; color: var(--muted); font-weight: 500; }
.pe-tabs .wheel-tab:hover { background: rgba(60, 60, 67, 0.06); color: var(--ink); }
.pe-tabs .wheel-tab.on { background: var(--blue-soft); color: var(--blue); font-weight: 600; }
.pe-scroll { gap: 14px; }
.pe-scroll > .wheel-panel { gap: 14px; }
.pe-scroll .wheel-panel > .meta { color: var(--muted); font-size: 13px; line-height: 1.5; }
.pe-scroll .card, .pe-scroll .wheel-seg, .pe-scroll .wheel-image, .pe-scroll .wheel-install, .pe-scroll .wheel-field-row, .pe-scroll .wheel-howto-item {
  background: #fff; border: 1px solid rgba(60, 60, 67, 0.12); border-radius: 16px;
  box-shadow: 0 1px 2px rgba(28, 32, 48, 0.04), 0 8px 20px rgba(28, 32, 48, 0.05);
  -webkit-backdrop-filter: none; backdrop-filter: none;
}
.pe-scroll .wheel-seg { padding: 16px 18px; gap: 14px; }
.pe-scroll .field { gap: 6px; }
.pe-scroll .field > span:first-child, .pe-scroll .field { color: var(--ink); font-size: 13px; font-weight: 600; }
.pe-scroll .field input, .pe-scroll .field select, .pe-scroll .wheel-seg-top input[type="text"], .pe-scroll textarea {
  height: 40px; background: #fff; color: var(--ink); font-weight: 500; font-size: 14px;
  border: 1px solid rgba(60, 60, 67, 0.2); border-radius: 10px; padding: 0 12px; box-shadow: inset 0 1px 1px rgba(28, 32, 48, 0.03);
}
.pe-scroll textarea { height: auto; padding: 10px 12px; }
.pe-scroll .field input::placeholder, .pe-scroll .wheel-seg-top input::placeholder { color: #a1a6b0; font-weight: 400; }
.pe-scroll .field input:hover, .pe-scroll .field select:hover, .pe-scroll .wheel-seg-top input[type="text"]:hover { border-color: rgba(60, 60, 67, 0.32); }
.pe-scroll .field input:focus, .pe-scroll .field select:focus, .pe-scroll .wheel-seg-top input[type="text"]:focus, .pe-scroll textarea:focus { border-color: var(--blue); box-shadow: 0 0 0 3px rgba(0, 122, 255, 0.14); outline: none; }
.pe-scroll .wheel-seg-top input[type="text"] { font-weight: 600; }
.pe-scroll input[type="color"] { width: 44px; height: 40px; border-radius: 10px; border: 1px solid rgba(60, 60, 67, 0.2); }
.pe-scroll .wheel-hint, .pe-scroll .field small, .pe-scroll .support-note { color: var(--muted); font-weight: 400; font-size: 12.5px; }
.pe-scroll .wheel-seg-top .wheel-icon { height: 36px; padding: 0 12px; border-radius: 10px; background: #fff5f5; color: #d70015; border: 1px solid rgba(255, 59, 48, 0.2); font-weight: 600; }
.pe-scroll .wheel-seg-top .wheel-icon:disabled { background: rgba(60, 60, 67, 0.05); color: #b0b4bc; border-color: transparent; }
.pe-scroll .wheel-codes { border-top-color: rgba(60, 60, 67, 0.1); }
.pe-add { height: 46px; border-radius: 14px; border: 1.5px dashed rgba(0, 122, 255, 0.45) !important; background: rgba(0, 122, 255, 0.04) !important; color: var(--blue) !important; font-weight: 600; box-shadow: none !important; }
.pe-add:hover { background: rgba(0, 122, 255, 0.09) !important; }
.pe-scroll .wheel-check { color: var(--ink); font-weight: 500; }
.pe-scroll .wheel-image-copy > strong { font-size: 15px; }
.pe-group { display: grid; gap: 12px; padding: 16px 18px; }
.pe-group h4 { margin: 0; font-size: 13px; font-weight: 700; color: var(--ink); letter-spacing: 0.01em; }
.pe-scroll .field input[type="color"] { width: 100%; max-width: 120px; height: 40px; padding: 4px; cursor: pointer; }
.pe-scroll .wheel-image { margin-bottom: 0; }

/* Popup düzenleyici: önizleme üst satırı */
.pe-preview-bar { width: min(760px, 100%); display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; }
/* Telefon görünümü (dar, uzun, çentikli) */
.pe-stage.is-mobile { max-width: 380px; }
.pe-stage.is-mobile .wheel-preview-box {
  position: relative; width: 330px; height: min(660px, 100%); max-height: 100%; padding: 46px 12px 22px; border-radius: 48px;
  background: #fff; border: 11px solid #1c1c1e; box-shadow: 0 0 0 2px #3a3a3c, 0 24px 60px rgba(28, 32, 48, 0.28); overflow-y: auto; scrollbar-width: none;
}
.pe-stage.is-mobile .wheel-preview-box::-webkit-scrollbar { display: none; }
.pe-stage.is-mobile .wheel-preview-box::before { content: ""; position: sticky; top: -34px; display: block; width: 96px; height: 26px; margin: -34px auto 8px; border-radius: 999px; background: #1c1c1e; z-index: 3; }
.pe-stage.is-mobile { align-content: center; height: 100%; }
/* Ödül kartı: alanlar üstten hizalı */
.pe-scroll .wheel-seg-grid { align-items: start; }
.pe-scroll .wheel-seg-grid .field, .pe-align .field { align-content: start; }
.pe-scroll .field input[type="number"] { -moz-appearance: textfield; }
.pe-scroll .field input[type="number"]::-webkit-inner-spin-button, .pe-scroll .field input[type="number"]::-webkit-outer-spin-button { -webkit-appearance: none; margin: 0; }
.pe-scroll .wheel-hint[data-segment] { color: var(--blue); font-weight: 600; }
.pe-align { align-items: start; }
.pe-note { margin: -4px 0 2px; font-size: 13px; line-height: 1.5; }
/* Form alanları: aynı kartlar, sürükle / oklarla sırala */
.pe-fields { display: grid; gap: 8px; }
.pe-field { display: grid; grid-template-columns: 22px minmax(0, 1fr) auto auto; align-items: center; gap: 10px; min-height: 52px; padding: 8px 10px 8px 12px; border-radius: 12px; background: #fff; border: 1px solid rgba(60, 60, 67, 0.16); transition: border-color 0.15s, box-shadow 0.15s, opacity 0.15s; }
.pe-field[draggable="true"] { cursor: grab; }
.pe-field.is-drag { opacity: 0.45; }
.pe-field.is-over { border-color: var(--blue); box-shadow: 0 0 0 3px rgba(0, 122, 255, 0.14); }
.pe-field.is-off { background: #f8f9fb; border-style: dashed; }
.pe-field.is-off .pe-handle { opacity: 0.25; }
.pe-handle { color: #a1a6b0; font-size: 14px; letter-spacing: -3px; user-select: none; text-align: center; }
.pe-field-name { font-weight: 600; color: var(--ink); }
.pe-field-req { font-size: 13px; color: var(--muted); padding: 0 6px; }
.pe-field.is-off .pe-field-req { opacity: 0.4; }
.pe-arrows { display: flex; gap: 4px; }
.pe-arrows button { width: 30px; height: 30px; padding: 0; border-radius: 8px; font-size: 14px; border: 1px solid rgba(60, 60, 67, 0.14); background: #fff; color: var(--ink); box-shadow: none; }
.pe-arrows button:disabled { opacity: 0.3; }
.pe-field { grid-template-columns: 22px minmax(0, 1fr) auto auto auto; }
.pe-size { display: inline-flex; padding: 2px; border-radius: 9px; background: rgba(60, 60, 67, 0.07); }
.pe-size button { height: 26px; padding: 0 9px; border-radius: 7px; font-size: 12px; font-weight: 500; background: transparent; color: var(--muted); box-shadow: none; border: 0; }
.pe-size button.on { background: #fff; color: var(--ink); font-weight: 600; box-shadow: 0 1px 3px rgba(28, 32, 48, 0.12); }
.pe-size button:disabled { opacity: 0.4; }
@media (max-width: 640px) { .pe-field { grid-template-columns: 18px minmax(0, 1fr) auto; } .pe-field-req, .pe-arrows { grid-column: 2 / -1; } }

/* Destek: entegrasyon paneli düzeninde */
.support-stats { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.support-main { gap: 14px; }
.support-form-v2 { display: grid; gap: 14px; }
.support-form-v2 .field { margin: 0; }
.support-form-v2 textarea { min-height: 140px; resize: vertical; background: #fff; border: 1px solid rgba(60, 60, 67, 0.2); border-radius: 12px; padding: 12px 14px; font-size: 14px; line-height: 1.5; }
.support-form-v2 textarea:focus { border-color: var(--blue); box-shadow: 0 0 0 3px rgba(0, 122, 255, 0.14); outline: none; }
.support-drop { height: auto; display: grid; justify-items: center; gap: 4px; padding: 18px; border-radius: 14px; border: 1.5px dashed rgba(0, 122, 255, 0.4); background: rgba(0, 122, 255, 0.04); color: var(--blue); font-weight: 600; box-shadow: none; white-space: normal; text-align: center; }
.support-drop:hover, .support-drop.is-over { background: rgba(0, 122, 255, 0.09); }
.support-drop small { color: var(--muted); font-weight: 400; font-size: 12.5px; }
.support-form-v2 .support-shot { max-width: 220px; border-radius: 12px; border: 1px solid var(--line); }
.support-foot { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; }
.support-foot .meta { margin: 0; }
.support-quote { margin: 0; padding: 14px 16px; border-radius: 12px; background: rgba(60, 60, 67, 0.05); border-left: 3px solid var(--blue); font-size: 14px; line-height: 1.5; color: var(--ink); }
.support-main > button { justify-self: start; }
.support-main .support-note { margin: 0; }
.support-panel .ticket-row { width: 100%; }
@media (max-width: 1080px) { .support-stats { grid-template-columns: 1fr; } }

/* Destek: ekrana sığan, kaydırmasız düzen */
.page-body:has(.support-panel) { display: flex; flex-direction: column; overflow: hidden; padding-bottom: 16px; }
.page-body:has(.support-panel) > .integ-page { flex: 1; min-height: 0; display: flex; }
.support-panel { flex: 1; min-height: 0; grid-template-rows: auto auto minmax(0, 1fr); }
.support-grid { min-height: 0; align-items: stretch; }
.support-main, .support-history { min-height: 0; }
.support-main { display: flex; flex-direction: column; }
.support-form-v2 { flex: 1; min-height: 0; grid-template-rows: auto minmax(0, 1fr) auto auto auto auto; }
.support-form-v2 .field { display: flex; flex-direction: column; min-height: 0; }
.support-form-v2 textarea { flex: 1; min-height: 90px; height: 100%; resize: none; }
.support-form-v2 .support-shot { max-height: 90px; width: auto; }
.support-history { display: grid; grid-template-rows: auto minmax(0, 1fr); }
.support-history-list { min-height: 0; overflow-y: auto; display: grid; align-content: start; gap: 8px; margin: 0 -4px; padding: 0 4px; }
.support-empty { margin: 0; }
@media (max-width: 1080px), (max-height: 640px) {
  .page-body:has(.support-panel) { overflow: auto; }
  .page-body:has(.support-panel) > .integ-page, .support-panel { display: grid; flex: none; }
  .support-form-v2 textarea { height: auto; min-height: 140px; }
}
.support-form-v2 .field { min-height: 116px; }
.support-form-v2 { overflow: hidden; }
@media (max-height: 820px) {
  .support-drop { padding: 10px; grid-auto-flow: column; gap: 10px; align-items: center; }
  .support-panel .integ-hero { padding: 14px 18px; }
  .support-panel .integ-tile { padding: 12px 16px; }
  .support-panel .integ-tile strong { font-size: 19px; }
}

/* Yetkiler: tanıtım kartlarının görselleri */
.ra-card { position: absolute; inset: 20px 26px; display: grid; align-content: start; gap: 8px; padding: 14px; border-radius: 14px; background: #fff; border: 1px solid var(--line); box-shadow: 0 10px 26px rgba(28, 32, 48, 0.1); text-align: left; }
.ra-card > b { font-size: 13px; }
.ra-invite em { font-style: normal; font-size: 12px; color: #9aa0ab; padding: 7px 10px; border-radius: 9px; border: 1px solid var(--line); }
.ra-roles { display: flex; gap: 6px; }
.ra-roles span { font-size: 11px; font-weight: 600; padding: 4px 9px; border-radius: 999px; background: rgba(60, 60, 67, 0.06); color: var(--muted); }
.ra-roles span.on { background: var(--blue-soft); color: var(--blue); }
.ra-invite strong { font-size: 12px; color: #fff; padding: 8px; border-radius: 9px; background: var(--blue); text-align: center; }
.ra-perms p, .ra-log p, .ra-brands p { margin: 0; display: flex; align-items: center; gap: 8px; padding: 6px 2px; border-top: 1px solid var(--line); font-size: 12px; }
.ra-perms p span { flex: 1; }
.ra-perms i { width: 30px; height: 18px; border-radius: 999px; background: rgba(60, 60, 67, 0.18); position: relative; }
.ra-perms i::after { content: ""; position: absolute; top: 2px; left: 2px; width: 14px; height: 14px; border-radius: 50%; background: #fff; box-shadow: 0 1px 2px rgba(0, 0, 0, 0.2); transition: transform 0.2s; }
.ra-perms i.on { background: var(--green); }
.ra-perms i.on::after { transform: translateX(12px); }
.ra-log i, .ra-brands i { width: 24px; height: 24px; flex: none; border-radius: 50%; display: grid; place-items: center; font-style: normal; font-size: 9.5px; font-weight: 700; color: var(--blue); background: var(--blue-soft); }
.ra-brands i { color: #fff; border-radius: 7px; }
.ra-log span, .ra-brands span { flex: 1; min-width: 0; color: var(--ink); }
.ra-log small { color: var(--muted); font-size: 10.5px; }
.ra-brands p.on { background: var(--blue-soft); border-radius: 9px; border-top-color: transparent; padding: 6px 8px; }
.ra-brands em { font-style: normal; color: var(--blue); font-weight: 700; }
.ra-soon { margin-top: clamp(4px, 1.2vh, 10px); display: inline-flex; align-items: center; gap: 8px; height: 40px; padding: 0 20px; border-radius: 999px; font-size: 14px; font-weight: 600; color: #c25e00; background: #fff4e6; border: 1px solid rgba(255, 149, 0, 0.3); }
.ra-soon::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: #ff9500; }
@media (max-width: 720px) { .ra-card { inset: 14px 16px; padding: 10px; gap: 6px; } .ra-card p:last-child { display: none; } }
/* Yetkiler kart görselleri: içerik kutudan taşmasın, ortalı dursun */
.ra-card { inset: auto; left: 26px; right: 26px; top: 50%; transform: translateY(-50%); max-height: calc(100% - 24px); overflow: hidden; gap: 6px; padding: 12px 14px; }
.ra-perms p, .ra-log p, .ra-brands p { padding: 4px 2px; }
.ra-brands p.on { padding: 4px 8px; }
.ra-log i, .ra-brands i { width: 22px; height: 22px; }
.ra-invite em { padding: 6px 10px; }
.ra-invite strong { padding: 7px; }
@media (max-width: 720px) { .ra-card { left: 16px; right: 16px; padding: 10px; } }

/* Hesabım: panel düzeni */
.acc-stats { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.acc-avatar { border-radius: 50%; font-size: 22px; font-weight: 700; color: #fff; background: linear-gradient(135deg, #4da3ff, var(--blue)); }
.acc-grid { grid-template-columns: minmax(0, 1.7fr) minmax(300px, 1fr); }
.acc-form { gap: 14px; }
.acc-head { display: grid; gap: 4px; }
.acc-head h3 { margin: 0; font-size: 16px; }
.acc-head p { margin: 0; color: var(--muted); font-size: 13px; line-height: 1.45; }
.acc-form .grid-2 { gap: 12px 14px; }
.acc-form .span-2 { grid-column: 1 / -1; }
.acc-form .field { color: var(--ink); font-size: 13px; font-weight: 600; }
.acc-form .field input, .acc-form .field select, .acc-form .field textarea, .acc-danger .field input {
  background: #fff; border: 1px solid rgba(60, 60, 67, 0.2); border-radius: 10px; font-weight: 500; font-size: 14px; color: var(--ink);
}
.acc-form .field input:focus, .acc-form .field select:focus, .acc-form .field textarea:focus, .acc-danger .field input:focus { border-color: var(--blue); box-shadow: 0 0 0 3px rgba(0, 122, 255, 0.14); outline: none; }
.acc-form .phone-line select { background: #fff; border: 1px solid rgba(60, 60, 67, 0.2); border-radius: 10px; }
.acc-form .support-note { margin: 0; padding: 10px 12px; border-radius: 10px; background: #fff8ee; color: #8a4b00; }
.acc-foot { display: flex; justify-content: flex-end; padding-top: 4px; border-top: 1px solid var(--line); }
.acc-foot button { margin-top: 10px; min-width: 120px; }
.acc-danger { align-content: start; gap: 0; }
.acc-danger > h3 { margin-bottom: 10px; }
.acc-part { display: grid; gap: 10px; padding: 12px 0; justify-items: start; }
.acc-part + .acc-part { border-top: 1px solid var(--line); }
.acc-part > * { width: 100%; }
.acc-part > button { width: auto; }
.acc-part h4 { margin: 0; font-size: 14px; }
.acc-part .meta { margin: 0; font-size: 13px; line-height: 1.5; }
.acc-part.is-danger h4 { color: #d70015; }
.acc-part .is-delete { background: var(--red); }
.acc-part .is-delete:hover { background: #d70015; }
.acc-part .field { margin: 0; font-size: 13px; font-weight: 600; color: var(--ink); }
@media (max-width: 1080px) { .acc-stats { grid-template-columns: 1fr; } .acc-grid { grid-template-columns: 1fr; } }
.acc-grid > .acc-danger { position: sticky; top: 0; align-self: start; }

/* Hesabım: iki form yan yana, iptal/silme altta kapalı ve sade */
.acc-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; align-items: start; }
.acc-grid > .acc-danger { position: static; }
details.acc-danger { justify-self: start; width: 100%; padding: 0; border: 0; background: none; box-shadow: none; }
details.acc-danger > summary { display: inline-flex; align-items: center; gap: 6px; cursor: pointer; list-style: none; padding: 6px 2px; color: var(--muted); font-size: 13px; font-weight: 500; }
details.acc-danger > summary::-webkit-details-marker { display: none; }
details.acc-danger > summary::before { content: "›"; display: inline-block; transition: transform 0.15s; font-size: 15px; }
details.acc-danger[open] > summary::before { transform: rotate(90deg); }
details.acc-danger > summary:hover { color: var(--ink); }
details.acc-danger[open] { padding: 4px 18px 8px; border-radius: 16px; background: rgba(255, 255, 255, 0.6); border: 1px solid var(--line); }
details.acc-danger .acc-part { max-width: 560px; }
@media (max-width: 1080px) { .acc-grid { grid-template-columns: 1fr; } }
/* Hesabım: formlar solda alt alta, durum kutuları sağda */
.acc-grid { grid-template-columns: minmax(0, 1.8fr) minmax(260px, 1fr); }
.acc-forms { display: grid; gap: 14px; min-width: 0; }
.acc-grid > .acc-stats { grid-template-columns: 1fr; position: sticky; top: 0; align-self: start; }
@media (max-width: 1080px) { .acc-grid { grid-template-columns: 1fr; } .acc-grid > .acc-stats { position: static; order: -1; } }
/* Yazarak onaylanan pencere */
.modal.is-ask .ask-type { display: grid; gap: 8px; margin: 4px 0 16px; font-size: 13px; font-weight: 500; color: var(--muted); }
.modal.is-ask .ask-type b { color: var(--ink); letter-spacing: 0.04em; }
.modal.is-ask .ask-type input { height: 42px; padding: 0 12px; border-radius: 10px; background: #fff; border: 1px solid rgba(60, 60, 67, 0.2); font-size: 15px; font-weight: 600; letter-spacing: 0.04em; }
.modal.is-ask .ask-type input:focus { border-color: #ff3b30; box-shadow: 0 0 0 3px rgba(255, 59, 48, 0.14); outline: none; }
.modal.is-ask .ask-yes:disabled { opacity: 0.45; cursor: not-allowed; }

/* WhatsApp tanıtım kartları */
.wa-chat, .wa-campaign, .wa-flow { position: absolute; left: 26px; right: 26px; top: 50%; transform: translateY(-50%); max-height: calc(100% - 24px); overflow: hidden; display: grid; gap: 7px; padding: 12px; border-radius: 14px; text-align: left; box-shadow: 0 10px 26px rgba(28, 32, 48, 0.1); }
.wa-chat { background: #ece5dd; background-image: radial-gradient(rgba(0, 0, 0, 0.035) 1px, transparent 1px); background-size: 10px 10px; }
.wa-top { display: flex; align-items: center; gap: 8px; margin: -12px -12px 2px; padding: 8px 12px; background: #075e54; color: #fff; border-radius: 14px 14px 0 0; font-size: 12px; }
.wa-top i { width: 20px; height: 20px; border-radius: 50%; background: #25d366; }
.wa-msg { justify-self: start; max-width: 92%; margin: 0; padding: 7px 10px; border-radius: 4px 12px 12px 12px; background: #fff; font-size: 12px; line-height: 1.45; color: #1d1d1f; box-shadow: 0 1px 1px rgba(0, 0, 0, 0.08); }
.wa-msg s { color: #8e8e93; }
.wa-btn { justify-self: start; font-size: 11.5px; font-weight: 600; color: #0a7cff; background: #fff; padding: 6px 12px; border-radius: 10px; box-shadow: 0 1px 1px rgba(0, 0, 0, 0.08); }
.wa-steps { display: flex; gap: 4px; }
.wa-steps span { flex: 1; text-align: center; font-size: 10.5px; font-weight: 600; padding: 4px 0; border-radius: 999px; background: rgba(255, 255, 255, 0.7); color: #8e8e93; }
.wa-steps span.on { background: #25d366; color: #fff; }
.wa-campaign { background: #fff; border: 1px solid var(--line); }
.wa-campaign > b { font-size: 13px; }
.wa-campaign .wa-msg { background: #dcf8c6; border-radius: 12px 4px 12px 12px; justify-self: stretch; max-width: none; }
.wa-meta { display: flex; justify-content: space-between; font-size: 12px; padding: 4px 2px; border-top: 1px solid var(--line); }
.wa-meta span { color: var(--muted); }
.wa-btn.is-send { justify-self: stretch; text-align: center; color: #fff; background: #25d366; }
.wa-flow { background: #fff; border: 1px solid var(--line); justify-items: center; gap: 4px; padding: 14px; }
.wa-node { width: 100%; text-align: center; font-size: 12px; font-weight: 600; padding: 8px 10px; border-radius: 10px; background: var(--blue-soft); color: var(--blue); }
.wa-node.is-wait { background: #fff4e6; color: #c25e00; }
.wa-node.is-send { background: #e7f9ee; color: #128c4b; }
.wa-flow > i { width: 2px; height: 12px; background: rgba(60, 60, 67, 0.2); }
@media (max-width: 720px) { .wa-chat, .wa-campaign, .wa-flow { left: 16px; right: 16px; padding: 10px; } .wa-top { margin: -10px -10px 2px; } }

/* WhatsApp tanıtımı: gerçekçi sohbet ekranları */
.wx { position: absolute; inset: 12px 22px; display: grid; grid-template-rows: auto minmax(0, 1fr); overflow: hidden; border-radius: 16px; text-align: left; box-shadow: 0 12px 30px rgba(17, 27, 33, 0.18); font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif; }
.wx-head { display: flex; align-items: center; gap: 8px; padding: 7px 10px; background: #008069; color: #fff; }
.wx-back { font-size: 18px; line-height: 1; opacity: 0.9; }
.wx-av { width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; font-size: 12px; font-weight: 700; background: linear-gradient(135deg, #ffd6a5, #ff9f68); color: #7a3a00; }
.wx-who { display: grid; line-height: 1.15; }
.wx-who b { font-size: 12.5px; font-weight: 600; display: inline-flex; align-items: center; gap: 4px; }
.wx-who small { font-size: 10px; opacity: 0.8; }
.wx-ver { width: 12px; height: 12px; border-radius: 50%; display: inline-grid; place-items: center; font-style: normal; font-size: 7px; background: #25d366; color: #fff; }
.wx-body { min-height: 0; display: flex; flex-direction: column; justify-content: flex-end; gap: 5px; padding: 8px 10px 10px; background-color: #efeae2;
  background-image: radial-gradient(circle at 20% 30%, rgba(0, 0, 0, 0.035) 1.5px, transparent 2px), radial-gradient(circle at 70% 70%, rgba(0, 0, 0, 0.03) 1.5px, transparent 2px);
  background-size: 22px 22px, 30px 30px; }
.wx-day { align-self: center; font-size: 9.5px; color: #54656f; background: #fff; padding: 2px 8px; border-radius: 6px; box-shadow: 0 1px 0.5px rgba(11, 20, 26, 0.13); }
.wx-in, .wx-out { position: relative; max-width: 88%; padding: 5px 7px 15px; border-radius: 8px; font-size: 11.5px; line-height: 1.38; color: #111b21; box-shadow: 0 1px 0.5px rgba(11, 20, 26, 0.13); }
.wx-in { align-self: flex-start; background: #fff; border-top-left-radius: 0; }
.wx-in::before { content: ""; position: absolute; top: 0; left: -6px; border-top: 0 solid transparent; border-right: 7px solid #fff; border-bottom: 8px solid transparent; }
.wx-out { align-self: flex-end; background: #d9fdd3; border-top-right-radius: 0; }
.wx-out::before { content: ""; position: absolute; top: 0; right: -6px; border-left: 7px solid #d9fdd3; border-bottom: 8px solid transparent; }
.wx-in p, .wx-out p { margin: 0; }
.wx-sub { color: #667781; font-size: 10px; }
.wx-time { position: absolute; right: 7px; bottom: 3px; display: inline-flex; gap: 3px; align-items: center; font-size: 9px; color: #667781; }
.wx-ticks { font-style: normal; color: #53bdeb; letter-spacing: -3px; font-size: 9.5px; }
.wx-prod { display: flex; align-items: center; gap: 7px; margin-top: 5px; padding: 4px; border-radius: 6px; background: #f5f6f6; }
.wx-prod > span:nth-child(2) { display: grid; line-height: 1.25; flex: 1; min-width: 0; }
.wx-prod b { font-size: 11px; }
.wx-prod small { font-size: 10px; color: #667781; }
.wx-prod s { color: #8696a0; }
.wx-prod em { font-style: normal; font-weight: 700; color: #008069; }
.wx-img { width: 34px; height: 34px; flex: none; border-radius: 5px; }
.wx-img.is-shirt { background: linear-gradient(160deg, #dfe9f5 0%, #b9cde6 60%, #93b1d8 100%); box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.05); }
.wx-img.is-scarf { background: linear-gradient(135deg, #f7c6d9 0%, #e88fb2 50%, #c9688f 100%); }
.wx-badge { font-size: 9px; font-weight: 700; color: #008069; background: #d8fdd2; padding: 2px 6px; border-radius: 999px; }
.wx-act { align-self: flex-start; width: 88%; display: grid; gap: 2px; margin-top: -3px; }
.wx-act span { text-align: center; font-size: 11px; font-weight: 500; color: #027eb5; background: #fff; padding: 5px; border-radius: 8px; box-shadow: 0 1px 0.5px rgba(11, 20, 26, 0.13); }
.wx-track { display: flex; align-items: center; margin: 7px 2px 2px; }
.wx-track span { width: 9px; height: 9px; border-radius: 50%; background: #d1d7db; flex: none; }
.wx-track span.on { background: #25d366; box-shadow: 0 0 0 3px rgba(37, 211, 102, 0.2); }
.wx-track i { flex: 1; height: 2px; background: #d1d7db; }
.wx-track i.on { background: #25d366; }
.wx-track-l { display: flex; justify-content: space-between; font-size: 9px; color: #667781; }
.wx-in.is-media { padding: 3px 3px 15px; }
.wx-in.is-media p { padding: 4px 5px 0; }
.wx-banner { display: grid; place-content: center; text-align: center; height: 62px; border-radius: 6px; color: #fff; background: linear-gradient(135deg, #ff9a3c 0%, #ff5e62 55%, #c2185b 100%); }
.wx-banner b { font-size: 15px; letter-spacing: 0.06em; }
.wx-banner span { font-size: 10.5px; opacity: 0.95; }
.wx-stat { position: absolute; top: 46px; right: 10px; font-size: 10px; color: #111b21; background: rgba(255, 255, 255, 0.95); padding: 4px 9px; border-radius: 999px; box-shadow: 0 4px 12px rgba(17, 27, 33, 0.15); }
.wx-stat b { color: #008069; }
.wx-flow { position: absolute; left: 30px; right: 30px; top: 50%; transform: translateY(-50%); display: grid; justify-items: stretch; text-align: left; }
.wx-node { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-radius: 12px; background: #fff; border: 1px solid var(--line); box-shadow: 0 6px 16px rgba(28, 32, 48, 0.08); }
.wx-node > span:nth-child(2) { display: grid; line-height: 1.25; flex: 1; }
.wx-node b { font-size: 12px; }
.wx-node small { font-size: 10.5px; color: var(--muted); }
.wx-node em { font-style: normal; font-size: 10px; font-weight: 700; color: #008069; background: #d8fdd2; padding: 2px 7px; border-radius: 999px; }
.wx-node.is-wa { border-color: rgba(37, 211, 102, 0.45); }
.wx-ic { width: 28px; height: 28px; flex: none; border-radius: 9px; display: grid; place-items: center; font-size: 14px; }
.wx-ic.is-cart { background: var(--blue-soft); }
.wx-ic.is-wait { background: #fff4e6; }
.wx-ic.is-wa { background: #25d366; }
.wx-ic svg { width: 16px; height: 16px; }
.wx-line { justify-self: center; width: 2px; height: 12px; background: repeating-linear-gradient(180deg, rgba(60, 60, 67, 0.3) 0 3px, transparent 3px 6px); }
@media (max-width: 720px) { .wx { inset: 10px 14px; } .wx-flow { left: 16px; right: 16px; } }
.wx-body { overflow: hidden; }
.wx-head { position: relative; z-index: 1; }
.wx { inset: 8px 18px; }

/* WhatsApp: dallanan iş akışı ve hazır otomasyonlar */
.wf { position: absolute; left: 20px; right: 20px; top: 50%; transform: translateY(-50%); max-height: calc(100% - 16px); display: grid; justify-items: center; }
.wf-n { display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; border-radius: 9px; background: #fff; border: 1px solid var(--line); box-shadow: 0 3px 8px rgba(28, 32, 48, 0.07); font-size: 10.5px; white-space: nowrap; }
.wf-n span { font-size: 11px; }
.wf-n b { font-weight: 600; }
.wf-n.is-trigger { border-color: rgba(0, 122, 255, 0.35); background: var(--blue-soft); color: var(--blue); }
.wf-n.is-wa { border-color: rgba(37, 211, 102, 0.45); background: #e9fbef; color: #0d7a43; }
.wf-n.is-wait { background: #fff4e6; border-color: rgba(255, 149, 0, 0.3); color: #a35200; }
.wf-n.is-if { background: #f3edff; border-color: rgba(120, 80, 220, 0.3); color: #5b33b8; }
.wf-l { width: 2px; height: 7px; background: rgba(60, 60, 67, 0.25); }
.wf-split { position: relative; width: 56%; height: 9px; border: 2px solid rgba(60, 60, 67, 0.25); border-bottom: 0; border-radius: 6px 6px 0 0; margin-top: 0; }
.wf-split i { display: none; }
.wf-row { display: flex; gap: 8px; width: 100%; justify-content: center; }
.wf-row .wf-n { flex-direction: column; align-items: flex-start; gap: 0; white-space: normal; line-height: 1.2; flex: 1; max-width: 48%; }
.wf-row small { font-size: 9px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.04em; }
.wf-n.is-yes { border-color: rgba(52, 199, 89, 0.4); }
.wf-n.is-yes small { color: var(--green); }
.wf-n.is-no { border-color: rgba(255, 59, 48, 0.3); }
.wf-n.is-no small { color: #d70015; }
.wf-grid { position: absolute; left: 16px; right: 16px; top: 50%; transform: translateY(-50%); display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 5px; }
.wf-grid span { font-size: 10.5px; font-weight: 600; padding: 5px 8px; border-radius: 8px; background: #fff; border: 1px solid var(--line); box-shadow: 0 2px 6px rgba(28, 32, 48, 0.05); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; text-align: left; color: var(--ink); }
.wf-grid span:nth-child(4n+1), .wf-grid span:nth-child(4n+4) { background: #f6fbf8; }
.pe-sub { display: grid; gap: 12px; padding-top: 4px; }
.pe-sub[hidden] { display: none; }
.pe-sub .field input[type="color"] { max-width: none; }
/* Görünüm: ekran seçici */
.pe-screen-tabs { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 2px; padding: 3px; border-radius: 12px; background: rgba(60, 60, 67, 0.08); }
.pe-screen-tabs button { height: 32px; padding: 0 10px; border-radius: 9px; background: transparent; color: var(--muted); box-shadow: none; font-size: 13px; font-weight: 500; }
.pe-screen-tabs button.on { background: #fff; color: var(--ink); font-weight: 600; box-shadow: 0 1px 4px rgba(28, 32, 48, 0.12); }
/* Yayın sonrası kurulum penceresi */
.pe-install .sheet { width: min(640px, calc(100vw - 32px)); max-height: calc(100vh - 48px); overflow-y: auto; display: grid; gap: 12px; }
.pe-install .sheet > .meta { margin: -4px 0 0; }
.pe-install-body { display: grid; gap: 12px; }
.pe-install .wheel-install { padding: 0; border: 0; background: none; box-shadow: none; }
.pe-install .wheel-install h3 { display: none; }
.pe-install .actions { display: flex; justify-content: flex-end; }
.pe-install .wheel-install > .meta { display: none; }
/* ikas'a ekli popup: kurulum penceresinde yalnız durum kartı ve isteğe bağlı kod */
.pe-install .wheel-install.is-ikas { padding: 16px 18px; border-radius: 16px; background: #f5f9ff; }
.pe-install .wheel-install.is-ikas h3 { display: block; }
.pe-install .wheel-install.is-ikas > .meta { display: block; }
.wheel-install-more { font-size: 14px; color: var(--muted); }
.wheel-install-more summary { cursor: pointer; padding: 4px 0; }
.wheel-install-more[open] summary { margin-bottom: 8px; }
/* Form öğeleri: onay kutuları ve düğme de sıralanır */
.pe-field { grid-template-columns: 22px minmax(0, 1fr) auto auto; }
.pe-field-extra { display: flex; align-items: center; gap: 8px; }
.pe-field.is-item { background: #f8faff; }
.pe-item-name { display: inline-flex; align-items: center; gap: 8px; font-size: 14px; }
.pe-item-ic { width: 16px; text-align: center; color: var(--blue); }
.pe-lock { font-size: 11.5px; font-weight: 600; color: var(--muted); background: rgba(60, 60, 67, 0.07); padding: 3px 8px; border-radius: 999px; }
@media (max-width: 640px) { .pe-field { grid-template-columns: 18px minmax(0, 1fr) auto; } .pe-field-extra { grid-column: 2 / -1; } }
.pe-field .pe-ph { grid-column: 2 / -1; height: 34px; padding: 0 10px; border-radius: 8px; border: 1px solid rgba(60, 60, 67, 0.16); background: #fafbfc; font-size: 13px; color: var(--ink); }
.pe-field .pe-ph:focus { border-color: var(--blue); background: #fff; outline: none; box-shadow: 0 0 0 3px rgba(0, 122, 255, 0.12); }
.pe-field { row-gap: 6px; }
/* Zamanlama kuralları */
.pe-rules { display: grid; gap: 8px; }
.pe-rule { display: flex; align-items: center; gap: 8px; min-height: 46px; padding: 6px 12px; border-radius: 12px; background: #fff; border: 1px solid rgba(60, 60, 67, 0.16); flex-wrap: wrap; }
.pe-rule-text { display: inline-flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 500; color: var(--ink); cursor: pointer; }
.pe-rule-text input { width: 16px; height: 16px; accent-color: var(--blue); }
.pe-rule input[type="number"] { width: 72px; height: 34px; padding: 0 8px; border-radius: 8px; border: 1px solid rgba(60, 60, 67, 0.2); background: #fff; font-size: 14px; font-weight: 600; text-align: center; }
.pe-rule input[type="number"]:disabled { background: #f4f5f7; color: #b0b4bc; }
.pe-rule-unit { font-size: 14px; color: var(--muted); }
.pe-rule select.pe-unit { width: auto; height: 34px; padding: 0 28px 0 10px; border-radius: 8px; border: 1px solid rgba(60, 60, 67, 0.2); background-color: #fff; font-size: 14px; }
.wheel-seg-top.no-color.is-single { grid-template-columns: minmax(0, 1fr); }
/* Düzenleyici: İçerik bölüm başlıkları ve yayın kontrol listesi */
.pe-section { margin: 10px 0 -2px; font-size: 12px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); }
.pe-section:first-child { margin-top: 0; }
.pe-check { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.pe-check li { display: grid; grid-template-columns: 26px minmax(0, 1fr); gap: 10px; align-items: start; padding: 10px 12px; border-radius: 12px; background: #fff; border: 1px solid rgba(60, 60, 67, 0.14); }
.pe-check li div { display: grid; gap: 2px; }
.pe-check li strong { font-size: 14px; }
.pe-check li small { font-size: 12.5px; color: var(--muted); line-height: 1.45; }
.pe-check-ic { width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center; font-size: 12px; font-weight: 800; }
.pe-check li.is-ok .pe-check-ic { background: rgba(52, 199, 89, 0.16); color: var(--green); }
.pe-check li.is-warn { border-color: rgba(255, 149, 0, 0.35); background: #fffaf2; }
.pe-check li.is-warn .pe-check-ic { background: #fff1db; color: #b25000; }
.pe-check li.is-bad { border-color: rgba(255, 59, 48, 0.3); background: #fff6f5; }
.pe-check li.is-bad .pe-check-ic { background: rgba(255, 59, 48, 0.14); color: #d70015; }
.pe-publish .pe-note { margin: 4px 0 0; }
.modal.is-ask .pe-check { margin: 4px 0 16px; text-align: left; }
.pe-screen-tabs { margin-bottom: 2px; }

/* Popup içeriği: bölüm bölüm (yazı, görsel, düğme, çizgi, boşluk, form) */
.pe-blocks { display: grid; gap: 8px; margin-bottom: 10px; }
.pe-block { border-radius: 14px; background: #fff; border: 1px solid rgba(60, 60, 67, 0.16); transition: border-color 0.15s, box-shadow 0.15s, opacity 0.15s; }
.pe-block.is-open { border-color: rgba(0, 122, 255, 0.45); box-shadow: 0 0 0 3px rgba(0, 122, 255, 0.08); }
.pe-block.is-drag { opacity: 0.45; }
.pe-block.is-over { border-color: var(--blue); box-shadow: 0 0 0 3px rgba(0, 122, 255, 0.14); }
.pe-block-head { display: flex; align-items: center; gap: 10px; min-height: 56px; padding: 8px 12px; cursor: pointer; user-select: none; }
.pe-block-head[draggable="true"] { cursor: grab; }
.pe-block-head:focus-visible { outline: 2px solid var(--blue); outline-offset: -2px; border-radius: 14px; }
.pe-block .pe-handle { width: 16px; flex: none; }
.pe-block-ic { display: inline-grid; place-items: center; width: 30px; height: 30px; flex: none; border-radius: 9px; background: rgba(0, 122, 255, 0.08); color: var(--blue); font-weight: 700; font-size: 14px; }
.pe-block.is-fixed .pe-block-ic { background: rgba(60, 60, 67, 0.08); color: var(--ink); }
.pe-block-text { display: grid; min-width: 0; flex: 1; }
.pe-block-text strong { font-size: 14px; color: var(--ink); }
.pe-block-text small { font-size: 12px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pe-block-del { height: 28px; padding: 0 10px; font-size: 12px; color: #d70015 !important; }
.pe-block-chev { color: var(--muted); font-size: 12px; width: 14px; text-align: center; }
.pe-block-body { display: grid; gap: 12px; padding: 4px 14px 16px; border-top: 1px solid var(--line); padding-top: 14px; }
.pe-block-body .wheel-image { margin: 0; }
.pe-textarea { width: 100%; resize: vertical; min-height: 64px; padding: 10px 12px; border-radius: 10px; border: 1px solid var(--line-strong); font: inherit; font-size: 14px; line-height: 1.45; }
.pe-add-wrap { position: relative; }
.pe-add-wrap .pe-add { width: 100%; }
.pe-add-menu { position: absolute; left: 0; right: 0; bottom: calc(100% + 6px); z-index: 5; display: grid; gap: 2px; padding: 6px; border-radius: 14px; background: #fff; border: 1px solid var(--line); box-shadow: 0 18px 40px rgba(28, 32, 48, 0.16); }
.pe-add-menu button { display: flex; align-items: center; gap: 10px; height: 42px; padding: 0 10px; border: 0; border-radius: 10px; background: transparent; color: var(--ink); font-weight: 500; text-align: left; box-shadow: none; }
.pe-add-menu button:hover { background: rgba(0, 122, 255, 0.07); }
.pe-add-menu .pe-block-ic { width: 26px; height: 26px; font-size: 13px; }
.pe-add-menu[hidden] { display: none; }
.pe-add-menu button { justify-content: flex-start; width: 100%; }
.pe-align-btns { display: flex; width: 100%; height: 44px; align-items: stretch; }
.pe-align-btns button { flex: 1; height: auto; }

/* Popup editörü renk seçici: yuvarlak renk kutusu + renk kodu */
.pe-color { display: flex; align-items: center; gap: 10px; height: 44px; padding: 0 12px 0 8px; border-radius: 12px; border: 1px solid var(--line-strong); background: #fff; transition: border-color 0.15s, box-shadow 0.15s; }
.pe-color:focus-within { border-color: var(--blue); box-shadow: 0 0 0 3px rgba(0, 122, 255, 0.14); }
.pe-scroll .pe-color input.pe-swatch, input.pe-swatch { flex: none; width: 28px !important; height: 28px !important; max-width: none; padding: 0 !important; border: 0 !important; border-radius: 50% !important; background: none !important; cursor: pointer; box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.12); -webkit-appearance: none; appearance: none; }
input.pe-swatch::-webkit-color-swatch-wrapper { padding: 0; }
input.pe-swatch::-webkit-color-swatch { border: 1px solid rgba(0, 0, 0, 0.12); border-radius: 50%; }
input.pe-swatch::-moz-color-swatch { border: 1px solid rgba(0, 0, 0, 0.12); border-radius: 50%; }
.pe-color .pe-hex { flex: 1; min-width: 0; width: 100%; height: 100%; padding: 0 !important; border: 0 !important; background: transparent !important; box-shadow: none !important; outline: none; font: 500 14px/1 ui-monospace, SFMono-Regular, Menlo, monospace; letter-spacing: 0.02em; color: var(--ink); text-transform: uppercase; }
.pe-color .pe-hex.is-bad { color: #d70015; }
.wheel-seg-top input.pe-swatch { width: 34px !important; height: 34px !important; }

/* Popup editörü: bölüm araçları, alt başlıklar, geri al */
.pe-block-tool { width: 28px; height: 28px; padding: 0 !important; border-radius: 8px; font-size: 13px; color: var(--muted) !important; flex: none; }
.pe-block-tool:hover:not(:disabled) { color: var(--ink) !important; background: rgba(60, 60, 67, 0.08) !important; }
.pe-block-tool:disabled { opacity: 0.3; }
.pe-subhead { margin: 6px 0 -2px; font-size: 12px; font-weight: 600; letter-spacing: 0.04em; text-transform: uppercase; color: var(--muted); }
.pe-undo { width: 36px; padding: 0 !important; font-size: 17px; }
.pe-undo:disabled { opacity: 0.35; }
.wheel-hint.is-bad { color: #d70015; }
.pe-modes { height: auto; flex-wrap: wrap; }
.pe-modes button { min-height: 36px; flex: 1 1 calc(50% - 4px); }
@media (min-width: 1200px) { .pe-modes button { flex-basis: 0; } }

/* Tür seçimi: içerik sayfayı daha iyi doldursun, üstte/altta büyük boşluk kalmasın */
@media (min-width: 761px) {
  .page-body:has(.type-page) { padding: clamp(16px, 3vh, 32px) 0; }
  .type-page { width: min(1280px, 100%); gap: clamp(8px, 1.4vh, 14px); }
  .type-page h2 { font-size: 30px; }
  .type-grid { gap: 20px; margin-top: clamp(14px, 2.6vh, 28px); }
  .type-card { grid-template-rows: clamp(170px, 36vh, 340px) auto; }
  .type-copy { padding: 18px 20px 20px; gap: 6px; }
  .type-copy strong { font-size: 18px; }
  .type-copy span { font-size: 14px; }
  .type-foot { margin-top: clamp(14px, 2.6vh, 28px); }
  .type-foot button { height: 46px; }
}

/* Yeni popup 2. adım: hazır tasarımlar (canlı önizlemeli kartlar) */
.type-body { width: 100%; }
.tpl-grid { width: 100%; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; margin-top: clamp(10px, 2vh, 22px); }
.tpl-card { position: relative; display: grid; grid-template-rows: auto auto; align-content: start; overflow: hidden; height: auto; padding: 0; text-align: left; white-space: normal; color: inherit; border-radius: 18px; background: #fff; border: 1px solid var(--line); box-shadow: 0 10px 30px rgba(28, 32, 48, 0.08); transition: transform 0.2s, box-shadow 0.2s, border-color 0.2s; }
.tpl-card:hover { background: #fff; transform: translateY(-3px); box-shadow: 0 18px 40px rgba(28, 32, 48, 0.14); }
.tpl-card.on { border-color: var(--blue); box-shadow: 0 0 0 3px rgba(0, 122, 255, 0.18), 0 18px 40px rgba(0, 122, 255, 0.14); }
.tpl-card.on .type-check { opacity: 1; transform: none; }
.tpl-view { position: relative; width: 100%; aspect-ratio: 1100 / 620; overflow: hidden; background: linear-gradient(160deg, #eef3fa, #e6ecf5); border-bottom: 1px solid var(--line); pointer-events: none; }
.tpl-inner { position: absolute; top: 0; left: 0; width: 1100px; transform-origin: 0 0; padding: 28px 40px; }
.tpl-card .type-copy { padding: 14px 16px 16px; }
@media (min-width: 761px) { .type-page.is-designs { width: min(1280px, 100%); } }
@media (max-width: 1080px) { .tpl-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 760px) { .tpl-grid { grid-template-columns: minmax(0, 1fr); gap: 12px; } }
/* Tasarım kartları yalnız görsel: adı önizlemenin üstünde etiket */
.tpl-card { display: block; }
.tpl-card .tpl-view { border-bottom: 0; }
.tpl-name { position: absolute; left: 12px; bottom: 12px; z-index: 2; display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; border-radius: 999px; background: rgba(255, 255, 255, 0.94); box-shadow: 0 4px 14px rgba(28, 32, 48, 0.16); font-size: 13px; font-weight: 600; color: var(--ink); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
.tpl-name em { font-style: normal; font-size: 11px; font-weight: 600; color: var(--blue); background: var(--blue-soft); padding: 2px 7px; border-radius: 999px; }
/* Tasarım kartı: önizleme kenardan kenara; sağ altta Önizle */
.tpl-card { cursor: pointer; outline: none; }
.tpl-card:focus-visible { border-color: var(--blue); box-shadow: 0 0 0 3px rgba(0, 122, 255, 0.3); }
.tpl-view { aspect-ratio: 1100 / 680; background: #fff; }
.tpl-inner { padding: 0; }
.tpl-peek { position: absolute; right: 12px; bottom: 12px; z-index: 2; height: 32px; padding: 0 14px; border-radius: 999px; font-size: 13px; font-weight: 600; background: rgba(17, 20, 28, 0.82) !important; color: #fff !important; box-shadow: 0 4px 14px rgba(28, 32, 48, 0.2); opacity: 0; transform: translateY(4px); transition: opacity 0.15s, transform 0.15s; }
.tpl-card:hover .tpl-peek, .tpl-card:focus-within .tpl-peek, .tpl-card.on .tpl-peek { opacity: 1; transform: none; }
.tpl-peek:hover { background: #000 !important; }
@media (hover: none) { .tpl-peek { opacity: 1; transform: none; } }
/* Önizleme penceresi: bilgisayar + telefon */
.tpl-modal .tpl-sheet { width: min(1180px, calc(100vw - 32px)); max-height: calc(100vh - 32px); overflow: auto; display: grid; gap: 16px; text-align: left; }
.tpl-sheet-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; }
.tpl-sheet-head h2 { margin: 0 0 4px; }
.tpl-sheet-head .lead { margin: 0; }
.tpl-x { width: 36px; height: 36px; padding: 0 !important; border-radius: 50%; font-size: 20px; flex: none; }
.tpl-views { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 20px; align-items: start; }
.tpl-col { display: grid; gap: 8px; }
.tpl-col-label { font-size: 12px; font-weight: 600; letter-spacing: 0.04em; text-transform: uppercase; color: var(--muted); }
.tpl-desk { position: relative; overflow: hidden; border-radius: 14px; border: 1px solid var(--line); background: #fff; }
.tpl-desk-inner { position: absolute; top: 0; left: 0; width: 1100px; transform-origin: 0 0; }
.tpl-phone { width: 300px; height: 600px; padding: 14px 10px; border-radius: 40px; background: #1c1c1e; box-shadow: 0 18px 40px rgba(28, 32, 48, 0.2); }
.tpl-phone-screen { width: 100%; height: 100%; overflow: auto; border-radius: 30px; background: #eef1f6; padding: 36px 10px 16px; }
.tpl-sheet .actions { display: flex; justify-content: flex-end; gap: 10px; }
@media (max-width: 900px) { .tpl-views { grid-template-columns: minmax(0, 1fr); } .tpl-col.is-phone { justify-items: center; } }
/* Önizleme penceresi: sade, boşluksuz yerleşim */
.tpl-modal .tpl-sheet { width: min(1240px, calc(100vw - 32px)); max-height: none; overflow: visible; gap: 18px; padding: 22px 24px; }
.tpl-sheet-head h2 { font-size: 20px; }
.tpl-views { display: flex; justify-content: center; align-items: flex-end; gap: 32px; padding: 24px 20px 16px; border-radius: 18px; background: linear-gradient(160deg, #eef3fa, #e7edf6); }
.tpl-col { display: grid; justify-items: center; gap: 10px; }
.tpl-col-label { font-size: 12px; letter-spacing: 0.04em; }
.tpl-desk { border-radius: 12px; border: 0; box-shadow: 0 14px 34px rgba(28, 32, 48, 0.14); }
.tpl-phone { padding: 10px; border-radius: 34px; box-shadow: 0 14px 34px rgba(28, 32, 48, 0.2); }
.tpl-phone-screen { border-radius: 26px; padding: 26px 8px 12px; scrollbar-width: none; }
.tpl-phone-screen::-webkit-scrollbar { display: none; }
.tpl-sheet .actions { margin: 0; }
@media (max-width: 900px) { .tpl-views { flex-direction: column; align-items: center; } }
/* Tasarım önizlemeleri yalnız gösterim: içindeki form kullanılamaz */
.tpl-desk-inner, .tpl-phone-screen > *, .tpl-inner { pointer-events: none; user-select: none; }
/* Önizleme telefonu: gerçek telefon genişliğinde çizilip küçültülür */
.tpl-phone-screen { position: relative; padding: 0; overflow: hidden; background: #fff; }
.tpl-phone-inner { position: absolute; top: 0; left: 0; width: 390px; height: 844px; transform-origin: 0 0; }
/* Uzun tasarım listesi: sayfa yukarıdan başlar, taşan kısım üstte kesilmez (ortalama yalnız sığarsa) */
.page-body:has(.type-page) { justify-content: safe center; }
.page-body:has(.type-page.is-designs) { justify-content: flex-start; }
.type-page.is-designs .type-foot { position: sticky; bottom: 0; z-index: 4; width: 100%; margin-top: 18px; padding: 14px 0 18px; background: linear-gradient(180deg, rgba(240, 243, 248, 0), rgba(240, 243, 248, 0.95) 35%); }
/* Alt düğme çubuğu ekranın en altına yapışsın; altında kart görünmesin */
.page-body:has(.type-page.is-designs) { padding-bottom: 0; }
.type-page.is-designs .type-foot { bottom: 0; margin-bottom: 0; padding: 14px 0 20px; background: linear-gradient(180deg, rgba(240, 243, 248, 0) 0, rgba(240, 243, 248, 0.97) 22px, #f0f3f8 100%); }
/* 12 tasarım: 4 sütun, daha küçük etiketler; hepsi tek ekranda */
@media (min-width: 1200px) {
  .tpl-grid.is-many { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
  .tpl-grid.is-many .tpl-name { left: 8px; bottom: 8px; padding: 4px 9px; font-size: 12px; }
  .tpl-grid.is-many .tpl-name em { font-size: 10px; padding: 1px 6px; }
  .tpl-grid.is-many .tpl-peek { right: 8px; bottom: 8px; height: 26px; padding: 0 10px; font-size: 12px; }
  .tpl-grid.is-many .type-check { top: 8px; right: 8px; width: 22px; height: 22px; font-size: 11px; }
}
/* Önizleme penceresi: solda ekran seçimi, sağda düğmeler */
.tpl-sheet .actions { justify-content: space-between; align-items: center; flex-wrap: wrap; }
.tpl-actions { display: flex; gap: 10px; }
.tpl-screens { height: 40px; align-items: stretch; }
.tpl-screens button { height: auto; padding: 0 14px; font-size: 13px; }

/* Düzenleme önizlemesi: gerçek boyutta çizilip alana sığdırılır (tasarım önizlemesiyle aynı yöntem) */
.pe-stage, .pe-stage.is-mobile { width: 100%; max-width: none; height: 100%; min-height: 0; overflow: hidden; display: grid; place-items: center; align-content: center; }
.pe-stage .wheel-preview-box, .pe-stage.is-mobile .wheel-preview-box { position: relative; width: auto; height: auto; max-height: none; min-height: 0; padding: 0; border: 0; overflow: hidden; border-radius: 14px; background: #fff; box-shadow: 0 18px 44px rgba(28, 32, 48, 0.16); }
.pe-stage.is-mobile .wheel-preview-box { padding: 10px; border-radius: 46px; background: #1c1c1e; box-shadow: 0 0 0 2px #3a3a3c, 0 24px 60px rgba(28, 32, 48, 0.28); }
.pe-stage.is-mobile .wheel-preview-box::before { content: none; display: none; }
.pe-screen-el { position: relative; overflow: hidden; }
.pe-stage.is-mobile .pe-screen-el { border-radius: 36px; }
.pe-canvas { position: absolute; top: 0; left: 0; transform-origin: 0 0; }

/* Popup raporu: solda grafik, sağda gelir ve özet (Hesabım düzeni) */
.rep-grid { display: grid; grid-template-columns: minmax(0, 1.8fr) minmax(260px, 1fr); gap: 14px; align-items: start; }
.rep-side { display: grid; gap: 12px; position: sticky; top: 0; }
.rep-revenue { display: grid; gap: 4px; padding: 18px 20px; border-radius: 18px; color: #fff; background: linear-gradient(140deg, #0a84ff, #0060df 60%, #4f46e5); box-shadow: 0 16px 36px rgba(0, 96, 223, 0.28); }
.rep-revenue .integ-tile-label { color: rgba(255, 255, 255, 0.78); }
.rep-revenue strong { font-size: 32px; letter-spacing: -0.03em; line-height: 1.1; }
.rep-revenue small { color: rgba(255, 255, 255, 0.82); font-size: 12.5px; }
.rep-revenue-all { display: flex; justify-content: space-between; gap: 8px; margin-top: 8px; padding-top: 10px; border-top: 1px solid rgba(255, 255, 255, 0.22); font-size: 13px; }
.rep-revenue-all span { color: rgba(255, 255, 255, 0.78); }
.rep-revenue-note { margin-top: 2px; opacity: 0.85; }
.rep-chart { display: grid; gap: 14px; }
.rep-chart-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; flex-wrap: wrap; }
.rep-metrics { display: flex; gap: 8px; flex-wrap: wrap; }
.rep-metric { display: grid; gap: 2px; justify-items: start; height: auto; padding: 10px 14px; border-radius: 14px; background: rgba(60, 60, 67, 0.05) !important; color: var(--ink) !important; box-shadow: none !important; border: 1px solid transparent; text-align: left; }
.rep-metric span { font-size: 12px; font-weight: 600; color: var(--muted); }
.rep-metric strong { font-size: 18px; letter-spacing: -0.02em; }
.rep-metric.on { background: #fff !important; border-color: rgba(0, 122, 255, 0.35); box-shadow: 0 0 0 3px rgba(0, 122, 255, 0.1) !important; }
.rep-ranges { height: 36px; align-items: stretch; }
.rep-ranges button { height: auto; padding: 0 12px; font-size: 13px; }
.rep-plot { position: relative; height: 240px; color: #0a84ff; }
.rep-plot.is-leads { color: #5e5ce6; }
.rep-plot.is-revenue { color: #16a34a; }
.rep-plot svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.rep-plot .rep-grid { stroke: rgba(60, 60, 67, 0.1); stroke-width: 1; vector-effect: non-scaling-stroke; }
.rep-line { fill: none; stroke: currentColor; stroke-width: 2.5; stroke-linejoin: round; stroke-linecap: round; }
.rep-hit { position: absolute; inset: 0; cursor: crosshair; }
.rep-guide { position: absolute; top: 0; bottom: 0; width: 1px; background: rgba(60, 60, 67, 0.25); pointer-events: none; }
.rep-marker { position: absolute; width: 12px; height: 12px; margin: -6px 0 0 -6px; border-radius: 50%; background: #fff; border: 3px solid currentColor; box-shadow: 0 2px 6px rgba(0, 0, 0, 0.18); pointer-events: none; }
.rep-tip { position: absolute; top: 8px; width: 190px; display: grid; gap: 4px; padding: 10px 12px; border-radius: 12px; background: rgba(28, 28, 30, 0.94); color: #fff; font-size: 12.5px; box-shadow: 0 12px 30px rgba(0, 0, 0, 0.25); pointer-events: none; z-index: 2; }
.rep-tip strong { font-size: 12.5px; margin-bottom: 2px; }
.rep-tip span { display: flex; justify-content: space-between; gap: 8px; color: rgba(255, 255, 255, 0.72); }
.rep-tip span.is-on { color: #fff; }
.rep-tip em { font-style: normal; }
.rep-axis { position: relative; height: 18px; font-size: 11.5px; color: var(--muted); }
.rep-axis span { position: absolute; transform: translateX(-50%); white-space: nowrap; }
.rep-axis span:first-child { transform: none; }
.rep-axis span:last-child { transform: translateX(-100%); }
@media (max-width: 1080px) { .rep-grid { grid-template-columns: 1fr; } .rep-side { position: static; order: -1; grid-template-columns: repeat(2, minmax(0, 1fr)); } .rep-revenue { grid-column: 1 / -1; } }
.rep-tip[hidden], .rep-marker[hidden], .rep-guide[hidden] { display: none; }
.rep-plot { height: 340px; }
/* Rapor: sağ sütun grafikle aynı boyda; gelir üstte tam genişlik, dört kart 2×2 */
.rep-grid { align-items: stretch; }
.rep-side { position: static; grid-template-columns: repeat(2, minmax(0, 1fr)); grid-template-rows: auto 1fr 1fr; }
.rep-side > .rep-revenue { grid-column: 1 / -1; }
.rep-side > .integ-tile { align-content: space-between; min-height: 0; }
.rep-side > .integ-tile strong { font-size: 26px; }
/* Geri al / yinele: kare ikon düğmeler */
.pe-undo { display: inline-grid; place-items: center; width: 38px; height: 38px; padding: 0 !important; border-radius: 10px; color: var(--ink) !important; }
.pe-undo.is-redo svg { transform: scaleX(-1); }
.pe-undo:disabled { opacity: 0.3; }
.pe-undo:not(:disabled):hover { background: rgba(60, 60, 67, 0.08) !important; }
.pe-code-rules { margin-top: 4px; }

/* ---------- Raporlar ---------- */
.rp-page { display: grid; gap: 14px; }
.rp-sync { align-self: center; font-size: 13px; color: var(--muted); white-space: nowrap; }
.rp-sync.is-busy { color: var(--blue); }
.rp-alert { margin: 0; padding: 10px 14px; border-radius: 12px; background: #fff4f2; color: #b42318; font-size: 13.5px; }
.rp-alert.is-info { background: #f0f6ff; color: #1d4ed8; }
.rp-empty { display: grid; gap: 10px; justify-items: start; padding: 28px; }
.rp-empty h3 { margin: 0; }
.rp-bar { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; }
.rp-tabs, .rp-ranges { height: 38px; align-items: stretch; }
.rp-tabs button, .rp-ranges button { height: auto; padding: 0 14px; font-size: 13.5px; display: inline-flex; align-items: center; gap: 6px; }
.rp-badge { min-width: 18px; height: 18px; padding: 0 5px; border-radius: 999px; background: #ff3b30; color: #fff; font-size: 11px; font-weight: 700; display: inline-grid; place-items: center; }
.rp-range-note { align-self: center; padding: 0 12px; font-size: 13px; color: var(--muted); }
.rp-title { margin: 0; font-size: 16px; letter-spacing: -0.01em; }
.rp-card-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; }
.rp-lead { margin: -4px 0 0; }
.link-button { height: auto; padding: 0; border: 0; background: none !important; box-shadow: none !important; color: var(--blue) !important; font-size: 13.5px; font-weight: 600; cursor: pointer; }

/* Özet kartları */
.rp-kpis { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 12px; }
.rp-kpi { display: grid; gap: 4px; align-content: start; padding: 14px 16px; border-radius: 16px; background: #fff; border: 1px solid var(--line); text-align: left; color: var(--ink); }
.rp-kpi-top { display: flex; justify-content: space-between; align-items: center; gap: 6px; }
.rp-kpi-label { font-size: 12.5px; font-weight: 600; color: var(--muted); }
.rp-kpi strong { font-size: 24px; letter-spacing: -0.03em; line-height: 1.15; }
.rp-kpi small { font-size: 12px; color: var(--muted); line-height: 1.35; }
.rp-kpi.is-main { background: linear-gradient(140deg, #0a84ff, #0060df 60%, #4f46e5); border-color: transparent; color: #fff; box-shadow: 0 14px 30px rgba(0, 96, 223, 0.24); }
.rp-kpi.is-main .rp-kpi-label, .rp-kpi.is-main small { color: rgba(255, 255, 255, 0.8); }
.rp-kpi.is-main .rp-delta { background: rgba(255, 255, 255, 0.18); color: #fff; }
.rp-delta { font-size: 11.5px; font-weight: 700; padding: 2px 7px; border-radius: 999px; white-space: nowrap; background: rgba(60, 60, 67, 0.07); color: var(--muted); }
.rp-delta.is-up { background: #e8f7ee; color: #15803d; }
.rp-delta.is-down { background: #fdecec; color: #c0262d; }

/* Satır düzenleri */
.rp-row { display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(300px, 1fr); gap: 14px; align-items: stretch; }
.rp-row.is-even { grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); }
.rp-row.is-single { grid-template-columns: minmax(0, 1fr); }
.rp-row > .card { display: grid; gap: 14px; align-content: start; }

/* Isı haritası */
.rp-heat { position: relative; }
.rp-heat-grid { display: grid; grid-template-columns: 34px repeat(24, minmax(0, 1fr)); gap: 3px; align-items: center; }
.rp-heat-hour { font-size: 10.5px; color: var(--muted); text-align: left; }
.rp-heat-day { font-size: 12px; font-weight: 600; color: var(--muted); }
.rp-heat-cell { aspect-ratio: 1; border-radius: 4px; background: rgba(60, 60, 67, 0.05); position: relative; cursor: default; }
.rp-heat-cell::after { content: ""; position: absolute; inset: 0; border-radius: inherit; background: #0a84ff; opacity: var(--a, 0); }
.rp-heat-cell:hover { outline: 2px solid #1c1c1e; outline-offset: 1px; z-index: 1; }
.rp-heat-cell.is-peak { outline: 2px solid #ff9500; outline-offset: 1px; }
.rp-heat-legend { display: flex; align-items: center; justify-content: flex-end; gap: 8px; font-size: 11.5px; color: var(--muted); }
.rp-heat-legend i { width: 110px; height: 8px; border-radius: 999px; background: linear-gradient(90deg, rgba(10, 132, 255, 0.12), #0a84ff); }
.rp-heat-tip { width: 190px; top: 0; }

/* Öne çıkanlar */
.rp-insight-list { display: grid; gap: 8px; }
.rp-insight { display: grid; grid-template-columns: 34px minmax(0, 1fr); gap: 10px; padding: 10px 12px; border-radius: 14px; background: rgba(60, 60, 67, 0.04); }
.rp-insight-icon { width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; background: #fff; font-size: 17px; box-shadow: 0 1px 2px rgba(0, 0, 0, 0.06); }
.rp-insight strong { font-size: 13.5px; display: block; }
.rp-insight p { margin: 2px 0 0; font-size: 12.5px; color: var(--muted); line-height: 1.45; }
.rp-insight.is-good { background: #f0faf3; }
.rp-insight.is-warn { background: #fff8eb; }
.rp-insight.is-bad { background: #fff2f1; }

/* Cihaz */
.rp-split { display: flex; height: 14px; border-radius: 999px; overflow: hidden; gap: 2px; }
.rp-split-seg { min-width: 4px; }
.rp-split-seg.is-mobile, .rp-dot.is-mobile { background: #0a84ff; }
.rp-split-seg.is-desktop, .rp-dot.is-desktop { background: #5e5ce6; }
.rp-split-seg.is-tablet, .rp-dot.is-tablet { background: #30b0c7; }
.rp-split-seg.is-other, .rp-dot.is-other, .rp-split-seg.is-unknown, .rp-dot.is-unknown { background: #c7c7cc; }
.rp-device-rows { display: grid; gap: 8px; }
.rp-device-row { display: grid; grid-template-columns: 10px 90px 48px minmax(0, 1fr); gap: 10px; align-items: center; font-size: 13.5px; }
.rp-device-row .meta { font-size: 12.5px; }
.rp-dot { width: 10px; height: 10px; border-radius: 50%; }

/* En çok satanlar */
.rp-top-list { display: grid; gap: 10px; }
.rp-top-row { display: grid; grid-template-columns: 40px minmax(0, 1fr) auto; gap: 12px; align-items: center; }
.rp-top-mid { display: grid; gap: 6px; min-width: 0; }
.rp-top-mid strong { font-size: 13.5px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rp-top-bar { height: 6px; border-radius: 999px; background: linear-gradient(90deg, #0a84ff, #5e5ce6); }
.rp-top-right { display: grid; justify-items: end; gap: 2px; font-size: 13.5px; }
.rp-top-right .meta { font-size: 12px; }
.rp-thumb { width: 40px; height: 40px; flex: none; border-radius: 10px; overflow: hidden; background: rgba(60, 60, 67, 0.08); display: inline-grid; place-items: center; font-weight: 700; color: var(--muted); }
.rp-thumb img { width: 100%; height: 100%; object-fit: cover; }

/* Tablolar */
.rp-table-card { display: grid; gap: 12px; }
.rp-search { height: 36px; width: min(260px, 100%); padding: 0 12px; border-radius: 10px; border: 1px solid var(--line); font-size: 13.5px; }
.rp-tools { display: flex; gap: 8px; align-items: center; }
.rp-table td, .rp-table th { white-space: nowrap; }
.rp-table th.is-sortable { cursor: pointer; user-select: none; }
.rp-table th.is-sortable:hover { color: var(--ink); }
.rp-table th.is-sorted { color: var(--blue); }
.rp-table th.is-sorted::after { content: " ↓"; }
.rp-num { text-align: right; font-variant-numeric: tabular-nums; }
.rp-name-cell { display: flex; align-items: center; gap: 10px; min-width: 220px; white-space: normal !important; }
.rp-name-cell .rp-thumb { width: 34px; height: 34px; border-radius: 8px; }
.rp-pill { display: inline-block; padding: 3px 9px; border-radius: 999px; font-size: 12px; font-weight: 650; background: rgba(60, 60, 67, 0.07); color: var(--muted); }
.rp-pill.is-ok { background: #e8f7ee; color: #15803d; }
.rp-pill.is-warn { background: #fff4e0; color: #b45309; }
.rp-pill.is-bad { background: #fdecec; color: #c0262d; }
.rp-pill.is-dead { background: #eef2f7; color: #475569; }
.rp-pill.is-star { background: #fef3c7; color: #92400e; }
.rp-days { min-width: 130px; }
.rp-days b { display: block; font-size: 13px; font-weight: 600; }
.rp-meter { display: block; height: 5px; margin-top: 4px; border-radius: 999px; background: rgba(60, 60, 67, 0.08); overflow: hidden; }
.rp-meter i { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, #ff3b30, #ff9500 30%, #34c759 70%); }
.rp-chips { display: flex; gap: 6px; flex-wrap: wrap; }
.rp-chips button { height: 32px; padding: 0 12px; border-radius: 999px; font-size: 13px; background: rgba(60, 60, 67, 0.06) !important; color: var(--ink) !important; box-shadow: none !important; }
.rp-chips button.on { background: #1c1c1e !important; color: #fff !important; }
.rp-foot { display: block; }

/* Stok kartları tıklanabilir filtredir */
.rp-stock-kpis { grid-template-columns: repeat(5, minmax(0, 1fr)); }
.rp-stock-tile { height: auto; cursor: pointer; box-shadow: none !important; transition: border-color .15s, box-shadow .15s; }
.rp-stock-tile:not(.is-main) { background: #fff !important; color: var(--ink) !important; }
.rp-stock-tile.is-bad strong { color: #c0262d; }
.rp-stock-tile.is-warn strong { color: #b45309; }
.rp-stock-tile.is-dead strong { color: #475569; }
.rp-stock-tile.on:not(.is-main) { border-color: rgba(0, 122, 255, 0.45); box-shadow: 0 0 0 3px rgba(0, 122, 255, 0.12) !important; }

@media (max-width: 1100px) {
  .rp-kpis { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .rp-row, .rp-row.is-even { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 640px) {
  .rp-kpis, .rp-stock-kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .rp-heat-grid { grid-template-columns: 28px repeat(24, minmax(0, 1fr)); gap: 2px; }
  .rp-device-row { grid-template-columns: 10px 80px 44px; }
  .rp-device-row .meta { grid-column: 2 / -1; }
}
