:root{
  --planner-gap:30px;
  --planner-radius-xl:34px;
  --planner-radius-lg:26px;
  --planner-radius-md:18px;
  --planner-surface:#f7f9fb;
  --planner-surface-strong:#ffffff;
  --planner-border:rgba(58,72,87,.10);
  --planner-shadow:0 20px 52px rgba(38,49,64,.12);
  --planner-shadow-soft:0 10px 28px rgba(38,49,64,.08);
}

/* Keep the generator airy and visually separated from the page background. */
body.depth-design .planner-page{
  padding-bottom:48px;
}

body.depth-design .planner-layout{
  width:min(100%,1720px);
  margin:0 auto;
  grid-template-columns:minmax(320px,360px) minmax(0,1fr) minmax(250px,290px);
  gap:var(--planner-gap);
  padding:30px clamp(22px,3vw,46px) 58px;
}

body.depth-design .planner-form-panel,
body.depth-design .planner-insights{
  overflow:hidden;
  border:1px solid var(--planner-border);
  border-radius:var(--planner-radius-xl);
  background:linear-gradient(150deg,rgba(255,255,255,.96),rgba(238,243,247,.92));
  box-shadow:var(--planner-shadow);
}

body.depth-design .planner-form-panel{
  top:104px;
  padding:30px 28px 32px;
}

body.depth-design .planner-form-panel::before,
body.depth-design .planner-insights::before{
  content:"";
  display:block;
  width:72px;
  height:5px;
  margin:0 0 22px;
  border-radius:999px;
  background:linear-gradient(90deg,#6d3df5,#f64e8b,#ff9a3d);
  box-shadow:0 5px 14px rgba(109,61,245,.18);
}

body.depth-design .planner-form-panel h1,
body.depth-design .planner-insights h2{
  letter-spacing:-.03em;
}

body.depth-design .planner-form-panel>p{
  margin-bottom:26px;
}

body.depth-design .planner-form{
  gap:18px;
}

body.depth-design .planner-form label{
  gap:9px;
}

body.depth-design .form-pair{
  gap:14px;
}

body.depth-design .planner-form input,
body.depth-design .planner-form select,
body.depth-design .planner-form textarea{
  min-height:50px;
  border-radius:16px;
  padding:12px 14px;
}

body.depth-design .planner-form textarea{
  min-height:112px;
}

body.depth-design .planner-form .btn.primary.full{
  min-height:54px;
  margin-top:4px;
  border-radius:18px;
  box-shadow:0 14px 30px rgba(91,43,224,.24);
}

/* The central area is an open canvas, not another heavy card around the document. */
body.depth-design .lesson-document-shell{
  padding:0;
  border:0;
  border-radius:0;
  background:transparent;
  box-shadow:none;
}

body.depth-design .generator-empty-state{
  min-height:640px;
  padding:12px;
  border-radius:var(--planner-radius-xl);
  background:rgba(255,255,255,.36);
}

body.depth-design .generator-start-card{
  width:min(100%,780px);
  padding:62px clamp(26px,5vw,66px);
  border:1px solid rgba(255,255,255,.78);
  border-radius:38px;
  background:linear-gradient(150deg,rgba(255,255,255,.98),rgba(235,240,244,.94));
  box-shadow:0 24px 62px rgba(44,55,70,.13),inset 0 1px 0 rgba(255,255,255,.94);
}

body.depth-design .generator-start-icon{
  width:88px;
  height:88px;
  border-radius:28px;
  background:linear-gradient(145deg,#7448ef,#5a2bcf 58%,#a82d70);
  box-shadow:0 16px 32px rgba(85,45,177,.27),inset 0 1px 1px rgba(255,255,255,.38);
}

body.depth-design .generator-start-icon svg{
  width:42px;
  height:42px;
  fill:none;
  stroke:currentColor;
  stroke-width:1.8;
  stroke-linecap:round;
  stroke-linejoin:round;
}

body.depth-design .generator-start-steps{
  gap:16px;
  margin-top:34px;
}

body.depth-design .generator-start-steps span{
  min-height:76px;
  display:grid;
  place-items:center;
  padding:18px 16px;
  border-radius:20px;
  border:1px solid rgba(67,81,96,.08);
  background:rgba(255,255,255,.68);
  box-shadow:0 9px 22px rgba(54,65,79,.07),inset 0 1px 0 rgba(255,255,255,.92);
}

/* Generated document reads as one polished paper canvas with softer internal grouping. */
body.depth-design .lesson-document{
  border-radius:30px;
  border-color:rgba(182,173,158,.48);
  box-shadow:0 24px 58px rgba(48,54,62,.15),0 3px 0 rgba(218,208,191,.9);
}

body.depth-design .lesson-document-header{
  padding:30px 32px;
  border-radius:30px 30px 0 0;
}

body.depth-design .lesson-section{
  margin:0 28px 22px;
  padding:24px 26px;
  border:1px solid rgba(121,112,96,.10);
  border-radius:22px;
  background:rgba(255,255,255,.62);
  box-shadow:0 9px 22px rgba(77,71,61,.06),inset 0 1px 0 rgba(255,255,255,.9);
}

body.depth-design .lesson-section h3{
  margin-bottom:14px;
}

body.depth-design .objective-grid,
body.depth-design .two-column-sections,
body.depth-design .support-grid{
  gap:18px;
}

body.depth-design .objective-grid article{
  padding:20px;
  border:1px solid rgba(91,65,145,.10);
  border-radius:18px;
  background:linear-gradient(145deg,rgba(251,249,255,.94),rgba(242,238,250,.76));
  box-shadow:none;
}

body.depth-design .objective-grid article:nth-child(2){
  border-color:rgba(8,103,95,.12);
  background:linear-gradient(145deg,rgba(247,255,253,.94),rgba(232,246,242,.78));
}

body.depth-design .objective-grid article:nth-child(3){
  border-color:rgba(169,109,18,.12);
  background:linear-gradient(145deg,rgba(255,252,244,.95),rgba(248,239,217,.78));
}

body.depth-design .support-grid .lesson-section{
  margin:0;
  border-radius:22px;
  box-shadow:none;
}

body.depth-design .table-wrap{
  overflow:hidden;
  border-radius:18px;
}

body.depth-design .lesson-flow-table{
  border-radius:18px;
}

body.depth-design .lesson-flow-table th,
body.depth-design .lesson-flow-table td{
  padding:17px 16px;
}

body.depth-design .time-validation{
  margin:4px 28px 30px;
  padding:18px 20px;
  border-radius:18px;
}

/* The checklist is a calm side panel instead of a stack of competing boxes. */
body.depth-design .planner-insights{
  top:104px;
  padding:28px 24px 26px;
}

body.depth-design .planner-insights .insight-row{
  margin:0;
  padding:15px 2px;
  border:0;
  border-bottom:1px solid rgba(63,78,92,.11);
  border-radius:0;
  background:transparent;
  box-shadow:none;
}

body.depth-design .planner-insights .insight-row:last-of-type{
  border-bottom:0;
}

body.depth-design .insight-tip{
  margin-top:22px;
  padding:18px;
  border:1px solid rgba(79,39,201,.10);
  border-radius:20px;
  background:linear-gradient(145deg,rgba(246,242,255,.92),rgba(235,241,246,.84));
  box-shadow:0 9px 22px rgba(55,45,85,.07);
}

/* Consistent, refined line-icon treatment. */
body.depth-design :is(.btn,.site-nav a,.document-actions button) svg{
  flex:none;
  width:19px;
  height:19px;
  stroke-linecap:round;
  stroke-linejoin:round;
}

body.depth-design .btn svg{
  padding:2px;
  border-radius:7px;
}

body.depth-design .btn.primary svg{
  background:rgba(255,255,255,.15);
}

body.depth-design .btn.light svg,
body.depth-design .btn.ghost svg{
  background:rgba(79,39,201,.08);
  color:#5b31c9;
}

body.depth-design .component-icon{
  border-radius:20px;
  box-shadow:0 13px 26px rgba(43,47,72,.19),inset 0 1px 1px rgba(255,255,255,.35);
}

body.depth-design .component-icon svg{
  width:25px;
  height:25px;
  stroke-width:1.8;
  stroke-linecap:round;
  stroke-linejoin:round;
}

@media(max-width:1380px){
  body.depth-design .planner-layout{
    grid-template-columns:minmax(310px,340px) minmax(0,1fr);
  }
  body.depth-design .planner-insights{
    position:static;
    grid-column:1/-1;
    display:grid;
    grid-template-columns:minmax(180px,.55fr) repeat(5,minmax(120px,1fr));
    align-items:center;
    gap:0 18px;
  }
  body.depth-design .planner-insights::before,
  body.depth-design .planner-insights>.panel-label,
  body.depth-design .planner-insights>h2{
    grid-column:1;
  }
  body.depth-design .planner-insights .insight-row{
    min-width:0;
    border-bottom:0;
    border-left:1px solid rgba(63,78,92,.11);
    padding:10px 14px;
  }
  body.depth-design .planner-insights .insight-tip{
    grid-column:1/-1;
  }
}

@media(max-width:980px){
  body.depth-design .planner-layout{
    grid-template-columns:1fr;
    gap:22px;
  }
  body.depth-design .planner-form-panel,
  body.depth-design .planner-insights{
    position:static;
    border-radius:28px;
  }
  body.depth-design .planner-insights{
    display:block;
  }
  body.depth-design .planner-insights .insight-row{
    border-left:0;
    border-bottom:1px solid rgba(63,78,92,.11);
    padding:14px 2px;
  }
}

@media(max-width:680px){
  body.depth-design .planner-layout{
    gap:18px;
    padding:18px 12px 38px;
  }
  body.depth-design .planner-form-panel,
  body.depth-design .planner-insights{
    padding:24px 18px;
    border-radius:24px;
  }
  body.depth-design .form-pair,
  body.depth-design .objective-grid,
  body.depth-design .two-column-sections,
  body.depth-design .support-grid{
    grid-template-columns:1fr;
  }
  body.depth-design .generator-start-card{
    padding:42px 20px;
    border-radius:28px;
  }
  body.depth-design .lesson-document{
    border-radius:24px;
  }
  body.depth-design .lesson-document-header{
    padding:24px 20px;
    border-radius:24px 24px 0 0;
  }
  body.depth-design .lesson-section{
    margin:0 14px 16px;
    padding:20px;
    border-radius:18px;
  }
  body.depth-design .time-validation{
    margin:2px 14px 22px;
  }
}
