:root {
  color-scheme: light;
  --ink: #172033;
  --muted: #657386;
  --line: #dce5e2;
  --panel: #ffffff;
  --paper: #f6faf8;
  --brand: #126b64;
  --brand-dark: #0a504b;
  --mint: #dff3ea;
  --amber: #fff2c8;
  --shadow: 0 18px 48px rgba(23, 32, 51, 0.1);
}

* {
  box-sizing: border-box;
}

[hidden] {
  display: none !important;
}

body {
  margin: 0;
  min-width: 320px;
  background: var(--paper);
  color: var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.5;
}

button {
  font: inherit;
}

input {
  font: inherit;
}

button:disabled {
  cursor: not-allowed;
  opacity: 0.45;
}

.app {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 34px 0 56px;
}

.access-gate {
  display: grid;
  place-items: center;
  min-height: 100vh;
  padding: 24px;
}

.access-card {
  width: min(100%, 440px);
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  box-shadow: var(--shadow);
  padding: clamp(22px, 5vw, 36px);
}

.access-card h1 {
  margin-bottom: 12px;
  font-size: clamp(2rem, 8vw, 3rem);
}

.access-card p:not(.eyebrow) {
  color: var(--muted);
}

.password-field {
  display: grid;
  gap: 8px;
  margin: 22px 0 12px;
  color: var(--brand-dark);
  font-weight: 850;
}

.password-field input {
  width: 100%;
  min-height: 48px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 0 12px;
  color: var(--ink);
  outline: none;
}

.password-field input:focus {
  border-color: var(--brand);
  box-shadow: 0 0 0 3px rgba(18, 107, 100, 0.14);
}

.access-error {
  margin-bottom: 12px;
  color: #9f2f2f;
  font-weight: 800;
}

.intro {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 260px;
  gap: 24px;
  align-items: end;
  padding: 10px 0 28px;
}

.eyebrow {
  margin: 0 0 8px;
  color: var(--brand-dark);
  font-size: 0.78rem;
  font-weight: 850;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

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

h1 {
  max-width: 760px;
  margin-bottom: 12px;
  font-size: clamp(2.1rem, 4.6vw, 4rem);
  line-height: 1;
  letter-spacing: 0;
}

h2 {
  margin-bottom: 10px;
  font-size: clamp(1.8rem, 3vw, 2.7rem);
  line-height: 1.08;
  letter-spacing: 0;
}

.intro p:not(.eyebrow),
.task-summary {
  max-width: 720px;
  color: #344457;
  font-size: 1.05rem;
}

.progress-card,
.role-panel,
.task-list-wrap,
.task-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  box-shadow: var(--shadow);
}

.progress-card {
  display: grid;
  gap: 8px;
  padding: 18px;
}

.progress-card span {
  color: var(--muted);
  font-size: 0.86rem;
  font-weight: 800;
}

.progress-card strong {
  font-size: 2.2rem;
  line-height: 1;
}

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

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

.role-panel {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  padding: 8px;
  margin-bottom: 18px;
  box-shadow: none;
}

.role-button {
  display: grid;
  gap: 2px;
  min-height: 72px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: var(--muted);
  text-align: left;
  padding: 12px 14px;
  cursor: pointer;
}

.role-button strong {
  color: var(--ink);
  font-size: 1rem;
}

.role-button span {
  font-size: 0.9rem;
}

.role-button.active {
  background: var(--brand);
  color: #fff;
}

.role-button.active strong {
  color: #fff;
}

.guide {
  display: grid;
  grid-template-columns: minmax(260px, 0.72fr) minmax(0, 1.28fr);
  gap: 18px;
  align-items: start;
}

.task-list-wrap {
  position: sticky;
  top: 18px;
  padding: 14px;
}

.list-head,
.task-top,
.task-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.list-head {
  margin-bottom: 12px;
}

.list-head span {
  color: var(--muted);
  font-size: 0.88rem;
  font-weight: 800;
}

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

.task-pill {
  display: grid;
  grid-template-columns: 34px 1fr;
  gap: 10px;
  align-items: center;
  width: 100%;
  min-height: 48px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfdfc;
  color: var(--ink);
  text-align: left;
  padding: 8px 10px;
  cursor: pointer;
}

.task-pill span {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: 8px;
  background: #edf3f1;
  color: var(--brand-dark);
  font-size: 0.8rem;
  font-weight: 850;
}

.task-pill.done span {
  background: var(--brand);
  color: #fff;
}

.task-pill.active {
  border-color: rgba(18, 107, 100, 0.5);
  background: var(--mint);
}

.task-card {
  min-height: 640px;
  padding: clamp(20px, 4vw, 38px);
}

.step-actions {
  display: flex;
  gap: 8px;
}

.icon-button {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: var(--brand-dark);
  font-size: 1.2rem;
  font-weight: 850;
  cursor: pointer;
}

.action-box {
  margin-top: 14px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfdfc;
}

.action-box strong {
  display: block;
  margin-bottom: 7px;
  color: var(--brand-dark);
}

.action-box p {
  margin: 0;
  color: var(--muted);
  font-size: 1.04rem;
}

.screen-steps {
  display: grid;
  gap: 8px;
  margin: 0;
  padding-left: 22px;
  color: var(--muted);
  font-size: 1.02rem;
}

.screen-steps li::marker {
  color: var(--brand-dark);
  font-weight: 850;
}

.action-box.check {
  background: var(--mint);
}

.action-box.concept {
  background: #fff;
}

.action-box.path {
  border-color: rgba(18, 107, 100, 0.3);
  background: #f7fbf9;
}

.action-box.path p {
  color: var(--brand-dark);
  font-weight: 820;
}

.action-box.decision {
  border-color: rgba(18, 107, 100, 0.26);
  background: #f0f8f4;
}

.warning {
  margin-top: 18px;
  padding: 14px 16px;
  border: 1px solid #efd88d;
  border-radius: 8px;
  background: var(--amber);
  color: #665025;
  font-weight: 760;
}

.task-footer {
  justify-content: flex-start;
  flex-wrap: wrap;
  margin-top: 26px;
}

.primary-action,
.secondary-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  border-radius: 8px;
  padding: 0 18px;
  font-weight: 850;
  cursor: pointer;
}

.primary-action {
  border: 1px solid var(--brand);
  background: var(--brand);
  color: #fff;
}

.primary-action.done {
  border-color: var(--brand-dark);
  background: var(--brand-dark);
}

.secondary-action {
  border: 1px solid rgba(10, 80, 75, 0.24);
  background: #fff;
  color: var(--brand-dark);
}

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

  .task-list-wrap {
    position: static;
  }

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

@media (max-width: 640px) {
  .app {
    width: min(100% - 24px, 1180px);
    padding-top: 22px;
  }

  .role-panel,
  .task-list {
    grid-template-columns: 1fr;
  }

  .task-top {
    align-items: flex-start;
    flex-direction: column;
  }

  .step-actions,
  .icon-button {
    width: 100%;
  }
}
