:root {
  --bg: #f3f1eb;
  --surface: #fffdf8;
  --surface-strong: #fffaf0;
  --ink: #1f2328;
  --muted: #5d6773;
  --accent: #0d5c4f;
  --accent-2: #c95f33;
  --accent-soft: #dff0ea;
  --accent-soft-2: #ffe6d8;
  --line: #ddd5c8;
  --shadow: 0 14px 36px rgba(33, 26, 13, 0.08);
  --shadow-strong: 0 18px 48px rgba(18, 20, 24, 0.11);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: "Noto Sans SC", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--ink);
  background:
    radial-gradient(circle at top left, rgba(220, 239, 227, 0.7), transparent 36%),
    radial-gradient(circle at bottom right, rgba(255, 214, 186, 0.65), transparent 34%),
    linear-gradient(180deg, #f4f2ec 0%, #ece8df 100%);
  line-height: 1.72;
}

.bg-shape {
  position: fixed;
  z-index: -1;
  border-radius: 999px;
  filter: blur(56px);
  opacity: 0.34;
}

.bg-shape-a {
  width: 260px;
  height: 260px;
  background: #98ddbc;
  top: -90px;
  right: -40px;
}

.bg-shape-b {
  width: 300px;
  height: 300px;
  background: #ffbe96;
  left: -120px;
  bottom: -130px;
}

.page {
  width: min(1060px, calc(100% - 24px));
  margin: 16px auto 28px;
  display: grid;
  gap: 12px;
}

.topbar,
.controls,
.status,
.brief-content {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 16px;
  box-shadow: var(--shadow);
}

.topbar {
  padding: 16px 18px;
}

.topbar h1 {
  margin: 0;
  font-family: "Space Grotesk", "Noto Sans SC", sans-serif;
  font-size: clamp(1.3rem, 3.8vw, 2rem);
  letter-spacing: 0.02em;
}

.topbar p {
  margin: 6px 0 0;
  color: var(--muted);
  font-size: 0.94rem;
}

.controls {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 8px;
  align-items: center;
  padding: 10px 12px;
}

.controls label {
  font-weight: 700;
  font-size: 0.92rem;
}

.controls input,
.controls button {
  height: 42px;
  border-radius: 11px;
  border: 1px solid var(--line);
  font: inherit;
}

.controls input {
  padding: 0 10px;
  width: 100%;
  background: #fff;
}

.controls button {
  background: linear-gradient(135deg, var(--accent) 0%, #0f7f69 100%);
  color: #fff;
  border: 0;
  padding: 0 15px;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 10px 20px rgba(13, 92, 79, 0.18);
}

.controls button:active {
  transform: translateY(1px);
}

.status {
  padding: 10px 12px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  color: var(--muted);
  font-size: 0.9rem;
}

.status code {
  background: var(--accent-soft);
  color: #124734;
  padding: 2px 8px;
  border-radius: 999px;
  font-size: 0.82rem;
}

.brief-content {
  padding: 16px 16px 24px;
  overflow-wrap: anywhere;
}

.brief-content .placeholder {
  color: var(--muted);
}

.brief-content h1,
.brief-content h2,
.brief-content h3,
.brief-content h4 {
  margin: 1.08em 0 0.45em;
  line-height: 1.35;
}

.brief-content h1 {
  font-size: 1.62rem;
}

.brief-content h2 {
  font-size: 1.3rem;
  border-bottom: 1px solid var(--line);
  padding-bottom: 0.34em;
}

.brief-content h3 {
  font-size: 1.08rem;
}

.brief-content p,
.brief-content li {
  font-size: 0.96rem;
}

.brief-content ul,
.brief-content ol {
  padding-left: 1.2em;
}

.brief-content code {
  background: #f4f7fa;
  border: 1px solid #e5ecf3;
  border-radius: 6px;
  padding: 1px 6px;
}

.brief-content a {
  color: var(--accent);
}

.focus-section-heading {
  border-bottom: 0;
  margin-bottom: 0.75em;
}

.focus-showcase {
  display: grid;
  gap: 16px;
  margin: 10px 0 28px;
}

.focus-card {
  background:
    linear-gradient(180deg, rgba(255, 252, 245, 0.96) 0%, rgba(255, 255, 255, 0.96) 100%);
  border: 1px solid rgba(201, 95, 51, 0.18);
  border-radius: 20px;
  box-shadow: var(--shadow-strong);
  padding: 18px;
  position: relative;
  overflow: hidden;
}

.focus-card::before {
  content: "";
  position: absolute;
  inset: 0 auto auto 0;
  width: 100%;
  height: 5px;
  background: linear-gradient(90deg, var(--accent-2), var(--accent));
}

.focus-card-head {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 12px;
  align-items: start;
  margin-bottom: 14px;
}

.focus-index {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--accent-2), #f5976a);
  color: #fff;
  display: grid;
  place-items: center;
  font-family: "Space Grotesk", sans-serif;
  font-weight: 700;
  letter-spacing: 0.04em;
}

.focus-title {
  margin: 0;
  font-size: clamp(1.2rem, 3.3vw, 1.7rem);
  font-weight: 700;
  line-height: 1.35;
  color: #15322e;
}

.focus-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 8px;
}

.focus-chip {
  border-radius: 999px;
  padding: 4px 10px;
  background: #f2efe8;
  color: #36404c;
  font-size: 0.82rem;
  font-weight: 700;
  border: 1px solid rgba(93, 103, 115, 0.12);
}

.focus-meta {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px 16px;
  padding: 12px 14px;
  border-radius: 16px;
  background: linear-gradient(180deg, rgba(223, 240, 234, 0.56), rgba(255, 255, 255, 0.72));
  border: 1px solid rgba(13, 92, 79, 0.1);
  margin-bottom: 16px;
}

.focus-meta-row {
  min-width: 0;
}

.focus-meta-key {
  display: block;
  font-size: 0.76rem;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 3px;
}

.focus-meta-value,
.focus-link {
  font-size: 0.92rem;
  color: var(--ink);
  text-decoration: none;
}

.focus-link {
  color: var(--accent);
  word-break: break-all;
}

.focus-grid {
  display: grid;
  gap: 12px;
}

.focus-block {
  border-radius: 16px;
  padding: 14px 15px;
  border: 1px solid rgba(29, 35, 40, 0.08);
  background: #fffdfa;
}

.focus-block-main {
  background: linear-gradient(180deg, rgba(223, 240, 234, 0.34), rgba(255, 255, 255, 0.96));
}

.focus-block-innovation {
  background: linear-gradient(180deg, rgba(255, 230, 216, 0.42), rgba(255, 255, 255, 0.98));
}

.focus-block-value {
  background: linear-gradient(180deg, rgba(239, 235, 255, 0.36), rgba(255, 255, 255, 0.98));
}

.focus-block-why {
  background: linear-gradient(180deg, rgba(250, 245, 220, 0.48), rgba(255, 255, 255, 0.98));
}

.focus-block-label {
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #4c5562;
  margin-bottom: 8px;
}

.focus-block-body {
  font-size: 0.98rem;
  line-height: 1.82;
  color: #21262d;
}

.term-highlight {
  display: inline-block;
  padding: 0 6px;
  margin: 0 1px;
  border-radius: 999px;
  background: linear-gradient(120deg, var(--accent-soft), var(--accent-soft-2));
  color: #16322d;
  font-weight: 700;
}

.focus-source-hidden {
  display: none;
}

@media (max-width: 860px) {
  .focus-meta {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 680px) {
  .page {
    width: calc(100% - 14px);
    margin-top: 8px;
    gap: 10px;
  }

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

  .controls button {
    width: 100%;
  }

  .brief-content {
    padding: 12px;
  }

  .focus-card {
    padding: 15px 14px;
  }

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

  .focus-index {
    width: 38px;
    height: 38px;
  }
}
