:root {
  --bg: #f4f6f3;
  --panel: #ffffff;
  --panel-soft: #f8faf8;
  --ink: #1f2528;
  --muted: #667276;
  --subtle: #8a9699;
  --line: #dbe1dc;
  --primary: #245d63;
  --primary-dark: #183f44;
  --primary-soft: #e1edeb;
  --brick: #b65a3a;
  --brick-soft: #f2dfd7;
  --amber: #bb8430;
  --amber-soft: #f2e8d2;
  --green: #4f7d57;
  --green-soft: #dfeddf;
  --violet: #655a93;
  --violet-soft: #e5e2f0;
  --danger: #983e39;
  --danger-soft: #f0dbd8;
  --shadow: 0 12px 28px rgba(31, 37, 40, 0.08);
  --radius: 8px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--ink);
  background: var(--bg);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
}

button,
input,
select,
textarea {
  font: inherit;
}

button {
  touch-action: manipulation;
}

.app-shell {
  display: grid;
  grid-template-columns: 248px minmax(0, 1fr);
  min-height: 100vh;
}

.sidebar {
  position: sticky;
  top: 0;
  height: 100vh;
  padding: 22px 18px;
  color: #eef5f3;
  background: #183235;
  border-right: 1px solid rgba(255, 255, 255, 0.12);
}

.brand-block {
  padding: 4px 4px 18px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.15);
}

.brand-label {
  margin-bottom: 8px;
  color: #b8c7c5;
  font-size: 12px;
}

.brand-block h1 {
  margin: 0;
  font-size: 23px;
  line-height: 1.28;
  font-weight: 780;
}

.brand-block p {
  margin: 14px 0 0;
  padding: 8px 10px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: var(--radius);
  color: #d7e4e2;
  background: rgba(255, 255, 255, 0.06);
  font-size: 12px;
  word-break: break-all;
}

.main-nav {
  display: grid;
  gap: 6px;
  margin-top: 22px;
}

.nav-item {
  width: 100%;
  min-height: 42px;
  padding: 10px 12px;
  border: 0;
  border-radius: var(--radius);
  color: #d9e4e2;
  background: transparent;
  text-align: left;
  cursor: pointer;
}

.nav-item:hover,
.nav-item.active {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.13);
}

.side-status {
  position: absolute;
  left: 18px;
  right: 18px;
  bottom: 18px;
  padding: 12px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.06);
  font-size: 12px;
  line-height: 1.55;
}

.side-status strong {
  display: block;
  margin-top: 4px;
  color: #d7e4e2;
}

.status-dot {
  display: inline-block;
  width: 8px;
  height: 8px;
  margin-right: 6px;
  border-radius: 50%;
  background: #70c17b;
}

.main {
  min-width: 0;
  padding: 24px;
}

.topbar {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 18px;
}

.eyebrow {
  margin: 0 0 6px;
  color: var(--primary);
  font-size: 12px;
  font-weight: 700;
}

.topbar h2 {
  margin: 0;
  font-size: 25px;
  line-height: 1.24;
}

.topbar p:last-child {
  margin: 7px 0 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.55;
}

.role-tabs {
  display: grid;
  grid-template-columns: repeat(3, minmax(84px, 1fr));
  gap: 4px;
  padding: 4px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel);
  box-shadow: 0 5px 18px rgba(31, 37, 40, 0.05);
}

.role-tab {
  min-height: 36px;
  padding: 6px 12px;
  border: 0;
  border-radius: 6px;
  color: var(--muted);
  background: transparent;
  cursor: pointer;
  white-space: nowrap;
}

.role-tab.active {
  color: #ffffff;
  background: var(--primary);
}

.page {
  display: none;
}

.page.active {
  display: block;
}

.section-band {
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel);
  box-shadow: var(--shadow);
}

.compact-top {
  margin-top: 16px;
}

.section-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 16px;
}

.section-head h3 {
  margin: 0;
  font-size: 17px;
  line-height: 1.35;
}

.section-head p {
  margin: 5px 0 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.55;
}

.pill {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 5px 10px;
  border-radius: 999px;
  color: var(--primary-dark);
  background: var(--primary-soft);
  font-size: 12px;
  white-space: nowrap;
}

.pill.warning {
  color: #755018;
  background: var(--amber-soft);
}

.pill.danger {
  color: #7b312d;
  background: var(--danger-soft);
}

.pill.done {
  color: #315f3c;
  background: var(--green-soft);
}

.dashboard-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(340px, 0.65fr);
  gap: 16px;
}

.dashboard-stack {
  display: grid;
  gap: 16px;
}

.panel {
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel);
}

.panel-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 16px;
  border-bottom: 1px solid var(--line);
}

.panel-head h4 {
  margin: 0;
  font-size: 15px;
  line-height: 1.35;
}

.panel-head p {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.55;
}

.panel-body {
  padding: 16px;
}

.metric-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}

.metric-grid.three {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.metric {
  min-height: 94px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel-soft);
}

.metric-value {
  color: var(--ink);
  font-size: 27px;
  line-height: 1;
  font-weight: 780;
}

.metric-label {
  margin-top: 8px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.45;
}

.work-list,
.task-list,
.logic-list,
.template-grid,
.pdd-grid,
.deploy-grid {
  display: grid;
  gap: 10px;
}

.work-item {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  align-items: center;
  gap: 10px;
  min-height: 58px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel-soft);
}

.work-item strong {
  display: block;
  font-size: 14px;
  line-height: 1.45;
}

.work-item span {
  display: block;
  margin-top: 3px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.45;
}

.primary-btn,
.ghost-btn,
.text-btn {
  min-height: 34px;
  padding: 7px 11px;
  border-radius: 6px;
  cursor: pointer;
  white-space: nowrap;
}

.primary-btn {
  border: 1px solid var(--primary);
  color: #ffffff;
  background: var(--primary);
}

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

.ghost-btn {
  border: 1px solid var(--line);
  color: var(--primary);
  background: var(--panel);
}

.text-btn {
  border: 0;
  color: var(--primary);
  background: transparent;
}

.stage-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}

.stage-card {
  min-height: 154px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel-soft);
  text-align: left;
  cursor: pointer;
}

.stage-card.active {
  border-color: var(--primary);
  box-shadow: inset 0 0 0 1px var(--primary);
}

.stage-index {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  color: #ffffff;
  background: var(--primary);
  font-weight: 760;
}

.stage-card:nth-child(1) .stage-index {
  background: var(--brick);
}

.stage-card:nth-child(2) .stage-index {
  background: var(--amber);
}

.stage-card:nth-child(3) .stage-index {
  background: var(--green);
}

.stage-card:nth-child(4) .stage-index {
  background: var(--violet);
}

.stage-card h4 {
  margin: 12px 0 6px;
  font-size: 15px;
}

.stage-card p {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.55;
}

.table-wrap {
  overflow-x: auto;
}

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}

th,
td {
  padding: 11px 10px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
  line-height: 1.55;
}

th {
  color: var(--muted);
  background: #f2f5f4;
  font-weight: 700;
}

tr:last-child td {
  border-bottom: 0;
}

.filter-row {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

select,
textarea,
input[type="text"] {
  min-height: 36px;
  border: 1px solid var(--line);
  border-radius: 6px;
  color: var(--ink);
  background: #ffffff;
}

select {
  padding: 6px 30px 6px 10px;
}

textarea,
input[type="text"] {
  width: 100%;
  padding: 9px 10px;
}

textarea {
  min-height: 108px;
  resize: vertical;
}

.task-layout {
  display: grid;
  grid-template-columns: minmax(280px, 0.42fr) minmax(0, 0.58fr);
  gap: 14px;
}

.task-card,
.logic-card,
.course-card,
.template-card,
.pdd-card,
.deploy-card {
  padding: 13px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel-soft);
}

.task-card,
.logic-card,
.course-card {
  text-align: left;
  cursor: pointer;
}

.task-card.active,
.logic-card.active,
.course-card.active {
  border-color: var(--primary);
  box-shadow: inset 0 0 0 1px var(--primary);
}

.card-topline {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 8px;
}

.card-title {
  margin: 0;
  font-size: 14px;
  line-height: 1.4;
  font-weight: 720;
}

.card-desc {
  margin: 5px 0 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.55;
}

.tag {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 24px;
  padding: 3px 8px;
  border-radius: 999px;
  color: var(--primary-dark);
  background: var(--primary-soft);
  font-size: 12px;
  white-space: nowrap;
}

.tag.brick {
  color: #7a3b27;
  background: var(--brick-soft);
}

.tag.amber {
  color: #755018;
  background: var(--amber-soft);
}

.tag.green {
  color: #315f3c;
  background: var(--green-soft);
}

.tag.violet {
  color: #433b6d;
  background: var(--violet-soft);
}

.tag.danger {
  color: #7b312d;
  background: var(--danger-soft);
}

.detail-panel {
  min-width: 0;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel-soft);
}

.detail-panel h4 {
  margin: 0 0 8px;
  font-size: 16px;
}

.detail-panel p,
.detail-panel li {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.65;
}

.detail-panel ul {
  margin: 8px 0 12px;
  padding-left: 18px;
}

.logic-layout {
  display: grid;
  grid-template-columns: minmax(280px, 0.34fr) minmax(0, 0.66fr);
  gap: 14px;
  align-items: start;
}

.logic-list {
  max-height: calc(100vh - 190px);
  overflow: auto;
  padding-right: 2px;
}

.logic-detail {
  min-width: 0;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel-soft);
}

.logic-detail-head h4 {
  margin: 10px 0 6px;
  font-size: 20px;
  line-height: 1.35;
}

.logic-detail-head p,
.logic-section p,
.logic-section li,
.mentor-check p {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.68;
}

.formula-box {
  margin: 14px 0;
  padding: 13px 14px;
  border: 1px solid #b8cfcb;
  border-radius: var(--radius);
  color: var(--primary-dark);
  background: var(--primary-soft);
}

.formula-box p {
  margin: 7px 0 0;
  font-size: 14px;
  line-height: 1.55;
  font-weight: 700;
}

.logic-section {
  margin-top: 14px;
  padding: 13px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #ffffff;
}

.logic-section.danger {
  border-color: #e2c6c2;
  background: #fff8f7;
}

.logic-section h5 {
  margin: 0 0 8px;
  font-size: 14px;
}

.logic-section ul {
  margin: 0;
  padding-left: 18px;
}

.logic-section ol {
  margin: 0;
  padding-left: 20px;
}

.logic-section li + li {
  margin-top: 5px;
}

.logic-two-col {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

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

.course-card h4 {
  margin: 8px 0 6px;
  font-size: 15px;
  line-height: 1.4;
}

.course-card p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.6;
}

.course-detail {
  min-width: 0;
}

.course-detail-head {
  padding: 16px;
  border: 1px solid var(--line);
  border-left: 4px solid var(--primary);
  border-radius: var(--radius);
  background: #ffffff;
}

.course-detail-head h4 {
  margin: 9px 0 7px;
  font-size: 21px;
  line-height: 1.35;
}

.course-detail-head p,
.course-lesson p,
.example-strip p,
.related-task span {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.68;
}

.course-detail-head p,
.example-strip p {
  margin: 0;
}

.course-detail-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(300px, 0.44fr);
  gap: 12px;
}

.course-lessons {
  display: grid;
  gap: 12px;
  margin-top: 14px;
}

.course-lesson {
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #ffffff;
}

.course-lesson h5 {
  margin: 0 0 8px;
  font-size: 15px;
  line-height: 1.45;
}

.course-lesson strong {
  display: block;
  margin-bottom: 6px;
  font-size: 13px;
}

.course-lesson ul {
  margin: 0;
  padding-left: 18px;
}

.course-lesson li {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.65;
}

.course-lesson li + li {
  margin-top: 5px;
}

.example-strip {
  margin-top: 12px;
  padding: 11px 12px;
  border: 1px solid #ead9b4;
  border-radius: var(--radius);
  background: #fffaf0;
}

.example-strip strong {
  color: var(--amber);
}

.related-task-list {
  display: grid;
  gap: 8px;
}

.related-task {
  display: grid;
  gap: 5px;
  width: 100%;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel-soft);
  text-align: left;
  cursor: pointer;
}

.related-task:hover {
  border-color: var(--primary);
}

.related-task strong {
  font-size: 13px;
  line-height: 1.45;
}

.mentor-check {
  margin-top: 14px;
  padding: 13px 14px;
  border: 1px solid #ead9b4;
  border-radius: var(--radius);
  background: #fffaf0;
}

.mentor-check p {
  margin: 7px 0 0;
}

.beginner-course {
  display: grid;
  gap: 12px;
  margin-top: 14px;
}

.beginner-head {
  padding: 14px;
  border: 1px solid #e2c5b8;
  border-left: 4px solid var(--brick);
  border-radius: var(--radius);
  background: #fff8f5;
}

.beginner-head h5,
.term-block h5,
.number-example h5 {
  margin: 8px 0 0;
  font-size: 15px;
  line-height: 1.45;
}

.beginner-head p,
.analogy-box p,
.number-example li {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.72;
}

.beginner-head p {
  margin: 7px 0 0;
}

.analogy-box {
  padding: 13px 14px;
  border: 1px solid #e7d7c2;
  border-radius: var(--radius);
  background: #fffdf8;
}

.analogy-box p {
  margin: 7px 0 0;
}

.term-block,
.number-example {
  padding: 13px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #ffffff;
}

.term-block .table-wrap {
  margin-top: 10px;
}

.beginner-steps {
  border-color: #cdded7;
  background: #f8fcfa;
}

.beginner-checks {
  border-color: #d8cfe7;
  background: #fbf9ff;
}

.number-example {
  border-color: #d4d9e7;
  background: #f8faff;
}

.number-example ol {
  margin: 9px 0 0;
  padding-left: 20px;
}

.deep-dive {
  display: grid;
  gap: 12px;
  margin-top: 14px;
}

.deep-dive-head {
  padding: 12px 13px;
  border: 1px solid #cdded7;
  border-left: 4px solid var(--green);
  border-radius: var(--radius);
  background: #f7fbf7;
}

.deep-dive-head h5,
.case-title h6,
.principle-card h6 {
  margin: 7px 0 0;
  font-size: 14px;
  line-height: 1.45;
}

.deep-dive-head p,
.principle-card p,
.case-card dd {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.68;
}

.deep-dive-head p {
  margin: 5px 0 0;
}

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

.principle-card {
  position: relative;
  min-height: 156px;
  padding: 13px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #ffffff;
}

.principle-card p {
  margin: 8px 0 0;
}

.step-badge {
  display: inline-grid;
  place-items: center;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  color: #ffffff;
  background: var(--primary);
  font-size: 12px;
  font-weight: 800;
}

.case-card {
  padding: 13px;
  border: 1px solid #e3d1aa;
  border-radius: var(--radius);
  background: #fffaf0;
}

.case-title {
  margin-bottom: 10px;
}

.case-card dl {
  display: grid;
  gap: 8px;
  margin: 0;
}

.case-card dl div {
  display: grid;
  grid-template-columns: 88px minmax(0, 1fr);
  gap: 10px;
}

.case-card dt {
  color: var(--amber);
  font-size: 13px;
  font-weight: 800;
}

.case-card dd {
  margin: 0;
}

.logic-section.practice {
  border-color: #cbdad0;
  background: #fbfdfb;
}

.logic-section strong {
  display: block;
  margin: 8px 0 6px;
  font-size: 13px;
}

.form-row {
  display: grid;
  gap: 8px;
  margin-top: 12px;
}

.form-row label {
  color: var(--ink);
  font-size: 13px;
  font-weight: 700;
}

.form-actions {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  margin-top: 12px;
}

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

.pdd-card h4,
.template-card h4,
.deploy-card h4 {
  margin: 0;
  font-size: 15px;
  line-height: 1.35;
}

.pdd-card p,
.template-card p,
.deploy-card p {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.6;
}

.boundary-list {
  display: grid;
  gap: 8px;
  margin-top: 12px;
}

.boundary-item {
  padding: 8px 10px;
  border-radius: 6px;
  color: #7b312d;
  background: var(--danger-soft);
  font-size: 12px;
  line-height: 1.45;
}

.quiz-layout,
.report-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 0.44fr);
  gap: 16px;
}

.quiz-form {
  display: grid;
  gap: 12px;
}

.question {
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel-soft);
}

.question h4 {
  margin: 0 0 10px;
  font-size: 14px;
  line-height: 1.5;
}

.option-list {
  display: grid;
  gap: 7px;
}

.option-list label {
  display: grid;
  grid-template-columns: 18px minmax(0, 1fr);
  gap: 8px;
  align-items: start;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.45;
}

.quiz-result {
  min-height: 320px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel-soft);
}

.score-big {
  font-size: 46px;
  font-weight: 800;
  line-height: 1;
}

.ability-bars {
  display: grid;
  gap: 12px;
}

.ability-row {
  display: grid;
  grid-template-columns: 112px minmax(0, 1fr) 42px;
  align-items: center;
  gap: 10px;
  font-size: 13px;
}

.ability-bar {
  height: 9px;
  overflow: hidden;
  border-radius: 999px;
  background: #e5ebe8;
}

.ability-bar span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: var(--primary);
}

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

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

.code-block {
  margin: 10px 0 0;
  padding: 10px;
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: 6px;
  color: #dfe9e7;
  background: #1d2e31;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 12px;
  line-height: 1.55;
}

.toast {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 20;
  max-width: min(360px, calc(100vw - 40px));
  padding: 11px 14px;
  border-radius: var(--radius);
  color: #ffffff;
  background: var(--primary-dark);
  box-shadow: var(--shadow);
  opacity: 0;
  transform: translateY(10px);
  pointer-events: none;
  transition: opacity 0.2s ease, transform 0.2s ease;
  font-size: 13px;
}

.toast.show {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 1180px) {
  .app-shell {
    grid-template-columns: 1fr;
  }

  .sidebar {
    position: static;
    height: auto;
  }

  .main-nav {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .side-status {
    position: static;
    margin-top: 16px;
  }

  .dashboard-grid,
  .logic-layout,
  .course-detail-grid,
  .task-layout,
  .quiz-layout,
  .report-layout {
    grid-template-columns: 1fr;
  }

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

  .logic-list {
    max-height: none;
    overflow: visible;
  }
}

@media (max-width: 860px) {
  .main {
    padding: 16px;
  }

  .topbar,
  .section-head {
    flex-direction: column;
    align-items: stretch;
  }

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

  .role-tabs {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .side-status {
    display: none;
  }

  .metric-grid,
  .metric-grid.three,
  .stage-grid,
  .pdd-grid,
  .template-grid,
  .course-grid,
  .principle-grid,
  .deploy-grid {
    grid-template-columns: 1fr;
  }

  .case-card dl div {
    grid-template-columns: 1fr;
    gap: 3px;
  }

  .work-item {
    grid-template-columns: 1fr;
  }

  .filter-row {
    flex-direction: column;
  }

  .filter-row select {
    width: 100%;
  }

  .logic-two-col {
    grid-template-columns: 1fr;
  }
}
