:root {
  --paper: #e4efe6;
  --card: #f7fbf6;
  --ink: #1a2a22;
  --muted: #5c6f64;
  --line: #c5d5c9;
  --pine: #1f6b45;
  --ice: #d5e7ee;
  --slate: #6f93a3;
  --brass: #d7b15e;
  --clay: #e07a45;
  --ember: #e24b32;
  --found: #1f6b45;
}
* { box-sizing: border-box; }
html, body { margin: 0; background: var(--paper); color: var(--ink); }
body { font-family: "Iowan Old Style", Georgia, Palatino, serif; }
button, input { font: inherit; color: inherit; }
button { cursor: pointer; }
button:focus-visible, input:focus-visible { outline: 2px solid var(--pine); outline-offset: 2px; }
#app { min-height: 100%; }
.screen { max-width: 560px; margin: 0 auto; padding: 12px 12px 20px; display: flex; flex-direction: column; gap: 10px; }
.top { display: flex; justify-content: space-between; gap: 12px; align-items: center; }
.mark { margin: 0; font-size: 28px; letter-spacing: 0.08em; text-transform: uppercase; line-height: 1; }
.sub { margin: 4px 0 0; color: var(--muted); font-family: system-ui, sans-serif; font-size: 13px; }
.rose { width: 54px; height: 54px; flex: none; }
.legal, .credit { margin: 0; font-family: system-ui, sans-serif; font-size: 12px; line-height: 1.4; }
.legal { background: #f4fff6; border-left: 3px solid var(--pine); padding: 8px 10px; }
.credit { color: var(--muted); }
.solved { margin: 0; font-family: system-ui, sans-serif; font-size: 12px; color: var(--muted); }
.solved b { color: var(--ink); }
.ask { position: sticky; top: 0; z-index: 2; background: var(--paper); padding-bottom: 4px; display: flex; flex-direction: column; gap: 6px; }
label { font-family: system-ui, sans-serif; font-size: 13px; font-weight: 700; }
.field { display: flex; gap: 8px; }
input {
  flex: 1; min-width: 0; font-family: system-ui, sans-serif; font-size: 16px;
  border: 1px solid var(--line); background: var(--card); border-radius: 10px; padding: 10px 12px;
}
.go, .again {
  border: 0; border-radius: 999px; background: var(--ink); color: var(--paper);
  font-family: system-ui, sans-serif; font-weight: 700; padding: 10px 14px; min-height: 44px;
}
.suggest { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 4px; }
.suggest button {
  width: 100%; text-align: left; background: var(--card); border: 1px solid var(--line);
  border-radius: 8px; padding: 8px 10px; font-family: system-ui, sans-serif; font-size: 16px; min-height: 40px;
}
.suggest button.on { border-color: var(--pine); background: #e7f6ec; }
.msg { margin: 0; min-height: 1.3em; font-family: system-ui, sans-serif; font-size: 14px; }
.msg.bad { color: #8d2e24; }
.log { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.log li {
  display: grid; grid-template-columns: 14px minmax(0, 1fr) auto; gap: 8px; align-items: center;
  background: var(--card); border: 1px solid var(--line); border-radius: 10px; padding: 8px 10px;
}
.swatch { width: 14px; height: 100%; min-height: 28px; border-radius: 99px; display: block; }
.swatch.cold { background: var(--ice); box-shadow: inset 0 0 0 1px #b7cdd6; }
.swatch.cool { background: var(--slate); }
.swatch.mild { background: var(--brass); }
.swatch.warm { background: var(--clay); }
.swatch.hot { background: var(--ember); }
.swatch.found { background: var(--found); }
.name { font-weight: 700; }
.cmp { display: block; font-family: system-ui, sans-serif; font-size: 12px; color: var(--muted); }
.km { font-family: system-ui, sans-serif; font-size: 13px; font-variant-numeric: tabular-nums; text-align: right; white-space: nowrap; }
.bearing { font-weight: 700; }
.again { align-self: flex-start; }
@media (max-width: 380px) {
  .mark { font-size: 24px; }
  .km { white-space: normal; }
}
