/* ═══ 製皂筆記 · Soap Notes ═══ */

:root {
  --bg:            #f8f7f2;
  --bg-soft:       #f0eee5;
  --surface:       #ffffff;
  --surface-2:     #f5f3ea;
  --line:          #ddd9c9;
  --line-soft:     #ebe8dc;
  --text:          #262620;
  --text-soft:     #63614f;
  --text-faint:    #949181;
  --accent:        #5f7a4a;
  --accent-soft:   #e3ead9;
  --warn:          #b4552a;
  --warn-bg:       #fdf0e8;
  --danger:        #a63232;
  --danger-bg:     #fceceb;
  --ok:            #4d7a63;

  --p-hard:        #8a6f4b;
  --p-clean:       #4a7ba0;
  --p-cond:        #5f8a55;
  --p-bubbly:      #4fa0a8;
  --p-creamy:      #c08a3e;
  --p-iodine:      #8a6a9c;

  --radius:        12px;
  --shadow:        0 1px 2px rgba(38,38,32,.05), 0 8px 24px -12px rgba(38,38,32,.18);
  --mono:          ui-monospace, "SF Mono", "Cascadia Mono", Consolas, monospace;
}

html[data-theme="dark"] {
  --bg:            #16160f;
  --bg-soft:       #1c1c14;
  --surface:       #211f18;
  --surface-2:     #2a281e;
  --line:          #393629;
  --line-soft:     #2d2b21;
  --text:          #eae7d8;
  --text-soft:     #aca897;
  --text-faint:    #807d6e;
  --accent:        #9dba82;
  --accent-soft:   #2c3524;
  --warn:          #e0894f;
  --warn-bg:       #33241a;
  --danger:        #e07070;
  --danger-bg:     #35201f;
  --ok:            #6fa587;

  --p-hard:        #c0a271;
  --p-clean:       #7ab0d4;
  --p-cond:        #8fbf83;
  --p-bubbly:      #6fcdd6;
  --p-creamy:      #e0ad63;
  --p-iodine:      #b294c4;

  --shadow:        0 1px 2px rgba(0,0,0,.3), 0 8px 24px -12px rgba(0,0,0,.6);
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: "Noto Sans TC", -apple-system, BlinkMacSystemFont, "Segoe UI",
               "PingFang TC", "Microsoft JhengHei", sans-serif;
  font-size: 15px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

.wrap { max-width: 1140px; margin: 0 auto; padding: 0 20px; }

/* ─── header ─── */
.site-header {
  background: var(--surface);
  border-bottom: 1px solid var(--line);
  position: sticky; top: 0; z-index: 50;
}
.header-inner {
  display: flex; align-items: center; justify-content: space-between;
  padding-top: 18px; padding-bottom: 12px;
}
.brand h1 { margin: 0; font-size: 22px; font-weight: 600; letter-spacing: .06em; }
.brand-sub { display: block; font-size: 12px; color: var(--text-faint); letter-spacing: .1em; }
.icon-btn {
  background: none; border: 1px solid var(--line); color: var(--text-soft);
  width: 36px; height: 36px; border-radius: 50%; cursor: pointer; font-size: 16px;
}
.icon-btn:hover { background: var(--surface-2); color: var(--text); }

.tabs { display: flex; gap: 4px; overflow-x: auto; }
.tab {
  background: none; border: none; border-bottom: 2px solid transparent;
  padding: 10px 14px; font: inherit; font-size: 14px; color: var(--text-soft);
  cursor: pointer; white-space: nowrap;
}
.tab:hover { color: var(--text); }
.tab.is-active { color: var(--accent); border-bottom-color: var(--accent); font-weight: 600; }

/* ─── panels ─── */
.panel { display: none; padding: 28px 0 60px; }
.panel.is-active { display: block; }
.section-lead { color: var(--text-soft); margin: 0 0 20px; font-size: 14px; max-width: 720px; }

.card {
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 20px; margin-bottom: 18px;
}
.card h2 {
  margin: 0 0 14px; font-size: 14px; font-weight: 600;
  letter-spacing: .1em; color: var(--text-soft); text-transform: uppercase;
}

/* ─── 首頁 · 我想做什麼皂 ─── */
.start-hero { text-align: center; padding: 10px 0 30px; }
.start-hero h2 { font-size: 26px; margin: 0 0 8px; letter-spacing: .02em; }
.start-hero p { color: var(--text-soft); margin: 0; font-size: 14.5px; }

.goal-grid {
  display: grid; gap: 14px;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  margin-bottom: 34px;
}
.goal {
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 18px 20px; cursor: pointer;
  text-align: left; font: inherit; color: var(--text);
  transition: transform .12s, box-shadow .12s, border-color .12s;
}
.goal:hover { transform: translateY(-2px); box-shadow: var(--shadow); border-color: var(--accent); }
.goal-top { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; }
.goal h3 { margin: 0; font-size: 17px; font-weight: 600; }
.goal-tag {
  font-size: 11px; font-family: var(--mono); background: var(--accent-soft);
  color: var(--accent); padding: 3px 9px; border-radius: 100px; white-space: nowrap;
}
.goal-desc { font-size: 13px; color: var(--text-soft); margin: 8px 0 12px; line-height: 1.65; }
.goal-oils { font-size: 12px; font-family: var(--mono); color: var(--text-faint); line-height: 1.8; }

.start-note {
  background: var(--surface-2); border: 1px solid var(--line-soft);
  border-radius: var(--radius); padding: 16px 20px; font-size: 13.5px; color: var(--text-soft);
}
.start-note b { color: var(--text); }
.start-note a { color: var(--accent); }

/* ─── toolbar / filters ─── */
.toolbar { display: flex; flex-direction: column; gap: 12px; margin-bottom: 14px; }
#search {
  width: 100%; padding: 11px 14px; font: inherit;
  background: var(--surface); color: var(--text);
  border: 1px solid var(--line); border-radius: var(--radius);
}
#search:focus { outline: 2px solid var(--accent-soft); border-color: var(--accent); }
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chip {
  background: var(--surface); border: 1px solid var(--line); color: var(--text-soft);
  padding: 5px 13px; border-radius: 100px; font: inherit; font-size: 13px; cursor: pointer;
}
.chip:hover { border-color: var(--accent); color: var(--text); }
.chip.is-on { background: var(--accent); border-color: var(--accent); color: #fff; }
.count { font-size: 13px; color: var(--text-faint); margin: 0 0 14px; }

/* ─── 油品庫 ─── */
.grid { display: grid; gap: 12px; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); }
.oil {
  background: var(--surface); border: 1px solid var(--line);
  border-left: 3px solid var(--line); border-radius: var(--radius);
  padding: 14px 15px; cursor: pointer; text-align: left; font: inherit;
  color: var(--text); transition: transform .12s, box-shadow .12s;
}
.oil:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
.oil[data-cat="hard"]    { border-left-color: var(--p-hard); }
.oil[data-cat="soft"]    { border-left-color: var(--p-cond); }
.oil[data-cat="butter"]  { border-left-color: var(--p-creamy); }
.oil[data-cat="special"] { border-left-color: var(--p-iodine); }
.oil-head { display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; }
.oil-zh { font-size: 16px; font-weight: 600; }
.oil-en { font-size: 11px; color: var(--text-faint); letter-spacing: .03em; }
.oil-desc {
  font-size: 13px; color: var(--text-soft); margin: 6px 0 10px; line-height: 1.6;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.oil-desc.is-empty { color: var(--text-faint); font-style: italic; }
.oil-meta { display: flex; gap: 6px; flex-wrap: wrap; font-size: 11px; }
.tag {
  background: var(--surface-2); color: var(--text-soft);
  padding: 2px 8px; border-radius: 100px; border: 1px solid var(--line-soft);
}
.tag-warn { background: var(--warn-bg); color: var(--warn); border-color: transparent; }
.tag-need { background: var(--accent-soft); color: var(--accent); border-color: transparent; }

/* ─── 計算機 ─── */
.calc-layout { display: grid; grid-template-columns: 1fr 350px; gap: 18px; align-items: start; }
.calc-side { position: sticky; top: 122px; }

.add-row { display: grid; grid-template-columns: 1fr auto; gap: 8px; margin-bottom: 16px; }
#add-select, #add-additive {
  width: 100%; padding: 10px 12px; font: inherit; border-radius: var(--radius);
  border: 1px solid var(--line); background: var(--surface-2); color: var(--text);
}

.mode-switch { display: flex; gap: 0; border: 1px solid var(--line); border-radius: 8px; overflow: hidden; }
.mode-switch button {
  background: var(--surface-2); border: none; padding: 9px 15px;
  font: inherit; font-size: 13px; color: var(--text-soft); cursor: pointer;
}
.mode-switch button.is-on { background: var(--accent); color: #fff; }

.oil-rows { display: flex; flex-direction: column; gap: 6px; }
.orow {
  display: grid; grid-template-columns: 1fr 92px 66px 30px;
  align-items: center; gap: 8px;
  background: var(--surface-2); border: 1px solid var(--line-soft);
  border-radius: 9px; padding: 8px 10px;
}
.orow-name { font-size: 14px; }
.orow-name small { color: var(--text-faint); font-size: 11px; margin-left: 5px; }
.orow input {
  width: 100%; padding: 5px 8px; font: inherit; font-family: var(--mono); font-size: 13px;
  text-align: right; border: 1px solid var(--line); border-radius: 6px;
  background: var(--surface); color: var(--text);
}
.orow-alt { font-family: var(--mono); font-size: 12px; color: var(--text-faint); text-align: right; }
.orow-alt.over { color: var(--danger); font-weight: 700; }
.orow-del {
  background: none; border: none; color: var(--text-faint); cursor: pointer;
  font-size: 18px; line-height: 1; padding: 0;
}
.orow-del:hover { color: var(--danger); }
.empty-hint { color: var(--text-faint); font-size: 13px; margin: 0; }
.empty-hint[hidden] { display: none; }

.param-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.param-grid label { display: flex; flex-direction: column; gap: 5px; font-size: 13px; color: var(--text-soft); }
.unit { color: var(--text-faint); font-size: 11px; }
.param-grid input {
  padding: 9px 11px; font: inherit; font-family: var(--mono);
  border: 1px solid var(--line); border-radius: 8px;
  background: var(--surface-2); color: var(--text);
}
.hint { font-size: 12px; color: var(--text-faint); margin: 12px 0 0; line-height: 1.65; }

/* 水量三連動 */
.water-row {
  display: grid; grid-template-columns: auto auto 1fr; gap: 10px;
  align-items: center; background: var(--surface-2);
  border: 1px solid var(--line-soft); border-radius: 9px; padding: 12px 14px;
  font-family: var(--mono); font-size: 14px;
}
.water-row .wr-label { color: var(--text-soft); font-family: inherit; white-space: nowrap; }
.water-row input {
  width: 74px; padding: 5px 8px; font: inherit; font-family: var(--mono); font-size: 14px;
  text-align: right; border: 1px solid var(--line); border-radius: 6px;
  background: var(--surface); color: var(--text);
}
.water-row .wr-out { color: var(--accent); font-weight: 600; }
.water-alt { font-size: 12px; color: var(--text-faint); margin: 9px 0 0; font-family: var(--mono); }

.btn {
  background: var(--accent); color: #fff; border: 1px solid var(--accent);
  padding: 9px 16px; border-radius: 8px; font: inherit; font-size: 13px; cursor: pointer;
}
.btn:hover { filter: brightness(1.08); }
.btn-ghost { background: none; color: var(--text-soft); border-color: var(--line); }
.btn-ghost:hover { background: var(--surface-2); color: var(--text); filter: none; }

/* ─── 結果面板 ─── */
.result-card { border-color: var(--accent); }
.recipe-table { width: 100%; border-collapse: collapse; font-size: 13px; }
.recipe-table td { padding: 7px 0; border-bottom: 1px solid var(--line-soft); color: var(--text-soft); }
.recipe-table td:last-child { text-align: right; color: var(--text); font-family: var(--mono); }
.recipe-table .row-strong td { font-weight: 700; color: var(--text); }
.recipe-table .row-lye td:last-child { color: var(--danger); font-weight: 700; }

.props { margin-top: 4px; }
.prop { margin-bottom: 11px; }
.prop-top {
  display: flex; justify-content: space-between; align-items: baseline;
  font-size: 12px; color: var(--text-soft); margin-bottom: 3px;
}
.prop-top b { font-family: var(--mono); font-size: 13px; color: var(--text); }
.prop-track {
  position: relative; height: 7px; border-radius: 100px;
  background: var(--surface-2); overflow: hidden;
}
.prop-fill { height: 100%; border-radius: 100px; transition: width .25s ease; }
.prop-range {
  position: absolute; top: 0; height: 100%;
  background: rgba(128,128,128,.16); border-left: 1px solid var(--text-faint);
  border-right: 1px solid var(--text-faint); pointer-events: none;
}
.prop[data-k="hardness"]     .prop-fill { background: var(--p-hard); }
.prop[data-k="cleansing"]    .prop-fill { background: var(--p-clean); }
.prop[data-k="conditioning"] .prop-fill { background: var(--p-cond); }
.prop[data-k="bubbly"]       .prop-fill { background: var(--p-bubbly); }
.prop[data-k="creamy"]       .prop-fill { background: var(--p-creamy); }
.prop[data-k="iodine"]       .prop-fill { background: var(--p-iodine); }
.prop-top .out { color: var(--warn); font-weight: 700; }
.props-foot {
  display: flex; justify-content: space-between; font-size: 12px;
  color: var(--text-soft); border-top: 1px solid var(--line-soft);
  padding-top: 10px; margin-top: 4px;
}
.props-foot b { font-family: var(--mono); color: var(--text); }
.props-foot b.out { color: var(--warn); }

.verdict {
  background: var(--surface-2); border-left: 3px solid var(--accent);
  border-radius: 8px; padding: 11px 13px; font-size: 13px;
  color: var(--text-soft); line-height: 1.65; margin-top: 14px;
}
.verdict b { color: var(--text); }

.warnings { margin-top: 14px; display: flex; flex-direction: column; gap: 8px; }
.warning {
  font-size: 12px; line-height: 1.6; padding: 9px 11px; border-radius: 8px;
  background: var(--warn-bg); color: var(--warn); border-left: 3px solid currentColor;
}
.warning.danger { background: var(--danger-bg); color: var(--danger); }
.result-actions { display: flex; gap: 8px; margin-top: 16px; }
.result-actions .btn { flex: 1; }

.cost-list { list-style: none; margin: 0; padding: 0; font-size: 13px; }
.cost-list li {
  display: grid; grid-template-columns: 1fr 78px 68px; gap: 8px; align-items: center;
  padding: 5px 0; border-bottom: 1px solid var(--line-soft);
}
.cost-list li:last-child { border: none; }
.cost-list input {
  width: 100%; padding: 4px 7px; font: inherit; font-family: var(--mono); font-size: 12px;
  text-align: right; border: 1px solid var(--line); border-radius: 6px;
  background: var(--surface-2); color: var(--text);
}
.cost-list .c-sum { font-family: var(--mono); font-size: 12px; color: var(--text-soft); text-align: right; }
.cost-total {
  display: flex; justify-content: space-between; font-size: 14px;
  font-weight: 700; margin-top: 12px; padding-top: 10px; border-top: 1px solid var(--line);
}
.cost-total span:last-child { font-family: var(--mono); }
.cost-sub { font-size: 12px; color: var(--text-faint); text-align: right; margin: 3px 0 0; font-family: var(--mono); }

/* ─── 配方庫 ─── */
.recipe-list { display: grid; gap: 14px; grid-template-columns: repeat(auto-fill, minmax(330px, 1fr)); }
.recipe {
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 18px 20px;
}
.recipe-head { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; }
.recipe h3 { margin: 0; font-size: 17px; }
.recipe-badge {
  font-size: 11px; font-family: var(--mono); background: var(--accent-soft);
  color: var(--accent); padding: 3px 9px; border-radius: 100px; white-space: nowrap;
}
.recipe-meta { font-size: 12px; color: var(--text-faint); margin: 3px 0 10px; font-family: var(--mono); }
.recipe-desc { font-size: 13px; color: var(--text-soft); margin: 0 0 12px; }
.recipe-items { font-size: 12px; font-family: var(--mono); color: var(--text-soft); margin: 0 0 12px; line-height: 1.9; }
.recipe-items i { color: var(--text-faint); font-style: normal; }
.recipe-notes {
  font-size: 12px; color: var(--text-soft); background: var(--surface-2);
  padding: 9px 12px; border-radius: 8px; margin: 0 0 12px; border-left: 3px solid var(--line);
}

/* ─── modal ─── */
.modal {
  position: fixed; inset: 0; background: rgba(18,18,12,.6); z-index: 100;
  display: flex; align-items: center; justify-content: center; padding: 20px;
  backdrop-filter: blur(3px);
}
.modal[hidden] { display: none; }
.modal-box {
  background: var(--surface); border-radius: 16px; padding: 28px;
  max-width: 560px; width: 100%; max-height: 85vh; overflow-y: auto;
  position: relative; box-shadow: var(--shadow);
}
.modal-wide .modal-box { max-width: 640px; }
.modal-close {
  position: absolute; top: 14px; right: 16px; background: none; border: none;
  font-size: 26px; line-height: 1; color: var(--text-faint); cursor: pointer;
}
.modal-close:hover { color: var(--text); }
.m-title { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; margin-bottom: 4px; }
.m-title h2 { margin: 0; font-size: 24px; text-transform: none; letter-spacing: 0; color: var(--text); }
.m-title span { color: var(--text-faint); font-size: 13px; }
.m-tags { display: flex; gap: 6px; flex-wrap: wrap; margin: 12px 0 16px; font-size: 11px; }
.m-desc { font-size: 14.5px; margin: 0 0 18px; color: var(--text-soft); line-height: 1.75; }
.m-unverified {
  background: var(--accent-soft); color: var(--accent); padding: 10px 13px;
  border-radius: 8px; font-size: 12px; line-height: 1.6; margin: 0 0 16px;
}
.m-row { margin-bottom: 16px; font-size: 13px; }
.m-row > b { display: block; color: var(--text-soft); font-size: 11px; letter-spacing: .1em; margin-bottom: 6px; }
.m-nums { width: 100%; border-collapse: collapse; font-size: 13px; }
.m-nums td { padding: 5px 0; border-bottom: 1px solid var(--line-soft); color: var(--text-soft); }
.m-nums td:last-child { text-align: right; font-family: var(--mono); color: var(--text); }
.fa-bar { display: flex; height: 10px; border-radius: 100px; overflow: hidden; background: var(--surface-2); }
.fa-bar span { transition: width .2s; }
.fa-legend { display: flex; flex-wrap: wrap; gap: 4px 12px; font-size: 11.5px; color: var(--text-soft); margin-top: 8px; }
.fa-legend i { display: inline-block; width: 8px; height: 8px; border-radius: 2px; margin-right: 5px; }
.fa-legend b { font-family: var(--mono); color: var(--text); }
.m-blends { display: flex; gap: 6px; flex-wrap: wrap; }
.m-blend {
  background: var(--surface-2); border: 1px solid var(--line-soft); color: var(--text-soft);
  padding: 3px 10px; border-radius: 100px; font-size: 12px; cursor: pointer; font-family: inherit;
}
.m-blend:hover { border-color: var(--accent); color: var(--accent); }
.m-max { background: var(--warn-bg); color: var(--warn); padding: 10px 13px; border-radius: 8px; font-size: 12px; line-height: 1.6; }
.m-max.safe { background: var(--surface-2); color: var(--text-soft); }
.m-actions { display: flex; gap: 8px; margin-top: 18px; }
.m-actions .btn { flex: 1; }

/* ─── 配方摘要 ─── */
.sheet-name {
  width: 100%; padding: 10px 14px; font: inherit; font-size: 19px; font-weight: 600;
  background: var(--surface-2); color: var(--text);
  border: 1px solid var(--line); border-radius: 10px; margin-bottom: 18px;
}
.sheet-name:focus { outline: 2px solid var(--accent-soft); border-color: var(--accent); }
.sheet-name::placeholder { font-weight: 400; color: var(--text-faint); }
.sheet-hero { text-align: center; padding: 4px 0 18px; border-bottom: 1px solid var(--line-soft); margin-bottom: 16px; }
.sheet-big { display: block; font-family: var(--mono); font-size: 42px; font-weight: 300; line-height: 1.1; }
.sheet-big small { font-size: 18px; color: var(--text-faint); margin-left: 2px; }
.sheet-sub { display: block; font-size: 12px; color: var(--text-faint); margin-top: 6px; font-family: var(--mono); }
.sheet-table { width: 100%; border-collapse: collapse; font-size: 13px; margin-bottom: 6px; }
.sheet-table th {
  text-align: left; font-size: 11px; letter-spacing: .1em; color: var(--text-faint);
  font-weight: 500; padding: 0 8px 7px 0; border-bottom: 1px solid var(--line);
}
.sheet-table th.n { text-align: right; }
.sheet-table td { padding: 6px 8px 6px 0; border-bottom: 1px solid var(--line-soft); }
.sheet-table td:first-child { color: var(--text-soft); }
.sheet-table td.n { text-align: right; font-family: var(--mono); white-space: nowrap; }
.sheet-table td.n.over { color: var(--danger); font-weight: 700; }
.sheet-table .sheet-total td { font-weight: 700; color: var(--text); border-bottom: none; }
.sheet-sec { font-size: 11px; letter-spacing: .1em; color: var(--text-faint); margin: 16px 0 6px; }
.sheet-warn {
  font-size: 12px; color: var(--warn); background: var(--warn-bg);
  padding: 9px 11px; border-radius: 8px; margin: 14px 0 0; border-left: 3px solid currentColor;
}
.sheet-md { margin-top: 18px; }
.sheet-md summary { font-size: 12px; color: var(--text-soft); cursor: pointer; padding: 6px 0; }
.sheet-md summary:hover { color: var(--text); }
.sheet-md textarea {
  width: 100%; margin-top: 6px; padding: 12px 14px; resize: vertical;
  font-family: var(--mono); font-size: 12px; line-height: 1.7;
  background: var(--surface-2); color: var(--text-soft);
  border: 1px solid var(--line); border-radius: 8px; white-space: pre;
}
.sheet-actions { display: flex; gap: 8px; margin-top: 16px; }
.sheet-actions .btn { flex: 1; }

/* ─── 指南 ─── */
.prose { max-width: 720px; }
.prose h2 { font-size: 24px; margin: 0 0 24px; }
.prose h3 { font-size: 16px; margin: 32px 0 8px; color: var(--accent); }
.prose h4 { font-size: 14px; margin: 20px 0 6px; }
.prose p, .prose li { color: var(--text-soft); font-size: 14.5px; }
.prose b, .prose strong { color: var(--text); }
.prose a { color: var(--accent); }
.prose table { width: 100%; border-collapse: collapse; font-size: 13.5px; margin: 14px 0; }
.prose th, .prose td { text-align: left; padding: 8px 10px 8px 0; border-bottom: 1px solid var(--line-soft); color: var(--text-soft); }
.prose th { color: var(--text); font-size: 12px; letter-spacing: .06em; border-bottom-color: var(--line); }
.warn-inline {
  background: var(--danger-bg); color: var(--danger) !important;
  padding: 12px 15px; border-radius: 8px; border-left: 3px solid currentColor;
  font-size: 13.5px !important; line-height: 1.7;
}
.gear-list { list-style: none; padding: 0; }
.gear-list li { padding: 9px 0; border-bottom: 1px solid var(--line-soft); font-size: 14px; }
.gear-list b { display: inline-block; min-width: 130px; color: var(--text); }

/* ─── footer ─── */
.site-footer {
  border-top: 1px solid var(--line); background: var(--bg-soft);
  padding: 24px 0 40px; font-size: 12px; color: var(--text-faint); line-height: 1.7;
}
.site-footer p { margin: 0 0 8px; max-width: 820px; }
.site-footer a { color: var(--text-soft); }

/* ─── responsive ─── */
@media (max-width: 940px) {
  .calc-layout { grid-template-columns: 1fr; }
  .calc-side { position: static; }
}
@media (max-width: 560px) {
  .param-grid { grid-template-columns: 1fr; }
  .grid, .goal-grid { grid-template-columns: 1fr; }
  .orow { grid-template-columns: 1fr 76px 56px 26px; gap: 5px; }
  .water-row { grid-template-columns: 1fr; gap: 6px; text-align: left; }
  .sheet-big { font-size: 36px; }
  .gear-list b { display: block; }
}
