:root {
  --background: 160 12% 96%;
  --foreground: 174 30% 15%;
  --card: 0 0% 100%;
  --card-foreground: 174 30% 15%;
  --primary: 174 57% 27%;
  --primary-foreground: 0 0% 100%;
  --secondary: 170 22% 91%;
  --secondary-foreground: 174 40% 20%;
  --muted: 160 10% 94%;
  --muted-foreground: 170 12% 34%;
  --accent: 35 70% 92%;
  --accent-foreground: 174 40% 19%;
  --destructive: 8 65% 38%;
  --border: 163 13% 81%;
  --input: 163 13% 81%;
  --ring: 174 62% 32%;
  --radius: 4px;
}

body {
  background: #f3f6f5;
  color: #193438;
}

.tool-context,
.tool-content-width {
  width: min(100% - 48px, 1332px);
  margin-inline: auto;
}

.tool-context {
  padding-top: 18px;
}

.tool-context .easyops-breadcrumb {
  margin-bottom: 2px;
  --crumb-accent: #176c68;
}

.tool-deck {
  margin: 0 0 4px;
  color: #526769;
  font-size: 14px;
  line-height: 1.5;
}

#root main {
  min-height: 0;
  background: transparent;
}

#root main > div {
  max-width: 1380px;
  gap: 12px;
  padding: 8px 24px 28px;
}

#root main > div > header {
  min-height: 76px;
  padding: 14px 20px;
  border: 0;
  border-radius: 4px;
  background: #173d3e;
  color: #f5faf8;
  box-shadow: none;
}

#root main > div > header .mb-1 {
  display: none;
}

#root main > div > header h1 {
  color: #fff;
  font-size: 24px;
  line-height: 1.25;
}

#root main > div > header .size-12 {
  width: 42px;
  height: 42px;
  background: #dda76e;
  color: #173d3e;
}

#root main > div > header .text-muted-foreground,
#root main > div > header .text-primary {
  color: #d5e7e1;
}

#root main > div > section {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  align-items: start;
  gap: 12px;
}

#root main > div > section > div {
  min-width: 0;
  min-height: 0;
  border-radius: 4px;
  box-shadow: none;
}

#root main > div > section > div:first-child {
  grid-column: 1 / -1;
  border: 0;
  border-radius: 0;
  background: #e8f2ef;
}

#root main > div > section > div:first-child > div:first-child {
  padding: 12px 18px 0;
}

#root main > div > section > div:first-child > div:first-child p {
  margin-top: 0;
}

#root main > div > section > div:first-child > div:nth-child(2) {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  padding: 8px 12px 12px;
}

#root main > div > section > div:first-child button {
  min-height: 64px;
  padding: 10px 12px;
  border-color: transparent;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  cursor: pointer;
}

#root main > div > section > div:first-child button:hover {
  border-color: #187a74;
  background: #f7fcfa;
}

#root main > div > section > div:first-child button.border-primary {
  border-color: #176d67;
  border-radius: 4px;
  background: #176d67;
}

#root main > div > section > div:first-child button.border-primary:hover {
  background: #125b56;
}

#root main > div > section > div:first-child button .size-10 {
  width: 34px;
  height: 34px;
}

#root main > div > section > div:nth-child(2) {
  grid-column: 1;
}

#root main > div > section > div:nth-child(3) {
  grid-column: 2;
  position: sticky;
  top: 12px;
  border-color: #c3c9c4;
  background: #fffdf8;
}

#root main > div > section > div:nth-child(2) > div:first-child,
#root main > div > section > div:nth-child(3) > div:first-child {
  border-bottom: 1px solid #dfe8e5;
}

#root main > div > section > div:nth-child(3) > div:first-child {
  background: #f3ece0;
}

#root main > div > section > div:nth-child(3) textarea[readonly] {
  min-height: 530px;
  border: 0;
  border-left: 3px solid #d49b60;
  border-radius: 0;
  background: #fffdf8;
  color: #23363b;
  font-size: 13px;
  line-height: 1.65;
}

#root main > div > section > div:nth-child(3) .flex.flex-wrap.gap-2 {
  display: none;
}

#root main button,
#root main input,
#root main select,
#root main textarea,
.tool-related a,
.tool-faq summary {
  transition: border-color 180ms ease, background-color 180ms ease, color 180ms ease;
}

#root main button {
  cursor: pointer;
}

#root main :is(input, select, textarea, button):focus-visible,
.tool-related a:focus-visible,
.tool-faq summary:focus-visible {
  outline: 2px solid #16766f;
  outline-offset: 2px;
}

.tool-related {
  border-block: 1px solid #dce4e1;
  background: #fff;
}

.tool-related .tool-content-width {
  padding-block: 24px 30px;
}

.tool-related h2,
.tool-guide h2 {
  margin: 0 0 14px;
  color: #193d3f;
  font-size: 19px;
  line-height: 1.35;
  font-weight: 700;
}

.related-list {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  border-top: 1px solid #dce4e1;
}

.related-list a {
  display: grid;
  align-content: start;
  gap: 3px;
  min-height: 90px;
  padding: 14px 16px;
  border-bottom: 1px solid #dce4e1;
  text-decoration: none;
  cursor: pointer;
}

.related-list a + a {
  border-left: 1px solid #dce4e1;
}

.related-list a:hover {
  background: #e8f2ef;
}

.related-list span {
  color: #197269;
  font-size: 12px;
  font-weight: 700;
}

.related-list strong {
  color: #173d3e;
  font-size: 15px;
}

.related-list small {
  color: #526769;
  font-size: 12px;
}

.tool-guide {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 32px 56px;
  padding-block: 36px 72px;
}

.tool-guide section {
  min-width: 0;
}

.tool-guide :is(ol, ul) {
  margin: 0;
  padding-left: 22px;
  color: #354f52;
  line-height: 1.75;
}

.tool-guide li + li {
  margin-top: 7px;
}

.tool-faq {
  grid-column: 1 / -1;
}

.tool-faq details {
  border-top: 1px solid #cfdbd7;
}

.tool-faq details:last-child {
  border-bottom: 1px solid #cfdbd7;
}

.tool-faq summary {
  padding: 15px 0;
  font-weight: 600;
  cursor: pointer;
}

.tool-faq details[open] summary {
  color: #176d67;
}

.tool-faq p {
  margin: 0 0 16px;
  color: #354f52;
  line-height: 1.7;
}

@media (max-width: 767px) {
  .tool-context,
  .tool-content-width {
    width: min(100% - 32px, 600px);
  }

  .tool-context {
    padding-top: 10px;
  }

  .tool-deck {
    font-size: 13px;
  }

  #root main > div {
    padding: 7px 16px 26px;
  }

  #root main > div > header {
    min-height: 62px;
    padding: 10px 13px;
  }

  #root main > div > header h1 {
    font-size: 19px;
  }

  #root main > div > header .size-12 {
    width: 34px;
    height: 34px;
  }

  #root main > div > header .text-sm.text-muted-foreground {
    display: none;
  }

  #root main > div > section {
    grid-template-columns: minmax(0, 1fr);
  }

  #root main > div > section > div:first-child,
  #root main > div > section > div:nth-child(2),
  #root main > div > section > div:nth-child(3) {
    grid-column: 1;
  }

  #root main > div > section > div:first-child > div:first-child {
    padding: 10px 12px 0;
  }

  #root main > div > section > div:first-child > div:first-child p {
    display: none;
  }

  #root main > div > section > div:first-child > div:nth-child(2) {
    gap: 5px;
    padding: 6px 8px 8px;
  }

  #root main > div > section > div:first-child button {
    min-height: 65px;
    padding: 7px;
    text-align: center;
  }

  #root main > div > section > div:first-child button > div {
    display: block;
  }

  #root main > div > section > div:first-child button .size-10,
  #root main > div > section > div:first-child button .line-clamp-2 {
    display: none;
  }

  #root main > div > section > div:first-child button strong {
    font-size: 12px;
    line-height: 1.35;
  }

  #root main > div > section > div:nth-child(3) {
    position: static;
  }

  #root main > div > section > div:nth-child(3) textarea[readonly] {
    min-height: 350px;
  }

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

  .related-list a:nth-child(3) {
    border-left: 0;
  }

  .tool-guide {
    grid-template-columns: 1fr;
    gap: 28px;
    padding-block: 28px 70px;
  }

  .tool-faq {
    grid-column: 1;
  }
}

@media (max-width: 340px) {
  #root main > div > header h1 {
    font-size: 17px;
  }

  #root main > div > section > div:first-child button strong {
    font-size: 12px;
  }

  .related-list {
    grid-template-columns: 1fr;
  }

  .related-list a + a {
    border-left: 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  #root main button,
  #root main input,
  #root main select,
  #root main textarea,
  .tool-related a,
  .tool-faq summary {
    transition: none;
  }
}

/* The task index, working draft and teaching conditions form one desk. */
#root main > div > header {
  background: #fff;
  color: #193438;
  border-top: 4px solid #176d67;
  border-bottom: 1px solid #cbd9d4;
}
#root main > div > header h1 { color: #193438; }
#root main > div > header .text-muted-foreground,
#root main > div > header .text-primary { color: #526769; }
#root main > div > header .size-12 { background: #dceee7; color: #176d67; }
#root main > div > section {
  --task-mark: #bb6656;
  grid-template-columns: 196px minmax(0, 1.22fr) minmax(0, .9fr);
  gap: 0;
  align-items: stretch;
  border: 1px solid #cbd9d4;
  background: #fff;
}
#root main > div > section:has(> div:first-child button:nth-child(2).border-primary) { --task-mark: #347484; }
#root main > div > section:has(> div:first-child button:nth-child(3).border-primary) { --task-mark: #8a6e40; }
#root main > div > section > div { border: 0; border-radius: 0; }
#root main > div > section > div:first-child {
  grid-column: 1; grid-row: 1;
  border-right: 1px solid #d5e1dc;
  background: #edf4ef;
}
#root main > div > section > div:first-child > div:first-child { padding: 18px 16px 10px; }
#root main > div > section > div:first-child > div:nth-child(2) {
  display: grid; grid-template-columns: 1fr;
  gap: 0; padding: 0;
}
#root main > div > section > div:first-child button,
#root main > div > section > div:first-child button.border-primary {
  min-height: 96px; padding: 12px 10px 12px 16px;
  border: 0; border-left: 4px solid transparent; border-radius: 0;
  border-bottom: 1px solid #d5e1dc; background: transparent; color: #193438;
  text-align: left;
}
#root main > div > section > div:first-child button:before {
  display: block; margin-bottom: 6px; color: #56706d;
  font-size: 11px; font-weight: 700; font-variant-numeric: tabular-nums;
}
#root main > div > section > div:first-child button:nth-child(1):before { content: "01 / 评语"; }
#root main > div > section > div:first-child button:nth-child(2):before { content: "02 / 备课"; }
#root main > div > section > div:first-child button:nth-child(3):before { content: "03 / 出题"; }
#root main > div > section > div:first-child button.border-primary {
  border-left-color: var(--task-mark); background: #fff;
}
#root main > div > section > div:first-child button.border-primary:hover { background: #fff; }
#root main > div > section > div:first-child button .size-10 { display: none; }
#root main > div > section > div:first-child button .line-clamp-2 { display: block; margin-top: 3px; color: #526769; font-size: 12px; }
#root main > div > section > div:nth-child(3) {
  grid-column: 2; grid-row: 1; position: static;
  border-right: 1px solid #d5e1dc; background: #fffdf9;
}
#root main > div > section > div:nth-child(3) > div:first-child {
  position: relative; padding-left: 21px; background: #f7f3eb;
  border-bottom: 2px solid var(--task-mark);
}
#root main > div > section > div:nth-child(3) > div:first-child:before {
  content: "教学工作稿"; display: block; margin-bottom: 4px;
  color: var(--task-mark); font-size: 11px; font-weight: 800;
}
#root main > div > section > div:nth-child(3) > div:nth-child(2) { height: auto; }
#root main > div > section > div:nth-child(3) textarea[readonly] {
  min-height: 510px; border: 0; border-radius: 0; padding: 19px 22px 20px 27px;
  background: linear-gradient(90deg, transparent 17px, rgba(187,102,86,.42) 17px, rgba(187,102,86,.42) 18px, transparent 18px), #fffdf9;
  color: #263b3e; font-size: 14px; line-height: 1.7;
}
#root main > div > section > div:nth-child(2) {
  grid-column: 3; grid-row: 1; background: #f9fbf9;
}
#root main > div > section > div:nth-child(2) > div:first-child {
  border-bottom: 2px solid #6f968b;
  background: #edf4ef;
}
#root main > div > section > div:nth-child(2) > div:first-child:before {
  content: "教学条件"; display: block; margin-bottom: 4px;
  color: #176d67; font-size: 11px; font-weight: 800;
}
#root main > div > section > div:nth-child(2) :is(input, select, textarea) { background-color: #fff; }
.tool-related { background: #f3f6f5; border-top: 2px solid #176d67; }
.related-list { counter-reset: related; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 22px; }
.related-list a { position: relative; min-height: 75px; padding: 12px 14px 12px 48px; border-bottom: 1px solid #d0ddd7; }
.related-list a:before {
  content: counter(related, decimal-leading-zero); counter-increment: related;
  position: absolute; top: 15px; left: 10px; color: #176d67;
  font-size: 14px; font-weight: 800; font-variant-numeric: tabular-nums;
}
.related-list a + a { border-left: 0; }
@media (max-width: 960px) {
  #root main > div > section { grid-template-columns: 170px minmax(0, 1.1fr) minmax(0, .9fr); }
}
@media (max-width: 767px) {
  #root main > div > section { display: flex; flex-direction: column; }
  #root main > div > section > div:first-child { order: 0; border-right: 0; border-bottom: 1px solid #d5e1dc; }
  #root main > div > section > div:first-child > div:first-child { padding: 9px 12px 2px; }
  #root main > div > section > div:first-child > div:nth-child(2) { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0; }
  #root main > div > section > div:first-child button,
  #root main > div > section > div:first-child button.border-primary {
    min-height: 57px; padding: 6px 4px; border-left: 0; border-bottom: 3px solid transparent;
    text-align: center;
  }
  #root main > div > section > div:first-child button.border-primary { border-bottom-color: var(--task-mark); }
  #root main > div > section > div:first-child button:before { margin-bottom: 2px; font-size: 10px; }
  #root main > div > section > div:first-child button .line-clamp-2 { display: none; }
  #root main > div > section > div:nth-child(3) { order: 1; border-right: 0; border-bottom: 1px solid #d5e1dc; }
  #root main > div > section > div:nth-child(3) > div:first-child { padding: 10px 13px; }
  #root main > div > section > div:nth-child(3) textarea[readonly] {
    min-height: 130px; max-height: 130px; padding: 12px 14px 12px 20px;
    background: linear-gradient(90deg, transparent 10px, rgba(187,102,86,.42) 10px, rgba(187,102,86,.42) 11px, transparent 11px), #fffdf9;
    font-size: 12px; line-height: 1.55;
  }
  #root main > div > section > div:nth-child(2) { order: 2; }
  #root main > div > section > div:nth-child(2) > div:first-child { padding: 12px 15px; }
  .related-list { grid-template-columns: 1fr; }
}
