/* ---------- Venture.bot app (chat + plan grader) ---------- */
.vb-section { padding-top: 50px; }

/* chat shell */
.vb-app { display: grid; grid-template-columns: 300px minmax(0, 1fr); height: 780px; border: 1px solid var(--tan); border-radius: var(--r-lg); overflow: hidden; background: var(--white); box-shadow: 0 30px 70px rgba(21,66,61,.14); }
.vb-side { background: var(--green); color: var(--white); padding: 26px 20px; display: flex; flex-direction: column; gap: 14px; overflow-y: auto; }
.vb-side-brand { display: flex; align-items: center; gap: 12px; padding: 0 6px 6px; }
.vb-side-brand b { display: block; font-weight: 600; font-size: 1.15rem; letter-spacing: -.02em; }
.vb-side-brand span { font-size: .82rem; color: var(--lime); }
.vb-logo { width: 44px; height: 44px; border-radius: 14px; background: var(--white); color: var(--green); display: grid; place-items: center; font-weight: 700; font-size: 1.2rem; flex: none; box-shadow: inset 0 0 0 2px var(--lime); }
.vb-new { display: flex; align-items: center; justify-content: center; gap: 8px; border: 1px solid rgba(255,255,255,.35); border-radius: var(--r); padding: 11px; color: var(--white); font-weight: 500; transition: background .3s, border-color .3s; }
.vb-new svg { width: 18px; height: 18px; }
.vb-new:hover { background: rgba(255,255,255,.08); border-color: var(--white); }
.vb-side-label { font-size: .75rem; letter-spacing: .14em; text-transform: uppercase; color: rgba(255,255,255,.55); margin: 8px 6px 0; font-weight: 500; }
.vb-modes { display: grid; gap: 6px; }
.vb-mode { display: flex; align-items: center; gap: 12px; text-align: left; padding: 10px 12px; border-radius: 12px; color: var(--white); transition: background .25s; border: 1px solid transparent; }
.vb-mode .ic { width: 36px; height: 36px; border-radius: 10px; background: rgba(255,255,255,.08); display: grid; place-items: center; flex: none; color: var(--lime); }
.vb-mode .ic svg { width: 19px; height: 19px; }
.vb-mode b { display: block; font-weight: 500; font-size: .95rem; line-height: 1.3; }
.vb-mode small { display: block; font-size: .78rem; color: rgba(255,255,255,.62); line-height: 1.35; }
.vb-mode:hover { background: rgba(255,255,255,.06); }
.vb-mode.active { background: rgba(255,255,255,.1); border-color: rgba(149,174,83,.6); }
.vb-mode.active .ic { background: var(--orange); color: var(--white); }
.vb-side-card { margin-top: auto; display: block; background: var(--white); color: var(--ink); border-radius: 14px; padding: 16px; transition: transform .3s; }
.vb-side-card:hover { transform: translateY(-2px); }
.vb-side-card-tag { display: inline-block; background: var(--lime); color: var(--white); font-size: .72rem; font-weight: 600; padding: 2px 10px; border-radius: 20px; margin-bottom: 8px; }
.vb-side-card b { display: block; font-weight: 600; color: var(--green); }
.vb-side-card small { display: block; font-size: .8rem; color: var(--muted); line-height: 1.4; margin-top: 2px; }
.vb-side-foot { font-size: .78rem; color: rgba(255,255,255,.7); padding: 0 6px; line-height: 1.5; }
.vb-side-foot span { color: rgba(255,255,255,.5); }

.vb-main { display: flex; flex-direction: column; min-width: 0; background: linear-gradient(180deg, #fff 0%, #fbfcf7 100%); }
.vb-top { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 18px 28px; border-bottom: 1px solid #eee; }
.vb-top-title { display: flex; align-items: center; gap: 10px; min-width: 0; flex-wrap: wrap; }
.vb-top-title b { font-weight: 600; color: var(--ink); font-size: 1.05rem; }
.vb-top-title span:last-child { color: var(--muted); font-size: .9rem; }
.vb-dot { width: 9px; height: 9px; border-radius: 50%; background: #4caf50; box-shadow: 0 0 0 4px rgba(76,175,80,.15); flex: none; }
.vb-badge { font-size: .78rem; font-weight: 500; color: var(--green); background: var(--lime-bg); border: 1px solid rgba(149,174,83,.5); padding: 5px 12px; border-radius: 20px; white-space: nowrap; }
.vb-thread { flex: 1; overflow-y: auto; padding: 28px clamp(18px, 4vw, 48px); display: flex; flex-direction: column; gap: 22px; scrollbar-width: thin; }
.vb-msg { display: flex; gap: 12px; max-width: 86%; }
.vb-msg .av { width: 36px; height: 36px; border-radius: 12px; background: var(--green); color: var(--lime); display: grid; place-items: center; font-weight: 700; flex: none; font-size: .95rem; }
.vb-msg .bubble { padding: 14px 18px; border-radius: 18px; font-size: .98rem; line-height: 1.65; font-weight: 400; color: var(--ink); background: var(--white); border: 1px solid #ece6db; border-top-left-radius: 6px; box-shadow: 0 6px 18px rgba(40,32,13,.04); min-width: 0; overflow-wrap: anywhere; }
.vb-msg .bubble b { color: var(--green); font-weight: 600; }
.vb-msg .bubble ul, .vb-msg .bubble ol { margin: 6px 0; padding-left: 20px; }
.vb-msg .bubble li { margin: 3px 0; }
.vb-msg .bubble li::marker { color: var(--orange); font-weight: 600; }
.vb-msg .bubble p + p { margin-top: 5px; }
.vb-msg .bubble p + ul, .vb-msg .bubble p + ol, .vb-msg .bubble ul + p, .vb-msg .bubble ol + p { margin-top: 8px; }
.vb-msg .who { font-size: .78rem; color: var(--muted); margin-bottom: 4px; font-weight: 500; }
.vb-msg.me { align-self: flex-end; flex-direction: row-reverse; }
.vb-msg.me .bubble { background: var(--green); color: var(--white); border-color: var(--green); border-radius: 18px; border-top-right-radius: 6px; }
.vb-msg.me .who { text-align: right; }
.vb-msg.me .av { background: var(--orange); color: var(--white); }
.vb-msg.err .bubble { border-color: #e8b4a6; background: #fff6f3; }
.vb-typing { display: inline-flex; gap: 5px; padding: 16px 18px; }
.vb-typing i { width: 7px; height: 7px; border-radius: 50%; background: var(--green-2, #498e72); animation: blink 1.2s infinite; }
.vb-typing i:nth-child(2) { animation-delay: .2s; } .vb-typing i:nth-child(3) { animation-delay: .4s; }
.vb-empty { margin: auto; text-align: center; max-width: 640px; padding: 20px 0; }
.vb-empty .vb-logo { width: 64px; height: 64px; border-radius: 20px; font-size: 1.7rem; margin: 0 auto 18px; background: var(--green); color: var(--lime); box-shadow: none; }
.vb-empty h3 { font-size: 1.6rem; margin-bottom: 8px; }
.vb-empty p { color: var(--muted); margin-bottom: 26px; }
.vb-suggest { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; text-align: left; }
.vb-suggest button { border: 1px solid #e6dfd2; border-radius: 14px; padding: 14px 16px; background: var(--white); font-size: .92rem; line-height: 1.45; color: var(--ink); transition: border-color .25s, transform .25s; font-weight: 400; }
.vb-suggest button b { display: block; color: var(--green); font-weight: 600; margin-bottom: 2px; }
.vb-suggest button:hover { border-color: var(--orange); transform: translateY(-2px); }
.vb-compose { display: flex; align-items: flex-end; gap: 10px; margin: 0 clamp(18px, 4vw, 48px); padding: 10px 10px 10px 20px; border: 1px solid #ddd5c6; border-radius: 18px; background: var(--white); box-shadow: 0 8px 24px rgba(40,32,13,.06); transition: border-color .25s; }
.vb-compose:focus-within { border-color: var(--green); }
.vb-compose textarea { flex: 1; min-width: 0; border: 0; resize: none; font: inherit; font-size: 1rem; font-weight: 400; line-height: 1.5; padding: 9px 0; max-height: 160px; outline: none; background: transparent; color: var(--ink); }
.vb-compose button { width: 44px; height: 44px; border-radius: 12px; background: var(--orange); color: var(--white); display: grid; place-items: center; flex: none; transition: background .25s; }
.vb-compose button:hover { background: var(--green); }
.vb-compose button:disabled { opacity: .5; cursor: default; }
.vb-compose button svg { width: 18px; height: 18px; }
.vb-note { text-align: center; font-size: .76rem; color: var(--muted); padding: 10px 0 14px; }

@media (max-width: 900px) {
  .vb-app { grid-template-columns: 1fr; height: auto; }
  .vb-side { padding: 18px; gap: 10px; }
  .vb-modes { grid-auto-flow: column; grid-auto-columns: max-content; overflow-x: auto; padding-bottom: 4px; }
  .vb-mode small, .vb-side-card, .vb-side-foot, .vb-side-label { display: none; }
  .vb-main { height: 640px; }
  .vb-msg { max-width: 100%; }
  .vb-suggest { grid-template-columns: 1fr; }
  .vb-badge { display: none; }
}

/* ---------- plan grader ---------- */
.pg-quiz { display: grid; grid-template-columns: 300px minmax(0, 1fr); border: 1px solid var(--tan); border-radius: var(--r-lg); overflow: hidden; background: var(--white); box-shadow: 0 30px 70px rgba(21,66,61,.12); }
.pg-side { background: var(--grey); padding: 28px 22px; display: flex; flex-direction: column; gap: 14px; }
.pg-side-head { display: flex; justify-content: space-between; align-items: baseline; }
.pg-side-head b { font-weight: 600; color: var(--ink); }
.pg-side-head span { font-size: .82rem; color: var(--muted); }
.pg-bar { height: 6px; border-radius: 6px; background: #e4e0d6; overflow: hidden; }
.pg-bar i { display: block; height: 100%; width: 0; background: var(--lime); border-radius: 6px; transition: width .4s var(--ease-out); }
.pg-steps { list-style: none; margin: 4px 0 0; padding: 0; display: grid; gap: 4px; }
.pg-steps button { width: 100%; display: flex; align-items: center; gap: 12px; padding: 9px 10px; border-radius: 10px; text-align: left; font-size: .93rem; color: var(--ink); font-weight: 400; transition: background .2s; }
.pg-steps button:hover { background: rgba(255,255,255,.7); }
.pg-steps .n { width: 28px; height: 28px; border-radius: 50%; border: 1px solid #cfc7b6; display: grid; place-items: center; font-size: .8rem; font-weight: 600; color: var(--muted); flex: none; background: var(--white); }
.pg-steps .done .n { background: var(--lime); border-color: var(--lime); color: var(--white); }
.pg-steps .cur button { background: var(--white); box-shadow: 0 4px 12px rgba(40,32,13,.06); font-weight: 500; }
.pg-steps .cur .n { border-color: var(--orange); color: var(--orange); }
.pg-sample { margin-top: auto; display: flex; align-items: center; justify-content: center; gap: 8px; padding: 11px; border-radius: var(--r); border: 1px dashed var(--orange); color: var(--orange); font-weight: 500; font-size: .92rem; transition: background .25s; }
.pg-sample svg { width: 17px; height: 17px; }
.pg-sample:hover { background: #fff4ec; }
.pg-card { padding: clamp(28px, 4vw, 52px); display: flex; flex-direction: column; min-width: 0; }
.pg-q-num { color: var(--orange); font-weight: 600; font-size: .95rem; }
.pg-q { font-size: clamp(1.4rem, 2.2vw, 1.85rem); line-height: 1.3; margin: 10px 0 10px; letter-spacing: -.03em; }
.pg-hint { color: var(--muted); font-size: .98rem; margin-bottom: 22px; max-width: 70ch; }
.pg-input { width: 100%; border: 1px solid #ddd5c6; border-radius: 16px; padding: 18px 20px; font: inherit; font-size: 1.02rem; line-height: 1.65; font-weight: 400; color: var(--ink); resize: vertical; min-height: 200px; outline: none; transition: border-color .25s, box-shadow .25s; background: #fffdfa; }
.pg-input:focus { border-color: var(--green); box-shadow: 0 0 0 4px rgba(21,66,61,.08); }
.pg-meta { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; font-size: .82rem; color: var(--muted); margin-top: 10px; }
.pg-error { margin-top: 14px; color: #b3412b; background: #fff3ef; border: 1px solid #f0c3b6; padding: 10px 14px; border-radius: 10px; font-size: .92rem; }
.pg-nav { display: flex; justify-content: space-between; gap: 12px; margin-top: 28px; }
.pg-nav .btn { min-height: 50px; }

.pg-loading { text-align: center; padding: 90px 20px; border: 1px solid var(--tan); border-radius: var(--r-lg); background: var(--white); }
.pg-loading h3 { font-size: 1.5rem; margin: 22px 0 6px; }
.pg-loading p { color: var(--muted); }
.pg-spinner { width: 58px; height: 58px; border-radius: 50%; margin: 0 auto; border: 5px solid #ece8de; border-top-color: var(--orange); border-right-color: var(--lime); animation: pgspin 1s linear infinite; }
@keyframes pgspin { to { transform: rotate(360deg); } }

.pg-res-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; flex-wrap: wrap; margin-bottom: 26px; }
.pg-res-head .btn { min-height: 50px; font-size: 1rem; padding: 10px 24px; }
.pg-row-top { display: grid; grid-template-columns: minmax(0, 1.45fr) minmax(0, 1fr); gap: 24px; margin-bottom: 24px; }
.pg-panel { background: var(--white); border: 1px solid #ebe5d9; border-radius: 22px; padding: 28px; box-shadow: 0 18px 40px rgba(40,32,13,.06); min-width: 0; }
.pg-panel-label { font-size: .78rem; letter-spacing: .14em; text-transform: uppercase; font-weight: 600; color: var(--green); margin-bottom: 18px; }
.pg-scores-in { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 34px; align-items: center; }
.pg-overall { text-align: center; }
.pg-overall .lbl { display: block; font-weight: 600; color: var(--ink); margin-top: 10px; }
.pg-overall .sub { display: block; font-size: .82rem; color: var(--muted); }
.pg-rings { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px 12px; }
.pg-ring { text-align: center; }
.pg-ring .name { display: block; font-size: .88rem; color: var(--ink); font-weight: 500; margin-bottom: 8px; }
.ring { position: relative; display: inline-grid; place-items: center; }
.ring svg { transform: rotate(-90deg); display: block; }
.ring .track { fill: none; }
.ring .val { fill: none; stroke-linecap: round; transition: stroke-dashoffset 1.2s var(--ease-out); }
.ring .num { position: absolute; inset: 0; display: grid; place-items: center; font-weight: 600; color: var(--ink); }
.ring.big .num { font-size: 2.6rem; letter-spacing: -.04em; }
.ring.big .num small { font-size: 1rem; color: var(--muted); font-weight: 500; margin-left: 2px; }
.ring.sm .num { font-size: 1.25rem; }
.pg-curve svg { width: 100%; height: auto; display: block; }
.pg-curve-text { margin-top: 14px; color: var(--ink); font-size: .95rem; }
.pg-curve-text b { color: var(--green); font-weight: 600; }
.pg-curve-text small { display: block; color: var(--muted); font-size: .75rem; margin-top: 4px; }
.pg-feedback { margin-bottom: 40px; }
.pg-fb-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 26px 40px; }
.pg-fb-grid h4 { font-size: 1.05rem; font-weight: 600; color: var(--ink); margin-bottom: 8px; display: flex; align-items: center; gap: 8px; }
.pg-fb-grid h4::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--lime); }
.pg-fb-grid > div:nth-child(2) h4::before { background: var(--orange); }
.pg-fb-grid p, .pg-fb-grid li { color: var(--green); font-size: .97rem; line-height: 1.65; font-weight: 400; }
.pg-fb-grid ul, .pg-fb-grid ol { margin: 0; padding-left: 20px; display: grid; gap: 6px; }
.pg-fb-grid li::marker { color: var(--orange); font-weight: 600; }
.pg-sub { font-size: 1.35rem; margin: 0 0 18px; }
.pg-cats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; margin-bottom: 44px; }
.pg-cat { background: var(--white); border: 1px solid #ebe5d9; border-radius: 18px; padding: 22px; display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 16px; align-items: start; }
.pg-cat h5 { font-size: 1.05rem; font-weight: 600; color: var(--ink); margin: 2px 0 6px; }
.pg-cat p { font-size: .92rem; line-height: 1.6; color: var(--ink); }
.pg-lines { display: grid; gap: 18px; }
.pg-line { background: var(--white); border: 1px solid #ebe5d9; border-radius: 18px; padding: 22px 26px; }
.pg-line .q { font-size: .85rem; font-weight: 600; color: var(--orange); margin-bottom: 8px; }
.pg-line .a { font-size: 1rem; line-height: 1.85; color: var(--ink); font-weight: 400; }
.pg-line mark { border-radius: 4px; padding: 1px 2px; color: inherit; cursor: help; }
.pg-line mark.strength { background: rgba(149,174,83,.32); }
.pg-line mark.weakness { background: rgba(242,190,66,.45); }
.pg-notes { list-style: none; margin: 14px 0 0; padding: 0; display: grid; gap: 8px; }
.pg-notes li { display: flex; gap: 10px; font-size: .9rem; line-height: 1.55; color: var(--ink); background: var(--grey); border-radius: 10px; padding: 10px 14px; }
.pg-notes .tag { flex: none; font-size: .72rem; font-weight: 600; text-transform: uppercase; letter-spacing: .06em; padding: 2px 8px; border-radius: 6px; height: max-content; margin-top: 2px; }
.pg-notes .tag.strength { background: var(--lime); color: var(--white); }
.pg-notes .tag.weakness { background: #f2be42; color: var(--ink); }

@media (max-width: 1000px) {
  .pg-row-top { grid-template-columns: 1fr; }
  .pg-cats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 760px) {
  .pg-quiz { grid-template-columns: 1fr; }
  .pg-steps { grid-template-columns: repeat(8, minmax(0, 1fr)); }
  .pg-steps button { justify-content: center; padding: 6px 0; }
  .pg-steps .lbl { display: none; }
  .pg-scores-in { grid-template-columns: 1fr; }
  .pg-fb-grid, .pg-cats { grid-template-columns: 1fr; }
}

/* tool cards on venture-bot.html */
.vb-tool { display: block; padding: 34px; transition: transform .3s, box-shadow .3s, border-color .3s; }
.vb-tool:hover { transform: translateY(-4px); box-shadow: 0 20px 40px rgba(21,66,61,.1); border-color: var(--green); }
.vb-tool-ic { width: 54px; height: 54px; border-radius: 16px; background: var(--green); color: var(--lime); display: grid; place-items: center; margin-bottom: 20px; }
.vb-tool-ic.orange { background: var(--orange); color: var(--white); }
.vb-tool-ic svg { width: 26px; height: 26px; }
.vb-tool h3 { font-size: 1.4rem; margin-bottom: 8px; }
.vb-tool p { color: var(--muted); margin-bottom: 18px; }
.vb-tool-link { display: inline-flex; align-items: center; gap: 8px; color: var(--orange); font-weight: 600; }
.vb-tool-link svg { width: 18px; height: 18px; }
.vb-tools { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
@media (max-width: 760px) { .vb-tools { grid-template-columns: 1fr; } }
[data-grader] [hidden] { display: none !important; }
.vb-main, .vb-thread { min-height: 0; }
.ring.big .num { display: flex; align-items: center; justify-content: center; gap: 2px; }
.ring.big .num small { margin-top: 14px; }
