/* CSV AutoML lite. Page styles on top of the shared theme.css. Built by Suman Mukherjee. */
.masthead h1 { max-width: 24ch; }
.first-action { margin-top: 20px; }
.big-btn { min-height: 48px; padding: 13px 20px; font-size: 16px; }
.privacy { margin: 12px 0 0; color: var(--ink-2); max-width: 70ch; }

.headline { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px 32px; margin: 4px 0 10px; }
.hl { display: flex; align-items: center; gap: 18px; padding: 12px 0; border-top: 2px solid var(--ink); min-width: 0; }
.hl p { margin: 0; color: var(--ink-2); max-width: 44ch; min-width: 0; }
.hl p b { color: var(--ink); font-size: 1.15em; }
.hl .stamp.big { flex: none; font-size: clamp(16px, 2.4vw, 24px); padding: 6px 12px 4px; border-width: 4px; }
#h-agree.err { color: var(--deny); }
code { overflow-wrap: anywhere; }

.drop { border: 2px dashed var(--rule); border-radius: var(--radius); background: var(--sheet); padding: 18px 16px; margin-bottom: 14px; }
.drop p { margin: 0; display: flex; flex-wrap: wrap; gap: 8px 10px; align-items: center; }
.drop.over { border-color: var(--cobalt); background: var(--cobalt-wash); }
.setup-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px 24px; max-width: 760px; }
.setup-grid select { min-height: 46px; }
#task-note { margin: 8px 0; }
#dropped-cols { margin: 8px 0 12px; display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
#dropped-cols .btn { min-height: 40px; }

.progress { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; margin: 16px 0; }
.progress progress { width: min(320px, 100%); height: 14px; accent-color: var(--cobalt); }

#results { margin-top: 10px; }
.rh { margin: 28px 0 8px; font-size: 18px; }
.rh .small { font-weight: 500; }
.guards { list-style: none; margin: 0; padding: 0; display: grid; gap: 0; border-top: 2px solid var(--ink); }
.guards li { display: grid; grid-template-columns: 84px minmax(0, 1fr); gap: 12px; align-items: start; padding: 12px 0; border-bottom: 1px solid var(--rule-2); }
.guards li .stamp { justify-self: start; margin-top: 2px; }
.guards li div { min-width: 0; overflow-wrap: anywhere; }
.guards .btn-row { margin-top: 8px; }
.guards .btn.sm { min-height: 44px; }
#left-out { overflow-wrap: anywhere; }

.table-scroll { max-width: 100%; border: 1px solid var(--rule-2); border-radius: var(--radius); background: var(--sheet); }
table.data { min-width: 420px; }
table.data tr.chosen td { background: var(--allow-wash); font-weight: 650; }
table.data td .stamp { white-space: nowrap; }
table.conf td.diag { color: var(--allow); font-weight: 700; }
table.conf td.off { color: var(--deny); font-weight: 700; background: var(--deny-wash); }
table.conf th[scope="row"] { font-weight: 650; color: var(--ink); border-bottom: 1px solid var(--rule-2); text-align: left; padding: 9px 10px; }
.barcol { width: 34%; min-width: 110px; }
.bar { display: block; height: 10px; background: var(--rule-2); border-radius: 2px; overflow: hidden; margin-top: 6px; }
.bar .fill { display: block; height: 100%; width: 0; background: var(--cobalt); }
#reading p { margin: 0 0 8px; }
.snippet { background: var(--sheet); border: 1px solid var(--rule); border-radius: var(--radius); padding: 12px 14px; overflow: auto; max-height: 340px; font-size: 12.5px; line-height: 1.5; white-space: pre; }

.why { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: calc(var(--gap) * 1.4); }
.limits { border-top: 2px solid var(--ink); padding-top: 10px; }
.limits ul { padding-left: 18px; margin: 0; display: grid; gap: 6px; }

@media (max-width: 860px) {
  .headline, .why, .setup-grid { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 480px) {
  .hl { flex-direction: column; align-items: flex-start; gap: 10px; }
  .guards li { grid-template-columns: minmax(0, 1fr); gap: 6px; }
  .first-action .btn { flex: 1 1 100%; justify-content: center; }
  .steps li { border-right: 0; padding-left: 0 !important; border-bottom: 1px solid var(--rule); }
}
