:root {
  --bg: #f8f7f1;
  --surface: #fffefa;
  --surface-2: #ffffff;
  --ink: #050505;
  --muted: #444;
  --soft: #767a72;
  --line: #e2e0d8;
  --blue: rgba(194, 244, 250, 0.72);
  --green: rgba(190, 242, 207, 0.72);
  --yellow: rgba(255, 247, 177, 0.76);
  --peach: rgba(255, 218, 202, 0.68);
  --risk: #b83b3b;
  --watch: #a06b00;
  --ok: #1d6b4f;
}

* {
  box-sizing: border-box;
}

[data-anchor] {
  scroll-margin-top: 18px;
}

body {
  margin: 0;
  min-height: 100vh;
  background:
    linear-gradient(120deg, rgba(194, 244, 250, 0.42), transparent 38%),
    linear-gradient(310deg, rgba(190, 242, 207, 0.38), transparent 36%),
    var(--bg);
  color: var(--ink);
  font-family: Inter, "Segoe UI", Arial, sans-serif;
  letter-spacing: 0;
}

.layout {
  min-height: 100vh;
  padding-left: 82px;
}

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

button {
  cursor: pointer;
}

.app-shell {
  width: min(1440px, calc(100% - 32px));
  margin: 0 auto;
  padding: 20px 0 40px;
}

.topbar {
  min-height: 72px;
  position: sticky;
  top: 0;
  z-index: 40;
  display: flex;
  gap: 12px;
  align-items: center;
  justify-content: space-between;
  padding: 10px 0;
  border-bottom: 1px solid var(--line);
  background:
    linear-gradient(120deg, rgba(194, 244, 250, 0.3), transparent 38%),
    linear-gradient(310deg, rgba(190, 242, 207, 0.24), transparent 36%),
    var(--bg);
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 950;
}

.brand-mark {
  width: 58px;
  height: 58px;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
}

.brand-logo {
  width: 58px;
  height: 58px;
  display: block;
}

.brand-copy {
  display: grid;
  gap: 2px;
}

.brand-title {
  font-size: 28px;
  line-height: 1;
  font-weight: 950;
}

.brand small {
  display: block;
  color: var(--muted);
  font-size: 14px;
  font-weight: 850;
}

.btn,
.icon-btn {
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  color: var(--ink);
  font-weight: 900;
}

.btn {
  padding: 0 16px;
}

.btn.full {
  width: 100%;
  grid-column: 1 / -1;
}

.btn.primary {
  border-color: var(--ink);
  background: var(--ink);
  color: white;
}

.new-launch-btn {
  min-width: 178px;
  font-size: 18px;
}

.topbar-actions {
  min-width: 0;
  display: grid;
  justify-items: end;
  gap: 6px;
}

.active-launch-context {
  max-width: min(720px, 52vw);
  color: var(--muted);
  font-size: 14px;
  font-weight: 900;
  line-height: 1.15;
  text-align: right;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.btn-plus {
  font-size: 22px;
  line-height: 1;
  font-weight: 950;
}

.btn.yellow {
  border: 2px solid var(--ink);
  background: var(--yellow);
}

.icon-btn {
  width: 42px;
  padding: 0;
}

.side-nav {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 50;
  width: 72px;
  height: 100vh;
  display: grid;
  grid-template-rows: auto auto minmax(0, 1fr);
  gap: 12px;
  padding: 14px 10px;
  border-right: 1px solid var(--line);
  background: var(--surface);
  box-shadow: 14px 0 34px rgba(0, 0, 0, 0.1);
  overflow: hidden;
  transition: width 180ms ease;
}

.side-nav:hover,
.side-nav:focus-within {
  width: 318px;
}

.side-nav-title {
  min-height: 54px;
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr);
  align-items: center;
  gap: 8px;
  padding: 0;
  border: 2px solid var(--ink);
  border-radius: 8px;
  background: var(--yellow);
  white-space: nowrap;
  overflow: hidden;
}

.side-nav-title::before {
  content: "☰";
  width: 48px;
  height: 50px;
  display: grid;
  place-items: center;
  font-size: 24px;
  font-weight: 950;
}

.side-nav-title span {
  opacity: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  font-weight: 950;
  transition: opacity 140ms ease;
}

.side-nav-title small {
  grid-column: 2;
  margin-top: -12px;
  opacity: 0;
  color: var(--muted);
  font-weight: 850;
  overflow: hidden;
  text-overflow: ellipsis;
  transition: opacity 140ms ease;
}

.side-nav:hover .side-nav-title span,
.side-nav:focus-within .side-nav-title span,
.side-nav:hover .side-nav-title small,
.side-nav:focus-within .side-nav-title small {
  opacity: 1;
}

.side-launch-switch {
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr);
  align-items: start;
  gap: 8px;
}

.side-launch-count {
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  border: 2px solid var(--ink);
  border-radius: 8px;
  background: var(--green);
  font-weight: 950;
}

.side-launch-list {
  min-width: 0;
  display: none;
  gap: 6px;
}

.side-nav:hover .side-launch-list,
.side-nav:focus-within .side-launch-list {
  display: grid;
}

.side-launch-list strong {
  font-size: 13px;
}

.side-launch-btn {
  min-height: 44px;
  display: grid;
  gap: 2px;
  padding: 7px 9px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  text-align: left;
  font-weight: 900;
}

.side-launch-btn.active {
  border-color: var(--ink);
  background: var(--yellow);
}

.side-launch-btn span,
.side-launch-btn small {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.side-launch-btn small {
  color: var(--muted);
  font-weight: 800;
}

.side-nav-list {
  display: grid;
  align-content: start;
  gap: 7px;
  min-width: 0;
  overflow-y: auto;
  overflow-x: hidden;
  padding-bottom: 20px;
}

.side-nav-item {
  display: grid;
  gap: 4px;
}

.side-nav-btn {
  width: 100%;
  min-height: 48px;
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr);
  align-items: center;
  gap: 8px;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  color: var(--ink);
  font-weight: 950;
  text-align: left;
}

.side-nav-item.active .side-nav-btn {
  border-color: var(--ink);
  background: var(--ink);
  color: white;
}

.side-nav-icon {
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  font-size: 22px;
  line-height: 1;
}

.side-nav-label {
  opacity: 0;
  overflow: hidden;
  white-space: nowrap;
  transition: opacity 140ms ease;
}

.side-nav:hover .side-nav-label,
.side-nav:focus-within .side-nav-label {
  opacity: 1;
}

.side-subnav {
  display: none;
  gap: 4px;
  padding: 0 0 4px 56px;
}

.side-nav:hover .side-subnav,
.side-nav:focus-within .side-subnav {
  display: grid;
}

.side-subnav-btn {
  min-height: 30px;
  padding: 0 10px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: var(--surface);
  color: var(--muted);
  font-size: 13px;
  font-weight: 850;
  text-align: left;
}

.launch-board {
  margin: 22px 0 18px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 254, 250, 0.72);
}

.launch-card-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-top: 14px;
}

.launch-card {
  min-height: 148px;
  display: grid;
  align-content: start;
  gap: 8px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  color: var(--ink);
  text-align: left;
}

.launch-card.active {
  border: 2px solid var(--ink);
  box-shadow: 0 10px 22px rgba(0, 0, 0, 0.07);
}

.launch-card strong {
  font-size: 20px;
  font-weight: 950;
  line-height: 1.1;
}

.launch-card p {
  margin: 0;
  color: var(--muted);
  font-weight: 800;
}

.launch-card-meta {
  display: grid;
  gap: 3px;
  color: var(--soft);
  font-size: 13px;
  font-weight: 800;
}

.directory-editor {
  grid-column: 1 / -1;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) 360px;
  gap: 18px;
  margin: 26px 0 18px;
}

.converter-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 420px;
  gap: 18px;
  margin: 26px 0 18px;
}

.hero-panel,
.side-panel,
.card,
.table-card,
.form-panel {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 254, 250, 0.82);
}

.hero-panel {
  min-height: 270px;
  display: grid;
  align-content: center;
  padding: 30px;
}

.eyebrow,
.status-chip,
.tag {
  display: inline-flex;
  width: fit-content;
  min-height: 32px;
  align-items: center;
  padding: 0 12px;
  border-radius: 999px;
  color: var(--ink);
  font-size: 12px;
  font-weight: 950;
  text-transform: uppercase;
}

.eyebrow {
  background: var(--green);
}

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

h1 {
  max-width: 850px;
  margin: 18px 0 12px;
  font-size: clamp(42px, 5vw, 78px);
  line-height: 0.98;
  font-weight: 950;
}

h2 {
  margin-bottom: 12px;
  font-size: 26px;
  line-height: 1.1;
}

h3 {
  margin-bottom: 8px;
  font-size: 16px;
}

.lead {
  max-width: 860px;
  margin-bottom: 0;
  color: #30343a;
  font-size: 21px;
  line-height: 1.45;
}

.side-panel {
  padding: 20px;
}

.converter-hero .lead {
  max-width: 900px;
}

.converter-hero .btn {
  width: fit-content;
  margin-bottom: 16px;
}

.launch-score {
  min-height: 170px;
  display: grid;
  place-items: center;
  margin: 16px 0;
  border-radius: 8px;
  background: linear-gradient(180deg, var(--blue), rgba(255, 255, 255, 0.52));
}

.launch-score strong {
  font-size: 70px;
  line-height: 1;
}

.launch-score span {
  color: var(--muted);
  font-weight: 900;
}

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

.kpi {
  min-height: 120px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 254, 250, 0.86);
}

.kpi span {
  display: block;
  min-height: 34px;
  color: var(--muted);
  font-weight: 850;
}

.kpi strong {
  display: block;
  margin-top: 10px;
  font-size: 36px;
}

.learning-panel {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 16px;
  align-items: center;
  margin-top: 18px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 254, 250, 0.86);
}

.learning-panel h2 {
  margin: 10px 0 6px;
}

.learning-panel p {
  max-width: 760px;
  margin-bottom: 0;
  color: var(--muted);
  line-height: 1.4;
}

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

.mini-kpis .kpi {
  min-height: 96px;
  padding: 12px;
}

.mini-kpis .kpi strong {
  font-size: 28px;
}

.content-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 370px;
  gap: 18px;
  align-items: start;
  min-width: 0;
}

.panel-stack {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 18px;
  min-width: 0;
}

.panel-stack > *,
.timeline,
.timeline-item,
.datebox {
  max-width: 100%;
  min-width: 0;
}

.card,
.table-card,
.form-panel {
  padding: 20px;
}

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

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

.panel-head p {
  margin: 5px 0 0;
  color: var(--muted);
  line-height: 1.4;
}

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

.field {
  display: grid;
  gap: 7px;
  position: relative;
}

.field.full {
  grid-column: 1 / -1;
}

.formula-panel {
  grid-column: 1 / -1;
  display: grid;
  gap: 6px;
  border: 2px solid var(--ink);
  border-radius: 8px;
  background: var(--yellow);
  padding: 14px;
}

.formula-panel span,
.formula-panel small {
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.formula-panel strong {
  display: block;
  margin-top: 4px;
  font-size: clamp(18px, 2vw, 26px);
  line-height: 1.2;
}

.button-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 14px;
}

.integration-status {
  padding: 16px;
  border: 2px solid var(--ink);
  border-radius: 8px;
  background: var(--yellow);
}

.integration-status.ok {
  background: var(--green);
}

.integration-status.watch {
  background: var(--peach);
}

.integration-status strong {
  display: block;
  margin-bottom: 6px;
  font-size: 24px;
}

.integration-status p {
  margin: 0;
  color: var(--muted);
  font-weight: 800;
}

.ai-review-card {
  display: grid;
  gap: 14px;
}

.ai-review-result {
  display: grid;
  gap: 12px;
}

.ai-score {
  display: flex;
  align-items: baseline;
  gap: 10px;
  padding: 12px;
  border: 2px solid var(--ink);
  border-radius: 8px;
  background: white;
}

.ai-score strong {
  font-size: 30px;
  line-height: 1;
}

.ai-score span,
.ai-summary {
  color: var(--muted);
  font-weight: 850;
}

.ai-summary {
  margin: 0;
}

.ai-review-block {
  display: grid;
  gap: 8px;
}

.ai-review-block > strong {
  font-size: 14px;
}

.field label {
  color: var(--muted);
  font-size: 13px;
  font-weight: 900;
}

.field-hint {
  color: var(--soft);
  font-size: 12px;
  font-weight: 700;
  line-height: 1.35;
}

.field-source-label {
  color: var(--soft);
  font-size: 12px;
  font-weight: 850;
  line-height: 1.25;
}

.input,
.select,
.textarea {
  width: 100%;
  border: 2px solid var(--ink);
  border-radius: 8px;
  background: white;
  color: var(--ink);
  outline: none;
}

.field-manual .input,
.field-manual .textarea,
.field-manual .date-button {
  border-color: #f0d95f;
  box-shadow: 0 0 0 2px rgba(255, 247, 177, 0.72);
}

.field-select .select {
  border-color: #7edfa8;
  box-shadow: 0 0 0 2px rgba(190, 242, 207, 0.72);
}

.field-auto .input {
  border-color: #f0b9ab;
  background: rgba(255, 218, 202, 0.2);
  box-shadow: 0 0 0 2px rgba(255, 218, 202, 0.68);
}

.field-auto .input[readonly] {
  cursor: default;
}

.field-manual .field-source-label::before,
.field-select .field-source-label::before,
.field-auto .field-source-label::before {
  content: "";
  width: 9px;
  height: 9px;
  display: inline-block;
  margin-right: 6px;
  border-radius: 999px;
  vertical-align: 0;
}

.field-manual .field-source-label::before {
  background: var(--yellow);
  border: 1px solid #f0d95f;
}

.field-select .field-source-label::before {
  background: var(--green);
  border: 1px solid #7edfa8;
}

.field-auto .field-source-label::before {
  background: var(--peach);
  border: 1px solid #f0b9ab;
}

.input,
.select {
  min-height: 48px;
  padding: 0 12px;
}

.textarea {
  min-height: 92px;
  padding: 12px;
  resize: vertical;
}

.date-button {
  width: 100%;
  min-height: 48px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 0 12px;
  border: 2px solid var(--ink);
  border-radius: 8px;
  background: white;
  color: var(--ink);
  text-align: left;
}

.date-button span {
  font-weight: 800;
}

.date-button b {
  font-size: 20px;
  line-height: 1;
}

.calendar-popover {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  z-index: 20;
  width: min(340px, 92vw);
  padding: 12px;
  border: 2px solid var(--ink);
  border-radius: 8px;
  background: white;
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.16);
}

.calendar-head {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr) 42px;
  gap: 8px;
  align-items: center;
  margin-bottom: 10px;
}

.calendar-head strong {
  text-align: center;
  text-transform: capitalize;
}

.calendar-weekdays,
.calendar-grid {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 5px;
}

.calendar-weekdays {
  margin-bottom: 6px;
}

.calendar-weekdays span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
  text-align: center;
}

.calendar-day,
.calendar-empty {
  min-height: 36px;
  display: grid;
  place-items: center;
  border-radius: 7px;
}

.calendar-day {
  border: 1px solid var(--line);
  background: var(--surface);
  font-weight: 900;
}

.calendar-day:hover,
.calendar-day.selected {
  border-color: var(--ink);
  background: var(--yellow);
}

.progress-list {
  display: grid;
  gap: 12px;
}

.progress-row {
  display: grid;
  grid-template-columns: 150px minmax(0, 1fr) 58px;
  gap: 12px;
  align-items: center;
}

.bar {
  height: 12px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: white;
}

.bar i {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: var(--ink);
}

.timeline {
  display: grid;
  gap: 12px;
}

.timeline-item {
  display: grid;
  grid-template-columns: 104px minmax(0, 1fr) auto;
  gap: 14px;
  align-items: center;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: white;
}

.datebox {
  display: grid;
  place-items: center;
  min-height: 54px;
  border: 2px solid var(--ink);
  border-radius: 8px;
  background: var(--yellow);
  font-weight: 950;
}

.status-chip {
  background: var(--blue);
}

.status-chip.ok {
  background: var(--green);
}

.status-chip.watch {
  background: var(--yellow);
}

.status-chip.risk {
  background: var(--peach);
}

.data-table {
  width: 100%;
  border-collapse: collapse;
}

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

.data-table th {
  color: var(--muted);
  font-size: 12px;
  text-transform: uppercase;
}

.link-btn {
  min-height: 34px;
  padding: 0 12px;
  border: 1px solid var(--ink);
  border-radius: 8px;
  background: var(--surface);
  color: var(--ink);
  font-weight: 900;
}

.metric-good {
  color: var(--ok);
  font-weight: 950;
}

.metric-risk {
  color: var(--risk);
  font-weight: 950;
}

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

.task-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 140px 110px;
  gap: 14px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: white;
}

.task-card strong,
.timeline-item strong {
  display: block;
  margin-bottom: 4px;
}

.task-card p,
.timeline-item p {
  margin: 0;
  color: var(--muted);
  line-height: 1.35;
}

.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.tag {
  min-height: 28px;
  background: var(--surface);
  border: 1px solid var(--line);
  text-transform: none;
}

.tag.p0 {
  background: var(--peach);
}

.tag.p1 {
  background: var(--yellow);
}

.bonus-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 14px;
}

.bonus-card {
  display: grid;
  gap: 10px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: white;
}

.bonus-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
}

.bonus-head strong {
  line-height: 1.25;
}

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

.directory-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin-top: 18px;
}

.catalog-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin: 18px 0;
}

.directory-card {
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 254, 250, 0.86);
}

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

.directory-item {
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: white;
}

.directory-item strong {
  display: block;
  margin-bottom: 4px;
}

.directory-item p {
  margin: 0;
  color: var(--muted);
  line-height: 1.35;
}

.arch-hero {
  margin: 26px 0 18px;
  padding: 30px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 254, 250, 0.86);
}

.arch-section {
  margin-bottom: 18px;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 254, 250, 0.86);
  overflow-x: auto;
}

.flow-board {
  min-width: 980px;
  display: grid;
  grid-template-columns: minmax(180px, 1fr) 52px minmax(220px, 1.25fr) 52px minmax(200px, 1fr) 52px minmax(200px, 1fr);
  gap: 12px;
  align-items: stretch;
}

.flow-board.compact {
  grid-template-columns: minmax(180px, 1fr) 52px minmax(220px, 1.2fr) 52px minmax(220px, 1.2fr) 52px minmax(220px, 1.2fr);
}

.flow-column {
  display: grid;
  align-content: start;
  gap: 10px;
  padding: 14px;
  border: 2px solid var(--ink);
  border-radius: 8px;
  background: white;
}

.flow-column h2 {
  margin-bottom: 4px;
}

.flow-node {
  display: grid;
  gap: 4px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
}

.flow-node:nth-child(2n) {
  background: var(--blue);
}

.flow-node:nth-child(3n) {
  background: var(--green);
}

.flow-node span {
  color: var(--muted);
  line-height: 1.3;
  font-weight: 750;
}

.flow-arrow {
  display: grid;
  place-items: center;
  color: var(--ink);
  font-size: 42px;
  font-weight: 950;
}

.arch-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin-bottom: 18px;
}

.arch-card {
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 254, 250, 0.86);
}

.tz-card {
  min-height: 210px;
  display: grid;
  align-content: start;
  gap: 10px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: white;
}

.check-list {
  display: grid;
  gap: 8px;
  padding: 0;
  margin: 0;
  list-style: none;
}

.check-list li {
  display: grid;
  grid-template-columns: 22px minmax(0, 1fr);
  gap: 8px;
  color: #30343a;
  line-height: 1.35;
}

.check-list li::before {
  content: "";
  width: 18px;
  height: 18px;
  margin-top: 1px;
  border: 2px solid var(--ink);
  border-radius: 5px;
  background: var(--green);
}

.empty-note {
  padding: 16px;
  border: 1px dashed var(--line);
  border-radius: 8px;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.55);
}

@media (max-width: 1080px) {
  .hero-grid,
  .content-grid,
  .converter-hero,
  .learning-panel {
    grid-template-columns: 1fr;
  }

  .kpi-grid,
  .tz-grid,
  .directory-grid,
  .catalog-actions,
  .arch-grid,
  .bonus-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 680px) {
  .layout {
    padding-left: 0;
    padding-bottom: 76px;
  }

  .app-shell {
    width: min(100% - 22px, 1440px);
    padding-top: 10px;
  }

  .hero-panel,
  .side-panel,
  .card,
  .table-card,
  .form-panel {
    padding: 16px;
  }

  h1 {
    font-size: 42px;
  }

  .kpi-grid,
  .form-grid,
  .tz-grid,
  .directory-grid,
  .catalog-actions {
    grid-template-columns: 1fr;
  }

  .arch-grid {
    grid-template-columns: 1fr;
  }

  .timeline-item,
  .task-card,
  .progress-row {
    grid-template-columns: minmax(0, 1fr) !important;
    width: 100%;
    min-width: 0;
  }

  .content-grid,
  .hero-grid,
  .converter-hero {
    display: block !important;
    width: 100%;
    min-width: 0;
  }

  .content-grid > *,
  .hero-grid > *,
  .converter-hero > * {
    width: 100%;
    min-width: 0;
    margin-bottom: 14px;
  }

  .panel-head {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: start;
  }

  .panel-head h2,
  .timeline-item strong,
  .timeline-item p {
    overflow-wrap: anywhere;
  }

  .topbar {
    min-height: 64px;
    gap: 10px;
    align-items: start;
  }

  .brand small {
    display: none;
  }

  .topbar-actions {
    justify-items: end;
  }

  .active-launch-context {
    max-width: 42vw;
    font-size: 11px;
    line-height: 1.2;
    white-space: normal;
  }

  .new-launch-btn {
    min-width: 136px;
    min-height: 38px;
    padding: 0 12px;
    font-size: 14px;
  }

  .side-nav {
    top: auto;
    right: 0;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 68px;
    grid-template-rows: 1fr;
    padding: 8px;
    border-right: 0;
    border-top: 1px solid var(--line);
    overflow-x: auto;
    overflow-y: hidden;
    transition: none;
  }

  .side-nav:hover,
  .side-nav:focus-within {
    width: 100%;
  }

  .side-nav-title,
  .side-launch-switch,
  .side-subnav {
    display: none !important;
  }

  .side-nav-list {
    display: flex;
    gap: 7px;
    overflow-x: auto;
    overflow-y: hidden;
    padding-bottom: 0;
  }

  .side-nav-item {
    min-width: 52px;
  }

  .side-nav-btn {
    min-height: 50px;
    grid-template-columns: 50px;
    justify-content: center;
  }

  .side-nav-label {
    display: none;
  }

  .side-nav-icon {
    width: 50px;
    height: 50px;
  }

  .launch-card-grid {
    grid-template-columns: 1fr;
  }

  .data-table {
    min-width: 620px;
  }

  .bonus-grid,
  .mini-kpis {
    grid-template-columns: 1fr;
  }
}
