:root {
  --ink: #1f2723;
  --muted: #5c6660;
  --line: #cfd5cc;
  --soft: #f4f5f2;
  --accent: #2c6f66;
  color-scheme: light;
}

* {
  box-sizing: border-box;
}

body {
  background: var(--soft);
  color: var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  margin: 0;
}

.toolbar {
  align-items: center;
  background: #ffffff;
  border-bottom: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  padding: 20px 28px;
  position: sticky;
  top: 0;
  z-index: 2;
}

.toolbar p,
.sheet-header p {
  color: var(--accent);
  font-size: 0.78rem;
  font-weight: 850;
  letter-spacing: 0.08em;
  margin: 0 0 4px;
  text-transform: uppercase;
}

h1,
h2,
h3 {
  margin: 0;
}

h1 {
  font-size: 1.45rem;
}

.toolbar button {
  background: var(--accent);
  border: 0;
  border-radius: 8px;
  color: #ffffff;
  cursor: pointer;
  font: inherit;
  font-weight: 800;
  min-height: 42px;
  padding: 0 16px;
}

main {
  display: grid;
  gap: 24px;
  padding: 28px;
}

.sheet {
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 8px;
  min-height: 720px;
  padding: 28px;
}

.sheet-header {
  border-bottom: 2px solid var(--ink);
  margin-bottom: 22px;
  padding-bottom: 14px;
}

.sheet-header h2 {
  font-size: 1.8rem;
}

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

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

th {
  background: #eef1eb;
}

.swot-grid {
  display: grid;
  gap: 14px;
  grid-template-columns: 1fr 1fr;
}

.swot-grid div {
  border: 1px solid var(--line);
  min-height: 210px;
  padding: 14px;
}

.response-box {
  border: 1px solid var(--line);
  margin-top: 18px;
  min-height: 150px;
  padding: 14px;
}

.response-box ol {
  margin-bottom: 0;
}

.response-box li {
  min-height: 34px;
}

.axis-labels {
  display: grid;
  gap: 10px;
  grid-template-columns: 1fr 1fr;
  margin-bottom: 16px;
}

.axis-labels span {
  border-bottom: 1px solid var(--line);
  color: var(--muted);
  padding-bottom: 8px;
}

.positioning-map {
  border: 2px solid var(--ink);
  height: 410px;
  position: relative;
}

.positioning-map .horizontal,
.positioning-map .vertical {
  background: var(--line);
  position: absolute;
}

.positioning-map .horizontal {
  height: 2px;
  left: 0;
  top: 50%;
  width: 100%;
}

.positioning-map .vertical {
  height: 100%;
  left: 50%;
  top: 0;
  width: 2px;
}

@media print {
  @page {
    margin: 12mm;
    size: A4 landscape;
  }

  body {
    background: white;
  }

  .toolbar {
    display: none;
  }

  main {
    display: block;
    padding: 0;
  }

  .sheet {
    border: 0;
    border-radius: 0;
    min-height: auto;
    page-break-after: always;
    padding: 0;
  }
}
