/* Live Coach — the live workspace. Light, airy, flat, one green accent (the same Wise-style tokens as the rest of Wrapit).
   It covers the whole window while a session runs. */
#coachLive.sw {
  --bg: #f4f7f1; --card: #ffffff; --card2: #f4f7f1; --line: #e4e7e0; --line2: #d5dacf;
  --ink: #0e0f0c; --body: #3f433d; --dim: #6b7066; --mute: #8f948a;
  --forest: #163300; --lime: #9fe870; --lime2: #8ad85c; --green: #2fb344; --blue: #2f6fed; --violet: #7c4dff; --red: #d03238; --amber: #b97a00;
  position: fixed; inset: 0; z-index: 900; overflow: auto; background: var(--bg);
  color: var(--body); font: 14.5px/1.45 Inter, system-ui, -apple-system, sans-serif; padding: 14px 18px 18px;
  display: flex; flex-direction: column; gap: 12px; -webkit-font-smoothing: antialiased;
}
#coachLive.sw.hidden { display: none; }
#coachLive.sw > * { flex: none; }
body.coach-live-on { overflow: hidden; }
body.coach-live-on > *:not(#coachLive):not(script):not(style) { display: none !important; }
#coachLive.sw *, #coachLive.sw *::before, #coachLive.sw *::after { box-sizing: border-box; }
#coachLive.sw ::-webkit-scrollbar { width: 9px; height: 9px; }
#coachLive.sw ::-webkit-scrollbar-thumb { background: #cfd5c8; border-radius: 9px; }
#coachLive.sw button { font: inherit; color: inherit; cursor: pointer; }
#coachLive.sw svg { flex: none; }
#coachLive.sw .hidden { display: none !important; }

/* ---------- top bar ---------- */
.sw-top { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; min-height: 46px; }
.sw-home { display: inline-flex; align-items: center; gap: 12px; border: 0; background: none; padding: 0; }
.sw-logo { width: 36px; height: 36px; border-radius: 10px; display: grid; place-items: center; font-weight: 800; font-size: 18px; color: var(--forest); background: var(--lime); }
.sw-brand { font-size: 19px; font-weight: 800; letter-spacing: -.02em; color: var(--ink); margin-right: 6px; }
.sw-live { display: inline-flex; align-items: center; gap: 8px; padding: 7px 13px; border-radius: 999px; background: #e9f7df; border: 1px solid #cfe8bd; }
.sw-live > i { width: 9px; height: 9px; border-radius: 50%; background: var(--green); box-shadow: 0 0 0 4px rgba(47, 179, 68, .16); animation: swPulse 2s infinite; }
#coachLive.sw .sw-live .coach-chip { background: none; color: var(--forest); padding: 0; font-size: 13.5px; font-weight: 700; }
#coachLive.sw .sw-live .coach-chip[data-s="paused"] { color: #6b4a00; }
#coachLive.sw .sw-title { color: var(--dim); font-weight: 500; font-size: 14.5px; max-width: 46ch; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sw-timer { display: inline-flex; align-items: center; gap: 9px; padding: 7px 14px; border-radius: 999px; border: 1px solid var(--line); background: var(--card); font-variant-numeric: tabular-nums; color: var(--ink); }
.sw-timer > i { width: 9px; height: 9px; border-radius: 50%; background: var(--red); animation: swPulse 1.6s infinite; }
.sw-timer b { font-weight: 700; letter-spacing: .02em; }
.sw-ico { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; border: 1px solid var(--line); background: var(--card); color: var(--ink) !important; transition: background .15s, border-color .15s, transform .1s; }
.sw-ico:hover { background: var(--card2); border-color: var(--line2); }
.sw-ico:active { transform: scale(.96); }
.sw-ico.on { color: var(--forest) !important; border-color: #b5df98; background: #e9f7df; }
.sw-ico.small { width: 32px; height: 32px; border-radius: 10px; }
.sw-ico.small.round { border-radius: 50%; }
.sw-ico:disabled { opacity: .35; cursor: default; }
.sw-btn { min-height: 34px; padding: 6px 15px; border-radius: 999px; border: 1px solid var(--line2); background: var(--card); color: var(--ink) !important; font-weight: 600; font-size: 13.5px; transition: background .15s; }
.sw-btn:hover { background: var(--card2); }
.sw-btn.go { background: var(--lime); border-color: var(--lime); color: var(--forest) !important; font-weight: 700; }
.sw-btn.go:hover { background: var(--lime2); }
.sw-btn:disabled { opacity: .4; cursor: default; }
.sw-end { display: inline-flex; align-items: center; gap: 8px; min-height: 40px; padding: 8px 20px; border-radius: 999px; border: 0; background: var(--red); color: #fff !important; font-weight: 700; font-size: 15px; }
.sw-end:hover { background: #b9282e; }
#coachLive.sw .coach-err { margin: 0; padding: 9px 13px; border-radius: 12px; background: #fff1f1; border: 1px solid #f0c4c6; color: #7a1419; font-size: 13.5px; }
.sw-banner { padding: 10px 14px; border-radius: 12px; background: #fff8e3; border: 1px solid #ecd9a0; color: #5c4300; font-size: 14px; display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
#coachLive.sw select.sw-select { appearance: none; -webkit-appearance: none; width: auto; height: auto; min-height: 34px; max-width: 250px; padding: 6px 30px 6px 13px; border-radius: 999px; border: 1px solid var(--line2); color: var(--ink); font: 500 13.5px Inter, system-ui, sans-serif; text-overflow: ellipsis; box-shadow: none; outline: 0;
  background: var(--card) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%236b7066' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E") no-repeat right 11px center; }
#coachLive.sw select.sw-select.wide { max-width: 100%; width: min(420px, 100%); border-radius: 12px; min-height: 42px; }
#coachLive.sw select.sw-select:focus { border-color: var(--forest); box-shadow: 0 0 0 3px rgba(159, 232, 112, .45); }

/* ---------- cards ---------- */
.sw-card { background: var(--card); border: 1px solid var(--line); border-radius: 18px; padding: 16px 18px; min-width: 0; display: flex; flex-direction: column; box-shadow: 0 1px 2px rgba(14, 15, 12, .03); }
.sw-head { display: flex; align-items: center; gap: 10px; min-height: 34px; margin-bottom: 12px; flex-wrap: wrap; }
.sw-head > b { font-size: 17px; font-weight: 800; letter-spacing: -.02em; color: var(--ink); }
.sw-sub { color: var(--dim); font-size: 13px; font-weight: 500; }
.sw-hico { width: 32px; height: 32px; display: grid; place-items: center; border-radius: 10px; background: var(--card2); color: var(--forest); }
.sw-pick { display: inline-flex; align-items: center; gap: 8px; color: var(--dim); }
.sw-dot { width: 12px; height: 12px; border-radius: 50%; background: #b9c0b4; flex: none; }
.sw-dot[data-s="live"] { background: var(--green); box-shadow: 0 0 0 4px rgba(47, 179, 68, .16); animation: swPulse 2s infinite; }
.sw-dot[data-s="wait"] { background: #e3a008; }
.sw-dot[data-s="lost"] { background: var(--red); }

#coachLive.sw > .sw-main { display: grid; grid-template-columns: minmax(0, 1.92fr) minmax(0, 1fr); gap: 12px; flex: 1 0 auto; min-height: 430px; }
.sw-llm { max-height: max(430px, calc(100vh - 380px)); }
#coachLive.sw > .sw-main.big { grid-template-columns: minmax(0, 1fr); }
.sw-main.big .sw-llm { display: none; }
.sw-row { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.12fr) minmax(0, 1.22fr); gap: 12px; align-items: stretch; }

/* ---------- live preview ---------- */
.sw-stage { position: relative; flex: 1 1 auto; min-height: 320px; border-radius: 14px; overflow: hidden; background: #eceee8; border: 1px solid var(--line); }
.sw-stage video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; background: #eceee8; }
.sw-marks { position: absolute; inset: 0; pointer-events: none; }
.sw-mark { position: absolute; border: 3px solid #35c94f; border-radius: 9px; box-shadow: 0 0 0 3px rgba(53, 201, 79, .25), 0 0 16px rgba(53, 201, 79, .6); transition: left .22s ease, top .22s ease, width .22s ease, height .22s ease, opacity .2s; }
.sw-mark[data-order="1"] { animation: swRing 1.5s ease-in-out infinite; }
.sw-mark[data-order="2"] { border-color: #2f7cf6; box-shadow: 0 0 0 3px rgba(47, 124, 246, .22), 0 0 14px rgba(47, 124, 246, .5); }
.sw-mark[data-order="3"] { border-color: #8b5cf6; box-shadow: 0 0 0 3px rgba(139, 92, 246, .22), 0 0 14px rgba(139, 92, 246, .5); }
.sw-tip { position: absolute; display: inline-flex; align-items: center; gap: 8px; max-width: 300px; padding: 6px 13px 6px 6px; border-radius: 999px; background: var(--forest); border: 2px solid #35c94f; color: #fff; font-weight: 700; font-size: 13.5px; line-height: 1.2; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; box-shadow: 0 6px 18px rgba(14, 15, 12, .28); transition: left .22s ease, top .22s ease; }
.sw-tip i { flex: none; width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; font-style: normal; font-size: 12.5px; font-weight: 800; background: var(--lime); color: var(--forest); }
.sw-tip[data-order="2"] { border-color: #2f7cf6; background: #0f2a5e; }
.sw-tip[data-order="2"] i { background: #9cc2ff; color: #0f2a5e; }
.sw-tip[data-order="3"] { border-color: #8b5cf6; background: #2f1a6b; }
.sw-tip[data-order="3"] i { background: #cdb8ff; color: #2f1a6b; }
.sw-empty { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; padding: 18px; text-align: center; background: var(--card2); overflow: auto; }
.sw-empty-ico { width: 56px; height: 56px; border-radius: 16px; display: grid; place-items: center; color: var(--forest); background: #fff; border: 1px solid var(--line); }
.sw-empty-ico svg { width: 26px; height: 26px; }
.sw-empty > b { font-size: 20px; font-weight: 800; letter-spacing: -.02em; color: var(--ink); }
.sw-empty > p { margin: 0; color: var(--dim); max-width: 46ch; }
.sw-kinds { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; width: min(540px, 100%); margin-top: 4px; }
.sw-kinds button { display: flex; flex-direction: column; gap: 3px; padding: 13px 10px; border-radius: 14px; border: 1px solid var(--line2); background: #fff; text-align: center; transition: border-color .15s, background .15s; }
.sw-kinds button b { font-size: 14.5px; color: var(--ink); }
.sw-kinds button span { color: var(--dim); font-size: 12.5px; }
.sw-kinds button:hover { border-color: #b9c0b4; }
.sw-kinds button.on { border-color: var(--forest); background: #f1faeb; box-shadow: 0 0 0 3px rgba(159, 232, 112, .45); }
.sw-primary { min-height: 46px; padding: 10px 30px; border-radius: 999px; border: 0; background: var(--lime); color: var(--forest) !important; font-weight: 800; font-size: 15.5px; }
.sw-primary:hover { background: var(--lime2); }
.sw-checks { display: flex; gap: 8px; flex-wrap: wrap; justify-content: center; margin-top: 4px; }
.sw-check { display: inline-flex; align-items: center; gap: 7px; padding: 5px 12px; border-radius: 999px; font-size: 12.5px; border: 1px solid var(--line); color: var(--dim); background: #fff; }
.sw-check.ok { color: var(--forest); border-color: #cfe8bd; background: #f1faeb; }
.sw-check.ok::before { content: "✓"; color: var(--green); font-weight: 800; }
.sw-check.no::before { content: "!"; color: var(--amber); font-weight: 800; }
.sw-check button { border: 0; background: none; color: var(--forest) !important; text-decoration: underline; padding: 0; font-size: 12.5px; font-weight: 700; }

/* ---------- Wrapit LLM ---------- */
.sw-spark { width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; color: var(--forest); background: var(--lime); }
#coachLive.sw .sw-chat { flex: 1 1 auto; min-height: 160px; max-height: none; overflow: auto; display: flex; flex-direction: column; gap: 12px; padding: 2px 2px 6px; border: 0; background: none; }
#coachLive.sw .sw-chat .msg { display: flex; gap: 10px; align-items: flex-start; }
#coachLive.sw .sw-chat .msg.you { justify-content: flex-end; }
#coachLive.sw .sw-chat .bub { max-width: 100%; min-width: 0; padding: 11px 14px; border-radius: 16px; background: var(--card2); border: 1px solid var(--line); color: var(--ink); font-size: 14.5px; line-height: 1.5; overflow-wrap: anywhere; }
#coachLive.sw .sw-chat .msg.you .bub { background: var(--forest); border-color: var(--forest); color: #fff; max-width: 88%; }
#coachLive.sw .sw-chat .msg.ai .bub { flex: 1; }
#coachLive.sw .sw-chat .ava { flex: none; width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; font-weight: 800; font-size: 13px; color: var(--forest); background: var(--lime); }
#coachLive.sw .sw-chat .ava.big { width: 48px; height: 48px; font-size: 20px; border-radius: 14px; }
#coachLive.sw .chat-empty { margin: auto; text-align: center; color: var(--dim); display: grid; justify-items: center; gap: 10px; padding: 10px; }
#coachLive.sw .chat-empty p { margin: 0; max-width: 34ch; }
#coachLive.sw .sw-chat .shot { display: block; width: 100%; max-width: 230px; border-radius: 10px; margin-bottom: 8px; border: 1px solid rgba(255, 255, 255, .35); }
#coachLive.sw .sw-chat .shot-tag { display: inline-block; font-size: 12px; color: #cfe8bd; margin-bottom: 5px; }
#coachLive.sw .sw-chat pre { margin: 8px 0 6px; padding: 11px 12px; border-radius: 12px; background: #fff; border: 1px solid var(--line); color: var(--ink); font: 12.8px/1.5 ui-monospace, SFMono-Regular, Menlo, monospace; overflow: auto; white-space: pre; max-height: 340px; }
#coachLive.sw .sw-chat .cv-code { display: block; }
#coachLive.sw .sw-chat code.ic { background: #e9eee4; padding: 1px 6px; border-radius: 6px; font: 12.8px ui-monospace, Menlo, monospace; color: var(--ink); }
#coachLive.sw .sw-chat .pill { min-height: 28px; padding: 3px 12px; border-radius: 999px; border: 1px solid var(--line2); background: #fff; color: var(--ink); font-size: 12.5px; font-weight: 600; box-shadow: none; }
#coachLive.sw .sw-chat .cv-art { background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 8px; margin: 8px 0 6px; overflow: auto; }
#coachLive.sw .sw-chat .cv-art svg { max-width: 100%; height: auto; }
#coachLive.sw .sw-chat .cv-frame { width: 100%; height: 300px; border: 1px solid var(--line2); border-radius: 12px; background: #fff; margin-top: 8px; }
#coachLive.sw .sw-chat .cv-artbar { display: flex; gap: 8px; margin: 6px 0; }
#coachLive.sw .sw-chat h4.ic-h { margin: 10px 0 4px; font-size: 15px; color: var(--ink); }
#coachLive.sw .sw-chat .ic-l { margin: 4px 0 4px 20px; padding: 0; }
#coachLive.sw .sw-chat a { color: var(--forest); font-weight: 600; }
#coachLive.sw .sw-chat .caret { display: inline-block; width: 7px; height: 15px; margin-left: 2px; background: var(--forest); vertical-align: -2px; animation: swBlink 1s steps(2) infinite; }
#coachLive.sw .sw-chat .dots i { display: inline-block; width: 6px; height: 6px; margin-right: 4px; border-radius: 50%; background: var(--forest); animation: swDots 1.2s infinite; }
#coachLive.sw .sw-chat .dots i:nth-child(2) { animation-delay: .15s; }
#coachLive.sw .sw-chat .dots i:nth-child(3) { animation-delay: .3s; }
.sw-file { display: flex; align-items: center; gap: 11px; margin-top: 9px; padding: 10px 12px; border-radius: 14px; background: #fff; border: 1px solid var(--line2); }
.sw-file .ext { flex: none; width: 40px; height: 40px; border-radius: 10px; display: grid; place-items: center; font-size: 11px; font-weight: 800; letter-spacing: .03em; color: #fff; background: #2b6cf0; }
.sw-file .ext.xlsx { background: #1f9d55; } .sw-file .ext.pdf { background: #d6453d; } .sw-file .ext.pptx { background: #e0702a; }
.sw-file .nm { flex: 1; min-width: 0; }
.sw-file .nm b { display: block; font-size: 13.5px; color: var(--ink); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sw-file .nm span { font-size: 12px; color: var(--dim); }
#coachLive.sw .sw-chat .sw-file a { flex: none; padding: 6px 14px; border-radius: 999px; background: var(--lime); color: var(--forest); font-weight: 700; font-size: 13px; text-decoration: none; }
.sw-chips { display: flex; gap: 7px; flex-wrap: wrap; margin: 4px 0 8px; }
.sw-chips button { padding: 6px 12px; border-radius: 999px; border: 1px solid var(--line2); background: #fff; color: var(--body) !important; font-size: 12.5px; font-weight: 600; }
.sw-chips button:hover { border-color: var(--forest); background: #f1faeb; }
.sw-ask { display: flex; align-items: center; gap: 8px; padding: 6px 6px 6px 10px; border-radius: 999px; border: 1px solid var(--line2); background: #fff; transition: border-color .15s, box-shadow .15s; }
.sw-ask:focus-within { border-color: var(--forest); box-shadow: 0 0 0 3px rgba(159, 232, 112, .45); }
#coachLive.sw .sw-ask input { flex: 1; min-width: 0; min-height: 36px; border: 0; outline: 0; background: none; color: var(--ink); font: 14.5px Inter, system-ui, sans-serif; padding: 0 4px; box-shadow: none; }
#coachLive.sw .sw-ask input::placeholder { color: var(--mute); }
.sw-clip { width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; border: 0; background: none; color: var(--dim) !important; }
.sw-clip:hover { background: var(--card2); }
.sw-clip.on { color: var(--forest) !important; background: var(--lime); }
.sw-send { width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; border: 0; background: var(--lime); color: var(--forest) !important; }
.sw-send:hover { background: var(--lime2); }
.sw-send:disabled { opacity: .45; }
.sw-ask.slim { padding: 4px 4px 4px 12px; margin-top: 10px; }

/* ---------- bottom row ---------- */
.sw-say { background: #f1faeb; border-color: #cfe8bd; }
.sw-say .sw-hico { background: #fff; }
.sw-badge { display: inline-flex; align-items: center; gap: 7px; padding: 4px 11px; border-radius: 999px; font-size: 12.5px; font-weight: 700; background: #fff1f1; border: 1px solid #f0c4c6; color: #7a1419; }
.sw-badge i { width: 8px; height: 8px; border-radius: 50%; background: var(--red); animation: swPulse 1.6s infinite; }
.sw-badge.off { background: var(--card2); border-color: var(--line); color: var(--dim); }
.sw-badge.off i { background: #b9c0b4; animation: none; }
.sw-quote { padding: 13px 15px; border-radius: 14px; background: var(--card2); border: 1px solid var(--line); }
.sw-quote p { margin: 0; font-size: 16px; line-height: 1.5; color: var(--ink); overflow-wrap: anywhere; }
#coachLive.sw .sw-say .sw-quote { background: #fff; border-color: #cfe8bd; }
#coachLive.sw .cb-say { font-size: 16.5px; font-weight: 600; color: var(--forest); margin: 0; line-height: 1.5; }
.sw-coachline { margin: 0 0 8px; color: var(--forest); font-size: 13.5px; font-weight: 700; }
.sw-coachline:empty, .sw-why:empty { display: none; }
.sw-why { margin: 8px 0 0; color: var(--dim); font-size: 13px; }
.sw-toggles { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; margin-top: auto; padding-top: 12px; }
.sw-tog { padding: 5px 13px; border-radius: 999px; border: 1px solid var(--line2); background: #fff; color: var(--dim) !important; font-size: 12.5px; font-weight: 700; }
.sw-tog.on { color: var(--forest) !important; border-color: var(--forest); background: var(--lime); }
#coachLive.sw .cb-heard { margin-top: 8px; }
#coachLive.sw .ch-line { color: var(--dim); font-size: 13px; }
#coachLive.sw .ch-line.them b { color: var(--forest); }
.sw-more { margin-top: 8px; }
.sw-more summary { cursor: pointer; color: var(--dim); font-size: 13px; font-weight: 600; }
#coachLive.sw .sw-more .cv-list { max-height: 200px; overflow: auto; border: 0; background: none; padding: 0; margin-top: 6px; }
#coachLive.sw .cv { display: grid; grid-template-columns: 44px minmax(0, 1fr); gap: 8px; font-size: 13.5px; padding: 4px 0; color: var(--ink); border: 0; background: none; }
#coachLive.sw .cv b { color: var(--dim); font-weight: 700; }
#coachLive.sw .cv.them b { color: var(--forest); }
#coachLive.sw .cv.partial { opacity: .6; font-style: italic; }

.sw-donerow { display: flex; align-items: center; gap: 12px; padding: 4px 12px 10px; color: var(--dim); font-size: 14.5px; }
.sw-donerow i { flex: none; width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; font-style: normal; font-weight: 800; font-size: 13px; background: var(--green); color: #fff; }
.sw-donerow span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sw-now { display: flex; gap: 12px; align-items: flex-start; padding: 12px 13px; border-radius: 14px; border: 1.5px solid var(--forest); background: #f1faeb; box-shadow: 0 0 0 3px rgba(159, 232, 112, .4); }
.sw-num { flex: none; width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; font-weight: 800; font-size: 13.5px; background: var(--forest); color: var(--lime); }
.sw-nowbody { min-width: 0; flex: 1; }
#coachLive.sw .cb-do { font-size: 16.5px; font-weight: 700; line-height: 1.4; margin: 1px 0 0; color: var(--ink); }
#coachLive.sw .cb-why { color: var(--dim); font-size: 13px; margin: 4px 0 0; }
#coachLive.sw .cb-why:empty { display: none; }
#coachLive.sw .cc-row { margin-top: 8px; }
#coachLive.sw .cc-val { background: #fff; max-height: 120px; overflow: auto; }
#coachLive.sw .cb-copy .pill { min-height: 30px; padding: 4px 13px; border-radius: 999px; font-size: 12.5px; font-weight: 700; box-shadow: none; }
#coachLive.sw .cb-fix, #coachLive.sw .cb-unsure { font-size: 14px; margin-top: 10px; }
.sw-steps { list-style: none; margin: 6px 0 0; padding: 0; }
.sw-steps li { display: flex; gap: 12px; align-items: center; padding: 10px 13px; border-bottom: 1px solid var(--line); color: var(--body); font-size: 14.5px; }
.sw-steps li:last-child { border-bottom: 0; }
.sw-steps li i { flex: none; width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; font-style: normal; font-weight: 700; font-size: 13px; background: #e9eee4; color: var(--body); }
.sw-steps li span { min-width: 0; overflow-wrap: anywhere; }
.sw-steps li code { background: #e9eee4; padding: 1px 7px; border-radius: 6px; font: 12.8px ui-monospace, Menlo, monospace; color: var(--ink); }
.sw-steps li.none { color: var(--mute); font-size: 13.5px; }
.sw-dofoot { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; margin-top: auto; padding-top: 12px; }
#coachLive.sw .cb-note { color: var(--mute); font-size: 12.5px; margin: 8px 0 0; }
#coachLive.sw .cb-note:empty { display: none; }

/* ---------- details drawer ---------- */
.sw-drawer { border: 1px solid var(--line); border-radius: 18px; background: var(--card); padding: 16px 18px; }
.sw-drawer-head { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.sw-drawer-head b { font-size: 16px; color: var(--ink); }
#coachLive.sw .coach-meta { color: var(--dim); margin: 8px 0 0; }
#coachLive.sw .coach-mapbox { margin-top: 12px; }
#coachLive.sw .coach-all { margin-top: 12px; }

/* the summary shown on the home screen after a session */
.coach-summary { border: 1px solid #cfe8bd; background: #f1faeb; border-radius: 18px; padding: 18px 20px; margin: 14px 0 6px; }
.coach-summary h3 { margin: 0 0 8px; font-size: 17px; font-weight: 800; letter-spacing: -.02em; color: #0e0f0c; }
.coach-summary pre { margin: 0; white-space: pre-wrap; font: 14px/1.5 Inter, system-ui, sans-serif; color: #3f433d; }
.coach-summary .row { display: flex; gap: 8px; margin-top: 12px; flex-wrap: wrap; }
.coach-summary a.pill { text-decoration: none; }

@keyframes swPulse { 0%, 100% { opacity: 1; } 50% { opacity: .45; } }
@keyframes swRing { 0%, 100% { box-shadow: 0 0 0 3px rgba(53, 201, 79, .25), 0 0 16px rgba(53, 201, 79, .6); } 50% { box-shadow: 0 0 0 7px rgba(53, 201, 79, .16), 0 0 28px rgba(53, 201, 79, .85); } }
@keyframes swBlink { 50% { opacity: 0; } }
@keyframes swDots { 0%, 100% { opacity: .25; transform: translateY(0); } 50% { opacity: 1; transform: translateY(-3px); } }

@media (max-width: 1080px) {
  #coachLive.sw > .sw-main { grid-template-columns: minmax(0, 1fr); }
  .sw-row { grid-template-columns: minmax(0, 1fr); }
  .sw-stage { min-height: 260px; aspect-ratio: 16 / 10; }
  .sw-llm { max-height: 520px; }
  #coachLive.sw .sw-title { max-width: 100%; white-space: normal; }
}
@media (max-width: 560px) {
  #coachLive.sw { padding: 10px; }
  .sw-kinds { grid-template-columns: minmax(0, 1fr); }
  #coachLive.sw select.sw-select { max-width: 100%; }
}

/* ============================================================
   LIVE COACH HOME — premium light, matched to the live workspace
   (the screen you see when you open the Live Coach tab)
   ============================================================ */
#coach.card.coach-card { max-width: 980px; }
#coach .after-head { display: flex; align-items: baseline; gap: 14px; flex-wrap: wrap; margin-bottom: 18px; }
#coach h1 { font-size: 42px; font-weight: 800; letter-spacing: -.035em; color: #0e0f0c; position: relative; }
#coach .after-head .sub { color: #6b7066; font-size: 15px; font-weight: 500; }
#coach nav.tabs.in-card { background: #eef1ea; border-radius: 999px; padding: 4px; gap: 2px; margin-bottom: 24px; display: inline-flex; }
#coach nav.tabs.in-card .tab { border-radius: 999px; padding: 8px 16px; font-weight: 600; font-size: 13.5px; color: #3f433d; background: transparent; border: 0; }
#coach nav.tabs.in-card .tab:hover { background: #e3e8de; }
#coach nav.tabs.in-card .tab.active { background: #9fe870; color: #163300; }

/* the "Your sessions" hero card */
#coachHome .ps-card { background: #fff; border: 1px solid #e4e7e0; border-radius: 22px; padding: 28px 30px; margin-top: 4px; box-shadow: 0 8px 34px rgba(14, 15, 12, .06); position: relative; overflow: hidden; }
#coachHome .ps-card::before { content: ""; position: absolute; inset: 0 0 auto 0; height: 4px; background: linear-gradient(90deg, #9fe870 0%, #163300 100%); }
#coachHome .ps-head h2 { font-size: 25px; font-weight: 800; letter-spacing: -.025em; color: #0e0f0c; }
#coachHome .ps-head .sub, #coachHome .ps-card > .sub, #coachHome .ps-card p.sub { color: #6b7066; font-size: 14.5px; line-height: 1.55; max-width: 60ch; }
.ps-actions { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
#psNew { background: #163300; color: #fff; min-height: 46px; padding: 11px 26px; border-radius: 999px; font-weight: 700; font-size: 15px; border: 0; box-shadow: 0 8px 22px rgba(22, 51, 0, .2); transition: transform .1s, background .15s; }
#psNew:hover { background: #1f4a00; transform: translateY(-1px); }
#psNew:active { transform: translateY(0); }
.ps-actions .pill:not(.primary), #psProfile, #psFilesBtn { border: 1px solid #d5dacf; background: #fff; color: #163300; min-height: 40px; padding: 8px 16px; border-radius: 999px; font-weight: 600; font-size: 13.5px; box-shadow: none; }
.ps-actions .pill:not(.primary):hover { background: #f1faeb; border-color: #9fe870; }
#coachHome .ps-list, #coachHome #psList { margin-top: 16px; display: grid; gap: 10px; }
#coachHome .ps-row { border: 1px solid #e4e7e0; background: #fbfdf9; border-radius: 14px; padding: 13px 16px; display: flex; align-items: center; gap: 12px; transition: border-color .15s, background .15s; }
#coachHome .ps-row:hover { border-color: #9fe870; background: #f4fbef; }
#coachHome .ps-row b { font-size: 15px; color: #0e0f0c; }
#coachHome .ps-row .ps-sub { color: #6b7066; font-size: 12.5px; }
#coachHome #psList li:only-child:not(.ps-row), #coachHome .ps-empty { color: #8f948a; font-size: 14px; text-align: center; padding: 22px; border: 1px dashed #d5dacf; border-radius: 14px; background: #fbfdf9; }

/* the four things a session gives you — a quiet strip under the hero */
.ps-whatyouget { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; margin: 20px 0 2px; }
.ps-wyg { display: flex; flex-direction: column; gap: 6px; padding: 14px; border-radius: 16px; border: 1px solid #e4e7e0; background: #fff; }
.ps-wyg .ic { width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; color: #163300; background: #f1faeb; }
.ps-wyg b { font-size: 13.5px; color: #0e0f0c; }
.ps-wyg span { font-size: 12px; color: #6b7066; line-height: 1.4; }

/* the quick-start is a quiet secondary option */
#coach .coach-quick { margin-top: 18px; border: 1px solid #e4e7e0; border-radius: 16px; padding: 4px 18px; background: #fbfdf9; }
#coach .coach-quick > summary { padding: 12px 0; font-weight: 600; font-size: 14px; color: #3f433d; list-style: none; }
#coach .coach-quick > summary::-webkit-details-marker { display: none; }
#coach .coach-quick > summary::before { content: "⚡ "; }
#coach .coach-perms { margin-top: 14px; }

@media (max-width: 720px) { .ps-whatyouget { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); } }
