:root {
  --ink: #102033;
  --muted: #6b7c93;
  --soft: #f5f8fc;
  --line: #dbe5f0;
  --navy: #071b32;
  --navy-2: #0d2744;
  --teal: #0d8b95;
  --teal-2: #e7f8f5;
  --blue: #2e70e8;
  --blue-2: #eef5ff;
  --amber: #f49a2f;
  --amber-2: #fff5e9;
  --red: #f45b5b;
  --green: #18a575;
  --card: #ffffff;
  --shadow: 0 18px 48px rgba(32, 64, 96, 0.08);
  --radius: 8px;
}

* {
  box-sizing: border-box;
}

html,
body {
  height: 100%;
  overflow: hidden;
}

html {
  min-width: 320px;
  background: var(--soft);
}

body {
  margin: 0;
  color: var(--ink);
  font-family: "Microsoft YaHei", "PingFang SC", "Segoe UI", Arial, sans-serif;
  letter-spacing: 0;
  background:
    radial-gradient(circle at 60% 4%, rgba(13, 139, 149, 0.08), transparent 28rem),
    linear-gradient(180deg, #f8fbff 0%, #f3f6fa 100%);
}

button,
input,
textarea {
  font: inherit;
}

button {
  cursor: pointer;
}

a {
  color: inherit;
  text-decoration: none;
}

svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

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

.sidebar {
  position: sticky;
  top: 0;
  height: 100vh;
  min-height: 0;
  padding: 24px 18px;
  color: #d9e7f7;
  background:
    linear-gradient(180deg, rgba(18, 56, 90, 0.55), transparent 36%),
    linear-gradient(180deg, var(--navy) 0%, #06172a 100%);
  overflow-y: auto;
}

.brand {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr);
  align-items: center;
  gap: 12px;
  margin-bottom: 34px;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 8px;
  color: #dbeafe;
  background: linear-gradient(135deg, #7398ff, #173c72);
  box-shadow: 0 10px 24px rgba(10, 25, 50, 0.3);
}

.brand strong {
  display: block;
  font-size: 20px;
  line-height: 1.25;
  color: #fff;
}

.brand span {
  display: block;
  margin-top: 4px;
  font-size: 13px;
  color: #9fb2c8;
}

.nav-block {
  margin-top: 18px;
}

.nav-block h2 {
  margin: 0 0 14px;
  color: #afc0d4;
  font-size: 15px;
  font-weight: 700;
}

.scenario-list {
  display: grid;
  gap: 10px;
}

.scenario-item {
  display: grid;
  grid-template-columns: 36px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
  width: 100%;
  padding: 13px 14px;
  border: 1px solid rgba(125, 158, 196, 0.1);
  border-radius: var(--radius);
  color: #dbe7f4;
  text-align: left;
  background: rgba(255, 255, 255, 0.035);
  transition: transform 160ms ease, background 160ms ease, border-color 160ms ease;
}

.scenario-item:hover {
  transform: translateX(2px);
  background: rgba(255, 255, 255, 0.075);
}

.scenario-item.active {
  border-color: rgba(70, 219, 220, 0.36);
  color: #fff;
  background: linear-gradient(135deg, rgba(14, 143, 153, 0.95), rgba(8, 99, 121, 0.96));
  box-shadow: 0 14px 26px rgba(4, 22, 41, 0.28);
}

.scenario-icon,
.mini-icon {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 8px;
  color: #0a6880;
  font-size: 13px;
  font-weight: 800;
  background: #ffffff;
}

.scenario-icon svg,
.mini-icon svg,
.employee-icon svg,
.output-icon svg {
  width: 20px;
  height: 20px;
  stroke-width: 2.1;
}

.scenario-item.active .scenario-icon {
  color: #087c8a;
}

.scenario-copy strong {
  display: block;
  overflow: hidden;
  font-size: 16px;
  line-height: 1.3;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.scenario-copy span {
  display: block;
  overflow: hidden;
  margin-top: 5px;
  color: #afc5d8;
  font-size: 12px;
  line-height: 1.35;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.scenario-item.active .scenario-copy span {
  color: #c8f2f2;
}

.task-nav {
  padding-top: 18px;
  margin-top: 80px;
  border-top: 1px solid rgba(177, 198, 222, 0.18);
}

.task-link {
  display: grid;
  grid-template-columns: 24px minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  min-height: 36px;
  color: #e8f0f8;
  font-size: 14px;
}

.task-link .mini-icon {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  color: #a8c6e7;
  font-size: 10px;
  background: transparent;
  border: 1px solid #7892ad;
}

.task-link .mini-icon svg {
  width: 12px;
  height: 12px;
  stroke-width: 2.4;
}

.task-link b {
  min-width: 26px;
  padding: 2px 8px;
  border-radius: 999px;
  color: #d9e7f7;
  font-size: 12px;
  text-align: center;
  background: rgba(255, 255, 255, 0.12);
}

.workspace {
  min-width: 0;
  min-height: 0;
  overflow: hidden;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 88px;
  min-height: 88px;
  gap: 24px;
  padding: 18px 28px 18px 42px;
  background: rgba(255, 255, 255, 0.82);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(14px);
}

.topbar h1 {
  margin: 0;
  color: #13243a;
  font-size: 27px;
  line-height: 1.25;
}

.topbar p {
  margin: 6px 0 0;
  color: #62738d;
  font-size: 14px;
}

.header-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 14px;
  min-width: 0;
}

.search-box {
  display: flex;
  align-items: center;
  gap: 8px;
  width: min(330px, 28vw);
  min-width: 240px;
  height: 42px;
  padding: 0 13px;
  color: #7a8ca5;
  background: #fff;
  border: 1px solid #d6e0eb;
  border-radius: var(--radius);
  box-shadow: 0 8px 24px rgba(25, 50, 80, 0.04);
}

.search-box input {
  width: 100%;
  min-width: 0;
  border: 0;
  outline: 0;
  color: var(--ink);
  background: transparent;
}

.icon-button {
  position: relative;
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  padding: 0;
  color: #17304f;
  background: transparent;
  border: 0;
  border-radius: 50%;
}

.icon-button:hover {
  background: #edf4fb;
}

.notice-dot {
  position: absolute;
  top: 2px;
  right: 2px;
  display: grid;
  place-items: center;
  min-width: 16px;
  height: 16px;
  padding: 0 4px;
  color: #fff;
  font-size: 10px;
  line-height: 1;
  border: 2px solid #fff;
  border-radius: 999px;
  background: var(--red);
}

.profile {
  display: grid;
  grid-template-columns: 34px minmax(74px, auto) 16px;
  align-items: center;
  gap: 10px;
}

.profile > span {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  color: #fff;
  font-weight: 800;
  background: #0a7f87;
}

.profile strong,
.profile small {
  display: block;
  white-space: nowrap;
}

.profile strong {
  font-size: 14px;
}

.profile small {
  margin-top: 2px;
  color: #71829a;
  font-size: 12px;
}

.content-grid {
  height: calc(100vh - 88px);
  min-height: 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 368px;
  gap: 20px;
  padding: 20px 22px 28px 28px;
  overflow: hidden;
}

.main-column,
.side-column {
  min-height: 0;
  min-width: 0;
  overflow: hidden;
}

.main-column {
  display: flex;
  flex-direction: column;
}

.main-scroll {
  min-height: 0;
  flex: 1 1 auto;
  display: grid;
  align-content: start;
  gap: 14px;
  overflow-y: auto;
  padding: 0 2px 16px 0;
  overscroll-behavior: contain;
  scrollbar-gutter: stable;
}

.side-column {
  display: grid;
  align-content: start;
  gap: 14px;
  height: 100%;
  overflow-y: auto;
  padding-right: 2px;
  overscroll-behavior: contain;
  scrollbar-gutter: stable;
}

.main-scroll::-webkit-scrollbar,
.side-column::-webkit-scrollbar,
.sidebar::-webkit-scrollbar {
  width: 8px;
}

.main-scroll::-webkit-scrollbar-thumb,
.side-column::-webkit-scrollbar-thumb,
.sidebar::-webkit-scrollbar-thumb {
  border-radius: 999px;
  background: rgba(91, 112, 134, 0.24);
}

.panel {
  background: rgba(255, 255, 255, 0.88);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.panel-heading,
.section-heading,
.side-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
}

.panel-heading {
  padding: 22px 22px 16px;
}

.scene-title {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  font-size: 18px;
  line-height: 1.35;
}

.scene-title span {
  font-weight: 800;
}

.scene-title strong {
  color: #087c8a;
}

.scene-title em {
  padding: 4px 8px;
  border-radius: 999px;
  color: #0a8087;
  font-size: 12px;
  font-style: normal;
  background: var(--teal-2);
}

.panel-heading p,
.side-heading p,
.section-heading small {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 12px;
}

.ghost-button,
.link-button,
.more-button,
.attach-button,
.send-button,
.template-button,
.review-actions button {
  border-radius: var(--radius);
}

.ghost-button {
  display: inline-flex;
  align-items: center;
  flex: 0 0 auto;
  gap: 8px;
  min-height: 38px;
  padding: 0 14px;
  color: #4b607a;
  font-size: 12px;
  white-space: nowrap;
  background: #fff;
  border: 1px solid var(--line);
}

.ghost-button:hover {
  border-color: #b9cbdd;
  background: #f8fbff;
}

.instruction-card {
  margin: 0 22px 22px;
  padding: 18px;
  border: 1px solid #d5e1ee;
  border-radius: var(--radius);
  background: linear-gradient(180deg, #fff, #fbfdff);
}

.instruction-head,
.section-heading > div:first-child,
.side-heading {
  min-width: 0;
}

.instruction-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 12px;
}

.instruction-head h2,
.section-heading h2,
.side-heading h2 {
  margin: 0;
  color: #17283f;
  font-size: 16px;
  line-height: 1.3;
}

.instruction-head small {
  color: #8493a8;
  font-size: 12px;
}

.link-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  gap: 6px;
  min-height: 32px;
  padding: 0 8px;
  color: #58708d;
  font-size: 12px;
  white-space: nowrap;
  background: transparent;
  border: 0;
}

.link-button:hover {
  color: var(--teal);
  background: #eef8f8;
}

.instruction-card p {
  margin: 0;
  padding: 14px;
  color: #253850;
  font-size: 13px;
  line-height: 1.65;
  border: 1px solid #dbe5f0;
  border-radius: var(--radius);
  background: #fff;
}

.task-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 22px;
  margin: 12px 0 0;
  color: #70839c;
  font-size: 12px;
}

.task-meta div {
  display: flex;
  gap: 7px;
}

.task-meta dt {
  color: #8998aa;
}

.task-meta dt::after {
  content: "：";
}

.task-meta dd {
  margin: 0;
}

.section-heading {
  padding: 18px 22px 12px;
}

.section-heading > div:first-child {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
}

.section-heading.compact > div:first-child {
  display: block;
}

.status-pill {
  padding: 5px 10px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 800;
}

.status-pill.running {
  color: #0a857e;
  background: var(--teal-2);
}

.status-pill.done,
.status-pill.approved {
  color: var(--green);
  background: #e7f8f1;
}

.status-pill.waiting {
  color: #6f7d91;
  background: #eef2f7;
}

.status-pill.active {
  color: var(--blue);
  background: var(--blue-2);
}

.section-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex: 0 0 auto;
  white-space: nowrap;
}

.process-list {
  position: relative;
  margin: 2px 22px 14px;
  padding-left: 42px;
  border: 1px solid #dde7f2;
  border-radius: var(--radius);
  background: #fff;
}

.process-list::before {
  content: "";
  position: absolute;
  top: 29px;
  bottom: 31px;
  left: 20px;
  width: 2px;
  background: linear-gradient(180deg, var(--teal), var(--blue), #cbd8e7);
}

.process-item {
  position: relative;
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr) auto auto;
  align-items: center;
  gap: 14px;
  min-height: 74px;
  padding: 12px 16px 12px 0;
  border-bottom: 1px solid #edf2f7;
}

.process-item:last-child {
  border-bottom: 0;
}

.process-step {
  position: absolute;
  left: -30px;
  display: grid;
  place-items: center;
  width: 18px;
  height: 18px;
  color: #fff;
  font-size: 11px;
  font-weight: 800;
  border-radius: 50%;
  background: #8aa0b8;
  box-shadow: 0 0 0 4px #fff;
}

.process-item.done .process-step {
  background: var(--teal);
}

.process-item.active .process-step {
  background: var(--blue);
}

.employee-icon {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  color: #fff;
  font-size: 13px;
  font-weight: 800;
  background: #91a4ba;
}

.process-item.done .employee-icon {
  background: linear-gradient(135deg, #10a2a6, #087f8f);
}

.process-item.active .employee-icon {
  background: linear-gradient(135deg, #4788ff, #245ed9);
}

.process-copy {
  min-width: 0;
}

.process-copy strong {
  display: block;
  overflow: hidden;
  color: #22364e;
  font-size: 13px;
  line-height: 1.4;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.process-copy p {
  margin: 5px 0 0;
  overflow: hidden;
  color: #728399;
  font-size: 12px;
  line-height: 1.4;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.process-copy .detail {
  display: none;
  margin-top: 8px;
  color: #53677f;
  font-size: 12px;
  line-height: 1.55;
  white-space: normal;
}

.process-list.show-details .process-copy .detail {
  display: block;
}

.process-time {
  color: #50647d;
  font-size: 12px;
  white-space: nowrap;
}

.process-extra {
  color: #71829a;
  font-size: 12px;
  text-align: right;
  white-space: nowrap;
}

.risk-note {
  display: flex;
  align-items: center;
  gap: 7px;
  margin: 0;
  padding: 0 22px 20px;
  color: #6a7c93;
  font-size: 12px;
}

.risk-note svg {
  width: 16px;
  height: 16px;
  color: #557da8;
}

.composer {
  flex: 0 0 auto;
  display: grid;
  gap: 10px;
  margin-top: 0;
  padding: 12px 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 -12px 30px rgba(24, 40, 68, 0.08);
}

.launch-input {
  display: block;
  margin: 0;
  border: 1px solid #d7e1ed;
  border-radius: var(--radius);
  background: #fff;
}

.launch-input textarea {
  width: 100%;
  min-height: 52px;
  max-height: 92px;
  resize: vertical;
  padding: 9px 12px;
  color: #253850;
  font-size: 13px;
  line-height: 1.55;
  border: 0;
  border-radius: var(--radius);
  outline: 0;
  background: transparent;
}

.composer-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.composer-actions > span {
  flex: 1;
}

.attach-button,
.template-button {
  min-height: 32px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 0 12px;
  color: #475467;
  font-size: 12px;
  border: 1px solid #e4eaf0;
  border-radius: 999px;
  background: #f8fafc;
}

.attach-button:hover,
.template-button:hover {
  color: #0a7881;
  border-color: #b7dbe0;
  background: #f2fbfb;
}

.send-button {
  display: grid;
  place-items: center;
  height: 36px;
  min-width: 40px;
  width: 40px;
  color: #fff;
  border: 0;
  border-radius: 50%;
  background: linear-gradient(135deg, #0e9098, #076878);
  box-shadow: 0 10px 22px rgba(6, 104, 120, 0.26);
}

.suggestions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0;
}

.suggestions[hidden] {
  display: none;
}

.suggestion-chip {
  min-height: 30px;
  padding: 0 12px;
  color: #4e627b;
  background: #fff;
  border: 1px solid #dbe5f0;
  border-radius: var(--radius);
}

.suggestion-chip:hover {
  color: #0a7881;
  border-color: #a9d7dc;
}

.side-heading {
  display: block;
  padding: 20px 20px 10px;
}

.tabs {
  display: flex;
  align-items: center;
  gap: 24px;
  margin: 0 20px;
  border-bottom: 1px solid #dce7f2;
}

.tab {
  position: relative;
  min-height: 34px;
  padding: 0;
  color: #73849b;
  background: transparent;
  border: 0;
  font-size: 13px;
  font-weight: 700;
}

.tab span {
  display: inline-grid;
  place-items: center;
  min-width: 16px;
  height: 16px;
  margin-left: 4px;
  border-radius: 999px;
  color: #8697aa;
  font-size: 11px;
  background: #eef2f6;
}

.tab.active {
  color: #0b7d85;
}

.tab.active::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  height: 2px;
  background: #0b8d95;
}

.tab.active span {
  color: #e58221;
  background: #fff0df;
}

.review-list,
.output-list {
  display: grid;
  gap: 10px;
  padding: 14px 16px 12px;
}

.review-item {
  padding: 14px;
  border: 1px solid #fed18c;
  border-radius: var(--radius);
  background: linear-gradient(180deg, #fff, var(--amber-2));
}

.review-item.approved {
  border-color: #b8e1d9;
  background: linear-gradient(180deg, #fff, #ecfaf6);
}

.review-top {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 8px;
}

.review-top strong {
  color: #bf6810;
  font-size: 13px;
}

.review-item.approved .review-top strong {
  color: #128263;
}

.review-tag {
  align-self: flex-start;
  padding: 4px 8px;
  border-radius: 999px;
  color: #e47718;
  font-size: 11px;
  font-weight: 800;
  background: #fff0df;
  white-space: nowrap;
}

.review-item.approved .review-tag {
  color: #158c6c;
  background: #dff6ef;
}

.review-item p {
  margin: 0 0 8px;
  color: #40536d;
  font-size: 12px;
  line-height: 1.55;
}

.review-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  margin-bottom: 12px;
  color: #76869b;
  font-size: 11px;
}

.review-actions {
  display: grid;
  grid-template-columns: 1fr 1fr 1.35fr;
  gap: 10px;
}

.review-actions button {
  min-height: 36px;
  padding: 0 10px;
  color: #2d5879;
  font-size: 12px;
  background: #fff;
  border: 1px solid #d7e2ee;
}

.review-actions button:hover {
  color: #087a83;
  border-color: #a8d8dc;
}

.output-item {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr) auto 32px;
  align-items: center;
  gap: 12px;
  min-height: 60px;
  padding: 10px 12px;
  border: 1px solid #dce6f1;
  border-radius: var(--radius);
  background: #fff;
}

.output-icon {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 8px;
  color: #fff;
  font-size: 12px;
  font-weight: 800;
}

.output-icon.blue {
  background: #40a4d8;
}

.output-icon.orange {
  background: #f39b30;
}

.output-icon.red {
  background: #ff6c64;
}

.output-copy {
  min-width: 0;
}

.output-copy strong,
.output-copy span {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.output-copy strong {
  color: #22364f;
  font-size: 13px;
}

.output-copy span {
  margin-top: 3px;
  color: #74849a;
  font-size: 11px;
}

.output-status {
  padding: 5px 10px;
  border-radius: 999px;
  color: var(--green);
  font-size: 11px;
  font-weight: 800;
  background: #e6f8f0;
  white-space: nowrap;
}

.output-status.pending {
  color: #e1821b;
  background: #fff0df;
}

.download-button {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  color: #415a78;
  background: transparent;
  border: 0;
  border-radius: 50%;
}

.download-button:hover {
  background: #eef4fb;
}

.more-button {
  display: block;
  width: calc(100% - 32px);
  min-height: 38px;
  margin: 0 16px 16px;
  color: #0a7c86;
  font-weight: 700;
  background: transparent;
  border: 0;
}

.more-button::after {
  content: ">";
  margin-left: 10px;
}

.toast {
  position: fixed;
  left: 50%;
  bottom: 26px;
  z-index: 30;
  transform: translate(-50%, 18px);
  max-width: min(460px, calc(100vw - 32px));
  padding: 12px 16px;
  color: #fff;
  line-height: 1.4;
  border-radius: var(--radius);
  background: rgba(15, 34, 56, 0.92);
  opacity: 0;
  pointer-events: none;
  transition: opacity 180ms ease, transform 180ms ease;
}

.toast.show {
  transform: translate(-50%, 0);
  opacity: 1;
}

@media (max-width: 1280px) {
  .app-shell {
    grid-template-columns: 246px minmax(0, 1fr);
  }

  .content-grid {
    grid-template-columns: minmax(0, 1fr) 336px;
  }
}

@media (max-width: 980px) {
  html,
  body {
    height: auto;
    overflow: auto;
  }

  .app-shell {
    display: block;
    height: auto;
    overflow: visible;
  }

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

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

  .task-nav {
    margin-top: 22px;
  }

  .topbar {
    position: relative;
    height: auto;
    min-height: 0;
    flex-direction: column;
    align-items: stretch;
    padding: 18px;
  }

  .header-actions {
    justify-content: flex-start;
    flex-wrap: wrap;
  }

  .search-box {
    width: 100%;
    min-width: 0;
    flex: 1 1 280px;
  }

  .content-grid {
    height: auto;
    grid-template-columns: minmax(0, 1fr);
    overflow: visible;
    padding: 16px;
  }

  .main-column,
  .main-scroll,
  .side-column {
    height: auto;
    overflow: visible;
    grid-template-columns: minmax(0, 1fr);
  }

  .process-item {
    grid-template-columns: 42px minmax(0, 1fr) auto;
  }

  .process-extra {
    grid-column: 2 / -1;
    justify-self: start;
    text-align: left;
  }

  .template-button {
    min-height: 34px;
  }
}

@media (max-width: 640px) {
  .sidebar {
    padding: 18px 14px;
  }

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

  .brand strong {
    font-size: 18px;
  }

  .topbar h1 {
    font-size: 23px;
  }

  .profile {
    grid-template-columns: 34px 16px;
  }

  .profile div {
    display: none;
  }

  .panel-heading,
  .section-heading,
  .instruction-head {
    flex-direction: column;
    align-items: stretch;
  }

  .instruction-card,
  .process-list {
    margin-left: 14px;
    margin-right: 14px;
  }

  .panel-heading,
  .section-heading,
  .side-heading {
    padding-left: 14px;
    padding-right: 14px;
  }

  .process-list {
    padding-left: 34px;
  }

  .process-list::before {
    left: 17px;
  }

  .process-item {
    grid-template-columns: 38px minmax(0, 1fr);
    gap: 10px;
    padding-right: 10px;
  }

  .process-time,
  .process-extra {
    grid-column: 2 / -1;
  }

  .process-copy strong,
  .process-copy p {
    white-space: normal;
  }

  .employee-icon {
    width: 38px;
    height: 38px;
  }

  .composer {
    padding: 12px 14px 14px;
  }

  .composer-actions {
    flex-wrap: wrap;
  }

  .composer-actions > span {
    flex-basis: 100%;
    order: 3;
    height: 0;
  }

  .review-actions {
    grid-template-columns: 1fr;
  }

  .output-item {
    grid-template-columns: 38px minmax(0, 1fr) auto;
  }

  .download-button {
    grid-column: 3;
  }
}
