/* Nad wodą: duże przyciski, wysoki kontrast w słońcu i po zmroku. */
:root {
  --bg: #f3f6f4;
  --surface: #ffffff;
  --fg: #12201f;
  --muted: #5b6b68;
  --line: #d3ddd9;
  --river: #0f5a57;
  --river-ink: #ffffff;
  --lure: #e8742a;
  --lure-ink: #1a0c02;
  --ok: #2f8a3c;
  --warn: #b7791f;
  --danger: #c0392b;
  --radius: 14px;
  --font: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0b1615;
    --surface: #132422;
    --fg: #e6efec;
    --muted: #93a7a2;
    --line: #24403c;
    --river: #1d8a84;
    --river-ink: #ffffff;
    --lure: #f08a45;
    --lure-ink: #1a0c02;
    --ok: #4cc160;
    --warn: #e0a53a;
    --danger: #ef6b5b;
    color-scheme: dark;
  }
}
* { box-sizing: border-box; }
html, body { margin: 0; }
body {
  background: var(--bg); color: var(--fg); font-family: var(--font); font-size: 17px;
  padding: env(safe-area-inset-top, 0px) max(14px, env(safe-area-inset-right, 0px)) calc(24px + env(safe-area-inset-bottom, 0px)) max(14px, env(safe-area-inset-left, 0px));
  max-width: 640px; margin-inline: auto;
}
.top { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px; padding-block: 12px; }
.top h1 { min-width: 0; }
.top h1 { font-size: 1.15rem; margin: 0; letter-spacing: .01em; }
.status { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin-left: auto; }
.pill { font-size: .75rem; padding: 4px 8px; border-radius: 99px; background: var(--line); color: var(--fg); white-space: nowrap; font-variant-numeric: tabular-nums; }
.pill-ok { background: var(--ok); color: #fff; }
.pill-warn { background: var(--warn); color: #1a1200; }
.pill-bad { background: var(--danger); color: #fff; }
.icon-btn { font-size: 1.3rem; background: none; border: 0; color: var(--fg); padding: 6px; cursor: pointer; }
.screen { display: flex; flex-direction: column; gap: 14px; }
.big-actions { display: grid; grid-template-columns: 1fr; gap: 12px; }
.big { border: 0; border-radius: var(--radius); padding: 26px 20px; text-align: left; display: flex; flex-direction: column; gap: 4px; cursor: pointer; }
.big-title { font-size: 1.7rem; font-weight: 750; }
.big-sub { font-size: .95rem; opacity: .85; }
.big-fish { background: var(--lure); color: var(--lure-ink); }
.big-skunk { background: var(--river); color: var(--river-ink); }
.section-h { font-size: 1rem; margin: 8px 0 0; }
.muted { color: var(--muted); margin: 0; }
.small { font-size: .85rem; }
.recent { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.recent li { background: var(--surface); border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px; display: flex; justify-content: space-between; gap: 10px; align-items: center; }
.recent .what { font-weight: 600; }
.recent .when { color: var(--muted); font-size: .85rem; }
.form-head { display: flex; align-items: center; gap: 10px; }
.form-head h2 { margin: 0; font-size: 1.3rem; }
.link-btn { background: none; border: 0; color: var(--river); font-size: 1rem; padding: 6px 0; cursor: pointer; }
.block { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px; display: flex; flex-direction: column; gap: 8px; }
.grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.field { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.field.wide { grid-column: 1 / -1; }
.lbl { font-size: .8rem; color: var(--muted); text-transform: uppercase; letter-spacing: .05em; }
input, textarea { font: inherit; font-size: 1.05rem; color: var(--fg); background: var(--bg); border: 1px solid var(--line); border-radius: 10px; padding: 10px; width: 100%; min-width: 0; }
input:focus, textarea:focus, button:focus-visible { outline: 3px solid var(--lure); outline-offset: 1px; }
.photo-btn { display: flex; align-items: center; justify-content: center; min-height: 120px; border: 2px dashed var(--line); border-radius: 12px; cursor: pointer; font-weight: 600; color: var(--river); overflow: hidden; flex-direction: column; gap: 6px; padding: 6px; }
.photo-btn img { max-width: 100%; max-height: 260px; border-radius: 8px; }
.mic { display: flex; align-items: center; justify-content: center; gap: 12px; border: 0; border-radius: 99px; padding: 20px; font-size: 1.2rem; font-weight: 700; background: var(--river); color: var(--river-ink); cursor: pointer; }
.mic-dot { width: 16px; height: 16px; border-radius: 50%; background: var(--river-ink); opacity: .7; }
.mic[aria-pressed="true"] { background: var(--danger); }
.mic[aria-pressed="true"] .mic-dot { animation: pulse 1s infinite; opacity: 1; }
@keyframes pulse { 50% { transform: scale(1.5); opacity: .4; } }
@media (prefers-reduced-motion: reduce) { .mic[aria-pressed="true"] .mic-dot { animation: none; } }
.save { border: 0; border-radius: var(--radius); padding: 18px; font-size: 1.2rem; font-weight: 750; background: var(--lure); color: var(--lure-ink); cursor: pointer; }
.secondary { border: 1px solid var(--line); border-radius: var(--radius); padding: 14px; font-size: 1rem; background: var(--surface); color: var(--fg); cursor: pointer; }
.row { display: flex; gap: 10px; flex-wrap: wrap; }
.row > * { flex: 1 1 160px; }
.toast { position: fixed; left: 50%; transform: translateX(-50%); bottom: calc(20px + env(safe-area-inset-bottom, 0px)); background: var(--fg); color: var(--bg); padding: 12px 18px; border-radius: 12px; font-weight: 600; max-width: 90vw; z-index: 20; }
[hidden] { display: none !important; }
