:root {
  --bg: #f6f1ea;
  --surface: #fffdf9;
  --surface-2: #f1e9df;
  --ink: #2b211b;
  --muted: #7a6a5d;
  --line: #e6dbcf;
  --accent: #8a4b2a;
  --accent-ink: #ffffff;
  --accent-soft: #f1e2d4;
  --danger: #b23a3a;
  --shadow: 0 1px 2px rgba(43, 33, 27, .06), 0 6px 20px rgba(43, 33, 27, .06);
  --radius: 16px;
  color-scheme: light;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html, body { margin: 0; }
body {
  background: var(--bg);
  color: var(--ink);
  font-family: "Pretendard", -apple-system, BlinkMacSystemFont, "Apple SD Gothic Neo", "Malgun Gothic", sans-serif;
  font-size: 15px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
h1, h2, h3, p { margin: 0; }

/* ---------- 상단 바 ---------- */
.topbar {
  position: sticky; top: 0; z-index: 20;
  background: var(--bg);
  border-bottom: 1px solid var(--line);
}
.topbar-inner {
  max-width: 1120px; margin: 0 auto;
  padding: 12px 16px;
  display: flex; align-items: center; gap: 16px;
}
.brand { display: flex; align-items: center; gap: 8px; font-weight: 800; font-size: 18px; letter-spacing: -.02em; }
.brand-mark { font-size: 20px; }
.tabs { display: flex; gap: 4px; background: var(--surface-2); padding: 4px; border-radius: 999px; margin: 0 auto; }
.tab {
  border: 0; background: transparent; padding: 7px 16px; border-radius: 999px;
  font-weight: 600; color: var(--muted); white-space: nowrap;
}
.tab.active { background: var(--surface); color: var(--ink); box-shadow: var(--shadow); }
.topbar-actions { display: flex; gap: 6px; }
.icon-btn {
  border: 1px solid var(--line); background: transparent; border-radius: 10px;
  padding: 6px 10px; font-size: 13px; color: var(--muted); cursor: pointer;
}
.icon-btn:hover { color: var(--ink); border-color: var(--muted); }

/* ---------- 레이아웃 ---------- */
.container { max-width: 1120px; margin: 0 auto; padding: 28px 16px 80px; }
.view { display: none; }
.view.active { display: block; }
.view-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 20px; flex-wrap: wrap; }
.view-head h1 { font-size: 28px; letter-spacing: -.03em; }
.sub { color: var(--muted); margin-top: 2px; }
.view-tools { display: flex; gap: 8px; align-items: center; }
.search {
  border: 1px solid var(--line); background: var(--surface); border-radius: 10px;
  padding: 9px 12px; min-width: 200px;
}
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 16px; }

.empty {
  grid-column: 1 / -1; text-align: center; padding: 56px 16px;
  border: 1.5px dashed var(--line); border-radius: var(--radius); color: var(--muted);
}
.empty strong { display: block; color: var(--ink); font-size: 17px; margin-bottom: 4px; }

/* ---------- 버튼 ---------- */
.btn {
  border: 1px solid var(--line); background: var(--surface); border-radius: 10px;
  padding: 9px 14px; font-weight: 600; white-space: nowrap;
}
.btn:hover { border-color: var(--muted); }
.btn.primary { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.btn.primary:hover { filter: brightness(1.08); }
.btn.ghost { background: transparent; }
.btn.small { padding: 6px 10px; font-size: 13px; }
.btn.danger { color: var(--danger); }
.btn:disabled { opacity: .5; cursor: progress; }

/* ---------- 카드 ---------- */
.card {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 18px; box-shadow: var(--shadow); display: flex; flex-direction: column; gap: 12px;
  text-align: left; width: 100%; transition: transform .15s ease, box-shadow .15s ease;
}
button.card:hover, .card.clickable:hover { transform: translateY(-2px); }
.card.clickable { cursor: pointer; }
.card-top { display: flex; justify-content: space-between; align-items: flex-start; gap: 8px; }
.eyebrow { font-size: 12px; font-weight: 600; color: var(--muted); letter-spacing: .02em; }
.card-title { font-size: 18px; font-weight: 700; letter-spacing: -.02em; line-height: 1.3; }
.meta { color: var(--muted); font-size: 13px; }
.card-actions { display: flex; gap: 6px; margin-top: auto; }
.card-actions .btn { flex: 1; }
.clamp { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; color: var(--muted); font-size: 14px; }

.tags { display: flex; flex-wrap: wrap; gap: 6px; }
.tag { background: var(--surface-2); border-radius: 999px; padding: 3px 10px; font-size: 12px; font-weight: 600; color: var(--muted); }

.roast { display: flex; align-items: center; gap: 8px; font-size: 12px; color: var(--muted); }
.roast-bar { display: flex; gap: 3px; }
.roast-bar span { width: 18px; height: 6px; border-radius: 3px; background: var(--line); }

.stat-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.stat { background: var(--surface-2); border-radius: 12px; padding: 10px; }
.stat b { display: block; font-size: 20px; letter-spacing: -.02em; }
.stat small { color: var(--muted); font-size: 12px; }

.stars { color: #d39a2c; letter-spacing: 1px; font-size: 14px; white-space: nowrap; }
.stars .off { color: var(--line); }

.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chip {
  display: inline-flex; align-items: center; gap: 6px;
  border-radius: 999px; padding: 4px 10px 4px 8px; font-size: 13px; font-weight: 600;
}
.chip .dot { width: 9px; height: 9px; border-radius: 50%; flex: none; }
.chip button { border: 0; background: transparent; padding: 0 0 0 2px; opacity: .6; font-size: 12px; }

.mini-taste { display: grid; grid-template-columns: repeat(5, 1fr); gap: 6px; }
.mini-taste div { font-size: 11px; color: var(--muted); text-align: center; }
.mini-taste .bar { height: 4px; border-radius: 2px; background: var(--line); margin-bottom: 4px; overflow: hidden; }
.mini-taste .bar i { display: block; height: 100%; background: var(--accent); }

/* ---------- 모달 ---------- */
.modal {
  border: 0; padding: 0; border-radius: 20px; background: var(--surface); color: var(--ink);
  width: min(620px, calc(100vw - 24px)); max-height: calc(100dvh - 32px);
  box-shadow: 0 20px 60px rgba(0, 0, 0, .25);
}
.modal.wide { width: min(800px, calc(100vw - 24px)); }
.modal[open] { display: flex; flex-direction: column; }
.modal::backdrop { background: rgba(20, 14, 10, .45); }
.form { display: flex; flex-direction: column; min-height: 0; flex: 1; }
.modal-head { display: flex; justify-content: space-between; align-items: center; padding: 18px 20px 10px; }
.modal-head h2 { font-size: 20px; letter-spacing: -.02em; }
.close-btn { border: 0; background: var(--surface-2); width: 32px; height: 32px; border-radius: 50%; color: var(--muted); }
.form-body, .detail-body { padding: 6px 20px 16px; overflow-y: auto; display: flex; flex-direction: column; gap: 14px; flex: 1; min-height: 0; }
.detail-body { background: var(--surface-2); padding: 20px; }
.modal-foot { display: flex; justify-content: flex-end; gap: 8px; padding: 14px 20px; border-top: 1px solid var(--line); }
.modal-foot.spread { justify-content: space-between; flex-wrap: wrap; }
.foot-group { display: flex; gap: 8px; }

label, .label { display: flex; flex-direction: column; gap: 6px; font-size: 13px; font-weight: 600; color: var(--muted); min-width: 0; }
input, select, textarea, .ratio-out {
  border: 1px solid var(--line); background: var(--bg); border-radius: 10px; padding: 9px 11px;
  font-size: 15px; font-weight: 500; width: 100%; min-width: 0;
}
input:focus, select:focus, textarea:focus { outline: 2px solid var(--accent); outline-offset: -1px; border-color: transparent; }
textarea { resize: vertical; }
.ratio-out { display: block; background: var(--accent-soft); color: var(--ink); font-weight: 700; border-color: transparent; }
fieldset { border: 1px solid var(--line); border-radius: 14px; padding: 12px 14px 14px; margin: 0; display: flex; flex-direction: column; gap: 10px; }
legend { font-size: 13px; font-weight: 700; padding: 0 6px; }
.hint { font-weight: 500; color: var(--muted); }
.row-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.row-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }

.segmented { display: grid; grid-template-columns: repeat(5, 1fr); gap: 4px; background: var(--surface-2); padding: 4px; border-radius: 12px; }
.segmented button { border: 0; background: transparent; border-radius: 9px; padding: 8px 2px; font-size: 13px; font-weight: 600; color: var(--muted); }
.segmented button.on { background: var(--surface); color: var(--ink); box-shadow: var(--shadow); }

/* 시간 입력 (− 0:40 +) */
.time-field {
  display: flex; align-items: stretch; width: 100%; min-width: 0;
  border: 1px solid var(--line); background: var(--bg); border-radius: 10px; overflow: hidden;
}
.time-field:focus-within { outline: 2px solid var(--accent); outline-offset: -1px; border-color: transparent; }
.time-field input {
  order: 2; flex: 1; border: 0; background: transparent; border-radius: 0;
  text-align: center; font-variant-numeric: tabular-nums; padding-left: 2px; padding-right: 2px;
}
.time-field input:focus { outline: 0; }
.time-field button {
  flex: 0 0 34px; border: 0; background: var(--surface-2); color: var(--ink);
  font-size: 17px; font-weight: 700; line-height: 1; padding: 0;
  touch-action: manipulation; user-select: none; -webkit-user-select: none;
}
.time-field button:hover { background: var(--accent-soft); }
.time-field button:active { background: var(--accent); color: var(--accent-ink); }
.time-field .tf-minus { order: 1; }
.time-field .tf-plus { order: 3; }
.time-field.warn { border-color: var(--danger); }
.time-field.warn input { color: var(--danger); }

/* 푸어 단계 */
.step-rows { display: flex; flex-direction: column; gap: 8px; }
.step-row {
  display: grid; grid-template-columns: 30px 132px 84px 1fr 28px;
  grid-template-areas: "drag t w note x"; gap: 6px; align-items: center;
  border-radius: 12px; transition: background .15s, box-shadow .15s;
}
.step-row > .drag { grid-area: drag; }
.step-row > .time-field { grid-area: t; }
.step-row > [data-k="w"] { grid-area: w; }
.step-row > [data-k="note"] { grid-area: note; }
.step-row > .x { grid-area: x; }
.step-row input { padding: 7px 9px; font-size: 14px; }
.step-row .time-field input { padding: 7px 2px; }
.step-row .x { border: 0; background: transparent; color: var(--muted); font-size: 16px; }
.step-row .drag {
  align-self: stretch; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 0;
  border: 0; border-radius: 8px; background: transparent; color: var(--muted); padding: 0;
  cursor: grab; touch-action: none; user-select: none; -webkit-user-select: none;
}
.step-row .drag:hover, .step-row .drag:focus-visible { background: var(--surface-2); color: var(--ink); }
.step-row .drag .n { font-size: 12px; font-weight: 700; line-height: 1.1; }
.step-row .drag .grip { font-size: 15px; line-height: 1; }
.step-rows.sorting { cursor: grabbing; user-select: none; -webkit-user-select: none; }
.step-rows.sorting .drag { cursor: grabbing; }
.step-row.dragging { background: var(--accent-soft); box-shadow: var(--shadow); position: relative; z-index: 1; }

/* 스위치 밸브 (드리퍼가 스위치일 때만 보임) */
.step-row > .valve { grid-area: v; display: none; }
.step-rows.switch-mode .step-row { grid-template-columns: 30px 132px 84px 72px 1fr 28px; grid-template-areas: "drag t w v note x"; }
.step-rows.switch-mode .valve { display: block; }
.valve {
  height: 100%; min-height: 34px; border: 1px dashed var(--line); border-radius: 10px;
  background: transparent; color: var(--muted); font-size: 13px; font-weight: 700; padding: 0 4px; white-space: nowrap;
}
.valve[data-valve="close"] { background: var(--accent); border: 1px solid var(--accent); color: var(--accent-ink); }
.valve[data-valve="open"] { background: var(--accent-soft); border: 1px solid var(--accent); color: var(--accent); }
.valve-tag { display: inline-block; font-size: .8em; font-weight: 800; padding: 1px 8px; border-radius: 999px; margin-right: 8px; vertical-align: 1px; }
.valve-tag.close { background: #8a4b2a; color: #fff; }
.valve-tag.open { background: #f1e2d4; color: #8a4b2a; box-shadow: inset 0 0 0 1px #8a4b2a; }
.rv-step.now .valve-tag.close { background: #fff; color: #8a4b2a; }

.stars-input { display: flex; gap: 2px; }
.stars-input button { border: 0; background: transparent; font-size: 26px; line-height: 1; padding: 4px 2px; color: var(--line); }
.stars-input button.on { color: #d39a2c; }

.taste-inputs { display: grid; gap: 8px; }
.taste-row { display: grid; grid-template-columns: 52px 1fr; align-items: center; gap: 10px; font-size: 13px; font-weight: 600; color: var(--muted); }
.dots { display: grid; grid-template-columns: repeat(5, 1fr); gap: 6px; }
.dots button { border: 1px solid var(--line); background: var(--bg); border-radius: 8px; height: 30px; font-size: 13px; font-weight: 600; color: var(--muted); }
.dots button.on { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }

.swatches { display: flex; flex-wrap: wrap; gap: 8px; }
.swatch {
  width: 30px; height: 30px; border-radius: 50%; border: 3px solid var(--surface);
  box-shadow: 0 0 0 1px var(--line); padding: 0;
}
.swatch.on { box-shadow: 0 0 0 2px var(--ink); }
.swatch-label { font-size: 12px; color: var(--muted); margin-left: 4px; align-self: center; }
.note-add { display: flex; gap: 8px; }

/* ---------- 레시피 전체화면 ---------- */
.recipe-view {
  position: fixed; inset: 0; z-index: 50; background: #fbf7f2; color: #2b211b;
  display: flex; flex-direction: column; overflow-y: auto;
}
.recipe-view[hidden] { display: none; }
.rv-bar { display: flex; justify-content: space-between; align-items: center; gap: 8px; padding: 14px 20px; position: sticky; top: 0; background: #fbf7f2; flex-wrap: wrap; z-index: 1; }
.rv-bar-right { display: flex; gap: 6px; flex-wrap: wrap; }
.rv-btn { border: 1px solid #e6dbcf; background: transparent; color: #5a4636; border-radius: 10px; padding: 7px 12px; font-size: 13px; font-weight: 600; }
.rv-btn:hover { color: #2b211b; border-color: #8a7767; }
.rv-content { max-width: 1000px; width: 100%; margin: 0 auto; padding: 24px 20px 60px; display: flex; flex-direction: column; gap: 28px; }
.rv-eyebrow { color: #8a4b2a; font-weight: 700; letter-spacing: .04em; font-size: 14px; }
.rv-title { font-size: clamp(32px, 6vw, 56px); font-weight: 800; letter-spacing: -.04em; line-height: 1.1; margin-top: 6px; }
.rv-bean { color: #8a7767; font-size: 17px; margin-top: 10px; }
.rv-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.rv-stat { background: #f1e9df; border-radius: 18px; padding: 18px 20px; }
.rv-stat small { display: block; color: #8a7767; font-size: 14px; font-weight: 600; margin-bottom: 4px; }
.rv-stat b { font-size: clamp(30px, 5vw, 48px); letter-spacing: -.03em; line-height: 1.1; font-weight: 800; }
.rv-stat b span { font-size: .5em; color: #8a7767; margin-left: 3px; font-weight: 700; }
.rv-stat .sub2 { color: #8a7767; font-size: 14px; margin-top: 4px; }
.rv-stat.hl { background: #8a4b2a; color: #fff; }
.rv-stat.hl small, .rv-stat.hl b span { color: #f1dccb; }

.rv-timer { display: flex; align-items: center; gap: 20px; background: #f1e9df; border-radius: 18px; padding: 18px 20px; flex-wrap: wrap; }
.rv-clock { font-size: clamp(44px, 8vw, 72px); font-weight: 800; font-variant-numeric: tabular-nums; letter-spacing: -.03em; line-height: 1; min-width: 4ch; }
.rv-timer-info { flex: 1; min-width: 200px; }
.rv-next { color: #8a4b2a; font-weight: 700; font-size: 18px; }
.rv-progress { height: 6px; background: #e6dbcf; border-radius: 3px; overflow: hidden; margin-top: 10px; }
.rv-progress i { display: block; height: 100%; width: 0; background: #8a4b2a; transition: width .25s linear; }
.rv-timer-btns { display: flex; gap: 8px; }
.rv-timer-btns button { border: 0; border-radius: 12px; padding: 12px 20px; font-weight: 700; font-size: 16px; background: #e6dbcf; color: #2b211b; }
.rv-timer-btns button.go { background: #8a4b2a; color: #fff; }

.rv-steps h3, .rv-memo h3 { font-size: 15px; color: #8a7767; margin-bottom: 10px; }
.rv-step { display: grid; grid-template-columns: 90px 110px 1fr; gap: 12px; align-items: baseline; padding: 14px 16px; border-radius: 14px; font-size: 20px; transition: background .2s; }
.rv-step + .rv-step { margin-top: 4px; }
.rv-step .t { font-weight: 800; font-variant-numeric: tabular-nums; color: #8a7767; }
.rv-step .w { font-weight: 800; }
.rv-step .n { color: #5a4636; font-size: 17px; }
.rv-step.now { background: #8a4b2a; color: #fff; }
.rv-step.now .t, .rv-step.now .n { color: #f1dccb; }
.rv-step.done { opacity: .4; }
.rv-memo p { font-size: 18px; color: #5a4636; white-space: pre-wrap; }

/* ---------- 내보내기용 일기 카드 (라이트 고정) ---------- */
.export-stage { position: fixed; left: -10000px; top: 0; width: 720px; }
.jcard {
  background: #fbf7f2; color: #2b211b; border-radius: 20px; padding: 36px;
  font-family: "Pretendard", "Apple SD Gothic Neo", "Malgun Gothic", sans-serif;
  display: flex; flex-direction: column; gap: 22px; width: 100%; max-width: 720px; margin: 0 auto;
  border: 1px solid #ece2d6;
}
.export-stage .jcard { border-radius: 0; border: 0; }
.jc-head { display: flex; justify-content: space-between; align-items: center; color: #8a7767; font-size: 14px; font-weight: 600; }
.jc-head .stars { font-size: 18px; }
.jc-head .stars .off { color: #e3d8cc; }
.jc-bean small { display: block; color: #8a4b2a; font-weight: 700; font-size: 14px; }
.jc-bean h3 { font-size: 30px; font-weight: 800; letter-spacing: -.03em; line-height: 1.2; margin-top: 2px; }
.jc-bean p { color: #8a7767; margin-top: 6px; font-size: 14px; }
.jc-recipe { display: flex; flex-wrap: wrap; gap: 6px; }
.jc-recipe span { background: #efe5da; border-radius: 8px; padding: 5px 10px; font-size: 13px; font-weight: 600; color: #5a4636; }
.jc-recipe span.name { background: #8a4b2a; color: #fff; }
.jc-section h4 { margin: 0 0 8px; font-size: 13px; color: #8a7767; font-weight: 700; letter-spacing: .02em; }
.jc-section p { white-space: pre-wrap; font-size: 15px; line-height: 1.65; margin: 0; }
.jc-taste { display: grid; gap: 7px; }
.jc-taste-row { display: grid; grid-template-columns: 56px 1fr 24px; align-items: center; gap: 10px; font-size: 13px; font-weight: 600; color: #5a4636; }
.jc-taste-row .segs { display: grid; grid-template-columns: repeat(5, 1fr); gap: 4px; }
.jc-taste-row .segs i { height: 8px; border-radius: 4px; background: #e8ddd1; }
.jc-taste-row .segs i.on { background: #8a4b2a; }
.jc-taste-row b { text-align: right; color: #8a7767; }
.jc-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }
.jc-foot { display: flex; justify-content: space-between; border-top: 1px solid #e6dbcf; padding-top: 14px; color: #a8988a; font-size: 12px; font-weight: 600; }
.jcard .chip { font-size: 14px; padding: 5px 12px 5px 9px; }

/* ---------- 토스트 ---------- */
.toast {
  position: fixed; left: 50%; bottom: 24px; transform: translate(-50%, 20px); opacity: 0;
  background: var(--ink); color: var(--bg); padding: 10px 16px; border-radius: 12px; font-weight: 600;
  transition: .2s ease; pointer-events: none; z-index: 100; max-width: calc(100vw - 32px);
}
.toast.show { opacity: 1; transform: translate(-50%, 0); }

/* ---------- 모바일 ---------- */
@media (max-width: 720px) {
  .topbar-inner { flex-wrap: wrap; gap: 10px; }
  .tabs { order: 3; width: 100%; margin: 0; }
  .tab { flex: 1; padding: 7px 8px; }
  .topbar-actions { margin-left: auto; }
  .container { padding-top: 20px; }
  .view-head h1 { font-size: 24px; }
  .view-tools { width: 100%; flex-wrap: wrap; }
  .search { flex: 1 1 100%; min-width: 0; }
  .view-tools .btn { flex: 1; }
  .grid { grid-template-columns: 1fr; }
  .row-2 { grid-template-columns: 1fr; }
  .row-3 { grid-template-columns: 1fr 1fr; }
  .row-3 > :last-child:nth-child(3) { grid-column: 1 / -1; }
  .segmented { grid-template-columns: repeat(3, 1fr); }
  .step-row {
    grid-template-columns: 30px 1fr 1fr 28px;
    grid-template-areas: "drag t w x" "drag note note x";
    row-gap: 6px; padding: 6px 0; border-bottom: 1px dashed var(--line); border-radius: 0;
  }
  .step-row:last-child { border-bottom: 0; }
  .step-row.dragging { border-radius: 12px; }
  .step-rows.switch-mode .step-row {
    grid-template-columns: 30px 76px 1fr 1fr 28px;
    grid-template-areas: "drag t t w x" "drag v note note x";
  }
  .time-field button { flex-basis: 40px; }
  .rv-stats { grid-template-columns: 1fr 1fr; }
  .rv-step { grid-template-columns: 64px 80px 1fr; font-size: 17px; padding: 12px; }
  .rv-step .n { font-size: 15px; }
  .detail-body { padding: 12px; }
  .detail-body .jcard { padding: 22px; }
  .jc-cols { grid-template-columns: 1fr; }
  .modal-foot.spread .foot-group { flex: 1; }
  .modal-foot.spread .btn { flex: 1; }
}

/* ---------- 분쇄도 (μm) ---------- */
.grind-hint { font-size: 13px; color: var(--muted); }
.rv-stat.grind { cursor: pointer; transition: box-shadow .15s; }
.rv-stat.grind:hover { box-shadow: inset 0 0 0 2px #d9c6b4; }
.rv-stat.grind small em { font-style: normal; font-weight: 500; font-size: 12px; color: #a8988a; margin-left: 4px; }
.rv-stat.grind.editing { cursor: default; box-shadow: inset 0 0 0 2px #8a4b2a; }
.ge-row { display: flex; align-items: center; gap: 8px; margin: 6px 0; }
.ge-row button { width: 40px; height: 40px; border-radius: 10px; border: 1px solid #e6dbcf; background: #fff; font-size: 20px; font-weight: 700; flex: none; }
.ge-row input { width: 76px; text-align: center; font-size: 24px; font-weight: 800; padding: 4px; }
.ge-unit { color: #8a7767; font-weight: 700; }
.ge-btns { display: flex; gap: 6px; justify-content: flex-end; margin-top: 10px; }
.ge-btns button { border: 0; border-radius: 10px; padding: 8px 14px; font-weight: 700; background: #e6dbcf; color: #2b211b; }
.ge-btns button.go { background: #8a4b2a; color: #fff; }

/* ---------- 플레이버 휠 ---------- */
.wheel-wrap { display: flex; justify-content: center; }
.wheel { width: 100%; max-width: 500px; height: auto; display: block; user-select: none; }
.wheel .wseg { cursor: pointer; }
.wheel .wseg path { stroke: #fffdf9; stroke-width: 1.5; transition: filter .12s; }
.wheel .wseg:hover path { filter: brightness(.93); }
.wheel text { pointer-events: none; font-family: inherit; }
.wheel-hint { margin-top: -4px; text-align: center; }

/* ---------- 원산지 추천 ---------- */
.suggest { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.suggest:empty { display: none; }
.suggest button {
  border: 1px solid var(--line); background: var(--surface); border-radius: 999px;
  padding: 5px 11px; font-size: 13px; font-weight: 600; color: var(--muted);
}
.suggest button:hover { border-color: var(--accent); color: var(--ink); }
.suggest button.on { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.pick { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.row-2.top { align-items: start; }

/* ---------- 아이스 / 핫 ---------- */
.serve-seg { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; background: var(--surface-2); padding: 4px; border-radius: 12px; }
.serve-seg button { border: 0; background: transparent; border-radius: 9px; padding: 8px; font-weight: 800; letter-spacing: .04em; color: var(--muted); }
.serve-seg button[data-serve="hot"].on { background: #c4532f; color: #fff; }
.serve-seg button[data-serve="ice"].on { background: #3d7fb0; color: #fff; }
.serve {
  display: inline-block; border-radius: 6px; padding: 1px 7px; margin-right: 6px;
  font-size: 11px; font-weight: 800; letter-spacing: .05em; vertical-align: 1px;
}
.serve.hot { background: #f6ddd2; color: #b4482a; }
.serve.ice { background: #dbe9f4; color: #2f6f9f; }
.rv-eyebrow .serve { font-size: 13px; padding: 2px 9px; }
