:root {
  --ink: #5a3d2d;
  --muted: #967b61;
  --line: #e1d1b0;
  --paper: #f7f1e6;
  --card: #fffdf7;
  --green: #78a84f;
  --green-dark: #4f7f42;
  --lime: #d5dcae;
  --accent: #cf7651;
  font-family: "Noto Sans SC", system-ui, sans-serif;
  color: var(--ink);
  background: var(--paper);
  font-synthesis: none;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
body { margin: 0; min-width: 320px; min-height: 100vh; background: radial-gradient(circle at 88% 2%, #e8e6c9 0, transparent 28%), radial-gradient(circle at 5% 72%, #e7d8be 0, transparent 24%), linear-gradient(135deg, #fffdf7, var(--paper)); overflow-x: hidden; }
body::before, body::after { content: "🌾"; position: fixed; z-index: 0; color: rgba(114,147,73,.2); font-size: 80px; pointer-events: none; filter: saturate(.75); animation: harvest-float 7s ease-in-out infinite; }
body::before { top: 14%; left: -18px; transform: rotate(18deg); }
body::after { content: "✦"; right: 2%; bottom: 7%; font-size: 70px; animation-delay: -3s; }
button, input { font: inherit; }
input[type="number"] { appearance: textfield; -moz-appearance: textfield; }
input[type="number"]::-webkit-inner-spin-button,
input[type="number"]::-webkit-outer-spin-button { margin: 0; -webkit-appearance: none; }
button { color: inherit; }
button:focus-visible, input:focus-visible { outline: 3px solid rgba(164,108,105,.28); outline-offset: 2px; }
.page-shell { position: relative; z-index: 1; width: min(100%, 1180px); min-height: 100vh; margin: 0 auto; padding: 0 30px; }

.topbar { height: 66px; display: flex; align-items: center; justify-content: space-between; border-bottom: 2px solid rgba(99,76,72,.2); }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none; font-size: 18px; font-weight: 700; letter-spacing: .08em; }
.brand-mark { width: 32px; height: 32px; display: block; overflow: hidden; background: transparent; border-radius: 10px 10px 10px 3px; }
.brand-mark img { width: 110%; height: 110%; display: block; margin: -5%; }
.icon-button { width: 38px; height: 38px; display: grid; place-items: center; color: var(--green-dark); background: #f0ebe7; border: 2px solid #927d77; border-radius: 13px; cursor: pointer; transition: .2s; box-shadow: 0 3px 0 #c8b9b2; }
.icon-button:hover { background: #fffdf9; border-color: #a46c69; transform: translateY(-1px); box-shadow: 0 4px 0 #c8b9b2; }
.icon-button svg { width: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.icon-button .sound-off { display: none; }
.icon-button.muted .sound-on { display: none; }
.icon-button.muted .sound-off { display: block; }
.top-actions { display: flex; align-items: center; gap: 8px; }
.help-button { color: var(--green-dark); font-size: 17px; font-weight: 700; }
.text-button { height: 38px; padding: 0 13px; color: var(--green-dark); background: #f0ebe7; border: 2px solid #927d77; border-radius: 13px; font-size: 12px; font-weight: 600; cursor: pointer; transition: .2s; box-shadow: 0 3px 0 #c8b9b2; }
.text-button:hover { background: #fffdf9; border-color: #a46c69; transform: translateY(-1px); box-shadow: 0 4px 0 #c8b9b2; }
.log-button { display: inline-flex; align-items: center; gap: 7px; }
.push-button { display: inline-flex; align-items: center; gap: 6px; color: #8f5f67; }
.push-button-icon { display: inline-grid; place-items: center; width: 15px; height: 15px; border: 1.5px solid currentColor; border-radius: 50%; font-size: 13px; line-height: 1; }
.push-button.active { color: #6d7462; background: #eef0e5; border-color: #bcc5a9; }
.log-button-icon { position: relative; width: 15px; height: 15px; display: inline-block; border: 1.5px solid currentColor; border-radius: 4px; }
.log-button-icon::before, .log-button-icon::after { content: ""; position: absolute; left: 3px; right: 3px; height: 1.5px; background: currentColor; border-radius: 2px; }
.log-button-icon::before { top: 4px; box-shadow: 0 4px 0 currentColor; }
.log-button-icon::after { top: -3px; left: 3px; width: 7px; height: 3px; background: #fff7e8; border: 1.5px solid currentColor; border-bottom: 0; border-radius: 3px 3px 0 0; }

.hero { position: relative; grid-column: 1 / -1; display: flex; align-items: center; min-height: 164px; margin-top: 18px; margin-bottom: 14px; padding: 28px 26px; overflow: hidden; background: #fffdf9; border: 2px solid #7f6e69; border-radius: 22px; box-shadow: 0 5px 0 #c8b9b2, inset 0 2px 0 rgba(255,255,255,.8); }
.hero-copy { position: relative; z-index: 1; max-width: 100%; }
.eyebrow { display: flex; align-items: center; gap: 9px; color: var(--green); font-size: 12px; font-weight: 600; letter-spacing: .16em; }
.eyebrow span { width: 22px; height: 1px; background: var(--green); }
.hero h1 { margin: 10px 0 0; font-size: clamp(28px, 3.2vw, 42px); line-height: 1.15; letter-spacing: -.05em; font-weight: 700; }
.hero h1 em { color: var(--green); font-style: normal; position: relative; }
.hero h1 em::after { content: ""; position: absolute; left: 2px; right: 0; bottom: -4px; height: 9px; background: url("data:image/svg+xml,%3Csvg width='200' height='9' viewBox='0 0 200 9' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 7C44 2 138 1 199 4' stroke='%23c9a7a6' stroke-width='5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E") center/100% 100% no-repeat; z-index: -1; }
.hero p { margin: 12px 0 0; color: var(--muted); font-size: 13px; }
main { display: grid; grid-template-columns: minmax(500px, .95fr) minmax(420px, 1.05fr); align-items: start; gap: 0 22px; }

.timer-panel { padding: 25px; background: linear-gradient(145deg, #fffdf9, #eee9e5); border: 2px solid #786864; border-radius: 22px; box-shadow: 0 5px 0 #baaaa2, inset 0 2px 0 rgba(255,255,255,.72); }
.section-heading, .active-header { display: flex; align-items: center; justify-content: space-between; }
.section-heading > div, .active-header > div { display: flex; align-items: baseline; gap: 10px; }
.section-heading h2, .active-header h2 { margin: 0; font-size: 18px; letter-spacing: -.02em; }
.step-number { color: #b99a7b; font: 600 10px "Noto Sans SC", sans-serif; letter-spacing: .08em; }
.section-hint { color: #aa8f78; font-size: 11px; }

.time-mode-tabs { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; margin-top: 18px; padding: 5px; background: #e6e1de; border: 2px solid #a3948e; border-radius: 14px; }
.time-mode-tabs button { padding: 8px 12px; color: var(--muted); background: transparent; border: 0; border-radius: 8px; font-size: 11px; font-weight: 600; cursor: pointer; transition: .2s; }
.time-mode-tabs button.selected { color: #fffaf7; background: linear-gradient(180deg, #b47b7b, #8f5f67); box-shadow: 0 3px 0 #704c55; }
.duration-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin-top: 10px; }
.duration-card { min-width: 0; height: 70px; padding: 7px 4px; background: #fbf5ec; border: 2px solid #e2d1c1; border-radius: 14px; cursor: pointer; transition: .2s ease; box-shadow: 0 3px 0 #cbb3a3; }
.duration-card strong { display: block; font: 600 24px "Noto Sans SC", sans-serif; font-variant-numeric: tabular-nums; }
.duration-card span { color: var(--muted); font-size: 11px; }
.duration-card:hover { border-color: #dfbc8d; transform: translateY(-2px); }
.duration-card.selected { color: #5f4544; background: linear-gradient(145deg, #e9d6d4, #c89091); border-color: #98676b; box-shadow: 0 4px 0 #704c55, inset 0 1px 0 rgba(255,255,255,.58); }
.duration-card.selected span { color: #745a5a; }
.custom-time { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; padding-top: 10px; }
.custom-time label { flex: 1; display: flex; align-items: center; border: 2px solid #c8b4ae; border-radius: 12px; background: #faf5f1; overflow: hidden; }
.custom-time input { width: 100%; min-width: 0; padding: 10px 4px 10px 12px; border: 0; background: transparent; outline: none; }
.custom-time label span { padding-right: 10px; color: var(--muted); font-size: 12px; white-space: nowrap; }
.divider { height: 1px; margin: 24px 0; background: var(--line); }
.land-heading { margin-bottom: 18px; }
.land-options { display: grid; grid-template-columns: repeat(5, 1fr); gap: 7px; }
.land-option { position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; min-width: 0; gap: 4px; overflow: hidden; padding: 12px 8px; text-align: center; background: var(--land-bg); border: 2px solid transparent; border-radius: 15px; cursor: pointer; transition: .2s; box-shadow: 0 3px 0 rgba(119,73,48,.12); }
.land-option:hover { transform: translateY(-2px); }
.land-option.selected { border-color: var(--land); box-shadow: inset 0 0 0 1px var(--land), 0 3px 0 rgba(119,73,48,.18); }
.land-swatch { flex: none; width: 43px; height: 34px; display: grid; place-items: center; }
.land-swatch img { width: 100%; height: 100%; object-fit: contain; filter: drop-shadow(0 3px 2px rgba(74,44,25,.16)); }
.land-copy { width: 100%; min-width: 0; overflow: hidden; text-align: center; }
.land-copy strong, .land-copy small { display: block; white-space: nowrap; }
.land-copy strong { font-size: 11px; line-height: 1.2; }
.reduction-row { display: flex; align-items: center; justify-content: space-between; margin: 14px 2px 0; }
.reduction-row label { color: var(--muted); font-size: 12px; }
.reduction-row div { display: flex; align-items: center; border-bottom: 1px solid var(--line); }
.reduction-row input { width: 44px; padding: 4px; text-align: right; border: 0; outline: none; background: transparent; font: 600 13px "Noto Sans SC", sans-serif; font-variant-numeric: tabular-nums; }
.reduction-row span { color: var(--muted); font-size: 12px; }

.summary-card { display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 2px 16px; margin-top: 20px; padding: 15px 17px; background: linear-gradient(115deg, #eee5e1, #fffaf7); border: 2px solid #b9a19a; border-radius: 15px; box-shadow: inset 0 1px 0 rgba(255,255,255,.75); }
.summary-card > span { color: var(--green); font-size: 11px; font-weight: 600; }
.summary-card strong { grid-row: span 2; font: 600 21px "Noto Sans SC", sans-serif; color: var(--green-dark); font-variant-numeric: tabular-nums; }
.summary-card small { color: #9a7657; font-size: 10px; }
.name-row { display: grid; grid-template-columns: 1fr auto; gap: 10px; margin-top: 12px; }
.name-row input { min-width: 0; padding: 0 15px; border: 2px solid #c8b4ae; border-radius: 13px; background: #faf5f1; font-size: 13px; outline: none; }
.name-row input:focus { border-color: #a46c69; }
.name-history { display: flex; align-items: flex-start; gap: 8px; margin-top: 9px; }
.name-history-label { flex: none; padding-top: 5px; color: #b09375; font-size: 10px; }
.name-history-list { display: flex; flex-wrap: wrap; gap: 6px; min-width: 0; }
.name-history-item { max-width: 145px; overflow: hidden; padding: 5px 10px; color: #765057; background: #f6ebea; border: 1px solid #e0c7c4; border-radius: 999px; cursor: pointer; text-overflow: ellipsis; white-space: nowrap; font-size: 11px; transition: .2s; }
.name-history-item:hover { background: #fffaf0; border-color: #d6a466; transform: translateY(-1px); }
.start-button { display: flex; align-items: center; gap: 22px; padding: 15px 18px 15px 22px; color: #fffaf7; background: linear-gradient(180deg, #b47b7b, #8f5f67); border: 2px solid #60444b; border-radius: 13px; font-weight: 600; cursor: pointer; transition: .2s; box-shadow: 0 4px 0 #563e45; }
.start-button:hover:not(:disabled) { background: linear-gradient(180deg, #c18b8c, #9e6871); transform: translateY(-1px); box-shadow: 0 5px 0 #563e45; }
.start-button:disabled { opacity: .35; cursor: not-allowed; }
.start-button svg { width: 17px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

.active-section { min-height: 420px; padding: 25px; background: linear-gradient(145deg, #fffdf9, #eee9e5); border: 2px solid #786864; border-radius: 22px; box-shadow: 0 5px 0 #baaaa2, inset 0 2px 0 rgba(255,255,255,.72); }
.count-pill { padding: 6px 11px; color: #76555a; background: linear-gradient(180deg, #eee2e1, #d9bfc0); border: 1px solid #b99396; border-radius: 20px; font-size: 10px; box-shadow: 0 2px 0 #bba1a0; }
.active-meta { display: flex; align-items: center; gap: 10px; }
.active-hint { color: #b19880; font-size: 10px; }
.timer-list { display: grid; gap: 10px; margin-top: 18px; }
.timer-item { position: relative; display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 12px; padding: 16px 48px 18px 15px; background: linear-gradient(145deg, #fffdf8, #f5eadf); border: 2px solid #8b6556; border-radius: 17px; overflow: hidden; box-shadow: 0 4px 0 #c4a795, inset 0 1px 0 rgba(255,255,255,.85); transition: border-color .2s, box-shadow .2s, transform .2s; }
.timer-item:hover { border-color: #dfbf96; box-shadow: 0 10px 24px rgba(109,62,28,.09); transform: translateY(-1px); }
.timer-item.enter { animation: card-in .38s both; }
.timer-item::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 10px; background: #ead6a8; }
.timer-progress { position: absolute; left: 0; bottom: 0; width: var(--progress); height: 10px; background: var(--land, #78a84f); transition: width 1s linear; z-index: 1; overflow: hidden; box-shadow: 0 -2px 8px rgba(107,70,42,.18); }
.timer-progress::after { content: ""; position: absolute; inset: 0; width: 55%; background: linear-gradient(90deg, transparent, rgba(255,255,255,.42), transparent); animation: progress-glow 2.2s linear infinite; }
.timer-land { width: 60px; height: 50px; display: grid; place-items: center; overflow: hidden; background: var(--land-bg); border: 2px solid rgba(120,83,46,.18); border-radius: 14px; }
.timer-land img { width: 100%; height: 100%; object-fit: contain; filter: drop-shadow(0 3px 2px rgba(74,44,25,.16)); }
.timer-info { min-width: 0; }
.timer-title-row { display: flex; align-items: center; gap: 7px; min-width: 0; }
.timer-info strong { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 13px; }
.timer-info small { color: var(--muted); font-size: 10px; }
.timer-status { flex: none; padding: 2px 7px; border-radius: 20px; font-size: 9px; font-weight: 600; letter-spacing: .04em; }
.timer-status.hour-mode { color: #765c50; background: #eee9e3; }
.timer-status.minute-mode { color: #b94229; background: #ffe3d9; }
.countdown { min-width: 164px; display: grid; grid-template-columns: auto 12px auto; align-items: baseline; justify-content: end; gap: 4px; padding: 8px 10px; color: var(--green-dark); background: #faf2e9; border: 2px solid #c79b80; border-radius: 14px; font-variant-numeric: tabular-nums; white-space: nowrap; box-shadow: inset 0 1px 0 rgba(255,255,255,.76); }
.time-unit { display: inline-flex; align-items: baseline; justify-content: flex-end; gap: 4px; }
.time-unit b { font-size: 26px; line-height: 1; letter-spacing: -.04em; }
.time-unit small { color: #916d50; font-size: 11px; font-weight: 600; }
.time-divider { align-self: center; color: #d3a16e; font-size: 15px; font-style: normal; font-weight: 700; }
.countdown.hour-mode .time-unit b { color: #765c50; }
.countdown.hour-mode { background: #f2eee9; border-color: #d3c5bd; }
.countdown.minute-mode .time-unit b { color: #aa5f67; }
.countdown.minute-mode { background: #f5e9e9; border-color: #dcbabd; }
.countdown.minute-mode .time-unit small { color: #94636a; }
.countdown.minute-mode .time-divider { color: #c1848a; }
.timer-item.soon { border-color: #c98c86; animation: ready-pulse 1.8s ease-in-out infinite; }
.timer-actions { position: absolute; inset: 0; pointer-events: none; }
.delete-button, .edit-button { width: 27px; height: 27px; display: grid; place-items: center; color: #8c654f; background: #fff4d6; border: 2px solid #b77b52; border-radius: 9px; cursor: pointer; font-size: 16px; box-shadow: 0 2px 0 #d1a06d; }
.delete-button, .edit-button { pointer-events: auto; }
.edit-button { position: absolute; top: 8px; right: 8px; font-size: 12px; }
.delete-button { position: absolute; right: 8px; bottom: 12px; }
.delete-button:hover { color: #d66f5a; background: #fff0ec; }
.edit-button:hover { color: var(--green); background: #f6e7e6; }
.empty-state { padding: 32px 0 30px; text-align: center; color: var(--muted); }
.empty-illustration { position: relative; width: 82px; height: 64px; margin: 0 auto 14px; }
.soil { position: absolute; left: 6px; right: 6px; bottom: 8px; height: 15px; background: #d9c8a5; border-radius: 50%; }
.sprout { position: relative; z-index: 1; display: block; color: var(--green); font-size: 55px; line-height: 1; transform: rotate(180deg); }
.empty-state strong { display: block; color: #72533e; font-size: 14px; }
.empty-state p { margin: 6px 0 0; font-size: 11px; }
.reminder-log-list { display: grid; gap: 10px; max-height: min(58vh, 430px); overflow: auto; margin: 0 24px; padding: 4px 3px 5px 2px; }
.reminder-log-item { display: grid; grid-template-columns: 30px 1fr auto; align-items: center; gap: 11px; padding: 12px 14px; background: linear-gradient(180deg, #fffdfb, #f8f5f3); border: 1px solid #ddd2cf; border-radius: 14px; box-shadow: 0 4px 12px rgba(76,60,56,.07); }
.log-check { width: 28px; height: 28px; display: grid; place-items: center; color: #8f5f67; background: #f4e7e5; border: 1px solid #ddc0bc; border-radius: 50%; font-size: 13px; font-weight: 700; }
.log-item-copy { min-width: 0; }
.reminder-log-item strong { display: block; overflow: hidden; color: #60402d; text-overflow: ellipsis; white-space: nowrap; font-size: 12px; line-height: 1.4; }
.reminder-log-item small { display: block; margin-top: 3px; color: #a18e89; font-size: 10px; white-space: nowrap; }
.reminder-log-item time { color: #967f7a; font-size: 10px; white-space: nowrap; font-variant-numeric: tabular-nums; }
.log-empty { margin: 0 24px 24px; padding: 48px 18px 44px; color: var(--muted); text-align: center; background: rgba(250,247,244,.82); border: 1px dashed #d7c6c2; border-radius: 15px; }
.log-empty::before { content: "◷"; display: block; margin-bottom: 10px; color: #b47b7b; font-size: 28px; }
.log-empty strong { display: block; color: #72533e; font-size: 14px; }
.log-empty p { max-width: 270px; margin: 7px auto 0; font-size: 11px; line-height: 1.7; }
footer { padding: 26px 0 calc(30px + env(safe-area-inset-bottom)); text-align: center; color: #ad9580; border-top: 1px solid var(--line); font-size: 10px; }
.toast { position: fixed; left: 50%; bottom: 24px; z-index: 10; max-width: calc(100% - 40px); padding: 11px 18px; color: #fffaf8; background: rgba(74,64,69,.95); border: 1px solid rgba(255,255,255,.2); border-radius: 30px; font-size: 12px; opacity: 0; transform: translate(-50%, 15px); pointer-events: none; transition: .25s; box-shadow: 0 8px 30px rgba(55,45,43,.2); }
.toast.show { opacity: 1; transform: translate(-50%, 0); }

.edit-dialog, .guide-dialog, .log-dialog { width: min(420px, calc(100% - 32px)); padding: 0; color: var(--ink); background: #fffaf7; border: 2px solid #725b58; border-radius: 22px; box-shadow: 0 7px 0 #b39a92, 0 24px 80px rgba(81,54,48,.2); }
.guide-dialog { width: min(500px, calc(100% - 32px)); }
.log-dialog { width: min(560px, calc(100% - 28px)); max-height: min(760px, calc(100vh - 32px)); overflow: hidden; background: #f1eeed; border-color: #6f625f; box-shadow: 0 8px 0 #b7aaa6, 0 24px 80px rgba(55,45,43,.22); }
.edit-dialog::backdrop, .guide-dialog::backdrop, .log-dialog::backdrop { background: rgba(55,45,43,.36); backdrop-filter: blur(3px); }
.edit-dialog form, .guide-dialog form { padding: 24px; }
.log-dialog form { padding: 0 0 1px; }
.dialog-header { display: flex; align-items: flex-start; justify-content: space-between; margin-bottom: 22px; }
.dialog-header h2 { margin: 3px 0 0; font-size: 21px; }
.dialog-header p { margin: 5px 0 0; color: var(--muted); font-size: 11px; }
.dialog-close { width: 32px; height: 32px; display: grid; place-items: center; padding: 0; color: #765057; background: #f4e9e8; border: 2px solid #b99396; border-radius: 11px; cursor: pointer; font-size: 20px; line-height: 1; box-shadow: 0 2px 0 #d0b6b2; }
.log-header { margin: 0; padding: 18px 22px 14px; background: linear-gradient(135deg, #e7e1e2, #f8f5f3 68%); border-bottom: 2px solid #bdb0ae; }
.log-header h2 { margin-top: 2px; font-size: 20px; }
.log-header .step-number { color: #a67968; }
.log-header .dialog-close { background: rgba(255,255,255,.66); border: 1px solid #dbc4ae; }
.log-summary { display: flex; align-items: center; gap: 7px; margin: 13px 24px 8px; padding: 9px 11px; color: #897b78; background: #e9e4e3; border: 1px solid #d5c9c6; border-radius: 11px; font-size: 10px; }
.log-summary-dot { width: 6px; height: 6px; background: #b47b7b; border-radius: 50%; box-shadow: 0 0 0 4px #f5eceb; }
.log-summary b { margin-left: auto; color: #94666a; font-weight: 600; }
.dialog-field { display: block; margin-top: 16px; }
.dialog-field > span { display: block; margin-bottom: 7px; color: var(--muted); font-size: 11px; }
.dialog-field > input { width: 100%; padding: 12px 13px; border: 1px solid var(--line); border-radius: 10px; outline: none; }
.edit-duration { display: grid; grid-template-columns: 1fr 1fr; gap: 9px; }
.edit-duration label { display: flex; align-items: center; border: 1px solid var(--line); border-radius: 10px; }
.edit-duration input { width: 100%; min-width: 0; padding: 12px; border: 0; background: transparent; outline: none; }
.edit-duration span { padding-right: 12px; color: var(--muted); font-size: 11px; white-space: nowrap; }
.dialog-actions { display: flex; justify-content: flex-end; gap: 8px; margin-top: 24px; }
.secondary-button, .save-button { padding: 10px 17px; border-radius: 9px; cursor: pointer; }
.secondary-button { color: var(--muted); background: #f6efeb; border: 2px solid #bda9a2; box-shadow: 0 2px 0 #d5c4bd; }
.save-button { color: #fffaf7; background: linear-gradient(180deg, #b47b7b, #8f5f67); border: 2px solid #60444b; box-shadow: 0 3px 0 #563e45; }
.guide-steps { display: grid; gap: 16px; margin: 0; padding: 0; list-style: none; }
.guide-steps li { display: grid; grid-template-columns: 28px 1fr; gap: 11px; align-items: start; }
.guide-steps li > span { width: 28px; height: 28px; display: grid; place-items: center; color: white; background: linear-gradient(145deg, #ba8987, var(--green-dark)); border-radius: 9px 9px 9px 3px; font-size: 12px; font-weight: 700; }
.guide-steps strong { font-size: 13px; }
.guide-steps p, .guide-note p { margin: 3px 0 0; color: var(--muted); font-size: 11px; line-height: 1.65; }
.guide-rules { display: grid; gap: 7px; margin-top: 20px; padding: 14px 16px; background: #f3ebe3; border: 2px solid #c9ab91; border-radius: 15px; }
.guide-rules > strong, .guide-note strong { margin-bottom: 3px; font-size: 12px; }
.guide-rules div { display: flex; justify-content: space-between; color: var(--muted); font-size: 11px; }
.guide-rules b { color: var(--green-dark); font-weight: 600; }
.guide-note { margin-top: 13px; padding-left: 12px; border-left: 3px solid #b47b7b; }
.guide-confirm { width: 100%; margin-top: 20px; padding: 12px 16px; color: white; background: linear-gradient(180deg, #b47b7b, #8f5f67); border: 2px solid #60444b; border-radius: 13px; font-weight: 600; cursor: pointer; box-shadow: 0 3px 0 #563e45; }

@keyframes harvest-float {
  0%, 100% { translate: 0 0; rotate: -3deg; opacity: .45; }
  50% { translate: 0 -14px; rotate: 4deg; opacity: .75; }
}
@keyframes card-in {
  from { opacity: 0; transform: translateY(8px) scale(.985); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}
@keyframes progress-glow {
  from { transform: translateX(-110%); }
  to { transform: translateX(290%); }
}
@keyframes ready-pulse {
  50% { box-shadow: 0 8px 28px rgba(180,123,123,.2); transform: translateY(-1px); }
}

@media (max-width: 920px) {
  .page-shell { width: min(100%, 720px); }
  main { grid-template-columns: 1fr; }
  .hero, .timer-panel, .active-section { grid-column: 1; }
  .active-section { margin-top: 20px; }
}

@media (max-width: 620px) {
  .page-shell { padding: 0 16px; }
  .topbar { height: 66px; }
  .hero { display: block; min-height: 160px; padding: 30px 20px 22px; }
  .hero-copy { max-width: 100%; }
  .hero h1 { margin-top: 9px; font-size: 30px; }
  .hero p { margin-top: 9px; }
  .log-button { width: 38px; padding: 0; justify-content: center; }
  .log-button-label { display: none; }
  .push-button { width: 38px; padding: 0; justify-content: center; }
  .push-button-label { display: none; }
  .timer-panel { padding: 24px 18px; border-radius: 17px; }
  .duration-grid { grid-template-columns: repeat(4, 1fr); }
  .duration-card { height: 74px; }
  .land-options { grid-template-columns: repeat(2, 1fr); }
  .land-option { padding: 12px; }
  .summary-card { grid-template-columns: 1fr; }
  .summary-card strong { grid-row: auto; margin: 4px 0; font-size: 21px; }
  .name-row { grid-template-columns: 1fr; }
  .name-row input { height: 47px; }
  .start-button { justify-content: space-between; }
  .active-section { min-height: 340px; padding: 20px 16px; }
  .active-hint { display: none; }
  .timer-item { grid-template-columns: auto 1fr; gap: 10px; padding: 17px 46px 20px 12px; }
  .timer-info { grid-column: 2; }
  .countdown { grid-column: 2; grid-row: 2; min-width: 0; justify-content: start; }
  .time-unit b { font-size: 23px; }
  .timer-land { grid-row: 1 / span 2; }
  .log-dialog { width: min(520px, calc(100% - 24px)); }
  .log-header { padding: 20px 18px 16px; }
  .log-summary { margin-right: 20px; margin-left: 20px; }
  .reminder-log-list { margin-right: 18px; margin-left: 18px; }
  .log-empty { margin-right: 18px; margin-left: 18px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; }
}

/* Farm-game palette: warm soil, fresh leaves and harvest accents. */
.topbar { border-bottom-color: rgba(119,88,60,.22); }
.icon-button, .text-button { color: #527b43; background: #f1f2df; border-color: #7f9a61; box-shadow: 0 3px 0 #c2cda6; }
.icon-button:hover, .text-button:hover { background: #fbf8e9; border-color: #668b4d; box-shadow: 0 4px 0 #c2cda6; }
.help-button { color: #527b43; }
.push-button { color: #8d6240; }
.push-button.active { color: #537d45; background: #eaf0d8; border-color: #b8ca94; }
.hero { background: #fffdf7; border-color: #80644f; box-shadow: 0 5px 0 #cbb79a, inset 0 2px 0 rgba(255,255,255,.8); }
.hero h1 em { color: #6d9c4b; }
.hero h1 em::after { background-image: url("data:image/svg+xml,%3Csvg width='200' height='9' viewBox='0 0 200 9' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 7C44 2 138 1 199 4' stroke='%23c4d58f' stroke-width='5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E"); }
.timer-panel, .active-section { background: linear-gradient(145deg, #fffdf7, #f1eadb); border-color: #80644f; box-shadow: 0 5px 0 #c7b498, inset 0 2px 0 rgba(255,255,255,.72); }
.time-mode-tabs { background: #e7ead8; border-color: #9bab7c; }
.time-mode-tabs button.selected { background: linear-gradient(180deg, #86b95a, #5e984d); box-shadow: 0 3px 0 #477a3d; }
.duration-card { background: #fbf7eb; border-color: #e3d2ae; box-shadow: 0 3px 0 #cbb99d; }
.duration-card.selected { color: #65442d; background: linear-gradient(145deg, #f7df9f, #e7b95f); border-color: #b37a38; box-shadow: 0 4px 0 #8c5a2f, inset 0 1px 0 rgba(255,255,255,.58); }
.duration-card.selected span { color: #805a37; }
.custom-time label, .name-row input { border-color: #d2bc91; background: #fff9e9; }
.name-row input:focus { border-color: #7ea557; }
.name-history-item { color: #5f7e45; background: #eef2dc; border-color: #cbd9ab; }
.summary-card { background: linear-gradient(115deg, #efe5cf, #fff9e9); border-color: #c6aa7e; }
.start-button { color: #fffaf0; background: linear-gradient(180deg, #b67a4d, #8e593b); border-color: #70442f; box-shadow: 0 4px 0 #623d2d; }
.start-button:hover:not(:disabled) { background: linear-gradient(180deg, #c78a57, #9d6544); box-shadow: 0 5px 0 #623d2d; }
.count-pill { color: #5b7139; background: linear-gradient(180deg, #e7efc8, #c7d99b); border-color: #a9bf78; box-shadow: 0 2px 0 #b1c38d; }
.timer-item { background: linear-gradient(145deg, #fffefa, #f4eddf); border-color: #927153; box-shadow: 0 4px 0 #cbb99d, inset 0 1px 0 rgba(255,255,255,.85); }
.timer-progress { box-shadow: 0 -2px 8px rgba(107,70,42,.18); }
.timer-status.hour-mode { color: #637d3f; background: #e9f0d2; }
.timer-status.minute-mode { color: #b75035; background: #fbe2d4; }
.countdown.hour-mode { color: #6e5a3b; background: #f4eedf; border-color: #ddcba8; }
.countdown.hour-mode .time-unit b { color: #87652d; }
.countdown.minute-mode { background: #fff0e5; border-color: #edc4a8; }
.countdown.minute-mode .time-unit b { color: #c65738; }
.countdown.minute-mode .time-unit small { color: #a7654b; }
.countdown.minute-mode .time-divider { color: #d17955; }
.timer-item.soon { border-color: #d69b4e; }
.delete-button, .edit-button { color: #806044; background: #fff6df; border-color: #bd9361; box-shadow: 0 2px 0 #d7b78a; }
.delete-button:hover { color: #bd5b3f; background: #fff0e8; }
.edit-button:hover { color: #5f9146; background: #edf3dc; }
.log-check { color: #5f9146; background: #edf3dc; border-color: #c4d4a5; }
.log-dialog { background: #f6f1e6; border-color: #80644f; box-shadow: 0 8px 0 #c7b498, 0 24px 80px rgba(81,54,31,.22); }
.log-header { background: linear-gradient(135deg, #eee5d2, #fff9e9 68%); border-bottom-color: #d2b47f; }
.log-header .step-number { color: #8f704d; }
.log-summary { color: #7d775d; background: #edf1dc; border-color: #cbd7ae; }
.log-summary-dot { background: #7faa57; box-shadow: 0 0 0 4px #e5edd0; }
.log-summary b { color: #5e8548; }
.reminder-log-item { background: linear-gradient(180deg, #fffdf8, #f7f0e2); border-color: #e3d2b2; box-shadow: 0 4px 12px rgba(105,75,39,.07); }
.reminder-log-item small, .reminder-log-item time { color: #a08568; }
.log-empty { background: rgba(255,250,237,.86); border-color: #d8c39c; }
.log-empty::before { color: #79a452; }
.dialog-close { color: #76533d; background: #fff4d9; border-color: #bf9564; box-shadow: 0 2px 0 #d8b989; }
.secondary-button { background: #fff8e8; border-color: #c7a675; box-shadow: 0 2px 0 #dfc49a; }
.save-button, .guide-confirm { background: linear-gradient(180deg, #86b95a, #5e984d); border-color: #477a3d; box-shadow: 0 3px 0 #3f6d37; }
.guide-steps li > span { background: linear-gradient(145deg, #9bc566, #5e984d); }
.guide-rules { background: #edf1dc; border-color: #c5d49f; }
.guide-note { border-left-color: #83ad58; }
.toast { color: #fffaf0; background: rgba(91,67,46,.96); border-color: rgba(255,247,220,.24); box-shadow: 0 8px 30px rgba(81,54,31,.2); }
