/*!*************************************************************************************************************************************************************************************************************************************************************!*\
  !*** css ./node_modules/next/dist/build/webpack/loaders/css-loader/src/index.js??ruleSet[1].rules[14].oneOf[10].use[2]!./node_modules/next/dist/build/webpack/loaders/postcss-loader/src/index.js??ruleSet[1].rules[14].oneOf[10].use[3]!./app/globals.css ***!
  \*************************************************************************************************************************************************************************************************************************************************************/
:root {
  --background: #e9eef3;
  --surface: #ffffff;
  --surface-soft: #f5f7fa;
  --surface-muted: #eaf0f5;
  --border: #d4dde6;
  --border-strong: #bbc7d3;
  --text: #172033;
  --text-soft: #56657a;
  --text-faint: #7b8798;
  --accent: #176b87;
  --accent-dark: #0f5269;
  --accent-soft: #e0f2f7;
  --success: #16845b;
  --topbar-height: 70px;
  --toolbar-height: 72px;
  --status-height: 34px;
}

* {
  box-sizing: border-box;
}

html,
body {
  height: 100%;
  margin: 0;
}

body {
  background: var(--background);
  color: var(--text);
  font-family:
    Inter,
    ui-sans-serif,
    system-ui,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    sans-serif;
}

button,
input {
  font: inherit;
}

button {
  color: inherit;
}

.studio {
  display: grid;
  grid-template-rows:
    var(--topbar-height)
    var(--toolbar-height)
    minmax(0, 1fr)
    var(--status-height);
  height: 100vh;
  min-height: 650px;
  overflow: hidden;
}

.topbar {
  align-items: center;
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  display: grid;
  grid-gap: 22px;
  gap: 22px;
  grid-template-columns: minmax(270px, 1fr) auto minmax(270px, 1fr);
  padding: 0 16px;
}

.brand-area,
.top-actions,
.lesson-title {
  align-items: center;
  display: flex;
}

.brand-area {
  gap: 10px;
}

.brand-icon {
  align-items: center;
  background: var(--accent);
  border-radius: 11px;
  color: white;
  display: flex;
  height: 42px;
  justify-content: center;
  width: 42px;
}

.eyebrow {
  color: var(--text-faint);
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.09em;
  margin: 0 0 2px;
  text-transform: uppercase;
}

.brand-area h1,
.lesson-title strong {
  margin: 0;
}

.brand-area h1 {
  font-size: 1.08rem;
}

.lesson-title {
  flex-direction: column;
  justify-content: center;
  text-align: center;
}

.lesson-title strong {
  font-size: 0.92rem;
}

.top-actions {
  gap: 15px;
  justify-content: flex-end;
}

.saved-status {
  align-items: center;
  color: var(--success);
  display: inline-flex;
  font-size: 0.82rem;
  font-weight: 750;
  gap: 5px;
}

.submit-button,
.primary-action {
  align-items: center;
  background: var(--accent);
  border: 0;
  border-radius: 9px;
  color: white;
  cursor: pointer;
  display: inline-flex;
  font-weight: 750;
  gap: 8px;
  justify-content: center;
}

.submit-button {
  min-height: 41px;
  padding: 0 17px;
}

.submit-button:hover,
.primary-action:hover {
  background: var(--accent-dark);
}

.toolbar {
  align-items: stretch;
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  box-shadow: 0 4px 14px rgba(38, 52, 69, 0.06);
  display: flex;
  gap: 6px;
  overflow-x: auto;
  padding: 7px 11px;
}

.toolbar-group {
  display: flex;
  gap: 4px;
}

.toolbar-group.compact {
  align-items: center;
}

.toolbar-spacer {
  flex: 1 1;
  min-width: 10px;
}

.divider {
  align-self: center;
  background: var(--border);
  height: 39px;
  margin: 0 3px;
  min-width: 1px;
  width: 1px;
}

.toolbar-button,
.icon-button,
.zoom-level {
  background: transparent;
  border: 1px solid transparent;
  cursor: pointer;
}

.toolbar-button {
  align-items: center;
  border-radius: 9px;
  display: flex;
  flex-direction: column;
  font-size: 0.67rem;
  font-weight: 720;
  gap: 3px;
  justify-content: center;
  min-width: 56px;
  padding: 5px 7px;
}

.toolbar-button:hover:not(:disabled),
.toolbar-button.active {
  background: var(--accent-soft);
  border-color: #b7dce7;
  color: var(--accent-dark);
}

.icon-button {
  align-items: center;
  border-radius: 9px;
  display: flex;
  height: 43px;
  justify-content: center;
  width: 41px;
}

.icon-button:hover:not(:disabled) {
  background: var(--surface-muted);
}

.toolbar-button:disabled,
.icon-button:disabled {
  cursor: not-allowed;
  opacity: 0.35;
}

.zoom-group {
  align-items: center;
  display: flex;
}

.zoom-level {
  border-radius: 7px;
  font-size: 0.76rem;
  font-weight: 700;
  padding: 8px 5px;
}

.workspace {
  display: grid;
  grid-template-columns: 320px minmax(430px, 1fr) 275px;
  min-height: 0;
  overflow: hidden;
}

.lesson-panel,
.inspector {
  background: var(--surface);
  min-height: 0;
  overflow-y: auto;
  padding: 17px 14px;
}

.lesson-panel {
  border-right: 1px solid var(--border);
}

.inspector {
  border-left: 1px solid var(--border);
}

.panel-heading h2 {
  font-size: 1.04rem;
  margin: 0;
}

.lesson-progress {
  background: var(--surface-soft);
  border: 1px solid var(--border);
  border-radius: 10px;
  margin: 16px 0;
  padding: 12px;
}

.progress-label {
  display: flex;
  font-size: 0.76rem;
  justify-content: space-between;
  margin-bottom: 8px;
}

.progress-label span {
  color: var(--text-soft);
  font-weight: 650;
}

.progress-track {
  background: #dbe4eb;
  border-radius: 99px;
  height: 7px;
  overflow: hidden;
}

.progress-fill {
  background: var(--accent);
  border-radius: inherit;
  height: 100%;
  width: 35%;
}

.lesson-sections {
  display: flex;
  flex-direction: column;
  gap: 7px;
}

.lesson-section {
  align-items: center;
  background: transparent;
  border: 1px solid transparent;
  border-radius: 10px;
  cursor: pointer;
  display: grid;
  grid-gap: 9px;
  gap: 9px;
  grid-template-columns: 24px minmax(0, 1fr) 18px;
  min-height: 57px;
  padding: 9px 10px;
  text-align: left;
  width: 100%;
}

.lesson-section:hover {
  background: var(--surface-soft);
}

.lesson-section.active {
  background: var(--accent-soft);
  border-color: #bbdce6;
  color: var(--accent-dark);
}

.lesson-section > span {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.lesson-section strong {
  font-size: 0.84rem;
}

.lesson-section small {
  color: var(--text-faint);
  font-size: 0.71rem;
}

.section-content {
  background: var(--surface-soft);
  border: 1px solid var(--border);
  border-radius: 9px;
  color: var(--text-soft);
  font-size: 0.76rem;
  line-height: 1.45;
  margin: 0 2px 5px 33px;
  padding: 11px;
}

.section-content.requirements {
  display: flex;
  flex-direction: column;
  gap: 9px;
}

.requirement {
  align-items: flex-start;
  color: var(--text);
  cursor: pointer;
  display: grid;
  grid-gap: 8px;
  gap: 8px;
  grid-template-columns: 18px minmax(0, 1fr);
  line-height: 1.35;
}

.requirement input {
  height: 0;
  opacity: 0;
  position: absolute;
  width: 0;
}

.check-box {
  align-items: center;
  background: white;
  border: 1.5px solid var(--border-strong);
  border-radius: 5px;
  display: flex;
  height: 18px;
  justify-content: center;
  width: 18px;
}

.requirement.complete {
  color: var(--text-faint);
  text-decoration: line-through;
}

.requirement.complete .check-box {
  background: var(--success);
  border-color: var(--success);
  color: white;
}

.teacher-tip {
  align-items: flex-start;
  background: #fff6df;
  border: 1px solid #ecd59d;
  border-radius: 10px;
  color: #755016;
  display: flex;
  gap: 10px;
  margin-top: 18px;
  padding: 12px;
}

.teacher-tip strong {
  font-size: 0.81rem;
}

.teacher-tip p {
  font-size: 0.74rem;
  line-height: 1.45;
  margin: 3px 0 0;
}

.canvas-region {
  display: grid;
  grid-template-rows: 61px minmax(0, 1fr);
  min-width: 0;
  overflow: hidden;
}

.canvas-heading {
  align-items: center;
  background: var(--surface-soft);
  border-bottom: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
  padding: 9px 15px;
}

.canvas-heading h2 {
  font-size: 0.98rem;
  margin: 0;
}

.canvas-heading-actions button {
  align-items: center;
  background: white;
  border: 1px solid var(--border);
  border-radius: 8px;
  cursor: pointer;
  display: flex;
  font-size: 0.72rem;
  font-weight: 700;
  gap: 6px;
  min-height: 34px;
  padding: 0 10px;
}

.canvas-stage {
  align-items: center;
  background-color: #dfe5eb;
  background-image:
    linear-gradient(45deg, #d7dee5 25%, transparent 25%),
    linear-gradient(-45deg, #d7dee5 25%, transparent 25%),
    linear-gradient(45deg, transparent 75%, #d7dee5 75%),
    linear-gradient(-45deg, transparent 75%, #d7dee5 75%);
  background-position:
    0 0,
    0 8px,
    8px -8px,
    -8px 0;
  background-size: 16px 16px;
  display: flex;
  justify-content: center;
  min-height: 0;
  overflow: auto;
  padding: 36px;
}

.canvas {
  align-items: center;
  aspect-ratio: 16 / 9;
  background: white;
  box-shadow: 0 13px 30px rgba(39, 55, 76, 0.16);
  display: flex;
  justify-content: center;
  max-height: calc(100% - 8px);
  max-width: 100%;
  min-height: 300px;
  min-width: 533px;
  width: min(880px, 90%);
}

.canvas-empty {
  color: var(--text-soft);
  max-width: 390px;
  padding: 30px;
  text-align: center;
}

.empty-icon {
  align-items: center;
  background: var(--accent-soft);
  border-radius: 17px;
  color: var(--accent);
  display: flex;
  height: 66px;
  justify-content: center;
  margin: 0 auto 15px;
  width: 66px;
}

.empty-icon.small {
  height: 55px;
  width: 55px;
}

.canvas-empty h3,
.inspector-empty h3 {
  color: var(--text);
  font-size: 1.05rem;
  margin: 0 0 7px;
}

.canvas-empty p {
  font-size: 0.83rem;
  line-height: 1.5;
  margin: 0 0 17px;
}

.primary-action {
  min-height: 40px;
  padding: 0 15px;
}

.inspector-empty {
  border-bottom: 1px solid var(--border);
  margin-top: 18px;
  padding: 12px 8px 21px;
  text-align: center;
}

.inspector-empty h3 {
  font-size: 0.88rem;
  margin-top: 11px;
}

.inspector-empty p {
  color: var(--text-soft);
  font-size: 0.75rem;
  line-height: 1.45;
  margin: 0 auto;
  max-width: 215px;
}

.inspector-section {
  border-bottom: 1px solid var(--border);
  padding: 17px 2px;
}

.inspector-section h3 {
  font-size: 0.78rem;
  margin: 0 0 11px;
}

.property-row {
  align-items: center;
  display: flex;
  font-size: 0.76rem;
  justify-content: space-between;
  min-height: 34px;
}

.property-row span {
  color: var(--text-soft);
}

.statusbar {
  align-items: center;
  background: #172033;
  color: #dce4ec;
  display: flex;
  font-size: 0.68rem;
  justify-content: space-between;
  padding: 0 13px;
}

.statusbar > div,
.status-items {
  align-items: center;
  display: flex;
  gap: 16px;
}

.ready-dot {
  background: #46d098;
  border-radius: 50%;
  height: 7px;
  width: 7px;
}

@media (max-width: 1100px) {
  .workspace {
    grid-template-columns: 290px minmax(430px, 1fr) 245px;
  }
}

@media (max-width: 930px) {
  .topbar {
    grid-template-columns: 1fr auto;
  }

  .lesson-title {
    display: none;
  }

  .workspace {
    grid-template-columns: 280px minmax(430px, 1fr);
  }

  .inspector {
    display: none;
  }
}

@media (max-width: 720px) {
  .studio {
    min-width: 650px;
  }
}

/* =========================================================
   Creative Studio v0.2a
   Stronger shell separation and larger canvas workspace
   ========================================================= */

.topbar {
  border-bottom: 1px solid #c5d0db;
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.9),
    0 3px 10px rgba(33, 48, 67, 0.08);
  position: relative;
  z-index: 20;
}

.toolbar {
  background: #f8fafc;
  border-bottom: 2px solid #b9c6d2;
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.95) inset,
    0 5px 14px rgba(30, 45, 63, 0.12);
  position: relative;
  z-index: 15;
}

.workspace {
  grid-template-columns: 290px minmax(500px, 1fr) 245px;
  position: relative;
  z-index: 1;
}

.lesson-panel {
  box-shadow: 3px 0 10px rgba(31, 47, 66, 0.06);
  position: relative;
  z-index: 3;
}

.inspector {
  box-shadow: -3px 0 10px rgba(31, 47, 66, 0.06);
  position: relative;
  z-index: 3;
}

.canvas-heading {
  background: #f3f6f9;
  border-bottom: 1px solid #c8d2dc;
  box-shadow: 0 2px 6px rgba(31, 47, 66, 0.05);
  position: relative;
  z-index: 2;
}

.canvas-stage {
  padding: 28px;
}

.canvas {
  width: min(980px, 94%);
}

@media (max-width: 1180px) {
  .workspace {
    grid-template-columns: 275px minmax(470px, 1fr) 230px;
  }
}

@media (max-width: 1000px) {
  .workspace {
    grid-template-columns: 265px minmax(450px, 1fr);
  }

  .inspector {
    display: none;
  }
}

