/* CeVine · Comunitate — package B: the Comunitate tab (feed, chat), the account sheets, settings, legal pages, the
   notice form, the chat rows on the cards. Built on app.css + crowd.css tokens (light, dark ×2 come from there);
   values follow crowd/ux/mock/crowd.css (screens 12–24). */

/* ---------- glyph chips (also used by the feed rows, settings, sheets) ---------- */
.gl { width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; flex: none; }
.gl .ci { width: 20px; height: 20px; }
.gl.l1 { color: var(--c1); background: var(--c1-bg); } .gl.l2 { color: var(--c2); background: var(--c2-bg); }
.gl.l3 { color: var(--c3); background: var(--c3-bg); } .gl.l4 { color: var(--c4); background: var(--c4-bg); }
.gl.ctl { color: var(--ctl); background: var(--ctl-bg); } .gl.warn { color: var(--warn); background: var(--warn-bg); }
.gl.ok { color: var(--ok); background: var(--ok-bg); } .gl.danger { color: var(--danger); background: var(--danger-bg); }
.gl.info { color: var(--info); background: var(--info-bg); } .gl.off { color: var(--off); background: var(--off-bg); }

/* ---------- the Comunitate header: title, gear, [Acum] [Chat] ---------- */
.ch-head { display: flex; align-items: center; gap: 10px; }
.ch-head h1 { flex: 1; min-width: 0; }
.ch-head .gear { position: relative; width: 44px; height: 44px; justify-content: center; align-items: center; padding: 0; color: var(--text); border-radius: 22px; background: var(--surface); border: 1px solid var(--line); flex: none; }
.ch-seg a { display: inline-flex; align-items: center; justify-content: center; gap: 5px; min-height: 36px; }
.ch-seg .cnt { display: inline-grid; place-items: center; min-width: 19px; height: 19px; padding: 0 5px; border-radius: 10px; background: var(--brand); color: #fff; font-size: 11.5px; font-weight: 800; }
.comm-top { margin-bottom: 4px; }

/* ---------- "Pulsul orașului" ---------- */
.pulsecard { padding: 12px 14px; margin-top: 4px; }
.pulsecard .ph { display: flex; align-items: center; gap: 8px; font-size: 12.5px; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: .05em; }
.pulsecard .pk { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-top: 8px; }
.pulsecard .pk div { font-size: 12.5px; color: var(--muted); line-height: 1.3; min-width: 0; }
.pulsecard .pk b { display: block; font-size: 21px; font-weight: 820; color: var(--text); letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.pulsecard .pm { margin-top: 6px; font-size: 12.5px; color: var(--info); font-weight: 650; }
.fchips2 .chip { min-height: 38px; padding: 6px 13px; }

/* ---------- feed items ---------- */
.flist { overflow: hidden; }
.fitem { position: relative; display: flex; gap: 12px; padding: 12px 14px; }
.fitem + .fitem { border-top: 1px solid var(--line); }
.fitem .grow { min-width: 0; }
.fitem .t { display: block; font-weight: 700; font-size: 15px; line-height: 1.32; color: var(--text); text-decoration: none; }
.fitem .t::after { content: ''; position: absolute; inset: 0; z-index: 0; } /* the whole row opens the card */
.fitem .w { color: var(--muted); font-size: 13.5px; margin-top: 3px; line-height: 1.35; display: flex; flex-wrap: wrap; align-items: center; gap: 4px; }
.fitem .w .ci { color: var(--muted); }
.fitem .m { display: flex; flex-wrap: wrap; align-items: center; gap: 5px 8px; margin-top: 6px; font-size: 12.5px; color: var(--muted); }
.fitem .vote, .fitem .m .badge { position: relative; z-index: 1; }
.fitem.expired { opacity: .55; }
.fitem.aging .t, .fitem.aging .gl { opacity: .7; }
.fitem .you, .sys .you { color: var(--info); font-weight: 700; }
.src { display: inline-flex; align-items: center; gap: 4px; font-size: 11.5px; font-weight: 720; padding: 1px 7px; border-radius: 999px; white-space: nowrap; }
.src .ci { width: 12px; height: 12px; }
.src.riders { background: var(--info-bg); color: var(--info); } .src.official { background: var(--warn-bg); color: var(--warn); }
.src.auto { background: var(--off-bg); color: var(--off); } .src.chat { background: var(--surface-2); color: var(--text); }
.tag.ctl-tag { background: var(--ctl-bg); color: var(--ctl); font-size: 11.5px; padding: 1px 7px; }
.vote { display: flex; gap: 8px; margin-top: 9px; flex-wrap: wrap; align-items: center; }
.vote .q { flex-basis: 100%; font-size: 13.5px; font-weight: 700; color: var(--text); }
.vote button { position: relative; display: inline-flex; align-items: center; gap: 6px; min-height: 38px; padding: 0 13px; border-radius: 12px; border: 1px solid var(--line); background: var(--surface); font-weight: 650; font-size: 14px; cursor: pointer; }
.vote button::after { content: ''; position: absolute; inset: -4px -2px; }
.vote button .ci { width: 16px; height: 16px; }
.vote .yes { color: var(--ok); } .vote .no { color: var(--text); }
.vote button[disabled] { opacity: .5; }
.vote.done { color: var(--ok); font-size: 13px; font-weight: 650; gap: 6px; }
.empty-art { display: grid; place-items: center; width: 56px; height: 56px; margin: 0 auto 10px; border-radius: 18px; background: var(--surface-2); color: var(--muted); }
.empty-art .ci { width: 28px; height: 28px; }
.feed-empty b { color: var(--text); }
.btnrow.center { justify-content: center; }
.ctrl-foot { margin-top: 8px; }
.sorban { display: flex; align-items: center; gap: 10px; width: 100%; margin: 6px 0 4px; padding: 10px 12px; border: 0; border-radius: 12px; background: var(--warn-bg); color: var(--warn); font: inherit; font-size: 14px; font-weight: 600; text-align: left; cursor: pointer; }
.sorban .ci { flex: none; }

/* ---------- chat: the page is a column (header · the log scrolls · the composer) ---------- */
#page.chatpage { overflow: hidden; display: flex; flex-direction: column; padding-bottom: 0; }
#page.chatpage > .page-inner { flex: 1 1 auto; min-height: 0; width: 100%; display: flex; flex-direction: column; }
.chat-top { flex: none; border-bottom: 1px solid var(--line); margin: 0 -16px; padding: 0 16px 6px; background: var(--bg); }
.chat-top h1 { font-size: 26px; }
.thread-top .ch-head { margin-top: 2px; }
.thread-top .ch-head h1 { font-size: 23px; margin: 0; }
.seg-body { flex: 1 1 auto; min-height: 0; display: flex; flex-direction: column; }
#page:not(.chatpage) .seg-body { display: block; }
.chans { margin: 6px 0 2px; }
.chans .chip { min-height: 38px; padding: 4px 12px 4px 6px; }
.chans .chip.plain { padding: 6px 13px; }
.chans .chip .n { color: var(--muted); font-weight: 650; }
.chans .chip.sel .n { color: inherit; }
.chat-meta { display: flex; align-items: center; gap: 4px; font-size: 12.5px; color: var(--muted); margin: 2px 2px 0; }
.cth { flex: 1 1 auto; min-height: 0; display: flex; flex-direction: column; position: relative; }
.cbars:empty { display: none; }
.chat-scroll { flex: 1 1 auto; min-height: 0; overflow-y: auto; overscroll-behavior: contain; -webkit-overflow-scrolling: touch; margin: 0 -16px; padding: 4px 16px 10px; }
.chat-scroll > .cs-in { min-height: 100%; display: flex; flex-direction: column; justify-content: flex-end; }
.msgs { display: flex; flex-direction: column; padding: 2px 0 6px; }
.msg { display: flex; gap: 10px; padding: 8px 6px 8px 4px; border-radius: 14px; -webkit-touch-callout: none; -webkit-user-select: none; user-select: none; }
.msg .av { width: 34px; height: 34px; border-radius: 50%; flex: none; display: grid; place-items: center; color: #fff; font-weight: 800; font-size: 13px; }
.msg .av .ci { width: 19px; height: 19px; }
.av.m { font-size: 14px; font-weight: 900; }
.av.sm { width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; color: #fff; font-weight: 800; font-size: 13px; flex: none; }
.msg .b { flex: 1; min-width: 0; }
.msg .h { display: flex; align-items: baseline; gap: 6px; font-size: 13px; min-width: 0; }
.msg .h b { font-weight: 760; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.msg .h time { color: var(--muted); font-size: 12px; flex: none; }
.msg .h .me { font-size: 11px; font-weight: 750; color: var(--info); background: var(--info-bg); padding: 0 6px; border-radius: 6px; flex: none; }
.msg .mact { position: relative; margin-left: auto; align-self: center; flex: none; width: 28px; height: 22px; border: 0; border-radius: 8px; background: none; color: var(--faint); display: grid; place-items: center; cursor: pointer; }
.msg .mact::after { content: ''; position: absolute; inset: -11px -8px; }
.msg .mact .ci { width: 18px; height: 18px; }
.msg .tx { font-size: 15.5px; line-height: 1.4; margin-top: 2px; overflow-wrap: anywhere; white-space: pre-line; }
.msg .tx.gone, .msg .tx.hid { color: var(--muted); font-style: italic; font-size: 14px; display: flex; align-items: center; gap: 6px; }
.msg .tx.hid .ci { width: 16px; height: 16px; flex: none; }
.msg.mine { background: var(--mine); }
.msg.hl { background: color-mix(in srgb, var(--warn) 14%, var(--surface)); transition: background 1.2s; }
.msg.pend .tx { opacity: .8; }
.msg .state { font-size: 12px; color: var(--muted); margin-top: 4px; display: flex; align-items: center; gap: 5px; }
.msg .state .ci { width: 13px; height: 13px; flex: none; }
.msg .state.fail { color: var(--danger); font-weight: 650; }
.msg .hidnote { display: flex; align-items: flex-start; gap: 6px; margin-top: 5px; font-size: 13px; color: var(--warn); font-weight: 600; }
.msg .hidnote .ci { width: 14px; height: 14px; margin-top: 2px; flex: none; }
.ctx { position: relative; display: inline-flex; align-items: center; gap: 6px; max-width: 100%; margin-top: 5px; padding: 3px 9px 3px 4px; border-radius: 9px; background: var(--surface-2); border: 1px solid var(--line); font-size: 13px; font-weight: 650; text-decoration: none; color: var(--text); vertical-align: middle; }
.ctx span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ctx .badge { flex: none; }
.ctx .pinic { width: 21px; height: 21px; border-radius: 6px; display: grid; place-items: center; background: var(--surface); flex: none; }
.ctx .pinic .ci { width: 14px; height: 14px; }
.rq { margin: 4px 0 2px; padding: 2px 0 2px 9px; border-left: 3px solid var(--surface-3); font-size: 13px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rq b { color: var(--text); font-weight: 700; }
.rx { display: flex; gap: 6px; margin-top: 6px; flex-wrap: wrap; }
.rxb { position: relative; height: 28px; padding: 0 9px; border-radius: 14px; border: 1px solid var(--line); background: var(--surface); font-size: 13px; font-weight: 700; color: var(--text); display: inline-flex; align-items: center; gap: 4px; cursor: pointer; }
.rxb::after { content: ''; position: absolute; inset: -8px -4px; }
.rxb.on { border-color: color-mix(in srgb, var(--info) 55%, transparent); background: var(--info-bg); color: var(--info); }
.sys { display: flex; gap: 10px; align-items: flex-start; margin: 6px 0; padding: 9px 12px; border-radius: 13px; background: var(--surface); border: 1px solid var(--line); font-size: 13.5px; line-height: 1.4; text-decoration: none; color: inherit; }
.sys .gl { width: 28px; height: 28px; border-radius: 8px; } .sys .gl .ci { width: 17px; height: 17px; }
.sys .grow { min-width: 0; }
.sys .grow b { font-weight: 720; }
.sys .sw2 { color: var(--muted); }
.sys .sw2 .badge { vertical-align: 1px; }
.sys .m2 { color: var(--muted); font-size: 12.5px; margin-top: 3px; display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.pinbox { margin: 8px 0 4px; padding: 0 2px; overflow: hidden; }
.pinbox .sys { border: 0; margin: 0; border-radius: 0; background: none; }
.pinbox .sys + .sys { border-top: 1px solid var(--line); }
.daysep { display: flex; align-items: center; gap: 10px; font-size: 12px; color: var(--muted); font-weight: 700; margin: 8px 0 4px; }
.daysep::before, .daysep::after { content: ''; flex: 1; height: 1px; background: var(--line); }
.newpill { position: sticky; bottom: 8px; z-index: 3; display: flex; align-items: center; gap: 6px; width: max-content; height: 34px; margin: 4px auto 0; padding: 0 14px; border-radius: 17px; border: 0; background: var(--info); color: var(--surface); font-weight: 700; font-size: 13.5px; box-shadow: var(--shadow-2); cursor: pointer; }
.newpill .ci { width: 16px; height: 16px; }
.older-btn { display: flex; margin: 8px auto 2px; }
.cold { margin-top: 10px; }
.cold b { color: var(--text); }
.cold .cold-s { margin-top: 4px; }
.starters { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; margin: 12px 0 4px; }
.starters button { min-height: 40px; padding: 0 14px; border-radius: 20px; border: 1px solid var(--line); background: var(--surface); font-weight: 650; font-size: 14px; color: var(--text); cursor: pointer; }

/* ---------- the composer ---------- */
.composer { flex: none; position: relative; z-index: 3; background: var(--bg); margin: 0 -16px; padding: 8px 12px 10px; border-top: 1px solid var(--line); }
.composer .row { display: flex; align-items: flex-end; gap: 8px; }
.composer .att { position: relative; width: 44px; height: 44px; border-radius: 22px; border: 1px solid var(--line); background: var(--surface); color: var(--text); display: grid; place-items: center; flex: none; cursor: pointer; }
.composer .att .ci { width: 21px; height: 21px; }
.composer .att.on { color: var(--info); border-color: color-mix(in srgb, var(--info) 50%, var(--line)); background: var(--info-bg); }
.composer .field { flex: 1; min-width: 0; min-height: 44px; max-height: 120px; border-radius: 22px; border: 1px solid var(--line); background: var(--surface); padding: 11px 15px; font: inherit; font-size: 16px; line-height: 1.35; color: var(--text); resize: none; outline: none; overflow-y: auto; }
.composer .field::placeholder { color: var(--faint); }
.composer .field:focus { border-color: color-mix(in srgb, var(--info) 45%, var(--line)); }
.composer .send { width: 44px; height: 44px; border-radius: 22px; border: 0; background: var(--fab-bg); color: #fff; display: grid; place-items: center; flex: none; position: relative; font-weight: 800; font-size: 14px; font-variant-numeric: tabular-nums; cursor: pointer; }
.composer .send .ci { width: 22px; height: 22px; }
.composer .send[disabled] { background: var(--surface-3); color: var(--muted); cursor: default; }
.composer .ctxsel, .composer .replybar { display: flex; align-items: center; gap: 8px; margin: 0 0 8px 2px; font-size: 13px; color: var(--muted); min-width: 0; }
.composer .replybar .grow { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.composer .replybar .ci { flex: none; }
.composer .ctxsel .ctx { margin-top: 0; min-width: 0; }
.composer .x { position: relative; width: 28px; height: 28px; border-radius: 14px; border: 0; background: var(--surface-2); color: var(--muted); display: grid; place-items: center; flex: none; cursor: pointer; }
.composer .x::after { content: ''; position: absolute; inset: -8px; }
.composer .cnt { font-size: 12px; color: var(--muted); text-align: right; margin: 4px 4px 0 0; }
.composer .cnt.warn { color: var(--warn); font-weight: 700; }
.ferr { margin: 0 2px 8px; font-size: 13px; line-height: 1.4; font-weight: 600; }
.ferr.bad { color: var(--danger); }
.ferr.note { color: var(--muted); }
.ferr .masked { display: block; margin-top: 3px; color: var(--text); font-weight: 500; }
.cbar { display: flex; gap: 9px; align-items: flex-start; padding: 9px 12px; border-radius: 12px; font-size: 13.5px; font-weight: 600; line-height: 1.4; margin: 6px 0; }
.cbar .ci { width: 18px; height: 18px; margin-top: 1px; flex: none; }
.cbar.off { background: var(--off-bg); color: var(--off); } .cbar.slow { background: var(--info-bg); color: var(--info); }
.cbar.ban { background: var(--danger-bg); color: var(--danger); } .cbar.warn { background: var(--warn-bg); color: var(--warn); }
.cbar a { color: inherit; font-weight: 750; }
.composer .cbar.slow { margin: 0 0 8px; }
.composer.locked { padding-top: 10px; }
.composer.locked .cbar { margin: 0; }
/* typing in the composer (kb.js): the page ends at the keyboard, the tab bar steps aside */
html.ptyping .tabbar { visibility: hidden; }
html.ptyping #page { top: var(--vv-top, 0px); bottom: var(--kb, 0px); }
html.ptyping #page.chatpage { padding-top: 8px; }

/* ---------- chat rows on the cards (slot fills) ---------- */
.cv-chatrow { display: flex; align-items: center; gap: 10px; min-height: 48px; margin: 10px 0 4px; padding: 10px 14px; border-radius: var(--r); border: 1px solid var(--line); background: var(--surface); color: var(--info); font-weight: 650; font-size: 14.5px; text-decoration: none; }
.cv-chatrow .ci { flex: none; }
.cv-chatrow .muted { font-weight: 500; }
.cv-chatrow .chev { color: var(--faint); font-size: 20px; line-height: 1; }
.cv-mchat .ci { width: 16px; height: 16px; }

/* ---------- sheets (overlay.js): actions, flag reasons, 112, first message, line picker ---------- */
.asheet .quote { padding: 10px 12px; border-radius: 12px; background: var(--surface-2); font-size: 14px; line-height: 1.45; margin: 0 44px 8px 0; overflow-wrap: anywhere; }
.asheet .rxrow { display: flex; gap: 8px; padding: 6px 2px 12px; border-bottom: 1px solid var(--line); }
.asheet .rxrow button { height: 44px; padding: 0 16px; border-radius: 22px; border: 1px solid var(--line); background: var(--surface-2); font-size: 16px; font-weight: 700; display: inline-flex; align-items: center; gap: 8px; cursor: pointer; color: var(--text); }
.asheet .rxrow button.on { background: var(--info-bg); color: var(--info); border-color: color-mix(in srgb, var(--info) 45%, var(--line)); }
.asheet .act button { display: flex; align-items: center; gap: 14px; width: 100%; min-height: 54px; border: 0; background: none; font-size: 16px; font-weight: 600; color: var(--text); text-align: left; padding: 0 4px; cursor: pointer; }
.asheet .act button + button { border-top: 1px solid var(--line); }
.asheet .act button .ci { width: 22px; height: 22px; color: var(--muted); }
.asheet .act button.danger, .asheet .act button.danger .ci { color: var(--danger); }
.ropts { margin-top: 10px; overflow: hidden; }
.ropts button { display: flex; align-items: center; gap: 12px; width: 100%; min-height: 56px; padding: 9px 14px; border: 0; background: none; text-align: left; color: var(--text); font-size: 15.5px; font-weight: 650; cursor: pointer; }
.ropts button + button { border-top: 1px solid var(--line); }
.ropts .chev { color: var(--faint); font-size: 20px; }
.rnotice { display: flex; gap: 10px; align-items: flex-start; padding: 10px 12px; border-radius: 12px; background: var(--info-bg); color: var(--info); font-size: 13.5px; font-weight: 600; margin: 4px 0 12px; line-height: 1.45; }
.rnotice.danger { background: var(--danger-bg); color: var(--danger); }
.rnotice .ci { width: 18px; height: 18px; margin-top: 1px; flex: none; }
.rhint { font-size: 13px; color: var(--muted); text-align: center; margin: 12px 4px 2px; line-height: 1.45; }
.lnk { border: 0; background: none; padding: 0; font: inherit; color: var(--info); font-weight: 650; cursor: pointer; text-decoration: none; }
.lnk2 { display: block; width: 100%; margin-top: 4px; min-height: 44px; border: 0; background: none; color: var(--info); font: inherit; font-weight: 650; font-size: 15px; cursor: pointer; }
.ov .btn.full + .btn.full { margin-top: 8px; }
.call112 { background: var(--danger); }
.btn.dangerbtn { background: var(--danger); color: #fff; border-color: transparent; }
.btn.dangerbtn[disabled] { opacity: .45; }
.obs .who { display: flex; align-items: center; gap: 12px; padding: 12px; border-radius: 16px; background: var(--surface-2); margin-top: 6px; }
.obs .who .av { width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; color: #fff; flex: none; font-weight: 800; }
.obs .who .av .ci { width: 24px; height: 24px; }
.obs .who b { display: block; font-size: 17px; font-weight: 760; overflow-wrap: anywhere; }
.obs .who span { font-size: 13px; color: var(--muted); }
.obs .who .acts { margin-left: auto; display: flex; gap: 6px; }
.ibtn { position: relative; width: 44px; height: 44px; border-radius: 22px; border: 1px solid var(--line); background: var(--surface); color: var(--text); display: grid; place-items: center; flex: none; cursor: pointer; }
.ibtn .ci { width: 21px; height: 21px; }
.fmren { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.fmren .tin { flex: 1; min-width: 180px; }
.fmren .nstat { flex-basis: 100%; }
.obs .rules { margin: 14px 0 0; padding: 0; list-style: none; }
.obs .rules li { display: flex; gap: 12px; align-items: flex-start; padding: 9px 0; font-size: 14.5px; line-height: 1.42; }
.obs .rules li + li { border-top: 1px solid var(--line); }
.obs .rules .gl { width: 30px; height: 30px; border-radius: 9px; } .obs .rules .gl .ci { width: 18px; height: 18px; }
.priv { display: flex; gap: 10px; align-items: flex-start; margin: 12px 0 14px; padding: 10px 12px; border-radius: 12px; background: var(--info-bg); color: var(--info); font-size: 13px; line-height: 1.45; font-weight: 550; }
.priv .ci { width: 18px; height: 18px; flex: none; margin-top: 1px; }
.pickov .pick-q { margin: 4px 0 8px; }
.pick-list { overflow: hidden; }
.pick { display: flex; align-items: center; gap: 12px; width: 100%; min-height: 52px; padding: 8px 14px; border: 0; background: none; text-align: left; color: var(--text); cursor: pointer; font: inherit; }
.pick + .pick { border-top: 1px solid var(--line); }
.pick .name { display: block; font-weight: 700; font-size: 15px; }
.pick .sub { display: block; font-size: 12.5px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pick .chev { color: var(--faint); font-size: 20px; }
.sor p { margin: 8px 0; }

/* ---------- onboarding ("Alege un nume ca să trimiți") ---------- */
.onb .pend { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 14px; background: var(--surface-2); margin-top: 4px; }
.onb .pend .grow b { display: block; font-size: 15px; overflow-wrap: anywhere; }
.onb .pend .grow span { font-size: 12.5px; color: var(--muted); }
.onb .why { margin: 12px 2px 6px; font-size: 14.5px; line-height: 1.5; }
.fld { display: block; font-size: 13px; font-weight: 700; color: var(--muted); margin: 12px 2px 6px; }
.namerow { display: flex; gap: 8px; align-items: center; }
.tin { width: 100%; min-width: 0; min-height: 46px; padding: 11px 14px; border-radius: 14px; border: 1px solid var(--line); background: var(--surface); color: var(--text); font: inherit; font-size: 16px; outline: none; }
.tin:focus { border-color: color-mix(in srgb, var(--info) 55%, var(--line)); }
textarea.tin { resize: vertical; line-height: 1.4; }
.mono, .tin.mono { font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace; letter-spacing: .04em; }
.hint { font-size: 12.5px; color: var(--muted); margin: 6px 2px 0; line-height: 1.4; }
.nstat { min-height: 19px; font-size: 13px; font-weight: 650; margin: 4px 2px 0; }
.nstat.ok { color: var(--ok); } .nstat.err { color: var(--danger); } .nstat.wait { color: var(--muted); font-weight: 500; }
.onb-notice { margin: 12px 0 0; }
.chk { display: flex; align-items: flex-start; gap: 10px; margin: 12px 2px 0; font-size: 14.5px; line-height: 1.45; cursor: pointer; }
.chk input { width: 22px; height: 22px; margin: 0; flex: none; accent-color: var(--brand); }
.privl { font-size: 13px; color: var(--muted); margin: 10px 2px 12px; line-height: 1.45; }
.ts-box:empty { display: none; }
.ts-box { margin: 6px 0; }
.ov .err { margin: 8px 0; }
.btn.busy { opacity: .8; }
.onb-sub h2 { font-size: 20px; margin: 4px 0 8px; }
.subback { display: inline-flex; align-items: center; gap: 1px; min-height: 40px; padding: 0 10px 0 0; margin-left: -6px; border: 0; background: none; color: var(--info); font: inherit; font-weight: 650; font-size: 15.5px; cursor: pointer; }
.subback svg { width: 22px; height: 22px; }
.onb-sub .prose { padding: 0 2px; }

/* ---------- settings ---------- */
.setlist { overflow: hidden; }
.setrow { display: flex; align-items: center; gap: 12px; width: 100%; padding: 12px 14px; min-height: 56px; border: 0; background: none; color: var(--text); font: inherit; text-align: left; text-decoration: none; }
button.setrow, a.setrow { cursor: pointer; }
.setrow + .setrow { border-top: 1px solid var(--line); }
.setrow .grow .mt { font-weight: 650; font-size: 15.5px; display: flex; align-items: center; gap: 8px; }
.setrow .grow .ms { font-size: 13px; color: var(--muted); margin-top: 2px; line-height: 1.4; }
.setrow .chev { color: var(--faint); font-size: 20px; }
.setrow.indent { padding-left: 26px; min-height: 50px; }
.setrow.indent .gl { width: 28px; height: 28px; border-radius: 8px; }
.setrow.sub { min-height: 44px; padding-bottom: 6px; }
.setrow.danger .mt { color: var(--danger); }
.setrow.btns { flex-wrap: wrap; gap: 8px; min-height: 0; padding-top: 4px; }
.swc { position: relative; flex: none; display: inline-flex; cursor: pointer; }
.swc input { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: pointer; z-index: 1; }
.swc .swt { position: relative; width: 51px; height: 31px; border-radius: 16px; background: var(--surface-3); transition: background .2s; }
.swc .swt::after { content: ''; position: absolute; top: 2px; left: 2px; width: 27px; height: 27px; border-radius: 50%; background: #fff; box-shadow: 0 2px 4px rgba(0, 0, 0, .25); transition: transform .2s; }
.swc input:checked + .swt { background: #34c759; }
.swc input:checked + .swt::after { transform: translateX(20px); }
.swc input:focus-visible + .swt { outline: 2px solid var(--info); outline-offset: 2px; }
.swc input[disabled] + .swt { opacity: .45; }
select.timebox { height: 38px; padding: 0 8px; border-radius: 10px; border: 0; background: var(--surface-2); color: var(--text); font: inherit; font-weight: 700; font-variant-numeric: tabular-nums; font-size: 15px; }
.softask { padding: 14px; display: flex; gap: 12px; align-items: flex-start; border-color: color-mix(in srgb, var(--info) 35%, var(--line)); margin-bottom: 4px; }
.softask .gl { width: 40px; height: 40px; border-radius: 12px; } .softask .gl .ci { width: 22px; height: 22px; }
.softask .t { font-weight: 720; font-size: 15.5px; line-height: 1.35; }
.softask .s { font-size: 13.5px; color: var(--muted); margin-top: 3px; line-height: 1.4; }
.softask .btnrow { margin-top: 10px; }
.saov .softask { margin-right: 36px; }
.recprompt { margin-top: 10px; }
.steps { overflow: hidden; }
.stepnote { display: flex; gap: 12px; align-items: flex-start; padding: 12px 14px; line-height: 1.45; }
.stepnote .num { width: 26px; height: 26px; border-radius: 13px; background: var(--info-bg); color: var(--info); font-weight: 800; font-size: 13px; display: grid; place-items: center; flex: none; }
.stepnote + .stepnote { border-top: 1px solid var(--line); }
.ios-share { display: inline-grid; place-items: center; width: 22px; height: 22px; vertical-align: -5px; color: var(--info); }
.code.mono { margin: 6px 0 10px; padding: 14px; border-radius: 14px; background: var(--surface-2); font-size: 19px; font-weight: 750; text-align: center; overflow-wrap: anywhere; user-select: all; -webkit-user-select: all; }

/* ---------- legal pages, the notice form ---------- */
.legal { padding: 6px 16px 10px; overflow-wrap: anywhere; }
.legal h3 { font-size: 15.5px; margin: 16px 0 6px; }
.legal ol, .legal ul { padding-left: 20px; margin: 8px 0; }
.legal li { margin: 6px 0; }
.legal-links { margin-top: 12px; }
.nform { padding: 6px 14px 14px; }
.nform .tin + .tin { margin-top: 8px; }
.req { color: var(--danger); }
.fset { border: 0; margin: 0; padding: 0; min-width: 0; }
.fset legend { padding: 0; }
.fgrp { display: flex; flex-direction: column; gap: 2px; margin: 4px 0 8px; font-size: 14px; }
.fgrp b { font-size: 13.5px; margin: 4px 2px; }
.fline { display: flex; gap: 18px; }
.rad { display: flex; align-items: center; gap: 10px; min-height: 40px; font-size: 14.5px; cursor: pointer; }
.rad input { width: 20px; height: 20px; margin: 0; accent-color: var(--brand); flex: none; }
.nform .btn.full { margin-top: 14px; }
.nsent { padding: 6px 14px; font-size: 15px; line-height: 1.5; }

/* ---------- Linii: the fleet pages; a line with ticket inspectors reported ---------- */
.fleetcard { margin-bottom: 4px; }
.ctl-txt { color: var(--ctl); font-weight: 650; }

/* ---------- the map filter card: "Semne pe hartă" ---------- */
.filters-title.lay-title { margin-top: 10px; padding-top: 10px; border-top: 1px solid var(--line); }
.lay-ic { width: 18px; height: 18px; border-radius: 50%; display: grid; place-items: center; color: #fff; border: 2px solid #fff; box-shadow: 0 1px 3px rgba(0, 0, 0, .35); flex: none; }
.lay-ic.k-ctl { background: var(--map-ink); } .lay-ic.k-c4 { background: var(--map-c4); } .lay-ic.k-am { background: var(--map-amber); }
.lay-ic.k-cam { background: var(--surface); color: var(--info); border-color: var(--info); border-radius: 6px; width: 20px; height: 20px; }
.legend-lnk { display: block; margin: 6px 0 2px; font-size: 13.5px; }

@media (prefers-reduced-motion: reduce) {
  .swc .swt, .swc .swt::after, .msg.hl { transition: none; }
}
@media (min-width: 900px) {
  #page.chatpage { padding-bottom: 0; }
}
