/* 板前帖：明るい調理場・濡れた手・片手・台に置いて離れて見る。
   2026-11-16 本人決定：一覧（案1）が土台・検索欄は下（案5）・品の画面は特大の数字（案2）。
   文字は rem（設定で3段 18/19/22px）。いちばん小さい字も 0.95rem＝17px 以上。 */
:root {
  --bg: #f6f5f1; --surface: #ffffff; --fg: #111418; --sub: #3f474f; --line: #7d858e; --line-soft: #e1e3e6;
  --accent: #1e3f66; --on-accent: #ffffff; --calc: #0d4f86; --warn-bg: #fff1c7; --warn-fg: #5c3d00;
  /* 材料の色：地（淡）・字（濃）・帯（中） */
  --g-dashi-bg: #dde9f5; --g-dashi-fg: #0a355f; --g-dashi: #4a86c0;
  --g-shoyu-bg: #f0e2d3; --g-shoyu-fg: #552b0b; --g-shoyu: #7a4520;
  --g-sweet-bg: #fbecc0; --g-sweet-fg: #553c00; --g-sweet: #d2a12a;
  --g-sour-bg: #dcefd7; --g-sour-fg: #1b4a17; --g-sour: #4f9a45;
  --g-other-bg: #e6e8eb; --g-other-fg: #2a3036; --g-other: #9aa2aa;
  --font: "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Noto Sans JP", "Yu Gothic UI", "Meiryo", system-ui, sans-serif;
  --tap: 3.25rem; --radius: 12px;
  color-scheme: light;
}
:root[data-theme="dark"] {
  --bg: #0f1115; --surface: #1a1e24; --fg: #eef1f4; --sub: #c0c8d0; --line: #6f7984; --line-soft: #2b3138;
  --accent: #e0b252; --on-accent: #17130a; --calc: #8fc3f2; --warn-bg: #4a3a12; --warn-fg: #ffe3a3;
  --g-dashi-bg: #1b3149; --g-dashi-fg: #d6e8fa; --g-dashi: #5f9bd6;
  --g-shoyu-bg: #3d2b1c; --g-shoyu-fg: #f3dcc6; --g-shoyu: #b87a48;
  --g-sweet-bg: #443510; --g-sweet-fg: #fbe6ad; --g-sweet: #d6a72e;
  --g-sour-bg: #1f391c; --g-sour-fg: #d4efce; --g-sour: #6db462;
  --g-other-bg: #2a3036; --g-other-fg: #e1e5e9; --g-other: #8f99a3;
  color-scheme: dark;
}
html { font-size: 19px; -webkit-text-size-adjust: 100%; }
html[data-size="s"] { font-size: 18px; }
html[data-size="l"] { font-size: 22px; }
* { box-sizing: border-box; }
body { margin: 0; background: var(--bg); color: var(--fg); font-family: var(--font); line-height: 1.6; -webkit-tap-highlight-color: transparent; }
/* 日本語を語の途中で折らない（対応していない端末ではふつうに折れる） */
body { word-break: auto-phrase; line-break: strict; }
h1, h2, .rname, .nm { text-wrap: balance; }
p, li { text-wrap: pretty; }
button, input, select { font: inherit; color: inherit; }
button { cursor: pointer; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }
.num { font-variant-numeric: tabular-nums; }
.boot { padding: 2rem 1rem; color: var(--sub); }

/* 1画面の型：上が読む所（スクロール）、下が手で触る所（固定） */
.app { min-height: 100dvh; display: flex; flex-direction: column; }
.scroll { flex: 1; padding: calc(env(safe-area-inset-top, 0px) + .9rem) max(1rem, env(safe-area-inset-right, 0px)) 1.5rem max(1rem, env(safe-area-inset-left, 0px)); max-width: 44rem; width: 100%; margin: 0 auto; }
.dock { position: sticky; bottom: 0; background: var(--surface); border-top: 1px solid var(--line); padding: .55rem max(.75rem, env(safe-area-inset-right, 0px)) calc(.5rem + env(safe-area-inset-bottom, 0px)) max(.75rem, env(safe-area-inset-left, 0px)); z-index: 5; }
.dock-in { max-width: 44rem; margin: 0 auto; display: flex; flex-direction: column; gap: .5rem; }
.row { display: flex; gap: .5rem; }
.row > * { flex: 1; min-width: 0; white-space: nowrap; }
.row > .star { flex: 0 0 5rem; font-size: 1.6rem; padding: 0; }
/* 品の画面の「戻る・☆」は高さ 90px。主な「量を変える」を親指の届く y≤710 に上げるため（2026-11-16 総司令塔）。
   濡れた手でいちばん押す「戻る」が大きくなる。文字の大きさを変えても同じ高さ */
.navrow > .btn { min-height: max(90px, var(--tap)); }

/* ボタン：最低 3.25rem（中で約62px） */
.btn { min-height: var(--tap); border-radius: var(--radius); border: 2px solid var(--line); background: var(--surface); font-weight: 700; padding: 0 .9rem; display: inline-flex; align-items: center; justify-content: center; gap: .4rem; text-decoration: none; color: var(--fg); }
.btn.primary { background: var(--accent); color: var(--on-accent); border-color: var(--accent); }
.btn[aria-pressed="true"] { background: var(--accent); color: var(--on-accent); border-color: var(--accent); }
.btn.small { min-height: 3rem; padding: 0 .7rem; }
.linkbtn { border: 0; background: none; color: var(--calc); font-weight: 700; text-decoration: underline; text-underline-offset: 3px; min-height: 2.75rem; padding: 0 .4rem; font-size: .95rem; }

/* 下の帯（さがす）：検索欄 → 分類 → 見るもの。検索欄が親指の届く所に来るよう、上に置く */
.search { display: flex; align-items: center; gap: .4rem; min-height: var(--tap); border: 2px solid var(--accent); border-radius: 999px; background: var(--surface); padding: 0 .35rem 0 1rem; }
.search .lens { font-size: 1.05rem; }
.search input { flex: 1; min-width: 0; border: 0; background: transparent; font-size: 1.15rem; height: 3rem; outline: none; }
.search .clear { width: 2.75rem; height: 2.75rem; border: 0; border-radius: 50%; background: var(--line-soft); font-size: 1.2rem; flex: none; }
.chips { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: .4rem; } /* 4×2 で全部見せる（横に流す手間をなくす・2026-11-19） */
.chips::-webkit-scrollbar { display: none; }
.chip { min-width: 0; min-height: 2.75rem; padding: 0 .3rem; border-radius: 999px; border: 2px solid var(--line); background: var(--surface); font-size: .95rem; font-weight: 700; white-space: nowrap; }
.chip[aria-pressed="true"] { background: var(--accent); color: var(--on-accent); border-color: var(--accent); }
.tabs { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border-top: 1px solid var(--line-soft); margin: 0 -.25rem; }
.tab { min-height: 2.75rem; border: 0; background: none; font-size: .95rem; font-weight: 700; color: var(--sub); display: flex; align-items: center; justify-content: center; text-decoration: none; white-space: nowrap; border-top: 3px solid transparent; }
.tab[aria-pressed="true"] { color: var(--on-accent); background: var(--accent); border-top-color: var(--accent); border-radius: 0 0 10px 10px; } /* 地を塗って選んだ所を示す（線だけだと見分けにくい・2026-11-19。起動時に前の所を開くので、今どこかが一目で分かるように） */

/* 見出し・一覧（1行＝1品。割合は右に大きく、下に色の帯と材料の順） */
.brand { display: flex; align-items: baseline; justify-content: space-between; gap: .5rem; margin-bottom: .25rem; }
.brand h1 { font-size: 1.45rem; margin: 0; letter-spacing: .08em; }
.brand .count { color: var(--sub); font-size: .95rem; }
h2.sec { font-size: .95rem; color: var(--sub); margin: 1rem 0 .3rem; letter-spacing: .04em; }
h2.sec .hint { display: block; font-weight: 400; letter-spacing: 0; }
.list { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line-soft); }
.item { display: flex; flex-direction: column; gap: .15rem; min-height: var(--tap); padding: .5rem .2rem .55rem; border-bottom: 1px solid var(--line-soft); text-decoration: none; color: var(--fg); }
.item .l1 { display: flex; flex-wrap: wrap; align-items: baseline; column-gap: .6rem; } /* 品名が長いと割合は次の行の右へ（カタカナの語の途中で折らないため・2026-11-19） */
.item .nm { flex: 1 1 0; min-width: min(100%, min-content); font-weight: 700; font-size: 1.1rem; line-height: 1.35; }
.item .st { color: var(--warn-fg); margin-left: .3rem; font-size: .95rem; }
.item .ratio, .item .l1 .badge { margin-left: auto; }
.item .ratio { font-weight: 800; font-size: 1.35rem; line-height: 1.2; white-space: nowrap; }
.item .l2 { display: flex; align-items: center; gap: .55rem; min-width: 0; }
.item .ord { color: var(--sub); font-size: .95rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; }
.strip { display: flex; flex: none; width: 4.2rem; height: .6rem; border-radius: 3px; overflow: hidden; gap: 2px; }
.strip i { display: block; min-width: 3px; }
.s-dashi { background: var(--g-dashi); } .s-shoyu { background: var(--g-shoyu); } .s-sweet { background: var(--g-sweet); } .s-sour { background: var(--g-sour); } .s-other { background: var(--g-other); }
.empty { color: var(--sub); padding: 1.25rem 0; }
.badge { display: inline-block; font-size: .95rem; font-weight: 700; padding: .1rem .6rem; border-radius: 999px; background: var(--warn-bg); color: var(--warn-fg); white-space: nowrap; }
.rhead .badge { white-space: normal; border-radius: 12px; max-width: 100%; } /* 品の画面の長い札（「単位の書いていない数があります…」）が横にはみ出していた：折り返す（2026-11-19） */

/* 材料の色（地・字・左の帯） */
.g-dashi { --gb: var(--g-dashi-bg); --gf: var(--g-dashi-fg); --gl: var(--g-dashi); }
.g-shoyu { --gb: var(--g-shoyu-bg); --gf: var(--g-shoyu-fg); --gl: var(--g-shoyu); }
.g-sweet { --gb: var(--g-sweet-bg); --gf: var(--g-sweet-fg); --gl: var(--g-sweet); }
.g-sour { --gb: var(--g-sour-bg); --gf: var(--g-sour-fg); --gl: var(--g-sour); }
.g-other { --gb: var(--g-other-bg); --gf: var(--g-other-fg); --gl: var(--g-other); }
.mk { width: 2.6rem; height: 2.6rem; flex: none; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; font-weight: 800; font-size: 1.15rem; background: var(--gb); color: var(--gf); border: 2px solid var(--gl); }

/* レシピ（特大の数字。1m離れて読む） */
.rhead { display: flex; flex-direction: column; align-items: flex-start; gap: .3rem; }
.rname { font-size: min(2.3rem, calc((100vw - 2.5rem) / 7.3)); margin: 0; line-height: 1.2; letter-spacing: .02em; overflow-wrap: break-word; max-width: 100%; } /* 文字「大」で長い品名（7字以上でひと続きの語）が横にはみ出していた：幅に7字入る大きさまでに抑え、それでも入らなければ折る（2026-11-19） */
.rhead .yomi { color: var(--sub); font-size: .95rem; }
details.alias-more { margin-top: .35rem; color: var(--sub); font-size: .95rem; }
details.alias-more summary { min-height: var(--tap); display: flex; align-items: center; font-weight: 700; color: var(--fg); cursor: pointer; text-decoration: underline; text-underline-offset: .2em; }
details.alias-more p { margin: 0 0 .5rem; overflow-wrap: anywhere; }
.bigratio { font-size: 4.6rem; font-weight: 800; line-height: 1; margin: .9rem 0 .5rem; letter-spacing: -.01em; display: flex; align-items: baseline; flex-wrap: wrap; }
.bigratio i { font-style: normal; color: var(--sub); font-size: .55em; margin: 0 .12em; font-weight: 700; }
.bar { display: flex; height: .9rem; border-radius: 5px; overflow: hidden; gap: 3px; margin: .4rem 0 .25rem; }
.bar span { display: block; min-width: 4px; }
.barcap { font-size: .95rem; color: var(--sub); }
.now { margin: .9rem 0 0; font-size: 1rem; display: flex; flex-wrap: wrap; align-items: center; gap: .2rem .6rem; }
.now b { font-size: 1.15rem; }
.ings { list-style: none; margin: .5rem 0 0; padding: 0; display: flex; flex-direction: column; gap: .4rem; }
.ing { display: flex; align-items: center; gap: .6rem; padding: .55rem .8rem .55rem .9rem; border-radius: 10px; background: var(--gb); color: var(--gf); border-left: 6px solid var(--gl); min-height: 4rem; }
/* 台に置いて 60cm 離れても読める大きさ（中で約27px 以上・見込み角22分。2026-11-19 測って上げた：材料名 1.2→1.45rem、単位 1.05→1.45rem） */
.ing .n { flex: 1; min-width: 0; font-size: 1.45rem; font-weight: 700; line-height: 1.35; }
.ing .n small { display: block; font-size: .95rem; font-weight: 400; }
.ing .q { text-align: right; font-size: 2.3rem; font-weight: 800; line-height: 1.1; white-space: nowrap; }
.ing .q .u { font-size: 1.45rem; font-weight: 700; margin-left: .12rem; }
.ing .q small { display: block; font-size: .95rem; font-weight: 600; margin-top: .45rem; }
.ing .q.txt { font-size: 1.2rem; font-weight: 700; white-space: normal; }
.ing .q.calc .v { text-decoration: underline dotted 3px; text-underline-offset: 6px; }
.calcnote { font-size: .95rem; color: var(--sub); margin: .5rem 0 0; }
.calcnote b { color: var(--calc); text-decoration: underline dotted 2px; text-underline-offset: 3px; }
.use { margin: .75rem 0 0; color: var(--sub); font-size: .95rem; }
.cookbtn { width: 100%; margin-top: 1rem; }

/* 量の板（下の帯の中に開く） */
.qbtn { justify-content: space-between; min-height: 3.5rem; font-size: 1.05rem; }
.qbtn b { font-size: 1.25rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; }
/* 量の板：文字「大」でも親指の届く y≥480 に収めるため、ボタンの高さは 56〜60px に止める（2026-11-18） */
.qty { display: flex; flex-direction: column; gap: 8px; --qh: max(56px, min(var(--tap), 60px)); }
.presets { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: .4rem; }
.presets .btn { min-height: var(--qh); }
.presets .btn { padding: 0; font-size: 1rem; white-space: nowrap; }
.presets.six { grid-template-columns: repeat(6, minmax(0, 1fr)); }
.presets .swap { background: var(--surface); font-size: .95rem; border-style: dashed; }
.inrow { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr) minmax(0, .8fr); gap: .4rem; }
.inrow.two { grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); }
.qty select, .qty input { min-height: var(--qh); border: 2px solid var(--line); border-radius: 10px; background: var(--bg); padding: 0 .5rem; font-size: 1.1rem; font-weight: 700; width: 100%; }
.unitin { display: flex; align-items: center; gap: .3rem; }
.unitin span { font-weight: 700; }

.steps { margin: .5rem 0 0; padding-left: 1.6rem; font-size: 1.05rem; }
.steps li { margin: .5rem 0; }
.t-time { font-weight: 800; color: var(--warn-fg); background: var(--warn-bg); border-radius: 4px; padding: 0 .2rem; }
.tip { background: var(--surface); border-left: 4px solid var(--accent); padding: .6rem .8rem; margin-top: .5rem; font-size: 1rem; }
details.var { border: 2px solid var(--line); border-radius: var(--radius); margin-top: 1rem; background: var(--surface); }
details.var summary { min-height: var(--tap); display: flex; align-items: center; padding: 0 1rem; font-weight: 700; cursor: pointer; }
details.var .vin { padding: 0 1rem .75rem; }
.vrow { padding: .5rem 0; border-top: 1px solid var(--line-soft); }
.vrow b { font-size: .95rem; color: var(--sub); display: block; }

/* 調理モード：1画面1手順。下は大きなボタンだけ（料理帖で案3の形に作り直す） */
.cook { min-height: 100dvh; display: flex; flex-direction: column; background: var(--bg); }
.cook-top { display: flex; align-items: center; justify-content: space-between; gap: .5rem; padding: calc(env(safe-area-inset-top, 0px) + .6rem) 1rem .4rem; }
.cook-top .nm { font-weight: 700; font-size: .95rem; color: var(--sub); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cook-top .pos { font-weight: 800; font-size: 1.1rem; white-space: nowrap; }
.cook-prog { height: 6px; background: var(--line-soft); margin: 0 1rem; border-radius: 3px; overflow: hidden; }
.cook-prog i { display: block; height: 100%; background: var(--accent); }
.cook-body { flex: 1; overflow-y: auto; padding: 1.25rem 1.25rem 1rem; }
.cook-step { font-size: 1.75rem; line-height: 1.55; font-weight: 700; margin: 0; }
.cook-ings { list-style: none; padding: 0; margin: 0; }
.cook-ings li { display: flex; align-items: center; gap: .75rem; padding: .45rem 0; border-bottom: 1px solid var(--line-soft); font-size: 1.45rem; font-weight: 700; }
.cook-ings li .cn { flex: 1; min-width: 0; overflow-wrap: anywhere; } /* 長い材料名（キサンタンガム（増粘剤））が量を押し出して横にはみ出していた（2026-11-19） */
.cook-ings li .q { flex-shrink: 0; margin-left: auto; font-size: 2.1rem; font-weight: 800; white-space: nowrap; }
.cook-ings li .q.txt { font-size: 1.45rem; white-space: normal; flex-shrink: 1; max-width: 55%; text-align: right; }
.cook-ings li .q small { display: block; font-size: .95rem; font-weight: 400; color: var(--sub); }
.cook-dock { display: grid; grid-template-columns: 1fr 1.6fr; gap: .75rem; padding: .75rem 1rem calc(1rem + env(safe-area-inset-bottom, 0px)); }
.cook-dock .btn { white-space: nowrap; min-height: 6rem; font-size: 1.4rem; border-width: 3px; }
.cook-note { font-size: .95rem; color: var(--sub); text-align: center; margin: 0 1rem; }
.basis { font-size: .95rem; font-weight: 700; color: var(--sub); margin: .75rem 0 0; }

/* 設定 */
.sheet { border: 2px solid var(--line); border-radius: var(--radius); background: var(--surface); padding: .75rem; display: flex; flex-direction: column; gap: .75rem; }
.sheet .lab { font-size: .95rem; color: var(--sub); font-weight: 700; margin-bottom: .3rem; }
.foot { text-align: center; color: var(--sub); font-size: .95rem; margin: 2rem 0 .5rem; }
@media (prefers-reduced-motion: reduce) { * { transition: none !important; animation: none !important; } }
input[type="search"]::-webkit-search-cancel-button { -webkit-appearance: none; display: none; }
[hidden] { display: none !important; }
/* 語の途中で折らない：<wbr> の所だけで折る。長すぎて入らない時だけ途中で折る */
@supports not (word-break: auto-phrase) { .kw { word-break: keep-all; overflow-wrap: anywhere; } }

/* 有料の作り（骨組み・2026-11-19） */
.badge.lock { background: var(--line-soft); color: var(--fg); }
.unlock { display: grid; gap: .7rem; }
.codein { min-height: var(--tap); border: 2px solid var(--accent); border-radius: var(--radius); padding: 0 1rem; font-size: 1.35rem; font-weight: 700; letter-spacing: .08em; background: var(--surface); color: var(--fg); width: 100%; }
.umsg { min-height: 1.6em; font-weight: 700; margin: 0; }
.toast { position: fixed; left: 1rem; right: 1rem; top: calc(1rem + env(safe-area-inset-top, 0px)); z-index: 20; background: var(--fg); color: var(--bg); padding: .8rem 1rem; border-radius: var(--radius); font-weight: 700; }
.nw { white-space: nowrap; } /* 品名の中で折らない語 */

/* 季節（2026-11-19）：分類の札の上に4つ。押した季節の品だけ（通年は出さない）。いまの季節に「いま」 */
.seas { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: .4rem; }
.sea-b { min-height: 2.75rem; border-radius: 10px; border: 2px solid var(--line); background: var(--surface); font-size: .95rem; font-weight: 700; display: flex; align-items: center; justify-content: center; gap: .25rem; }
.sea-b small { font-size: .95rem; font-weight: 700; color: var(--sub); }
.sea-b[aria-pressed="true"] { background: var(--accent); color: var(--on-accent); border-color: var(--accent); }
.sea-b[aria-pressed="true"] small { color: var(--on-accent); }
.sea-t { flex: none; font-size: .95rem; font-weight: 700; padding: 0 .4rem; border-radius: 6px; border: 1.5px solid var(--line); color: var(--fg); line-height: 1.5; }

/* 料理帖（2026-11-20） */
.chips.six { grid-template-columns: repeat(6, minmax(0, 1fr)); }
.tabs { grid-template-columns: repeat(5, minmax(0, 1fr)); }
.item .bk { flex: none; margin-left: auto; font-size: .95rem; font-weight: 700; color: var(--sub); border: 1.5px solid var(--line); border-radius: 6px; padding: 0 .35rem; }
.ing.dish { background: var(--surface); color: var(--fg); border-left: 6px solid var(--line-soft); min-height: 3.2rem; }
.ing.dish .n { font-size: 1.25rem; }
.ing.dish .q.txt { font-size: 1.25rem; max-width: 50%; }
.ing.dish.ref { border-left-color: var(--accent); }
.ing.dish a.n { color: var(--fg); text-decoration: none; display: block; min-height: 2.75rem; }
.ing.dish a.n small { display: block; font-size: .95rem; font-weight: 700; color: var(--accent-ink, var(--sub)); text-decoration: underline; }
.umark { display: inline-block; margin-left: .35rem; font-size: .95rem; font-weight: 700; padding: 0 .4rem; border-radius: 6px; background: var(--warn-bg); color: var(--warn-fg); vertical-align: .1em; white-space: nowrap; }

/* しらべる（2026-11-24 夜・機能の追加） */
.ksecs { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .4rem; }
.ksecs .chip { display: flex; align-items: center; justify-content: center; text-decoration: none; color: var(--fg); min-height: 2.75rem; }
.ksecs .chip[aria-pressed="true"] { color: var(--on-accent); }
.ing a.n { color: inherit; text-decoration: none; display: block; min-height: 2.75rem; }
.ing a.n small { display: block; font-size: .95rem; font-weight: 700; text-decoration: underline; }
.subtabs { margin: .5rem 0; }
.subtabs .btn { min-height: var(--tap); }
.mbar { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 2px; margin: .3rem 0 .6rem; }
.mbar span { text-align: center; font-size: .95rem; font-weight: 700; padding: .45rem 0; border-radius: 6px; background: var(--line-soft); color: var(--sub); }
.mbar span.on { background: color-mix(in srgb, var(--accent) 35%, var(--surface)); color: var(--fg); }
.mbar span.pk { background: var(--accent); color: var(--on-accent); }
.klist { display: flex; flex-direction: column; gap: .4rem; }
details.kd { border: 2px solid var(--line-soft); border-radius: var(--radius); background: var(--surface); }
details.kd summary { min-height: var(--tap); display: flex; flex-wrap: wrap; align-items: center; gap: .5rem; padding: .4rem 1rem; font-weight: 700; font-size: 1.1rem; cursor: pointer; }
details.kd summary small { font-weight: 400; font-size: .95rem; color: var(--sub); }
details.kd > p, details.kd > details { margin: 0 1rem .7rem; }
.sub { color: var(--sub); }
.klinks { display: flex; flex-wrap: wrap; gap: .4rem; }
.klinks .btn { min-height: var(--tap); }
.kseq { padding-left: 1.6rem; margin: .3rem 0; }
.kseq li { margin-bottom: .8rem; }
.kseq b { font-size: 1.15rem; }
.kseq small { margin-left: .5rem; color: var(--sub); font-size: .95rem; }
.kseq p { margin: .2rem 0 0; }
.kul { padding-left: 1.3rem; margin: .3rem 0; }
.kul li { margin-bottom: .35rem; }
.ktab { width: 100%; border-collapse: collapse; margin: .3rem 0; background: var(--surface); }
.ktab th, .ktab td { border: 1px solid var(--line-soft); padding: .55rem .6rem; text-align: left; vertical-align: top; font-size: 1rem; }
.ktab th { width: 38%; font-weight: 700; }
.ktab small { font-size: .95rem; color: var(--sub); }
.ktags { display: flex; flex-wrap: wrap; gap: .4rem; }
.ktags span { border: 2px solid var(--line); border-radius: 999px; padding: .25rem .8rem; font-weight: 700; background: var(--surface); }
h3.sub3 { font-size: 1.05rem; margin: 1rem 0 .4rem; }
.kconv select, .kconv input { min-height: var(--tap); font-size: 1.1rem; width: 100%; }
.cvout { font-size: 1.5rem; font-weight: 800; min-height: 2rem; margin: 0; color: var(--calc); }
.memo { margin-top: 1.2rem; border: 2px dashed var(--line); border-radius: var(--radius); padding: .2rem .8rem .6rem; background: var(--surface); }
.memo .memo-t { white-space: pre-wrap; padding: .5rem .2rem; font-size: 1.1rem; }
.memo details summary { list-style: none; width: 100%; }
.memo details summary::-webkit-details-marker { display: none; }
.memo textarea { width: 100%; font-size: 1.1rem; margin: .5rem 0; border: 2px solid var(--line); border-radius: 10px; padding: .5rem; background: var(--bg); color: var(--fg); }
.memo .row .btn { min-height: var(--tap); }
.ktimers { display: flex; flex-wrap: wrap; gap: .5rem; justify-content: center; margin-top: 1rem; }
.ktimers .btn { min-height: var(--tap); font-size: 1.2rem; padding: 0 1.2rem; }
.ktimer { position: fixed; left: 50%; transform: translateX(-50%); bottom: calc(9.5rem + env(safe-area-inset-bottom, 0px)); z-index: 20; display: flex; align-items: center; gap: .8rem; background: var(--accent); color: var(--on-accent); border-radius: 999px; padding: .35rem .4rem .35rem 1.1rem; box-shadow: 0 4px 14px rgba(0,0,0,.25); max-width: calc(100% - 1.5rem); }
.ktimer b { font-size: 1.6rem; }
.ktimer .btn { min-height: var(--tap); background: var(--surface); color: var(--fg); border-color: var(--surface); }
.ktimer.done { animation: kblink 1s steps(2) infinite; }
@keyframes kblink { 50% { filter: brightness(1.35); } }
.ktab { table-layout: fixed; }
.ktab th, .ktab td { word-break: normal; overflow-wrap: anywhere; }
.kcut { display: inline-flex; width: 4.5rem; height: 3rem; flex: none; color: var(--accent); }
.kcut svg { width: 100%; height: 100%; }
