/* The workshop stays in light neumorphism. Demo colors are separate. */
:root {
  color-scheme:light;
  --paper:#e8edf3;
  --ink:#20314a;
  --muted:#4b5e76;
  --green:#2e5489;
  --line:#b9c6d6;
}
.forma-shell {
  --shell:#e8edf3;
  --inset:inset 3px 4px 8px #a7b7ce90,inset -4px -4px 8px #fff;
  --lift:5px 6px 13px #a9b8ceaa,-5px -5px 13px #fff;
  --lift-sm:3px 4px 8px #a9b8ceb0,-3px -3px 8px #fff;
  --stroke:#c2cedd;
  --blue:#2b528d;
  --soft-blue:#dce7f5;
}
.forma-shell > .mast {
  margin:clamp(12px,2vw,26px) clamp(16px,5vw,72px) 0;
  border-radius:21px;
  background:var(--shell);
  color:var(--ink);
  box-shadow:var(--lift);
  padding:9px clamp(13px,2.6vw,32px);
  min-height:62px;
  border:1px solid #f5faff;
}
.forma-shell .wordmark svg {
  width:37px;height:37px;padding:7px;
  color:var(--blue);background:var(--shell);
  border-radius:11px;box-shadow:var(--inset);
  margin-right:3px;
}
.forma-shell .wordmark span,.forma-shell .intro em { color:var(--blue); }
.forma-shell .edition,.forma-shell .count { color:var(--muted); }
.forma-shell .count {
  border-radius:100px;
  padding:5px 10px;
  box-shadow:var(--inset);
  white-space:nowrap;
}
.forma-shell .eyebrow span{background:#5a81bc;border-radius:8px;box-shadow:0 1px 3px #8396b8;}
.forma-shell .library-tabs { border-top:0;gap:12px;padding:10px 0 20px; }
.forma-shell .workspace { border-top:0;padding-top:0;align-items:start; }
.forma-shell .rail {
  border-radius:22px;padding:14px 11px 12px;
  background:var(--shell);box-shadow:var(--lift);
  border:1px solid #f3f7fc;
}
.forma-shell #stylePicker { gap:7px;scrollbar-color:#8c9bb0 transparent; }
.forma-shell :is(.library-tabs button,.outline,.codebar button,.style-btn) {
  color:var(--ink);background:var(--shell);border:1px solid var(--stroke);border-radius:12px;
}
.forma-shell :is(.library-tabs button,.outline,.codebar button) { box-shadow:var(--lift-sm); }
.forma-shell .style-btn { border-color:transparent; }
.forma-shell .style-btn:hover {
  box-shadow:var(--lift-sm);
  background:#eef3f8;border-color:var(--stroke);
}
.forma-shell :is(.library-tabs button,.style-btn)[aria-pressed=true] {
  color:#234779;background:var(--soft-blue);box-shadow:var(--inset);border-color:#94aac6;
}
.forma-shell .swatch { border-radius:7px;box-shadow:inset 0 1px 1px #fff8,0 2px 4px #26446733; }
.forma-shell .search {
  color:var(--ink);border-color:#a9bad1;border-radius:12px;background:var(--shell);
  box-shadow:var(--inset);
}
.forma-shell .search::placeholder{color:var(--muted);}
.forma-shell .mode { background:var(--shell);border:1px solid var(--stroke);border-radius:13px;box-shadow:var(--inset);padding:4px; }
.forma-shell .mode [aria-pressed=true] { color:#234779;background:var(--soft-blue);border-color:#94aac6;box-shadow:var(--lift-sm); }
.forma-shell .demo,.forma-shell .fx-frame { box-shadow:var(--lift); }
.forma-shell .mode button,.forma-shell .outline { min-height:40px; }
.forma-shell .outline:hover,.forma-shell .codebar button:hover,.forma-shell .library-tabs button:not([aria-pressed=true]):hover { background:#f4f8fe; }
.forma-shell :is(.outline,.codebar button,.library-tabs button,.style-btn):active { box-shadow:var(--inset); }
.forma-shell .sheet { border-top:0;padding-top:10px;gap:19px; }
.forma-shell .sheet>section {
  border:1px solid #f5faff;border-radius:20px;background:var(--shell);box-shadow:var(--lift);
  padding:clamp(13px,2vw,20px);min-width:0;
}
.forma-shell .warning {
  border-left:0;color:#2b405c;background:var(--shell);border-radius:12px;box-shadow:var(--inset);
  padding:12px 13px;
}
.forma-shell .codebar { color:var(--ink);border-bottom:0;padding:0 0 10px;min-height:42px;gap:8px; }
.forma-shell .codebar button { color:#234779;border-radius:9px;min-height:36px; }
.forma-shell .codebox pre { color:#263c59;background:#e4eaf1;box-shadow:var(--inset);border-radius:12px;padding:14px; }
.forma-shell .copy-help { color:var(--muted); }
.forma-shell :is(.search,.rail button,.library-tabs button,.mode button,.outline,.codebar button,.codebox pre):focus-visible {
  outline:3px solid #315b98;outline-offset:2px;
}
.forma-shell footer { margin-top:24px; }
@media (max-width:620px) {
  .forma-shell > .mast {min-height:53px;}
  .forma-shell .rail {padding:8px 10px;margin-bottom:17px;}
  .forma-shell #stylePicker {margin:0;gap:7px;}
  .forma-shell .library-tabs {gap:7px;padding-bottom:13px;}
  .forma-shell .library-tabs button {padding-inline:9px;font-size:.9rem;}
  .forma-shell .count {font-size:.77rem;}
}

/* Refinamiento del taller: el relieve más notorio indica interacción. */
.forma-shell {
  --shell:#e8edf3;
  --panel:3px 4px 9px #aebdd25e,-4px -4px 12px #ffffffe0;
  --control:4px 5px 9px #879ab471,-4px -4px 9px #ffffff,
    inset 0 1px 1px #fff,inset 0 -1px 1px #a8b7cd8c;
  --control-hover:5px 6px 11px #879ab47d,-4px -4px 10px #fff,
    inset 0 1px 1px #fff;
  --recess:inset 3px 4px 8px #849ab880,inset -3px -3px 7px #ffffffd9,
    0 1px 1px #fff;
  --stroke:#bac9dc;
  --soft-blue:#dbe7f8;
  --module-radius:20px;
  --control-radius:12px;
}
.forma-shell > .mast,
.forma-shell .rail,
.forma-shell .sheet>section {
  border-radius:var(--module-radius);box-shadow:var(--panel);
  border-color:#f7fbff;
}
.forma-shell > .mast {
  max-width:1306px;
  margin-inline:auto;
  width:calc(100% - 2 * clamp(16px,5vw,72px));
  min-height:56px;
}
.forma-shell .wordmark svg,.forma-shell .count { box-shadow:var(--recess); }
.forma-shell .intro {
  padding:clamp(25px,3.3vw,43px) 0 clamp(16px,2.1vw,26px);
}
.forma-shell .intro h1 {
  font-size:clamp(2.25rem,4.15vw,4.4rem);
  line-height:1.04;
  margin:7px 0 12px;
  letter-spacing:-.069em;
}
.forma-shell .intro p { max-width:69ch;line-height:1.52; }
.forma-shell .library-tabs {padding:3px 0 15px;gap:11px;}
.forma-shell .workspace {grid-template-columns:228px minmax(0,1fr);gap:clamp(18px,2.5vw,36px);}
.forma-shell .rail {padding:14px 12px 11px;}
.forma-shell #stylePicker {gap:3px;max-height:540px;}
.forma-shell .style-btn {box-shadow:none;border-color:transparent;background:transparent;border-radius:10px;min-height:41px;}
.forma-shell .style-btn:not([aria-pressed=true]):hover{
  box-shadow:none;border-color:#cbd7e7;background:#edf3fa;
}
.forma-shell .swatch {box-shadow:none;}
.forma-shell .style-btn[aria-pressed=true] {
  box-shadow:var(--recess);border-color:#9eb2d1;color:#213f73;
  background:var(--soft-blue);
}
.forma-shell .style-btn[aria-pressed=true] .swatch {
  background:#c8d9f3;color:#223c6a;
}
.forma-shell .search {border-radius:var(--control-radius);box-shadow:var(--recess);}
.forma-shell :is(.library-tabs button,.outline,.codebar button) {
  background:linear-gradient(145deg,#f2f6fb,#e5ebf4 68%);
  border-color:var(--stroke);border-top-color:#f6faff;
  border-radius:var(--control-radius);box-shadow:var(--control);
  transition:box-shadow 150ms ease,background-color 150ms ease;
}
.forma-shell :is(.library-tabs button:not([aria-pressed=true]),.outline,.codebar button):hover {
  box-shadow:var(--control-hover);
}
.forma-shell :is(.library-tabs button[aria-pressed=true],.outline:active,.codebar button:active) {
  background:var(--soft-blue);border-color:#93aace;
  color:#213f73;box-shadow:var(--recess);
}
.forma-shell .mode {box-shadow:var(--recess);border-radius:var(--control-radius);}
.forma-shell .mode [aria-pressed=true] {
  background:linear-gradient(145deg,#f4f8ff,#dfeaf9);
  color:#213f73;box-shadow:var(--control);border-color:#9eb2d1;
}
.forma-shell .workbar {margin-bottom:11px;}
.forma-shell .demo,.forma-shell .fx-frame {box-shadow:var(--panel);}
.forma-shell .playbar {padding:12px 0 16px;}
.forma-shell .sheet {gap:clamp(13px,1.9vw,23px);grid-template-columns:repeat(2,minmax(0,1fr));}
.forma-shell .warning,.forma-shell .codebox pre {box-shadow:var(--recess);}
@media(min-width:740px){.forma-shell .intro h1 br {display:none;}.forma-shell .intro h1 em::before {content:" ";}}
@media(max-width:850px){
  .forma-shell .workspace {grid-template-columns:169px minmax(0,1fr);gap:17px;}
  .forma-shell .rail {padding-inline:9px;}
  .forma-shell .sheet {grid-template-columns:minmax(0,1fr);}
}
@media(max-width:620px){
  .forma-shell .rail {padding:9px 10px;margin-bottom:13px;}
  .forma-shell .library-tabs {padding-bottom:11px;gap:7px;}
  .forma-shell .library-tabs button {font-size:.84rem;min-height:42px;}
  .forma-shell .intro h1 {font-size:clamp(2rem,8.3vw,3.1rem);}
  .forma-shell .style-btn {width:auto;}
}
.forma-shell #stylePicker .style-btn:not([aria-pressed=true]):not(:hover) {
  border-color:transparent;
  background:transparent;
  box-shadow:none;
}
@media(min-width:621px){
  .forma-shell #stylePicker {overflow-x:hidden;}
  .forma-shell #stylePicker .style-btn {
    white-space:normal;line-height:1.19;
    overflow-wrap:anywhere;
  }
}
@media(min-width:740px){
  .forma-shell .intro h1 em {margin-inline-start:.12em;}
  .forma-shell .intro h1 em::before {content:none;}
}
.forma-shell .wordmark {white-space:nowrap;letter-spacing:-.045em;}
@media(max-width:480px){
  .forma-shell > .mast {gap:8px;padding-inline:10px;}
  .forma-shell .wordmark {gap:5px;font-size:clamp(1rem,4.6vw,1.3rem);}
  .forma-shell .wordmark svg {width:30px;height:30px;padding:5px;margin-right:0;}
  .forma-shell .count {font-size:clamp(.64rem,3vw,.76rem);padding:4px 7px;}
}
