/* Local fonts and tokens from LucasCampaignStyle.pdf; scoped to the generator. */
@font-face { font-family: "ODSG Archivo"; src: url("../fonts/Archivo.ttf") format("truetype"); font-style: normal; font-weight: 100 900; font-display: swap; }
@font-face { font-family: "ODSG Public Sans"; src: url("../fonts/PublicSans.ttf") format("truetype"); font-style: normal; font-weight: 100 900; font-display: swap; }
.odsg { --odsg-ink: #161a17; --odsg-text: #2e3430; --odsg-muted: #5f6862; --odsg-line: var(--ui-border); --odsg-paper: #faf9f5; --odsg-green: var(--ui-green); --odsg-hover: var(--ui-hover); --odsg-dark: var(--ui-forest); --odsg-tint: var(--ui-sage); --odsg-clay: #b8481f; box-sizing: border-box; width: 100%; min-width: 0; max-width: none; margin: 0; padding: 0; color: var(--odsg-text); background: transparent; border: 0; border-radius: 0; font: 16px/1.62 "ODSG Public Sans", "Public Sans", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif; text-align: left; }
.odsg *, .odsg *::before, .odsg *::after { box-sizing: border-box; }
.odsg [hidden] { display: none !important; }
.odsg h2, .odsg h3, .odsg p, .odsg fieldset, .odsg legend { padding: 0; margin: 0; color: inherit; font-family: inherit; }
.odsg .odsg-chris-info { margin: -8px 0 24px; padding: 18px; border: 1px solid #c6ddcd; border-radius: var(--ui-card-radius); background: var(--ui-selected); font-size: 14px; }
.odsg .odsg-chris-info h3 { font: 700 17px/1.35 "ODSG Archivo", sans-serif; color: var(--odsg-dark); }
.odsg .odsg-chris-info p { margin: 12px 0; }
.odsg .odsg-chris-info a { color: var(--ui-green); font-weight: 700; text-decoration: underline; }
.odsg .odsg-layout { display: grid; grid-template-columns: minmax(0, 1.08fr) minmax(0, 1fr); gap: clamp(24px, 4vw, 48px); align-items: start; }
.odsg .odsg-controls { min-width: 0; }
.odsg .odsg-step { min-width: 0; margin: 0 0 25px; padding: 0 0 25px; border: 0; border-bottom: 1px solid var(--odsg-line); }
.odsg .odsg-step:last-child { padding-bottom: 0; margin-bottom: 0; border-bottom: 0; }
.odsg .odsg-step h3, .odsg .odsg-step legend { display: flex; align-items: center; gap: 10px; float: none; width: 100%; margin: 0 0 10px; font-size: 16px; font-weight: 750; line-height: 1.4; }
.odsg .odsg-step > p { margin: 7px 0 14px; color: var(--odsg-muted); font-size: 14px; }
.odsg .odsg-number { display: inline-grid; place-items: center; flex: 0 0 26px; width: 26px; height: 26px; border-radius: 50%; border: 1px solid var(--odsg-line); font-size: 14px; }
.odsg .odsg-options { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.odsg .odsg-option { position: relative; display: block; margin: 0; cursor: pointer; }
.odsg .odsg-option > input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.odsg .odsg-option-content { position: relative; display: flex; height: 100%; padding: 8px 8px 12px; flex-direction: column; align-items: center; gap: 9px; border: 2px solid var(--odsg-line); border-radius: var(--ui-card-radius); text-align: center; font-size: 14px; font-weight: 650; line-height: 1.35; overflow-wrap: anywhere; }
.odsg .odsg-option canvas { display: block; width: 100%; max-width: 98px; height: auto; border-radius: 50%; }
.odsg .odsg-option input:checked + .odsg-option-content { border-color: var(--odsg-green); background: var(--ui-selected); }
.odsg .odsg-option input:focus-visible + .odsg-option-content { outline: 3px solid var(--ui-green); outline-offset: 3px; }
.odsg .odsg-check { position: absolute; top: 5px; right: 5px; display: none; width: 19px; height: 19px; border-radius: 50%; color: white; background: var(--odsg-green); font-size: 14px; line-height: 19px; }
.odsg .odsg-option input:checked + .odsg-option-content .odsg-check { display: block; }
.odsg .odsg-file-label { display: block; margin: 15px 0 6px; font-size: 14px; font-weight: 650; }
.odsg .odsg-file { display: block; width: 100%; min-width: 0; padding: 10px; color: var(--odsg-muted); background: #fff; border: 1px solid var(--ui-input-border); border-radius: var(--ui-input-radius); font: inherit; font-size: 14px; }
.odsg .odsg-file::file-selector-button { margin-right: 9px; padding: 9px 10px; border: 1px solid var(--odsg-green); border-radius: 5px; background: white; color: var(--odsg-ink); font: inherit; font-weight: 650; cursor: pointer; }
.odsg .odsg-help { color: var(--odsg-muted); font-size: 14px; line-height: 1.6; }
.odsg .odsg-zoom-row { display: flex; justify-content: space-between; margin: 17px 0 4px; font-size: 14px; font-weight: 600; }
.odsg .odsg-zoom { display: block; width: 100%; height: 30px; margin: 0 0 8px; accent-color: var(--odsg-green); cursor: pointer; }
.odsg .odsg-adjust-row { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 8px; }
.odsg .odsg-guide-label { display: flex; align-items: center; gap: 6px; min-height: var(--ui-control-height); font-size: 14px; cursor: pointer; }
.odsg input[type="checkbox"] { width: 17px; height: 17px; accent-color: var(--odsg-green); }
.odsg .odsg-button { display: inline-flex; justify-content: center; align-items: center; gap: 12px; min-height: var(--ui-control-height); margin: 0; padding: 12px 17px; border: 1px solid var(--odsg-green); border-radius: var(--ui-card-radius); background: var(--odsg-green); color: #fff; box-shadow: none; font: inherit; font-size: 14px; font-weight: 700; line-height: 1.4; text-decoration: none; text-transform: none; letter-spacing: 0; cursor: pointer; }
.odsg .odsg-button:hover { background: var(--odsg-hover); color: white; }
.odsg .odsg-button-quiet { min-height: var(--ui-control-height); padding: 8px 10px; border-color: var(--odsg-green); background: transparent; color: var(--odsg-ink); font-size: 14px; }
.odsg .odsg-button-quiet:hover { color: var(--odsg-ink); background: var(--odsg-tint); }
.odsg button:disabled, .odsg input:disabled { opacity: .48; cursor: not-allowed; }
.odsg :is(button, a, input, canvas):focus-visible { outline: 3px solid var(--ui-green); outline-offset: 4px; }
.odsg .odsg-generate { width: 100%; }
.odsg .odsg-generate svg { margin-left: auto; flex-shrink: 0; }
.odsg .odsg-reset { display: block; min-height: var(--ui-control-height); margin: 10px auto 0; padding: 8px 12px; border: 0; background: none; box-shadow: none; color: var(--odsg-muted); font: inherit; font-size: 14px; text-decoration: underline; cursor: pointer; }
.odsg .odsg-preview-panel { position: sticky; top: 25px; min-width: 0; padding: 20px; border: 1px solid var(--odsg-line); border-radius: var(--ui-card-radius); background: #fff; }
.odsg .odsg-canvas-wrap { position: relative; width: 100%; aspect-ratio: 1; }
.odsg .odsg-canvas { display: block; width: 100%; height: auto; border-radius: 2px; touch-action: pan-y; }
.odsg.odsg-has-photo .odsg-canvas { cursor: grab; touch-action: none; }
.odsg.odsg-dragging .odsg-canvas { cursor: grabbing; }
.odsg .odsg-safe-circle { position: absolute; inset: 1%; border: 2px dashed rgba(255,255,255,.95); border-radius: 50%; box-shadow: 0 0 0 1px rgba(0,0,0,.25), inset 0 0 0 1px rgba(0,0,0,.25); pointer-events: none; }
.odsg .odsg-empty-hint { position: absolute; top: 57%; left: 0; width: 100%; color: var(--odsg-muted); text-align: center; font-size: clamp(10px, 1.4vw, 14px); pointer-events: none; }
.odsg .odsg-preview-panel > .odsg-help { margin-top: 16px; }
.odsg .odsg-output-note { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 6px; margin-top: 18px; padding-top: 14px; border-top: 1px solid var(--odsg-line); color: var(--odsg-muted); font-size: 14px; }
.odsg .odsg-message { margin: 12px 0; padding: 10px 12px; border: 1px solid #bed4c2; border-radius: 7px; color: var(--odsg-dark); background: var(--ui-selected); font-size: 14px; overflow-wrap: anywhere; }
.odsg .odsg-result { display: flex; align-items: center; gap: 12px; margin-top: 16px; }
.odsg .odsg-result-image { width: 96px; height: 96px; border-radius: 5px; }
.odsg .odsg-result .odsg-help { margin-top: 8px; }
.odsg .odsg-tool-footer { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px; margin-top: 36px; padding-top: 18px; border-top: 1px solid var(--odsg-line); color: var(--odsg-muted); font-size: 14px; }
.odsg.odsg-compact .odsg-layout { display: flex; flex-direction: column; gap: 24px; }
.odsg.odsg-compact .odsg-controls, .odsg.odsg-compact .odsg-preview-panel { width: 100%; }
.odsg.odsg-compact .odsg-preview-panel { position: static; padding: 14px; max-width: 420px; margin: 18px auto; }
.odsg.odsg-compact .odsg-empty-hint { font-size: 14px; }
@media (max-width: 720px) {
  .odsg .odsg-layout { display: flex; flex-direction: column; gap: 24px; }
  .odsg .odsg-controls, .odsg .odsg-preview-panel { width: 100%; }
  .odsg .odsg-preview-panel { position: static; padding: 14px; max-width: 420px; align-self: center; }
  .odsg .odsg-empty-hint { font-size: 14px; }
}

/* Campaign controls: pill actions, compact cards, clay focus, and restrained motion. */
.odsg .odsg-step h3, .odsg .odsg-step legend { color: var(--odsg-ink); font-family: "ODSG Archivo", "Archivo", sans-serif; font-size: 20px; font-weight: 700; }
.odsg .odsg-number { border-radius: 6px; border: 0; background: var(--odsg-tint); color: var(--odsg-dark); width: 32px; height: 32px; flex-basis: 32px; }
.odsg .odsg-button, .odsg .odsg-file::file-selector-button { border-radius: var(--ui-action-radius); }
.odsg .odsg-file::file-selector-button { min-height: var(--ui-control-height); padding: 10px 16px; }
.odsg .odsg-button { font-size: 15px; font-weight: 600; letter-spacing: .005em; transition: background-color 180ms ease-out, transform 180ms ease-out; }
.odsg .odsg-button-quiet { font-size: 15px; color: var(--odsg-dark); }
.odsg .odsg-option-content { background: #fff; border-width: 1px; }
.odsg .odsg-option input:checked + .odsg-option-content { box-shadow: inset 0 0 0 1px var(--odsg-green); }
.odsg .odsg-check { background: var(--odsg-green); }
.odsg .odsg-zoom { height: 36px; }
.odsg .odsg-result { flex-wrap: wrap; }
.odsg .odsg-message[data-tone="error"] { border-color: #a62d15; color: #a62d15; background: #fff5f1; }
.odsg .odsg-message[data-tone="warning"] { border-color: var(--odsg-clay); color: #743418; background: #fff8f3; }

.odsg .odsg-file { border-radius: var(--ui-input-radius); }
