/* "Поле" design system: warm linen, forest-night panels with contour lines, lime accent. */
:root {
  --forest: #142a1c;
  --forest-2: #1f3d29;
  --lime: #c8f169;
  --lime-ink: #1d3a12;
  --lime-soft: #eef8d6;
  --clay: #b8612f;
  --clay-soft: #f8e6da;
  --sky: #2f74c8;
  --sky-soft: #e3eefb;
  --sun: #d99a1e;
  --sun-soft: #fbefd3;
  --ink: #16201a;
  --muted: #6f7568;
  --line: #e7e1d4;
  --bg: #f3efe6;
  --card: #fffdf8;
  --danger: #b3261e;
  --radius: 22px;
  --tabbar-h: 74px;
  --safe-b: env(safe-area-inset-bottom, 0px);
  --shadow: 0 1px 2px rgba(48, 36, 12, .05), 0 10px 28px rgba(48, 36, 12, .07);
  --serif: ui-serif, "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, "Times New Roman", serif;
  --contours: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='320' height='220' viewBox='0 0 320 220'%3E%3Cg fill='none' stroke='%23c8f169' stroke-opacity='.13' stroke-width='1.2'%3E%3Cpath d='M-20 40c60-30 110 20 170 0s110-40 190-10'/%3E%3Cpath d='M-20 70c60-30 110 20 170 0s110-40 190-10'/%3E%3Cpath d='M-20 100c70-25 120 25 180 5s100-35 180-5'/%3E%3Cpath d='M-20 130c70-25 120 25 180 5s100-35 180-5'/%3E%3Cpath d='M-20 160c60-20 130 30 190 10s90-30 170 0'/%3E%3Cpath d='M-20 190c60-20 130 30 190 10s90-30 170 0'/%3E%3Cellipse cx='250' cy='60' rx='40' ry='18'/%3E%3Cellipse cx='250' cy='60' rx='22' ry='9'/%3E%3C/g%3E%3C/svg%3E");
  font-family: -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  color: var(--ink);
  background: var(--bg);
  -webkit-text-size-adjust: 100%;
}

* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body { margin: 0; height: 100%; background: var(--bg); }
body { overscroll-behavior-y: none; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
button:active { transform: scale(.98); }
svg[viewBox="0 0 24 24"] { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

#app { max-width: 560px; margin: 0 auto; min-height: 100%; position: relative; }
#view { padding: 0 16px calc(var(--tabbar-h) + var(--safe-b) + 28px); min-height: 100dvh; }

/* ---------- top bar ---------- */
.topbar { position: sticky; top: 0; z-index: 5; display: flex; align-items: center; gap: 12px; padding: 16px 0 12px; background: linear-gradient(var(--bg) 75%, rgba(243, 239, 230, 0)); }
.topbar h1 { font-family: var(--serif); font-size: 28px; font-weight: 700; margin: 0; flex: 1; letter-spacing: -.01em; }
.icon-btn { width: 44px; height: 44px; border-radius: 50%; border: 0; background: var(--card); display: grid; place-items: center; box-shadow: var(--shadow); color: var(--forest); }
.icon-btn svg { width: 20px; height: 20px; }

/* ---------- floating tab capsule ---------- */
.tabbar { position: fixed; left: 50%; transform: translateX(-50%); bottom: calc(10px + var(--safe-b)); width: calc(100% - 24px); max-width: 536px; height: 64px; display: grid; grid-template-columns: repeat(5, 1fr); align-items: center; background: var(--forest); background-image: var(--contours); background-size: 320px; border-radius: 32px; box-shadow: 0 12px 30px rgba(20, 42, 28, .35); z-index: 20; padding: 0 6px; }
.tabbar button { border: 0; background: none; color: #a9bba9; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; font-size: 10.5px; letter-spacing: .01em; height: 52px; border-radius: 26px; }
.tabbar button svg { width: 22px; height: 22px; }
.tabbar button.active { color: var(--lime); }
.tabbar button.active:not(.tab-ai)::after { content: ""; width: 5px; height: 5px; border-radius: 50%; background: var(--lime); margin-top: 1px; }
.tabbar button.active:not(.tab-ai) span { display: none; }
.tabbar .tab-ai { position: relative; top: -16px; width: 64px; height: 64px; justify-self: center; border-radius: 50%; background: var(--lime); color: var(--lime-ink); box-shadow: 0 0 0 6px var(--bg), 0 10px 22px rgba(120, 170, 30, .45); font-weight: 700; }
.tabbar .tab-ai svg { width: 26px; height: 26px; }
.tabbar .tab-ai span { position: absolute; bottom: -19px; color: #a9bba9; font-weight: 500; }
.tabbar .tab-ai.active span { color: var(--lime); }

/* ---------- surfaces ---------- */
.card { background: var(--card); border: 0; border-radius: var(--radius); padding: 18px; margin-bottom: 14px; box-shadow: var(--shadow); }
.hero { position: relative; overflow: hidden; background: var(--forest); background-image: var(--contours), radial-gradient(circle at 90% 0%, #2c5a3a 0%, var(--forest) 60%); background-size: 320px, auto; color: #f1f5ea; padding: 22px; }
.hero .avatar { width: 54px; height: 54px; border-radius: 18px; background: var(--lime); color: var(--lime-ink); display: grid; place-items: center; font-family: var(--serif); font-weight: 700; font-size: 28px; margin-bottom: 14px; transform: rotate(-4deg); }
.hero h2 { font-family: var(--serif); margin: 0 0 8px; font-size: 26px; line-height: 1.15; }
.hero p { margin: 0; color: #c7d3c4; line-height: 1.5; font-size: 15px; }
.hero .btn { margin-top: 18px; background: var(--lime); color: var(--lime-ink); border-radius: 999px; padding: 13px 20px; }

.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-bottom: 14px; }
.stat { background: var(--card); border-radius: 18px; padding: 14px 12px; box-shadow: var(--shadow); }
.stat b { display: block; font-family: var(--serif); font-size: 24px; color: var(--forest); line-height: 1.1; }
.stat span { font-size: 11.5px; color: var(--muted); }

.section-title { display: flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 700; margin: 22px 2px 10px; color: var(--ink); letter-spacing: .02em; }
.section-title::before { content: ""; width: 8px; height: 8px; border-radius: 3px; background: var(--lime); box-shadow: 0 0 0 3px var(--lime-soft); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { border: 1.5px solid var(--line); background: var(--card); border-radius: 16px; padding: 10px 14px; font-size: 14px; text-align: left; line-height: 1.35; }
.chip:active { border-color: var(--lime); background: var(--lime-soft); }
.tag { display: inline-block; font-size: 12px; padding: 4px 9px; border-radius: 999px; background: var(--lime-soft); color: var(--lime-ink); margin: 0 6px 6px 0; font-weight: 500; }
.tag.warn { background: var(--clay-soft); color: #8a3d14; }
.tag.amber { background: var(--sun-soft); color: #7a5300; }
.badge { font-size: 11px; font-weight: 700; padding: 4px 9px; border-radius: 999px; background: var(--forest); color: var(--lime); }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; border: 0; border-radius: 16px; padding: 13px 18px; background: var(--forest); color: #f1f5ea; font-weight: 650; }
.btn svg { width: 20px; height: 20px; }
.btn.ghost { background: var(--bg); color: var(--forest); border: 0; }
.btn.block { width: 100%; }
.btn:disabled { opacity: .5; }

.actions { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.action { background: var(--card); border: 0; border-radius: 20px; padding: 14px 6px; display: flex; flex-direction: column; align-items: center; gap: 8px; font-size: 12.5px; font-weight: 600; text-align: center; box-shadow: var(--shadow); }
.action svg { width: 26px; height: 26px; color: var(--forest); background: var(--lime-soft); border-radius: 14px; padding: 9px; box-sizing: content-box; }
.actions.four { grid-template-columns: repeat(4, 1fr); margin-bottom: 14px; }
.actions.four .action { padding: 12px 4px; }

/* ---------- forms ---------- */
.field-input, select.field-input, textarea.field-input { width: 100%; border: 1.5px solid var(--line); border-radius: 16px; background: var(--card); padding: 12px 14px; outline: none; }
.field-input:focus { border-color: var(--forest-2); box-shadow: 0 0 0 4px var(--lime-soft); }
.form-row { display: grid; gap: 10px; margin-bottom: 10px; }
.hint { font-size: 13px; color: var(--muted); margin: 6px 2px 0; line-height: 1.45; }
.error { color: var(--danger); font-size: 14px; margin: 8px 2px; }

.search { position: relative; margin-bottom: 10px; }
.search svg { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); width: 20px; height: 20px; color: var(--muted); }
.search input { padding-left: 44px; border-radius: 999px; }
.filters { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-bottom: 12px; }
.filters select { padding: 10px 12px; font-size: 14px; border-radius: 14px; }
.filters select:first-child { grid-column: 1 / -1; }
.filters .btn, .filters input, .filters #v-year { grid-column: 1 / -1; }
.found { font-size: 13px; color: var(--muted); margin: 4px 4px 10px; }
.segmented { display: grid; grid-template-columns: 1fr 1fr; background: #e8e2d4; border-radius: 999px; padding: 4px; margin-bottom: 12px; }
.segmented button { border: 0; background: none; padding: 10px; border-radius: 999px; font-weight: 650; color: var(--muted); }
.segmented button.on { background: var(--forest); color: var(--lime); }

/* ---------- catalog ---------- */
.product { position: relative; }
.product .kind { font-size: 11.5px; font-weight: 700; color: var(--clay); text-transform: uppercase; letter-spacing: .06em; display: flex; justify-content: space-between; align-items: center; }
.product h3 { font-family: var(--serif); margin: 6px 0 2px; font-size: 22px; }
.product .form { color: var(--muted); font-size: 14px; margin-bottom: 8px; }
.kv { display: grid; grid-template-columns: 104px 1fr; gap: 6px 10px; font-size: 14px; border-top: 1px dashed var(--line); padding-top: 12px; margin-top: 10px; }
.kv dt { color: var(--muted); }
.kv dd { margin: 0; }
.more-link { display: block; text-align: right; color: var(--forest-2); font-weight: 650; font-size: 14px; margin-top: 10px; background: none; border: 0; width: 100%; }
.uses { width: 100%; border-collapse: collapse; font-size: 13.5px; }
.uses td { border-top: 1px solid var(--line); padding: 8px 4px; vertical-align: top; }
.use { border-top: 1px dashed var(--line); padding: 12px 0; font-size: 14px; }
.use b { display: block; margin-bottom: 2px; }
.use .rate { display: inline-block; margin-top: 4px; background: var(--lime-soft); color: var(--lime-ink); font-weight: 700; padding: 2px 8px; border-radius: 8px; }
.use small { color: var(--muted); display: block; margin-top: 4px; }

/* ---------- chat ---------- */
.chat { display: flex; flex-direction: column; min-height: calc(100dvh - var(--tabbar-h) - var(--safe-b) - 28px); }
.messages { flex: 1; padding-bottom: 8px; }
.day { text-align: center; font-size: 12px; color: var(--muted); margin: 6px 0 14px; }
.msg { margin: 0 0 16px; display: flex; flex-direction: column; }
.msg.user { align-items: flex-end; }
.bubble { max-width: 88%; padding: 13px 15px; border-radius: 20px; line-height: 1.5; font-size: 15px; overflow-wrap: anywhere; }
.msg.user .bubble { background: var(--forest); color: #eef4e8; border-bottom-right-radius: 6px; white-space: pre-wrap; }
.msg.bot .bubble { background: var(--card); border-bottom-left-radius: 6px; box-shadow: var(--shadow); }
.msg .meta { font-size: 11.5px; color: var(--muted); margin-top: 5px; display: flex; gap: 10px; align-items: center; }
.msg .meta button { border: 0; background: none; color: var(--muted); padding: 2px; }
.msg .meta svg { width: 16px; height: 16px; }
.bot-head { display: flex; align-items: center; gap: 8px; margin-bottom: 6px; font-size: 13px; color: var(--muted); font-weight: 600; }
.bot-head i { width: 30px; height: 30px; border-radius: 10px; background: var(--lime); color: var(--lime-ink); display: grid; place-items: center; font-style: normal; font-family: var(--serif); font-weight: 700; font-size: 16px; transform: rotate(-4deg); }
.bubble p { margin: 0 0 8px; }
.bubble p:last-child { margin-bottom: 0; }
.bubble ul, .bubble ol { margin: 4px 0 8px; padding-left: 20px; }
.bubble li { margin: 3px 0; }
.bubble li::marker { color: var(--clay); }
.bubble h4 { font-family: var(--serif); margin: 10px 0 6px; font-size: 17px; }
.bubble blockquote { margin: 8px 0; padding: 9px 12px; border-left: 3px solid var(--lime); background: var(--lime-soft); border-radius: 0 12px 12px 0; font-size: 14px; }
.bubble table { border-collapse: collapse; font-size: 13px; margin: 6px 0; display: block; overflow-x: auto; }
.bubble th, .bubble td { border: 1px solid var(--line); padding: 6px 8px; text-align: left; }
.bubble th { background: var(--lime-soft); }
.typing span { display: inline-block; width: 7px; height: 7px; margin-right: 4px; border-radius: 50%; background: var(--forest-2); animation: blink 1.2s infinite; }
.typing span:nth-child(2) { animation-delay: .2s; }
.typing span:nth-child(3) { animation-delay: .4s; }
.typing em { font-style: normal; color: var(--muted); font-size: 13px; margin-left: 6px; }
@keyframes blink { 0%, 80%, 100% { opacity: .25; } 40% { opacity: 1; } }

.composer { position: sticky; bottom: calc(var(--tabbar-h) + var(--safe-b) + 14px); background: var(--card); padding: 10px; border-radius: 24px; box-shadow: var(--shadow); margin-bottom: 8px; }
.composer .field-select { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--muted); margin: 0 4px 8px; }
.composer .field-select select { border: 0; border-radius: 999px; padding: 6px 12px; background: var(--lime-soft); color: var(--lime-ink); font-weight: 600; max-width: 70%; }
.composer .row { display: flex; gap: 8px; align-items: flex-end; }
.composer textarea { flex: 1; resize: none; max-height: 140px; min-height: 48px; border: 0; background: var(--bg); border-radius: 18px; }
.composer textarea:focus { box-shadow: 0 0 0 3px var(--lime-soft); }
.send { width: 48px; height: 48px; border-radius: 50%; border: 0; background: var(--lime); color: var(--lime-ink); display: grid; place-items: center; flex: none; }
.send:disabled { background: #dfe6cf; color: #93a07c; }
.send svg { width: 22px; height: 22px; }
.attach { width: 48px; height: 48px; border-radius: 50%; border: 0; background: var(--bg); color: var(--forest); display: grid; place-items: center; flex: none; }
.disclaimer { font-size: 11px; color: var(--muted); text-align: center; margin-top: 8px; }
.preview { display: flex; align-items: center; gap: 10px; background: var(--bg); border-radius: 16px; padding: 8px; margin-bottom: 8px; font-size: 13px; color: var(--muted); }
.preview[hidden] { display: none; }
.preview img { width: 56px; height: 56px; object-fit: cover; border-radius: 12px; flex: none; }
.preview span { flex: 1; }
.preview button { border: 0; background: none; color: var(--muted); padding: 4px; }
.bubble img.photo { display: block; max-width: 220px; width: 100%; border-radius: 14px; margin-bottom: 6px; }
.photo-stub { display: flex; align-items: center; gap: 6px; opacity: .85; margin-bottom: 4px; }
.photo-stub svg { width: 18px; height: 18px; }

/* ---------- fields & map ---------- */
.map-wrap { position: relative; isolation: isolate; margin-bottom: 14px; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
#map { height: 46dvh; min-height: 300px; background: #e6e2d6; }
.map-hint { position: absolute; left: 10px; bottom: 10px; z-index: 500; background: rgba(20, 42, 28, .88); color: #e7eee0; border-radius: 999px; padding: 7px 12px; font-size: 12px; pointer-events: none; }
.map-locate { position: absolute; right: 10px; bottom: 30px; z-index: 500; width: 42px; height: 42px; border-radius: 50%; border: 0; background: var(--lime); display: grid; place-items: center; color: var(--lime-ink); box-shadow: 0 4px 12px rgba(0, 0, 0, .2); }
.map-locate svg { width: 20px; height: 20px; }
.leaflet-container { font-family: inherit; }
.leaflet-bar a, .leaflet-control-layers { border-radius: 12px !important; }
.leaflet-popup-content-wrapper { border-radius: 18px; }
.leaflet-popup-content { margin: 12px 14px; font: 14px/1.45 -apple-system, "Segoe UI", Roboto, sans-serif; min-width: 200px; }
.leaflet-popup-content b.area { display: block; font-family: var(--serif); font-size: 24px; color: var(--forest); margin: 2px 0 4px; }
.leaflet-popup-content .btn { padding: 10px 12px; font-size: 14px; margin-top: 8px; width: 100%; color: #f1f5ea; }
.leaflet-popup-content .muted { color: var(--muted); font-size: 12.5px; }
.field-label { background: var(--forest); color: var(--lime); border: 0; border-radius: 999px; font-weight: 700; box-shadow: 0 2px 8px rgba(0, 0, 0, .25); padding: 4px 10px; }
.field-label::before { display: none; }
.field-card { position: relative; overflow: hidden; }
.field-card::after { content: ""; position: absolute; right: -40px; top: -40px; width: 160px; height: 120px; background: var(--contours); background-size: 320px; filter: hue-rotate(0deg) saturate(.6); opacity: .9; pointer-events: none; }
.field-card .kind { letter-spacing: .06em; }
.field-card h3 { font-family: var(--serif); margin: 2px 0 2px; font-size: 22px; }
.field-card .area { font-family: var(--serif); font-size: 34px; font-weight: 700; color: var(--forest); line-height: 1.1; margin-bottom: 6px; }
.field-card .row { display: flex; gap: 8px; margin-top: 14px; }
.field-card .row .btn:first-child { flex: 1; background: var(--lime); color: var(--lime-ink); }
.empty { text-align: center; color: var(--muted); padding: 28px 12px; }
.empty > svg { width: 42px; height: 42px; color: var(--forest-2); margin-bottom: 8px; }

.wx { margin-top: 12px; }
.wx-card .wx { margin-top: 8px; }
.wx-head { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; }
.wx-head b { font-family: var(--serif); font-size: 18px; }
.wx-head span { color: var(--muted); font-size: 13px; }
.wx-row { display: flex; gap: 6px; }
.wx-row > * { flex: 1 1 0; min-width: 0; }
.wx-row > .wx-soil { flex-grow: 1.3; }
.wx-soil, .wx-day { background: var(--bg); border-radius: 14px; padding: 9px 8px; display: flex; flex-direction: column; gap: 2px; font-size: 13px; }
.wx-soil { flex-direction: row; align-items: center; gap: 8px; background: var(--sun-soft); color: #8a5a00; }
.wx-soil div { display: flex; flex-direction: column; }
.wx-soil b { font-size: 17px; color: var(--ink); }
.wx small { color: var(--muted); font-size: 11.5px; }
.wx-sow { margin-top: 10px; display: flex; flex-direction: column; gap: 4px; }
.verdict { align-self: flex-start; font-size: 12.5px; font-weight: 700; padding: 5px 11px; border-radius: 999px; }
.verdict.ok { background: var(--lime-soft); color: var(--lime-ink); }
.verdict.warn { background: var(--sun-soft); color: #7a5300; }
.verdict.bad { background: var(--clay-soft); color: #8a3d14; }

/* moisture & relief */
.cond { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; width: 100%; border: 0; background: none; padding: 0; margin: 0 0 6px; text-align: left; }
.cond-tile { display: flex; align-items: flex-start; gap: 6px; background: var(--bg); border-radius: 14px; padding: 9px 8px; min-width: 0; }
.cond-tile svg { width: 18px; height: 18px; flex: none; margin-top: 1px; color: var(--muted); }
.cond-tile > span { display: flex; flex-direction: column; min-width: 0; }
.cond-tile small { font-size: 11px; color: var(--muted); }
.cond-tile b { font-size: 15.5px; line-height: 1.2; }
.cond-tile em { font-style: normal; font-size: 11px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cond-tile:first-child { background: var(--sky-soft); }
.cond-tile:first-child svg { color: var(--sky); }
.cond-tile.ok em { color: #3d6b10; }
.cond-tile.warn em { color: #8a5a00; }
.cond-tile.bad em { color: #a3421a; }
.layers { display: grid; gap: 8px; }
.layer { display: grid; grid-template-columns: 70px 1fr 44px; align-items: center; gap: 10px; font-size: 13px; }
.layer span { color: var(--muted); }
.layer b { text-align: right; }
.bar { height: 12px; background: var(--bg); border-radius: 999px; overflow: hidden; }
.bar i { display: block; height: 100%; border-radius: 999px; background: var(--sky); }
.bar i.warn { background: linear-gradient(90deg, var(--sun), #7fb0e8); }
.bar i.bad { background: var(--clay); }
.balance { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.balance > div { background: var(--bg); border-radius: 14px; padding: 10px; display: flex; flex-direction: column; }
.balance small { font-size: 11.5px; color: var(--muted); }
.balance b { font-family: var(--serif); font-size: 19px; }
.balance .ok b { color: #3d6b10; }
.balance .warn b { color: #8a5a00; }
.balance .bad b { color: var(--clay); }
.relief { display: flex; flex-direction: column; gap: 3px; background: var(--bg); border-radius: 16px; padding: 12px 14px; border-left: 4px solid var(--lime); font-size: 13.5px; color: var(--muted); }
.relief b { font-family: var(--serif); font-size: 20px; color: var(--ink); text-transform: capitalize; }
.relief.warn { border-left-color: var(--sun); }
.relief.bad { border-left-color: var(--clay); }

.rot-item { display: flex; align-items: center; gap: 12px; padding: 10px 0; border-bottom: 1px dashed var(--line); }
.rot-item b { width: 52px; color: var(--forest); font-family: var(--serif); }
.rot-item span { flex: 1; }
.rot-item .icon-btn { width: 34px; height: 34px; box-shadow: none; background: var(--bg); }
.rot-add { display: grid; grid-template-columns: 90px 1fr 48px; gap: 8px; margin-top: 12px; }
.rot-add .btn { padding: 0; }

/* ---------- menu & sheets ---------- */
.menu-item { display: flex; align-items: center; gap: 14px; padding: 14px 4px; border: 0; background: none; width: 100%; text-align: left; font-size: 16px; border-bottom: 1px dashed var(--line); }
.menu-item:last-child { border-bottom: 0; }
.menu-item svg { color: var(--forest); background: var(--lime-soft); border-radius: 12px; padding: 7px; box-sizing: content-box; width: 20px; height: 20px; }
.menu-item .grow { flex: 1; }
.menu-item.danger, .menu-item.danger svg { color: var(--danger); }
.menu-item.danger svg { background: var(--clay-soft); }
.menu-item.soon { color: var(--muted); }

.sheet { position: fixed; inset: 0; z-index: 50; }
.sheet-backdrop { position: absolute; inset: 0; background: rgba(12, 22, 15, .5); backdrop-filter: blur(2px); }
.sheet-panel { position: absolute; left: 50%; transform: translateX(-50%); bottom: 0; width: 100%; max-width: 560px; max-height: 88dvh; overflow-y: auto; background: var(--card); border-radius: 28px 28px 0 0; padding: 26px 18px calc(24px + var(--safe-b)); animation: up .2s ease-out; }
.sheet-panel::before { content: ""; position: absolute; top: 9px; left: 50%; transform: translateX(-50%); width: 40px; height: 4px; border-radius: 4px; background: var(--line); }
.sheet-panel h2 { font-family: var(--serif); margin: 0 0 14px; font-size: 23px; text-align: center; }
.sheet-panel .btn.block { margin-top: 14px; }
.sheet-close { position: absolute; right: 12px; top: 12px; width: 36px; height: 36px; border: 0; background: var(--bg); border-radius: 50%; font-size: 22px; line-height: 1; color: var(--muted); }
@keyframes up { from { transform: translate(-50%, 30px); opacity: .4; } to { transform: translate(-50%, 0); opacity: 1; } }
.prose { line-height: 1.55; font-size: 15px; }
.prose p { margin: 0 0 10px; }
.toast { position: fixed; left: 50%; bottom: calc(var(--tabbar-h) + var(--safe-b) + 24px); transform: translateX(-50%); background: var(--forest); color: var(--lime); padding: 11px 18px; border-radius: 999px; font-size: 14px; font-weight: 600; z-index: 60; box-shadow: var(--shadow); }
