/* =========================================================================
   TrueFeedback design system
   ========================================================================= */
:root {
  --font: "Plus Jakarta Sans", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --mono: ui-monospace, "SF Mono", Menlo, Consolas, monospace;

  --bg: #f6f7fb;
  --bg-soft: #eef0f7;
  --surface: #ffffff;
  --surface-2: #fafbfd;
  --text: #0f1222;
  --text-2: #3b4056;
  --muted: #6b7189;
  --border: #e4e7f0;
  --border-strong: #d3d7e4;

  --primary: #4f46e5;
  --primary-hover: #4338ca;
  --primary-ink: #ffffff;
  --primary-soft: #eef0ff;
  --primary-soft-2: #e0e3ff;
  --ring: rgba(79, 70, 229, .18);

  --teal: #0d9488;
  --teal-soft: #e6f7f5;
  --ok: #15803d;
  --ok-soft: #e9f8ee;
  --warn: #b45309;
  --warn-soft: #fff5e6;
  --danger: #dc2626;
  --danger-soft: #fdeeee;
  --star: #f59e0b;

  --radius-sm: 8px;
  --radius: 12px;
  --radius-lg: 18px;
  --shadow-sm: 0 1px 2px rgba(16, 24, 56, .06);
  --shadow: 0 1px 2px rgba(16, 24, 56, .05), 0 8px 24px -8px rgba(16, 24, 56, .10);
  --shadow-lg: 0 2px 6px rgba(16, 24, 56, .06), 0 32px 64px -20px rgba(16, 24, 56, .28);
  --sidebar-w: 256px;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0b0d16;
    --bg-soft: #121526;
    --surface: #12152a;
    --surface-2: #161a31;
    --text: #eef0fa;
    --text-2: #c9cde0;
    --muted: #9095b0;
    --border: #232845;
    --border-strong: #2f3558;
    --primary: #7c74ff;
    --primary-hover: #938cff;
    --primary-ink: #0b0d16;
    --primary-soft: #1d1f45;
    --primary-soft-2: #26295a;
    --ring: rgba(124, 116, 255, .28);
    --teal: #2dd4bf;
    --teal-soft: #0f2e2c;
    --ok: #4ade80;
    --ok-soft: #102a1a;
    --warn: #fbbf24;
    --warn-soft: #2e2410;
    --danger: #f87171;
    --danger-soft: #2f1416;
    --shadow-sm: none;
    --shadow: 0 0 0 1px rgba(255, 255, 255, .02);
    --shadow-lg: 0 32px 64px -20px rgba(0, 0, 0, .6);
  }
}

/* Base ------------------------------------------------------------------ */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0; background: var(--bg); color: var(--text);
  font: 15px/1.6 var(--font); -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
}
a { color: var(--primary); text-decoration: none; }
a:hover { color: var(--primary-hover); }
h1, h2, h3, h4 { line-height: 1.2; margin: 0 0 .5em; letter-spacing: -.02em; color: var(--text); font-weight: 700; }
h1 { font-size: 1.75rem; } h2 { font-size: 1.25rem; } h3 { font-size: 1.02rem; letter-spacing: -.01em; }
p { margin: 0 0 1em; }
small { font-size: .85em; }
.muted, small.muted { color: var(--muted); }
code { font-family: var(--mono); background: var(--bg-soft); border: 1px solid var(--border); padding: .08em .4em; border-radius: 6px; font-size: .86em; }
hr { border: 0; border-top: 1px solid var(--border); margin: 1.5rem 0; }
.icon { flex: none; vertical-align: -3px; }
::selection { background: var(--primary-soft-2); }

.container { max-width: 1160px; margin: 0 auto; padding: 0 20px; }
.narrow { max-width: 720px; }
.stack > * + * { margin-top: 1rem; }
.row { display: flex; gap: .75rem; align-items: center; flex-wrap: wrap; }
.spread { justify-content: space-between; }
.grid { display: grid; gap: 16px; }
.grid-2 { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.grid-3 { grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); }
.grid-4 { grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); }
.inline { display: inline; }
.hide-sm { }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* Buttons --------------------------------------------------------------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  height: 40px; padding: 0 1rem; border-radius: 10px; border: 1px solid var(--border-strong);
  background: var(--surface); color: var(--text); font: 600 .9rem/1 var(--font);
  cursor: pointer; text-decoration: none; white-space: nowrap; transition: background .15s, border-color .15s, box-shadow .15s, transform .05s;
  box-shadow: var(--shadow-sm);
}
.btn:hover { border-color: var(--muted); color: var(--text); background: var(--surface-2); }
.btn:active { transform: translateY(1px); }
.btn:focus-visible { outline: none; box-shadow: 0 0 0 4px var(--ring); }
.btn-primary {
  background: var(--primary); border-color: var(--primary); color: var(--primary-ink);
  box-shadow: 0 1px 2px rgba(16, 24, 56, .1), inset 0 1px 0 rgba(255, 255, 255, .15);
}
.btn-primary:hover { background: var(--primary-hover); border-color: var(--primary-hover); color: var(--primary-ink); }
.btn-danger { color: var(--danger); }
.btn-danger:hover { border-color: var(--danger); color: var(--danger); background: var(--danger-soft); }
.btn-ghost { background: transparent; border-color: transparent; box-shadow: none; color: var(--text-2); }
.btn-ghost:hover { background: var(--bg-soft); border-color: transparent; }
.btn-sm { height: 32px; padding: 0 .7rem; font-size: .82rem; border-radius: 8px; gap: .35rem; }
.btn-lg { height: 50px; padding: 0 1.4rem; font-size: 1rem; border-radius: 12px; }
.btn-block { width: 100%; }
.btn-icon { width: 32px; padding: 0; }
.btn[disabled] { opacity: .55; cursor: not-allowed; }
button.linklike { background: none; border: 0; padding: 0; font: inherit; font-weight: 600; color: var(--primary); cursor: pointer; }
button.linklike[disabled] { color: var(--muted); cursor: default; }

/* Forms ----------------------------------------------------------------- */
label { display: block; font-weight: 600; font-size: .88rem; margin-bottom: .4rem; color: var(--text); }
input[type=text], input[type=email], input[type=password], input[type=url], input[type=number],
input[type=datetime-local], input[type=tel], input[type=search], select, textarea {
  width: 100%; min-height: 44px; padding: .6rem .85rem; font: 400 .95rem/1.4 var(--font);
  color: var(--text); background: var(--surface); border: 1px solid var(--border-strong); border-radius: 10px;
  transition: border-color .15s, box-shadow .15s; box-shadow: var(--shadow-sm);
}
textarea { min-height: 110px; resize: vertical; }
select { appearance: none; padding-right: 2.2rem;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%236b7189' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right .75rem center; }
input::placeholder, textarea::placeholder { color: var(--muted); opacity: .8; }
input:hover, select:hover, textarea:hover { border-color: var(--muted); }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 4px var(--ring); }
input[type=file] { font: inherit; font-size: .88rem; color: var(--muted); max-width: 100%; }
input[type=file]::file-selector-button { font: 600 .85rem var(--font); margin-right: .8rem; padding: .5rem .9rem; border-radius: 8px; border: 1px solid var(--border-strong); background: var(--surface-2); color: var(--text); cursor: pointer; }
input[type=checkbox], input[type=radio] { accent-color: var(--primary); width: 17px; height: 17px; margin: 0; flex: none; }

.field { margin-bottom: 1.25rem; }
.field .help { font-size: .82rem; color: var(--muted); margin-top: .4rem; }
.field .errors, .errorlist { list-style: none; margin: .4rem 0 0; padding: 0; color: var(--danger); font-size: .84rem; font-weight: 500; }
.field.has-error input, .field.has-error select, .field.has-error textarea { border-color: var(--danger); }
.required-mark { color: var(--danger); margin-left: .2rem; }
.field.checkbox label { display: flex; gap: .7rem; align-items: flex-start; font-weight: 500; margin: 0; cursor: pointer; }
.field.checkbox input { margin-top: .2rem; }
.field.checkbox small { color: var(--muted); font-weight: 400; }

.choices { display: grid; gap: .5rem; }
.choices label {
  display: flex; gap: .75rem; align-items: center; margin: 0; padding: .8rem 1rem; font-weight: 500;
  background: var(--surface); border: 1px solid var(--border-strong); border-radius: 12px; cursor: pointer;
  transition: border-color .15s, background .15s, box-shadow .15s;
}
.choices label:hover { border-color: var(--primary); }
.choices label:has(input:checked) { border-color: var(--primary); background: var(--primary-soft); box-shadow: 0 0 0 1px var(--primary); }
.radio-cards label { align-items: flex-start; }
.choices.compact { grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); }
.choices.compact label { padding: .55rem .8rem; font-size: .9rem; }
.choices.compact span { min-width: 0; overflow-wrap: anywhere; }
.send-panel { margin-top: 1rem; border: 1px solid var(--border); border-radius: 14px; padding: .8rem 1rem; }
.send-panel[open] { padding-bottom: 1.1rem; }
.send-panel summary { color: var(--primary); font-weight: 600; font-size: .92rem; cursor: pointer; display: flex; align-items: center; gap: .45rem; }
.send-panel form { margin-top: 1rem; }
.radio-cards input { margin-top: .2rem; }
.hp { position: absolute !important; left: -10000px; width: 1px; height: 1px; overflow: hidden; }

/* Rating & scale inputs */
.stars { display: inline-flex; flex-direction: row-reverse; gap: .35rem; }
.stars input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.stars label { margin: 0; cursor: pointer; color: var(--border-strong); line-height: 0; transition: transform .1s, color .1s; }
.stars label svg { width: 38px; height: 38px; fill: currentColor; stroke: currentColor; }
.stars label:hover, .stars label:hover ~ label, .stars input:checked ~ label { color: var(--star); }
.stars label:hover { transform: scale(1.08); }
.stars input:focus-visible + label { outline: 3px solid var(--ring); border-radius: 6px; }
.scale { display: grid; grid-template-columns: repeat(11, minmax(0, 1fr)); gap: 6px; }
.scale input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.scale label { margin: 0; text-align: center; padding: .65rem 0; font-weight: 700; border: 1px solid var(--border-strong); border-radius: 10px; cursor: pointer; background: var(--surface); transition: all .12s; }
.scale label:hover { border-color: var(--primary); }
.scale input:checked + label { background: var(--primary); border-color: var(--primary); color: var(--primary-ink); }
.scale input:focus-visible + label { box-shadow: 0 0 0 4px var(--ring); }
.scale-legend { display: flex; justify-content: space-between; font-size: .78rem; color: var(--muted); margin-top: .5rem; }

/* Surfaces -------------------------------------------------------------- */
.card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 24px; box-shadow: var(--shadow); margin-bottom: 20px; }
.card > :last-child { margin-bottom: 0; }
.card-head { display: flex; align-items: center; justify-content: space-between; gap: 1rem; flex-wrap: wrap; margin-bottom: 1.1rem; }
.card-head h2, .card-head h3 { margin: 0; }
.card-sub { color: var(--muted); font-size: .88rem; margin-top: -.6rem; margin-bottom: 1.1rem; }
.card-flush { padding: 0; overflow: hidden; }
.card-flush .card-head { padding: 18px 22px 0; }
.section-title { font-size: .75rem; text-transform: uppercase; letter-spacing: .08em; font-weight: 700; color: var(--muted); margin: 0 0 .8rem; }

/* Alerts & badges ------------------------------------------------------- */
.alert { display: flex; gap: .7rem; align-items: flex-start; padding: .85rem 1rem; border-radius: 12px; margin-bottom: 1rem; font-size: .9rem; font-weight: 500; border: 1px solid transparent; }
.alert-success { background: var(--ok-soft); color: var(--ok); border-color: color-mix(in srgb, var(--ok) 20%, transparent); }
.alert-error, .alert-danger { background: var(--danger-soft); color: var(--danger); border-color: color-mix(in srgb, var(--danger) 20%, transparent); }
.alert-warning { background: var(--warn-soft); color: var(--warn); border-color: color-mix(in srgb, var(--warn) 20%, transparent); }
.alert-info { background: var(--primary-soft); color: var(--primary); border-color: color-mix(in srgb, var(--primary) 20%, transparent); }
.alert a { color: inherit; text-decoration: underline; }
.badge { display: inline-flex; align-items: center; gap: .35rem; font-size: .74rem; font-weight: 700; padding: .22rem .6rem; border-radius: 999px; background: var(--bg-soft); color: var(--text-2); white-space: nowrap; border: 1px solid var(--border); }
.badge.dot::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.badge.ok { background: var(--ok-soft); color: var(--ok); border-color: transparent; }
.badge.warn { background: var(--warn-soft); color: var(--warn); border-color: transparent; }
.badge.off { background: var(--danger-soft); color: var(--danger); border-color: transparent; }
.badge.indigo { background: var(--primary-soft); color: var(--primary); border-color: transparent; }
.badge.teal { background: var(--teal-soft); color: var(--teal); border-color: transparent; }

/* Tables ---------------------------------------------------------------- */
.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; font-size: .9rem; }
th, td { text-align: left; padding: .8rem 1rem; border-bottom: 1px solid var(--border); vertical-align: middle; }
thead th { font-size: .72rem; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); font-weight: 700; background: var(--surface-2); }
tbody tr { transition: background .1s; }
tbody tr:hover { background: var(--surface-2); }
tbody tr:last-child td { border-bottom: 0; }
td .sub { display: block; font-size: .8rem; color: var(--muted); }
.table-link { font-weight: 600; color: var(--text); }
.table-link:hover { color: var(--primary); }
.empty { text-align: center; padding: 48px 20px; color: var(--muted); }
.empty .empty-icon { width: 52px; height: 52px; border-radius: 14px; display: grid; place-items: center; background: var(--primary-soft); color: var(--primary); margin: 0 auto 1rem; }
.empty h3 { color: var(--text); }

/* Stats ----------------------------------------------------------------- */
.stat { display: flex; gap: 14px; align-items: center; margin: 0; }
.stat-icon { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; background: var(--primary-soft); color: var(--primary); flex: none; }
.stat-icon.teal { background: var(--teal-soft); color: var(--teal); }
.stat-icon.warn { background: var(--warn-soft); color: var(--warn); }
.stat-icon.ok { background: var(--ok-soft); color: var(--ok); }
.stat .num { font-size: 1.6rem; font-weight: 800; letter-spacing: -.03em; line-height: 1.1; }
.stat .lbl { color: var(--muted); font-size: .82rem; font-weight: 500; }

/* Charts in results ----------------------------------------------------- */
.bar-row { display: grid; grid-template-columns: minmax(80px, 30%) 1fr 84px; gap: .8rem; align-items: center; margin: .45rem 0; font-size: .88rem; }
.bar-row .track { background: var(--bg-soft); border-radius: 999px; height: 10px; overflow: hidden; }
.bar-row .fill { background: linear-gradient(90deg, var(--primary), color-mix(in srgb, var(--primary) 70%, var(--teal))); height: 100%; border-radius: 999px; }
.bar-row .val { text-align: right; color: var(--muted); font-variant-numeric: tabular-nums; font-size: .82rem; }
.star-meter { position: relative; display: inline-block; font-size: 1.15rem; letter-spacing: 2px; color: var(--border-strong); line-height: 1; }
.star-meter span { position: absolute; left: 0; top: 0; overflow: hidden; white-space: nowrap; color: var(--star); }
.big-num { font-size: 2rem; font-weight: 800; letter-spacing: -.03em; }
.quote { background: var(--surface-2); border: 1px solid var(--border); border-radius: 12px; padding: .8rem 1rem; margin: .6rem 0; white-space: pre-wrap; }
.quote small { display: block; margin-top: .4rem; color: var(--muted); white-space: normal; }

/* Tabs ------------------------------------------------------------------ */
.tabs { display: flex; gap: .25rem; border-bottom: 1px solid var(--border); margin-bottom: 24px; overflow-x: auto; }
.tabs a { display: inline-flex; align-items: center; gap: .45rem; padding: .7rem .9rem; color: var(--muted); font-weight: 600; font-size: .9rem; border-bottom: 2px solid transparent; margin-bottom: -1px; white-space: nowrap; }
.tabs a:hover { color: var(--text); }
.tabs a.active { color: var(--primary); border-bottom-color: var(--primary); }

/* Page header ----------------------------------------------------------- */
.page-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 1rem; flex-wrap: wrap; margin-bottom: 24px; }
.page-head h1 { margin: 0; font-size: 1.6rem; }
.page-head p { margin: .3rem 0 0; color: var(--muted); }
.crumb { display: inline-flex; align-items: center; gap: .35rem; color: var(--muted); font-size: .85rem; font-weight: 600; margin-bottom: .5rem; }
.crumb:hover { color: var(--primary); }

/* Brand ----------------------------------------------------------------- */
.brand { display: inline-flex; align-items: center; gap: .6rem; font-weight: 800; font-size: 1.08rem; letter-spacing: -.02em; color: var(--text); }
.brand:hover { color: var(--text); }
.logo { width: 32px; height: 32px; border-radius: 9px; display: grid; place-items: center; color: #fff;
  background: linear-gradient(135deg, #6366f1, #4f46e5 45%, #0d9488); box-shadow: 0 4px 12px -2px rgba(79, 70, 229, .45); }

/* =========================================================================
   App shell (organizer)
   ========================================================================= */
.app { display: grid; grid-template-columns: var(--sidebar-w) 1fr; min-height: 100vh; }
.sidebar { position: sticky; top: 0; height: 100vh; display: flex; flex-direction: column; gap: 6px; padding: 20px 14px; background: var(--surface); border-right: 1px solid var(--border); }
.sidebar .brand { padding: 4px 10px 18px; }
.side-label { font-size: .7rem; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); font-weight: 700; padding: 14px 12px 6px; }
.side-link { display: flex; align-items: center; gap: .7rem; padding: .6rem .75rem; border-radius: 10px; color: var(--text-2); font-weight: 600; font-size: .9rem; }
.side-link:hover { background: var(--bg-soft); color: var(--text); }
.side-link.active { background: var(--primary-soft); color: var(--primary); }
.side-cta { margin: 6px 0 4px; }
.side-foot { margin-top: auto; border-top: 1px solid var(--border); padding-top: 14px; }
.org-chip { display: flex; align-items: center; gap: .7rem; padding: .5rem .6rem; border-radius: 12px; }
.avatar { width: 36px; height: 36px; border-radius: 10px; display: grid; place-items: center; font-weight: 800; color: var(--primary); background: var(--primary-soft); flex: none; text-transform: uppercase; }
.org-chip .who { min-width: 0; line-height: 1.3; }
.org-chip strong { display: block; font-size: .88rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.org-chip small { color: var(--muted); }
.app-main { min-width: 0; }
.app-content { max-width: 1120px; margin: 0 auto; padding: 32px 36px 72px; }
.app-content.narrow { max-width: 780px; }
.mobile-bar { display: none; }

@media (max-width: 900px) {
  .app { grid-template-columns: 1fr; }
  .sidebar { display: none; }
  .mobile-bar { display: flex; align-items: center; gap: .5rem; position: sticky; top: 0; z-index: 20; padding: 10px 16px; background: var(--surface); border-bottom: 1px solid var(--border); overflow-x: auto; }
  .mobile-bar .brand { margin-right: auto; }
  .mobile-bar .side-link { padding: .45rem .6rem; }
  .mobile-bar .side-link span { display: none; }
  .app-content { padding: 22px 16px 60px; }
}

/* =========================================================================
   Public pages (marketing nav, auth, respondent)
   ========================================================================= */
.topnav { position: sticky; top: 0; z-index: 30; background: color-mix(in srgb, var(--surface) 82%, transparent); backdrop-filter: saturate(160%) blur(14px); -webkit-backdrop-filter: saturate(160%) blur(14px); border-bottom: 1px solid var(--border); }
.topnav .inner { display: flex; align-items: center; gap: 1.2rem; height: 66px; }
.topnav nav { display: flex; align-items: center; gap: .25rem; margin-left: auto; }
.topnav nav > a:not(.btn) { padding: .5rem .8rem; border-radius: 8px; color: var(--text-2); font-weight: 600; font-size: .9rem; }
.topnav nav > a:not(.btn):hover { color: var(--text); background: var(--bg-soft); }
.footer { border-top: 1px solid var(--border); padding: 36px 0; color: var(--muted); font-size: .86rem; }
.footer .inner { display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; align-items: center; }
@media (max-width: 720px) { .topnav .hide-sm, .hide-sm { display: none !important; } }

/* Auth split screen */
.auth { display: grid; grid-template-columns: 1.05fr 1fr; min-height: 100vh; }
.auth-aside { position: relative; overflow: hidden; color: #e8eaff; padding: 44px 56px; display: flex; flex-direction: column;
  background: radial-gradient(700px 400px at 90% 0%, rgba(99, 102, 241, .55), transparent 60%),
              radial-gradient(600px 380px at 0% 100%, rgba(13, 148, 136, .45), transparent 60%), #0c0e1f; }
.auth-aside .brand { color: #fff; }
.auth-aside h2 { color: #fff; font-size: 2.1rem; line-height: 1.15; margin: auto 0 1.2rem; max-width: 460px; letter-spacing: -.03em; }
.auth-aside p { color: #b9bddb; max-width: 440px; }
.auth-points { list-style: none; padding: 0; margin: 1.6rem 0 0; display: grid; gap: .9rem; }
.auth-points li { display: flex; gap: .8rem; align-items: flex-start; color: #d6d9f5; }
.auth-points .pt { width: 32px; height: 32px; border-radius: 9px; display: grid; place-items: center; background: rgba(255, 255, 255, .08); border: 1px solid rgba(255, 255, 255, .12); flex: none; }
.auth-aside .fine { margin-top: auto; padding-top: 2rem; font-size: .8rem; color: #8a8fb3; }
.auth-main { display: flex; align-items: center; justify-content: center; padding: 40px 24px; }
.auth-box { width: 100%; max-width: 420px; }
.auth-box h1 { font-size: 1.75rem; margin-bottom: .35rem; }
.auth-box .lead { color: var(--muted); margin-bottom: 1.8rem; }
.auth-switch { text-align: center; color: var(--muted); margin-top: 1.4rem; font-size: .9rem; }
.auth-mobile-brand { display: none; margin-bottom: 2rem; }
@media (max-width: 900px) {
  .auth { grid-template-columns: 1fr; }
  .auth-aside { display: none; }
  .auth-mobile-brand { display: inline-flex; }
}

/* Respondent experience */
.respond-shell { min-height: 100vh; display: flex; flex-direction: column;
  background: radial-gradient(900px 360px at 50% -80px, color-mix(in srgb, var(--primary) 14%, transparent), transparent 70%), var(--bg); }
.respond-top { display: flex; align-items: center; justify-content: center; padding: 22px 16px 6px; }
.respond-org { display: inline-flex; align-items: center; gap: .6rem; font-weight: 700; color: var(--text-2); font-size: .92rem; }
.respond-main { width: 100%; max-width: 680px; margin: 0 auto; padding: 18px 16px 60px; flex: 1; }
.respond-hero { text-align: center; margin: 12px 0 26px; }
.respond-hero h1 { font-size: clamp(1.6rem, 4.5vw, 2.1rem); letter-spacing: -.03em; margin-bottom: .5rem; }
.respond-hero p { color: var(--muted); max-width: 560px; margin: 0 auto; white-space: pre-line; }
.stepper { display: flex; justify-content: center; align-items: center; gap: .5rem; margin: 18px 0 0; flex-wrap: wrap; }
.step { display: inline-flex; align-items: center; gap: .45rem; font-size: .8rem; font-weight: 700; color: var(--muted); }
.step .n { width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center; font-size: .75rem; border: 1.5px solid var(--border-strong); background: var(--surface); }
.step.on { color: var(--primary); }
.step.on .n { background: var(--primary); border-color: var(--primary); color: var(--primary-ink); box-shadow: 0 0 0 4px var(--ring); }
.step.done { color: var(--teal); }
.step.done .n { background: var(--teal); border-color: var(--teal); color: #fff; }
.step-line { width: 28px; height: 1.5px; background: var(--border-strong); }
.respond-card { background: var(--surface); border: 1px solid var(--border); border-radius: 20px; padding: 30px; box-shadow: var(--shadow-lg); }
.respond-card h2 { font-size: 1.2rem; }
.q-card { background: var(--surface); border: 1px solid var(--border); border-radius: 18px; padding: 24px; margin-bottom: 14px; box-shadow: var(--shadow); }
.q-card .q-title { display: flex; gap: .7rem; font-weight: 700; font-size: 1.02rem; margin-bottom: .9rem; line-height: 1.4; }
.q-card .q-n { width: 26px; height: 26px; border-radius: 8px; background: var(--primary-soft); color: var(--primary); display: grid; place-items: center; font-size: .78rem; font-weight: 800; flex: none; margin-top: -1px; }
.q-card .help { color: var(--muted); font-size: .85rem; margin: -.5rem 0 .9rem 2.3rem; }
.verified-pill { display: inline-flex; align-items: center; gap: .45rem; background: var(--teal-soft); color: var(--teal); font-weight: 600; font-size: .85rem; padding: .45rem .85rem; border-radius: 999px; }
.privacy-note { display: flex; gap: .55rem; align-items: flex-start; color: var(--muted); font-size: .82rem; margin-top: 1.2rem; }
.respond-foot { text-align: center; color: var(--muted); font-size: .8rem; padding: 18px; }
.respond-foot a { color: var(--muted); font-weight: 600; }
.code-input { font: 700 1.7rem/1 var(--mono) !important; letter-spacing: .6rem; text-align: center; height: 64px; }
.receipt { font-family: var(--mono); font-size: 1.5rem; font-weight: 700; letter-spacing: .2rem; background: var(--bg-soft); border: 1px dashed var(--border-strong); border-radius: 12px; padding: .8rem 1.2rem; display: inline-block; }
.success-mark { width: 72px; height: 72px; border-radius: 50%; display: grid; place-items: center; margin: 0 auto 1.2rem; color: #fff;
  background: linear-gradient(135deg, var(--teal), #10b981); box-shadow: 0 0 0 10px var(--teal-soft); }
@media (max-width: 600px) {
  .respond-card, .q-card { padding: 20px; border-radius: 16px; }
  .scale { grid-template-columns: repeat(6, minmax(0, 1fr)); }
  .stars label svg { width: 34px; height: 34px; }
  .bar-row { grid-template-columns: 1fr 72px; }
  .bar-row .track { grid-column: 1 / -1; grid-row: 2; }
}

/* Builder --------------------------------------------------------------- */
.q-item { display: flex; gap: 1rem; align-items: center; padding: 14px 22px; border-top: 1px solid var(--border); }
.q-item:hover { background: var(--surface-2); }
.q-num { width: 30px; height: 30px; border-radius: 9px; background: var(--primary-soft); color: var(--primary); display: grid; place-items: center; font-weight: 800; font-size: .82rem; flex: none; }
.q-body { flex: 1; min-width: 0; }
.q-body strong { font-weight: 600; }
.q-meta { display: flex; gap: .4rem; flex-wrap: wrap; margin-top: .3rem; align-items: center; }
.q-actions { display: flex; gap: .3rem; flex-wrap: wrap; }
.share-box { display: flex; gap: .5rem; }
.share-box input { flex: 1; min-width: 0; font-family: var(--mono); font-size: .85rem; background: var(--surface-2); }
.live-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--ok); box-shadow: 0 0 0 4px var(--ok-soft); display: inline-block; }
.template-card { display: block; color: var(--text); transition: transform .15s, border-color .15s, box-shadow .15s; margin: 0; }
.template-card:hover { color: var(--text); transform: translateY(-2px); border-color: var(--primary); box-shadow: var(--shadow-lg); }
.template-card .stat-icon { margin-bottom: 1rem; }
.template-card p { color: var(--muted); font-size: .88rem; margin: 0; }
.setting-group { display: grid; grid-template-columns: 240px 1fr; gap: 28px; padding: 24px 0; border-top: 1px solid var(--border); }
.setting-group:first-of-type { border-top: 0; padding-top: 0; }
.setting-group h3 { margin-bottom: .3rem; }
.setting-group .desc { color: var(--muted); font-size: .86rem; }
@media (max-width: 800px) { .setting-group { grid-template-columns: 1fr; gap: 12px; } }
details summary { cursor: pointer; font-weight: 600; }
.q-card .q-title label { display: inline; }
@media (max-width: 600px) {
  .stepper { gap: .35rem; flex-wrap: nowrap; }
  .step { font-size: .74rem; gap: .3rem; }
  .step-line { width: 12px; }
}
@media (max-width: 600px) {
  .card { padding: 18px; border-radius: 16px; }
  .card.card-flush { padding: 0; }
  .grid-3, .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  .stat { flex-direction: column; align-items: flex-start; gap: 10px; }
  .stat-icon { width: 36px; height: 36px; border-radius: 10px; }
  .stat .num { font-size: 1.35rem; }
  .page-head h1 { font-size: 1.4rem; }
  th, td { padding: .7rem .75rem; }
}
.sidebar { align-self: start; }

/* Branding, super admin ----------------------------------------------- */
.org-logo { height: 36px; max-width: 120px; object-fit: contain; border-radius: 8px; flex: none; }
.respond-org .org-logo { height: 40px; max-width: 180px; }
.respond-org .avatar { width: 30px; height: 30px; border-radius: 8px; font-size: .85rem; }
.acting-bar { display: flex; align-items: center; justify-content: space-between; gap: 1rem; flex-wrap: wrap;
  background: linear-gradient(90deg, #0c0e1f, #1e1b4b); color: #e0e3ff; padding: 10px 36px; font-size: .88rem; font-weight: 600; }
.acting-bar .btn { background: rgba(255,255,255,.1); border-color: rgba(255,255,255,.25); color: #fff; box-shadow: none; }
.acting-bar .btn:hover { background: rgba(255,255,255,.18); color: #fff; }
.side-link.super { color: #7c3aed; }
.side-link.super.active { background: #f3e8ff; color: #6d28d9; }
.logo-preview { display: flex; align-items: center; gap: 1rem; padding: 14px; border: 1px dashed var(--border-strong); border-radius: 12px; margin-bottom: 1rem; background: var(--surface-2); }
.logo-preview img { max-height: 56px; max-width: 200px; object-fit: contain; }
.swatch { width: 18px; height: 18px; border-radius: 5px; display: inline-block; vertical-align: -4px; border: 1px solid var(--border); }
input[type=color] { width: 72px; min-height: 44px; padding: 4px; cursor: pointer; }
@media (max-width: 900px) { .acting-bar { padding: 10px 16px; } }

/* Logo & powered-by ------------------------------------------------------ */
.logo-mark { width: 34px; height: 34px; flex: none; filter: drop-shadow(0 4px 10px rgba(79, 70, 229, .28)); }
.brand-accent { background: linear-gradient(90deg, var(--primary), var(--teal)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.powered-by { font-size: .78rem; color: var(--muted); }
.powered-by strong { font-weight: 700; color: var(--text-2); }
.footer .inner { align-items: flex-start; }
.footer-tag { margin: .5rem 0 0; font-size: .86rem; }
.footer-right { display: flex; flex-direction: column; align-items: flex-end; gap: .3rem; text-align: right; }
.footer-right small { font-size: .75rem; }
.respond-foot { display: grid; gap: .35rem; }
.side-powered { margin: 10px 10px 0; line-height: 1.35; }
.side-powered .powered-by { font-size: .7rem; }
.auth-powered { text-align: center; margin-top: 2.2rem; }
.auth-aside .powered-by, .auth-aside .powered-by strong { color: #9ca1c4; }
@media (max-width: 720px) { .footer-right { align-items: flex-start; text-align: left; } }
.auth-aside .brand-accent { background: linear-gradient(90deg, #a5b4fc, #5eead4); -webkit-background-clip: text; background-clip: text; color: transparent; }
