/* Colshare Business's desk (colshare.app/birou/): an app, on Colshare's night with the one ochre action
   (../acte/acte.css holds the palette, type and buttons). A sidebar on a computer, a tab bar on a phone; the client list
   beside the chosen client; dialogs for everything that is a step; toasts for what happened. */
:root {
  --lateral: #161717;
  --ridicat: #232426;
  --ridicat-2: #2b2c2f;
  --ocru-fond: rgba(226, 165, 43, 0.14);
  --verde: #8fcf9c;
  --umbra-dlg: 0 24px 60px rgba(0, 0, 0, 0.5);
  --raza: 12px;
}
#birou { min-height: 100vh; }
body { background: var(--hartie); }
button { font: inherit; color: inherit; }
svg:not([width]) { width: 18px; height: 18px; }
.marca-birou svg { flex: none; }
.mono { font-family: var(--mono); letter-spacing: 0.02em; }
.centru { text-align: center; }
.mic { font-size: 0.875rem; color: var(--estompat); }
.mic a, .sub a { color: var(--ocru-text); }

/* ---------------------------------------------------------------- pieces */
.marca-birou { display: inline-flex; align-items: center; gap: 8px; color: var(--cerneala); }
.business { font: 500 0.5625rem/1 var(--mono); letter-spacing: 0.08em; text-transform: uppercase; color: var(--accent); border: 1px solid rgba(226, 165, 43, 0.4); border-radius: 4px; padding: 3px 5px; }
.avatar { flex: none; width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; background: var(--ridicat-2); color: var(--cerneala); font: 600 0.8125rem/1 var(--text); letter-spacing: 0.02em; }
.avatar.mare { width: 48px; height: 48px; font-size: 1rem; }
.avatar.firma { border-radius: 10px; background: var(--ocru-fond); color: var(--accent); }
.chip { display: inline-flex; align-items: center; gap: 6px; height: 26px; padding: 0 10px; border-radius: 13px; background: var(--ridicat); color: var(--cerneala); font-size: 0.8125rem; white-space: nowrap; }
.chip.ocru { background: var(--ocru-fond); color: var(--accent); font-weight: 500; }
.chip.gri { color: var(--estompat); }
.chip button { display: grid; place-items: center; width: 18px; height: 18px; border: 0; border-radius: 50%; background: transparent; color: var(--estompat); cursor: pointer; padding: 0; margin-right: -4px; }
.chip button:hover { background: var(--ridicat-2); color: var(--cerneala); }
.chip button svg { width: 12px; height: 12px; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.buton-chip { border: 1px dashed var(--contur); background: transparent; cursor: pointer; }
.buton-chip:hover { border-color: var(--accent); color: var(--accent); }
.buton-chip svg { width: 14px; height: 14px; }
.numar { font: 500 0.6875rem/1 var(--mono); color: var(--estompat); background: var(--ridicat); border-radius: 10px; padding: 3px 7px; margin-left: 6px; vertical-align: 2px; }

.buton { min-height: 44px; border-radius: var(--raza); font-size: 0.9375rem; gap: 8px; }
.buton.mic { min-height: 36px; padding: 6px 12px; font-size: 0.875rem; }
.buton.mare { min-height: 50px; }
.buton svg:not([width]) { width: 18px; height: 18px; }
.marca-birou svg { flex: none; }
.buton.plin:hover:not(:disabled) { filter: brightness(1.08); }
.buton.contur:hover:not(:disabled) { background: var(--ridicat); }
.buton.fantoma { background: transparent; color: var(--cerneala); border: 0; font-weight: 500; }
.buton.fantoma:hover:not(:disabled) { background: var(--ridicat); }
.buton.fantoma.rau { color: var(--rau); }
.buton.text { width: auto; min-height: 44px; color: var(--estompat); }
.buton.text:hover { color: var(--cerneala); }
.buton.text-rau { width: auto; margin: 0; padding: 0 4px; min-height: 44px; display: inline-flex; gap: 8px; }
.ico-btn { width: 36px; height: 36px; border: 0; border-radius: 10px; background: transparent; color: var(--estompat); display: inline-grid; place-items: center; cursor: pointer; flex: none; }
.ico-btn:hover { background: var(--ridicat); color: var(--cerneala); }
.ico-btn svg { width: 20px; height: 20px; }

input:not([type=checkbox]):not([type=radio]) { min-height: 44px; padding: 10px 12px; border-radius: 10px; background: var(--ridicat); border: 1px solid transparent; font-size: 0.9375rem; }
input:not([type=checkbox]):not([type=radio]):focus { border-color: var(--accent); background: var(--ridicat); }
input[type=file] { padding: 8px; }
.formular { display: flex; flex-direction: column; gap: 14px; }
.camp { display: flex; flex-direction: column; gap: 6px; }
.camp > span { font: 500 0.75rem/1.2 var(--text); color: var(--estompat); letter-spacing: 0.01em; }
.doua-campuri { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.nota { display: flex; gap: 8px; align-items: flex-start; font-size: 0.8125rem; line-height: 1.4; color: var(--estompat); margin: -4px 0 0; }
.nota svg { width: 15px; height: 15px; margin-top: 1px; color: var(--accent); }
.eroare { color: var(--rau); font-size: 0.875rem; margin: 0; }
.bifa { display: flex; gap: 10px; align-items: flex-start; font-size: 0.875rem; line-height: 1.45; color: var(--estompat); cursor: pointer; }
.bifa input { appearance: none; -webkit-appearance: none; flex: none; width: 20px; height: 20px; margin: 0; border: 1.5px solid var(--contur); border-radius: 6px; display: grid; place-items: center; cursor: pointer; }
.bifa input:checked { background: var(--accent); border-color: var(--accent); }
.bifa input:checked::after { content: ""; width: 9px; height: 5px; border: solid var(--pe-accent); border-width: 0 0 2px 2px; transform: translateY(-1px) rotate(-45deg); }
.bifa a { color: var(--cerneala); }
.stiva { display: flex; flex-direction: column; gap: 10px; }
.segment { display: inline-flex; padding: 3px; gap: 2px; border-radius: 11px; background: var(--ridicat); flex-wrap: wrap; }
.segment button { border: 0; background: transparent; color: var(--estompat); font-size: 0.875rem; font-weight: 500; padding: 7px 14px; border-radius: 8px; cursor: pointer; min-height: 34px; }
.segment button:hover { color: var(--cerneala); }
.segment button.activ { background: var(--ridicat-2); color: var(--cerneala); box-shadow: 0 1px 2px rgba(0, 0, 0, 0.3); }
.comutator { display: inline-flex; align-items: center; gap: 10px; cursor: pointer; font-size: 0.9375rem; flex: none; position: relative; }
.comutator input { position: absolute; opacity: 0; width: 36px; height: 22px; margin: 0; cursor: pointer; }
.comutator span { width: 36px; height: 22px; border-radius: 11px; background: var(--ridicat-2); position: relative; transition: background 0.15s; pointer-events: none; }
.comutator span::after { content: ""; position: absolute; left: 3px; top: 3px; width: 16px; height: 16px; border-radius: 50%; background: var(--estompat); transition: transform 0.15s, background 0.15s; }
.comutator input:checked + span { background: var(--accent); }
.comutator input:checked + span::after { transform: translateX(14px); background: var(--pe-accent); }
.comutator input:focus-visible + span { outline: 2px solid var(--accent); outline-offset: 2px; }
.cod-siguranta { font: 500 1.125rem/1.7 var(--mono); letter-spacing: 0.06em; background: var(--ridicat); border-radius: 12px; padding: 14px 16px; text-align: center; font-variant-numeric: tabular-nums; margin: 0; }
.asteapta-rand { display: flex; align-items: center; justify-content: center; gap: 10px; font-size: 0.875rem; color: var(--estompat); margin: 14px 0 0; }
.punct-viu { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); animation: puls 1.4s ease-in-out infinite; }
@keyframes puls { 50% { opacity: 0.25; } }
@media (prefers-reduced-motion: reduce) { .punct-viu { animation: none; } }

/* ---------------------------------------------------------------- before the desk */
.auth { min-height: 100vh; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 32px 16px; gap: 18px;
  background: radial-gradient(1200px 500px at 50% -10%, rgba(226, 165, 43, 0.07), transparent 60%), var(--hartie); }
.auth-card { width: 100%; max-width: 440px; background: var(--card); border: 1px solid var(--linie); border-radius: 20px; padding: 28px 28px 22px; display: flex; flex-direction: column; gap: 6px; box-shadow: var(--umbra-dlg); }
.auth-card > .marca-birou { margin-bottom: 22px; }
.auth-card h1 { font-size: 1.625rem; margin: 0 0 4px; }
.auth-card .sub { color: var(--estompat); font-size: 0.9375rem; line-height: 1.45; margin: 0 0 18px; }
.auth-card .formular .buton.plin { margin-top: 4px; }
.auth-card > .buton.text { align-self: center; margin-top: 4px; }
.auth-card .stiva .buton.text { align-self: center; }
.auth-card > .mic { margin: 16px 0 0; }
.auth-ico { width: 48px; height: 48px; border-radius: 14px; background: var(--ocru-fond); color: var(--accent); display: grid; place-items: center; margin-bottom: 10px; }
.auth-ico svg { width: 24px; height: 24px; }
.auth-jos { display: flex; justify-content: center; }

/* ---------------------------------------------------------------- the shell */
.app { display: grid; grid-template-columns: 248px 1fr; min-height: 100vh; }
.lateral { position: sticky; top: 0; height: 100vh; display: flex; flex-direction: column; gap: 6px; padding: 18px 12px; background: var(--lateral); border-right: 1px solid var(--linie); }
.lat-marca { padding: 4px 10px 18px; }
.lat-firma { display: flex; align-items: center; gap: 10px; padding: 10px; margin-bottom: 10px; border-radius: 12px; background: var(--card); }
.lat-firma-text { min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.lat-firma-text b { font-size: 0.875rem; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.verif { display: inline-flex; align-items: center; gap: 4px; font-size: 0.75rem; color: var(--verde); }
.verif svg { width: 13px; height: 13px; }
.verif.rau { color: var(--rau); }
.lat-nav { display: flex; flex-direction: column; gap: 2px; }
.nav-rand { display: flex; align-items: center; gap: 12px; width: 100%; min-height: 40px; padding: 0 10px; border: 0; border-radius: 10px; background: transparent; color: var(--estompat); font-size: 0.9375rem; font-weight: 500; cursor: pointer; text-align: left; }
.nav-rand:hover { background: var(--ridicat); color: var(--cerneala); }
.nav-rand.activ { background: var(--ridicat); color: var(--cerneala); }
.nav-rand.activ svg { color: var(--accent); }
.nav-rand span:first-of-type { flex: 1; }
.nav-numar { flex: none !important; font: 500 0.6875rem/1 var(--mono); color: var(--estompat); }
.lat-jos { margin-top: auto; }
.zona { min-width: 0; }
.bara-mobil, .tab-bara, .fab { display: none; }

/* ---------------------------------------------------------------- clients: list and detail */
.split { display: grid; grid-template-columns: minmax(300px, 380px) 1fr; min-height: 100vh; }
.panou-lista { border-right: 1px solid var(--linie); padding: 22px 14px; display: flex; flex-direction: column; gap: 12px; min-width: 0; }
.panou-cap { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 0 6px; min-height: 40px; }
.panou-cap h1 { font-size: 1.5rem; margin: 0; }
.cauta { display: flex; align-items: center; gap: 8px; padding: 0 12px; border-radius: 10px; background: var(--ridicat); color: var(--estompat); margin: 0 4px; }
.cauta input { background: transparent !important; border: 0 !important; padding-left: 0; min-height: 40px; }
.lista-clienti { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 2px; }
.client-rand { width: 100%; display: flex; align-items: center; gap: 12px; padding: 10px; border: 0; border-radius: 12px; background: transparent; text-align: left; cursor: pointer; }
.client-rand:hover { background: var(--ridicat); }
.client-rand.activ { background: var(--card); box-shadow: inset 0 0 0 1px var(--linie); }
.client-text { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.client-text b { font-size: 0.9375rem; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.client-text small { color: var(--estompat); font-size: 0.8125rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.client-meta { display: flex; flex-direction: column; align-items: flex-end; gap: 6px; flex: none; }
.client-meta small { font: 400 0.6875rem/1 var(--mono); color: var(--estompat); }
.client-meta .chip { height: 22px; font-size: 0.75rem; padding: 0 8px; }
.gol { color: var(--estompat); text-align: center; padding: 24px 0; font-size: 0.9375rem; }
.gol-mare { display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; gap: 8px; padding: 64px 24px; color: var(--estompat); }
.gol-mare > svg { width: 40px; height: 40px; padding: 10px; box-sizing: content-box; border-radius: 16px; background: var(--ocru-fond); color: var(--accent); margin-bottom: 6px; }
.gol-mare b { color: var(--cerneala); font: 700 1.25rem/1.2 var(--titlu); }
.gol-mare p { margin: 0 0 12px; max-width: 30ch; }
.gol-mare.slab { min-height: 60vh; }
.gol-mare.slab > svg { background: var(--ridicat); color: var(--estompat); }
.panou-detaliu { padding: 26px clamp(20px, 4vw, 48px); min-width: 0; max-width: 900px; }
.det-cap { display: flex; align-items: center; gap: 14px; margin-bottom: 22px; }
.det-cap [data-ascuns-lat] { display: none; }
.det-titlu { flex: 1; min-width: 0; }
.det-titlu h2 { font: 700 1.5rem/1.15 var(--titlu); letter-spacing: -0.02em; text-transform: none; color: var(--cerneala); margin: 0 0 4px; overflow-wrap: anywhere; }
.det-titlu p { margin: 0; color: var(--estompat); font-size: 0.875rem; }
.meniu-ancora { position: relative; }
.meniu { position: absolute; right: 0; top: 42px; z-index: 30; min-width: 220px; padding: 6px; border-radius: 12px; background: var(--ridicat); border: 1px solid var(--linie); box-shadow: var(--umbra-dlg); display: flex; flex-direction: column; }
.meniu button { display: flex; align-items: center; gap: 10px; min-height: 40px; padding: 0 10px; border: 0; border-radius: 8px; background: transparent; font-size: 0.9375rem; text-align: left; cursor: pointer; }
.meniu button:hover { background: var(--ridicat-2); }
.meniu button.rau { color: var(--rau); }
.link-bloc { background: var(--card); border: 1px solid var(--linie); border-radius: 16px; padding: 14px; display: flex; flex-direction: column; gap: 10px; }
.link-bloc.inchis { flex-direction: row; align-items: center; gap: 10px; color: var(--estompat); font-size: 0.9375rem; }
.link-rand { display: flex; align-items: center; gap: 10px; background: var(--hartie); border-radius: 10px; padding: 6px 6px 6px 12px; min-width: 0; }
.link-rand > svg { color: var(--accent); }
.link-rand code { flex: 1; min-width: 0; font: 400 0.8125rem/1.4 var(--mono); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; word-break: normal; padding: 8px 0; }
.link-jos { display: flex; align-items: center; justify-content: space-between; gap: 8px; flex-wrap: wrap; }
.link-jos small { display: inline-flex; align-items: center; gap: 6px; color: var(--estompat); font-size: 0.8125rem; padding-left: 4px; }
.link-jos small svg { width: 14px; height: 14px; }
.link-jos span { display: inline-flex; gap: 4px; flex-wrap: wrap; }
.det-sect { margin-top: 26px; }
.det-sect h3, .grup h3 { font: 500 0.6875rem/1 var(--mono); letter-spacing: 0.06em; text-transform: uppercase; color: var(--estompat); margin: 0 0 12px; display: flex; align-items: center; gap: 4px; }
.sect-cap { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 12px; }
.sect-cap h3 { margin: 0; }
.grila-acte { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 10px; }
.tile { display: flex; align-items: center; gap: 12px; padding: 10px; border-radius: 14px; background: var(--card); border: 1px solid var(--linie); min-width: 0; }
.tile:hover { border-color: var(--contur); }
.tile-ico { position: relative; flex: none; width: 40px; height: 48px; border-radius: 8px; background: rgba(242, 163, 155, 0.12); color: var(--rau); display: grid; place-items: center; }
.tile-ico.img { background: rgba(143, 207, 156, 0.12); color: var(--verde); }
.tile-ico svg { width: 22px; height: 22px; }
.tile-ico em { position: absolute; bottom: 4px; font: 600 0.5rem/1 var(--mono); font-style: normal; letter-spacing: 0.04em; }
.tile-text { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.tile-text b { font-size: 0.875rem; font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tile-text small { font-size: 0.75rem; color: var(--estompat); }
.gol-acte { display: flex; align-items: center; gap: 10px; padding: 18px; border: 1px dashed var(--contur); border-radius: 14px; color: var(--estompat); font-size: 0.9375rem; }

/* ---------------------------------------------------------------- settings */
.setari { max-width: 720px; padding: 22px clamp(16px, 4vw, 48px) 64px; }
.setari .panou-cap { padding: 0; margin-bottom: 18px; }
.grup { margin-bottom: 26px; }
.grup h3 span { margin-left: auto; text-transform: none; letter-spacing: 0; }
.card { background: var(--card); border: 1px solid var(--linie); border-radius: 16px; overflow: hidden; display: flex; flex-direction: column; }
.card .rand { display: flex; align-items: center; gap: 12px; padding: 12px 14px; min-height: 56px; border-bottom: 1px solid var(--linie); background: transparent; border-left: 0; border-right: 0; border-top: 0; width: 100%; text-align: left; font-size: 0.9375rem; }
.card .rand:last-child { border-bottom: 0; }
.card .rand > svg { color: var(--estompat); }
.card .rand.slab { color: var(--estompat); font-size: 0.875rem; }
.rand-text { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.rand-text b { font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rand-text small { color: var(--estompat); font-size: 0.8125rem; line-height: 1.4; }
.rand-buton { cursor: pointer; color: var(--accent) !important; font-weight: 500; }
.rand-buton svg { color: var(--accent) !important; }
.rand-buton:hover { background: var(--ridicat) !important; }
.firma-card { flex-direction: row; align-items: center; gap: 14px; padding: 16px; }
.firma-text { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.firma-text b { font: 700 1.125rem/1.2 var(--titlu); letter-spacing: -0.01em; }
.firma-text small { color: var(--estompat); font-size: 0.8125rem; display: flex; align-items: center; gap: 4px; flex-wrap: wrap; }
.grup > .eroare { margin-top: 8px; }

/* ---------------------------------------------------------------- dialogs and toasts */
.dlg-fundal { position: fixed; inset: 0; background: rgba(5, 6, 6, 0.6); backdrop-filter: blur(2px); z-index: 40; }
.dlg-fundal.intra { animation: apare 0.15s ease; }
.dlg { position: fixed; z-index: 41; left: 50%; top: 50%; transform: translate(-50%, -50%); width: min(460px, calc(100vw - 32px)); max-height: calc(100vh - 48px); overflow: auto;
  background: var(--card); border: 1px solid var(--linie); border-radius: 20px; padding: 20px 22px; box-shadow: var(--umbra-dlg); display: flex; flex-direction: column; gap: 12px; }
.dlg.intra { animation: urca 0.18s ease; }
.dlg.lat { width: min(620px, calc(100vw - 32px)); }
.dlg.mic { width: min(400px, calc(100vw - 32px)); }
.dlg-cap { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.dlg h2 { font: 700 1.25rem/1.25 var(--titlu); letter-spacing: -0.015em; text-transform: none; color: var(--cerneala); margin: 0; }
.dlg h2.intrebare { font-size: 1.125rem; line-height: 1.35; padding-top: 4px; }
.dlg .sub { color: var(--estompat); font-size: 0.9375rem; line-height: 1.45; margin: 0; }
.dlg-jos { display: flex; justify-content: flex-end; gap: 8px; margin-top: 8px; }
.dlg .qr { background: #fff; border-radius: 14px; padding: 12px; margin: 4px auto; width: fit-content; }
.dlg .qr svg { display: block; width: 200px; height: 200px; }
.dlg .qr.mare svg { width: 260px; height: 260px; }
.gata-ico { width: 52px; height: 52px; border-radius: 50%; background: rgba(143, 207, 156, 0.14); color: var(--verde); display: grid; place-items: center; margin: 6px auto 2px; }
.gata-ico svg { width: 26px; height: 26px; }
.chips-camp { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; padding: 6px; min-height: 44px; border-radius: 10px; background: var(--ridicat); border: 1px solid transparent; }
.chips-camp:focus-within { border-color: var(--accent); }
.chips-camp .chip { background: var(--ridicat-2); }
.chips-camp input { flex: 1; min-width: 160px; min-height: 30px !important; padding: 4px 6px !important; background: transparent !important; border: 0 !important; }
.pastrez-rand { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; min-height: 44px; }
.pastrez-rand input:not([type=checkbox]) { flex: 1; min-width: 160px; }
.toast { position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%); z-index: 50; display: flex; align-items: center; gap: 10px; max-width: calc(100vw - 32px); padding: 12px 16px; border-radius: 12px;
  background: var(--cerneala); color: var(--hartie); font-size: 0.9375rem; font-weight: 500; box-shadow: var(--umbra-dlg); }
.toast.intra { animation: urca 0.18s ease; }
.toast svg { color: #2f7d47; }
.toast.rau { background: #3a1f1c; color: var(--rau); border: 1px solid rgba(242, 163, 155, 0.35); }
@keyframes apare { from { opacity: 0; } }
@keyframes urca { from { opacity: 0; translate: 0 8px; } }
@media (prefers-reduced-motion: reduce) { .dlg, .dlg-fundal, .toast { animation: none; } }

/* ---------------------------------------------------------------- a phone */
@media (max-width: 899px) {
  .split { grid-template-columns: 1fr; min-height: 0; }
  .split:not(.cu-sel) .panou-detaliu, .split.cu-sel .panou-lista { display: none; }
  .panou-lista { border-right: 0; padding: 14px 10px 100px; }
  .panou-detaliu { padding: 14px 16px 100px; }
  .det-cap [data-ascuns-lat] { display: inline-grid; margin-left: -8px; }
  .det-cap .avatar.mare { width: 40px; height: 40px; }
  .ascuns-mobil { display: none !important; }
  .fab { display: grid; place-items: center; position: fixed; right: 18px; bottom: calc(76px + env(safe-area-inset-bottom)); z-index: 20; width: 56px; height: 56px; border-radius: 18px; border: 0; background: var(--accent); color: var(--pe-accent); box-shadow: 0 8px 24px rgba(0, 0, 0, 0.45); cursor: pointer; }
  .fab svg { width: 24px; height: 24px; stroke-width: 2.2; }
  .split.cu-sel ~ .fab { display: none; }
}
@media (min-width: 761px) and (max-width: 899px) { .fab { bottom: 24px; } }
@media (max-width: 760px) {
  .app { grid-template-columns: 1fr; }
  .lateral { display: none; }
  .bara-mobil { display: flex; align-items: center; justify-content: space-between; padding: 10px 12px 6px 16px; position: sticky; top: 0; z-index: 10; background: var(--hartie); }
  .tab-bara { display: flex; position: fixed; left: 0; right: 0; bottom: 0; z-index: 25; background: var(--lateral); border-top: 1px solid var(--linie); padding: 6px 8px calc(6px + env(safe-area-inset-bottom)); }
  .tab-bara button { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 6px 0; border: 0; background: transparent; color: var(--estompat); font-size: 0.6875rem; font-weight: 500; cursor: pointer; }
  .tab-bara button svg { width: 22px; height: 22px; }
  .tab-bara button.activ { color: var(--cerneala); }
  .tab-bara button.activ svg { color: var(--accent); }
  .setari { padding: 6px 16px 100px; }
  .doua-campuri { grid-template-columns: 1fr; }
  .dlg { left: 0; right: 0; top: auto; bottom: 0; transform: none; width: 100% !important; max-height: 92vh; border-radius: 22px 22px 0 0; padding: 18px 18px calc(18px + env(safe-area-inset-bottom)); }
  .dlg-jos { position: sticky; bottom: -18px; background: var(--card); padding: 10px 0 0; }
  .dlg-jos .buton.plin, .dlg-jos .buton.rau-plin { flex: 1; }
  .toast { bottom: calc(84px + env(safe-area-inset-bottom)); }
  .auth { justify-content: flex-start; padding-top: 24px; }
  .auth-card { border: 0; box-shadow: none; background: transparent; padding: 8px 4px; }
  .grila-acte { grid-template-columns: 1fr; }
  .link-rand { flex-wrap: wrap; padding: 6px; }
  .link-rand > svg { margin-left: 6px; }
  .link-rand code { flex-basis: calc(100% - 40px); }
  .link-rand .buton { flex: 1 1 100%; }
  .link-jos { flex-direction: column; align-items: stretch; }
  .link-jos span .buton { flex: 1; }
}

/* ---------------------------------------------------------------- what ../acte/acte.css does that the desk does not */
.card { padding: 0; gap: 0; margin: 0; }
.card .buton { width: auto; flex: none; }
.formular label.bifa, .bifa { flex-direction: row; font-weight: 400; }
.formular label.comutator, .comutator { flex-direction: row; justify-content: flex-start; border: 0; padding: 0; font-weight: 400; }
.nota { border-left: 0; padding-left: 0; }
.formular label.camp { gap: 6px; font-weight: 400; }
.card.firma-card { padding: 16px; gap: 14px; }
.cod-siguranta { display: grid; grid-template-columns: repeat(3, auto); justify-content: center; gap: 4px 18px; }

/* ---------------------------------------------------------------- buying online */
.auth-card.lat { max-width: 540px; }
.planuri { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.plan-alege { display: flex; flex-direction: column; align-items: flex-start; gap: 3px; padding: 14px; border-radius: 14px; border: 1.5px solid var(--linie); background: var(--ridicat); text-align: left; cursor: pointer; }
.plan-alege:hover { border-color: var(--contur); }
.plan-alege.activ { border-color: var(--accent); background: var(--ocru-fond); }
.plan-alege b { font: 700 1.0625rem/1.2 var(--titlu); }
.plan-alege > small { color: var(--estompat); font-size: 0.8125rem; }
.plan-alege span { margin-top: 8px; font-weight: 600; font-size: 1rem; }
.plan-alege span small { color: var(--estompat); font-weight: 400; font-size: 0.8125rem; }
.formular .segment { align-self: flex-start; }
.rand-extra { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 12px; border-radius: 12px; background: var(--ridicat); }
.rand-extra > span:first-child { display: flex; flex-direction: column; gap: 2px; }
.rand-extra b { font-weight: 500; font-size: 0.9375rem; }
.rand-extra small { color: var(--estompat); font-size: 0.8125rem; }
.pas { display: inline-flex; align-items: center; gap: 6px; }
.pas b { min-width: 22px; text-align: center; font: 600 1rem/1 var(--mono); }
.pas .ico-btn { background: var(--ridicat-2); }
.pas .ico-btn:disabled { opacity: 0.35; cursor: default; }
.tara-cui { display: grid; grid-template-columns: 1fr 1.3fr; gap: 12px; }
.formular select.camp { min-height: 44px; padding: 10px 12px; border-radius: 10px; background: var(--ridicat); border: 1px solid transparent; color: var(--cerneala); font-size: 0.9375rem; }
.cu-buton { display: flex; gap: 6px; }
.cu-buton input { flex: 1; min-width: 0; }
.cu-buton .buton { flex: none; min-height: 44px; }
.firma-gasita { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 12px; background: rgba(143, 207, 156, 0.1); color: var(--verde); }
.firma-gasita span { display: flex; flex-direction: column; gap: 2px; color: var(--cerneala); }
.firma-gasita b { font-weight: 600; font-size: 0.9375rem; }
.firma-gasita small { color: var(--estompat); font-size: 0.8125rem; }
.legatura { align-self: flex-start; border: 0; background: transparent; padding: 2px 0; color: var(--ocru-text); font-size: 0.875rem; cursor: pointer; text-decoration: underline; text-underline-offset: 3px; }
.total { display: flex; align-items: baseline; gap: 8px; padding-top: 12px; border-top: 1px solid var(--linie); }
.total span { flex: 1; color: var(--estompat); font-size: 0.875rem; }
.total b { font: 700 1.5rem/1 var(--titlu); }
.total small { color: var(--estompat); font-size: 0.8125rem; }
.cheie-mare { font: 500 1.125rem/1.4 var(--mono); letter-spacing: 0.06em; text-align: center; background: var(--ridicat); border-radius: 12px; padding: 14px; margin: 6px 0 14px; }
@media (max-width: 760px) {
  .tara-cui { grid-template-columns: 1fr; }
}
.tile-ico.recipisa { background: var(--ocru-fond); color: var(--accent); }
