:root {
  --bg: #f5f1eb; --bg-soft: #faf8f4; --white: #fff; --ink: #111827; --black: #000;
  --muted: #4a4a4a; --soft: #6b6b6b; --beige: #d5c9b1; --line: rgba(213, 201, 177, .65);
  --fill: rgba(213, 201, 177, .2); --brown: #6b5d50; --green: #1f6b45; --red: #a3271f;
  --radius: 14px;
  --font: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --serif: ui-serif, Georgia, Cambria, "Times New Roman", serif;
}
*, *::before, *::after { box-sizing: border-box; }
html, body { height: 100%; }
body { margin: 0; font-family: var(--font); color: var(--ink); background: var(--bg); line-height: 1.45; font-size: 15px; -webkit-font-smoothing: antialiased; }
h1, h2, h3, p { margin: 0; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
[hidden] { display: none !important; }

/* ---------- układ ---------- */
.app { min-height: 100%; display: grid; grid-template-rows: auto 1fr; grid-template-columns: minmax(0, 1fr); }
.top { position: sticky; top: 0; z-index: 20; display: flex; align-items: center; gap: 12px; padding: 10px 16px; background: rgba(245, 241, 235, .94); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.brand { font-weight: 700; font-size: 17px; display: flex; align-items: center; gap: 8px; white-space: nowrap; }
.tag { font-size: 11px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--brown); border: 1px solid var(--line); background: var(--white); border-radius: 999px; padding: 3px 9px; }
.top .spacer { flex: 1; }
@media (max-width: 719px) { .as span { display: none; } .brand { font-size: 15px; } .brand .tag { display: none; } .as select { max-width: 42vw; } .stat .v { font-size: 22px; } }
.as { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--soft); }
.as select { border: 1.5px solid var(--beige); background: var(--white); border-radius: 10px; padding: 7px 10px; font-weight: 600; font-size: 13.5px; max-width: 46vw; }
.shell { display: grid; grid-template-columns: minmax(0, 1fr); min-height: 0; }
.nav { position: fixed; left: 0; right: 0; bottom: 0; z-index: 20; display: flex; background: var(--white); border-top: 1px solid var(--line); padding: 6px 6px calc(6px + env(safe-area-inset-bottom)); }
.nav button { flex: 1; border: 0; background: none; padding: 9px 4px; border-radius: 10px; font-size: 13px; font-weight: 600; color: var(--soft); display: flex; flex-direction: column; align-items: center; gap: 3px; }
.nav button svg { width: 20px; height: 20px; }
.nav button[aria-current="page"] { background: var(--black); color: var(--white); }
.nav .note { display: none; }
.main { padding: 18px 16px 96px; min-width: 0; }
.head { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 10px 16px; margin-bottom: 16px; }
.head h1 { font-size: 26px; letter-spacing: -.015em; line-height: 1.1; }
.head p { color: var(--soft); font-size: 14px; margin-top: 4px; }

/* ---------- liczniki ---------- */
.stats { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin-bottom: 16px; }
.stat { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px 16px; }
.stat .k { font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--brown); }
.stat .v { font-size: 26px; font-weight: 700; letter-spacing: -.02em; margin-top: 4px; font-variant-numeric: tabular-nums; }
.stat .s { font-size: 12.5px; color: var(--soft); margin-top: 2px; }
.stat--dark { background: var(--black); color: var(--white); border-color: var(--black); }
.stat--dark .k { color: var(--beige); } .stat--dark .s { color: rgba(255, 255, 255, .7); }

/* ---------- filtry ---------- */
.filters { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 12px; }
.filters select { flex: 1 1 140px; }
.filters input, .filters select { border: 1.5px solid var(--beige); background: var(--white); border-radius: 10px; padding: 9px 12px; font-size: 14px; min-width: 0; }
.filters input { flex: 1 1 200px; }
.filters input:focus, .filters select:focus, .as select:focus, textarea:focus, .amount:focus { outline: none; border-color: var(--black); box-shadow: 0 0 0 3px rgba(213, 201, 177, .5); }

/* ---------- lista leadów ---------- */
.list { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.row { display: grid; gap: 4px 12px; padding: 13px 16px; border-bottom: 1px solid var(--line); cursor: pointer; align-items: center; grid-template-columns: 1fr auto; text-align: left; width: 100%; background: none; border-left: 0; border-right: 0; border-top: 0; }
.row:last-child { border-bottom: 0; }
.row:hover { background: var(--bg-soft); }
.row .who { font-weight: 700; }
.row .phone { color: var(--soft); font-size: 13.5px; font-variant-numeric: tabular-nums; }
.row .meta { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: 6px 12px; font-size: 13px; color: var(--soft); align-items: center; }
.row .c-next { display: inline-flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.row .c-who { min-width: 0; }
.list-head { display: none; }
.empty { padding: 36px 16px; text-align: center; color: var(--soft); }

/* ---------- znaczniki ---------- */
.badge { display: inline-flex; align-items: center; gap: 6px; font-size: 12.5px; font-weight: 700; border-radius: 999px; padding: 4px 10px; white-space: nowrap; border: 1.5px solid transparent; }
.badge .role { font-weight: 600; opacity: .75; }
.b-new { background: var(--black); color: var(--white); }
.b-wait { background: var(--fill); color: var(--brown); border-color: var(--line); }
.b-meet { background: var(--white); color: var(--ink); border-color: var(--ink); }
.b-win { background: var(--green); color: var(--white); }
.b-off { background: #ecebe8; color: var(--muted); }
.b-cash { background: var(--white); color: var(--brown); border-color: var(--brown); }
.b-bad { background: #fbeceb; color: var(--red); border-color: #efc6c2; }
.path { font-size: 12px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--brown); }
.tries { display: inline-flex; gap: 5px; align-items: center; }
.tries .pair { display: inline-flex; gap: 2px; }
.tries i { width: 9px; height: 9px; border-radius: 50%; border: 1.5px solid var(--beige); display: block; }
.tries i.miss { background: var(--brown); border-color: var(--brown); }
.tries i.hit { background: var(--green); border-color: var(--green); }

/* ---------- lejek ---------- */
.board-title { font-size: 12px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--brown); margin: 18px 0 8px; }
.board { display: flex; gap: 10px; overflow-x: auto; padding-bottom: 10px; scroll-snap-type: x proximity; }
.col { flex: 0 0 240px; background: rgba(255, 255, 255, .6); border: 1px solid var(--line); border-radius: var(--radius); padding: 10px; scroll-snap-align: start; }
.col h3 { font-size: 13.5px; display: flex; justify-content: space-between; align-items: center; gap: 8px; margin-bottom: 8px; }
.col h3 span.n { color: var(--soft); font-weight: 600; font-variant-numeric: tabular-nums; }
.kcard { display: block; width: 100%; text-align: left; background: var(--white); border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px; margin-bottom: 8px; }
.kcard:hover { border-color: var(--brown); }
.kcard .who { font-weight: 700; }
.kcard .sub { font-size: 12.5px; color: var(--soft); margin-top: 3px; display: flex; flex-wrap: wrap; gap: 4px 8px; align-items: center; }
.col .none { font-size: 12.5px; color: var(--soft); padding: 6px 2px; }

/* ---------- kalendarz ---------- */
.weekbar { display: flex; align-items: center; gap: 8px; margin-bottom: 12px; flex-wrap: wrap; }
.weekbar .lbl { font-weight: 700; min-width: 0; flex: 0 1 auto; padding: 0 6px; text-align: center; font-size: 14px; }
.btn { border: 0; background: var(--black); color: var(--white); border-radius: 10px; padding: 10px 16px; font-weight: 700; font-size: 14px; }
.btn:hover { background: #222; }
.btn--ghost { background: var(--white); color: var(--ink); border: 1.5px solid var(--beige); }
.btn--ghost:hover { background: var(--bg-soft); border-color: var(--brown); }
.btn--sm { padding: 7px 11px; font-size: 13px; }
.btn--danger { background: var(--white); color: var(--red); border: 1.5px solid #efc6c2; }
.btn[disabled] { opacity: .45; cursor: default; }
.week { display: grid; gap: 10px; grid-template-columns: 1fr; }
.day { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 12px; min-height: 80px; }
.day.today { border-color: var(--ink); }
.day h3 { font-size: 13px; margin-bottom: 8px; display: flex; justify-content: space-between; }
.day h3 span { color: var(--soft); font-weight: 500; }
.ev { display: block; width: 100%; text-align: left; border: 1px solid var(--line); background: var(--bg-soft); border-left: 4px solid var(--black); border-radius: 8px; padding: 7px 9px; margin-bottom: 6px; font-size: 13px; }
.ev b { font-variant-numeric: tabular-nums; }
.ev .sub { color: var(--soft); font-size: 12px; }
.ev.busy { border-left-color: var(--beige); color: var(--soft); background: none; border-style: dashed; cursor: default; }
.day .none { font-size: 12.5px; color: var(--soft); }

/* ---------- zespół ---------- */
.panel { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; margin-bottom: 14px; }
.panel h2 { font-size: 17px; margin-bottom: 4px; }
.panel > p { color: var(--soft); font-size: 13.5px; margin-bottom: 12px; }
.member { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; padding: 12px 0; border-top: 1px solid var(--line); }
.member .name { font-weight: 700; flex: 1 1 160px; }
.member .small { font-size: 13px; color: var(--soft); }
.ok { color: var(--green); font-weight: 700; font-size: 13px; } .no { color: var(--red); font-weight: 700; font-size: 13px; }
.blocks { display: grid; gap: 8px; grid-template-columns: repeat(3, 1fr); }
.block { border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px; background: var(--bg-soft); }
.block b { display: block; } .block span { font-size: 12.5px; color: var(--soft); }

/* ---------- karta leada ---------- */
.scrim { position: fixed; inset: 0; background: rgba(17, 24, 39, .42); z-index: 40; animation: fade .18s ease both; }
.drawer { position: fixed; top: 0; right: 0; bottom: 0; width: min(520px, 100%); background: var(--bg); z-index: 41; display: flex; flex-direction: column; box-shadow: -30px 0 60px -30px rgba(17, 24, 39, .5); animation: slide .22s cubic-bezier(.2, .7, .2, 1) both; }
.drawer header { display: flex; align-items: start; gap: 12px; padding: 16px 18px; border-bottom: 1px solid var(--line); background: var(--white); }
.drawer header h2 { font-size: 22px; letter-spacing: -.01em; line-height: 1.15; }
.drawer header .phone { color: var(--muted); font-variant-numeric: tabular-nums; margin-top: 2px; }
.x { margin-left: auto; border: 1.5px solid var(--beige); background: var(--white); width: 36px; height: 36px; border-radius: 10px; font-size: 18px; line-height: 1; flex: none; }
.drawer .body { overflow-y: auto; padding: 16px 18px 28px; display: grid; gap: 14px; align-content: start; }
.sec { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px 16px; }
.sec h3 { font-size: 12px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--brown); margin-bottom: 10px; }
.kv { display: grid; grid-template-columns: 120px 1fr; gap: 6px 12px; font-size: 14px; }
.kv dt { color: var(--soft); } .kv dd { margin: 0; overflow-wrap: anywhere; }
.acts { display: flex; flex-wrap: wrap; gap: 8px; }
.cycle { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.cycle .blk { border: 1px solid var(--line); border-radius: 10px; padding: 9px 10px; background: var(--bg-soft); }
.cycle .blk b { font-size: 12.5px; display: block; margin-bottom: 6px; text-transform: capitalize; }
.cycle .try { font-size: 12.5px; color: var(--soft); display: flex; gap: 6px; align-items: center; min-height: 20px; }
.cycle .try i { width: 10px; height: 10px; border-radius: 50%; border: 1.5px solid var(--beige); flex: none; }
.cycle .try.miss i { background: var(--brown); border-color: var(--brown); } .cycle .try.hit i { background: var(--green); border-color: var(--green); }
.cycle .try.miss, .cycle .try.hit { color: var(--ink); }
.hint { font-size: 13px; color: var(--soft); margin-top: 10px; }
.log { list-style: none; margin: 0; padding: 0; display: grid; gap: 9px; }
.log li { font-size: 13.5px; display: grid; grid-template-columns: 96px 1fr; gap: 10px; }
.log time { color: var(--soft); font-size: 12.5px; font-variant-numeric: tabular-nums; }
.log .by { color: var(--soft); }
textarea { width: 100%; border: 1.5px solid var(--beige); background: var(--bg-soft); border-radius: 10px; padding: 10px 12px; resize: vertical; min-height: 64px; font-size: 14px; }
.noteform { display: grid; gap: 8px; margin-top: 10px; justify-items: start; }

/* ---------- okna ---------- */
.modal { position: fixed; inset: 0; z-index: 50; display: grid; place-items: center; padding: 16px; background: rgba(17, 24, 39, .5); animation: fade .18s ease both; }
.dialog { background: var(--white); border-radius: 18px; width: min(760px, 100%); max-height: 92vh; overflow: auto; padding: 20px; box-shadow: 0 40px 80px -30px rgba(17, 24, 39, .6); animation: pop .22s cubic-bezier(.2, .8, .2, 1) both; }
.dialog--sm { width: min(420px, 100%); }
.dialog h2 { font-size: 20px; letter-spacing: -.01em; }
.dialog .sub { color: var(--soft); font-size: 13.5px; margin-top: 4px; }
.dialog .top-row { display: flex; align-items: start; gap: 12px; margin-bottom: 14px; }
.pick { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 14px; }
.pick button { border: 1.5px solid var(--beige); background: var(--bg-soft); border-radius: 999px; padding: 8px 14px; font-weight: 600; font-size: 14px; }
.pick button[aria-pressed="true"] { background: var(--black); border-color: var(--black); color: var(--white); }
.slots { display: grid; grid-template-columns: repeat(5, minmax(104px, 1fr)); gap: 8px; overflow-x: auto; padding-bottom: 4px; }
.slots .d h4 { margin: 0 0 6px; font-size: 12.5px; text-align: center; }
.slots .d h4 span { display: block; color: var(--soft); font-weight: 500; }
.slot { display: block; width: 100%; border: 1.5px solid var(--beige); background: var(--white); border-radius: 8px; padding: 7px 0; margin-bottom: 5px; font-weight: 600; font-size: 13.5px; font-variant-numeric: tabular-nums; }
.slot:hover:not([disabled]) { border-color: var(--black); }
.slot[disabled] { background: #f1efeb; color: #a9a59c; border-color: transparent; text-decoration: line-through; cursor: default; }
.slot[aria-pressed="true"] { background: var(--black); color: var(--white); border-color: var(--black); }
.dialog .foot { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 10px; margin-top: 16px; }
.dialog .foot .sel { font-size: 14px; }
.legend { font-size: 12.5px; color: var(--soft); margin-top: 8px; }
.amount { width: 100%; border: 1.5px solid var(--beige); background: var(--bg-soft); border-radius: 10px; padding: 12px 14px; font-size: 20px; font-weight: 700; font-variant-numeric: tabular-nums; margin: 14px 0 0; }
.toast { position: fixed; left: 50%; bottom: 84px; transform: translateX(-50%); background: var(--black); color: var(--white); padding: 11px 16px; border-radius: 12px; font-size: 14px; font-weight: 600; z-index: 60; max-width: calc(100% - 32px); animation: pop .2s ease both; }

@keyframes fade { from { opacity: 0; } to { opacity: 1; } }
@keyframes slide { from { transform: translateX(40px); opacity: 0; } to { transform: none; opacity: 1; } }
@keyframes pop { from { transform: translateY(8px) scale(.98); opacity: 0; } to { transform: none; opacity: 1; } }

/* ---------- szerokie ekrany ---------- */
@media (min-width: 720px) {
  .stats { grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); }
  .week { grid-template-columns: repeat(5, 1fr); }
}
@media (min-width: 980px) {
  .shell { grid-template-columns: 208px minmax(0, 1fr); }
  .nav { position: sticky; top: 57px; align-self: start; height: calc(100vh - 57px); flex-direction: column; gap: 4px; border-top: 0; border-right: 1px solid var(--line); background: rgba(255, 255, 255, .5); padding: 14px 10px; }
  .nav button { flex: none; flex-direction: row; justify-content: flex-start; gap: 10px; padding: 10px 12px; font-size: 14.5px; }
  .nav .note { display: block; margin-top: auto; font-size: 12px; color: var(--soft); padding: 10px 6px; line-height: 1.4; }
  .main { padding: 24px 28px 48px; }
  .toast { bottom: 28px; }
  .list-head, .row { grid-template-columns: 1.5fr 1.35fr .7fr 1fr 1.1fr 1.1fr .8fr; }
  .list-head { display: grid; gap: 12px; padding: 10px 16px; font-size: 11.5px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--brown); border-bottom: 1px solid var(--line); background: var(--bg-soft); }
  .row .meta { display: contents; }
  .row .c-path, .row .c-src, .row .c-date, .row .c-owner, .row .c-next { display: block; font-size: 13.5px; color: var(--muted); min-width: 0; }
  .row .c-next .tries { display: flex; margin-bottom: 3px; }
  .row .c-status { justify-self: start; }
}
@media (prefers-reduced-motion: reduce) { * { animation: none !important; } }

/* ---------- finanse ---------- */
.tabs { display: flex; gap: 6px; overflow-x: auto; margin-bottom: 16px; padding-bottom: 2px; }
.tabs button { border: 1.5px solid var(--beige); background: var(--white); border-radius: 999px; padding: 9px 15px; font-weight: 600; font-size: 14px; white-space: nowrap; }
.tabs button[aria-selected="true"] { background: var(--black); border-color: var(--black); color: var(--white); }
.tw { overflow-x: auto; }
.tb { width: 100%; border-collapse: collapse; font-size: 14px; }
.tb th { text-align: left; font-size: 11.5px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--brown); padding: 8px 10px; border-bottom: 1px solid var(--line); white-space: nowrap; }
.tb td { padding: 10px; border-bottom: 1px solid var(--line); vertical-align: top; }
.tb tr:last-child td { border-bottom: 0; }
.tb .r { text-align: right; white-space: nowrap; font-variant-numeric: tabular-nums; }
.tb tr.ex td { opacity: .5; text-decoration: line-through; }
.tb tr.ex td:last-child { opacity: 1; text-decoration: none; }
.tb .btn { white-space: nowrap; }
.mut { color: var(--soft); font-size: 12.5px; }
.lnk { background: none; border: 0; padding: 0; font-weight: 700; text-decoration: underline; text-underline-offset: 3px; color: var(--ink); }
.chk { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; margin-top: 10px; }
.chk input { width: 18px; height: 18px; margin: 1px 0 0; accent-color: var(--black); flex: none; }
.chk.ro { flex-wrap: wrap; }
.fgrid { display: grid; gap: 10px; grid-template-columns: 1fr; margin-top: 10px; }
.fgrid label { display: grid; gap: 5px; font-size: 13px; font-weight: 600; }
.fgrid input, .fgrid select, .indrow input, .cell { width: 100%; border: 1.5px solid var(--beige); background: var(--bg-soft); border-radius: 10px; padding: 9px 11px; font-size: 14.5px; font-weight: 400; min-width: 0; }
.fgrid input:focus, .fgrid select:focus, .indrow input:focus, .cell:focus { outline: none; border-color: var(--black); box-shadow: 0 0 0 3px rgba(213, 201, 177, .5); background: var(--white); }
.cell--n { width: 76px; text-align: right; }
.checks { list-style: none; margin: 0 0 12px; padding: 0; display: grid; gap: 6px; font-size: 14px; }
.checks li.ok { color: var(--green); font-weight: 600; } .checks li.no { color: var(--red); font-weight: 600; }
.note { font-size: 13.5px; color: var(--muted); background: var(--fill); border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px; margin: 12px 0; }
.ind { display: grid; gap: 8px; }
.indrow { display: grid; grid-template-columns: 22px 1fr 1fr; gap: 8px; align-items: end; }
.indrow label { display: grid; gap: 4px; font-size: 12px; font-weight: 600; }
.indrow .n { font-weight: 700; color: var(--brown); padding-bottom: 10px; }
.indrow label:nth-of-type(3) { grid-column: 2 / 3; }
.indrow .x { align-self: end; }
.panel h4 { margin: 16px 0 8px; font-size: 13px; letter-spacing: .04em; color: var(--brown); text-transform: uppercase; }
.phead { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 8px 14px; margin-bottom: 6px; }
.phead h2 { margin: 0; }
.pay { font-size: 14px; color: var(--soft); } .pay b { font-size: 20px; color: var(--ink); margin-left: 6px; font-variant-numeric: tabular-nums; }
.sumline { text-align: right; font-size: 14px; margin-top: 8px; }
.sec a { color: var(--brown); overflow-wrap: anywhere; }
@media (min-width: 720px) {
  .fgrid--2 { grid-template-columns: 1fr 1fr; } .fgrid--3 { grid-template-columns: repeat(3, 1fr); } .fgrid--4 { grid-template-columns: repeat(4, 1fr); }
  .indrow { grid-template-columns: 22px 1fr 1fr 1fr 36px; }
  .indrow label:nth-of-type(3) { grid-column: auto; }
}

/* ---------- kalendarz: godziny pracy, sloty, mój dzień ---------- */
.slots { grid-template-columns: repeat(var(--n, 5), minmax(104px, 1fr)); }
.slot small { display: block; font-weight: 500; font-size: 11px; text-decoration: none; }
.slot[tabindex="-1"] { cursor: default; }
.sel { border: 1.5px solid var(--beige); border-radius: 10px; padding: 7px 10px; background: var(--white); }
.note.warn { background: #fbeceb; border-color: #efc6c2; color: var(--red); font-weight: 600; }
.avrow { display: grid; grid-template-columns: 1fr; gap: 6px; padding: 10px 0; border-top: 1px solid var(--line); }
.avs { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.av { display: inline-flex; align-items: center; gap: 6px; font-size: 13.5px; color: var(--soft); }
.av input { border: 1.5px solid var(--beige); background: var(--bg-soft); border-radius: 8px; padding: 6px 8px; font-size: 14px; }
.x--sm { width: 28px; height: 28px; font-size: 15px; border-radius: 8px; }
.lbl2 { display: grid; gap: 6px; font-size: 13px; font-weight: 600; margin-top: 14px; }
.lbl2 textarea { font-weight: 400; }
.panel--list .list { border-radius: 10px; }
.cnt { font-size: 13px; font-weight: 700; color: var(--brown); background: var(--fill); border: 1px solid var(--line); border-radius: 999px; padding: 1px 9px; margin-left: 4px; vertical-align: 2px; }
.row--mini .meta { display: flex !important; flex-wrap: wrap; gap: 6px 12px; grid-column: 1 / -1; font-size: 13px; color: var(--soft); }
.sec--hi { border-color: var(--ink); }
.head .chk { align-self: center; }
@media (max-width: 979px) { .nav button { font-size: 11.5px; padding: 8px 2px; } }
@media (min-width: 720px) { .avrow { grid-template-columns: 130px 1fr; align-items: center; } }
@media (min-width: 980px) { .row--mini { grid-template-columns: 1.4fr auto 2fr; } .row--mini .meta { grid-column: auto; justify-content: flex-end; } }

/* ---- wersja serwerowa: logowanie, konta, brak połączenia ---- */
.as{display:flex;align-items:center;gap:10px;font-size:13.5px;color:var(--soft)}
.kontoh{display:flex;gap:8px;align-items:center;flex-wrap:wrap}
.kontoh input{min-width:220px}
.offline{position:fixed;left:0;right:0;bottom:0;z-index:90;background:#7a1f1f;color:#fff;text-align:center;font-size:14px;padding:10px 16px}
.login{min-height:100vh;display:flex;align-items:center;justify-content:center;padding:24px}
.login form{width:100%;max-width:360px;display:flex;flex-direction:column;gap:14px}
.login h1{font-size:22px;margin:0 0 6px}
.login label{display:flex;flex-direction:column;gap:6px;font-size:13.5px}
.login input{font:inherit;padding:11px 12px;border-radius:10px;border:1px solid rgba(128,128,128,.4);background:transparent;color:inherit}
.login button{font:inherit;font-weight:600;padding:12px;border-radius:10px;border:0;cursor:pointer}
.login .err{color:#e06c6c;font-size:13.5px;min-height:18px}
.login input{background:var(--white);border-color:var(--beige)}
.login button{background:var(--ink);color:#fff}
.login .sub{color:var(--soft);font-size:14px;margin:0 0 8px}
