/* Feedback Classifier — page-specific styles. Uses the site tokens from style.css. */
:root {
  --friction: #b5452f;   /* semantic colours for labels and sentiment; separate from the accent */
  --request:  #2f5fa8;
  --job:      #6b5a2a;
  --need:     #7a3f8f;
  --neg:      #c4553f;
  --mixed:    #c9a23a;
  --pos:      #3f8a5c;
  --neu:      #9aa0a6;
}

.privacy-note { display: inline-flex; align-items: center; gap: 10px; font-size: 0.95rem; color: var(--ink-soft); margin-top: 1.6em; }
.privacy-note .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); flex: none; }

.tool-step + .tool-step { margin-top: clamp(40px, 6vw, 64px); }
.small { font-size: 0.88rem; }
.error { color: var(--friction); font-size: 0.95rem; margin-top: 1em; }

/* step 1 */
.dropzone {
  border: 1.5px dashed #c5cac9; border-radius: var(--radius); background: var(--bg);
  padding: clamp(32px, 6vw, 56px) 24px; text-align: center; cursor: pointer;
  transition: border-color .15s ease, background .15s ease;
}
.dropzone:hover, .dropzone.over, .dropzone:focus-visible { border-color: var(--accent); background: #fbfcfb; outline: none; }
.dz-title { font-size: 1.1rem; margin: 0 0 0.3em; }
.dz-sub { margin: 0; font-size: 0.92rem; }
.link, .linkbtn { color: var(--accent); text-decoration: underline; text-underline-offset: 3px; }
.linkbtn { background: none; border: 0; padding: 0; font: inherit; cursor: pointer; }
.sample-row { margin: 1.1em 0 0.4em; font-size: 0.95rem; color: var(--ink-soft); }
.lang-row { display: flex; flex-wrap: wrap; gap: 8px; margin: 0.6em 0 0; }
.lang { font-size: 0.78rem; letter-spacing: 0.04em; padding: 3px 10px; border-radius: 999px; border: 1px solid var(--line); }
.lang.on { border-color: var(--accent); color: var(--accent); }
.lang.off { color: #a7acb1; background: transparent; }

/* step 2 */
.setup-grid { display: grid; gap: 24px; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); align-items: start; }
select {
  width: 100%; padding: 11px 12px; font: inherit; font-size: 0.97rem; color: var(--ink);
  border: 1px solid var(--line); border-radius: var(--radius); background: var(--bg); margin-bottom: 8px;
}
select:focus { outline: 2px solid var(--accent); outline-offset: 1px; }
.estimate p { color: var(--ink); margin: 0 0 0.5em; font-size: 0.97rem; }
.estimate p.muted { color: var(--ink-soft); }
.preview { margin-top: 24px; display: grid; gap: 8px; }
.preview .pv { background: var(--bg); border: 1px solid var(--line); border-radius: var(--radius); padding: 10px 14px; font-size: 0.93rem;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.preview .pv-label { font-size: 0.75rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink-soft); }

/* step 3 */
.run-status { font-size: 1.1rem; margin-bottom: 0.8em; }
.bar { height: 10px; background: #e9ebe8; border-radius: 999px; overflow: hidden; }
.bar span { display: block; height: 100%; width: 0; background: var(--accent); transition: width .3s ease; }
.confirm { margin-top: 24px; }
.confirm p { color: var(--ink); margin: 0; font-size: 1rem; }

/* step 4 */
.summary { grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); margin: 1.6em 0 24px; }
.stat { border: 1px solid var(--line); border-radius: var(--radius); background: var(--bg); padding: 20px 22px; border-top: 3px solid var(--c); }
.stat .stat-head { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; }
.stat .stat-name { font-weight: 600; }
.stat .stat-num { font-family: var(--font-serif); font-size: 2.2rem; line-height: 1.1; margin: 0.25em 0 0.1em; font-variant-numeric: tabular-nums; }
.stat .stat-sub { color: var(--ink-soft); font-size: 0.88rem; margin: 0; }
.badge { font-size: 0.68rem; letter-spacing: 0.08em; text-transform: uppercase; padding: 2px 7px; border-radius: 4px; vertical-align: 2px; font-family: var(--font-sans); font-weight: 500; }
.badge.ready { background: #e3efe9; color: var(--accent); }
.badge.beta { background: #f4ecd9; color: #7a5a14; }

.sentiment h3 { margin-bottom: 0.8em; }
.stack { display: flex; height: 14px; border-radius: 999px; overflow: hidden; background: #e9ebe8; }
.stack span { display: block; height: 100%; }
.legend { display: flex; flex-wrap: wrap; gap: 6px 18px; margin-top: 12px; font-size: 0.9rem; color: var(--ink-soft); font-variant-numeric: tabular-nums; }
.legend i { display: inline-block; width: 10px; height: 10px; border-radius: 2px; margin-right: 6px; vertical-align: 0; }

.quotes-grid { display: grid; gap: 28px 32px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr)); margin-top: 32px; }
.qcol h3 { display: flex; align-items: center; gap: 8px; border-bottom: 2px solid var(--c); padding-bottom: 8px; }
.qcol ul { list-style: none; margin: 0; padding: 0; }
.qcol li { padding: 10px 0; border-bottom: 1px solid var(--line); font-size: 0.95rem; min-width: 0; overflow-wrap: anywhere; }
.qcol li .row-ref { color: var(--ink-soft); font-size: 0.8rem; margin-left: 6px; white-space: nowrap; }
.qcol .none { color: var(--ink-soft); font-size: 0.93rem; padding: 10px 0; }

.table-title { margin-top: 40px; }
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); background: var(--bg); margin-top: 12px; }
table { border-collapse: collapse; width: 100%; font-size: 0.92rem; }
th, td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--line); vertical-align: top; }
th { font-weight: 600; font-size: 0.8rem; letter-spacing: 0.04em; color: var(--ink-soft); background: var(--bg-soft); }
tr:last-child td { border-bottom: 0; }
td.num { color: var(--ink-soft); font-variant-numeric: tabular-nums; width: 3em; }
td.txt { min-width: 260px; max-width: 520px; }
td.txt div { display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.chip { display: inline-block; font-size: 0.74rem; padding: 2px 8px; border-radius: 999px; margin: 0 4px 4px 0; color: #fff; background: var(--c); white-space: nowrap; }
.chip.soft { background: transparent; color: var(--c); border: 1px solid var(--c); }

.quality td, .quality th { font-variant-numeric: tabular-nums; }
.defs dt { font-weight: 600; margin-top: 1em; }
.defs dd { margin: 0.2em 0 0; color: var(--ink-soft); }

/* work-in-progress banner */
.wip-banner { background: #f4ecd9; border-bottom: 1px solid #e3d3a8; color: #4d3a0c; padding: 18px 0; }
.wip-banner .wrap { display: flex; flex-wrap: wrap; align-items: baseline; gap: 10px 16px; }
.wip-banner p { margin: 0; flex: 1 1 320px; font-size: 0.97rem; color: inherit; }
.wip-tag { font-size: 0.72rem; letter-spacing: 0.1em; text-transform: uppercase; font-weight: 600;
  background: #7a5a14; color: #fff; padding: 4px 10px; border-radius: 4px; white-space: nowrap; }
