/* Felsen's panel (felsen.app/panel/): a developer's sellers change their flats' statuses and prices, see who changed what, undo.
   Stone neutrals; the only colour is the three statuses' - the same hues the visitors see in the picker (moss, amber, warm grey). */
:root {
  --stone: #eceeeb;
  --paper: #ffffff;
  --ink: #1e2522;
  --ink-2: #5b6561;
  --ink-3: #8a938f;
  --rule: #d9ddda;
  --rule-2: #c4cac6;
  --hover: #f5f6f4;
  --av: #687c50; --av-bg: #e7ecdf; --av-ink: #3f4e2c;          /* Pieejams */
  --re: #b8862b; --re-bg: #f6ecd9; --re-ink: #74501a;          /* Rezervēts */
  --so: #aaa49f; --so-bg: #ebe9e6; --so-ink: #55504c;          /* Pārdots */
  --bad: #a3321f;
  --r: 14px;
  --font: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", system-ui, Roboto, "Helvetica Neue", Arial, sans-serif;
  color-scheme: light;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--stone); color: var(--ink); font: 15px/1.45 var(--font); -webkit-font-smoothing: antialiased; }
[hidden] { display: none !important; }
button, input { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; }
.tnum { font-variant-numeric: tabular-nums; }

/* ---------- the header */
.top { position: sticky; top: 0; z-index: 5; display: flex; align-items: center; gap: 14px; height: 56px; padding: 0 max(20px, env(safe-area-inset-right)) 0 max(20px, env(safe-area-inset-left));
  background: rgba(255, 255, 255, .92); backdrop-filter: saturate(1.6) blur(14px); -webkit-backdrop-filter: saturate(1.6) blur(14px); border-bottom: 1px solid var(--rule); }
.mark { font-weight: 700; font-size: 17px; letter-spacing: -.02em; }
.proj { display: flex; align-items: baseline; gap: 8px; padding-left: 14px; border-left: 1px solid var(--rule); min-width: 0; }
.proj b { font-weight: 600; }
.proj span { color: var(--ink-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.proj select { font: inherit; font-weight: 600; border: 0; background: transparent; padding: 0 2px; }
.grow { flex: 1; }
.who { color: var(--ink-2); white-space: nowrap; }
.btn { display: inline-flex; align-items: center; gap: 6px; height: 34px; padding: 0 14px; border-radius: 999px; border: 1px solid transparent; background: none;
  font-weight: 600; font-size: 14px; text-decoration: none; cursor: pointer; white-space: nowrap; }
.btn.main { background: var(--ink); color: #fff; }
.btn.main:hover { background: #2f3a36; }
.btn.line { border-color: var(--rule-2); color: var(--ink); background: var(--paper); }
.btn.line:hover { border-color: var(--ink-3); }
.btn.text { padding: 0 6px; color: var(--ink-2); }
.btn.text:hover { color: var(--ink); }
.btn:disabled { opacity: .5; cursor: default; }
.btn.main.danger { background: var(--bad); }
.btn.main.danger:hover { background: #87291a; }

/* ---------- the sign-in, the code, the 2FA set-up */
.gate { max-width: 400px; margin: 9vh auto 40px; padding: 32px; background: var(--paper); border-radius: 18px; border: 1px solid var(--rule); }
.gate .mark { display: block; margin-bottom: 26px; }
.gate h1 { margin: 0 0 8px; font-size: 22px; letter-spacing: -.01em; }
.gate p { margin: 0 0 18px; color: var(--ink-2); }
.gate label { display: block; margin: 14px 0 6px; font-weight: 600; font-size: 14px; }
.gate input { width: 100%; height: 44px; padding: 0 12px; border: 1px solid var(--rule-2); border-radius: 10px; background: var(--paper); }
.gate input:focus { outline: none; border-color: var(--ink); box-shadow: 0 0 0 3px rgba(30, 37, 34, .12); }
.gate input.code { font-size: 22px; letter-spacing: .3em; text-align: center; font-variant-numeric: tabular-nums; }
.gate .btn.main { width: 100%; height: 44px; justify-content: center; margin-top: 22px; font-size: 15px; }
.gate .err { margin: 14px 0 0; color: var(--bad); }
.gate .qr { display: block; width: 180px; height: 180px; margin: 4px auto 14px; padding: 8px; border: 1px solid var(--rule); border-radius: 12px; background: #fff; }
.gate .key { margin: 0 0 6px; font-size: 13px; }
.gate .key code { display: block; margin-top: 4px; padding: 8px 10px; border-radius: 8px; background: var(--stone); color: var(--ink); font: 13px/1.4 ui-monospace, SFMono-Regular, Menlo, monospace; word-break: break-all; }
.gate .alt { margin-top: 16px; text-align: center; }
.gate input[readonly] { background: var(--stone); border-color: var(--rule); color: var(--ink-2); }
.gate input[readonly]:focus { box-shadow: none; border-color: var(--rule-2); }
.gate .hint { margin: 6px 0 0; color: var(--ink-3); font-size: 13px; }
.gate .key b { color: var(--ink); font-weight: 600; }

.boot, .msg { max-width: 560px; margin: 12vh auto; padding: 0 20px; color: var(--ink-2); text-align: center; }
.msg h1 { color: var(--ink); font-size: 20px; }

/* ---------- the main screen */
.wrap { max-width: 1360px; margin: 0 auto; padding: 22px max(20px, env(safe-area-inset-right)) 60px max(20px, env(safe-area-inset-left)); }
.note { margin: 0 0 18px; padding: 12px 16px; border-radius: 12px; background: var(--paper); border: 1px solid var(--rule); color: var(--ink-2); }
.note b { color: var(--ink); font-weight: 600; }
.grid { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 22px; align-items: start; }
.bar { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 18px; margin-bottom: 14px; }

/* the house switch: the iPhone's segmented switch, as the picker's */
.houses { display: inline-flex; padding: 3px; border-radius: 11px; background: #dfe2de; }
.houses button { height: 32px; padding: 0 18px; border: 0; border-radius: 8px; background: none; font-weight: 600; font-size: 14px; color: var(--ink-2); cursor: pointer; }
.houses button[aria-pressed="true"] { background: var(--paper); color: var(--ink); box-shadow: 0 1px 2px rgba(30, 37, 34, .14), 0 0 0 .5px rgba(30, 37, 34, .06); }

/* the counts, which filter the list */
.counts { display: flex; flex-wrap: wrap; gap: 6px; }
.counts button { display: inline-flex; align-items: center; gap: 7px; height: 32px; padding: 0 12px; border-radius: 999px; border: 1px solid var(--rule); background: var(--paper);
  font-size: 14px; color: var(--ink-2); cursor: pointer; }
.counts button b { color: var(--ink); font-weight: 600; font-variant-numeric: tabular-nums; }
.counts button i { width: 8px; height: 8px; border-radius: 50%; }
.counts i.available { background: var(--av); } .counts i.reserved { background: var(--re); } .counts i.sold { background: var(--so); }
.counts button[aria-pressed="true"] { border-color: var(--ink); color: var(--ink); }
.find { margin-left: auto; height: 34px; width: 150px; padding: 0 12px; border: 1px solid var(--rule); border-radius: 999px; background: var(--paper); font-size: 14px; }
.find:focus { outline: none; border-color: var(--ink); }

/* the flats: a list laid out as a table on a computer, as two lines a flat on a phone */
.sheet { background: var(--paper); border: 1px solid var(--rule); border-radius: var(--r); overflow: hidden; }
.rows { list-style: none; margin: 0; padding: 0; }
.row, .head { display: grid; grid-template-columns: 56px 56px 66px 74px 306px minmax(124px, 1fr) minmax(150px, 1.2fr); align-items: center; column-gap: 12px; padding: 0 16px; }
.head { height: 40px; border-bottom: 1px solid var(--rule); color: var(--ink-3); font-size: 13px; }
.head .r, .row .ar, .row .fl, .row .rm { text-align: right; }
.row { min-height: 54px; border-bottom: 1px solid var(--rule); }
.rows li:last-child { border-bottom: 0; }
.row:hover { background: var(--hover); }
.row .no { font-weight: 650; font-variant-numeric: tabular-nums; }
.row .fl, .row .rm, .row .ar { color: var(--ink-2); font-variant-numeric: tabular-nums; }
.row .meta { display: none; }
.row .last { color: var(--ink-3); font-size: 13px; line-height: 1.3; }
.row.busy { opacity: .55; }
.none { padding: 28px 16px; color: var(--ink-2); text-align: center; }

/* each flat's status: three segments, the chosen one in its status's tint */
.seg { display: grid; grid-template-columns: 1fr 1fr 1fr; padding: 3px; gap: 2px; border-radius: 10px; background: #eff1ee; }
.seg button { display: flex; align-items: center; justify-content: center; gap: 6px; height: 30px; padding: 0 8px; border: 0; border-radius: 7px; background: none;
  font-size: 13px; font-weight: 600; color: var(--ink-3); cursor: pointer; white-space: nowrap; }
.seg button:hover { color: var(--ink); }
.seg button i { width: 7px; height: 7px; border-radius: 50%; background: currentColor; opacity: .55; }
.seg button[aria-pressed="true"] { cursor: default; box-shadow: 0 1px 2px rgba(30, 37, 34, .12); }
.seg button[aria-pressed="true"] i { opacity: 1; }
.seg button[data-s="available"][aria-pressed="true"] { background: var(--av-bg); color: var(--av-ink); }
.seg button[data-s="available"][aria-pressed="true"] i { background: var(--av); }
.seg button[data-s="reserved"][aria-pressed="true"] { background: var(--re-bg); color: var(--re-ink); }
.seg button[data-s="reserved"][aria-pressed="true"] i { background: var(--re); }
.seg button[data-s="sold"][aria-pressed="true"] { background: var(--so-bg); color: var(--so-ink); }
.seg button[data-s="sold"][aria-pressed="true"] i { background: var(--so); }

/* the price: reads as text, a field under the pointer and when typing */
.pr { display: flex; align-items: center; justify-content: flex-end; gap: 4px; }
.pr input { width: 110px; height: 34px; padding: 0 8px; border: 1px solid transparent; border-radius: 8px; background: none; text-align: right;
  font-weight: 600; font-variant-numeric: tabular-nums; }
.pr input::placeholder { color: var(--ink-3); font-weight: 400; }
.row:hover .pr input, .pr input:focus { border-color: var(--rule-2); background: var(--paper); }
.pr input:focus { outline: none; border-color: var(--ink); box-shadow: 0 0 0 3px rgba(30, 37, 34, .1); }
.pr input.bad { border-color: var(--bad); }
.pr input.dim { color: var(--ink-3); font-weight: 500; }
.pr .cur { color: var(--ink-2); }

/* the log */
.log { position: sticky; top: 78px; max-height: calc(100vh - 100px); display: flex; flex-direction: column; background: var(--paper); border: 1px solid var(--rule); border-radius: var(--r); }
.log h2 { margin: 0; padding: 16px 18px 12px; font-size: 17px; letter-spacing: -.01em; border-bottom: 1px solid var(--rule); }
.log ol { list-style: none; margin: 0; padding: 0; overflow: auto; }
.ch { display: grid; grid-template-columns: 1fr auto; gap: 2px 10px; padding: 12px 18px; border-bottom: 1px solid var(--rule); }
.ch .t { color: var(--ink-3); font-size: 13px; font-variant-numeric: tabular-nums; }
.ch .f { grid-column: 1; font-weight: 600; }
.ch .d { grid-column: 1; color: var(--ink-2); font-variant-numeric: tabular-nums; }
.ch .by { grid-column: 1; color: var(--ink-3); font-size: 13px; }
.ch .u { grid-column: 2; grid-row: 1 / span 4; align-self: center; }
.ch.undone .d s { color: var(--ink-3); }
.ch .tag { display: inline-block; margin-left: 6px; padding: 0 7px; border-radius: 999px; background: var(--stone); color: var(--ink-2); font-size: 12px; font-weight: 500; }
.log .more { margin: 10px auto 14px; }
.log .empty { padding: 18px; color: var(--ink-2); }

/* a file's many changes in the log: one entry, its changes under "Rādīt" */
.ch.grp details { grid-column: 1; }
.ch.grp summary { width: max-content; color: var(--ink-2); cursor: pointer; font-size: 14px; }
.ch.grp summary:hover { color: var(--ink); }
.ch.grp details ul { margin: 6px 0 2px; padding-left: 18px; color: var(--ink-2); font-size: 13.5px; font-variant-numeric: tabular-nums; }
.ch.grp.undone .f { color: var(--ink-3); }
.ch.grp .u { align-self: start; margin-top: 14px; }

/* the Excel: what a file would change, shown before anything is sent */
.xl { width: min(860px, calc(100vw - 32px)); max-width: none; max-height: min(88vh, 940px); padding: 0; border: 1px solid var(--rule); border-radius: 18px;
  background: var(--paper); color: var(--ink); box-shadow: 0 24px 70px rgba(30, 37, 34, .3); }
/* the body as tall as its content, up to the dialog's limit, then scrolling: flex-basis auto, not 0 - Safari gave a 0 basis no height at
   all (Hugo, 30.11.2026 11:18: "rāda ļoti šauri ... redzamā daļa ir tikai tik maz") */
.xl[open] { display: flex; flex-direction: column; }
.xl-head, .xl-foot { flex: none; }
.xl::backdrop { background: rgba(30, 37, 34, .4); }
.xl-head { display: flex; align-items: baseline; gap: 12px; padding: 18px 16px 14px 24px; border-bottom: 1px solid var(--rule); }
.xl-head h2 { margin: 0; font-size: 19px; letter-spacing: -.01em; }
.xl-files { flex: 1; min-width: 0; margin: 0; color: var(--ink-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.xl-head > [data-x] { margin-left: auto; }
.xl-body { flex: 1 1 auto; min-height: 0; overflow: auto; padding: 4px 24px 22px; }
.xl-body:focus { outline: none; }
.xl-sum { margin: 16px 0 0; font-size: 16px; color: var(--ink-2); }
.xl-sum b { color: var(--ink); font-weight: 650; }
.xl-note { margin: 12px 0 0; padding: 10px 14px; border-radius: 12px; background: var(--re-bg); color: var(--re-ink); }
.xl-note.bad { background: #f6e1dc; color: var(--bad); }
.xl-note.quiet { background: var(--stone); color: var(--ink-2); }
.xl h3 { margin: 24px 0 8px; font-size: 14px; font-weight: 650; color: var(--ink-2); }
.xl-hint { margin: -2px 0 8px; color: var(--ink-3); font-size: 13.5px; }
.xl-map { border: 1px solid var(--rule); border-radius: 12px; }
.xl-row { display: grid; grid-template-columns: minmax(130px, 1fr) minmax(0, 1.5fr) 210px; align-items: center; gap: 4px 14px; min-height: 48px; padding: 7px 8px 7px 14px;
  border-bottom: 1px solid var(--rule); }
.xl-row:last-child { border-bottom: 0; }
.xl-row .k { font-weight: 600; overflow-wrap: anywhere; }
.xl-row .ex { min-width: 0; color: var(--ink-3); font-size: 13.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-variant-numeric: tabular-nums; }
.xl select { width: 100%; height: 34px; padding: 0 8px; border: 1px solid var(--rule-2); border-radius: 9px; background: var(--paper); font-size: 14px; }
.xl select:focus { outline: none; border-color: var(--ink); box-shadow: 0 0 0 3px rgba(30, 37, 34, .1); }
.xl .flag { display: inline-block; margin-left: 8px; padding: 1px 8px; border-radius: 999px; background: var(--re-bg); color: var(--re-ink); font-size: 12px; font-weight: 600; }
.xl-list { list-style: none; margin: 0; padding: 0; border: 1px solid var(--rule); border-radius: 12px; font-variant-numeric: tabular-nums; }
.xl-list li { display: grid; grid-template-columns: 170px minmax(0, 1fr); gap: 2px 14px; padding: 9px 14px; border-bottom: 1px solid var(--rule); }
.xl-list li:last-child { border-bottom: 0; }
.xl-list .nm { font-weight: 600; }
.xl-list i { display: inline-block; width: 8px; height: 8px; margin: 0 6px 1px 2px; border-radius: 50%; vertical-align: middle; }
.xl-list i.available { background: var(--av); } .xl-list i.reserved { background: var(--re); } .xl-list i.sold { background: var(--so); }
.xl-foot { display: flex; justify-content: flex-end; gap: 10px; padding: 14px 24px; border-top: 1px solid var(--rule); }
.xl-foot .btn { height: 42px; padding: 0 20px; font-size: 15px; }

/* the bar's Excel: the current one downloaded or sent, a file loaded, the question beside them (what a file needs) */
.xl-pick { display: inline-flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.xl-row.wrap .ex { white-space: normal; }
/* "Nosūtīt Excel e-pastā": the addresses, the words, what goes and from whom (the form inside the dialog's own column) */
.xl-mail { width: min(560px, calc(100vw - 32px)); }
.xl-mail form { display: contents; }
.xl-mail label { display: block; margin: 16px 0 6px; font-weight: 600; font-size: 14px; }
.xl-mail label .opt { font-weight: 400; color: var(--ink-3); }
.xl-mail input, .xl-mail textarea { width: 100%; padding: 10px 12px; border: 1px solid var(--rule-2); border-radius: 10px; background: var(--paper);
  font: inherit; color: var(--ink); }
.xl-mail input { height: 44px; }
.xl-mail textarea { resize: vertical; min-height: 84px; }
.xl-mail input:focus, .xl-mail textarea:focus { outline: none; border-color: var(--ink); box-shadow: 0 0 0 3px rgba(30, 37, 34, .12); }
.xl-mail .xl-hint { margin: 6px 0 0; }
.xl-rules.xl-what { margin-top: 20px; }
.xl-mail .xl-note { margin-top: 14px; }
.ic { width: 16px; height: 16px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.xl-q { gap: 6px; font-weight: 500; }
.xl-q i { display: inline-grid; place-items: center; width: 17px; height: 17px; border: 1.5px solid currentColor; border-radius: 50%;
  font: italic 700 11px/1 Georgia, "Times New Roman", serif; }
.linkish { padding: 0; border: 0; background: none; color: var(--ink); font: inherit; font-weight: 600; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.xl-info { width: min(640px, calc(100vw - 32px)); }
.xl-rules { list-style: none; margin: 0; padding: 0; border: 1px solid var(--rule); border-radius: 12px; }
.xl-rules li { display: grid; grid-template-columns: 110px minmax(0, 1fr); gap: 14px; padding: 10px 14px; border-bottom: 1px solid var(--rule); color: var(--ink-2); }
.xl-rules li:last-child { border-bottom: 0; }
.xl-rules b { color: var(--ink); font-weight: 600; }
.xl-hint.gap { margin-top: 14px; }

/* the tabs (a developer's admin, Felsen's staff): Dzīvokļi | Lietotāji - links, so the back button goes back */
.tabs { display: flex; gap: 6px; margin: -4px 0 20px; border-bottom: 1px solid var(--rule); }
.tabs a { padding: 9px 12px 10px; margin-bottom: -1px; border-bottom: 2px solid transparent; color: var(--ink-2); font-weight: 600; text-decoration: none; }
.tabs a:hover { color: var(--ink); }
.tabs a[aria-current="page"] { color: var(--ink); border-bottom-color: var(--ink); }

/* "Lietotāji": the users and the invitations as the flats' list (a row each), the users' log beside them */
.team-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; margin-bottom: 14px; }
.team-head h1 { margin: 0; font-size: 22px; letter-spacing: -.01em; }
.team-head p { margin: 2px 0 0; color: var(--ink-2); }
.ulist { list-style: none; margin: 0; padding: 0; }
.urow { display: grid; grid-template-columns: minmax(0, 1.5fr) 168px minmax(0, 1.1fr) auto; align-items: center; gap: 6px 16px; min-height: 64px; padding: 10px 16px;
  border-bottom: 1px solid var(--rule); }
.ulist li:last-child { border-bottom: 0; }
.urow .un { display: flex; flex-wrap: wrap; align-items: center; gap: 0 8px; min-width: 0; }
.urow .un b { font-weight: 650; overflow-wrap: anywhere; }
.urow .un .ue { flex-basis: 100%; min-width: 0; color: var(--ink-2); font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.urow select { width: 100%; height: 34px; padding: 0 8px; border: 1px solid var(--rule-2); border-radius: 9px; background: var(--paper); font: inherit; font-size: 14px; color: var(--ink); }
.urow select:focus { outline: none; border-color: var(--ink); box-shadow: 0 0 0 3px rgba(30, 37, 34, .1); }
.urow select:disabled { opacity: .55; }
.urow .rtext { padding-left: 9px; color: var(--ink-2); font-size: 14px; font-weight: 600; }
.urow .us { color: var(--ink-3); font-size: 13px; line-height: 1.35; }
.urow .ua { display: flex; gap: 4px; justify-content: flex-end; }
.tag { display: inline-block; padding: 0 7px; border-radius: 999px; background: var(--stone); color: var(--ink-2); font-size: 12px; font-weight: 500; line-height: 1.6; }
.tag.warn { background: var(--re-bg); color: var(--re-ink); }
.tag.bad { background: #f6e1dc; color: var(--bad); }
.team .sub { margin: 28px 0 10px; font-size: 15px; font-weight: 650; color: var(--ink-2); }
.team .fine { margin: 18px 2px 0; color: var(--ink-3); font-size: 13px; }
.log .ch .em { display: block; color: var(--ink-3); font-size: 13.5px; }

/* "Uzaicināt": the role as two choices, each saying what it may do */
.roles { margin: 18px 0 0; padding: 0; border: 0; }
.roles legend { padding: 0; margin-bottom: 6px; font-weight: 600; font-size: 14px; }
.xl-mail label.opt-card { display: flex; gap: 12px; align-items: flex-start; margin: 0; padding: 12px 14px; border: 1px solid var(--rule-2); border-radius: 12px;
  font-weight: 400; color: var(--ink-2); cursor: pointer; }
.xl-mail label.opt-card + label.opt-card { margin-top: 8px; }
.xl-mail .opt-card input { flex: none; width: 18px; height: 18px; margin: 2px 0 0; padding: 0; accent-color: var(--ink); }
.opt-card b { display: block; color: var(--ink); font-weight: 600; }
.opt-card:has(input:checked) { border-color: var(--ink); box-shadow: inset 0 0 0 1px var(--ink); }
.opt-card:has(input:focus-visible) { outline: 2px solid var(--ink); outline-offset: 2px; }
.u-del { width: min(500px, calc(100vw - 32px)); }

/* "3D lapā": the line to copy, where it works; Felsen's own form under it */
.site { max-width: 860px; }
.sheet.pad { padding: 6px 22px 22px; }
.sheet.pad + .sheet.pad, .site .sheet.pad + .fine { margin-top: 16px; }
.site .sub { margin: 22px 0 8px; font-size: 15px; font-weight: 650; color: var(--ink); }
.site .sub.first { margin-top: 18px; }
.site .sub .tag { margin-left: 6px; vertical-align: 1px; }
.site .xl-sum { margin: 18px 0 4px; font-size: 16px; color: var(--ink-2); }
.site .xl-sum b { color: var(--ink); font-weight: 650; }
.site .xl-hint { margin: 0 0 10px; color: var(--ink-3); font-size: 13.5px; }
.site .xl-hint code { padding: 1px 5px; border-radius: 6px; background: var(--stone); color: var(--ink-2); font: 12.5px ui-monospace, SFMono-Regular, Menlo, monospace; }
.line { display: flex; align-items: center; gap: 12px; margin: 4px 0 10px; padding: 12px 12px 12px 16px; border-radius: 12px; background: #f4f5f3; border: 1px solid var(--rule); }
.line code { flex: 1; min-width: 0; overflow-x: auto; white-space: nowrap; color: var(--ink); font: 13.5px/1.5 ui-monospace, SFMono-Regular, Menlo, monospace; }
.line .btn { flex: none; }
.site-where a { color: var(--ink); overflow-wrap: anywhere; }
.site-edit label { display: block; margin: 14px 0 6px; font-weight: 600; font-size: 14px; }
.site-edit input { width: 100%; height: 42px; padding: 0 12px; border: 1px solid var(--rule-2); border-radius: 10px; background: var(--paper); font: inherit; color: var(--ink); }
.site-edit input:focus { outline: none; border-color: var(--ink); box-shadow: 0 0 0 3px rgba(30, 37, 34, .12); }
.site-edit .xl-hint { margin: 6px 0 0; }
.site-edit .xl-note { margin-top: 12px; }
.site-go { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 16px; margin-top: 18px; }
.site-go .fine { margin: 0; color: var(--ink-3); font-size: 13px; }
.site > .fine, .site .fine { color: var(--ink-3); font-size: 13px; }
.site .fine a, .site .note a { color: var(--ink); }

/* the toast: what was just done, and its undo */
.toast { position: fixed; left: 50%; bottom: max(22px, env(safe-area-inset-bottom)); transform: translateX(-50%); z-index: 9; display: flex; align-items: center; gap: 14px;
  width: max-content; max-width: calc(100vw - 32px); padding: 11px 12px 11px 18px; border-radius: 14px; background: var(--ink); color: #fff; box-shadow: 0 8px 28px rgba(30, 37, 34, .28); }
.toast.bad { background: var(--bad); }
.toast button { height: 32px; padding: 0 12px; border: 0; border-radius: 9px; background: rgba(255, 255, 255, .14); color: #fff; font-weight: 600; cursor: pointer; }
.toast button:hover { background: rgba(255, 255, 255, .24); }
@media (prefers-reduced-motion: no-preference) {
  .toast { animation: rise .22s cubic-bezier(.22, .61, .36, 1); }
  @keyframes rise { from { opacity: 0; transform: translate(-50%, 10px); } }
  .seg button { transition: background-color .15s, color .15s; }
}

/* ---------- smaller screens: the log under the list; on a phone each flat on two lines */
@media (max-width: 1180px) {
  .grid { grid-template-columns: minmax(0, 1fr); }
  .log { position: static; max-height: none; }
  .row, .head { grid-template-columns: 50px 50px 60px 70px 286px minmax(110px, 1fr) minmax(120px, 1fr); }
}
@media (max-width: 860px) {
  .top .proj span, .who { display: none; }
  .head { display: none; }
  .row { grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: "no pr" "meta pr" "seg seg" "last last"; row-gap: 2px; padding: 12px 14px; }
  .row .no { grid-area: no; } .row .no::before { content: "Dz. "; font-weight: 650; }
  .row .meta { display: block; grid-area: meta; color: var(--ink-2); font-size: 14px; }
  .row .fl, .row .rm, .row .ar { display: none; }
  .row .seg { grid-area: seg; margin-top: 10px; }
  .row .pr { grid-area: pr; }
  .row .last { grid-area: last; margin-top: 6px; }
  .row .pr input { border-color: var(--rule); }
  .find { margin-left: 0; width: 100%; }
  .bar .counts { width: 100%; }
  .urow { grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: "un ua" "ur ur" "us us"; padding: 12px 14px; }
  .urow .un { grid-area: un; } .urow .ua { grid-area: ua; } .urow .ur { grid-area: ur; margin-top: 4px; } .urow .us { grid-area: us; }
  .urow .rtext { padding-left: 0; }
  .urow.inv .ua { flex-direction: column; align-items: flex-end; }
  .line { flex-direction: column; align-items: stretch; }
  .line .btn { justify-content: center; }
  .sheet.pad { padding: 4px 16px 18px; }
}
@media (max-width: 700px) {
  .xl { width: 100vw; height: 100dvh; max-height: none; border: 0; border-radius: 0; }
  .xl-body { padding: 4px 16px 18px; }
  .xl-head, .xl-foot { padding-left: 16px; padding-right: 16px; }
  .xl-row { grid-template-columns: minmax(0, 1fr) 156px; }
  .xl-row .ex { grid-column: 1; grid-row: 2; white-space: normal; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
  .xl-row.wrap .ex { -webkit-line-clamp: 4; }
  .xl-row select { grid-column: 2; grid-row: 1 / span 2; }
  .xl-list li, .xl-rules li { grid-template-columns: minmax(0, 1fr); gap: 2px; }
  .xl-pick { width: 100%; display: grid; grid-template-columns: 1fr 1fr; }
  .xl-pick .btn { justify-content: center; }
  .xl-pick .lg { display: none; }
  .xl-foot .btn { flex: 1; justify-content: center; }
}
@media (max-width: 420px) {
  .top { gap: 8px; }
  .top .btn.line { display: none; }
  .seg button { font-size: 12.5px; padding: 0 4px; }
}
