* { box-sizing: border-box; }
body {
  font-family: -apple-system, system-ui, sans-serif;
  margin: 0; padding: 0; background: #faf8f3; color: #222;
}
/* s177 b02 — de-gradiented to the staymulate_ds calm palette (warm #faf8f3 +
   charcoal ink + hairline + forest accent), matching the b16 learn pages and
   the owner portal. A legal/data-rights page reads calmer without a green slab. */
header {
  background: #faf8f3; color: #2b2b28; padding: 18px 20px;
  border-bottom: 1px solid #ece8dd;
}
header h1 { margin: 0; font-size: 20px; font-weight: 600; }
header .sub { font-size: 13px; color: #6c6c64; margin-top: 4px; }
header .brand-tag {
  margin-top: 8px; font-size: 11px; color: #4a6b3f;
  letter-spacing: 0.5px; text-transform: uppercase;
}

main { padding: 20px; max-width: 600px; margin: 0 auto; }

.intro {
  background: #fff; border-radius: 10px; padding: 16px;
  margin-bottom: 16px; box-shadow: 0 1px 3px rgba(0,0,0,0.08);
  font-size: 14px; line-height: 1.6; color: #444;
}
.intro h2 {
  font-size: 15px; color: #4a6b3f; margin: 0 0 8px;
  text-transform: uppercase; letter-spacing: 0.5px;
}
.rights-list {
  margin: 8px 0 0; padding-left: 18px; font-size: 13px; line-height: 1.7;
}

.field { margin-bottom: 16px; }
.field label {
  display: block; font-size: 13px; font-weight: 600; color: #444;
  margin-bottom: 4px;
}
.field input, .field select, .field textarea {
  width: 100%; padding: 10px 12px; border: 1px solid #ccc; border-radius: 8px;
  font-size: 14px; background: #fff; font-family: inherit;
}
.field textarea { resize: vertical; min-height: 100px; }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: #4a6b3f; box-shadow: 0 0 0 2px rgba(43,43,40,0.15);
}
.field .hint { font-size: 11px; color: #888; margin-top: 3px; }

.consent {
  font-size: 12px; color: #777; margin: 16px 0; line-height: 1.6;
  padding: 10px 12px; background: #f5f5f5; border-radius: 6px;
}

.submit-btn {
  width: 100%; padding: 14px; background: #4a6b3f; color: #fff;
  border: none; border-radius: 10px; font-size: 16px; font-weight: 700;
  cursor: pointer;
}
.submit-btn:active { background: #1f3a10; }
.submit-btn:disabled { background: #999; cursor: not-allowed; }

.success-msg {
  background: #e8f5e9; border-radius: 10px; padding: 24px;
  text-align: center; box-shadow: 0 1px 3px rgba(0,0,0,0.08);
}
.success-msg h2 { color: #4a6b3f; font-size: 20px; margin-bottom: 8px; }
.success-msg p { color: #555; font-size: 14px; line-height: 1.6; margin: 8px 0; }
.success-msg .ref-id {
  display: inline-block; background: #fff; padding: 8px 14px;
  border-radius: 6px; font-family: monospace; font-size: 13px;
  margin: 8px 0; color: #4a6b3f; font-weight: 600;
}

.error-toast {
  position: fixed; bottom: 20px; left: 50%; transform: translateX(-50%);
  background: #b71c1c; color: #fff; padding: 10px 20px; border-radius: 8px;
  font-size: 13px; display: none; z-index: 100; max-width: 90%;
}
.error-toast.show { display: block; }

footer {
  text-align: center; padding: 20px; font-size: 11px; color: #aaa;
  border-top: 1px solid #eee; margin-top: 30px;
}
footer a { color: #4a6b3f; }

.response-times { margin-top: 12px; font-size: 12px; line-height: 1.7; }

  /* Extracted utility classes (previously inline styles). */
  ._si1 { position:absolute;top:-40px;left:8px;background:#1f2937;color:#fff;padding:8px 14px;border-radius:0 0 8px 8px;font-size:13px;font-weight:600;z-index:9999;text-decoration:none; }
  ._si2 { margin-top:10px;font-size:11px; }
  ._si3 { color:rgba(255,255,255,0.85);text-decoration:underline;margin-right:10px; }
  ._si4 { color:rgba(255,255,255,0.85);text-decoration:underline; }
  ._si5 { margin-top:10px;padding:10px;background:#fef9e7;border-left:3px solid #f4d03f;font-size:13px;line-height:1.5;display:none; }
  ._si6 { display:none; }
  ._si7 { font-size:13px;color:#777;margin-top:14px; }

  /* s130 b16 — explicit per-market consent block per TC v9
     crit_dsr_market_specific_consent_missing. DPDP §6 + GDPR Art 6/7
     + Loi 25 §12-17 + UU PDP §15 require explicit consent BEFORE PII
     processing. Amber callout draws attention without being scary. */
  .dsr-explicit-consent {
    margin-top: 14px;
    padding: 10px;
    border: 1px solid #fbbf24;
    background: #fffbeb;
    border-radius: 6px;
    font-size: 13px;
  }
  .dsr-explicit-consent-label {
    display: flex;
    gap: 8px;
    align-items: flex-start;
    cursor: pointer;
  }
  .dsr-explicit-consent-check {
    margin-top: 3px;
  }
