.hero-copy h1 { font-size: clamp(2.18rem, 5.15vw, 4.95rem); }
.theory-title { font-size: clamp(1.35rem, 5.5vw, 3.7rem) !important; }
.theory-title span { display: inline-block; transform: skewX(-9deg); color: #536b7c; }
.theory-detail { max-width: 980px; margin: 0 auto 1rem; }
.theory-detail h3, .writing-model figcaption, .approach-table caption { font: 700 1.45rem/1.5 var(--serif); }
.writing-model { margin: 2rem 0; background: #fff; padding: clamp(.75rem, 3vw, 1.5rem); border-radius: 1rem; }
.writing-model figcaption, .model-connector { text-align: center; margin-bottom: 1rem; }
.model-context, .model-cycle ul { display: grid; gap: .75rem; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.model-context div, .model-cycle li { padding: .75rem; border-radius: .65rem; background: #e2ebf0; }
.model-context div + div { background: #e4ede7; }
.writing-model p { margin-block: .35rem; }
.model-cycle { background: #f0e8ee; padding: .85rem; border-radius: .75rem; text-align: center; }
.model-cycle ul { grid-template-columns: repeat(3, minmax(0, 1fr)); padding: 0; list-style: none; }
.model-cycle li { background: #fff; }
.model-monitor { padding-top: .7rem; border-top: 1px solid #bbb0bc; }
.approach-table { width: 100%; table-layout: fixed; border-collapse: collapse; background: #fff; margin-bottom: 2rem; }
.approach-table caption { margin-bottom: .65rem; }
.approach-table th, .approach-table td { padding: clamp(.38rem, 1.5vw, .9rem); border: 1px solid #c6d2da; overflow-wrap: anywhere; }
.approach-table thead { background: var(--navy); color: white; }
.approach-table th:first-child { width: 23%; }
.approach-table tbody th, .approach-table td:last-child { background: #e5edf0; }
.staircase li { max-width: calc(100% - var(--step)*4%); }
@media (max-width: 700px) {
  .staircase li { max-width: 100%; }
  .model-cycle ul { grid-template-columns: 1fr; }
  .approach-table { font-size: .85rem; }
}
.tab-panel { position: relative; }
.page-annotation {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 40;
  pointer-events: none;
}
[data-annotation-mode="draw"] .page-annotation,
[data-annotation-mode="erase"] .page-annotation {
  pointer-events: auto;
  touch-action: none;
  cursor: crosshair;
}
[data-annotation-mode="erase"] .page-annotation { cursor: cell; }
.timer-panel {
  background: var(--timer-background, #dce7df);
  display: grid;
  align-content: center;
  justify-items: center;
  gap: .3rem;
  padding: 0;
}
.timer-panel .drag-handle { width: 8.25rem; min-height: 1.65rem; }
.timer-panel .panel-close { line-height: 1; }
.timer-panel .timer-options { width: 11.5rem; }
.timer-panel .timer-options button { line-height: 1.25; }
.timer-tool #timerPanel { transition: none; }
.timer-tool:fullscreen #timerPanel {
  inset: 0 !important;
  margin: auto !important;
  width: 330px !important;
  height: 330px !important;
  max-width: none !important;
  max-height: none !important;
  transform-origin: center;
  transform: scale(min(calc(90vmin / 330px), calc(96vmin / 330px * var(--timer-scale))));
}
.timer-tool:fullscreen { background: #18232d; }
.timer-tool:fullscreen .edge-toggle { display: none; }
.timer-tool:fullscreen .timer-display { font-size: 3.1rem; }
@media (max-width: 700px) {
  .timer-panel { width: min(280px, 71vw); height: min(280px, 71vw); gap: .2rem; }
  .timer-panel .timer-actions button { padding-block: .25rem; }
}
.timer-panel.warning { background: #f0b6b6 !important; }
.timer-ring {
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  background: conic-gradient(#536b7c var(--remaining-angle, 360deg), #536b7c30 0);
  mask: radial-gradient(farthest-side, transparent calc(100% - 9px), black calc(100% - 8px));
}
.timer-panel.warning .timer-ring {
  background: conic-gradient(#aa3333 var(--remaining-angle, 0deg), #aa33334d 0);
}
.timer-panel .timer-display { font-size: 3.1rem; margin: 0; line-height: 1.06; }
.ai-links, .skill-templates { max-width: 1120px; margin: 1.5rem auto; }
.toolbox-embed { max-width: 1120px; margin: 1.5rem auto; padding: 1rem; background: #fff; border-radius: 1rem; }
.toolbox-embed h3 { font-family: var(--serif); margin: 0 0 .75rem; }
.toolbox-embed ol li { margin-bottom: .9rem; }
.toolbox-embed ol p { margin: .35rem 0; }
.prompt-step::marker, .prompt-step > strong, .prompt-box h4, .prompt-box summary { font-size: 1.25rem; font-weight: 700; }
.prompt-box { margin: .75rem 0; padding: 1rem; border: 1px solid #aebec7; border-radius: .85rem; background: #f4f7f8; }
.prompt-box h4 { margin: 0; }
.prompt-box summary { cursor: pointer; }
.toolbox-embed .prompt-box p { margin: .65rem 0 .8rem; }
.process-prompts button, .prompt-box button, .lesson-action, .annotation-quick {
  font: inherit; font-weight: 700; color: white; background: var(--navy);
  padding: .4rem .65rem; border: 0; border-radius: .65rem; cursor: pointer;
}
.annotation-quick { position: fixed; left: .25rem; top: calc(50% + 60px); z-index: 90; font-size: .78rem; }
.annotation-tool:not(.is-collapsed) .annotation-quick { display: none; }
.toolbox-embed iframe { display: block; width: 100%; height: min(850px, 80vh); border: 1px solid #c6d2da; border-radius: .65rem; margin-bottom: .65rem; }
.embed-grid > .embed-card:last-child { grid-column: auto; }
.static-preview { display: grid; align-items: center; background: #eee8e3; padding-bottom: 2.5rem; }
.case-thumbnail { display: block; width: 100%; height: auto; }
.case-cover { margin: 1rem; padding: 2rem .5rem; text-align: center; border: 1px solid #aebec7; border-radius: .85rem; background: #e1eaee; }
.case-cover strong { display: block; font: 700 clamp(1.15rem, 2.4vw, 1.8rem)/1.5 var(--serif); }
.static-preview .case-cover span { position: static; display: block; color: var(--ink); background: none; }
.ai-links { display: flex; flex-wrap: wrap; gap: .75rem; }
.ai-links a, .skill-templates button {
  color: #fff; background: var(--navy); border: 0; border-radius: .6rem;
  padding: .55rem .9rem; cursor: pointer; text-decoration: none;
}
.skill-templates article { background: #fff; padding: 1rem; border-radius: 1rem; margin: 1rem 0; }
.skill-templates h3 { font-family: var(--serif); margin: 0 0 .7rem; }
.skill-templates details { margin-top: .65rem; }
.skill-templates summary { cursor: pointer; }
.skill-templates pre { white-space: pre-wrap; overflow-wrap: anywhere; background: var(--paper); padding: 1rem; }
@media (max-width: 700px) { .hero-copy h1 { font-size: 2.2rem; } .timer-panel .timer-display { font-size: 2.45rem; } }
