:root {
  color-scheme: dark;
  --bg: #0b1120;
  --panel: rgba(18, 27, 45, .88);
  --panel-border: rgba(158, 177, 211, .16);
  --text: #f3f6fc;
  --muted: #9aa9c2;
  --subtle: #71819e;
  --mint: #6ee7c0;
  --blue: #7c9cff;
  --purple: #c2a3ff;
}
* { box-sizing: border-box; }
body {
  margin: 0; min-height: 100vh; overflow-x: hidden;
  background: radial-gradient(ellipse at 50% 0%, #172644 0%, var(--bg) 47%, #090e19 100%);
  color: var(--text); font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}
.ambient { position: fixed; width: 360px; height: 360px; filter: blur(100px); opacity: .12; pointer-events: none; border-radius: 50%; }
.ambient-one { background: #557cff; top: 18%; left: -210px; }
.ambient-two { background: #52e5c0; right: -230px; bottom: 5%; }
.topbar { max-width: 1180px; padding: 27px 28px; margin: auto; display: flex; align-items: center; justify-content: space-between; position: relative; z-index: 1; }
.brand { display: flex; gap: 11px; align-items: center; color: var(--text); text-decoration: none; font-weight: 750; letter-spacing: -.5px; font-size: 17px; }
.brand-light { color: #94a6c4; font-weight: 500; }
.brand-mark { display: flex; gap: 3px; align-items: end; height: 22px; padding: 3px; }
.brand-mark span { display: block; width: 4px; border-radius: 4px; background: var(--mint); }
.brand-mark span:nth-child(1) { height: 9px; opacity: .7; }
.brand-mark span:nth-child(2) { height: 16px; }
.brand-mark span:nth-child(3) { height: 12px; opacity: .85; }
.model-pill { border: 1px solid var(--panel-border); border-radius: 99px; padding: 8px 12px; font-size: 11px; color: #c3cde0; letter-spacing: .3px; background: rgba(255,255,255,.025); }
.status-dot { display: inline-block; width: 6px; height: 6px; background: var(--mint); border-radius: 50%; margin-right: 7px; box-shadow: 0 0 9px #6ee7c080; }
.layout { max-width: 1080px; margin: 55px auto 65px; padding: 0 28px; display: grid; grid-template-columns: .92fr 1.08fr; align-items: start; gap: clamp(42px, 7vw, 95px); position: relative; z-index: 1; }
.intro { padding-top: 27px; }
.eyebrow { color: #9eb1d0; letter-spacing: 2px; font-size: 10px; font-weight: 750; display: flex; align-items: center; gap: 10px; }
.eyebrow-line { width: 24px; height: 1px; background: var(--mint); }
h1 { font-size: clamp(42px, 5vw, 62px); line-height: 1.07; letter-spacing: -3.5px; margin: 26px 0 22px; font-weight: 720; }
.gradient-text { background: linear-gradient(100deg, #7e9cff 5%, #b6a2ff 48%, #72e9c2 100%); -webkit-background-clip: text; background-clip: text; color: transparent; }
.intro-copy { max-width: 390px; color: var(--muted); line-height: 1.8; font-size: 14px; }
.class-legend { display: flex; gap: 18px; flex-wrap: wrap; margin-top: 31px; font-size: 11px; color: #bdc8dc; }
.class-legend span { display: flex; align-items: center; gap: 7px; }
.legend-dot { width: 7px; height: 7px; border-radius: 50%; display: inline-block; }
.negative { background: #ff8295; } .neutral { background: #f6c96b; } .positive { background: #6ee7c0; }
.note { margin-top: 75px; display: flex; align-items: flex-start; gap: 11px; max-width: 365px; color: #8291ab; font-size: 11px; line-height: 1.7; }
.note-icon { color: var(--mint); font-size: 17px; line-height: 1.2; }
.workspace { background: linear-gradient(145deg, rgba(22,33,54,.96), rgba(15,23,39,.96)); border: 1px solid var(--panel-border); border-radius: 19px; padding: 27px; box-shadow: 0 28px 90px #0003, inset 0 1px #ffffff08; backdrop-filter: blur(20px); }
.panel-heading { display: flex; justify-content: space-between; align-items: center; margin-bottom: 26px; }
.panel-kicker, .result-label { font-size: 9px; font-weight: 800; letter-spacing: 1.7px; color: #8da0c0; margin: 0 0 8px; }
h2 { font-size: 20px; margin: 0; letter-spacing: -.5px; }
.step-count { font-size: 11px; color: var(--mint); font-weight: 750; }
.step-count span { color: #657592; }
label { display: block; font-size: 12px; font-weight: 650; color: #d6deec; margin-bottom: 10px; }
.textarea-wrap { border: 1px solid #34425c; background: #0d1525; border-radius: 11px; transition: border-color .2s, box-shadow .2s; }
.textarea-wrap:focus-within { border-color: #7c9cff; box-shadow: 0 0 0 3px #7c9cff17; }
textarea { display: block; width: 100%; min-height: 150px; resize: vertical; background: transparent; border: 0; outline: 0; padding: 15px; font: inherit; font-size: 13px; color: #f0f4fb; line-height: 1.7; }
textarea::placeholder { color: #65748e; }
.input-footer { display: flex; justify-content: space-between; align-items: center; border-top: 1px solid #27344b; padding: 9px 13px; color: #73829b; font-size: 10px; }
.text-button { background: transparent; color: #9eafd0; border: 0; cursor: pointer; font: inherit; }
.text-button:hover { color: white; }
.examples { display: flex; align-items: center; flex-wrap: wrap; gap: 7px; margin: 17px 0 20px; }
.examples-label { font-size: 8px; letter-spacing: 1px; color: #71819e; font-weight: 800; margin-right: 3px; }
.example { border: 1px solid #34425b; border-radius: 6px; color: #b8c5dc; background: #ffffff04; padding: 6px 8px; font: inherit; font-size: 10px; cursor: pointer; }
.example:hover { border-color: #819cff; color: #eaf0ff; }
.primary-button { width: 100%; display: flex; justify-content: space-between; align-items: center; border: 0; border-radius: 9px; padding: 14px 16px; color: #0b1620; background: linear-gradient(100deg, #80a0ff, #8be8cc); font: inherit; font-size: 12px; font-weight: 800; cursor: pointer; transition: transform .15s, filter .15s; }
.primary-button:hover { filter: brightness(1.06); transform: translateY(-1px); }
.primary-button:disabled { opacity: .65; cursor: wait; transform: none; }
.button-arrow { font-size: 18px; }
.message { color: #f5c779; font-size: 11px; line-height: 1.6; margin-top: 12px; }
.message:empty { display: none; }
.result { margin-top: 24px; padding-top: 21px; border-top: 1px solid #2b3950; }
.hidden { display: none; }
.result-topline { display: flex; justify-content: space-between; align-items: center; }
.result-label { margin: 0; }
.result-badge { border-radius: 5px; padding: 5px 7px; background: #6ee7c01a; color: var(--mint); font-size: 8px; font-weight: 800; letter-spacing: 1px; }
.prediction-row { display: flex; align-items: end; justify-content: space-between; gap: 12px; margin: 18px 0 14px; }
.prediction-caption { margin: 0 0 5px; color: #91a0b8; font-size: 11px; }
h3 { margin: 0; font-size: 27px; letter-spacing: -.7px; text-transform: capitalize; }
.confidence { display: flex; flex-direction: column; align-items: end; gap: 3px; }
.confidence strong { font-size: 20px; color: var(--mint); }
.confidence span { font-size: 9px; color: #8493ac; }
.confidence-track { height: 5px; border-radius: 10px; background: #2c3950; overflow: hidden; }
#confidence-fill { width: 0; height: 100%; background: linear-gradient(90deg, #819cff, #6ee7c0); border-radius: inherit; transition: width .4s ease; }
.probability-heading { display: flex; justify-content: space-between; margin: 22px 0 13px; color: #d4ddec; font-size: 10px; font-weight: 650; }
.probability-heading span:last-child { color: #71819e; font-size: 8px; letter-spacing: 1px; }
.probability { display: grid; grid-template-columns: 76px 1fr 43px; align-items: center; gap: 10px; margin: 12px 0; font-size: 10px; }
.prob-label { color: #aab8ce; text-transform: capitalize; }
.prob-track { height: 5px; background: #2c3950; border-radius: 10px; overflow: hidden; }
.prob-fill { height: 100%; border-radius: inherit; background: #8aa4ff; }
.probability[data-label*="negative"] .prob-fill { background: #ff8295; }
.probability[data-label*="neutral"] .prob-fill { background: #f6c96b; }
.probability[data-label*="positive"] .prob-fill { background: #6ee7c0; }
.prob-value { color: #d5deed; text-align: right; font-variant-numeric: tabular-nums; }
.result-footnote { color: #7787a2; font-size: 10px; line-height: 1.6; margin: 18px 0 0; }
.panel-footer { border-top: 1px solid #28354b; margin-top: 24px; padding-top: 15px; color: #73829b; font-size: 9px; display: flex; align-items: center; gap: 8px; }
.footer-orb { width: 5px; height: 5px; border-radius: 50%; background: var(--mint); }
.page-footer { text-align: center; padding: 0 20px 25px; color: #566680; letter-spacing: 1.6px; font-size: 8px; position: relative; z-index: 1; }
.page-footer span { color: var(--mint); padding: 0 5px; }
@media (max-width: 800px) {
  .layout { grid-template-columns: 1fr; max-width: 590px; margin-top: 28px; gap: 32px; }
  .intro { padding-top: 0; }
  h1 { font-size: clamp(43px, 10vw, 58px); }
  .note { margin-top: 28px; }
  .workspace { padding: 23px; }
}
@media (max-width: 430px) {
  .topbar { padding: 20px 18px; }
  .model-pill { font-size: 9px; padding: 7px 8px; }
  .layout { padding: 0 16px; }
  .workspace { padding: 19px; }
  .class-legend { gap: 12px; }
  .examples-label { width: 100%; }
  .probability { grid-template-columns: 65px 1fr 39px; gap: 7px; }
}
