:root {
  --ink: #17221f;
  --ink-soft: #34423e;
  --paper: #f4f0e8;
  --surface: rgba(255, 253, 248, 0.84);
  --surface-solid: #fffdf8;
  --line: rgba(23, 34, 31, 0.13);
  --teal: #287566;
  --teal-deep: #14564b;
  --coral: #e3785c;
  --gold: #c4934d;
  --blue-soft: #e7f1ee;
  --shadow: 0 18px 55px rgba(31, 43, 39, 0.09);
  --radius: 22px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(circle at 12% 8%, rgba(227, 120, 92, 0.11), transparent 28rem),
    radial-gradient(circle at 88% 24%, rgba(40, 117, 102, 0.12), transparent 32rem),
    var(--paper);
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.55;
}

button, input, textarea { font: inherit; }
button { color: inherit; }

.auth-shell {
  min-height: 100vh;
  padding: 28px 18px;
  display: grid;
  place-items: center;
  background:
    radial-gradient(circle at 16% 15%, rgba(227, 120, 92, .16), transparent 28rem),
    radial-gradient(circle at 82% 78%, rgba(40, 117, 102, .18), transparent 32rem),
    var(--paper);
}
.auth-shell[hidden], #appShell[hidden] { display: none !important; }
.auth-card {
  width: min(430px, 100%);
  padding: clamp(28px, 5vw, 44px);
  background: rgba(255, 253, 248, .94);
  border: 1px solid rgba(255, 255, 255, .95);
  border-radius: 26px;
  box-shadow: 0 24px 70px rgba(31, 43, 39, .14);
}
.auth-brand { margin-bottom: 24px; }
.auth-card h1 { margin: 7px 0 8px; font-size: clamp(30px, 7vw, 43px); line-height: 1.04; letter-spacing: -.05em; }
.auth-intro { margin: 0 0 24px; color: var(--ink-soft); font-size: 14px; }
.auth-form, .auth-form label { display: grid; gap: 7px; }
.auth-form { gap: 15px; }
.auth-form label span { color: #5c6965; font-size: 11px; font-weight: 800; }
.auth-form input {
  width: 100%;
  padding: 12px 13px;
  color: var(--ink);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 11px;
  outline: none;
}
.auth-form input:focus { border-color: var(--teal); box-shadow: 0 0 0 3px rgba(40, 117, 102, .11); }
.auth-submit { width: 100%; margin-top: 3px; }
.auth-submit:disabled { cursor: wait; opacity: .65; transform: none; }
.auth-link { margin: 14px 0 0; padding: 0; color: var(--teal-deep); background: transparent; border: 0; cursor: pointer; font: inherit; font-size: 12px; font-weight: 800; }
.auth-link:hover { text-decoration: underline; }
.auth-status { min-height: 20px; margin: 16px 0 0; color: #66736e; font-size: 12px; }
.auth-status.error { color: #a64e3a; font-weight: 700; }
.auth-status.success { color: var(--teal-deep); font-weight: 700; }
.auth-help { margin: 20px 0 0; padding-top: 16px; color: #77827e; border-top: 1px solid var(--line); font-size: 10px; line-height: 1.5; }
body.authenticated .auth-shell { display: none; }

.topbar {
  min-height: 82px;
  padding: 14px clamp(18px, 3vw, 44px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  color: #f9f5ed;
  background: rgba(23, 34, 31, .96);
  border-bottom: 1px solid rgba(255,255,255,.1);
  position: sticky;
  top: 0;
  z-index: 50;
}

.brand { display: flex; align-items: center; gap: 13px; }
.brand p, .brand h1 { margin: 0; }
.brand p { color: #9eb2ac; font-size: 11px; text-transform: uppercase; letter-spacing: .14em; }
.brand h1 { font-family: inherit; font-size: clamp(16px, 2vw, 21px); letter-spacing: -.03em; }
.brand-mark { display: grid; grid-template-columns: repeat(3, 5px); align-items: end; gap: 3px; height: 26px; }
.brand-mark i { display: block; border-radius: 4px; background: var(--coral); }
.brand-mark i:nth-child(1) { height: 15px; }
.brand-mark i:nth-child(2) { height: 26px; background: #f4c887; }
.brand-mark i:nth-child(3) { height: 20px; background: #8fc5b9; }

.call-tools { display: flex; align-items: center; gap: 9px; }
.employee-session { min-width: 112px; display: grid; line-height: 1.15; text-align: right; }
.employee-session span { max-width: 180px; overflow: hidden; color: #f7f4ed; font-size: 11px; font-weight: 800; text-overflow: ellipsis; white-space: nowrap; }
.employee-session small { margin-top: 3px; color: #9eb2ac; font-size: 9px; }
.timer { min-width: 90px; display: flex; align-items: center; gap: 9px; font-size: 15px; font-weight: 600; line-height: 1; letter-spacing: .06em; }
.sheet-link { padding: 9px 11px; color: #c8d6d2; border: 1px solid rgba(255,255,255,.13); border-radius: 10px; font-size: 11px; font-weight: 700; text-decoration: none; }
.sheet-link:hover { color: #fff; background: rgba(255,255,255,.08); }
.pulse-dot { width: 9px; height: 9px; border-radius: 50%; background: #6e7b77; }
.timer.live .pulse-dot { background: #72d19d; box-shadow: 0 0 0 5px rgba(114,209,157,.13); animation: pulse 1.6s infinite; }
@keyframes pulse { 50% { transform: scale(.78); opacity: .65; } }

.button, .icon-button {
  border: 0;
  border-radius: 12px;
  cursor: pointer;
  font-weight: 700;
  transition: transform .18s ease, background .18s ease, box-shadow .18s ease;
}
.button { padding: 10px 15px; }
.button:hover, .icon-button:hover { transform: translateY(-1px); }
.button-primary { color: #10201d; background: #f3c480; }
.button-primary:hover { background: #ffd99f; }
.button-ghost { color: #d5dfdc; background: rgba(255,255,255,.07); }
.button-ghost:hover { background: rgba(255,255,255,.12); }
.button-secondary { color: white; background: var(--teal-deep); }
.button-success { margin-top: 8px; color: #fff; background: var(--teal); }

.setup-strip {
  margin: 22px clamp(18px, 3vw, 44px) 0;
  padding: 16px 18px;
  display: grid;
  grid-template-columns: repeat(3, minmax(150px, 1fr));
  align-items: end;
  gap: 12px;
  background: rgba(255,253,248,.7);
  border: 1px solid rgba(255,255,255,.85);
  box-shadow: 0 10px 35px rgba(44,55,51,.06);
  border-radius: 18px;
}
.setup-copy { grid-column: 1 / -1; display: flex; align-items: end; justify-content: space-between; gap: 18px; }
.setup-copy p { margin: 2px 0 1px; color: var(--ink-soft); font-size: 13px; }
.eyebrow { color: var(--teal); font-size: 10px; font-weight: 800; text-transform: uppercase; letter-spacing: .14em; }
.setup-strip label, .field-group { display: grid; gap: 5px; }
.setup-strip label > span, .field-label { color: #5c6965; font-size: 11px; font-weight: 700; }
.setup-strip input, .setup-strip select, .setup-strip textarea {
  width: 100%;
  padding: 10px 11px;
  color: var(--ink);
  background: var(--surface-solid);
  border: 1px solid var(--line);
  border-radius: 10px;
  outline: none;
}
.setup-strip textarea { min-height: 68px; resize: vertical; line-height: 1.4; }
.setup-strip input:focus, .setup-strip select:focus, .setup-strip textarea:focus { border-color: var(--teal); box-shadow: 0 0 0 3px rgba(40,117,102,.1); }
.setup-strip select:disabled { color: #7d8783; background: #f1eee7; }
.remarks-field { grid-column: 1 / -1; }
.custom-role-entry { display: grid; gap: 5px; margin-top: 3px; padding: 10px; background: #f8f3e9; border: 1px solid rgba(196,147,77,.26); border-radius: 10px; }
.custom-role-entry[hidden] { display: none; }
.custom-role-entry label { color: #8a642e; font-size: 10px; font-weight: 800; }
.custom-role-entry small { color: #796f60; font-size: 9px; line-height: 1.35; }
.studio-picker { position: relative; min-width: 0; }
.studio-trigger {
  width: 100%;
  min-height: 43px;
  padding: 10px 38px 10px 11px;
  position: relative;
  overflow: hidden;
  color: var(--ink);
  background: var(--surface-solid);
  border: 1px solid var(--line);
  border-radius: 10px;
  text-align: left;
  cursor: pointer;
}
.studio-trigger span { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.studio-trigger i { width: 8px; height: 8px; position: absolute; right: 15px; top: 15px; border-right: 2px solid #75807c; border-bottom: 2px solid #75807c; transform: rotate(45deg); transition: transform .18s ease; }
.studio-trigger[aria-expanded="true"] { border-color: var(--teal); box-shadow: 0 0 0 3px rgba(40,117,102,.1); }
.studio-trigger[aria-expanded="true"] i { top: 19px; transform: rotate(225deg); }
.studio-trigger:disabled { color: #7d8783; background: #f1eee7; cursor: wait; }
.studio-menu {
  width: max(100%, 330px);
  max-height: 370px;
  padding: 6px;
  position: absolute;
  top: calc(100% + 7px);
  left: 0;
  z-index: 90;
  overflow-y: auto;
  background: #fffdf8;
  border: 1px solid rgba(23,34,31,.16);
  border-radius: 13px;
  box-shadow: 0 20px 48px rgba(22,42,37,.18);
  scrollbar-width: thin;
}
.studio-menu[hidden] { display: none; }
.studio-group-label { padding: 9px 9px 5px; position: sticky; top: -6px; z-index: 1; color: #75817d; background: #fffdf8; font-size: 9px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }
.studio-option {
  width: 100%;
  padding: 10px 10px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: end;
  gap: 10px;
  color: var(--ink);
  background: transparent;
  border: 0;
  border-radius: 9px;
  text-align: left;
  cursor: pointer;
}
.studio-option:hover, .studio-option:focus-visible { background: var(--blue-soft); outline: none; }
.studio-option[aria-selected="true"] { color: var(--teal-deep); background: #dcece7; }
.studio-option-name { min-width: 0; font-size: 12px; font-weight: 700; line-height: 1.25; }
.studio-option-reviews { align-self: end; color: #8b6840; font-size: 9px; font-weight: 800; line-height: 1; white-space: nowrap; }
.sync-actions { display: flex; align-items: center; gap: 11px; align-self: end; }
.button-save { color: #fff; background: var(--teal); white-space: nowrap; }
.button-save:disabled { cursor: not-allowed; opacity: .5; transform: none; }
.button-refresh { padding-inline: 12px; color: var(--teal-deep); background: #e3efeb; white-space: nowrap; }
.button-refresh:hover { background: #d7e9e4; }
.button-refresh:disabled { cursor: wait; opacity: .6; transform: none; }
.sync-status { color: #68756f; font-size: 10px; line-height: 1.35; }
.sync-status.success { color: var(--teal-deep); font-weight: 700; }
.sync-status.error { color: #a64e3a; font-weight: 700; }

.workspace {
  width: min(1580px, 100%);
  margin: 0 auto;
  padding: 28px clamp(18px, 3vw, 44px) 80px;
  display: grid;
  grid-template-columns: 145px minmax(470px, 1fr) minmax(300px, 390px);
  gap: clamp(18px, 2.4vw, 34px);
  align-items: start;
}

.stage-nav { position: sticky; top: 112px; display: grid; gap: 7px; }
.nav-label { margin: 0 0 4px; color: #7a8783; font-size: 10px; font-weight: 800; text-transform: uppercase; letter-spacing: .14em; }
.stage-nav a { padding: 8px 7px; display: flex; align-items: center; gap: 9px; color: #6c7874; text-decoration: none; border-radius: 9px; font-size: 12px; font-weight: 700; }
.stage-nav a span { color: #9ba5a1; font-size: 10px; }
.stage-nav a:hover, .stage-nav a.active { color: var(--teal-deep); background: rgba(255,255,255,.56); }
.progress-track { height: 3px; margin: 10px 7px 2px; overflow: hidden; background: rgba(23,34,31,.09); border-radius: 999px; }
.progress-track span { width: 0%; height: 100%; display: block; background: var(--coral); transition: width .25s ease; }
.pace-note { margin: 4px 7px 0; color: #78847f; font-size: 10px; line-height: 1.55; }

.script-column { min-width: 0; }
.script-heading { min-height: 70px; margin-bottom: 14px; display: flex; justify-content: space-between; align-items: start; gap: 16px; }
.script-heading h2, .response-panel h2 { margin: 3px 0 0; font-family: inherit; letter-spacing: -.04em; }
.script-heading h2 { max-width: 520px; font-size: clamp(25px, 3vw, 38px); line-height: 1.08; }
.icon-button { padding: 9px 12px; color: var(--ink-soft); background: rgba(255,255,255,.6); border: 1px solid var(--line); font-size: 12px; white-space: nowrap; }

.script-card, .whatsapp-card {
  margin-bottom: 18px;
  padding: clamp(20px, 2.4vw, 30px);
  background: var(--surface);
  border: 1px solid rgba(255,255,255,.9);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  scroll-margin-top: 115px;
  content-visibility: auto;
  contain-intrinsic-size: 560px;
}
.script-card { transition: border-color .2s ease, transform .2s ease; }
.script-card.active { border-color: rgba(40,117,102,.38); }
.card-meta { display: flex; align-items: center; gap: 10px; color: #71807b; font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .1em; }
.stage-number { width: 29px; height: 29px; display: grid; place-items: center; color: white; background: var(--ink); border-radius: 9px; letter-spacing: 0; }
.script-card h3, .whatsapp-card h3 { margin: 16px 0 18px; font-size: clamp(20px, 2.2vw, 27px); font-weight: 700; line-height: 1.2; letter-spacing: -.035em; }

.live-answer { margin: 0 0 16px; padding: 14px 15px; display: grid; grid-template-columns: minmax(180px, 1fr) 135px; align-items: end; gap: 8px 14px; background: #fff8e9; border: 1px solid #ead4a7; border-radius: 14px; }
.live-answer label { display: grid; color: var(--ink); font-size: 12px; font-weight: 700; }
.live-answer label span { margin-bottom: 3px; color: #a36b25; font-size: 9px; font-weight: 800; text-transform: uppercase; letter-spacing: .12em; }
.live-answer small { grid-column: 1 / -1; color: #756c5f; font-size: 10px; }
.number-field { display: flex; align-items: center; overflow: hidden; background: #fff; border: 1px solid #d8c49d; border-radius: 10px; }
.number-field:focus-within { border-color: var(--gold); box-shadow: 0 0 0 3px rgba(196,147,77,.12); }
.number-field input { width: 100%; min-width: 0; padding: 9px 5px 9px 11px; color: var(--ink); background: transparent; border: 0; outline: 0; font-weight: 700; }
.number-field span { padding-right: 10px; color: #87765c; font-size: 10px; }

.speech { position: relative; margin: 11px 0; padding: 17px 19px 16px; border-radius: 15px; }
.speech p { margin: 0 0 12px; font-size: clamp(14px, 1.1vw, 16px); }
.speech p:last-child { margin-bottom: 0; }
.speech.you { background: #e8f1ee; border-left: 3px solid var(--teal); }
.speech.them { margin-left: 14%; background: #f4e7df; border-left: 3px solid var(--coral); }
.speech.compact p { color: #4e5a56; font-style: italic; }
.speaker { display: block; margin-bottom: 7px; color: var(--teal-deep); font-size: 9px; font-weight: 800; text-transform: uppercase; letter-spacing: .14em; }
.speech.them .speaker { color: #a94f38; }
mark { padding: 1px 5px; color: #704a16; background: #ffe9b9; border-radius: 5px; }
.coach-note { margin-top: 15px; padding: 11px 13px; color: #596661; background: rgba(255,255,255,.68); border: 1px dashed rgba(23,34,31,.17); border-radius: 12px; font-size: 12px; }
.coach-note strong { color: var(--ink); }
.branch-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 11px; margin-top: 14px; }
.branch { padding: 15px; background: rgba(255,255,255,.62); border: 1px solid var(--line); border-radius: 13px; }
.branch span { color: var(--coral); font-size: 10px; font-weight: 800; text-transform: uppercase; letter-spacing: .1em; }
.branch p { margin: 8px 0 0; color: var(--ink-soft); font-size: 13px; }

.whatsapp-card { background: var(--ink); color: #f8f3e9; }
.whatsapp-card .eyebrow { color: #84cbbb; }
.message-preview { padding: 17px 19px; color: #dfe7e3; background: rgba(255,255,255,.07); border: 1px solid rgba(255,255,255,.09); border-radius: 14px; }
.message-preview p { margin: 0 0 13px; font-size: 13px; }
.message-preview p:last-child { margin-bottom: 0; }
.whatsapp-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 14px; }
.whatsapp-actions .button { margin: 0; }
.button-whatsapp { display: inline-flex; align-items: center; gap: 8px; color: #062c22; background: #58d68d; }
.button-whatsapp:hover { background: #70e29f; }
.button-whatsapp:disabled { cursor: wait; opacity: .58; transform: none; }
.button-whatsapp svg { width: 18px; height: 18px; fill: currentColor; }
.whatsapp-status { margin: 10px 0 0; color: #b8c9c3; font-size: 10px; line-height: 1.45; }
.whatsapp-status.success { color: #85e5ac; font-weight: 700; }
.whatsapp-status.error { color: #ffb1a0; font-weight: 700; }

.new-question-card {
  margin-bottom: 18px;
  padding: clamp(20px, 2.4vw, 30px);
  background: #fff8e9;
  border: 1px solid #ead4a7;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.new-question-heading { display: flex; align-items: start; justify-content: space-between; gap: 16px; }
.new-question-heading h3 { margin: 4px 0 0; font-size: clamp(20px, 2.2vw, 27px); line-height: 1.2; letter-spacing: -.035em; }
.question-badge { padding: 5px 8px; color: #865719; background: #f4dfb8; border-radius: 999px; font-size: 9px; font-weight: 800; white-space: nowrap; text-transform: uppercase; letter-spacing: .08em; }
.new-question-intro { margin: 14px 0 18px; color: #665f54; font-size: 12px; }
.new-question-fields { display: grid; grid-template-columns: 1.15fr .85fr; gap: 12px; }
.new-question-fields label { display: grid; gap: 6px; color: #625a4d; font-size: 11px; font-weight: 800; }
.new-question-fields label small { color: #948a7b; font-size: 9px; font-weight: 600; }
.new-question-fields textarea { width: 100%; min-height: 94px; padding: 12px; resize: vertical; color: var(--ink); background: #fffdf8; border: 1px solid #dbc89f; border-radius: 11px; outline: 0; font: inherit; line-height: 1.45; }
.new-question-fields textarea:focus { border-color: var(--gold); box-shadow: 0 0 0 3px rgba(196,147,77,.12); }
.new-question-actions { margin-top: 12px; display: flex; align-items: center; gap: 12px; }
.button-question { color: #fff; background: #9a6724; white-space: nowrap; }
.button-question:hover { background: #805219; }
.button-question:disabled { cursor: wait; opacity: .58; transform: none; }
.question-status { color: #756c5f; font-size: 10px; line-height: 1.35; }
.question-status.success { color: var(--teal-deep); font-weight: 700; }
.question-status.error { color: #a64e3a; font-weight: 700; }

.response-panel {
  position: sticky;
  top: 108px;
  max-height: calc(100vh - 126px);
  padding: 22px;
  overflow: auto;
  background: rgba(255,253,248,.9);
  border: 1px solid rgba(255,255,255,.95);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  scrollbar-width: thin;
}
.panel-head { display: flex; justify-content: space-between; align-items: start; gap: 12px; }
.response-panel h2 { font-size: 25px; }
kbd { padding: 5px 7px; color: #66736f; background: #eeeae2; border: 1px solid #ddd7cc; border-radius: 6px; font: 600 9px "DM Sans", sans-serif; }
.panel-intro { margin: 10px 0 17px; color: #74807c; font-size: 12px; }
.response-list { display: grid; gap: 7px; }
.response-item { overflow: hidden; border: 1px solid var(--line); border-radius: 12px; background: rgba(255,255,255,.7); }
.response-item > button { width: 100%; padding: 13px 14px; display: flex; justify-content: space-between; align-items: center; gap: 12px; text-align: left; background: transparent; border: 0; cursor: pointer; font-size: 12px; font-weight: 700; }
.response-item > button:hover { background: #f2eee6; }
.response-item button i { width: 19px; height: 19px; flex: 0 0 auto; display: grid; place-items: center; color: var(--teal-deep); background: var(--blue-soft); border-radius: 50%; font-style: normal; transition: transform .2s ease; }
.response-answer { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .25s ease; }
.response-answer > * { overflow: hidden; }
.response-answer p { margin: 0; padding: 0 14px; color: #46534f; font-size: 12px; }
.response-answer small { display: block; margin: 0 14px; color: #9c5b48; font-size: 10px; }
.response-item.open { border-color: rgba(40,117,102,.3); box-shadow: 0 7px 20px rgba(35,69,61,.08); }
.response-item.open > button { color: var(--teal-deep); background: var(--blue-soft); }
.response-item.open button i { transform: rotate(45deg); }
.response-item.open .response-answer { grid-template-rows: 1fr; }
.response-item.open .response-answer p { padding-top: 13px; padding-bottom: 10px; }
.response-item.open .response-answer small { padding-bottom: 13px; }
.quick-question-card { margin-top: 14px; padding: 14px; border: 1px solid rgba(40,117,102,.24); border-radius: 14px; background: linear-gradient(145deg, #f5faf8, #edf5f2); }
.quick-question-card h3 { margin: 3px 0 6px; font-size: 17px; letter-spacing: -.025em; }
.quick-question-card p { margin: 0 0 11px; color: #53615d; font-size: 11px; line-height: 1.5; }
.quick-question-card label { display: block; margin: 9px 0 5px; color: #34443f; font-size: 10px; font-weight: 800; }
.quick-question-card label small { color: #7d8a86; font-weight: 600; }
.quick-question-card textarea { width: 100%; resize: vertical; min-height: 62px; padding: 10px 11px; border: 1px solid #cfdad6; border-radius: 10px; background: rgba(255,255,255,.9); color: var(--ink); font: inherit; font-size: 11px; line-height: 1.45; }
.quick-question-card textarea:focus { outline: 2px solid rgba(40,117,102,.18); border-color: var(--teal); }
.quick-question-card .button { width: 100%; margin-top: 10px; }
.quick-question-card .question-status { display: block; margin-top: 8px; font-size: 10px; line-height: 1.4; }
.panel-tip { margin-top: 16px; padding: 14px; color: #dfe8e4; background: var(--ink); border-radius: 13px; }
.panel-tip span { color: #f1c585; font-size: 9px; font-weight: 800; text-transform: uppercase; letter-spacing: .12em; }
.panel-tip p { margin: 5px 0 0; font-size: 11px; }

.toast { position: fixed; left: 50%; bottom: 24px; z-index: 100; padding: 10px 16px; color: white; background: var(--ink); border-radius: 10px; box-shadow: 0 12px 30px rgba(0,0,0,.2); font-size: 12px; opacity: 0; pointer-events: none; transform: translate(-50%, 12px); transition: .25s ease; }
.toast.show { opacity: 1; transform: translate(-50%, 0); }

body.focus-mode .stage-nav, body.focus-mode .response-panel, body.focus-mode .setup-strip { display: none; }
body.focus-mode .workspace { grid-template-columns: minmax(0, 840px); justify-content: center; }

@media (max-width: 1120px) {
  .workspace { grid-template-columns: minmax(0, 1fr) minmax(290px, 350px); }
  .stage-nav { display: none; }
}

@media (max-width: 820px) {
  .topbar { position: relative; align-items: flex-start; }
  .call-tools { flex-wrap: wrap; justify-content: flex-end; }
  .employee-session { text-align: left; }
  .setup-strip { grid-template-columns: 1fr 1fr; }
  .setup-copy { grid-column: 1 / -1; }
  .workspace { grid-template-columns: 1fr; }
  .response-panel { position: relative; top: 0; max-height: none; grid-row: auto; }
  .script-heading { margin-top: 8px; }
  .branch-grid { grid-template-columns: 1fr; }
  .live-answer { grid-template-columns: 1fr; }
  .live-answer small { grid-column: auto; }
  .new-question-fields { grid-template-columns: 1fr; }
  body.focus-mode .response-panel { display: none; }
}

@media (max-width: 560px) {
  .topbar { padding: 14px 16px; display: grid; }
  .brand h1 { font-size: 17px; }
  .call-tools { justify-content: flex-start; }
  .employee-session { width: 100%; }
  .setup-strip { margin: 14px 14px 0; grid-template-columns: 1fr; }
  .setup-copy { grid-column: auto; }
  .studio-menu { width: 100%; }
  .sync-actions { align-items: flex-start; flex-direction: column; }
  .workspace { padding: 20px 14px 60px; }
  .script-heading { display: grid; }
  .script-card, .whatsapp-card, .new-question-card, .response-panel { padding: 18px; border-radius: 17px; }
  .new-question-heading, .new-question-actions { align-items: flex-start; flex-direction: column; }
  .speech { padding: 15px; }
  .speech.them { margin-left: 7%; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation: none !important; transition: none !important; }
}
