/* Domestro on the phone. The same identity as the desktop (identity.css), laid out for a narrow screen: one column, big
   touch targets (44 px), the safe areas of a phone with no home button. */
* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body { margin: 0; min-height: 100%; }
body { background: var(--pp-void); color: var(--pp-ink); font-family: Inter, sans-serif; font-size: 16px; padding: env(safe-area-inset-top) env(safe-area-inset-right) env(safe-area-inset-bottom) env(safe-area-inset-left); }
button, input { font: inherit; color: inherit; }
button:focus-visible, input:focus-visible { outline: 2px solid var(--pp-sand); outline-offset: 2px; }
[hidden] { display: none !important; }

.bar { position: sticky; top: 0; z-index: 2; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 16px; background: linear-gradient(100deg, #2E3430 0%, #1E2127 60%, #161A20 100%); border-bottom: 1px solid var(--pp-hair-strong); }
.mark { padding: 6px 0; border: 0; background: none; font-family: var(--pp-font-display); font-stretch: 125%; font-weight: 900; letter-spacing: 0.06em; font-size: 17px; user-select: none; -webkit-user-select: none; -webkit-touch-callout: none; touch-action: manipulation; }
.sync-mark { font-family: var(--pp-font-label); font-size: 12px; color: var(--pp-ink-faint); text-align: right; }
.sync-mark.ok { color: var(--pp-go); } .sync-mark.warn { color: var(--pp-caution); }

.ui-btn { min-height: 44px; padding: 0 16px; border: 1px solid var(--pp-hair-strong); border-radius: var(--pp-r-btn); background: var(--pp-console); color: var(--pp-ink); font-size: 15px; cursor: pointer; }
.ui-btn.primary { background: var(--pp-sand); border-color: var(--pp-sand); color: var(--pp-void); font-weight: 600; }
.ui-btn.quiet { background: transparent; color: var(--pp-ink-dim); }
.ui-btn.big { min-height: 56px; font-size: 17px; }
.ui-btn:disabled { opacity: 0.4; }
.ui-btn.back { align-self: flex-start; min-height: 36px; padding: 0 8px; }
.field { min-height: 44px; padding: 0 12px; border: 1px solid var(--pp-hair-strong); border-radius: var(--pp-r-btn); background: var(--pp-deck); color: var(--pp-ink); font-size: 16px; min-width: 0; flex: 1; width: 100%; }

.status { position: sticky; top: 52px; z-index: 2; margin: 8px 12px 0; padding: 10px 12px; border-radius: var(--pp-r-ctl, 7px); background: #1F2A12; color: var(--pp-go); font-size: 14px; }
.status.refusal { background: #2A2410; color: var(--pp-caution); }

.page { padding: 16px 16px 48px; display: flex; flex-direction: column; gap: 12px; }
.row { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.label { font-family: var(--pp-font-label); font-size: 11px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--pp-ink-faint); }
.h1 { font-family: var(--pp-font-display); font-stretch: 112%; font-weight: 800; font-size: 24px; line-height: 1.2; }
.h2 { margin: 8px 0 0; font-family: var(--pp-font-display); font-stretch: 125%; font-weight: 800; font-size: 13px; letter-spacing: 0.08em; color: var(--pp-sand); text-transform: uppercase; }
.hint { font-size: 14px; line-height: 1.5; color: var(--pp-ink-dim); }
.note { padding: 12px; border: 1px solid var(--pp-hair-strong); border-radius: 12px; font-size: 14px; line-height: 1.5; color: var(--pp-ink-dim); display: flex; flex-direction: column; gap: 6px; }
.mono { font-family: var(--pp-font-label); font-size: 11px; color: var(--pp-ink-faint); overflow-wrap: anywhere; }

.card { display: flex; flex-direction: column; align-items: flex-start; gap: 6px; padding: 14px 16px; border: 1px solid var(--pp-hair-strong); border-radius: 14px 4px 14px 4px; background: var(--pp-deck); text-align: left; width: 100%; }
.card:active { border-color: var(--pp-sand); }
.card .name { font-family: var(--pp-font-display); font-stretch: 112%; font-weight: 800; font-size: 18px; }
.kind { align-self: flex-start; display: inline-block; padding: 2px 7px; border-radius: 3px; background: var(--pp-console-hi); color: var(--pp-sand); font-family: var(--pp-font-label); font-size: 11px; letter-spacing: 0.06em; text-transform: uppercase; }

.facts { display: flex; flex-direction: column; border-top: 1px solid var(--pp-hair); }
.fact { display: grid; grid-template-columns: 38% 1fr; gap: 2px 10px; padding: 11px 2px; border: 0; border-bottom: 1px solid var(--pp-hair); background: transparent; text-align: left; }
.fact .k { color: var(--pp-ink-dim); font-size: 14px; }
.fact .v { font-size: 15px; overflow-wrap: anywhere; }
.fact .v.unset { color: var(--pp-ink-faint); font-style: italic; }
.fact .src { grid-column: 2; font-size: 11.5px; color: var(--pp-ink-faint); }

.sheet { position: fixed; left: 0; right: 0; bottom: 0; z-index: 5; padding: 16px 16px calc(16px + env(safe-area-inset-bottom)); background: var(--pp-console); border-top: 1px solid var(--pp-sand); display: flex; flex-direction: column; gap: 10px; box-shadow: 0 -12px 32px rgba(0,0,0,.5); }
.scanview { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 14px; background: #000; }
.diag { display: flex; flex-direction: column; gap: 4px; font-size: 13px; line-height: 1.4; }
