/* Demo controls use AI-PRO's existing system. Expression styles are scoped to
   Krumme's prepared examples; they never change the surrounding website. */
.workbench-editor {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 30px;
  align-items: start;
  padding: 24px;
  border-bottom: 1px solid var(--line);
}
.headline-editor { max-width: 460px; min-width: 0; }
.headline-editor label, .expression-picker legend {
  display: block;
  font-size: 12px;
  font-weight: 650;
  line-height: 1.6;
  margin-bottom: 9px;
}
.headline-editor label > span {
  font-size: 10px;
  font-weight: 400;
  color: var(--muted);
  margin-left: 12px;
}
.headline-input { position: relative; }
.headline-input input {
  padding-right: 40px;
  background: #fffdf8;
  min-height: 48px;
}
.headline-input > span {
  position: absolute;
  right: 15px;
  top: 11px;
  color: var(--blue);
  pointer-events: none;
}
.headline-editor > p { font-size: 11px; color: var(--muted); margin-top: 7px; }
.expression-picker {
  display: grid;
  grid-template-columns: 1fr 1fr;
  padding: 0;
  margin: 0;
  border: 0;
  gap: 8px;
  min-width: 0;
}
.expression-picker label {
  position: relative;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 7px 12px 7px 7px;
  border: 1px solid #ccd1c5;
  border-radius: 2px;
  cursor: pointer;
  min-height: 48px;
}
.expression-picker label:has(:checked) { border-color: var(--blue); background: #ecf0fe; }
.expression-picker label:has(:focus-visible) { outline: 2px solid var(--blue); outline-offset: 3px; }
.expression-picker input {
  position: absolute;
  opacity: 0;
  width: 1px;
  height: 1px;
  padding: 0;
}
.expression-swatch {
  display: grid;
  place-items: center;
  width: 33px;
  height: 35px;
  flex: none;
  font-family: var(--serif);
  font-size: 26px;
  line-height: 1;
}
.swatch-atelier { background: #315abc; color: #fff4d5; }
.swatch-citron { background: #f2e5a2; color: #3d4333; border-radius: 50% 50% 0 0; }
.expression-picker label > span:last-child { font-size: 11px; font-weight: 650; white-space: nowrap; }
.expression-picker small { display: block; font-size: 9px; font-weight: 400; color: var(--muted); }
.format-canvas { position: relative; isolation: isolate; overflow: clip; }
.format-canvas .demo-stage { min-height: 560px; }
.product-slot { overflow: hidden; min-width: 0; }
.product-slot img, .product-visual img {
  width: 100%; height: 100%; max-width: none;
  object-fit: cover; object-position: 51% 54%;
}
.product-visual { display: none; position: absolute; z-index: 3; overflow: hidden; pointer-events: none; }
.is-enhanced .product-visual { display: block; }
.is-enhanced .product-slot img { visibility: hidden; }
.workbench[data-expression="atelier"] .product-visual[data-format="social"],
.workbench[data-expression="atelier"] .slot-social img {
  mask-image: linear-gradient(to bottom, transparent, #000 13%);
}
.slot-web { height: 100%; min-height: 355px; }
.mini-site-copy h3, .social-poster h3, .paper-subtitle {
  text-wrap: balance;
  overflow-wrap: anywhere;
  hyphens: auto;
}
.mini-site-copy h3 { font-size: 61px; line-height: .96; max-width: 10ch; color: #294d9e; }
.social-poster h3 { width: calc(100% - 48px); font-size: 45px; line-height: .98; top: 66px; }
.slot-social { position: absolute; inset: auto 0 26px; height: 50%; }
.workbench[data-headline-length="long"] .slot-social { height: 44%; }
.social-poster .poster-footer { z-index: 4; }
.paper-menu { transform: none; }
.paper-subtitle { font-size: 40px; line-height: .98; max-width: 12ch; min-height: 78px; }
.slot-menu { height: 149px; margin-top: 18px; }
.workbench[data-headline-length="medium"] .mini-site-copy h3 { font-size: 49px; }
.workbench[data-headline-length="medium"] .social-poster h3 { font-size: 36px; }
.workbench[data-headline-length="medium"] .paper-subtitle { font-size: 34px; }
.workbench[data-headline-length="long"] .mini-site-copy h3 { font-size: 37px; line-height: 1.05; }
.workbench[data-headline-length="long"] .social-poster h3 { font-size: 27px; line-height: 1.07; }
.workbench[data-headline-length="long"] .paper-subtitle { font-size: 27px; line-height: 1.05; }

/* A second, complete Krumme expression: warm paper, an arched photograph,
   generous rules and small uppercase details. The original photograph stays. */
.workbench[data-expression="citron"] .demo-stage { background: #e8e2cf; }
.workbench[data-expression="citron"] .browser-mockup { background: #f7edc4; border-radius: 0; }
.workbench[data-expression="citron"] .browser-chrome { background: #ece5ce; }
.workbench[data-expression="citron"] .mini-site-nav { border-color: #a7a58a; padding-block: 20px; }
.workbench[data-expression="citron"] .sample-brand { font-style: italic; color: #3d4333; }
.workbench[data-expression="citron"] .mini-site-main { padding: 15px; gap: 10px; }
.workbench[data-expression="citron"] .mini-site-copy { padding: 20px 10px 15px; }
.workbench[data-expression="citron"] .mini-site-copy h3 { color: #3d4333; font-style: italic; }
.workbench[data-expression="citron"] .mini-eyebrow { letter-spacing: .16em; color: #555e45; }
.workbench[data-expression="citron"] .sample-button { background: #3d4333; }
.workbench[data-expression="citron"] .sample-button:hover { background: #254da9; }
.workbench[data-expression="citron"] .slot-web { border-radius: 48% 48% 2px 2px; }
.workbench[data-expression="citron"] .social-poster { background: #f2e5a2; color: #3d4333; }
.workbench[data-expression="citron"] .social-poster h3 { font-style: italic; }
.workbench[data-expression="citron"] .slot-social {
  left: 20px; right: 20px; bottom: 33px; height: 48%;
  border-radius: 48% 48% 2px 2px;
}
.workbench[data-expression="citron"] .poster-footer { font-size: 8px; letter-spacing: .07em; text-transform: uppercase; }
.workbench[data-expression="citron"] .paper-menu { background: #f7edc4; border-top: 6px solid #3d4333; }
.workbench[data-expression="citron"] .paper-heading { border-color: #9d9e7f; }
.workbench[data-expression="citron"] .paper-subtitle { color: #3d4333; font-style: italic; }
.workbench[data-expression="citron"] .slot-menu { border-radius: 48% 48% 2px 2px; }
.workbench[data-expression="citron"] .menu-item { border-color: #9d9e7f; }

/* Real edits → a computed overview → an explicit, fictional human review. */
.flow-progress { display: flex; justify-content: space-between; gap: 12px; padding: 0 27px 17px; font-size: 9px; line-height: 1.7; color: var(--muted); }
#flow-state { color: #665127; font-weight: 650; }
.flow-demo.is-reviewed #flow-state { color: #305445; }
.editable-message { border-color: #9daedc; background: #f3f5fe; }
.editable-message > span { display: flex; align-items: center; gap: 12px; }
.editable-tag { margin-left: auto; font-size: 9px; color: #2545a5; }
.message-quantity { display: flex; align-items: center; gap: 9px; font-size: 13px; line-height: 1.65; }
.message-quantity input {
  width: 64px; padding: 5px 7px; min-height: 44px;
  font-size: 18px; font-weight: 650; background: #fffefa; color: #2545a5;
  border-color: #a6b4d5;
}
.delivery-time-field {
  display: grid; grid-template-columns: 1fr 126px; align-items: center;
  column-gap: 12px; row-gap: 3px; margin-top: 9px; padding-top: 9px;
  border-top: 1px solid #d5dcee;
}
.delivery-time-field label { font-size: 11px; font-weight: 600; }
.delivery-time-field label span { display: inline-block; margin-left: 5px; font-size: 9px; color: #7c5b1a; }
.delivery-time-field input { min-height: 44px; padding: 5px 7px; font-size: 16px; background: #fffefa; border-color: #a6b4d5; }
#time-help { grid-column: 1 / -1; font-size: 9px; color: var(--muted); }
.field-error { color: #914629; font-size: 11px; margin-top: 5px; }
.flow-live-result {
  display: grid; grid-template-columns: 1fr auto; gap: 2px 10px;
  align-items: baseline; margin-top: 17px; padding: 10px 0 4px; border-top: 1px solid var(--line);
}
.flow-live-result > span { font-size: 11px; color: var(--muted); }
.flow-live-result strong { font-size: 18px; letter-spacing: -.04em; color: var(--blue); padding: 2px 5px; border-radius: 3px; }
.flow-live-result small { grid-column: 1 / -1; font-size: 10px; text-align: right; color: var(--muted); }
.flow-demo tbody th small { display: block; font-size: 10px; font-weight: 400; color: var(--muted); }
.delivery-times { display: grid; grid-template-columns: 1fr 1fr; gap: 15px; margin-top: 17px; }
.delivery-times > div { padding: 10px 0; border-bottom: 1px solid var(--line); min-width: 0; }
.delivery-times span, .delivery-times small { display: block; font-size: 10px; color: var(--muted); }
.delivery-times strong { display: block; font-size: 15px; font-weight: 650; line-height: 1.6; margin-block: 4px; }
.delivery-times small span { display: inline; }
[data-time-b].is-missing { color: #80611b; }
.flow-observation.is-ready { background: #e8eee6; color: #365143; }
.flow-observation.is-ready > span { border-color: #849b88; }
.review-list strong { font-weight: 500; }
.flow-complete {
  width: 100%; min-height: 46px; padding: 10px 15px; text-align: left;
  display: flex; align-items: center; justify-content: space-between;
  background: var(--blue); color: #fff; font-size: 12px; font-weight: 600;
}
.flow-complete:hover:enabled { background: #1938ab; }
.flow-complete:disabled { cursor: default; background: #e2e5dc; color: #646c62; }
.is-reviewed .flow-complete { background: #e2ece2; color: #305445; }
.flow-footer { display: flex; gap: 12px; align-items: center; padding: 11px 27px; border-top: 1px solid var(--line); }
.flow-footer .flow-disclaimer { border: 0; padding: 0; flex: 1; }
.flow-footer button { flex: none; min-height: 44px; font-size: 11px; color: #2445bb; white-space: nowrap; }
.flow-footer button span { margin-left: 8px; font-size: 17px; }
.operations-contact { color: var(--paper); font-size: 13px; line-height: 1.6; margin-top: 29px; gap: 23px; }
.operations-contact:focus-visible { outline-color: #c5d2fa; }

@media (max-width: 1100px) {
  .workbench-editor { gap: 22px; padding: 22px; }
  .expression-picker label { gap: 7px; padding-right: 8px; }
  .mini-site-copy h3 { font-size: 48px; }
  .social-poster h3 { font-size: 39px; }
  .workbench[data-headline-length="medium"] .mini-site-copy h3 { font-size: 39px; }
  .workbench[data-headline-length="medium"] .social-poster h3 { font-size: 31px; }
  .workbench[data-headline-length="long"] .mini-site-copy h3 { font-size: 32px; }
  .workbench[data-headline-length="long"] .social-poster h3 { font-size: 23px; }
  .flow-progress, .flow-footer { padding-inline: 22px; }
}
@media (max-width: 900px) {
  .workbench-editor { grid-template-columns: 1fr; gap: 17px; }
  .headline-editor { max-width: none; }
  .expression-picker { width: fit-content; }
  .slot-web { order: 1; height: 165px; min-height: 0; }
  .mini-site-copy h3 { font-size: 40px; max-width: 15ch; }
  .workbench[data-headline-length="medium"] .mini-site-copy h3 { font-size: 35px; max-width: 18ch; }
  .workbench[data-headline-length="long"] .mini-site-copy h3 { font-size: 31px; max-width: 23ch; }
  .social-poster h3 { font-size: 37px; }
  .slot-menu { height: 129px; }
  .paper-subtitle { font-size: 35px; min-height: 70px; }
  .workbench[data-expression="citron"] .mini-site-main { padding: 12px; gap: 0; }
  .workbench[data-expression="citron"] .slot-web { border-radius: 48% 48% 2px 2px / 80% 80% 2px 2px; }
  .workbench[data-expression="citron"] .mini-site-copy { padding: 17px 7px 7px; }
}
@media (max-width: 700px) {
  .workbench-editor { padding: 18px 17px; gap: 18px; }
  .headline-editor label, .expression-picker legend { font-size: 11px; }
  .headline-editor label > span { margin-left: 7px; font-size: 9px; }
  .headline-editor > p { font-size: 10px; }
  .expression-picker { width: 100%; }
  .expression-picker label { padding: 7px; gap: 8px; }
  .expression-picker label > span:last-child { font-size: 10px; white-space: normal; }
  .expression-picker small { font-size: 8px; }
  .expression-swatch { width: 31px; height: 35px; }
  .format-canvas .demo-stage { min-height: 560px; }
  .slot-web { height: 192px; }
  .mini-site-copy h3 { font-size: 43px; max-width: 12ch; line-height: .99; }
  .workbench[data-headline-length="medium"] .mini-site-copy h3 { font-size: 34px; }
  .workbench[data-headline-length="long"] .mini-site-copy h3 { font-size: 29px; }
  .social-poster h3 { font-size: 41px; }
  .workbench[data-headline-length="medium"] .social-poster h3 { font-size: 32px; }
  .workbench[data-headline-length="long"] .social-poster h3 { font-size: 25px; }
  .slot-menu { height: 138px; }
  .paper-subtitle { font-size: 37px; }
  .workbench[data-headline-length="medium"] .paper-subtitle { font-size: 31px; }
  .workbench[data-headline-length="long"] .paper-subtitle { font-size: 26px; }
  .flow-progress { padding-inline: 18px; font-size: 8px; gap: 10px; }
  .flow-progress > span:last-child { text-align: right; }
  .message-quantity { font-size: 12px; }
  .delivery-time-field { grid-template-columns: 1fr 120px; gap: 5px; }
  .flow-live-result strong { font-size: 17px; }
  .delivery-times { gap: 12px; }
  .delivery-times strong { font-size: 13px; }
  .delivery-times small { font-size: 9px; }
  .flow-footer { padding: 10px 18px; }
}
@media (max-width: 380px) {
  .workbench-editor { padding-inline: 12px; }
  .expression-picker label { gap: 5px; padding: 5px; }
  .expression-swatch { width: 25px; font-size: 23px; }
  .expression-picker small { font-size: 8px; max-width: 10ch; line-height: 1.5; }
  .mini-site-copy h3 { font-size: 38px; }
  .workbench[data-headline-length="long"] .mini-site-copy h3 { font-size: 26px; }
  .social-poster h3 { font-size: 35px; }
  .workbench[data-headline-length="medium"] .social-poster h3 { font-size: 28px; }
  .workbench[data-headline-length="long"] .social-poster h3 { font-size: 21px; }
  .workbench[data-headline-length="long"] .paper-subtitle { font-size: 24px; }
  .delivery-time-field { grid-template-columns: 1fr; }
  .delivery-time-field input { max-width: 140px; }
  .flow-live-result { grid-template-columns: 1fr; }
  .flow-live-result small { text-align: left; }
}

/* Keep whole words and a quieter reading size on the narrow printed example. */
.paper-subtitle { hyphens: none; max-width: none; text-wrap: pretty; }
.workbench[data-headline-length="long"] .paper-subtitle { font-size: 26px; line-height: 1.16; }
@media (max-width: 600px) {
  .workbench[data-headline-length="medium"] .paper-subtitle { font-size: 28px; line-height: 1.1; }
  .workbench[data-headline-length="long"] .paper-subtitle { font-size: 22px; line-height: 1.16; }
}
@media (max-width: 380px) {
  .workbench[data-headline-length="long"] .paper-subtitle { font-size: 20px; }
}
