/* Shared visual language with the Cardano DevX tooling survey. */
:root { font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; color: #13222b; background: #131a24; font-size: 16px; line-height: 1.6; font-synthesis: none; text-rendering: optimizeLegibility; color-scheme: light; }
* { box-sizing: border-box; }
body { margin: 0; min-width: 320px; min-height: 100vh; background-color: #131a24; background-image: linear-gradient(rgba(234,248,255,.025) 1px,transparent 1px),linear-gradient(90deg,rgba(234,248,255,.025) 1px,transparent 1px); background-size: 32px 32px; }
.topbar { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 1rem; min-height: 4.25rem; padding: 0 2rem; border-bottom: 1px solid rgba(234,248,255,.08); background: #080f17; }
.brand { display: inline-flex; align-items: center; gap: .65rem; width: fit-content; color: #eff5f7; text-decoration: none; font-size: .9rem; }
.brand img { display: block; }
.brand strong { font-weight: 750; }
.topbar-context { color: #94a4ae; font-size: .78rem; letter-spacing: .02em; }
.status-chip { justify-self: end; padding: .25rem .6rem; border: 1px solid #284b5c; border-radius: 20px; color: #8cdef8; background: #10232e; font-size: .7rem; text-transform: uppercase; letter-spacing: .08em; }
.workspace { display: grid; grid-template-columns: 18.5rem minmax(0,1fr); width: min(calc(100% - 3rem),76rem); margin: 2rem auto; border: 1px solid rgba(234,248,255,.14); border-radius: 1rem; overflow: hidden; background: #101923; box-shadow: 0 2.5rem 7rem rgba(0,0,0,.32); }
.intro { padding: 2rem 1.65rem; border-right: 1px solid rgba(234,248,255,.1); color: #eaf8ff; }
.eyebrow { color: #75d7f7; font-size: .68rem; font-weight: 650; letter-spacing: .13em; text-transform: uppercase; margin: 0 0 1rem; }
h1 { font-size: clamp(1.8rem,3vw,2.35rem); font-weight: 550; letter-spacing: -.04em; line-height: 1.06; margin: 0; }
.lede { color: #94a4ae; font-size: .85rem; line-height: 1.6; margin: 1rem 0 0; }
.meta { color: #b1c0c8; font-size: .76rem; margin: 1.6rem 0 1rem; }
.meta span { display: block; }
.section-links { display: grid; gap: .3rem; padding-top: 1rem; border-top: 1px solid #2a343e; }
.section-links a { display: flex; gap: .7rem; padding: .5rem .2rem; color: #acbdc6; font-size: .78rem; text-decoration: none; border-radius: 4px; }
.section-links a:hover { background: #1b2b37; color: #eaf8ff; }
.section-links a span { color: #75d7f7; font: .7rem/1.8 ui-monospace,monospace; }
.session-note { margin: 2rem 0 0; padding-top: 1rem; border-top: 1px solid #2a343e; color: #94a4ae; font-size: .73rem; }
.session-note strong { display: block; margin-bottom: .3rem; color: #dbe5e9; font-weight: 600; }
.survey-panel { min-width: 0; background: #fff; }
.panel-header { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 4.2rem; padding: .85rem 1.5rem; background: #182630; }
.panel-header > div { display: grid; gap: .2rem; }
.panel-header span { color: #9cafb9; font-size: .65rem; letter-spacing: .07em; text-transform: uppercase; }
.panel-header strong { color: #eaf8ff; font-size: .86rem; font-weight: 600; }
.panel-content { padding: 1.5rem clamp(1.5rem,4vw,3rem) 0; }
section { padding: 1.8rem 0 2rem; border-bottom: 1px solid #d4d9d1; scroll-margin-top: 1rem; }
section:last-child { border-bottom: 0; }
h2 { color: #001d3e; font-size: 1rem; font-weight: 600; line-height: 1.6; margin: 0 0 1rem; }
h2 > span { color: #697a84; font-size: .8rem; font-weight: 400; margin-left: .4rem; }
p { margin: 0 0 1rem; }
label { display: block; color: #001d3e; font-size: .9rem; font-weight: 550; margin: 1.1rem 0 .45rem; }
label > span { color: #697a84; font-size: .8rem; font-weight: 400; margin-left: .3rem; }
input:not([type=checkbox]), select, textarea { width: 100%; border: 1px solid #c3cdc6; border-radius: 6px; padding: .75rem 1rem; background: #fff; color: #13222b; font: inherit; min-height: 48px; }
select { appearance: none; padding-right: 2.5rem; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='none' viewBox='0 0 16 16'%3E%3Cpath d='m4 6 4 4 4-4' stroke='%2353616d' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E"); background-position: right .85rem center; background-repeat: no-repeat; background-size: 16px; }
textarea { resize: vertical; }
input::placeholder, textarea::placeholder { color: #71808a; }
:focus-visible { outline: 2px solid #487fff; outline-offset: 3px; }
input:not([type=checkbox]):focus-visible, select:focus-visible, textarea:focus-visible { outline: 2px solid #59cef5; outline-offset: 1px; box-shadow: 0 0 0 5px rgba(89,206,245,.14); }
.tool-row { display: grid; grid-template-columns: minmax(0,1fr) 155px 44px; gap: .7rem; align-items: end; padding: 1rem 0; border-bottom: 1px solid #dce2e7; }
.tool-row label { margin: 0; font-size: .82rem; line-height: 20px; }
.tool-row + .tool-row .tool-field { grid-template-rows: 48px; gap: 0; }
.tool-row + .tool-row .tool-field > label { position: absolute; width: 1px; height: 1px; padding: 0; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; }
.tool-row input, .tool-row select { height: 48px; min-height: 48px; margin: 0; font-size: 1rem; font-weight: 400; line-height: 1.4; }
.tool-field { display: grid; grid-template-rows: 20px 48px; gap: 8px; min-width: 0; }
.tool-picker { position: relative; }
.tool-picker input { padding-right: 2.5rem; }
.tool-picker::after { content: ''; position: absolute; right: 1rem; top: 19px; width: 7px; height: 7px; border-right: 1.5px solid #53616d; border-bottom: 1.5px solid #53616d; transform: rotate(45deg); pointer-events: none; }
.tool-options { position: absolute; top: 100%; left: 0; right: 0; z-index: 5; max-height: 280px; overflow-y: auto; margin-top: 5px; border: 1px solid #cbd4dc; border-radius: 6px; background: #fff; box-shadow: 0 8px 24px rgba(0,29,62,.13); }
.tool-option { padding: .65rem .8rem; cursor: pointer; border-bottom: 1px solid #edf0f3; }
.tool-option:last-child { border-bottom: 0; }
.tool-option:hover, .tool-option[aria-selected="true"] { background: #edf3ff; }
.tool-option span, .tool-option small { display: block; overflow-wrap: anywhere; }
.tool-option span { color: #001d3e; font-size: .88rem; font-weight: 500; }
.tool-option small { color: #687982; font-size: .73rem; }
button { min-height: 44px; padding: 10px 18px; border: 1px solid #001d3e; border-radius: 4px; color: #fff; background: #001d3e; font: inherit; font-size: 14px; font-weight: 500; line-height: 20px; cursor: pointer; }
button:hover { background: #163d68; }
button:disabled { cursor: not-allowed; opacity: .55; }
.secondary { background: #fff; color: #001d3e; border-color: #cbd4dc; margin-top: 1rem; }
.secondary:hover, .quiet:hover { background: #f0f3f6; color: #001d3e; }
.quiet { background: transparent; color: #4b5968; border-color: transparent; }
.remove { display: grid; place-items: center; width: 44px; min-height: 48px; padding: 0; }
.remove:hover { color: #b42318; background: #fff1ef; }
.hint { color: #687982; font-size: .9rem; }
.field-help { margin: -.5rem 0 1rem; color: #687982; font-size: .82rem; }
.field-help summary { width: fit-content; cursor: pointer; color: #46596b; padding: .25rem 0; }
.field-help p { max-width: 65ch; margin: .5rem 0 0; }
.small { font-size: .8rem; margin: .75rem 0 0; }
.check { display: flex; gap: .65rem; align-items: start; font-weight: 400; }
.check input { width: 18px; height: 18px; flex: 0 0 auto; margin-top: .2rem; accent-color: #001d3e; }
.check > span { color: #253d49; font-size: .9rem; margin: 0; }
.required { color: #687982; font-size: .75rem; font-weight: 400; }
.consent > p { font-size: .86rem; color: #687982; }
a { color: #245d84; text-underline-offset: 3px; }
.actions { display: flex; justify-content: flex-end; flex-wrap: wrap; gap: .5rem; margin-top: 1.5rem; }
.notice { padding: .65rem .8rem; margin: 0; background: #faf6e9; border: 1px solid #e7dcc0; color: #71603c; font-size: .8rem; border-radius: 4px; }
#status { margin-top: 1rem; color: #b42318; }
#status:empty { display: none; }
#challenge { margin-top: 1rem; }
footer { font-size: .75rem; color: #687982; border-top: 1px solid #d4d9d1; padding: 1.2rem 0; }
.privacy-main { max-width: 50rem; margin: 2rem auto; padding: clamp(1.5rem,5vw,3rem); background: #fff; border-radius: .75rem; }
.privacy-main h1 { color: #001d3e; margin-bottom: 1.5rem; }
.privacy-main h2 { margin-top: 2rem; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; }
[hidden] { display: none !important; }
@media (max-width: 900px) {
  .workspace { grid-template-columns: 1fr; width: min(calc(100% - 1.5rem),48rem); margin: .75rem auto; }
  .intro { padding: 1.35rem 1.5rem; border-right: 0; }
  .intro h1 { font-size: 1.8rem; }
  .lede, .session-note { display: none; }
  .meta { margin: .8rem 0; }
  .meta span { display: inline; }
  .meta span + span::before { content: ' · '; }
  .section-links { display: flex; flex-wrap: wrap; gap: .4rem 1.2rem; padding-top: .7rem; }
}
@media (max-width: 640px) {
  .topbar { grid-template-columns: 1fr auto; padding: 0 1rem; }
  .topbar-context { display: none; }
  .workspace { width: 100%; margin: 0; border: 0; border-radius: 0; }
  .intro { padding: 1.35rem 1rem; }
  .panel-header { padding: .85rem 1rem; }
  .panel-content { padding: 1.25rem 1rem 0; }
  .tool-row { grid-template-columns: minmax(0,1fr) 125px 44px; gap: .5rem; }
  .tool-row input, .tool-row select { padding-left: .65rem; padding-right: 2rem; }
  .privacy-main { margin: 0; border-radius: 0; }
}
@media (prefers-reduced-motion: reduce) { * { scroll-behavior: auto !important; } }
