:root {
  --black: #090909;
  --yellow: #ffd500;
  --yellow-dark: #d8b500;
  --cream: #f3f3ef;
  --paper: #ffffff;
  --muted: #62656a;
  --line: #d6d6d0;
  --soft-yellow: #fff5b8;
  --success: #267044;
  --danger: #a12a2a;
  --display: Impact, "Arial Narrow", "Roboto Condensed", sans-serif;
  --body: Arial, Helvetica, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--black);
  background: var(--cream);
  font-family: var(--body);
  line-height: 1.5;
}
button, input, textarea, select { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
button { color: inherit; }
a { color: inherit; }
img { display: block; max-width: 100%; }
[hidden] { display: none !important; }

.skip-link {
  position: fixed;
  top: 8px;
  left: 8px;
  z-index: 200;
  padding: 10px 14px;
  background: var(--yellow);
  transform: translateY(-160%);
}
.skip-link:focus { transform: translateY(0); }

.studio-header {
  position: sticky;
  top: 0;
  z-index: 80;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  min-height: 78px;
  padding: 12px clamp(20px, 4vw, 64px);
  background: rgba(255, 255, 255, 0.96);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(14px);
}

.studio-brand {
  display: flex;
  flex-direction: column;
  width: max-content;
  font-size: 12px;
  font-weight: 900;
  font-style: italic;
  line-height: 0.82;
  text-decoration: none;
  text-transform: uppercase;
  transform: skew(-4deg);
}
.studio-brand strong { color: var(--yellow-dark); font-size: 26px; }
.header-status {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 13px;
  color: #264d35;
  background: #eaf5ed;
  border: 1px solid #c5dec9;
  border-radius: 999px;
  font-size: 12px;
}
.status-dot {
  width: 9px;
  height: 9px;
  background: #32a35a;
  border-radius: 50%;
  box-shadow: 0 0 0 4px rgba(50, 163, 90, 0.12);
}
.header-back {
  justify-self: end;
  padding-bottom: 3px;
  border-bottom: 2px solid var(--yellow);
  font-size: 14px;
  font-weight: 800;
  text-decoration: none;
}

main { width: min(1540px, calc(100% - 48px)); margin: auto; }
.studio-intro {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: clamp(40px, 7vw, 120px);
  align-items: end;
  padding: 66px 0 48px;
}
.kicker {
  margin: 0 0 18px;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.17em;
}
.kicker::before {
  content: "";
  display: inline-block;
  width: 34px;
  height: 4px;
  margin: 0 11px 3px 0;
  background: var(--yellow);
}
.studio-intro h1 {
  margin: 0;
  font: clamp(66px, 8vw, 124px) / 0.86 var(--display);
  letter-spacing: -0.025em;
  text-transform: uppercase;
}
.studio-intro h1 span { color: var(--yellow-dark); }
.intro-copy > p {
  max-width: 620px;
  margin: 0 0 22px;
  color: #3f444a;
  font-size: clamp(17px, 1.4vw, 21px);
  line-height: 1.65;
}
.intro-copy ul {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 20px;
  margin: 0;
  padding: 0;
  list-style: none;
  font-size: 13px;
  font-weight: 800;
}
.intro-copy li::before { content: ""; display: inline-block; width: 7px; height: 7px; margin-right: 8px; background: var(--yellow); border-radius: 50%; }

.privacy-proof {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 18px;
  align-items: center;
  margin-bottom: 24px;
  padding: 18px 22px;
  background: var(--soft-yellow);
  border-left: 7px solid var(--yellow);
}
.proof-icon {
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  color: white;
  background: var(--black);
  border-radius: 50%;
  font-weight: 900;
}
.privacy-proof p { margin: 3px 0 0; color: #53504a; font-size: 14px; }
.proof-code { font: 700 11px/1 monospace; letter-spacing: 0.08em; }

.label-check {
  display: grid;
  grid-template-columns: minmax(270px, 0.72fr) minmax(520px, 1.28fr);
  gap: clamp(36px, 5vw, 80px);
  margin-bottom: 30px;
  padding: clamp(28px, 4vw, 58px);
  color: white;
  background: var(--black);
  border-bottom: 9px solid var(--yellow);
}
.check-intro { align-self: start; }
.check-intro .kicker { color: #d8d8d2; }
.check-intro h2, .guide-heading h2, .explanation-heading h2, .label-legend-heading h2, .tool-faq h2, .source-hub h2 {
  margin: 0;
  font: clamp(48px, 5.5vw, 82px) / 0.89 var(--display);
  letter-spacing: -0.02em;
  text-transform: uppercase;
}
.check-intro h2 span, .guide-heading h2 span, .explanation-heading h2 span, .label-legend-heading h2 span, .tool-faq h2 span, .source-hub h2 span { color: var(--yellow-dark); }
.check-intro > p { color: #d1d1cc; font-size: 17px; line-height: 1.7; }
.check-scope-note { margin-top: 28px; padding: 17px; color: #222; background: var(--yellow); font-size: 13px; line-height: 1.55; }
.decision-form { display: grid; gap: 13px; }
.decision-question { padding: 17px; background: #171717; border: 1px solid #3b3b3b; }
.decision-question legend { display: flex; align-items: center; justify-content: flex-start; gap: 10px; color: white; font-size: 14px; }
.decision-question legend span { display: grid; width: 31px; height: 31px; place-items: center; color: var(--black); background: var(--yellow); font-size: 11px; font-weight: 900; }
.decision-question label {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 11px;
  margin-top: 7px;
  padding: 11px 12px;
  background: #242424;
  border: 1px solid transparent;
  cursor: pointer;
}
.decision-question label:hover, .decision-question label:has(input:checked) { background: #303030; border-color: var(--yellow); }
.decision-question input { width: 18px; height: 18px; margin: 2px 0 0; accent-color: var(--yellow); }
.decision-question strong, .decision-question small { display: block; }
.decision-question strong { font-size: 12px; }
.decision-question small { margin-top: 2px; color: #b8b8b2; font-size: 10px; font-weight: 400; line-height: 1.4; }
.decision-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 7px; }
.decision-actions .ghost-button { color: white; background: transparent; border-color: #777; }
.decision-error { min-height: 20px; margin: 0; color: #ffd9d9; font-size: 12px; font-weight: 700; }
.decision-result {
  align-self: start;
  padding: clamp(24px, 3vw, 38px);
  color: var(--black);
  background: white;
  box-shadow: 9px 9px 0 var(--yellow);
}
.result-status { display: inline-block; margin-bottom: 18px; padding: 6px 9px; color: white; background: var(--black); font-size: 11px; font-weight: 900; letter-spacing: 0.08em; text-transform: uppercase; }
.decision-result[data-outcome="label"] .result-status { color: var(--black); background: var(--yellow); }
.decision-result[data-outcome="no-label"] .result-status { background: var(--success); }
.decision-result[data-outcome="review"] .result-status { background: #a45e00; }
.decision-result h3 { margin: 0 0 14px; font: clamp(35px, 4vw, 54px) / 0.95 var(--display); text-transform: uppercase; }
.decision-result > p { color: #4f5459; line-height: 1.65; }
.result-reason, .result-next { margin-top: 16px; padding: 15px; background: var(--cream); border-left: 5px solid var(--yellow); }
.result-next { border-left-color: var(--black); }
.result-reason p, .result-next p { margin: 5px 0 0; color: #4f5459; font-size: 13px; line-height: 1.55; }
.decision-result .primary-button { margin-top: 22px; }
.decision-result .text-button { display: block; margin-top: 20px; }
.result-disclaimer { margin: 22px 0 0 !important; padding-top: 15px; border-top: 1px solid var(--line); font-size: 10px; }

.studio-shell {
  display: grid;
  grid-template-columns: 220px minmax(420px, 1fr) 390px;
  min-height: 780px;
  margin-bottom: 70px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-top: 9px solid var(--yellow);
  box-shadow: 12px 12px 0 var(--black);
}
.file-rail, .settings-panel { min-width: 0; background: #f7f7f4; }
.file-rail { display: flex; flex-direction: column; border-right: 1px solid var(--line); }
.settings-panel { border-left: 1px solid var(--line); }
.rail-heading, .panel-heading, .canvas-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  min-height: 72px;
  padding: 15px 18px;
  border-bottom: 1px solid var(--line);
}
.rail-heading > div, .panel-heading > div, .canvas-toolbar > div { display: flex; align-items: center; gap: 12px; }
.rail-heading span, .panel-heading span, .toolbar-number {
  display: grid;
  flex: 0 0 auto;
  width: 34px;
  height: 34px;
  place-items: center;
  color: var(--yellow);
  background: var(--black);
  font-size: 12px;
  font-weight: 900;
}
.rail-heading h2, .panel-heading h2, .canvas-toolbar h2 { margin: 0; font-size: 17px; }
.rail-heading output {
  display: grid;
  min-width: 29px;
  height: 29px;
  padding: 0 7px;
  place-items: center;
  background: var(--yellow);
  border-radius: 999px;
  font-size: 12px;
  font-weight: 900;
}
.file-list { display: flex; flex: 1; flex-direction: column; gap: 8px; padding: 12px; overflow-y: auto; }
.file-item {
  position: relative;
  display: grid;
  grid-template-columns: 58px minmax(0, 1fr);
  gap: 10px;
  width: 100%;
  padding: 7px;
  text-align: left;
  background: white;
  border: 1px solid var(--line);
  cursor: pointer;
}
.file-item:hover, .file-item.active { border-color: var(--black); box-shadow: 3px 3px 0 var(--yellow); }
.file-item img { width: 58px; height: 58px; object-fit: cover; background: #ddd; }
.file-item-text { min-width: 0; align-self: center; }
.file-item strong, .file-item small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.file-item strong { font-size: 12px; }
.file-item small { margin-top: 4px; color: var(--muted); font-size: 10px; }
.file-remove {
  position: absolute;
  top: 2px;
  right: 2px;
  width: 22px;
  height: 22px;
  padding: 0;
  color: white;
  background: var(--black);
  border: 0;
  border-radius: 50%;
  font-weight: 900;
  cursor: pointer;
}
.rail-add { margin: 12px; padding: 12px; background: transparent; border: 1px dashed #8e8e88; font-weight: 800; cursor: pointer; }
.rail-add:hover { background: var(--yellow); border-color: var(--black); }

.canvas-column { display: flex; min-width: 0; flex-direction: column; background: #e7e7e4; }
.canvas-toolbar { background: white; }
.canvas-toolbar p { margin: 2px 0 0; color: var(--muted); font-size: 11px; }
.text-button { padding: 5px 0; background: transparent; border: 0; border-bottom: 2px solid var(--yellow); font-size: 12px; font-weight: 800; cursor: pointer; }
.text-button:disabled { opacity: 0.35; cursor: not-allowed; }
.canvas-stage {
  position: relative;
  display: grid;
  flex: 1;
  min-height: 560px;
  padding: 38px;
  place-items: center;
  overflow: hidden;
  background-color: #dcdcd8;
  background-image: linear-gradient(45deg, rgba(255,255,255,.35) 25%, transparent 25%), linear-gradient(-45deg, rgba(255,255,255,.35) 25%, transparent 25%), linear-gradient(45deg, transparent 75%, rgba(255,255,255,.35) 75%), linear-gradient(-45deg, transparent 75%, rgba(255,255,255,.35) 75%);
  background-position: 0 0, 0 10px, 10px -10px, -10px 0;
  background-size: 20px 20px;
}
.canvas-stage.drag-over { outline: 6px solid var(--yellow); outline-offset: -6px; }
#preview-canvas {
  display: block;
  max-width: 100%;
  max-height: 650px;
  width: auto;
  height: auto;
  background: white;
  box-shadow: 0 20px 55px rgba(0, 0, 0, 0.22);
  cursor: grab;
  touch-action: none;
}
#preview-canvas.dragging { cursor: grabbing; }
.empty-state { max-width: 440px; padding: 45px; text-align: center; background: rgba(255,255,255,.94); border: 1px solid #bbb; }
.empty-mark {
  display: grid;
  width: 72px;
  height: 72px;
  margin: 0 auto 20px;
  place-items: center;
  color: var(--yellow);
  background: var(--black);
  font: 34px/1 var(--display);
  transform: skew(-4deg);
}
.empty-state h3 { margin: 0 0 10px; font: 40px/1 var(--display); text-transform: uppercase; }
.empty-state p { margin: 0 auto 24px; color: var(--muted); }
.empty-state small { display: block; margin-top: 18px; color: var(--muted); }
.canvas-footer { display: flex; justify-content: space-between; gap: 20px; padding: 12px 16px; color: var(--muted); background: white; border-top: 1px solid var(--line); font-size: 11px; }

.panel-heading { background: white; }
.settings-panel details { border-bottom: 1px solid var(--line); }
.settings-panel summary {
  position: relative;
  padding: 17px 45px 17px 18px;
  background: white;
  font-size: 14px;
  font-weight: 900;
  cursor: pointer;
  list-style: none;
}
.settings-panel summary::-webkit-details-marker { display: none; }
.settings-panel summary::after { content: "+"; position: absolute; top: 14px; right: 20px; font-size: 20px; }
.settings-panel details[open] summary::after { content: "−"; }
.setting-content { display: grid; gap: 17px; padding: 18px; }
fieldset { min-width: 0; margin: 0; padding: 0; border: 0; }
legend, .field-label, .settings-panel label { font-size: 12px; font-weight: 800; }
legend { display: flex; justify-content: space-between; width: 100%; margin-bottom: 8px; }
legend span { color: var(--muted); font-weight: 400; }
.mode-tabs, .choice-row { display: grid; gap: 1px; padding: 3px; background: #e0e0dc; }
.mode-tabs { grid-template-columns: repeat(3, 1fr); }
.choice-row { grid-template-columns: repeat(3, 1fr); }
.mode-tabs button, .choice-row button {
  min-height: 36px;
  padding: 7px;
  background: transparent;
  border: 0;
  font-size: 11px;
  font-weight: 800;
  cursor: pointer;
}
.mode-tabs button.active, .choice-row button.active { color: white; background: var(--black); }
.label-options { display: grid; gap: 7px; margin-top: 8px; }
.label-options button {
  display: grid;
  grid-template-columns: 92px 1fr;
  gap: 12px;
  align-items: center;
  min-height: 58px;
  padding: 9px;
  text-align: left;
  background: white;
  border: 1px solid var(--line);
  cursor: pointer;
}
.label-options button.active { border: 2px solid var(--black); box-shadow: 3px 3px 0 var(--yellow); }
.label-options img { max-width: 88px; max-height: 34px; margin: auto; }
.label-options strong, .label-options small { display: block; }
.label-options strong { font-size: 11px; text-transform: uppercase; }
.label-options small { color: var(--muted); font-size: 10px; }
.conditional-field { display: grid; gap: 7px; }
.settings-panel input[type="text"], .settings-panel textarea, .settings-panel select {
  width: 100%;
  margin-top: 7px;
  padding: 10px 11px;
  color: var(--black);
  background: white;
  border: 1px solid #9d9d96;
  border-radius: 0;
  font-size: 13px;
}
.settings-panel textarea { resize: vertical; }
.range-field { display: grid; gap: 7px; }
.range-field > span { display: flex; justify-content: space-between; }
.range-field output { color: var(--muted); font-weight: 400; }
input[type="range"] { width: 100%; accent-color: var(--yellow-dark); }
.position-grid { display: grid; grid-template-columns: repeat(3, 34px); gap: 5px; width: max-content; }
.position-grid button { position: relative; width: 34px; height: 34px; padding: 0; background: white; border: 1px solid #b9b9b4; cursor: pointer; }
.position-grid button::after { content: ""; position: absolute; inset: 12px; background: #aaa; border-radius: 50%; }
.position-grid button.active { background: var(--black); border-color: var(--black); }
.position-grid button.active::after { background: var(--yellow); }
.switch-row { display: grid !important; grid-template-columns: auto 1fr; gap: 11px; align-items: start; }
.switch-row input { width: 19px; height: 19px; margin: 2px 0 0; accent-color: var(--yellow-dark); }
.switch-row strong, .switch-row small { display: block; }
.switch-row small { margin-top: 3px; color: var(--muted); font-weight: 400; line-height: 1.4; }
.metadata-result { padding: 13px; background: white; border-left: 5px solid var(--yellow); }
.metadata-result p { margin: 0; color: var(--muted); font-size: 12px; }
.metadata-chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.metadata-chip { padding: 4px 7px; color: #444; background: #e9e9e5; font-size: 10px; font-weight: 800; }
.metadata-chip.found { color: #1d5f38; background: #dcf0e2; }
.small-note { display: block; color: var(--muted); font-size: 11px; line-height: 1.45; }
.warning-note { margin: 0; padding: 10px; background: #fff1d9; border-left: 4px solid #dd8b00; }
.button-row { display: grid; grid-template-columns: 1fr 1fr; gap: 9px; }
.primary-button, .secondary-button, .ghost-button {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 49px;
  padding: 12px 16px;
  border: 0;
  font-weight: 900;
  cursor: pointer;
}
.primary-button { background: var(--yellow); box-shadow: 5px 5px 0 var(--black); }
.secondary-button { color: white; background: var(--black); box-shadow: 4px 4px 0 var(--yellow); }
.ghost-button { background: white; border: 1px solid #aaa; }
.primary-button:disabled, .secondary-button:disabled, .ghost-button:disabled { opacity: 0.4; cursor: not-allowed; }
.compact { min-height: 38px; padding: 8px 11px; font-size: 11px; }
.full { width: 100%; }
.export-formats { grid-template-columns: repeat(2, 1fr); }
.export-message { min-height: 18px; margin: 0; color: var(--success); font-size: 11px; font-weight: 700; }
.export-message.error { color: var(--danger); }

.tool-guide, .decision-explainer, .label-legend, .tool-faq, .source-hub {
  margin: 0 0 72px;
  padding: clamp(35px, 5vw, 70px);
}
.tool-guide { display: grid; grid-template-columns: 0.75fr 1.25fr; gap: clamp(45px, 7vw, 100px); background: white; border-top: 9px solid var(--yellow); }
.guide-heading > p:last-child, .explanation-heading > p:last-child { color: var(--muted); font-size: 17px; line-height: 1.7; }
.guide-steps { display: grid; gap: 1px; margin: 0; padding: 0; background: var(--line); border: 1px solid var(--line); list-style: none; counter-reset: none; }
.guide-steps li { display: grid; grid-template-columns: 52px 1fr; gap: 17px; padding: 22px; background: white; }
.guide-steps li > span { display: grid; width: 45px; height: 45px; place-items: center; color: var(--yellow); background: var(--black); font-weight: 900; }
.guide-steps h3 { margin: 0 0 5px; font-size: 19px; }
.guide-steps p { margin: 0; color: var(--muted); font-size: 13px; line-height: 1.55; }

.decision-explainer { background: #e8e8e3; }
.explanation-heading { display: grid; grid-template-columns: 1fr 0.65fr; gap: 50px; align-items: end; margin-bottom: 38px; }
.explanation-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); }
.explanation-card { position: relative; min-height: 360px; padding: 30px; background: white; }
.explanation-card .card-mark { display: grid; width: 46px; height: 46px; place-items: center; color: var(--yellow); background: var(--black); font-size: 23px; font-weight: 900; }
.explanation-card.should-label { border-top: 7px solid var(--yellow); }
.explanation-card.usually-not { border-top: 7px solid var(--success); }
.explanation-card.special-case { border-top: 7px solid #a45e00; }
.explanation-card h3 { margin: 25px 0 18px; font-size: 21px; line-height: 1.15; }
.explanation-card ul { margin: 0; padding: 0; list-style: none; }
.explanation-card li { position: relative; margin: 12px 0; padding-left: 18px; color: var(--muted); font-size: 13px; line-height: 1.5; }
.explanation-card li::before { content: ""; position: absolute; top: 7px; left: 0; width: 7px; height: 7px; background: var(--yellow); }
.article50-overview { display: grid; grid-template-columns: 0.7fr 1.3fr; gap: 40px; margin-top: 35px; padding: 32px; color: white; background: var(--black); }
.overview-title > span { color: var(--yellow); font-size: 10px; font-weight: 900; letter-spacing: .13em; text-transform: uppercase; }
.overview-title h3 { margin: 12px 0; font: 35px/1 var(--display); text-transform: uppercase; }
.overview-title p { margin: 0; color: #c4c4bf; font-size: 13px; line-height: 1.6; }
.overview-cases { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1px; background: #444; }
.overview-cases article { padding: 18px; background: #1e1e1e; }
.overview-cases article > span { color: var(--yellow); font-size: 11px; font-weight: 900; }
.overview-cases strong, .overview-cases p { display: block; }
.overview-cases strong { margin-top: 8px; font-size: 13px; }
.overview-cases p { margin: 6px 0 0; color: #bdbdb8; font-size: 11px; line-height: 1.5; }

.label-legend { color: white; background: var(--black); }
.label-legend-heading { margin-bottom: 38px; }
.label-legend-heading .kicker { color: #d5d5d0; }
.label-legend-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.label-legend-grid article { padding: 28px; color: var(--black); background: white; }
.label-legend-grid img { width: 100%; max-width: 190px; height: 58px; object-fit: contain; object-position: left center; }
.label-legend-grid h3 { margin: 25px 0 8px; font-size: 21px; text-transform: uppercase; }
.label-legend-grid p { margin: 0; color: var(--muted); font-size: 13px; line-height: 1.55; }
.legend-note { margin: 25px 0 0; padding: 15px 18px; color: #d5d5d0; background: #1c1c1c; border-left: 6px solid var(--yellow); font-size: 12px; }

.tool-faq { display: grid; grid-template-columns: 0.62fr 1.38fr; gap: clamp(45px, 7vw, 100px); background: white; }
.faq-list { border-top: 1px solid var(--line); }
.faq-list details { border-bottom: 1px solid var(--line); }
.faq-list summary { position: relative; padding: 20px 45px 20px 0; font-size: 15px; font-weight: 900; cursor: pointer; list-style: none; }
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after { content: "+"; position: absolute; top: 15px; right: 5px; font-size: 24px; }
.faq-list details[open] summary::after { content: "−"; }
.faq-list details p { margin: 0; padding: 0 45px 22px 0; color: var(--muted); font-size: 14px; line-height: 1.7; }

.source-hub { display: grid; grid-template-columns: 0.7fr 1.3fr; gap: clamp(45px, 7vw, 100px); background: var(--soft-yellow); border-left: 9px solid var(--yellow); }
.source-links { display: grid; gap: 10px; }
.source-links a { display: grid; gap: 6px; padding: 19px 21px; background: white; border: 1px solid #dfd9aa; text-decoration: none; transition: transform .18s ease, box-shadow .18s ease; }
.source-links a:hover { transform: translateY(-3px); box-shadow: 5px 5px 0 var(--black); }
.source-links span { color: #856f00; font-size: 10px; font-weight: 900; letter-spacing: 0.12em; text-transform: uppercase; }
.source-links strong { font-size: 17px; }
.source-links small { color: var(--muted); }

.legal-note {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 70px;
  margin: 0 0 72px;
  padding: 48px;
  background: white;
  border-left: 9px solid var(--yellow);
}
.legal-note h2 { margin: 0; font: clamp(42px, 5vw, 70px) / 0.9 var(--display); text-transform: uppercase; }
.legal-note > div:last-child { align-self: end; }
.legal-note > div:last-child p { color: var(--muted); line-height: 1.7; }
.legal-note a { display: inline-block; padding-bottom: 3px; border-bottom: 2px solid var(--yellow); font-weight: 800; text-decoration: none; }

footer {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: end;
  gap: 20px;
  padding: 45px clamp(20px, 4vw, 64px);
  color: white;
  background: var(--black);
  font-size: 12px;
}
footer p { margin: 0; }
footer p:last-child { justify-self: end; }
.footer-brand strong { color: var(--yellow); }

@media (max-width: 1240px) {
  .studio-shell { grid-template-columns: 180px minmax(380px, 1fr) 350px; }
  .studio-intro h1 { font-size: clamp(66px, 8vw, 100px); }
}

@media (max-width: 1040px) {
  main { width: min(920px, calc(100% - 36px)); }
  .studio-intro { grid-template-columns: 1fr; gap: 28px; }
  .studio-shell { grid-template-columns: 170px minmax(0, 1fr); }
  .settings-panel { grid-column: 1 / -1; border-top: 1px solid var(--line); border-left: 0; }
  .settings-panel .setting-content { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .settings-panel details:nth-of-type(1) .setting-content { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .settings-panel details:nth-of-type(1) .label-options, .settings-panel details:nth-of-type(1) #eu-options { grid-column: 1 / -1; }
  .label-options { grid-template-columns: repeat(3, 1fr); }
  .label-options button { grid-template-columns: 1fr; text-align: center; }
  .legal-note { gap: 40px; }
  .label-check { grid-template-columns: 1fr; }
  .tool-guide, .tool-faq, .source-hub { grid-template-columns: 1fr; gap: 36px; }
  .explanation-heading { grid-template-columns: 1fr; gap: 20px; }
  .explanation-grid { grid-template-columns: 1fr; }
  .explanation-card { min-height: 0; }
  .article50-overview { grid-template-columns: 1fr; }
}

@media (max-width: 720px) {
  .studio-header { grid-template-columns: 1fr auto; min-height: 70px; padding: 10px 18px; }
  .header-status { grid-column: 1 / -1; grid-row: 2; justify-self: stretch; justify-content: center; margin-top: 8px; border-radius: 0; }
  .header-status span:last-child { display: inline; }
  main { width: calc(100% - 24px); }
  .studio-intro { padding: 46px 0 30px; }
  .studio-intro h1 { font-size: clamp(55px, 18vw, 78px); }
  .privacy-proof { grid-template-columns: auto 1fr; padding: 15px; }
  .proof-code { display: none; }
  .studio-shell { display: flex; flex-direction: column; margin-bottom: 50px; box-shadow: 7px 7px 0 var(--black); }
  .file-rail { order: 2; min-height: 0; border-top: 1px solid var(--line); border-right: 0; }
  .file-list { display: grid; grid-template-columns: repeat(2, 1fr); max-height: 260px; }
  .canvas-column { order: 1; }
  .settings-panel { order: 3; }
  .canvas-stage { min-height: 390px; padding: 18px; }
  .empty-state { padding: 30px 20px; }
  .empty-state h3 { font-size: 34px; }
  .canvas-footer { flex-direction: column; gap: 3px; }
  .settings-panel .setting-content, .settings-panel details:nth-of-type(1) .setting-content { grid-template-columns: 1fr; }
  .settings-panel details:nth-of-type(1) .label-options, .settings-panel details:nth-of-type(1) #eu-options { grid-column: auto; }
  .label-options { grid-template-columns: 1fr; }
  .label-options button { grid-template-columns: 92px 1fr; text-align: left; }
  .legal-note { grid-template-columns: 1fr; gap: 28px; padding: 30px 24px; }
  .label-check { gap: 30px; padding: 28px 20px; }
  .check-intro h2, .guide-heading h2, .explanation-heading h2, .label-legend-heading h2, .tool-faq h2, .source-hub h2 { font-size: 47px; }
  .decision-question { padding: 13px; }
  .decision-question legend { align-items: flex-start; line-height: 1.35; }
  .decision-actions { flex-direction: column; align-items: stretch; }
  .decision-actions button { width: 100%; }
  .tool-guide, .decision-explainer, .label-legend, .tool-faq, .source-hub { margin-bottom: 48px; padding: 30px 22px; }
  .guide-steps li { grid-template-columns: 42px 1fr; padding: 17px; }
  .guide-steps li > span { width: 37px; height: 37px; }
  .label-legend-grid { grid-template-columns: 1fr; }
  .label-legend-grid article { padding: 22px; }
  .article50-overview { padding: 22px; }
  .overview-cases { grid-template-columns: 1fr; }
  footer { grid-template-columns: 1fr; align-items: start; }
  footer p:last-child { justify-self: start; }
}

@media (max-width: 420px) {
  .header-back { font-size: 12px; }
  .studio-intro h1 { font-size: 54px; }
  .intro-copy ul { flex-direction: column; gap: 8px; }
  .file-list { grid-template-columns: 1fr; }
  .mode-tabs, .choice-row { grid-template-columns: 1fr; }
  .export-formats { grid-template-columns: repeat(2, 1fr); }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition: none !important; }
}
