/* apply/public/app.css — Bondi brand by default; [data-brand="tpc"] switches to The Produce Counter. */
:root {
  color-scheme: light;
  --bg: #f3f5f6;
  --surface: #ffffff;
  --ink: #131d22;
  --ink-2: #314c59;
  --muted: #5a6e78;
  --line: #d0d5d8;
  --line-strong: #bac2c6;
  --accent: #087658;
  --accent-ink: #06694e;
  --accent-wash: #e8f5ee;
  --accent-soft: #68a57f;
  --error: #dc2626;
  --focus: #087658;
  --radius: 8px;
  --display: 'Poppins', 'Segoe UI', Arial, sans-serif;
  --body: 'Poppins', 'Segoe UI', system-ui, sans-serif;
  --headline: var(--display);
}
body[data-brand='tpc'] {
  --bg: #f6f5f5;
  --ink: #000000;
  --ink-2: #1f1f1f;
  --muted: #555555;
  --line: #d6d4d4;
  --line-strong: #000000;
  --accent: #ff0018;
  --accent-ink: #000000;
  --accent-wash: #ffffff;
  --accent-soft: #000000;
  --focus: #ff0018;
  --radius: 0;
  --display: 'Archivo Narrow', 'Arial Narrow', sans-serif;
  --body: 'Archivo Narrow', 'Arial Narrow', sans-serif;
  --headline: 'League Gothic', 'Arial Narrow', sans-serif;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 15px/1.55 var(--body);
}
button,
input,
select,
textarea {
  font: inherit;
  color: inherit;
}
:focus-visible {
  outline: 2px solid var(--focus);
  outline-offset: 2px;
}
.top {
  background: var(--surface);
  border-bottom: 1px solid var(--line);
}
body[data-brand='tpc'] .top {
  border-bottom: 6px solid var(--ink);
}
.top-in {
  max-width: 980px;
  margin: 0 auto;
  padding: 16px;
  display: flex;
  gap: 16px;
  align-items: center;
  flex-wrap: wrap;
}
.logo {
  height: 56px;
  width: auto;
  max-width: 100%;
}
body[data-brand='tpc'] .logo {
  height: 36px;
}
.top-meta {
  margin-left: auto;
  text-align: right;
  font-size: 13px;
  color: var(--muted);
}
.top-meta b {
  color: var(--ink);
  font-weight: 600;
}
#app {
  max-width: 980px;
  margin: 0 auto;
  padding: 20px 16px 80px;
}
.status {
  font-size: 13px;
  color: var(--muted);
  margin: 0 0 12px;
  min-height: 20px;
}
.stepper {
  display: flex;
  gap: 4px;
  overflow-x: auto;
  margin-bottom: 16px;
}
.stepper button {
  border: 1px solid transparent;
  background: none;
  padding: 7px 11px;
  border-radius: var(--radius);
  white-space: nowrap;
  font-size: 13px;
  color: var(--muted);
  cursor: pointer;
}
.stepper button[aria-current='step'] {
  background: var(--surface);
  border-color: var(--line-strong);
  color: var(--ink);
  font-weight: 600;
}
.panel {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 12px;
}
body[data-brand='tpc'] .panel {
  border: 1px solid var(--ink);
  border-top: 8px solid var(--ink);
  border-radius: 0;
}
.panel-head {
  padding: 20px 24px 14px;
  border-bottom: 1px solid var(--line);
}
.panel-head h1 {
  margin: 0;
  font: 700 20px/1.2 var(--headline);
}
body[data-brand='tpc'] .panel-head h1 {
  font: 400 38px/1 var(--headline);
  text-transform: uppercase;
}
.panel-head p {
  margin: 6px 0 0;
  color: var(--muted);
  font-size: 13.5px;
}
.panel-body {
  padding: 22px 24px;
}
.section {
  border-top: 1px solid var(--line);
  margin-top: 22px;
  padding-top: 20px;
}
.section:first-child {
  border-top: 0;
  margin-top: 0;
  padding-top: 0;
}
.section-title {
  display: block;
  margin: 0 0 12px;
  padding-bottom: 6px;
  border-bottom: 1px solid var(--accent-soft);
  color: var(--accent);
  font: 600 12px/1.3 var(--display);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
body[data-brand='tpc'] .section-title {
  border-bottom: 2px solid var(--ink);
  font-weight: 700;
}
.fields {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 14px;
}
.f {
  display: flex;
  flex-direction: column;
  gap: 5px;
  grid-column: span 6;
  min-width: 0;
}
.w3 {
  grid-column: span 3;
}
.w4 {
  grid-column: span 4;
}
.w6 {
  grid-column: span 6;
}
.w8 {
  grid-column: span 8;
}
.w12 {
  grid-column: span 12;
}
.f label {
  font-size: 12px;
  font-weight: 600;
  color: var(--ink-2);
}
.req {
  color: var(--error);
  margin-left: 2px;
}
.f input,
.f select,
.f textarea {
  width: 100%;
  padding: 9px 11px;
  border: 1px solid var(--line-strong);
  border-radius: 7px;
  background: var(--surface);
}
body[data-brand='tpc'] .f input,
body[data-brand='tpc'] .f select,
body[data-brand='tpc'] .f textarea {
  border-radius: 0;
}
.f.chk {
  flex-direction: row;
  align-items: center;
  gap: 8px;
}
.f.chk input {
  width: auto;
}
.hint {
  font-size: 12px;
  color: var(--muted);
}
.hint.error,
.field-error {
  color: var(--error);
  font-size: 12px;
}
.sensitive .saved {
  display: flex;
  gap: 8px;
  align-items: center;
  font-family: ui-monospace, Consolas, monospace;
  font-size: 14px;
}
.notice-box {
  border: 1px solid var(--accent);
  background: var(--accent-wash);
  border-radius: 10px;
  padding: 12px 14px;
  font-size: 13px;
  color: var(--accent-ink);
  margin-bottom: 14px;
}
.repeat-item {
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 14px;
  margin-bottom: 12px;
}
.repeat-head {
  display: flex;
  align-items: center;
  margin-bottom: 10px;
  font-weight: 600;
}
.repeat-head .btn {
  margin-left: auto;
}
.choices {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}
.choice {
  display: block;
  position: relative;
  border: 1.5px solid var(--line-strong);
  border-radius: 11px;
  padding: 16px 16px 16px 44px;
  cursor: pointer;
}
.choice input {
  position: absolute;
  left: 16px;
  top: 18px;
}
.choice.on {
  border-color: var(--accent);
  background: var(--accent-wash);
}
.choice h3 {
  margin: 0 0 3px;
  font: 600 15px/1.3 var(--display);
}
body[data-brand='tpc'] .choice h3 {
  font: 400 24px/1.05 var(--headline);
  text-transform: uppercase;
}
.choice p {
  margin: 0;
  font-size: 12.5px;
  color: var(--muted);
}
.legal {
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 16px;
  max-height: 260px;
  overflow-y: auto;
  font-size: 13px;
  color: var(--ink-2);
}
.legal h4 {
  margin: 14px 0 4px;
  font: 700 12px/1.3 var(--display);
  text-transform: uppercase;
  color: var(--ink);
}
.legal h4:first-child {
  margin-top: 0;
}
.sigpad {
  position: relative;
  height: 120px;
  border: 1.5px solid var(--line-strong);
  border-radius: 9px;
  background: var(--surface);
  touch-action: none;
}
.sigpad canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  cursor: crosshair;
}
.sig-row {
  display: flex;
  gap: 8px;
  margin-top: 6px;
  align-items: center;
}
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}
.sign-block {
  min-width: 0;
  margin: 0;
  padding: 10px 14px 14px;
  border: 1.5px solid var(--line-strong);
  border-radius: var(--radius);
}
.sign-block legend {
  padding: 0 6px;
  font-size: 13px;
  font-weight: 600;
  color: var(--ink-2);
}
.sign-block .fields {
  margin-top: 12px;
}
.sig-label {
  display: block;
  margin-bottom: 4px;
  font-size: 13px;
  font-weight: 600;
  color: var(--ink-2);
}
.nav {
  display: flex;
  gap: 10px;
  align-items: center;
  margin-top: 22px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
  flex-wrap: wrap;
}
.nav .spacer {
  flex: 1;
}
.btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 9px 16px;
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  background: var(--surface);
  font-weight: 600;
  cursor: pointer;
}
.btn-primary {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}
body[data-brand='tpc'] .btn {
  border-radius: 0;
}
body[data-brand='tpc'] .btn-primary {
  background: var(--ink);
  border-color: var(--ink);
}
.btn-small {
  padding: 5px 10px;
  font-size: 12.5px;
}
.btn[disabled] {
  opacity: 0.5;
  cursor: not-allowed;
}
.errors {
  border: 1px solid var(--error);
  border-radius: 10px;
  padding: 12px 14px;
  margin-bottom: 14px;
}
.errors ul {
  margin: 6px 0 0;
  padding-left: 18px;
}
.notice {
  max-width: 640px;
  margin: 48px auto;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 24px;
}
@media (max-width: 720px) {
  .fields .f,
  .w3,
  .w4,
  .w6,
  .w8 {
    grid-column: span 12;
  }
  .choices {
    grid-template-columns: 1fr;
  }
  .top-meta {
    margin-left: 0;
    text-align: left;
  }
  .panel-body,
  .panel-head {
    padding-left: 16px;
    padding-right: 16px;
  }
}

/* Plan 6 Task 4: resume notice and session banner. [hidden] must win over any display rule. */
[hidden] {
  display: none !important;
}
.resume-note .btn {
  margin-left: 4px;
}
.session-banner {
  border: 1.5px solid var(--error);
  background: var(--surface);
  border-radius: 10px;
  padding: 12px 14px;
  margin-bottom: 14px;
  font-size: 13px;
}
.session-banner p {
  margin: 0 0 8px;
}
.session-banner p:last-child {
  margin-bottom: 0;
}
