:root {
  color-scheme: light;
  --bg: #f7f8f5;
  --surface: #ffffff;
  --surface-2: #f3f6f1;
  --ink: #161b18;
  --muted: #657068;
  --line: #e2e7df;
  --accent: #0b7a5a;
  --accent-dark: #075c44;
  --accent-soft: #edf7f2;
  --coffee: #6f5543;
  --coffee-soft: #f5eee8;
  --warn: #9d5a00;
  --warn-soft: #fff7e8;
  --danger: #9b2c2c;
  --shadow: 0 18px 42px rgba(22, 27, 24, 0.08);
  --shadow-soft: 0 10px 26px rgba(22, 27, 24, 0.052);
  --shadow-card: 0 8px 22px rgba(22, 27, 24, 0.045);
  --hairline: rgba(22, 27, 24, 0.08);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  overflow-x: hidden;
}

body {
  margin: 0;
  min-width: 320px;
  overflow-x: hidden;
  background:
    linear-gradient(180deg, #eef4ee 0, #f7f8f5 320px),
    var(--bg);
  color: var(--ink);
  font-family: "Microsoft YaHei", "PingFang SC", system-ui, sans-serif;
  letter-spacing: 0;
}

button,
input {
  font: inherit;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

button {
  cursor: pointer;
}

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

h1,
h2,
h3,
p,
figure {
  margin: 0;
}

.manual-app {
  min-height: 100vh;
}

.manual-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  border-bottom: 1px solid rgba(214, 224, 216, 0.82);
  background: rgba(255, 255, 255, 0.92);
  padding: 12px 22px;
  box-shadow: 0 10px 28px rgba(22, 27, 24, 0.05);
  backdrop-filter: blur(18px);
}

.brand {
  display: grid;
  grid-template-columns: 46px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
  min-width: 0;
}

.brand-mark {
  display: grid;
  width: 46px;
  height: 46px;
  place-items: center;
  border: 1px solid #d7e5dd;
  border-radius: 8px;
  background: #fff;
  color: var(--accent);
  font-weight: 900;
  box-shadow: 0 8px 18px rgba(22, 27, 24, 0.06);
}

.brand strong {
  display: block;
  overflow: hidden;
  max-width: 260px;
  font-size: 16px;
  line-height: 1.2;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.brand small {
  display: block;
  margin-top: 3px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.language-trigger {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  gap: 8px;
  min-height: 38px;
  border: 1px solid #d2e6dc;
  border-radius: 8px;
  background: var(--accent-soft);
  color: var(--accent);
  font-size: 13px;
  font-weight: 900;
  padding: 8px 11px;
  box-shadow: 0 6px 14px rgba(22, 27, 24, 0.04);
}

.language-trigger span {
  display: grid;
  width: 22px;
  height: 22px;
  place-items: center;
  border-radius: 7px;
  background: #fff;
  color: var(--accent);
  font-size: 12px;
  line-height: 1;
}

.language-trigger strong {
  max-width: 96px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.language-trigger:focus-visible {
  outline: 3px solid rgba(11, 122, 90, 0.2);
  outline-offset: 2px;
}

.top-nav {
  display: flex;
  align-items: center;
  gap: 6px;
  min-width: 0;
}

.top-nav a {
  border: 1px solid transparent;
  border-radius: 8px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 900;
  padding: 10px 12px;
}

.top-nav a:hover,
.top-nav a:focus-visible {
  background: var(--accent-soft);
  border-color: #d2e6dc;
  color: var(--accent);
  outline: none;
}

main {
  counter-reset: manual-section;
  display: grid;
  gap: 16px;
  width: min(1180px, 100%);
  margin: 0 auto;
  padding: 18px 22px 40px;
}

.language-notice {
  border: 1px solid #dccbbd;
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(245, 238, 232, 0.94), rgba(255, 255, 255, 0.86)),
    #fff;
  color: #4e463d;
  font-size: 13px;
  font-weight: 800;
  line-height: 1.55;
  padding: 10px 12px;
}

.start-panel {
  position: relative;
  overflow: hidden;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 430px);
  gap: 18px;
  align-items: stretch;
  border: 1px solid rgba(205, 217, 207, 0.92);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(237, 247, 242, 0.9), rgba(255, 255, 255, 0.42) 48%),
    var(--surface);
  box-shadow: var(--shadow);
  padding: 18px;
}

.start-panel::before {
  position: absolute;
  inset: 0 0 auto;
  height: 3px;
  background: linear-gradient(90deg, var(--accent), var(--coffee));
  content: "";
}

.start-copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-width: 0;
  padding: 10px 4px;
}

.label {
  color: var(--accent);
  font-size: 12px;
  font-weight: 900;
}

.start-copy h1 {
  margin-top: 6px;
  font-size: clamp(30px, 5vw, 50px);
  line-height: 1.08;
  font-weight: 900;
}

.start-lead {
  max-width: 620px;
  margin-top: 14px;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.65;
}

.path-preview {
  position: relative;
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 0;
  align-items: start;
  margin-top: 16px;
  border: 1px solid #cfe0d7;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.86);
  box-shadow: 0 6px 16px rgba(22, 27, 24, 0.035);
  padding: 12px 10px 10px;
}

.path-preview::before {
  position: absolute;
  top: 26px;
  right: 42px;
  left: 42px;
  height: 2px;
  border-radius: 99px;
  background: #d5e3db;
  content: "";
}

.flow-node {
  position: relative;
  z-index: 1;
  display: grid;
  justify-items: center;
  gap: 4px;
  min-width: 0;
  color: #354039;
  text-align: center;
}

.flow-node b {
  display: grid;
  width: 30px;
  height: 30px;
  place-items: center;
  border: 1px solid #c5dbd1;
  border-radius: 8px;
  background: var(--accent-soft);
  color: var(--accent);
  font-size: 11px;
  line-height: 1;
}

.flow-node span {
  overflow: hidden;
  width: 100%;
  font-size: 13px;
  font-weight: 900;
  line-height: 1.2;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.flow-node small {
  overflow: hidden;
  width: 100%;
  color: var(--muted);
  font-size: 10px;
  font-weight: 800;
  line-height: 1.2;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.path-preview i {
  display: none;
}

.start-actions {
  display: none;
}

.support-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 20px;
}

.primary-action,
.secondary-action,
.support-actions a,
.support-actions button,
.resource-item a,
.resource-item button,
.play-video,
.reset-progress {
  min-height: 42px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: var(--ink);
  font-size: 13px;
  font-weight: 900;
  padding: 10px 14px;
}

.primary-action {
  border-color: var(--accent);
  background: var(--accent);
  color: #fff;
}

.curve-primary-action {
  border-color: #6f5543;
  background: #6f5543;
  color: #fff;
}

.secondary-action:hover,
.resource-item a:hover,
.download-card a:hover,
.play-video:hover,
.reset-progress:hover {
  border-color: var(--accent);
  background: var(--accent-soft);
  color: var(--accent);
}

button:disabled,
.resource-item button:disabled,
.support-actions button:disabled {
  cursor: not-allowed;
  border-color: #ecd8b6;
  background: var(--warn-soft);
  color: var(--warn);
}

.status-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 18px;
}

.status-row span {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfdfb;
  color: var(--muted);
  font-size: 13px;
  font-weight: 900;
  padding: 8px 10px;
}

.status-row strong {
  color: var(--accent);
}

.status-row .todo {
  border-color: #ecd8b6;
  background: var(--warn-soft);
  color: var(--warn);
}

.status-row .todo strong {
  color: var(--warn);
}

.product-figure {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  border: 1px solid rgba(204, 216, 207, 0.92);
  border-radius: 8px;
  background:
    radial-gradient(circle at 50% 42%, rgba(255, 255, 255, 0.78), rgba(255, 255, 255, 0) 46%),
    linear-gradient(140deg, #f8f4ec 0%, #edf2ec 52%, #dce6dc 100%);
  box-shadow: 0 16px 36px rgba(22, 27, 24, 0.08);
}

.product-figure::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  background:
    linear-gradient(180deg, rgba(250, 248, 242, 0.28), rgba(239, 244, 238, 0.9)),
    url("./assets/hero/buu4-home-hero-effect-v1.png") center 48% / cover no-repeat;
  filter: blur(18px) saturate(0.95);
  opacity: 0.38;
  transform: scale(1.08);
  pointer-events: none;
}

.product-figure img {
  position: relative;
  z-index: 1;
  display: block;
  width: 100%;
  height: clamp(430px, 58vw, 620px);
  min-height: 0;
  max-height: none;
  object-fit: contain;
  object-position: center center;
  cursor: zoom-in;
}

.product-figure figcaption {
  position: relative;
  z-index: 2;
  border-top: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.92);
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  line-height: 1.45;
  padding: 9px 11px;
}

.photo-badge {
  position: absolute;
  z-index: 2;
  left: 12px;
  bottom: 44px;
  display: grid;
  gap: 2px;
  border: 1px solid rgba(255, 255, 255, 0.66);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.88);
  box-shadow: 0 10px 24px rgba(22, 27, 24, 0.14);
  padding: 9px 10px;
  backdrop-filter: blur(12px);
}

.photo-badge strong {
  color: var(--accent);
  font-size: 13px;
  font-weight: 900;
}

.photo-badge span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
}

.progress-panel {
  display: grid;
  grid-template-columns: auto minmax(120px, 1fr) auto;
  gap: 12px;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  padding: 10px 12px;
}

.progress-text {
  display: flex;
  align-items: baseline;
  gap: 8px;
  white-space: nowrap;
}

.progress-text strong {
  color: var(--accent);
  font-size: 20px;
  font-weight: 900;
}

.progress-text span {
  color: var(--muted);
  font-size: 13px;
  font-weight: 900;
}

.progress-track {
  overflow: hidden;
  height: 9px;
  border-radius: 99px;
  background: var(--surface-2);
}

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

.reset-progress {
  min-height: 36px;
  padding: 7px 12px;
}

.section-block,
.support-band {
  border: 1px solid rgba(214, 224, 216, 0.9);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: var(--shadow-soft);
  padding: 16px;
  scroll-margin-top: 82px;
}

.section-block {
  counter-increment: manual-section;
}

.video-section {
  background:
    linear-gradient(180deg, #ffffff 0, #fbfdfb 100%);
}

.section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 14px;
}

.section-head > div {
  position: relative;
  min-width: 0;
  padding-left: 46px;
}

.section-head > div::before {
  position: absolute;
  top: 1px;
  left: 0;
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border: 1px solid #cfe4da;
  border-radius: 8px;
  background: var(--accent-soft);
  color: var(--accent);
  content: counter(manual-section, decimal-leading-zero);
  font-size: 12px;
  font-weight: 900;
}

#manual-status .section-head > div::before {
  border-color: #ecd8b6;
  background: var(--warn-soft);
  color: var(--warn);
}

.section-head h2,
.support-band h2 {
  margin-top: 4px;
  font-size: 26px;
  line-height: 1.2;
  font-weight: 900;
}

.section-head p,
.support-band p {
  max-width: 520px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.55;
}

.quick-curve-callout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 14px;
  align-items: center;
  margin-bottom: 12px;
  border: 1px solid #d8c4b4;
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(245, 238, 232, 0.9), rgba(255, 255, 255, 0.84)),
    #fff;
  padding: 13px 14px;
  box-shadow: var(--shadow-card);
}

.quick-curve-callout h3 {
  margin-top: 3px;
  font-size: 19px;
  line-height: 1.25;
  font-weight: 900;
}

.quick-curve-callout p:last-child {
  margin-top: 6px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.55;
}

.quick-curve-callout button,
.callout-action,
.curve-toolbar button,
.curve-actions button,
.curve-actions a {
  display: grid;
  place-items: center;
  min-height: 40px;
  border: 1px solid var(--accent);
  border-radius: 8px;
  background: var(--accent);
  color: #fff;
  font-size: 13px;
  font-weight: 900;
  padding: 9px 12px;
  white-space: nowrap;
}

.roast-modes-section {
  background:
    linear-gradient(180deg, #ffffff 0, #fbfdfb 100%);
}

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

.mode-card {
  display: grid;
  align-content: start;
  gap: 11px;
  min-width: 0;
  border: 1px solid rgba(214, 224, 216, 0.95);
  border-radius: 8px;
  background: #fff;
  padding: 14px;
  box-shadow: var(--shadow-card);
}

.manual-mode {
  border-color: #cfe4da;
  background:
    linear-gradient(135deg, rgba(237, 247, 242, 0.88), rgba(255, 255, 255, 0.86)),
    #fff;
}

.auto-mode {
  border-color: #dccbbd;
  background:
    linear-gradient(135deg, rgba(245, 238, 232, 0.9), rgba(255, 255, 255, 0.86)),
    #fff;
}

.mode-kicker {
  width: fit-content;
  border: 1px solid #d7e5dd;
  border-radius: 8px;
  background: #fff;
  color: var(--accent);
  font-size: 11px;
  font-weight: 900;
  padding: 5px 8px;
}

.auto-mode .mode-kicker {
  border-color: #dccbbd;
  color: var(--coffee);
}

.mode-card h3 {
  font-size: 22px;
  line-height: 1.2;
  font-weight: 900;
}

.mode-card p,
.mode-card li {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.58;
}

.mode-alert {
  border: 1px solid #ead3a0;
  border-radius: 8px;
  background: #fff8e4;
  color: #7a4b13 !important;
  font-weight: 800;
  padding: 9px 10px;
}

.curve-runtime-notice {
  border: 1px solid #ead3a0;
  border-radius: 8px;
  background: #fff8e4;
  color: #7a4b13;
  font-size: 13px;
  font-weight: 850;
  line-height: 1.55;
  margin: 0;
  padding: 9px 10px;
}

.mode-card ol {
  display: grid;
  gap: 6px;
  margin: 0;
  padding-left: 20px;
}

.mode-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin-top: 2px;
}

.mode-actions a,
.mode-actions button {
  display: grid;
  place-items: center;
  min-height: 38px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: var(--ink);
  font-size: 13px;
  font-weight: 900;
  padding: 8px 10px;
  text-align: center;
}

.mode-actions button,
.manual-mode .mode-actions a:first-child {
  border-color: var(--accent);
  background: var(--accent);
  color: #fff;
}

.auto-mode .mode-actions a:last-child {
  border-color: #dccbbd;
  background: #fff8ee;
  color: var(--coffee);
}

.roast-basics {
  display: grid;
  gap: 12px;
  margin-top: 14px;
  border: 1px solid #d0e0d7;
  border-radius: 8px;
  background: #fbfdfb;
  padding: 14px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.76);
}

.basics-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 14px;
}

.basics-head h3 {
  margin-top: 3px;
  font-size: 21px;
  line-height: 1.25;
  font-weight: 900;
}

.basics-head p {
  max-width: 560px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.55;
}

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

.basic-card {
  display: grid;
  align-content: start;
  gap: 7px;
  min-width: 0;
  border: 1px solid rgba(214, 224, 216, 0.96);
  border-radius: 8px;
  background: #fff;
  padding: 12px;
  box-shadow: 0 5px 14px rgba(22, 27, 24, 0.026);
}

.basic-card b {
  display: grid;
  width: 30px;
  height: 30px;
  place-items: center;
  border-radius: 8px;
  background: var(--accent-soft);
  color: var(--accent);
  font-size: 12px;
}

.basic-card h4 {
  margin: 0;
  font-size: 15px;
  line-height: 1.35;
  font-weight: 900;
}

.basic-card p {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.55;
}

.source-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  color: var(--muted);
  font-size: 12px;
}

.source-list a {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: var(--accent);
  font-weight: 900;
  padding: 6px 8px;
}

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

.video-guide-list {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 10px;
}

.video-guide-card {
  display: grid;
  grid-template-rows: 132px minmax(0, 1fr);
  overflow: hidden;
  border: 1px solid rgba(214, 224, 216, 0.96);
  border-radius: 8px;
  background: #fbfdfb;
  box-shadow: var(--shadow-card);
}

.video-thumb {
  position: relative;
  min-height: 132px;
  background-color: #eef3ef;
  background-position: center;
  background-size: cover;
}

.video-thumb::after {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(15, 20, 17, 0.1), rgba(15, 20, 17, 0.42));
  content: "";
}

.video-thumb span {
  position: absolute;
  right: 10px;
  bottom: 10px;
  z-index: 1;
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.42);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.9);
  color: var(--accent);
  font-weight: 900;
}

.video-guide-body {
  display: grid;
  align-content: start;
  gap: 9px;
  min-width: 0;
  padding: 11px;
}

.video-guide-body .step-topline {
  align-items: start;
}

.video-guide-body h3 {
  font-size: 15px;
  line-height: 1.35;
  font-weight: 900;
}

.video-guide-body p {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.55;
}

.play-video {
  width: 100%;
  min-height: 38px;
  padding: 8px 10px;
}

.play-video:not(.disabled) {
  border-color: var(--accent);
  background: var(--accent);
  color: #fff;
}

.step-card {
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr) 116px;
  gap: 12px;
  align-items: center;
  border: 1px solid rgba(214, 224, 216, 0.96);
  border-left: 3px solid #d7e5dd;
  border-radius: 8px;
  background: #fbfdfb;
  padding: 12px;
  box-shadow: 0 5px 16px rgba(22, 27, 24, 0.028);
}

.step-card:hover {
  border-left-color: var(--accent);
  border-color: #b8dfce;
  background:
    linear-gradient(135deg, rgba(237, 247, 242, 0.76), rgba(255, 255, 255, 0.9)),
    #fff;
}

.todo-card {
  border-color: #ecd8b6 !important;
  background: var(--warn-soft) !important;
}

.step-card.todo-card {
  border-color: rgba(214, 224, 216, 0.96) !important;
  border-left-color: #d7e5dd !important;
  background: #fbfdfb !important;
}

.step-index {
  display: grid;
  height: 46px;
  place-items: center;
  border: 1px solid #d7e5dd;
  border-radius: 8px;
  background: #fff;
  color: var(--accent);
  font-weight: 900;
}

.step-body {
  min-width: 0;
}

.step-topline {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.step-topline h3,
.resource-grid h3 {
  font-size: 18px;
  line-height: 1.25;
  font-weight: 900;
}

.tag,
.mini-status {
  flex: 0 0 auto;
  border: 1px solid #cfe4da;
  border-radius: 999px;
  background: #fff;
  color: var(--accent);
  font-size: 12px;
  font-weight: 900;
  padding: 5px 8px;
}

.tag-todo,
.mini-status.todo {
  border-color: #ecd8b6;
  color: var(--warn);
}

.step-body p {
  margin-top: 7px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.5;
}

.step-body ul,
.trouble-item ol {
  margin: 9px 0 0;
  padding-left: 18px;
  color: #354039;
  font-size: 13px;
  line-height: 1.7;
}

.step-enter {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  min-height: 42px;
  border: 1px solid var(--accent);
  border-radius: 8px;
  background: var(--accent);
  color: #fff;
  font-size: 13px;
  font-weight: 900;
  padding: 10px 12px;
  white-space: nowrap;
  box-shadow: 0 8px 18px rgba(11, 122, 90, 0.16);
}

.step-enter::after {
  margin-left: 0;
  content: "›";
}

.step-enter:focus-visible,
.guide-actions a:focus-visible,
.guide-actions button:focus-visible {
  outline: 3px solid rgba(11, 122, 90, 0.22);
  outline-offset: 2px;
}

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

.protected-layout {
  display: grid;
  grid-template-columns: minmax(280px, 0.92fr) minmax(0, 1.08fr);
  gap: 12px;
}

.curve-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 12px;
  border: 1px solid #d7e5dd;
  border-radius: 8px;
  background: #fbfdfb;
  padding: 12px;
}

.curve-toolbar strong {
  display: block;
  font-size: 15px;
  line-height: 1.35;
}

.curve-toolbar span {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  line-height: 1.45;
}

.curve-catalog-list,
.curve-dialog-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.curve-card {
  display: grid;
  grid-template-columns: 150px minmax(0, 1fr);
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfdfb;
  box-shadow: 0 6px 18px rgba(22, 27, 24, 0.035);
}

.curve-bean-image {
  display: block;
  width: 150px;
  height: 100%;
  min-height: 214px;
  object-fit: cover;
  background: var(--coffee-soft);
}

.curve-card-body {
  display: grid;
  align-content: start;
  gap: 9px;
  min-width: 0;
  padding: 12px;
}

.curve-card-title {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 10px;
}

.curve-card-title strong {
  display: block;
  font-size: 17px;
  line-height: 1.32;
  font-weight: 900;
}

.curve-card-title p {
  margin-top: 4px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  line-height: 1.35;
}

.curve-card-title > span {
  flex: 0 0 auto;
  border: 1px solid #dccbbd;
  border-radius: 999px;
  background: #fff;
  color: var(--coffee);
  font-size: 12px;
  font-weight: 900;
  padding: 5px 8px;
}

.curve-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.curve-meta span,
.curve-tags span {
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
  color: #3d473f;
  font-size: 12px;
  font-weight: 850;
  line-height: 1.2;
  padding: 5px 8px;
}

.curve-flavor,
.curve-result {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.55;
}

.curve-result {
  color: #354039;
  font-weight: 850;
}

.curve-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.curve-tags span {
  border-color: #cfe4da;
  color: var(--accent);
}

.curve-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 2px;
}

.curve-actions button {
  border-color: var(--line);
  background: #fff;
  color: var(--accent);
}

.curve-actions button:hover {
  border-color: var(--accent);
  background: var(--accent-soft);
}

.curve-download {
  display: inline-grid;
  place-items: center;
}

.curve-download.disabled {
  cursor: not-allowed;
  border-color: #ecd8b6;
  background: var(--warn-soft);
  color: var(--warn);
}

.curve-download.large {
  min-height: 44px;
  padding: 10px 16px;
}

.guide-dialog {
  width: min(980px, calc(100vw - 28px));
  max-height: calc(100vh - 28px);
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  color: var(--ink);
  padding: 0;
  box-shadow: 0 24px 80px rgba(22, 27, 24, 0.24);
}

.guide-dialog::backdrop {
  background: rgba(15, 20, 17, 0.68);
}

.guide-dialog-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  border-bottom: 1px solid var(--line);
  background: #fbfdfb;
  padding: 12px 14px;
}

.guide-dialog-head span {
  display: block;
  color: var(--accent);
  font-size: 12px;
  font-weight: 900;
}

.guide-dialog-head strong {
  display: block;
  margin-top: 3px;
  font-size: 20px;
  line-height: 1.25;
  font-weight: 900;
}

.guide-dialog-head button {
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: var(--ink);
  font-size: 24px;
  line-height: 1;
}

.guide-dialog-body {
  max-height: calc(100vh - 102px);
  overflow: auto;
  padding: 14px;
}

.guide-layout {
  display: grid;
  grid-template-columns: minmax(270px, 0.78fr) minmax(0, 1.22fr);
  gap: 14px;
  align-items: stretch;
}

.guide-visual {
  position: sticky;
  top: 0;
  overflow: hidden;
  min-height: 520px;
  border: 1px solid #d7e5dd;
  border-radius: 8px;
  background:
    radial-gradient(circle at 50% 34%, rgba(255, 255, 255, 0.9), rgba(255, 255, 255, 0) 48%),
    linear-gradient(145deg, #f8f4ec, #edf7f2 58%, #dce6dc);
}

.guide-visual::before {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.15), rgba(237, 247, 242, 0.68)),
    repeating-linear-gradient(90deg, rgba(11, 122, 90, 0.045) 0 1px, transparent 1px 42px);
  content: "";
}

.guide-visual img {
  position: absolute;
  inset: 0;
  z-index: 1;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 46%;
  opacity: 0.9;
}

.guide-motion {
  position: absolute;
  right: 12px;
  bottom: 12px;
  left: 12px;
  z-index: 2;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.guide-motion span {
  display: inline-grid;
  min-height: 32px;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.72);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.9);
  color: var(--accent);
  font-size: 12px;
  font-weight: 900;
  padding: 7px 10px;
  box-shadow: 0 10px 22px rgba(22, 27, 24, 0.1);
  animation: guideFloat 3.2s ease-in-out infinite;
}

.guide-motion span:nth-child(2) {
  animation-delay: 0.35s;
}

.guide-motion span:nth-child(3) {
  color: var(--coffee);
  animation-delay: 0.7s;
}

.guide-copy {
  min-width: 0;
}

.guide-lead {
  border: 1px solid #d7e5dd;
  border-radius: 8px;
  background: #fbfdfb;
  color: #354039;
  font-size: 14px;
  font-weight: 800;
  line-height: 1.65;
  padding: 12px;
}

.guide-steps {
  display: grid;
  gap: 10px;
  margin: 12px 0 0;
  padding: 0;
  list-style: none;
}

.guide-steps li {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr);
  gap: 10px;
  border: 1px solid rgba(214, 224, 216, 0.96);
  border-radius: 8px;
  background: #fff;
  padding: 11px;
  box-shadow: var(--shadow-card);
}

.guide-steps b {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border: 1px solid #cfe4da;
  border-radius: 8px;
  background: var(--accent-soft);
  color: var(--accent);
  font-size: 12px;
}

.guide-steps strong {
  font-size: 16px;
  line-height: 1.35;
  font-weight: 900;
}

.guide-steps p,
.guide-note,
.guide-tips li {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.65;
}

.guide-note {
  margin-top: 12px;
  border: 1px solid #dccbbd;
  border-radius: 8px;
  background: var(--coffee-soft);
  padding: 12px;
}

.guide-tips {
  margin-top: 12px;
  border: 1px solid #dccbbd;
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(245, 238, 232, 0.94), rgba(255, 255, 255, 0.86)),
    #fff;
  padding: 12px;
}

.guide-tips strong {
  color: var(--coffee);
  font-size: 14px;
  font-weight: 900;
}

.guide-tips ul {
  display: grid;
  gap: 4px;
  margin: 7px 0 0;
  padding-left: 18px;
}

.guide-downloads {
  display: grid;
  gap: 9px;
  margin-top: 12px;
}

.guide-downloads .download-card {
  grid-template-columns: 38px minmax(0, 1fr) auto;
  margin: 0;
}

.guide-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 12px;
}

.guide-actions a,
.guide-actions button {
  display: grid;
  min-height: 42px;
  place-items: center;
  border: 1px solid var(--accent);
  border-radius: 8px;
  background: var(--accent);
  color: #fff;
  font-size: 13px;
  font-weight: 900;
  padding: 10px 14px;
}

.language-dialog {
  width: min(560px, calc(100vw - 28px));
  max-height: calc(100vh - 28px);
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  color: var(--ink);
  padding: 0;
  box-shadow: 0 24px 80px rgba(22, 27, 24, 0.24);
}

.language-dialog::backdrop {
  background: rgba(15, 20, 17, 0.68);
}

.language-dialog-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  border-bottom: 1px solid var(--line);
  background: #fbfdfb;
  padding: 12px 14px;
}

.language-dialog-head span {
  display: block;
  color: var(--accent);
  font-size: 12px;
  font-weight: 900;
}

.language-dialog-head strong {
  display: block;
  margin-top: 3px;
  font-size: 20px;
  line-height: 1.25;
  font-weight: 900;
}

.language-dialog-head button {
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: var(--ink);
  font-size: 24px;
  line-height: 1;
}

.language-dialog-body {
  max-height: calc(100vh - 102px);
  overflow: auto;
  padding: 14px;
}

.language-dialog-body > p {
  border: 1px solid #d7e5dd;
  border-radius: 8px;
  background: #fbfdfb;
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
  line-height: 1.6;
  padding: 10px 11px;
}

.language-options {
  display: grid;
  gap: 8px;
  margin-top: 12px;
}

.language-option {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
  min-height: 58px;
  border: 1px solid #dfe7df;
  border-radius: 8px;
  background: #fbfdfb;
  color: var(--ink);
  padding: 10px 12px;
  text-align: left;
}

.language-option:hover,
.language-option:focus-visible {
  border-color: #b8dfce;
  background: var(--accent-soft);
  outline: none;
}

.language-option.active {
  border-color: var(--accent);
  background:
    linear-gradient(135deg, rgba(237, 247, 242, 0.92), rgba(255, 255, 255, 0.82)),
    #fff;
  box-shadow: inset 3px 0 0 var(--accent);
}

.language-option strong,
.language-option small {
  display: block;
}

.language-option strong {
  font-size: 15px;
  line-height: 1.25;
  font-weight: 900;
}

.language-option small {
  margin-top: 3px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  line-height: 1.35;
}

.language-option .language-state {
  display: grid;
  min-width: 48px;
  min-height: 28px;
  place-items: center;
  border: 1px solid #cfe4da;
  border-radius: 999px;
  background: #fff;
  color: var(--accent);
  font-size: 11px;
  font-weight: 900;
  padding: 5px 8px;
}

@keyframes guideFloat {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-5px);
  }
}

.curve-dialog {
  width: min(1040px, calc(100vw - 28px));
  max-height: calc(100vh - 28px);
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  color: var(--ink);
  padding: 0;
  box-shadow: 0 24px 80px rgba(22, 27, 24, 0.24);
}

.curve-dialog::backdrop {
  background: rgba(15, 20, 17, 0.68);
}

.curve-dialog-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  border-bottom: 1px solid var(--line);
  background: #fbfdfb;
  padding: 12px 14px;
}

.curve-dialog-head span {
  display: block;
  color: var(--accent);
  font-size: 12px;
  font-weight: 900;
}

.curve-dialog-head strong {
  display: block;
  margin-top: 3px;
  font-size: 18px;
  line-height: 1.25;
  font-weight: 900;
}

.curve-dialog-head button {
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: var(--ink);
  font-size: 24px;
  line-height: 1;
}

.curve-dialog-body {
  max-height: calc(100vh - 102px);
  overflow: auto;
  padding: 14px;
}

.curve-detail {
  display: grid;
  grid-template-columns: minmax(260px, 0.82fr) minmax(0, 1.18fr);
  gap: 14px;
}

.curve-detail > img {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 420px;
  object-fit: cover;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--coffee-soft);
}

.detail-meta {
  margin-top: 10px;
}

.curve-detail-grid {
  display: grid;
  gap: 10px;
  margin-top: 12px;
}

.curve-detail-grid section {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfdfb;
  padding: 11px;
}

.curve-detail-grid h3 {
  font-size: 14px;
  line-height: 1.25;
  font-weight: 900;
}

.curve-detail-grid p,
.curve-detail-grid li {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.6;
}

.curve-detail-grid ul {
  display: grid;
  gap: 6px;
  margin: 8px 0 0;
  padding-left: 18px;
}

.curve-detail-grid li strong {
  margin-right: 6px;
  color: var(--accent);
}

.detail-actions {
  margin-top: 12px;
}

.detail-actions a:last-child {
  border-color: var(--line);
  background: #fff;
  color: var(--accent);
}

.curve-empty {
  display: grid;
  gap: 6px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfdfb;
  padding: 18px;
}

.curve-empty strong {
  font-size: 18px;
  font-weight: 900;
}

.curve-empty p {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.55;
}

.register-preview,
.protected-list {
  display: grid;
  align-content: start;
  gap: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfdfb;
  padding: 12px;
}

.register-preview h3 {
  font-size: 18px;
  line-height: 1.25;
  font-weight: 900;
}

.register-preview p {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.55;
}

.register-form {
  display: grid;
  gap: 9px;
}

.register-form label {
  display: grid;
  gap: 5px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
}

.register-form input {
  width: 100%;
  height: 40px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface-2);
  color: var(--muted);
  padding: 0 11px;
}

.register-form button {
  min-height: 42px;
  border: 1px solid #ecd8b6;
  border-radius: 8px;
  background: var(--warn-soft);
  color: var(--warn);
  font-weight: 900;
}

.protected-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  border: 1px solid #ecd8b6;
  border-radius: 8px;
  background: var(--warn-soft);
  padding: 11px;
}

.protected-item strong {
  display: block;
  font-size: 14px;
  line-height: 1.35;
}

.protected-item p {
  margin-top: 5px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.5;
}

.protected-item span {
  flex: 0 0 auto;
  border: 1px solid #ecd8b6;
  border-radius: 999px;
  background: #fff;
  color: var(--warn);
  font-size: 12px;
  font-weight: 900;
  padding: 5px 8px;
}

.resource-grid > div {
  display: grid;
  align-content: start;
  gap: 10px;
  min-width: 0;
}

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

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

.download-card {
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr);
  gap: 10px;
  align-items: start;
  min-width: 0;
  border: 1px solid rgba(214, 224, 216, 0.96);
  border-radius: 8px;
  background: #fbfdfb;
  padding: 12px;
  box-shadow: var(--shadow-card);
}

.download-card > span {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border-radius: 8px;
  background: var(--accent-soft);
  color: var(--accent);
  font-size: 12px;
  font-weight: 900;
}

.download-card div {
  min-width: 0;
}

.download-card strong,
.tutorial-item strong {
  display: block;
  font-size: 15px;
  line-height: 1.35;
  font-weight: 900;
}

.download-card p,
.tutorial-item p {
  margin-top: 5px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.55;
}

.download-card a,
.download-card button {
  grid-column: 1 / -1;
  display: grid;
  min-height: 38px;
  place-items: center;
  border: 1px solid var(--accent);
  border-radius: 8px;
  background: var(--accent);
  color: #fff;
  font-size: 13px;
  font-weight: 900;
  padding: 8px 10px;
}

.download-card button:disabled {
  border-color: #ecd8b6;
  background: var(--warn-soft);
  color: var(--warn);
}

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

.tutorial-item {
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr);
  gap: 10px;
  align-items: start;
  border: 1px solid rgba(214, 224, 216, 0.96);
  border-radius: 8px;
  background: #fbfdfb;
  padding: 12px;
  box-shadow: 0 5px 14px rgba(22, 27, 24, 0.026);
}

.tutorial-item b {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border-radius: 8px;
  background: var(--accent-soft);
  color: var(--accent);
  font-size: 12px;
}

.status-section {
  background:
    linear-gradient(180deg, #ffffff 0, #fbfdfb 100%);
}

.status-section .status-row {
  margin-top: 0;
  margin-bottom: 10px;
}

.resource-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 78px;
  border: 1px solid rgba(214, 224, 216, 0.96);
  border-radius: 8px;
  background: #fbfdfb;
  padding: 11px;
}

.resource-item div {
  min-width: 0;
}

.resource-item strong {
  display: block;
  font-size: 14px;
  line-height: 1.35;
}

.resource-item p {
  margin-top: 5px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.5;
}

.resource-item a,
.resource-item button {
  flex: 0 0 auto;
  min-height: 36px;
  padding: 8px 11px;
}

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

.trouble-item {
  border: 1px solid rgba(214, 224, 216, 0.96);
  border-radius: 8px;
  background: #fbfdfb;
  box-shadow: 0 5px 14px rgba(22, 27, 24, 0.026);
}

.trouble-item summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  cursor: pointer;
  list-style: none;
  min-height: 58px;
  padding: 12px;
}

.trouble-item summary::-webkit-details-marker {
  display: none;
}

.trouble-item summary span {
  font-size: 15px;
  font-weight: 900;
}

.trouble-item summary small {
  flex: 0 0 auto;
  border-radius: 999px;
  background: #f0f4ef;
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
  padding: 5px 8px;
}

.trouble-item[open] summary {
  border-bottom: 1px solid var(--line);
}

.trouble-item ol {
  padding: 0 14px 12px 32px;
}

.support-band {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  background:
    linear-gradient(135deg, rgba(237, 247, 242, 0.95), rgba(255, 255, 255, 0.9)),
    #fbfdfb;
}

.support-actions {
  justify-content: flex-end;
  margin-top: 0;
}

.image-dialog {
  width: min(960px, calc(100vw - 28px));
  border: 0;
  border-radius: 8px;
  background: transparent;
  padding: 0;
}

.video-dialog {
  width: min(900px, calc(100vw - 28px));
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 8px;
  background: #111613;
  color: #fff;
  padding: 0;
}

.video-dialog::backdrop {
  background: rgba(15, 20, 17, 0.78);
}

.video-dialog-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  padding: 10px 12px;
}

.video-dialog-head strong {
  overflow: hidden;
  font-size: 14px;
  line-height: 1.3;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.video-dialog-head button {
  display: grid;
  width: 36px;
  height: 36px;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  font-size: 22px;
  line-height: 1;
}

.video-dialog video {
  display: block;
  width: 100%;
  max-height: calc(100vh - 110px);
  background: #000;
}

.image-dialog::backdrop {
  background: rgba(15, 20, 17, 0.74);
}

.image-dialog img {
  display: block;
  width: 100%;
  max-height: calc(100vh - 60px);
  object-fit: contain;
  border-radius: 8px;
  background: #fff;
}

.close-image {
  position: absolute;
  top: 8px;
  right: 8px;
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 8px;
  background: rgba(22, 27, 24, 0.72);
  color: #fff;
  font-size: 24px;
  line-height: 1;
}

@media (max-width: 900px) {
  .manual-header {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: start;
    gap: 8px;
    padding: 8px 12px 9px;
  }

  .brand {
    grid-column: 1;
  }

  .language-trigger {
    grid-column: 2;
    align-self: center;
  }

  .top-nav {
    grid-column: 1 / -1;
    width: 100%;
    overflow-x: auto;
    gap: 5px;
    padding-bottom: 2px;
    scrollbar-width: none;
  }

  .top-nav::-webkit-scrollbar {
    display: none;
  }

  .top-nav a {
    flex: 0 0 auto;
    min-height: 38px;
    border: 1px solid transparent;
    border-radius: 8px;
    background: #fff;
    font-size: 13px;
    padding: 9px 11px;
    box-shadow: 0 4px 12px rgba(22, 27, 24, 0.035);
  }

  main {
    gap: 12px;
    padding: 12px 10px 32px;
  }

  .start-panel {
    grid-template-columns: 1fr;
    gap: 12px;
    padding: 12px;
  }

  .product-figure {
    order: 0;
  }

  .product-figure img {
    height: min(500px, 64vh);
    height: min(500px, 64svh);
  }

  .resource-grid,
  .protected-layout,
  .curve-catalog-list,
  .curve-dialog-list,
  .curve-detail,
  .trouble-list {
    grid-template-columns: 1fr;
  }

  .curve-detail > img {
    min-height: 280px;
    max-height: 420px;
  }

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

  .support-band {
    align-items: stretch;
    flex-direction: column;
  }

  .support-actions {
    justify-content: flex-start;
  }
}

@media (max-width: 640px) {
  body {
    background: #f4f6f2;
  }

  .brand {
    grid-template-columns: 36px minmax(0, 1fr);
    gap: 9px;
  }

  .brand-mark {
    width: 36px;
    height: 36px;
    font-size: 15px;
  }

  .brand strong {
    max-width: calc(100vw - 76px);
    font-size: 15px;
  }

  .brand small {
    margin-top: 1px;
    font-size: 11px;
  }

  .language-trigger {
    min-height: 34px;
    gap: 6px;
    font-size: 12px;
    padding: 6px 8px;
  }

  .language-trigger span {
    width: 20px;
    height: 20px;
    font-size: 11px;
  }

  .language-trigger strong {
    max-width: 70px;
  }

  .top-nav a {
    min-height: 34px;
    font-size: 12px;
    padding: 7px 8px;
  }

  .top-nav a[href="#quick-start"] {
    border-color: #cfe4da;
    background: var(--accent-soft);
    color: var(--accent);
  }

  .top-nav a[href="#support"] {
    display: none;
  }

  .start-panel {
    display: flex;
    flex-direction: column;
    gap: 12px;
    border-radius: 8px;
    padding: 12px;
  }

  .start-copy {
    display: contents;
    padding: 0;
  }

  .start-copy .label {
    order: 1;
  }

  .start-copy h1 {
    order: 2;
    font-size: 32px;
    line-height: 1.08;
  }

  .start-lead {
    order: 3;
    margin-top: 10px;
    font-size: 14px;
    line-height: 1.55;
  }

  .path-preview {
    order: 5;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 0;
    margin-top: 12px;
    border: 1px solid #d7e5dd;
    border-radius: 8px;
    background: #fbfdfb;
    padding: 11px 8px 9px;
  }

  .path-preview::before {
    top: 25px;
    right: 34px;
    left: 34px;
  }

  .flow-node {
    gap: 3px;
    padding: 0 2px;
  }

  .flow-node b {
    width: 26px;
    height: 26px;
    border-radius: 8px;
    font-size: 11px;
  }

  .flow-node span {
    font-size: 12px;
  }

  .flow-node small {
    font-size: 9px;
    white-space: normal;
  }

  .path-preview i {
    display: none;
  }

  .start-actions {
    display: none;
  }

  .primary-action,
  .secondary-action {
    display: grid;
    min-height: 44px;
    place-items: center;
    padding: 9px 8px;
    text-align: center;
  }

  .product-figure img {
    height: min(540px, 66vh);
    height: min(540px, 66svh);
    object-position: center center;
  }

  .product-figure {
    order: 4;
  }

  .product-figure figcaption {
    font-size: 11px;
    line-height: 1.35;
    padding: 7px 9px;
  }

  .photo-badge {
    bottom: 34px;
    left: 9px;
    padding: 7px 8px;
  }

  .status-row {
    order: 6;
    gap: 6px;
    margin-top: 12px;
  }

  .status-row span {
    font-size: 12px;
    padding: 7px 8px;
  }

  .progress-panel {
    grid-template-columns: 1fr auto;
    padding: 9px 10px;
  }

  .progress-track {
    grid-column: 1 / -1;
    order: 3;
  }

  .section-head {
    align-items: start;
    flex-direction: column;
    gap: 8px;
  }

  .section-head h2,
  .support-band h2 {
    font-size: 22px;
  }

  .section-block,
  .support-band {
    padding: 13px;
  }

  .quick-curve-callout,
  .curve-toolbar {
    align-items: stretch;
    grid-template-columns: 1fr;
    flex-direction: column;
    gap: 10px;
    padding: 12px;
  }

  .quick-curve-callout button,
  .callout-action,
  .curve-toolbar button {
    width: 100%;
  }

  .quick-curve-callout h3 {
    font-size: 18px;
  }

  .step-card {
    grid-template-columns: 42px minmax(0, 1fr);
  }

  .video-guide-list {
    grid-template-columns: 1fr;
  }

  .mode-grid {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .mode-card {
    padding: 12px;
  }

  .mode-card h3 {
    font-size: 20px;
  }

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

  .roast-basics {
    margin-top: 12px;
    padding: 12px;
  }

  .basics-head {
    align-items: start;
    flex-direction: column;
    gap: 7px;
  }

  .basics-head h3 {
    font-size: 19px;
  }

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

  .basic-card {
    grid-template-columns: 34px minmax(0, 1fr);
    gap: 4px 9px;
    padding: 10px;
  }

  .basic-card b {
    grid-row: 1 / 3;
    width: 28px;
    height: 28px;
  }

  .basic-card h4 {
    font-size: 14px;
  }

  .basic-card p {
    font-size: 12px;
  }

  .source-list {
    display: grid;
    grid-template-columns: 1fr;
  }

  .source-list a {
    text-align: center;
  }

  .video-guide-card {
    grid-template-columns: 116px minmax(0, 1fr);
    grid-template-rows: auto;
  }

  .video-thumb {
    min-height: 100%;
  }

  .step-index {
    height: 42px;
  }

  .step-enter {
    grid-column: 1 / -1;
    width: 100%;
    min-height: 44px;
  }

  .step-topline {
    align-items: start;
    flex-direction: column;
  }

  .resource-item {
    align-items: stretch;
    flex-direction: column;
  }

  .resource-item a,
  .resource-item button {
    width: 100%;
  }

  .download-grid,
  .tutorial-list {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .download-card,
  .tutorial-item {
    padding: 10px;
  }

  .download-card strong,
  .tutorial-item strong {
    font-size: 14px;
  }

  .curve-card {
    grid-template-columns: 118px minmax(0, 1fr);
  }

  .curve-bean-image {
    width: 118px;
    min-height: 240px;
  }

  .curve-card-title {
    flex-direction: column;
  }

  .curve-actions,
  .detail-actions {
    display: grid;
    grid-template-columns: 1fr;
  }

  .curve-actions button,
  .curve-actions a {
    width: 100%;
  }

  .curve-dialog-body {
    padding: 10px;
  }

  .guide-dialog {
    width: calc(100vw - 18px);
    max-height: calc(100dvh - 18px);
    border-radius: 8px;
  }

  .guide-dialog-head {
    padding: 11px 12px;
  }

  .guide-dialog-head strong {
    font-size: 20px;
  }

  .guide-dialog-head button {
    width: 44px;
    height: 44px;
    font-size: 28px;
  }

  .guide-dialog-body {
    max-height: calc(100dvh - 96px);
    padding: 10px;
  }

  .language-dialog {
    width: calc(100vw - 18px);
    max-height: calc(100dvh - 18px);
    border-radius: 8px;
  }

  .language-dialog-head {
    padding: 11px 12px;
  }

  .language-dialog-head strong {
    font-size: 20px;
  }

  .language-dialog-head button {
    width: 44px;
    height: 44px;
    font-size: 28px;
  }

  .language-dialog-body {
    max-height: calc(100dvh - 96px);
    padding: 10px;
  }

  .language-dialog-body > p {
    padding: 9px 10px;
  }

  .language-options {
    gap: 7px;
  }

  .language-option {
    min-height: 54px;
    padding: 9px 10px;
  }

  .guide-layout {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .guide-visual {
    position: relative;
    min-height: 280px;
  }

  .guide-visual img {
    inset: 0;
    width: 100%;
    height: 100%;
  }

  .guide-motion {
    right: 10px;
    bottom: 10px;
    left: 10px;
    gap: 6px;
  }

  .guide-motion span {
    min-height: 28px;
    font-size: 11px;
    padding: 6px 8px;
  }

  .guide-lead,
  .guide-steps li,
  .guide-tips,
  .guide-note {
    padding: 10px;
  }

  .guide-steps li {
    grid-template-columns: 36px minmax(0, 1fr);
  }

  .guide-steps b {
    width: 30px;
    height: 30px;
  }

  .guide-downloads .download-card {
    grid-template-columns: 34px minmax(0, 1fr);
  }

  .guide-downloads .download-card button,
  .guide-downloads .download-card a {
    grid-column: 1 / -1;
    width: 100%;
  }

  .guide-actions a,
  .guide-actions button {
    width: 100%;
  }

  .curve-dialog {
    width: calc(100vw - 18px);
    max-height: calc(100dvh - 18px);
    border-radius: 8px;
  }

  .curve-dialog-head {
    padding: 11px 12px;
  }

  .curve-dialog-head strong {
    font-size: 20px;
  }

  .curve-dialog-head button {
    width: 44px;
    height: 44px;
    font-size: 28px;
  }

  .curve-dialog-body {
    max-height: calc(100dvh - 96px);
  }

  .curve-dialog-list,
  .curve-catalog-list {
    gap: 12px;
  }

  .curve-card {
    display: block;
    overflow: hidden;
    border-radius: 8px;
    background: #fff;
  }

  .curve-bean-image {
    width: 100%;
    height: 152px;
    min-height: 0;
    object-fit: cover;
    object-position: center center;
    border-bottom: 1px solid var(--line);
  }

  .curve-card-body {
    gap: 10px;
    padding: 12px;
  }

  .curve-card-title {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: start;
    gap: 8px;
  }

  .curve-card-title strong {
    font-size: 20px;
    line-height: 1.25;
  }

  .curve-card-title p {
    font-size: 13px;
  }

  .curve-card-title > span {
    align-self: start;
    font-size: 12px;
  }

  .curve-meta span,
  .curve-tags span {
    font-size: 12px;
    padding: 6px 9px;
  }

  .curve-flavor,
  .curve-result {
    font-size: 14px;
    line-height: 1.55;
  }

  .curve-actions {
    display: grid;
    grid-template-columns: 0.85fr 1.15fr;
    gap: 8px;
  }

  .curve-actions button,
  .curve-actions a {
    min-height: 44px;
    width: 100%;
    font-size: 14px;
  }

  .curve-detail {
    display: block;
  }

  .curve-detail > img {
    width: 100%;
    height: 178px;
    min-height: 0;
    max-height: none;
    margin-bottom: 12px;
    object-fit: cover;
    object-position: center center;
  }

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