@font-face {
  font-family: "Cormorant";
  src: url("fonts/cormorant-cyrillic.woff2") format("woff2");
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: "Cormorant";
  src: url("fonts/cormorant-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+2000-206F;
}
@font-face {
  font-family: "Epson2";
  src: url("fonts/epson2.woff2") format("woff2");
}

:root {
  color-scheme: light;
  --bg: #ffffff;
  --raised: #f0f0f0;
  --line: #c8c8c8;
  --text: #111111;
  --muted: #5f5f5f;
  --faint: #a3a3a3;
  --danger: #b3261e;
  --row-line: #9a9da1;
  --button: #4b4f55;
  --button-text: #ffffff;
  --green: #1e7d45;
  --yellow: #f2c230;
  --red: #c4322c;
  --safe-top: env(safe-area-inset-top, 0px);
  --safe-bottom: env(safe-area-inset-bottom, 0px);
  font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
}

* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
[hidden] { display: none !important; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-size: 16px;
  line-height: 1.35;
}

h1, h2, p { margin: 0; }
h1, h2 { font-size: 17px; font-weight: 700; }
button, input, textarea { font: inherit; color: inherit; border-radius: 0; }
button { cursor: pointer; touch-action: manipulation; }
:focus-visible { outline: 2px solid var(--text); outline-offset: 1px; }

.muted { color: var(--muted); font-size: 14px; }
.error { color: var(--danger); font-size: 14px; }
.error:empty { display: none; }

.btn {
  min-height: 44px;
  padding: 0 14px;
  border: 1px solid var(--line);
  background: none;
  white-space: nowrap;
}
.btn:active { background: var(--raised); }
.btn:disabled { color: var(--faint); cursor: default; }
.btn-primary { background: var(--button); border-color: var(--button); color: var(--button-text); font-weight: 700; }
.btn-primary:active { background: var(--muted); }
.btn-ghost { border-color: transparent; color: var(--muted); padding: 0 4px; }
.btn-danger { border-color: var(--line); color: var(--danger); }

.badge { margin-left: 6px; font-weight: 700; }

input, textarea {
  width: 100%;
  min-height: 46px;
  padding: 10px;
  border: 1px solid var(--line);
  background: var(--bg);
  color: var(--text);
  font-size: 16px;
  -webkit-appearance: none;
  appearance: none;
}
textarea { resize: vertical; }
input::placeholder { color: var(--faint); }

.field {
  display: flex;
  flex-direction: column;
  gap: 5px;
  min-width: 0;
  margin: 0;
  padding: 0;
  border: 0;
}
.field > span, .field > legend { color: var(--muted); font-size: 14px; }
.field > legend { padding: 0; margin-bottom: 5px; }
.field em { font-style: normal; color: var(--faint); }

.two { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 8px; }

.date-field { position: relative; display: block; min-height: 46px; border: 1px solid var(--line); }
.date-text { display: block; padding: 11px 10px; color: var(--text); font-size: 16px; font-variant-numeric: tabular-nums; }
.date-text.empty { color: var(--faint); }
.date-field input { position: absolute; inset: 0; width: 100%; height: 100%; min-height: 0; padding: 0; border: 0; opacity: 0; }
.money-field { margin-top: 8px; }
.money { position: relative; display: block; }
.money input { padding-right: 28px; font-variant-numeric: tabular-nums; }
.money i { position: absolute; right: 10px; top: 50%; transform: translateY(-50%); color: var(--muted); font-style: normal; pointer-events: none; }

.segments { display: grid; grid-template-columns: 1fr 1fr; margin-bottom: 8px; border: 1px solid var(--line); }
.segments button { min-height: 44px; border: 0; background: none; color: var(--muted); font-size: 15px; }
.segments button + button { border-left: 1px solid var(--line); }
.segments button.active { background: var(--button); color: var(--button-text); font-weight: 700; }
.segments-three { grid-template-columns: repeat(3, 1fr); }
.segments-three button { font-size: 14px; padding: 4px; }

/* Вход */
.login { min-height: 100vh; min-height: 100dvh; display: grid; place-items: center; padding: 16px; }
.login-card { display: flex; flex-direction: column; gap: 12px; width: 100%; max-width: 320px; }

/* Каркас */
.app { max-width: 1280px; margin: 0 auto; padding: var(--safe-top) 0 calc(var(--safe-bottom) + 64px); }
.topbar { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 8px 12px; }
.topbar > div:first-child { display: flex; flex-direction: column; justify-content: center; min-width: 0; }
.topbar .muted { font-size: 13px; line-height: 1.2; white-space: nowrap; }
.topbar .stale { color: var(--danger); font-weight: 700; }
.topbar-actions { display: flex; align-items: center; gap: 8px; }

.search {
  position: sticky; top: 0; z-index: 5;
  display: flex; flex-direction: column; gap: 8px;
  padding: calc(var(--safe-top) + 6px) 12px 8px;
  background: var(--bg);
  border-bottom: 1px solid var(--line);
}
.search-row { display: flex; gap: 8px; }
.search-row input { flex: 1; min-width: 0; min-height: 44px; }

.chips { display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; }
.chips::-webkit-scrollbar { display: none; }
.chips:empty { display: none; }
.chips.wrap { flex-wrap: wrap; overflow: visible; margin-bottom: 8px; }
.chip { flex: none; min-height: 36px; min-width: 44px; padding: 0 10px; border: 1px solid var(--line); background: none; color: var(--muted); font-size: 15px; }
.chip.active { background: var(--button); border-color: var(--button); color: var(--button-text); font-weight: 700; }

/* Номер: четыре графы */
.search-plate { display: flex; gap: 8px; }
.plate-input { flex: 1; min-width: 0; display: grid; grid-template-columns: 1.5fr 5.7fr 3fr 2.8fr; }
.plate-group { display: flex; justify-content: center; min-width: 0; border: 1px solid var(--line); }
.plate-group + .plate-group { border-left: 0; }
.cell {
  flex: 1; min-width: 0; max-width: 26px; min-height: 46px;
  padding: 0; border: 0; background: none;
  font-size: 20px; font-weight: 700; font-variant-numeric: tabular-nums;
}
.cell.empty { color: var(--faint); font-weight: 400; }
.plate-letters .cell, .plate-digits .cell { max-width: none; }
.plate-region.two-digits .cell:last-child { display: none; }
.plate-letters .cell + .cell, .plate-digits .cell + .cell { border-left: 1px solid var(--line); }
.cell.active { box-shadow: inset 0 -3px 0 var(--text); }
.plate-clear { flex: none; padding: 0 10px; border: 1px solid var(--line); background: none; color: var(--muted); font-size: 14px; }

.plate-text { font-weight: 700; font-size: 18px; font-variant-numeric: tabular-nums; white-space: nowrap; word-spacing: -.1em; }
.plate-pair { letter-spacing: 1.5px; margin-right: -1.5px; }

/* Клавиатура номера */
.keypad { display: flex; flex-direction: column; gap: 1px; margin-top: 8px; border: 1px solid var(--line); background: var(--line); }
.keypad-keys { display: grid; gap: 1px; }
.keypad-letters { grid-template-columns: repeat(6, 1fr); }
.keypad-digits { grid-template-columns: repeat(5, 1fr); }
.keypad-controls { grid-template-columns: 1fr 1fr; }
.keypad-regions { grid-template-columns: repeat(4, 1fr); }
.keypad .key-region { color: #4c4c4c; font-weight: 400; }
.keypad button { min-height: 46px; border: 0; background: var(--raised); font-size: 19px; }
.keypad button:active { background: var(--button); color: var(--button-text); }
.keypad .key-ok { background: var(--button); color: var(--button-text); font-size: 14px; font-weight: 700; }
.keypad .key-back { color: var(--muted); font-size: 14px; }
.dock {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 15;
  padding: 0 0 var(--safe-bottom);
  background: var(--bg);
}
.dock .keypad { max-width: 560px; margin: 0 auto; }

/* Строки на телефоне */
body:not(.buyer) .search { border-bottom-color: var(--row-line); }
.row { display: grid; grid-template-columns: 56px 1fr; gap: 12px; padding: 12px; border-bottom: 1px solid var(--row-line); cursor: pointer; -webkit-touch-callout: none; -webkit-user-select: none; user-select: none; }
.row.best { background: #f4fbf6; box-shadow: inset 0 0 0 2px var(--green); }
tr.best { background: #f4fbf6; box-shadow: inset 0 0 0 2px var(--green); }
.row.selected, tr.selected { background: #fbefe5; }
/* Записи разделены двойной линией: вторая проходит по верху следующей строки. */
.row + .row { margin-top: 3px; border-top: 1px solid var(--row-line); }
.row-side { display: flex; flex-direction: column; gap: 8px; }
.row .row-share { width: 56px; height: 56px; }
td .row-share { width: 36px; height: 36px; }
.selected .row-share { background: #9a4a12; border-color: #9a4a12; color: #fff; }
.share-bar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 12;
  display: flex; gap: 8px;
  padding: 8px 12px calc(var(--safe-bottom) + 8px);
  background: var(--bg); border-top: 1px solid var(--line);
}
.share-bar .btn-primary { flex: 1; }
@media (min-width: 900px) {
  .share-bar { left: auto; right: 12px; bottom: 12px; width: 380px; border: 1px solid var(--line); }
}
.row-body { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.thumb { display: block; width: 56px; height: 56px; border: 1px solid var(--line); object-fit: cover; }
td .thumb { width: 36px; height: 36px; }
.row:active { background: var(--raised); }
.row-top { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.row-dates { color: var(--muted); font-size: 13px; font-variant-numeric: tabular-nums; white-space: nowrap; }
.profit { flex: none; display: inline-block; padding: 4px 7px; border: 1px solid; font-size: 14px; font-weight: 700; font-variant-numeric: tabular-nums; line-height: 1.2; white-space: nowrap; }
.profit-loss { border: 1px dashed var(--faint); color: var(--muted); font-weight: 400; }
.profit-5 { border-color: #e5e6e8; color: var(--muted); font-weight: 400; }
.profit-4 { border-color: #cdcfd2; color: #6b6e73; font-weight: 500; }
.profit-3 { border-color: #aeb0b4; color: #55585d; }
.profit-2 { padding: 3px 6px; border-width: 2px; border-color: #8b8e93; color: #484b50; }
.profit-1 { padding: 3px 6px; border-width: 2px; border-color: #6e7176; background: #f4f5f6; color: #3b3e43; }
.profit-0 { padding: 2px 5px; border-width: 3px; border-color: #4b4f55; background: #e9eaec; color: #26282c; }
.row-money, .row-meta { display: grid; grid-template-columns: 1.5fr 1fr; gap: 2px 12px; }
.amount-label { display: block; color: var(--muted); font-size: 13px; }
.amount-plus { color: var(--muted); font-size: 14px; }
.amount { display: block; font-size: 17px; font-variant-numeric: tabular-nums; white-space: nowrap; }
.amount.none { color: var(--faint); }
.row-meta { padding-top: 8px; border-top: 1px solid var(--raised); font-size: 14px; }
.row-meta > * { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.phone-link { color: var(--text); font-variant-numeric: tabular-nums; text-decoration-color: var(--faint); text-underline-offset: 3px; white-space: nowrap; }
.row-notes { grid-column: 1 / -1; margin: 0 -12px -12px; padding: 8px 12px; border-top: 1px dashed var(--line); font-size: 14px; color: var(--muted); overflow-wrap: anywhere; }

.empty-state { padding: 32px 12px; color: var(--muted); }
.empty-state strong { display: block; color: var(--text); font-weight: 400; }

/* Таблица на компьютере */
.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; font-size: 15px; }
th { padding: 8px 10px; border-bottom: 1px solid var(--line); color: var(--muted); font-size: 13px; font-weight: 400; text-align: left; white-space: nowrap; }
td { padding: 6px 10px; border-bottom: 1px solid var(--line); vertical-align: middle; }
td + td, th + th { border-left: 1px solid var(--line); }
tbody tr { cursor: pointer; }
tbody tr:hover { background: var(--raised); }
td.num, th.num { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
td.notes { max-width: 240px; overflow-wrap: anywhere; color: var(--muted); }

.add-bar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 10;
  width: 100%; min-height: calc(var(--safe-bottom) + 52px);
  padding-bottom: var(--safe-bottom);
  border: 0; background: var(--button); color: var(--button-text); font-weight: 700;
}

/* Шторки */
.sheet { position: fixed; inset: 0; z-index: 20; display: flex; align-items: flex-end; background: rgba(0, 0, 0, .5); }
.sheet-card { display: flex; flex-direction: column; width: 100%; max-height: 100vh; max-height: 100dvh; background: var(--bg); border-top: 1px solid var(--line); }
#form-sheet .sheet-card { height: 100vh; height: 100dvh; border-top: 0; }
/* Заголовок окна стоит точно по центру, кнопка не сдвигает его. */
.sheet-head { display: grid; grid-template-columns: 1fr auto 1fr; gap: 8px; align-items: center; padding: calc(var(--safe-top) + 4px) 12px 4px; border-bottom: 1px solid var(--line); }
.sheet-head h2 { grid-column: 2; grid-row: 1; font-size: 15px; text-align: center; white-space: nowrap; }
.sheet-head .btn { grid-column: 3; grid-row: 1; justify-self: end; padding: 0 8px; }
.sheet-head-back .btn { grid-column: 1; justify-self: start; }
.sheet-body { flex: 1; display: flex; flex-direction: column; gap: 14px; padding: 12px; overflow-y: auto; -webkit-overflow-scrolling: touch; }
.sheet-foot { display: flex; gap: 8px; padding: 8px 12px calc(var(--safe-bottom) + 8px); border-top: 1px solid var(--line); }
.sheet-foot .btn-primary { flex: 1; }

.toast {
  position: fixed; left: 12px; right: 12px; bottom: calc(var(--safe-bottom) + 60px); z-index: 30;
  padding: 10px 12px; border: 1px solid var(--line); background: var(--raised); font-size: 15px;
}

/* Фото */
.photo-field { display: flex; flex-wrap: wrap; gap: 10px; }
.photo-item { position: relative; flex: none; }
.photo-box { display: grid; place-items: center; flex: none; width: 88px; height: 88px; padding: 0; border: 1px solid var(--line); background: none; overflow: hidden; }
.photo-box img { display: block; width: 100%; height: 100%; object-fit: cover; }
.photo-empty { color: var(--muted); font-size: 14px; }
.photo-add { color: var(--muted); font-size: 14px; cursor: pointer; }
.photo-del { position: absolute; top: 0; right: 0; width: 30px; height: 30px; padding: 0; border: 1px solid var(--line); background: #fff; color: var(--text); font-size: 18px; line-height: 1; }
.pick-list { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.pick-item { aspect-ratio: 1; padding: 0; border: 1px solid var(--line); background: none; overflow: hidden; }
.pick-item img { display: block; width: 100%; height: 100%; object-fit: cover; opacity: 0.3; }
.pick-item[aria-pressed="true"] { outline: 3px solid var(--button); outline-offset: -3px; }
.pick-item[aria-pressed="true"] img { opacity: 1; }
#pick-sheet .sheet-body, #trash-sheet .sheet-body { gap: 10px; padding: 10px 20px 28px; }
.price-log summary { padding: 8px 0; color: var(--muted); font-size: 15px; cursor: pointer; }
.price-list { display: flex; flex-direction: column; gap: 10px; padding: 4px 0 8px; font-size: 15px; font-variant-numeric: tabular-nums; }
.price-entry { display: flex; flex-direction: column; gap: 2px; }
.price-when { color: var(--muted); font-size: 13px; }
.alert-badge {
  position: absolute; top: -6px; right: -6px;
  min-width: 18px; height: 18px; padding: 0 4px;
  background: var(--red); color: #fff;
  font-size: 11px; font-weight: 700; line-height: 18px; text-align: center;
}
.alerts-list { display: flex; flex-direction: column; }
/* Проверка цен конкурентов */
.icon-btn.market-btn { flex: none; width: 32px; height: 32px; }
.icon-btn.market-btn::after { content: ""; position: absolute; inset: -6px; }
.icon-btn.market-btn.green { background: var(--green); border-color: var(--green); color: #fff; }
.icon-btn.market-btn.yellow { background: var(--yellow); border-color: var(--yellow); color: #111; }
.icon-btn.market-btn.red { background: var(--red); border-color: var(--red); color: #fff; }
.market-link { display: grid; place-items: center; text-decoration: none; color: var(--text); }
.market-link.btn-primary { color: var(--button-text); }
#market-sheet .sheet-body { gap: 8px; padding: 10px 20px 28px; }
#market-sheet .field { margin-top: 6px; }
#market-sheet .segments { margin-bottom: 0; }

/* Кнопки внизу окна не должны попадать под скругление экрана iPhone. */
#alerts-sheet .sheet-body { gap: 5px; padding: 8px 20px 25px; }
#settings-sheet .sheet-body, #devices-sheet .sheet-body { gap: 8px; padding: 10px 20px 28px; }
#settings-sheet .field { gap: 8px; }
.device-note { color: var(--muted); font-size: 13px; }
.alert-item {
  display: flex; justify-content: space-between; align-items: center; gap: 12px;
  min-height: 52px; padding: 8px 0;
  border: 0; border-bottom: 1px solid var(--line); background: none; text-align: left;
}
.alert-days { color: var(--muted); font-size: 14px; white-space: nowrap; }
.alert-open { display: flex; flex-direction: column; align-items: flex-start; gap: 3px; min-width: 0; padding: 0; border: 0; background: none; color: inherit; text-align: left; }
.alert-action { flex: none; min-height: 40px; padding: 0 10px; font-size: 14px; }
.icon-btn { position: relative; display: inline-grid; place-items: center; width: 44px; height: 44px; padding: 0; border: 1px solid var(--line); background: none; color: var(--text); }
.icon-btn:active { background: var(--raised); }
.icon-btn:disabled { color: var(--faint); }
.lightbox { position: fixed; inset: 0; z-index: 40; display: flex; flex-direction: column; background: #000; color: #ededed; }
.lightbox-bar { display: flex; justify-content: space-between; align-items: center; padding: calc(var(--safe-top) + 6px) 12px 6px; }
.lightbox .btn-ghost { color: #ededed; }
.lightbox .icon-btn { color: #ededed; border-color: #5c5c5c; }
.lightbox-count { font-size: 15px; font-variant-numeric: tabular-nums; }
.lightbox-track { flex: 1; min-height: 0; display: flex; overflow-x: auto; overflow-y: hidden; scroll-snap-type: x mandatory; scrollbar-width: none; }
.lightbox-track::-webkit-scrollbar { display: none; }
.lightbox-track img { flex: none; width: 100%; height: 100%; object-fit: contain; padding-bottom: var(--safe-bottom); scroll-snap-align: center; }

/* Надёжность */
.segments-one { grid-template-columns: 1fr; }
.trust-segments [data-value="green"].active { background: var(--green); color: #fff; }
.trust-segments [data-value="yellow"].active { background: var(--yellow); color: #111; }
.trust-segments [data-value="red"].active { background: var(--red); color: #fff; }
.trust-mark { display: inline-block; flex: none; width: 12px; height: 12px; }
.trust-mark.green { background: var(--green); }
.trust-mark.yellow { background: var(--yellow); }
.trust-mark.red { background: var(--red); }
.row-plate { display: flex; align-items: center; gap: 8px; min-width: 0; }
.trust-cell { display: flex; align-items: center; gap: 6px; white-space: nowrap; }

/* Настройки */
.buyer .admin-only { display: none !important; }
.check { display: flex; align-items: center; gap: 12px; min-height: 44px; }
.check em { font-style: normal; color: var(--muted); font-size: 14px; }
.checks { display: flex; flex-direction: column; }
.check input { flex: none; width: 24px; height: 24px; min-height: 0; padding: 0; -webkit-appearance: checkbox; appearance: auto; accent-color: var(--button); }

/* Блокировка */
.lock {
  position: fixed; inset: 0; z-index: 50;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 14px;
  padding: calc(var(--safe-top) + 16px) 16px calc(var(--safe-bottom) + 16px);
  background: var(--bg);
}
.pin-dots { display: flex; gap: 14px; }
.pin-dots i { width: 14px; height: 14px; border: 1px solid var(--muted); }
.pin-dots i.filled { background: var(--button); border-color: var(--button); }
.lock-error { min-height: 20px; text-align: center; }
.lock-error:empty { display: block; }
.pin-keypad { display: grid; grid-template-columns: repeat(3, 76px); gap: 8px; }
.pin-keypad button { height: 60px; border: 1px solid var(--line); background: none; font-size: 22px; }
.pin-keypad button:active { background: var(--raised); }
.pin-keypad .pin-erase { font-size: 14px; color: var(--muted); }
.lock-action { width: 244px; }

/* Витрина для покупателя. Оформление действует только вне режима администратора. */
body.buyer {
  --bg: #f5f5f4;
  --raised: #e9e9e8;
  --line: #d2d3d4;
  --text: #111214;
  --muted: #5c5e62;
  --faint: #a6a8ab;
  --ink: #111214;
  --silver: #a4a7ac;
}
.buyer .topbar { padding: 14px 16px 6px; }
.buyer .search { padding-left: 16px; padding-right: 16px; }
.buyer .chip.active,
.buyer .segments button.active,
.buyer .btn-primary,
.buyer .keypad .key-ok { background: var(--button); border-color: var(--button); color: var(--button-text); }
.buyer .cell.active { box-shadow: inset 0 -3px 0 var(--button); }
.buyer #open-filters { flex: 1; }
.buyer #price-sort { grid-template-columns: 1fr 1fr; }
.buyer .app { padding-bottom: calc(var(--safe-bottom) + 16px); }

.strips { display: flex; flex-direction: column; gap: 12px; max-width: 720px; margin: 0 auto; padding: 14px 16px; }
.strip {
  --frame: var(--ink);
  display: grid; grid-template-columns: 104px 1fr; align-items: stretch;
  width: 100%; min-height: 108px; padding: 0;
  border: 2px solid var(--frame);
  background: #fff; color: var(--text); text-align: left;
}
.strip:nth-child(even) { --frame: var(--silver); }
.strip:active { background: var(--raised); }
.strip-photo { display: grid; place-items: center; width: 104px; height: 100%; min-height: 104px; object-fit: cover; background: var(--raised); color: var(--muted); font-size: 13px; }
.strip-info { display: flex; flex-direction: column; justify-content: center; align-items: center; gap: 2px; min-width: 0; padding: 10px 12px; text-align: center; }
.strip-plate { font-family: "Cormorant", Georgia, serif; font-size: 27px; font-weight: 500; line-height: 1.1; overflow-wrap: anywhere; }
.strip-price, .strip-note { font-family: "Cormorant", Georgia, serif; font-weight: 500; white-space: nowrap; }
.strip-price { margin-top: 3px; padding-top: 5px; border-top: 1px solid var(--line); font-size: 19px; line-height: 1.15; }
.strip-note { color: var(--muted); font-size: 15px; line-height: 1.15; }

#card-sheet .sheet-card { height: 100vh; height: 100dvh; }
.card-view { align-items: stretch; gap: 0; padding: 0; }
.card-photo { position: relative; display: block; width: 100%; padding: 0; border: 0; background: #000; }
.card-photo-count { position: absolute; right: 8px; bottom: 8px; padding: 3px 8px; background: rgba(0, 0, 0, 0.6); color: #fff; font-size: 13px; }
.card-photo img { display: block; width: 100%; max-height: 62vh; max-height: 62dvh; object-fit: contain; }
.card-plate { padding: 22px 16px 12px; text-align: center; font-family: "Cormorant", Georgia, serif; font-size: 38px; font-weight: 500; line-height: 1.1; }
.card-price { margin: 0 16px; padding-top: 12px; border-top: 1px solid var(--silver); color: var(--text); font-family: "Cormorant", Georgia, serif; font-size: 27px; font-weight: 500; text-align: center; }
.card-note { color: var(--muted); font-family: "Cormorant", Georgia, serif; font-size: 20px; font-weight: 500; text-align: center; }
.card-price:empty, .card-price:empty + .card-note { display: none; }

@media (min-width: 900px) {
  #card-sheet .sheet-card { height: auto; }
}

.sync { font-size: 13px; width: 100%; }

.desktop-only { display: none; }

@media (min-width: 900px) {
  .desktop-only { display: inline-block; }
  .mobile-only { display: none; }
  .app { padding-bottom: 24px; }
  .search { display: grid; grid-template-columns: 360px 1fr; align-items: center; }
  .search .chips { grid-column: 1 / -1; }
  .sheet { align-items: center; justify-content: center; }
  .sheet-card, #form-sheet .sheet-card { width: 520px; height: auto; max-height: 92vh; border: 1px solid var(--line); }
  .dock { left: 12px; right: auto; bottom: 12px; width: 380px; padding: 0; }
  .toast { left: auto; right: 12px; bottom: 12px; }
}

