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

:root{
  --black:#000;
  --ink:#111;
  --dark:#222;
  --grey:#555;
  --muted:#777;
  --light:#999;
  --paper:#fafafa;
  --white:#fff;

  --yellow:#FFF2A8;
  --green:#CFF5D2;
  --pink:#FFD6E7;
  --blue:#D9EFFF;
  --purple:#E7D8FF;
  --peach:#FFDDB8;
  --mint:#CDEFEA;
  --soft-grey:#E5E5E5;

  --border:3px solid #000;
  --thin:2px solid #000;
  --shadow:4px 4px 0 #000;
  --font:"Fira Code",monospace;

  /* ANN-specific semantic colours, kept deliberately soft */
  --input-color:#1687a7;
  --hidden-color:#7651b8;
  --output-color:#268b58;
  --accent-blue:#2675c9;
  --accent-purple:#7651b8;
  --accent-green:#268b58;
  --accent-amber:#b46b00;
}

*{box-sizing:border-box}
html,body{margin:0;padding:0}
html{scroll-behavior:smooth}

body{
  min-width:0;
  overflow-x:hidden;
  color:var(--ink);
  background:
    radial-gradient(circle at 8% 12%,rgba(0,0,0,.025),transparent 18rem),
    radial-gradient(circle at 92% 55%,rgba(0,0,0,.025),transparent 22rem),
    var(--paper);
  font-family:var(--font);
  line-height:1.6;
  -webkit-font-smoothing:antialiased;
}

button,input,textarea,select{font:inherit}
button{color:inherit}
h1,h2,h3,p{margin-top:0}
h1,h2,h3{line-height:1.2}
p{margin-bottom:8px}

/* =========================================================
   HEADER
   ========================================================= */
.app-header{
  position:sticky;
  top:0;
  z-index:50;
  display:flex;
  align-items:center;
  justify-content:space-between;
  flex-wrap:wrap;
  gap:12px 20px;
  padding:15px clamp(14px,3vw,34px);
  background:rgba(250,250,250,.96);
  border-bottom:var(--border);
  box-shadow:none;
}

.header-left{
  display:flex;
  align-items:center;
  gap:14px;
  flex-wrap:wrap;
}

.header-left h1{
  position:relative;
  margin:0;
  display:inline-block;
  padding:3px 7px;
  font-size:clamp(17px,2vw,23px);
  font-weight:800;
  letter-spacing:-.04em;
  z-index:0;
}

.header-left h1::before{
  content:"";
  position:absolute;
  left:-2px;
  right:-5px;
  bottom:2px;
  height:10px;
  background:var(--yellow);
  transform:rotate(-1deg);
  z-index:-1;
}

.subtitle{
  color:var(--grey);
  font-size:12px;
  font-weight:500;
}

.header-right{
  display:flex;
  align-items:center;
  gap:13px;
  flex-wrap:wrap;
}

.tooltip-toggle{
  display:flex;
  align-items:center;
  gap:7px;
  color:var(--grey);
  font-size:12px;
  cursor:pointer;
}

.tooltip-toggle input{
  accent-color:#000;
}

.play-pause-btn{
  display:flex;
  align-items:center;
  gap:7px;
  padding:9px 14px;
  color:#000;
  background:var(--yellow);
  border:var(--border);
  border-radius:3px 5px 4px 2px;
  box-shadow:3px 3px 0 #000;
  cursor:pointer;
  font-size:12px;
  font-weight:800;
  transform:rotate(-.3deg);
  transition:transform .12s ease,box-shadow .12s ease;
}

.play-pause-btn:hover{
  transform:translate(-1px,-1px) rotate(-.3deg);
  box-shadow:4px 4px 0 #000;
}

/* =========================================================
   MAIN LAYOUT
   ========================================================= */
.app-body{
  width:min(1540px,94%);
  margin:0 auto;
  display:grid;
  grid-template-columns:minmax(270px,320px) minmax(0,1fr);
  gap:24px;
  padding:24px 0 34px;
  align-items:start;
}

.sidebar,
.workspace{
  display:flex;
  flex-direction:column;
  gap:18px;
  min-width:0;
}

/* =========================================================
   GENERIC PAPER PANELS
   ========================================================= */
.panel,
.status-strip,
.ann-visual-wrapper,
.explanation-banner,
.current-example-panel,
.learning-details-panel,
.prediction-area,
.summary-panel,
.node-formula{
  position:relative;
  min-width:0;
  padding:18px;
  color:var(--ink);
  background:var(--white);
  border:var(--border);
  border-radius:2px 5px 3px 2px;
  box-shadow:var(--shadow);
}

/* Slight hand-drawn accent line */
.panel::after,
.explanation-banner::after,
.current-example-panel::after,
.prediction-area::after,
.summary-panel::after{
  content:"";
  position:absolute;
  left:10px;
  right:14px;
  top:-5px;
  height:2px;
  background:#000;
  transform:rotate(.15deg);
  opacity:.7;
  pointer-events:none;
}

.panel h2,
.explanation-banner h2,
.current-example-panel h2,
.prediction-area h2,
.summary-panel h2{
  position:relative;
  display:inline-block;
  margin:0 0 14px;
  padding:2px 6px;
  border:0;
  color:#000;
  font-size:15px;
  font-weight:800;
  letter-spacing:-.025em;
  z-index:0;
}

.panel h2::before,
.explanation-banner h2::before,
.current-example-panel h2::before,
.prediction-area h2::before,
.summary-panel h2::before{
  content:"";
  position:absolute;
  left:-3px;
  right:-6px;
  bottom:1px;
  height:8px;
  background:var(--blue);
  transform:rotate(-1deg);
  z-index:-1;
}

.panel-note{
  color:var(--grey);
  font-size:11.5px;
  line-height:1.65;
}

.panel-note.small{
  font-size:10.5px;
}

.panel-tag{
  display:inline-block;
  margin:0 0 12px;
  padding:5px 8px;
  color:#000;
  background:var(--green);
  border:2px solid #000;
  border-radius:2px;
  font-size:9.5px;
  font-weight:800;
  line-height:1.35;
  transform:rotate(-.4deg);
}

.fixed-io-note{
  margin:13px 0;
  padding:10px 11px;
  color:var(--dark);
  background:#f5f5f5;
  border:2px dashed #000;
  border-radius:2px;
  font-size:10.5px;
  line-height:1.65;
}

.fixed-io-note strong{font-weight:800}

/* =========================================================
   FORM FIELDS
   ========================================================= */
.field-row{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:10px;
  margin-bottom:11px;
  color:var(--grey);
  font-size:11.5px;
}

.field-row label{
  display:flex;
  align-items:center;
  gap:6px;
}

.field-row input[type="number"]{
  width:82px;
  min-width:0;
  padding:6px 7px;
  color:#000;
  background:#fff;
  border:2px solid #000;
  border-radius:2px;
  outline:none;
}

.field-row input[type="number"]:focus{
  box-shadow:3px 3px 0 var(--yellow);
}

.field-row input[type="range"]{
  flex:1;
  min-width:70px;
  margin-left:8px;
  accent-color:#000;
  cursor:pointer;
}

.hint{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  width:16px;
  height:16px;
  flex:0 0 16px;
  color:#000;
  background:var(--yellow);
  border:2px solid #000;
  border-radius:50%;
  font-size:9px;
  font-weight:800;
  cursor:help;
}

/* =========================================================
   BUTTONS
   ========================================================= */
.btn{
  width:100%;
  margin-bottom:8px;
  padding:9px 12px;
  color:#000;
  background:#fff;
  border:var(--border);
  border-radius:2px 4px 2px 3px;
  box-shadow:3px 3px 0 #000;
  cursor:pointer;
  font-size:10.5px;
  font-weight:800;
  line-height:1.3;
  transition:transform .12s ease,box-shadow .12s ease,background .12s ease;
}

.btn:hover:not(:disabled){
  transform:translate(-1px,-1px);
  box-shadow:4px 4px 0 #000;
}

.btn:active:not(:disabled){
  transform:translate(2px,2px);
  box-shadow:1px 1px 0 #000;
}

.btn:disabled{
  opacity:.42;
  cursor:not-allowed;
  box-shadow:2px 2px 0 #777;
}

.btn-primary{
  background:var(--yellow);
}

.btn-secondary{
  background:var(--white);
}

.btn-ghost{
  background:var(--peach);
}

.btn-danger{
  background:var(--pink);
}

.button-stack{display:flex;flex-direction:column}
.button-row{display:flex;gap:8px;margin-bottom:8px}
.button-row .btn{margin-bottom:0}

.limit-msg{
  min-height:15px;
  margin-top:2px;
  color:#8b5200;
  font-size:10px;
  font-weight:600;
}

.init-msg{
  min-height:16px;
  margin-top:8px;
  color:#17683f;
  font-size:10.5px;
  font-weight:700;
}

.experiment-box{
  margin-top:14px;
  padding-top:13px;
  border-top:2px dashed #000;
}

/* =========================================================
   DATASET TABLE
   ========================================================= */
.table-scroll{
  width:100%;
  margin-bottom:10px;
  overflow-x:auto;
  scrollbar-width:thin;
}

.dataset-table{
  width:100%;
  min-width:270px;
  border-collapse:collapse;
  color:#000;
  font-size:10px;
}

.dataset-table th{
  padding:7px 3px;
  color:#000;
  background:var(--blue);
  border:2px solid #000;
  font-size:9px;
  font-weight:800;
  text-align:center;
}

.dataset-table th.col-remove{width:28px}

.dataset-table td{
  padding:4px 3px;
  border-bottom:1px solid #bbb;
  text-align:center;
}

.dataset-table input{
  width:100%;
  min-width:0;
  padding:5px 2px;
  color:#000;
  background:#fff;
  border:2px solid #000;
  border-radius:1px;
  text-align:center;
  font-size:10px;
}

.dataset-table input:focus{
  outline:none;
  background:var(--yellow);
}

.dataset-table input.invalid{border-color:#b40000;background:var(--pink)}

.remove-row-btn{
  width:22px;
  height:22px;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  padding:0;
  color:#000;
  background:var(--pink);
  border:2px solid #000;
  border-radius:2px;
  cursor:pointer;
  font-size:13px;
  line-height:1;
}

.remove-row-btn:hover:not(:disabled){box-shadow:2px 2px 0 #000}
.remove-row-btn:disabled{opacity:.35;cursor:not-allowed}

.dataset-row-buttons{
  display:flex;
  gap:8px;
}

.dataset-row-buttons .btn{
  flex:1;
  margin-bottom:0;
}

/* =========================================================
   STATUS STRIP
   ========================================================= */
.status-strip{
  display:grid;
  grid-template-columns:repeat(4,minmax(0,1fr));
  gap:10px;
  padding:12px;
  background:#fff;
}

.status-card{
  min-width:0;
  padding:10px 8px;
  background:#fff;
  border:2px solid #000;
  border-radius:2px;
  text-align:center;
}

.status-card:nth-child(1){background:var(--yellow)}
.status-card:nth-child(2){background:var(--blue)}
.status-card:nth-child(3){background:var(--green)}
.status-card:nth-child(4){background:var(--purple)}

.status-label{
  display:block;
  margin-bottom:4px;
  color:#444;
  font-size:9px;
  font-weight:600;
  line-height:1.3;
}

.status-value{
  display:block;
  overflow-wrap:anywhere;
  color:#000;
  font-size:14px;
  font-weight:800;
  line-height:1.25;
}

/* =========================================================
   ANN VISUAL
   ========================================================= */
.ann-visual-wrapper{
  min-height:440px;
  display:flex;
  align-items:stretch;
  gap:14px;
  padding:14px;
  background:
    linear-gradient(rgba(0,0,0,.025) 1px,transparent 1px),
    linear-gradient(90deg,rgba(0,0,0,.025) 1px,transparent 1px),
    #fff;
  background-size:28px 28px;
}

#networkSvg{
  flex:1 1 0%;
  width:100%;
  min-width:0;
  height:440px;
  display:block;
  overflow:visible;
}

/* SVG styling */
.node,
.node-small,
.node-label,
.node-label-sub,
.bias-label{
  font-family:var(--font);
}

.node{fill:#111;font-weight:600}
.node-small{fill:#666}

.node-circle{
  stroke-width:3px;
  cursor:pointer;
  vector-effect:non-scaling-stroke;
}

.node-circle.input-node{
  fill:var(--blue);
  stroke:var(--input-color);
}

.node-circle.hidden-node{
  fill:var(--purple);
  stroke:var(--hidden-color);
}

.node-circle.output-node{
  fill:var(--green);
  stroke:var(--output-color);
}

.node-circle:hover{
  filter:none;
  stroke-width:4px;
}

.node-circle.active-node{
  filter:drop-shadow(3px 3px 0 #000);
}

.node-label{
  font-size:11px;
  fill:#000;
  text-anchor:middle;
  pointer-events:none;
  font-weight:800;
}

.node-label-sub{
  font-size:10px;
  fill:#555;
  text-anchor:middle;
  pointer-events:none;
  font-weight:600;
}

.bias-label{
  font-size:10px;
  fill:#8a5300;
  text-anchor:middle;
  pointer-events:none;
  paint-order:stroke;
  stroke:#fff;
  stroke-width:4px;
  stroke-linejoin:round;
  font-weight:700;
}

.weight-label{
  font-size:9px;
  fill:#444;
  text-anchor:middle;
  pointer-events:none;
  paint-order:stroke;
  stroke:#fff;
  stroke-width:4px;
  stroke-linejoin:round;
  font-weight:600;
}

.conn-line{
  stroke:#999;
  stroke-width:1.6;
  fill:none;
  vector-effect:non-scaling-stroke;
}

.conn-line.phase-forward{
  stroke:var(--accent-blue);
  stroke-width:3;
}

.conn-line.phase-backprop{
  stroke:var(--accent-purple);
  stroke-width:3;
}

.signal-dot.forward{fill:var(--accent-blue)}
.signal-dot.backprop{fill:var(--accent-purple)}

.learning-meter{
  flex:0 0 auto;
  align-self:flex-start;
  display:flex;
  flex-direction:column;
  align-items:center;
  gap:4px;
  padding:8px 7px;
  background:#fff;
  border:2px solid #000;
  border-radius:2px;
  box-shadow:2px 2px 0 #000;
}

.learning-meter-track{
  width:14px;
  height:130px;
  display:flex;
  flex-direction:column-reverse;
  overflow:hidden;
  background:#eee;
  border:2px solid #000;
  border-radius:1px;
}

.learning-meter-fill{
  width:100%;
  height:0;
  background:var(--green);
  border-top:2px solid #000;
  transition:height .4s ease;
}

.learning-meter-label{
  color:#000;
  font-size:10px;
  font-weight:800;
}

.learning-meter-caption{
  color:#555;
  font-size:8px;
}

.learning-meter.complete .learning-meter-fill{
  background:var(--green);
}

/* =========================================================
   NODE FORMULA
   ========================================================= */
.node-formula{
  padding:14px 18px;
  background:var(--yellow);
  text-align:center;
  color:#000;
  font-size:13px;
  font-weight:800;
}

.formula-note{
  display:block;
  margin-top:5px;
  color:#555;
  font-size:9.5px;
  font-weight:500;
}

/* =========================================================
   PHASE / EXPLANATION
   ========================================================= */
.phase-tracker{
  display:flex;
  gap:8px;
  flex-wrap:wrap;
  margin-bottom:13px;
}

.phase-step{
  flex:1 1 120px;
  min-width:100px;
  display:flex;
  flex-direction:column;
  align-items:center;
  gap:5px;
  padding:8px 6px;
  color:#555;
  background:#fff;
  border:2px solid #000;
  border-radius:2px;
  font-size:10px;
  font-weight:700;
  text-align:center;
}

.phase-num{
  width:21px;
  height:21px;
  display:flex;
  align-items:center;
  justify-content:center;
  background:#eee;
  border:2px solid #000;
  border-radius:50%;
  color:#000;
  font-size:9px;
  font-weight:800;
}

.phase-step.active{
  color:#000;
  background:var(--blue);
  border-color:#000;
  box-shadow:3px 3px 0 #000;
}

.phase-step.active .phase-num{
  background:var(--yellow);
}

.phase-step[data-phase="backprop"].active{
  background:var(--purple);
}

.phase-step[data-phase="update"].active{
  background:var(--green);
}

.banner-text{
  min-height:20px;
  color:#333;
  font-size:11.5px;
  line-height:1.65;
}

/* =========================================================
   CURRENT EXAMPLE
   ========================================================= */
.current-example-grid{
  display:flex;
  align-items:center;
  gap:9px;
  flex-wrap:wrap;
  justify-content:space-between;
}

.ce-item{
  min-width:90px;
  flex:1;
  padding:9px 10px;
  background:#fff;
  border:2px solid #000;
  border-radius:2px;
  text-align:center;
}

.ce-item:nth-child(1),
.ce-item:nth-child(2){background:var(--blue)}
.ce-item:nth-child(4){background:var(--yellow)}
.ce-item:nth-child(6){background:var(--green)}

.ce-arrow{
  flex:0 0 auto;
  min-width:35px;
  background:#fff !important;
  border:0;
  font-size:15px;
  font-weight:800;
  box-shadow:none;
}

.ce-label{
  display:block;
  margin-bottom:3px;
  color:#555;
  font-size:8.5px;
  font-weight:600;
}

.ce-value{
  display:block;
  overflow-wrap:anywhere;
  color:#000;
  font-size:13px;
  font-weight:800;
}

/* =========================================================
   LEARNING DETAILS
   ========================================================= */
.learning-details-panel{
  padding:17px;
}

.learning-grid{
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:12px;
}

.detail-card{
  min-width:0;
  padding:13px;
  overflow-wrap:break-word;
  background:#fff;
  border:2px solid #000;
  border-radius:2px;
}

.detail-card:nth-child(1){background:var(--blue)}
.detail-card:nth-child(2){background:var(--yellow)}
.detail-card:nth-child(3){background:var(--green)}

.detail-card h3{
  display:flex;
  align-items:center;
  gap:6px;
  margin-bottom:8px;
  color:#000;
  font-size:11px;
  line-height:1.35;
}

.detail-hint{
  margin-bottom:8px;
  color:#555;
  font-size:9px;
}

.inspector-content{
  color:#222;
  font-size:10px;
  line-height:1.7;
}

.placeholder-text{
  color:#777;
  font-style:italic;
}

.calc-line{
  display:flex;
  justify-content:space-between;
  gap:8px;
  padding:2px 0;
  border-bottom:1px dashed #888;
}

.calc-line:last-child{border-bottom:0}
.calc-result{color:#17683f;font-weight:800}

.ba-row{
  display:flex;
  justify-content:space-between;
  gap:8px;
  margin-bottom:4px;
}

.ba-before{color:#666}
.ba-after{color:#000;font-weight:800}
.ba-change{color:#8a5300;font-weight:800}

/* =========================================================
   PREDICTION
   ========================================================= */
.prediction-inputs{
  display:flex;
  align-items:flex-end;
  gap:13px;
  flex-wrap:wrap;
  margin-bottom:10px;
}

.prediction-inputs .field-row{
  flex-direction:column;
  align-items:flex-start;
  gap:4px;
  margin-bottom:0;
}

.prediction-inputs .field-row input{
  width:110px;
}

.prediction-inputs .btn{
  width:auto;
  margin-bottom:0;
  padding:10px 17px;
}

.prediction-result{
  min-height:34px;
  margin:8px 0;
  color:#000;
  font-size:23px;
  font-weight:800;
}

.prediction-result.poor-result{
  color:#8a5300;
  font-size:12px;
  font-weight:700;
}

.disclaimer{
  margin-top:6px;
  color:#666;
  font-size:9.5px;
  line-height:1.6;
}

/* =========================================================
   SUMMARY / FOOTER
   ========================================================= */
.summary-panel{
  background:var(--mint);
}

.summary-panel p{
  margin-bottom:0;
  color:#222;
  font-size:10.5px;
  line-height:1.7;
}

footer.app-footer.igcs-footer{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:var(--igcs-space-4);
  padding:calc(var(--igcs-space-5) - 11px) clamp(16px,3vw,34px);
  border-top:var(--igcs-border);
  background:var(--igcs-white);
  color:var(--igcs-grey);
  font-size:14px;
}

/* =========================================================
   TOOLTIP
   ========================================================= */
.global-tooltip{
  position:fixed;
  z-index:999;
  pointer-events:none;
  max-width:250px;
  padding:8px 10px;
  color:#000;
  background:var(--yellow);
  border:2px solid #000;
  border-radius:2px;
  box-shadow:3px 3px 0 #000;
  font-size:9.5px;
  line-height:1.5;
  opacity:0;
  transition:opacity .12s ease;
}

.global-tooltip.visible{opacity:1}

/* =========================================================
   RESPONSIVE
   ========================================================= */
@media(max-width:1100px){
  .app-body{
    grid-template-columns:280px minmax(0,1fr);
    gap:18px;
  }

  .learning-grid{
    grid-template-columns:repeat(2,minmax(0,1fr));
  }

  #networkSvg{
    height:410px;
  }
}

@media(max-width:820px){
  .app-header{
    position:relative;
  }

  .app-body{
    width:94%;
    grid-template-columns:1fr;
    padding:18px 0 28px;
  }

  .sidebar{
    display:grid;
    grid-template-columns:repeat(2,minmax(0,1fr));
    align-items:start;
  }

  .sidebar #trainPanel{
    grid-column:1/-1;
  }

  .status-strip{
    grid-template-columns:repeat(2,minmax(0,1fr));
  }

  .learning-grid{
    grid-template-columns:1fr;
  }

  .ann-visual-wrapper{
    min-height:390px;
  }

  #networkSvg{
    height:390px;
  }
}

@media(max-width:600px){
  .app-header{
    align-items:flex-start;
    padding:12px 14px;
  }

  .header-left{
    gap:8px 10px;
  }

  .header-left h1{
    font-size:16px;
  }

  .subtitle{
    width:100%;
    font-size:10px;
  }

  .header-right{
    width:100%;
    justify-content:space-between;
  }

  .app-body{
    width:94%;
    padding-top:14px;
  }

  .sidebar{
    display:flex;
  }

  .panel,
  .status-strip,
  .ann-visual-wrapper,
  .explanation-banner,
  .current-example-panel,
  .learning-details-panel,
  .prediction-area,
  .summary-panel,
  .node-formula{
    padding:14px;
    box-shadow:3px 3px 0 #000;
  }

  .status-strip{
    gap:7px;
    padding:9px;
  }

  .status-card{
    padding:8px 5px;
  }

  .status-value{
    font-size:12px;
  }

  .ann-visual-wrapper{
    min-height:330px;
    gap:7px;
    padding:8px;
    background-size:20px 20px;
  }

  #networkSvg{
    height:320px;
  }

  .learning-meter{
    padding:5px 4px;
  }

  .learning-meter-track{
    height:90px;
    width:12px;
  }

  .node-label{
    font-size:11px;
  }

  .node-label-sub{
    font-size:9px;
  }

  .bias-label{
    font-size:9px;
  }

  .weight-label{
    font-size:8px;
  }

  .phase-step{
    min-width:calc(50% - 5px);
    flex-basis:calc(50% - 5px);
  }

  .current-example-grid{
    display:grid;
    grid-template-columns:1fr 34px 1fr;
    gap:7px;
  }

  .ce-item{
    min-width:0;
  }

  .ce-item:nth-child(1){grid-column:1}
  .ce-item:nth-child(2){grid-column:3}
  .ce-item:nth-child(3){grid-column:2;grid-row:2}
  .ce-item:nth-child(4){grid-column:1;grid-row:2}
  .ce-item:nth-child(5){grid-column:2;grid-row:3}
  .ce-item:nth-child(6){grid-column:3;grid-row:3}

  .prediction-inputs{
    align-items:stretch;
  }

  .prediction-inputs .field-row{
    flex:1;
  }

  .prediction-inputs .field-row input{
    width:100%;
  }

  .prediction-inputs .btn{
    width:100%;
  }

  footer.app-footer.igcs-footer{
    align-items:flex-start;
    flex-direction:column;
  }
}

@media(max-width:390px){
  .app-body{
    width:95%;
  }

  .header-right{
    gap:8px;
  }

  .play-pause-btn{
    padding:8px 10px;
  }

  .ann-visual-wrapper{
    min-height:285px;
  }

  #networkSvg{
    height:275px;
  }

  .learning-meter-track{
    height:75px;
  }

  .status-label{
    font-size:8px;
  }

  .status-value{
    font-size:11px;
  }

  .phase-step{
    font-size:9px;
  }

  .node-formula{
    font-size:11px;
  }
}

/* =========================================================
   PRINT
   ========================================================= */
@media print{
  .app-header{
    position:static;
  }

  .app-body{
    width:100%;
    display:block;
    padding:10px;
  }

  .sidebar,
  .workspace{
    gap:12px;
  }

  .panel,
  .status-strip,
  .ann-visual-wrapper,
  .explanation-banner,
  .current-example-panel,
  .learning-details-panel,
  .prediction-area,
  .summary-panel,
  .node-formula{
    box-shadow:none;
    break-inside:avoid;
  }
}
