:root {
  --ink: #171a22;
  --muted: #647084;
  --line: #dbe2ec;
  --paper: #f3f5f8;
  --white: #ffffff;
  --primary: #1264d8;
  --primary-deep: #0b4ca7;
  --green: #16835a;
  --amber: #ad6f00;
  --panel: #fbfcfe;
  --shadow: 0 12px 30px rgba(15, 23, 42, 0.055);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 84px;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: -apple-system, BlinkMacSystemFont, "Noto Sans JP", "Hiragino Sans", "Yu Gothic", sans-serif;
  line-height: 1.65;
  letter-spacing: 0;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

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

button,
input {
  font: inherit;
}

button:focus-visible,
a:focus-visible,
input:focus-visible,
summary:focus-visible {
  outline: 2px solid rgba(18, 100, 216, 0.22);
  outline-offset: 2px;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  display: grid;
  grid-template-columns: 1fr;
  align-items: center;
  min-height: 64px;
  padding: 12px clamp(18px, 3vw, 38px);
  background: rgba(255, 255, 255, 0.92);
  border-bottom: 1px solid rgba(15, 23, 42, 0.08);
  backdrop-filter: blur(18px);
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  font-size: 14px;
  font-weight: 800;
  letter-spacing: 0.01em;
}

.brand span:last-child {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.brand-mark {
  display: grid;
  flex: 0 0 auto;
  width: 32px;
  height: 32px;
  place-items: center;
  color: var(--white);
  background: var(--ink);
  border-radius: 7px;
}

.topnav {
  display: flex;
  gap: 18px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}

.button,
.icon-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  border: 0;
  border-radius: 7px;
  cursor: pointer;
  font-weight: 800;
  transition: background-color 160ms ease, box-shadow 160ms ease, transform 160ms ease;
}

.button {
  padding: 8px 15px;
  color: var(--white);
  background: var(--primary);
  box-shadow: 0 8px 18px rgba(18, 100, 216, 0.16);
}

.button.secondary {
  color: var(--primary);
  background: #eaf2ff;
  box-shadow: none;
}

.button:hover,
.icon-button:hover {
  background: var(--primary-deep);
}

.button.secondary:hover {
  color: var(--primary-deep);
  background: #ddeaff;
}

.icon-button {
  min-width: 70px;
  padding: 7px 10px;
  color: var(--white);
  background: var(--primary);
}

.app-shell {
  display: grid;
  grid-template-columns: 150px minmax(0, 1fr);
  gap: 22px;
  width: min(1480px, calc(100% - 36px));
  margin: 22px auto 48px;
}

body.routine-view .app-shell,
body.comment-view .app-shell {
  grid-template-columns: minmax(0, 1fr);
}

body.routine-view .rail,
body.comment-view .rail {
  display: none;
}

body.routine-view .side-tabs,
body.comment-view .side-tabs {
  margin-bottom: 0;
}

body.routine-view .workspace > :not(.view-switcher):not(#step6) {
  display: none;
}

body.comment-view .workspace > :not(.view-switcher):not(#comment-system) {
  display: none;
}

body:not(.routine-view) #step6 {
  display: none;
}

body:not(.comment-view) #comment-system {
  display: none;
}

.rail,
.side-panel {
  position: sticky;
  top: 86px;
  align-self: start;
}

.rail {
  display: grid;
  gap: 8px;
}

.rail-title,
.eyebrow,
.metric-label {
  margin: 0;
  color: var(--primary);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
}

.rail-link {
  padding: 10px 12px;
  color: var(--muted);
  border-radius: 7px;
  font-size: 13px;
  font-weight: 800;
}

.rail-link.is-active,
.rail-link:hover {
  color: var(--ink);
  background: var(--white);
  box-shadow: 0 1px 0 rgba(15, 23, 42, 0.06);
}

.workspace {
  display: grid;
  gap: 18px;
  min-width: 0;
}

.section-block,
.step-card,
.guide-strip,
.progress-box {
  background: var(--white);
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 8px;
  box-shadow: var(--shadow);
  min-width: 0;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  max-width: 820px;
  margin-bottom: 12px;
  font-size: clamp(32px, 4vw, 54px);
  line-height: 1.08;
  letter-spacing: 0;
}

h2 {
  margin-bottom: 8px;
  font-size: clamp(22px, 1.8vw, 28px);
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: 0;
}

.section-title p,
.file-action small {
  color: var(--muted);
}

.section-block {
  padding: clamp(22px, 3vw, 32px);
}

.guide-strip {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 14px;
  align-items: center;
  padding: 15px 18px;
  background: linear-gradient(180deg, #ffffff 0%, #fbfcff 100%);
  border-color: rgba(15, 23, 42, 0.10);
  box-shadow: var(--shadow);
}

.guide-label {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 5px 10px;
  color: var(--primary-deep);
  background: #edf5ff;
  border: 1px solid rgba(18, 100, 216, 0.16);
  border-radius: 7px;
  font-size: 12px;
  font-weight: 900;
  white-space: nowrap;
}

.guide-strip p {
  margin: 0;
  color: #58667d;
  font-size: clamp(14px, 1.2vw, 16px);
  font-weight: 700;
  line-height: 1.7;
}

.support-drawer {
  overflow: hidden;
  background: #fffaf0;
  border: 1px solid rgba(173, 111, 0, 0.24);
  border-radius: 8px;
  box-shadow: 0 10px 24px rgba(173, 111, 0, 0.055);
}

.support-drawer summary {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 14px;
  min-height: 58px;
  padding: 15px 18px;
  cursor: pointer;
  list-style: none;
}

.support-drawer summary::-webkit-details-marker {
  display: none;
}

.support-drawer summary span {
  grid-column: 1;
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 5px 10px;
  color: #8a5600;
  background: #fff0c2;
  border: 1px solid rgba(173, 111, 0, 0.28);
  border-radius: 7px;
  font-size: 12px;
  font-weight: 900;
  white-space: nowrap;
}

.support-drawer summary strong {
  grid-column: 2;
  color: #58667d;
  font-size: clamp(14px, 1.2vw, 16px);
  font-weight: 700;
  line-height: 1.7;
}

.support-drawer summary::after {
  content: "詳細を見る";
  grid-column: 3;
  margin-left: auto;
  padding: 6px 11px;
  color: #8a5600;
  background: var(--white);
  border: 1px solid rgba(173, 111, 0, 0.28);
  border-radius: 999px;
  box-shadow: 0 4px 12px rgba(173, 111, 0, 0.08);
  font-size: 12px;
  font-weight: 900;
  white-space: nowrap;
}

.support-drawer[open] summary::after {
  content: "閉じる";
}

.support-drawer-body {
  padding: 0 18px 18px;
  border-top: 1px solid var(--line);
}

.step-card > .support-drawer {
  margin: 18px 0;
}

.support-lead {
  margin: 14px 0 0;
  color: var(--muted);
  font-weight: 700;
  line-height: 1.7;
}

.section-title {
  max-width: 760px;
  margin-bottom: 20px;
}

.step-card {
  padding: clamp(20px, 3vw, 30px);
}

.step-head {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 16px;
  align-items: start;
  margin-bottom: 18px;
}

.step-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 74px;
  min-height: 34px;
  padding: 7px 12px;
  color: var(--white);
  background: var(--primary);
  border-radius: 7px;
  font-size: 12px;
  font-weight: 900;
  white-space: nowrap;
}

.step-head h2 {
  margin-bottom: 6px;
}

.step-head p {
  max-width: 820px;
  margin-bottom: 0;
  color: var(--muted);
  font-weight: 600;
  line-height: 1.7;
}

.step-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 0 0 16px;
}

.substeps {
  display: grid;
  gap: 10px;
  margin-top: 16px;
}

.substeps details,
.supporting-detail {
  overflow: hidden;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 1px 0 rgba(15, 23, 42, 0.025);
}

.substeps summary,
.supporting-detail summary {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 52px;
  padding: 13px 14px;
  cursor: pointer;
  color: var(--ink);
  font-weight: 800;
  line-height: 1.45;
  list-style: none;
}

.substeps summary::-webkit-details-marker,
.supporting-detail summary::-webkit-details-marker {
  display: none;
}

.substeps summary::after,
.supporting-detail summary::after {
  content: "詳細を見る";
  margin-left: auto;
  padding: 5px 10px;
  color: var(--primary-deep);
  background: #eaf2ff;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 800;
  white-space: nowrap;
}

.substeps details[open] summary::after,
.supporting-detail[open] summary::after {
  content: "閉じる";
}

.substeps summary span,
.supporting-detail summary span {
  display: inline-flex;
  min-width: 38px;
  justify-content: center;
  padding: 3px 7px;
  color: var(--white);
  background: var(--green);
  border-radius: 6px;
  font-size: 12px;
}

.detail-body {
  padding: 0 14px 14px;
  border-top: 1px solid var(--line);
}

.detail-body p {
  margin: 12px 0;
  color: var(--muted);
  font-weight: 600;
  line-height: 1.75;
}

.detail-body label {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  min-height: 46px;
  padding: 12px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 7px;
  font-weight: 700;
  line-height: 1.5;
}

.detail-body input {
  width: 18px;
  height: 18px;
  margin-top: 3px;
  accent-color: var(--primary);
}

.supporting-detail {
  margin-top: 14px;
}

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

.checklist label,
.verify-grid label {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  min-height: 48px;
  padding: 12px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 7px;
  font-weight: 600;
  line-height: 1.55;
}

.checklist input,
.verify-grid input {
  width: 18px;
  height: 18px;
  margin-top: 3px;
  accent-color: var(--primary);
}

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

.file-action {
  display: grid;
  gap: 7px;
  min-height: 132px;
  padding: 16px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.file-action span {
  display: grid;
  width: 36px;
  height: 28px;
  place-items: center;
  color: var(--white);
  background: var(--green);
  border-radius: 6px;
  font-size: 12px;
  font-weight: 900;
}

.file-action strong {
  font-size: 18px;
  line-height: 1.35;
}

.mini-form {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr)) auto;
  align-items: end;
  gap: 10px;
  padding: 14px;
  background: #fbfcfe;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.mini-form label {
  display: grid;
  gap: 6px;
  color: var(--ink);
  font-size: 12px;
  font-weight: 800;
}

.mini-form input {
  width: 100%;
  min-height: 40px;
  padding: 8px 10px;
  color: var(--ink);
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 7px;
}

.prompt-box {
  margin-top: 14px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #0f172a;
  box-shadow: 0 12px 26px rgba(15, 23, 42, 0.08);
}

.codex-call {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  margin: 0 0 16px;
  padding: 12px 14px;
  background: #f0fbf7;
  border: 1px solid rgba(22, 131, 90, 0.2);
  border-radius: 8px;
}

.codex-call span {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 4px 9px;
  color: #0d6847;
  background: #dff7ec;
  border: 1px solid rgba(22, 131, 90, 0.18);
  border-radius: 7px;
  font-size: 12px;
  font-weight: 900;
  white-space: nowrap;
}

.codex-call p {
  margin: 0;
  color: #4d5d72;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.65;
}

.codex-call pre {
  display: none;
}

.prompt-box.compact {
  max-width: 820px;
}

.support-examples {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin-top: 16px;
}

.support-examples div,
.support-note {
  padding: 14px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.support-examples strong,
.support-note strong {
  display: block;
  margin-bottom: 6px;
  font-weight: 800;
}

.support-examples p,
.support-note p {
  margin: 0;
  color: var(--muted);
  font-weight: 600;
  line-height: 1.65;
}

.support-note {
  margin-top: 10px;
  background: #fffdf7;
  border-color: #ead9ad;
}

.support-template {
  margin-top: 14px;
}

.prompt-help {
  margin: 0;
  padding: 12px 14px;
  color: #cbd5e1;
  border-bottom: 1px solid rgba(255, 255, 255, 0.14);
  font-size: 13px;
  font-weight: 700;
  line-height: 1.6;
}

.prompt-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 14px;
  color: var(--white);
  border-bottom: 1px solid rgba(255, 255, 255, 0.14);
}

pre {
  max-height: 430px;
  margin: 0;
  padding: 18px;
  overflow: auto;
  color: #edf2ff;
  font-size: 14px;
  line-height: 1.7;
  white-space: pre-wrap;
}

.data-table-wrap {
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.data-table {
  width: 100%;
  min-width: 760px;
  border-collapse: collapse;
  background: var(--white);
}

.data-table th,
.data-table td {
  padding: 12px 14px;
  text-align: left;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}

.data-table th {
  color: var(--white);
  background: #203047;
  font-size: 13px;
}

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

.tabs {
  display: flex;
  gap: 8px;
  margin-bottom: 12px;
}

.tab {
  min-height: 38px;
  padding: 8px 14px;
  color: var(--muted);
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 7px;
  cursor: pointer;
  font-weight: 800;
  transition: background-color 160ms ease, border-color 160ms ease, color 160ms ease;
}

.tab.is-active {
  color: var(--white);
  background: var(--primary);
  border-color: var(--primary);
  box-shadow: 0 8px 18px rgba(18, 100, 216, 0.16);
}

.tab-panel {
  display: none;
  padding: 14px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 1px 0 rgba(15, 23, 42, 0.025);
}

.tab-panel.is-active {
  display: block;
}

.ordered {
  margin: 0;
  padding-left: 24px;
  font-weight: 700;
  color: var(--ink);
  line-height: 1.7;
}

.ordered li + li {
  margin-top: 8px;
}

.usage-note {
  margin-top: 14px;
  padding: 14px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 1px 0 rgba(15, 23, 42, 0.025);
}

.usage-note strong {
  display: block;
  margin-bottom: 6px;
}

.usage-note p {
  margin: 0;
  color: var(--muted);
  font-weight: 600;
}

.comment-overview {
  display: grid;
  gap: 14px;
  margin-bottom: 16px;
  padding: 16px;
  background: linear-gradient(180deg, #f8fbff 0%, #ffffff 100%);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 1px 0 rgba(15, 23, 42, 0.025);
}

.comment-overview-head span {
  display: inline-flex;
  margin-bottom: 8px;
  color: var(--primary);
  font-size: 12px;
  font-weight: 900;
}

.comment-overview-head h3 {
  margin: 0 0 8px;
  font-size: clamp(22px, 3vw, 32px);
  line-height: 1.25;
}

.comment-overview-head p {
  margin: 0;
  color: var(--muted);
  font-weight: 650;
  line-height: 1.8;
}

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

.comment-overview-grid div {
  padding: 13px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.comment-overview-grid strong {
  display: block;
  margin-bottom: 6px;
}

.comment-overview-grid p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  font-weight: 650;
  line-height: 1.75;
}

.comment-video-panel {
  display: grid;
  gap: 14px;
  padding: 14px;
  background: #f8fbff;
  border: 1px solid #d7e4f6;
  border-radius: 8px;
}

.comment-video-copy {
  display: grid;
  gap: 5px;
}

.comment-video-copy span {
  color: var(--primary);
  font-size: 12px;
  font-weight: 900;
}

.comment-video-copy strong {
  font-size: clamp(18px, 2vw, 24px);
  line-height: 1.35;
}

.comment-video-copy p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  font-weight: 700;
  line-height: 1.75;
}

.comment-video-title {
  margin: 0;
  color: var(--ink);
  font-size: clamp(17px, 1.7vw, 22px);
  font-weight: 900;
  line-height: 1.35;
}

.comment-video-block {
  display: grid;
  gap: 10px;
}

.video-shell {
  position: relative;
  overflow: hidden;
  max-width: 1280px;
  margin: 0 auto;
  background: #0f172a;
  border: 1px solid rgba(15, 23, 42, 0.12);
  border-radius: 8px;
}

.comment-video-panel video {
  display: block;
  width: 100%;
  max-height: 620px;
  background: #0f172a;
  border: 0;
  border-radius: 0;
}

.comment-price-note {
  display: grid;
  grid-template-columns: minmax(190px, 0.28fr) 1fr;
  gap: 12px;
  align-items: center;
  padding: 14px;
  background: #eef6ff;
  border: 1px solid #c7ddff;
  border-radius: 8px;
}

.comment-price-note div {
  display: grid;
  gap: 3px;
}

.comment-price-note span {
  color: var(--primary);
  font-size: 12px;
  font-weight: 900;
}

.comment-price-note strong {
  font-size: clamp(20px, 2.5vw, 28px);
  line-height: 1.25;
}

.comment-price-note p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  font-weight: 700;
  line-height: 1.8;
}

.compact-table {
  margin-top: 10px;
}

.compact-table .data-table {
  min-width: 520px;
}

.side-panel {
  display: grid;
  gap: 14px;
  min-width: 0;
}

.side-card {
  background: var(--white);
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 8px;
  box-shadow: var(--shadow);
  min-width: 0;
  padding: 18px;
}

.view-switcher {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
  align-items: stretch;
}

.view-switcher .side-tabs {
  margin-bottom: 0;
}

.view-switcher .side-tab-panel:not(.progress-panel).is-active {
  display: none;
}

.progress-panel {
  min-width: 0;
  padding: 2px 4px 0;
}

.side-tabs {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 6px;
  margin-bottom: 16px;
  padding: 4px;
  background: #eef2f7;
  border-radius: 8px;
}

.side-tab {
  min-height: 34px;
  padding: 6px 4px;
  border: 0;
  border-radius: 6px;
  color: var(--muted);
  background: transparent;
  cursor: pointer;
  font-size: 12px;
  font-weight: 800;
}

.side-tab.is-active {
  color: var(--primary-deep);
  background: var(--white);
  box-shadow: 0 1px 4px rgba(15, 23, 42, 0.08);
}

.side-tab-panel {
  display: none;
}

.side-tab-panel.is-active {
  display: block;
}

.progress-number {
  display: block;
  margin: 6px 0 10px;
  font-size: 30px;
  line-height: 1;
}

.progress-track {
  height: 10px;
  overflow: hidden;
  background: #e4e9f1;
  border-radius: 999px;
}

.progress-track span {
  display: block;
  width: 0%;
  height: 100%;
  background: var(--green);
  transition: width 180ms ease;
}

.side-list {
  margin: 14px 0 0;
  padding-left: 20px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.side-list li + li {
  margin-top: 7px;
}

.side-card h2 {
  margin: 6px 0 8px;
  font-size: 22px;
}

.side-link {
  display: inline-flex;
  margin-top: 14px;
  color: var(--primary-deep);
  font-size: 13px;
  font-weight: 900;
}

.side-copy {
  margin: 8px 0 12px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
  line-height: 1.6;
}

.side-download {
  width: 100%;
  margin-top: 4px;
}

.focus-panel {
  max-width: 720px;
}

.focus-panel h2 {
  margin: 8px 0 10px;
  font-size: clamp(32px, 4vw, 48px);
}

.focus-panel p {
  margin: 0 0 18px;
  color: var(--muted);
  font-size: clamp(18px, 2vw, 24px);
  font-weight: 800;
  line-height: 1.6;
}

.focus-panel ol {
  margin: 18px 0 0;
  padding-left: 28px;
  color: var(--muted);
  font-size: clamp(18px, 2vw, 24px);
  font-weight: 900;
  line-height: 1.7;
}

.focus-panel li + li {
  margin-top: 8px;
}

.focus-download {
  margin-bottom: 4px;
}

.toast {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 30;
  padding: 11px 14px;
  color: var(--white);
  background: var(--ink);
  border-radius: 7px;
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 160ms ease, transform 160ms ease;
  pointer-events: none;
  font-weight: 800;
}

.toast.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 40;
  display: grid;
  place-items: center;
  padding: 18px;
  background: rgba(15, 23, 42, 0.48);
}

.modal-backdrop[hidden] {
  display: none;
}

.modal {
  width: min(100%, 430px);
  padding: 20px;
  background: var(--white);
  border-radius: 8px;
  box-shadow: 0 24px 70px rgba(15, 23, 42, 0.24);
}

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

.modal-head h2 {
  margin: 0;
  font-size: 24px;
}

.modal-close {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border: 0;
  border-radius: 7px;
  background: #eef2f7;
  cursor: pointer;
  font-size: 22px;
  line-height: 1;
}

.modal p {
  color: var(--muted);
  font-weight: 700;
}

.password-field {
  display: grid;
  gap: 7px;
  margin-top: 14px;
  color: var(--ink);
  font-weight: 900;
}

.password-field input {
  width: 100%;
  min-height: 44px;
  padding: 9px 11px;
  border: 1px solid var(--line);
  border-radius: 7px;
}

.modal-error {
  margin: 9px 0 0;
  color: #b42318 !important;
}

.modal-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 16px;
}

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

  .rail {
    display: none;
  }
}

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

  .topnav {
    display: none;
  }

  .app-shell {
    grid-template-columns: 1fr;
  }

  .view-switcher {
    grid-template-columns: 1fr;
  }

  .checklist,
  .verify-grid,
  .support-examples,
  .action-grid,
  .mini-form,
  .comment-overview-grid {
    grid-template-columns: 1fr;
  }

  .comment-price-note {
    grid-template-columns: 1fr;
  }

}

@media (max-width: 560px) {
  .topbar {
    padding-inline: 12px;
  }

  .app-shell {
    width: min(100% - 20px, 1480px);
    margin-top: 12px;
    gap: 14px;
  }

  .page-head,
  .section-block {
    padding: 18px;
  }

  h1 {
    font-size: 31px;
  }

  .step-head {
    grid-template-columns: 1fr;
    gap: 10px;
    margin-bottom: 16px;
  }

  .step-badge {
    width: fit-content;
    max-width: 100%;
    justify-self: start;
    min-height: 32px;
    padding: 6px 11px;
  }

  .step-card {
    padding: 18px;
  }

  .step-head h2 {
    font-size: 24px;
    line-height: 1.25;
  }

  .step-head p {
    font-size: 15px;
  }

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

  .step-actions .button {
    width: 100%;
    min-height: 44px;
  }

  .tabs {
    gap: 7px;
  }

  .tab {
    flex: 1;
    min-height: 42px;
    padding: 8px 10px;
    font-size: 14px;
  }

  .tab-panel {
    padding: 14px 12px;
  }

  .ordered {
    padding-left: 20px;
    font-size: 15px;
    font-weight: 700;
    line-height: 1.75;
  }

  .usage-note {
    padding: 13px;
  }

  .usage-note p {
    font-size: 14px;
  }

  .codex-call {
    grid-template-columns: 1fr;
    gap: 9px;
  }

  .codex-call span {
    width: fit-content;
  }

  .codex-call .icon-button {
    width: 100%;
    min-height: 40px;
  }

  .guide-strip {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .guide-label {
    width: fit-content;
  }

  .support-drawer summary {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: start;
    gap: 8px 10px;
    padding: 14px;
  }

  .support-drawer summary span {
    grid-column: 1 / -1;
    width: fit-content;
  }

  .support-drawer summary strong {
    grid-column: 1;
    align-self: center;
  }

  .support-drawer summary::after {
    grid-column: 2;
    align-self: center;
    justify-self: end;
    margin-left: 0;
  }

  .substeps summary,
  .supporting-detail summary {
    align-items: flex-start;
    gap: 8px;
    padding: 12px;
    font-size: 15px;
  }

  .substeps summary::after,
  .supporting-detail summary::after {
    margin-left: 0;
  }

  .detail-body {
    padding: 0 12px 12px;
  }

  .detail-body p {
    font-size: 14px;
  }

  .detail-body label,
  .verify-grid label {
    font-size: 14px;
  }

  .side-card {
    padding: 14px;
  }

  .side-tabs {
    gap: 4px;
    padding: 4px;
  }

  .side-tab {
    min-height: 38px;
    padding: 6px 3px;
    font-size: 11px;
  }
}
