@import url('https://fonts.googleapis.com/css2?family=Archivo:wght@400;500;600;700;800&family=Bebas+Neue&family=JetBrains+Mono:wght@500;600&display=swap');

:root{
  --bg:#0d0c0a;
  --panel:#171510;
  --field:#1e1b15;
  --line:#2d2920;
  --gold:#d1a84e;
  --gold2:#efc568;
  --text:#f2ecdf;
  --muted:#928b7c;
  --danger:#d66464;
  --success:#68b27a;
  --mono:'JetBrains Mono',monospace;
  --body:'Archivo',sans-serif;
  --display:'Bebas Neue',sans-serif
}

*{box-sizing:border-box}
body{margin:0;background:var(--bg);color:var(--text);font-family:var(--body)}
a{color:inherit;text-decoration:none}
button,input,select,textarea{font:inherit}
button{cursor:pointer}

.app-shell{display:grid;grid-template-columns:220px 1fr;min-height:100vh}
.sidebar{padding:22px 16px;border-right:1px solid var(--line);background:#11100d;display:flex;flex-direction:column}
.brand{display:flex;gap:10px;align-items:center;margin-bottom:30px}
.brand-mark{display:grid;place-items:center;width:44px;height:44px;border:1px solid var(--gold);color:var(--gold);font-family:var(--display);font-size:24px}
.brand b{display:block;font-family:var(--display);font-size:23px;letter-spacing:.08em}
.brand small{display:block;color:var(--muted);font-size:9px}
.sidebar nav{display:grid;gap:6px}
.sidebar nav a{padding:11px 12px;border-radius:5px;color:var(--muted);font-size:13px}
.sidebar nav a:hover{background:var(--panel);color:var(--text)}
.account-card{margin-top:auto;padding:14px;border:1px solid var(--line);border-radius:6px;background:var(--panel)}
.account-card small,.account-card b,.account-card span{display:block}
.account-card small,.eyebrow{font:10px var(--mono);letter-spacing:.1em;color:var(--gold)}
.account-card b{margin:6px 0}
.account-card span{font-size:11px;color:var(--muted)}

.main{min-width:0}
.topbar{height:62px;padding:0 24px;border-bottom:1px solid var(--line);display:flex;justify-content:space-between;align-items:center;font-size:11px;color:var(--muted)}
.topbar div{display:flex;gap:16px;align-items:center}
.content{padding:28px 30px 70px;max-width:1500px;margin:auto}

.hero{display:flex;justify-content:space-between;align-items:flex-end;gap:22px;margin-bottom:24px}
.hero.compact{align-items:flex-start}
.hero h1{margin:7px 0;font-family:var(--display);font-size:46px;line-height:1}
.hero p{margin:0;max-width:760px;color:var(--muted);line-height:1.6}
.button,button{display:inline-flex;align-items:center;justify-content:center;border-radius:4px;padding:12px 17px;border:1px solid transparent;font:600 11px var(--mono);text-transform:uppercase;letter-spacing:.04em}
.primary{background:var(--gold);color:#17120b}
.primary:hover{background:var(--gold2)}
.secondary{background:transparent;border-color:var(--line);color:var(--muted)}
.full{width:100%}

.stats{display:grid;grid-template-columns:repeat(3,1fr);gap:12px;margin-bottom:30px}
.stats>div{padding:18px;border:1px solid var(--line);border-radius:6px;background:var(--panel)}
.stats small,.stats strong{display:block}
.stats small{font:9px var(--mono);color:var(--muted)}
.stats strong{margin-top:7px;font-size:28px;color:var(--gold)}

.section{margin-top:30px}
.section-head h2{margin:6px 0 15px}
.project-grid,.production-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px}
.project-card,.production-card{padding:18px;border:1px solid var(--line);border-radius:7px;background:var(--panel);transition:.15s}
.project-card:hover,.production-card:hover{border-color:var(--gold);transform:translateY(-2px)}
.project-card>span,.production-card header>span{font:9px var(--mono);text-transform:uppercase;color:var(--gold)}
.project-card h3{font-size:19px;margin:10px 0 7px}
.project-card p{color:var(--muted);font-size:12px}
.project-card em,.production-card em{display:block;margin-top:22px;color:var(--gold);font:10px var(--mono);font-style:normal}

.production-card header b{display:block;margin-top:8px;font-size:17px}
.production-card dl{display:grid;grid-template-columns:1fr 1fr;margin:16px 0 0}
.production-card dl>div{padding:9px 0;border-top:1px solid var(--line)}
.production-card dt{font:9px var(--mono);color:var(--muted);text-transform:uppercase}
.production-card dd{margin:5px 0 0;font-size:11px}

.form-card{max-width:980px;padding:24px;border:1px solid var(--line);border-radius:7px;background:var(--panel)}
.form-card label,.auth-card label{display:grid;gap:7px;margin-bottom:17px;font:10px var(--mono);text-transform:uppercase;color:var(--muted)}
input,select,textarea{width:100%;padding:12px;border:1px solid var(--line);border-radius:4px;background:var(--field);color:var(--text);outline:none}
input:focus,select:focus,textarea:focus{border-color:var(--gold)}
textarea{resize:vertical}
label small{font:10px var(--body);text-transform:none;color:var(--muted)}
.form-grid{display:grid;grid-template-columns:1fr 1fr;gap:0 14px}
.actions{display:flex;justify-content:flex-end;gap:9px}

.empty,.placeholder-panel{padding:28px;border:1px dashed var(--line);border-radius:7px;text-align:center;color:var(--muted)}
.empty b,.placeholder-panel h2{color:var(--text)}
.empty .button{margin-top:12px}
.back-link{display:inline-block;margin-bottom:16px;color:var(--muted);font-size:12px}

.summary-bar{display:grid;grid-template-columns:repeat(5,1fr);border:1px solid var(--line);border-radius:6px;overflow:hidden;margin-bottom:18px}
.summary-bar>div{padding:14px;border-right:1px solid var(--line);background:var(--panel)}
.summary-bar>div:last-child{border-right:0}
.summary-bar small,.summary-bar b{display:block}
.summary-bar small{font:9px var(--mono);color:var(--muted)}
.summary-bar b{margin-top:6px;font-size:12px}
.status-pill{padding:8px 11px;border:1px solid var(--line);border-radius:20px;color:var(--gold);font:10px var(--mono)}

.flash{padding:12px 14px;border-radius:5px;margin-bottom:18px;font-size:12px}
.flash.error{border:1px solid var(--danger);background:rgba(214,100,100,.08)}
.flash.success{border:1px solid var(--success);background:rgba(104,178,122,.08)}

.guest-body{min-height:100vh;background:radial-gradient(circle at 15% 10%,rgba(209,168,78,.09),transparent 38%),var(--bg)}
.auth-wrap{min-height:100vh;display:grid;grid-template-columns:1.1fr .9fr;align-items:center;max-width:1100px;margin:auto;padding:36px}
.auth-copy{padding-right:70px}
.auth-copy h1{font-family:var(--display);font-size:65px;line-height:.95;margin:12px 0}
.auth-copy p{color:var(--muted);font-size:16px}
.auth-card{padding:28px;border:1px solid var(--line);border-radius:8px;background:var(--panel)}
.auth-card h2{margin-top:0}

@media(max-width:1000px){
  .project-grid,.production-grid{grid-template-columns:repeat(2,1fr)}
  .app-shell{grid-template-columns:1fr}
  .sidebar{display:none}
}

@media(max-width:650px){
  .content{padding:22px 16px 55px}
  .hero{display:block}
  .hero .button{margin-top:14px}
  .hero h1{font-size:38px}
  .stats,.project-grid,.production-grid,.form-grid,.summary-bar{grid-template-columns:1fr}
  .summary-bar>div{border-right:0;border-bottom:1px solid var(--line)}
  .auth-wrap{grid-template-columns:1fr;padding:18px}
  .auth-copy{display:none}
}


/* V5.1.2 · Director por producción */
.director-stage{
  margin-top:18px;
  padding:22px;
  border:1px solid var(--line);
  border-radius:7px;
  background:var(--panel)
}
.stage-head{
  display:flex;
  justify-content:space-between;
  gap:20px;
  align-items:flex-start
}
.stage-head h2{margin:6px 0}
.stage-head p{margin:0;color:var(--muted);max-width:760px;line-height:1.55}
.director-loading{padding:15px 0;color:var(--gold);font:11px var(--mono)}
.direction-compact{margin-top:18px}
.direction-summary{
  display:grid;
  grid-template-columns:repeat(4,1fr);
  border:1px solid var(--line);
  border-radius:6px;
  overflow:hidden
}
.direction-summary>div{
  padding:15px;
  border-right:1px solid var(--line);
  background:var(--field)
}
.direction-summary>div:last-child{border-right:0}
.direction-summary small,.direction-summary b{display:block}
.direction-summary small{font:9px var(--mono);color:var(--muted)}
.direction-summary b{margin-top:7px;font-size:14px;color:var(--gold)}
.direction-compact details{margin-top:12px;border:1px solid var(--line);border-radius:6px;background:#12110e}
.direction-compact summary{padding:14px 16px;cursor:pointer;color:var(--gold);font:11px var(--mono)}
.direction-analysis{display:grid;grid-template-columns:repeat(3,1fr);gap:10px;padding:0 16px 16px}
.direction-analysis article,.director-why{
  padding:14px;
  border:1px solid var(--line);
  border-radius:5px;
  background:var(--field)
}
.direction-analysis small,.director-why small{font:9px var(--mono);color:var(--muted)}
.direction-analysis p,.director-why p{margin:7px 0 0;font-size:12px;line-height:1.55}
.director-why{margin:0 16px 16px}
.scene-strip{
  display:grid;
  grid-template-columns:repeat(4,minmax(0,1fr));
  gap:10px;
  margin-top:14px
}
.scene-strip article{
  padding:14px;
  border:1px solid var(--line);
  border-radius:6px;
  background:var(--field)
}
.scene-strip span{font:9px var(--mono);color:var(--gold)}
.scene-strip b{display:block;margin-top:7px}
.scene-strip p{font-size:11px;line-height:1.45}
.scene-strip small{color:var(--muted);font-size:10px;line-height:1.4}
.next-stage{
  margin-top:14px;
  padding:18px;
  border-left:3px solid var(--gold);
  background:var(--field)
}
.next-stage h3{margin:7px 0}
.next-stage p{margin:0;color:var(--muted);font-size:12px}
@media(max-width:900px){
  .direction-summary,.direction-analysis,.scene-strip{grid-template-columns:repeat(2,1fr)}
}
@media(max-width:650px){
  .stage-head{display:block}
  .stage-head button{width:100%;margin-top:14px}
  .direction-summary,.direction-analysis,.scene-strip{grid-template-columns:1fr}
  .direction-summary>div{border-right:0;border-bottom:1px solid var(--line)}
}


/* ===== V5.1.3 · ENTREGABLES POR PRODUCCIÓN ===== */
.workspace-stage{margin-top:18px;padding:22px;border:1px solid var(--line);border-radius:7px;background:var(--panel)}
.workspace-loading{padding:15px 0;color:var(--gold);font:11px var(--mono)}
.credit-notice{margin:14px 0;padding:11px 13px;border:1px solid var(--line);border-left:3px solid var(--gold);border-radius:5px;background:var(--field);color:var(--muted);font-size:11px;line-height:1.5}
.credit-notice b{color:var(--text)}
.production-ready-head{display:flex;align-items:flex-start;justify-content:space-between;gap:18px;margin-top:18px;padding:18px 0;border-top:1px solid var(--line)}
.production-ready-head h2{margin:5px 0;font-family:var(--display);font-size:34px}
.production-ready-head p{max-width:760px;margin:0;color:var(--muted);line-height:1.55}
.deliverable-tabs{display:flex;gap:6px;margin:8px 0 18px;border-bottom:1px solid var(--line)}
.deliverable-tabs button{padding:11px 15px;border-radius:0;background:transparent;color:var(--muted)}
.deliverable-tabs button.active{color:var(--gold);border-bottom:2px solid var(--gold)}
.deliverable-pane{display:none}.deliverable-pane.active{display:block}
.prompt-deliverable{margin-bottom:14px;overflow:hidden;border:1px solid var(--line);border-radius:6px;background:var(--field)}
.prompt-deliverable.board{border-left:3px solid #6e9ed8}.prompt-deliverable.video{border-left:3px solid var(--gold)}.prompt-deliverable.cover{border-left:3px solid #9c66c8}
.prompt-deliverable header{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:14px 16px;border-bottom:1px solid var(--line)}
.prompt-deliverable h3{margin:4px 0 0;font-size:16px}
.prompt-deliverable pre{max-height:450px;margin:0;padding:17px 18px;overflow:auto;white-space:pre-wrap;word-break:break-word;color:var(--text);font:11.5px/1.65 var(--mono)}
.copy-prompt{padding:8px 12px;border:1px solid var(--line);background:transparent;color:var(--muted);font-size:10px}
.copy-prompt:hover{border-color:var(--gold);color:var(--gold)}
.production-scenes{display:grid;gap:22px}.production-scene{padding:18px;border:1px solid var(--line);border-radius:7px;background:#12110e}
.scene-output-head{padding:0 2px 14px}.scene-output-head>span{color:var(--gold);font:9px var(--mono);letter-spacing:.1em}
.scene-output-head h3{margin:6px 0;font-size:21px}.scene-output-head p{margin:0;color:var(--muted);font-size:11px}
.scene-output-head small{display:block;margin-top:6px;color:var(--muted);font-size:10px}
.reference-checklist{margin:0 0 14px;padding:15px 16px;border:1px solid rgba(110,158,216,.45);border-left:3px solid #6e9ed8;border-radius:6px;background:rgba(110,158,216,.055)}
.reference-items{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:9px;margin:10px 0}
.reference-items>span{display:grid;grid-template-columns:26px 1fr;align-items:center;column-gap:8px;padding:10px;border:1px solid var(--line);border-radius:5px;background:var(--field);font-size:11px}
.reference-items b{grid-row:1/3;display:flex;width:24px;height:24px;align-items:center;justify-content:center;border-radius:50%;background:#6e9ed8;color:#0e1620;font:700 10px var(--mono)}
.reference-items em{display:block;margin-top:3px;color:var(--muted);font-size:9.5px;font-style:normal;line-height:1.3}
.reference-checklist>small{color:var(--muted);font-size:10.5px;line-height:1.45}
@media(max-width:850px){.reference-items{grid-template-columns:1fr}.production-ready-head{display:block}.production-ready-head button{width:100%;margin-top:14px}}
@media(max-width:650px){.workspace-stage{padding:16px}.deliverable-tabs{overflow-x:auto;white-space:nowrap}.prompt-deliverable header{align-items:flex-start}.copy-prompt{white-space:nowrap}}


/* ===== V5.1.4 · PRODUCTION WORKSPACE ===== */
.production-workspace-page{
  width:100%;
  max-width:none
}
.workspace-breadcrumb{
  display:flex;
  align-items:center;
  gap:8px;
  margin-bottom:12px;
  color:var(--muted);
  font-size:11px
}
.workspace-breadcrumb a:hover{color:var(--gold)}
.workspace-breadcrumb b{color:var(--text)}
.workspace-topbar{
  display:flex;
  justify-content:space-between;
  align-items:flex-end;
  gap:24px;
  margin-bottom:14px;
  padding:0 2px
}
.workspace-topbar h1{
  margin:5px 0 0;
  font-family:var(--display);
  font-size:38px;
  line-height:1
}
.workspace-meta{
  display:flex;
  align-items:center;
  justify-content:flex-end;
  gap:0;
  overflow:hidden;
  border:1px solid var(--line);
  border-radius:6px;
  background:var(--panel)
}
.workspace-meta>span{
  display:block;
  min-width:100px;
  padding:10px 12px;
  border-right:1px solid var(--line)
}
.workspace-meta>span:last-child{border-right:0}
.workspace-meta small,.workspace-meta b{display:block}
.workspace-meta small{
  color:var(--muted);
  font:8px var(--mono)
}
.workspace-meta b{
  max-width:150px;
  margin-top:4px;
  overflow:hidden;
  text-overflow:ellipsis;
  white-space:nowrap;
  font-size:10.5px
}
.workspace-meta .status-pill{
  min-width:auto;
  color:var(--gold);
  text-align:center
}
.production-workspace{
  display:grid;
  grid-template-columns:210px minmax(0,1fr);
  min-height:680px;
  overflow:hidden;
  border:1px solid var(--line);
  border-radius:8px;
  background:var(--panel)
}
.workspace-nav{
  display:flex;
  flex-direction:column;
  min-width:0;
  border-right:1px solid var(--line);
  background:#11100d
}
.workspace-nav-head{
  padding:18px 16px 12px
}
.workspace-nav-head small{
  display:block;
  margin-top:5px;
  color:var(--muted);
  font-size:10px
}
.workspace-nav-item{
  display:grid;
  grid-template-columns:25px 1fr;
  gap:10px;
  align-items:center;
  width:100%;
  padding:12px 14px;
  border:0;
  border-left:2px solid transparent;
  border-radius:0;
  background:transparent;
  color:var(--muted);
  text-align:left;
  text-transform:none;
  letter-spacing:0
}
.workspace-nav-item:hover{
  background:var(--field);
  color:var(--text)
}
.workspace-nav-item.active{
  border-left-color:var(--gold);
  background:rgba(209,168,78,.08);
  color:var(--text)
}
.workspace-nav-item b,
.workspace-nav-item small{
  display:block
}
.workspace-nav-item b{
  font-size:11.5px
}
.workspace-nav-item small{
  margin-top:3px;
  color:var(--muted);
  font-size:9.5px;
  line-height:1.3
}
.workspace-nav-status{
  display:flex;
  width:22px;
  height:22px;
  align-items:center;
  justify-content:center;
  border:1px solid var(--line);
  border-radius:50%;
  color:var(--muted);
  font:700 9px var(--mono)
}
.workspace-nav-status.ready{
  border-color:var(--success);
  background:rgba(104,178,122,.12);
  color:var(--success)
}
.workspace-nav-foot{
  margin-top:auto;
  padding:14px 16px;
  border-top:1px solid var(--line)
}
.workspace-nav-foot a{
  color:var(--muted);
  font-size:10.5px
}
.workspace-nav-foot a:hover{color:var(--gold)}
.workspace-canvas{
  min-width:0;
  padding:22px;
  background:var(--bg)
}
.workspace-panel{display:none}
.workspace-panel.active{display:block}
.workspace-panel-head{
  display:flex;
  justify-content:space-between;
  align-items:flex-start;
  gap:18px;
  margin-bottom:17px;
  padding-bottom:15px;
  border-bottom:1px solid var(--line)
}
.workspace-panel-head h2{
  margin:5px 0;
  font-size:24px
}
.workspace-panel-head p{
  max-width:760px;
  margin:0;
  color:var(--muted);
  font-size:11.5px;
  line-height:1.5
}
.workspace-loading{
  margin-bottom:12px;
  padding:12px 14px;
  border:1px solid var(--line);
  border-left:3px solid var(--gold);
  border-radius:5px;
  background:var(--field);
  color:var(--gold);
  font:10px var(--mono)
}
.workspace-empty{
  padding:44px 24px;
  border:1px dashed var(--line);
  border-radius:7px;
  text-align:center;
  background:var(--panel)
}
.workspace-empty h3{
  margin:8px 0
}
.workspace-empty p{
  max-width:520px;
  margin:0 auto;
  color:var(--muted);
  font-size:12px;
  line-height:1.55
}
.workspace-next{
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap:18px;
  margin-top:14px;
  padding:15px 16px;
  border:1px solid var(--line);
  border-left:3px solid var(--gold);
  border-radius:6px;
  background:var(--panel)
}
.workspace-next b,
.workspace-next small{
  display:block
}
.workspace-next b{margin-top:5px}
.workspace-next small{
  margin-top:4px;
  color:var(--muted);
  font-size:10px
}
.director-details{
  margin-top:12px;
  border:1px solid var(--line);
  border-radius:6px;
  background:var(--panel)
}
.director-details summary{
  padding:13px 15px;
  cursor:pointer;
  color:var(--gold);
  font:10px var(--mono)
}
.workspace-scene-grid{
  display:grid;
  grid-template-columns:repeat(auto-fit,minmax(190px,1fr));
  gap:10px;
  margin-top:13px
}
.workspace-scene-grid article{
  padding:14px;
  border:1px solid var(--line);
  border-radius:6px;
  background:var(--panel)
}
.workspace-scene-grid span{
  color:var(--gold);
  font:8.5px var(--mono)
}
.workspace-scene-grid b{
  display:block;
  margin-top:6px;
  font-size:12px
}
.workspace-scene-grid p{
  margin:7px 0;
  font-size:10.5px;
  line-height:1.4
}
.workspace-scene-grid small{
  color:var(--muted);
  font-size:9.5px;
  line-height:1.4
}
.workspace-scene-stack{
  display:grid;
  gap:16px
}
.workspace-scene-deliverable{
  padding:16px;
  border:1px solid var(--line);
  border-radius:7px;
  background:var(--panel)
}
.workspace-scene-heading{
  padding:0 2px 13px
}
.workspace-scene-heading span{
  color:var(--gold);
  font:8.5px var(--mono)
}
.workspace-scene-heading h3{
  margin:5px 0;
  font-size:18px
}
.workspace-scene-heading p{
  margin:0;
  color:var(--muted);
  font-size:10.5px
}
.workspace-scene-heading small{
  display:block;
  margin-top:5px;
  color:var(--muted);
  font-size:9.5px
}
.export-workspace-card{
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap:20px;
  padding:22px;
  border:1px solid var(--line);
  border-left:3px solid var(--gold);
  border-radius:7px;
  background:var(--panel)
}
.export-workspace-card h3{
  margin:7px 0;
  font-size:22px
}
.export-workspace-card p{
  margin:0;
  color:var(--muted);
  font-size:11px
}
@media(max-width:1100px){
  .workspace-topbar{
    display:block
  }
  .workspace-meta{
    margin-top:12px;
    justify-content:flex-start;
    overflow-x:auto
  }
}
@media(max-width:850px){
  .production-workspace{
    grid-template-columns:1fr
  }
  .workspace-nav{
    display:grid;
    grid-template-columns:repeat(4,minmax(0,1fr));
    border-right:0;
    border-bottom:1px solid var(--line)
  }
  .workspace-nav-head,
  .workspace-nav-foot{
    display:none
  }
  .workspace-nav-item{
    grid-template-columns:1fr;
    gap:5px;
    justify-items:center;
    border-left:0;
    border-bottom:2px solid transparent;
    text-align:center
  }
  .workspace-nav-item.active{
    border-bottom-color:var(--gold)
  }
  .workspace-nav-item small{
    display:none
  }
}
@media(max-width:650px){
  .workspace-canvas{
    padding:14px
  }
  .workspace-nav{
    grid-template-columns:repeat(2,minmax(0,1fr))
  }
  .workspace-topbar h1{
    font-size:32px
  }
  .workspace-panel-head,
  .workspace-next,
  .export-workspace-card{
    display:block
  }
  .workspace-panel-head button,
  .workspace-next button,
  .export-workspace-card button{
    width:100%;
    margin-top:13px
  }
  .workspace-meta>span{
    min-width:92px
  }
}


/* FIX V5.1.4b */
.hidden{display:none!important}


/* ===== STORY UX 1.1 · ESCENAS COMPACTAS ===== */
.scene-switcher{display:grid;gap:14px}
.scene-switcher-tabs{
  display:flex;
  gap:7px;
  overflow-x:auto;
  padding-bottom:4px;
  scrollbar-width:thin
}
.scene-switcher-tab{
  flex:0 0 auto;
  width:auto;
  min-width:92px;
  padding:9px 12px;
  border:1px solid var(--line);
  border-radius:5px;
  background:var(--field);
  color:var(--muted);
  text-transform:none;
  letter-spacing:0;
  font:600 10.5px var(--body)
}
.scene-switcher-tab:hover{border-color:#75633e;color:var(--text)}
.scene-switcher-tab.active{
  border-color:var(--gold);
  background:rgba(209,168,78,.09);
  color:var(--gold)
}
.scene-switcher-content{min-width:0}
.scene-switcher-panel{display:none;margin:0}
.scene-switcher-panel.active{display:block}
@media(max-width:650px){
  .scene-switcher-tab{min-width:82px;padding:8px 10px}
}


/* ===== STORY UX 1.1 · VARIANTES POR FAMILIA ===== */
.variant-family-tabs{
  display:flex;
  gap:7px;
  overflow-x:auto;
  padding-bottom:5px
}
.variant-family-tab{
  flex:0 0 auto;
  width:auto;
  padding:9px 12px;
  border:1px solid var(--line);
  border-radius:5px;
  background:var(--field);
  color:var(--muted);
  text-transform:none;
  letter-spacing:0;
  font:600 10.5px var(--body)
}
.variant-family-tab.active{
  border-color:var(--gold);
  background:rgba(209,168,78,.09);
  color:var(--gold)
}
.variant-family-panels{margin-top:14px}
.variant-family-panel{
  display:none;
  padding:18px;
  border:1px solid var(--line);
  border-radius:7px;
  background:var(--panel)
}
.variant-family-panel.active{display:block}
.variant-family-heading h3{margin:0 0 5px}
.variant-family-heading p{
  margin:0 0 14px;
  color:var(--muted);
  font-size:10.5px
}


/* ===== STORY UX 1.2 · FLUJO DE PRODUCCIÓN CLARO ===== */
.variant-origin-pill{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-height:34px;
  padding:8px 11px;
  border:1px solid rgba(110,158,216,.45);
  border-radius:20px;
  background:rgba(110,158,216,.08);
  color:#8db7e6;
  font:9px var(--mono);
  white-space:nowrap
}
.workspace-meta>.button{
  min-height:100%;
  align-self:stretch;
  border-radius:0;
  border-top:0;
  border-bottom:0;
  white-space:nowrap
}
@media(max-width:1100px){
  .workspace-meta>.button{
    min-height:auto;
    align-self:auto;
    border:1px solid var(--line);
    border-radius:4px
  }
}
