:root {
  /* Marka Apartamentka: kolory strony głównej (biel, mięta, turkus) */
  --bg: #f4f9f7; --card: #fff; --text: #10302f; --muted: #5b716d; --line: #e0ebe7;
  --teal: #1b6a6e; --teal-dark: #134e52; --mint: #3fb6a0; --mint-soft: #e6f5f0;
  --green: #12805c; --green-soft: #dcf4ea; --red: #c43b31; --red-soft: #fde8e5;
  --blue: #2a6f97; --blue-soft: #e4f1f8; --amber: #f0a35e; --amber-soft: #fff1e2;
  --grad: linear-gradient(135deg, #1b6a6e 0%, #23867d 55%, #3fb6a0 100%);
  --shadow: 0 1px 2px rgba(16, 48, 47, .04), 0 10px 30px -12px rgba(16, 48, 47, .14);
  --r: 20px; --chip: #eef6f3; --amber-text: #8a4a12;
  --font-head: "Plus Jakarta Sans", system-ui, "Segoe UI", sans-serif; --font-body: "Plus Jakarta Sans", system-ui, "Segoe UI", sans-serif; --head-weight: 800;
}
[data-brand="klucz"] {
  --bg: #f7f7fc; --text: #1c2050; --muted: #666a8a; --line: #e4e5f3;
  --teal: #3a40a0; --teal-dark: #24296b; --mint: #a9aceb; --mint-soft: #eaeafb;
  --amber: #ff6f59; --amber-soft: #ffe9e5; --amber-text: #a8321f; --chip: #eeeef8;
  --grad: linear-gradient(130deg, #24296b 0%, #3a40a0 60%, #6c6fd6 100%);
  --shadow: 0 1px 2px rgba(36, 41, 107, .05), 0 8px 24px rgba(36, 41, 107, .08);
  --font-head: "Manrope", system-ui, sans-serif; --font-body: "Manrope", system-ui, sans-serif; --head-weight: 800;
}
[data-brand="drzwi"] {
  --bg: #fbf7f5; --text: #2d1832; --muted: #75657a; --line: #eee3e4;
  --teal: #5e3366; --teal-dark: #3a1e3f; --mint: #d9a9b5; --mint-soft: #f6e8eb;
  --amber: #d9a441; --amber-soft: #f9efd9; --amber-text: #7a5610; --chip: #f4ecec;
  --grad: linear-gradient(130deg, #3a1e3f 0%, #5e3366 60%, #8f5a7f 100%);
  --shadow: 0 1px 2px rgba(58, 30, 63, .05), 0 8px 24px rgba(58, 30, 63, .08);
  --font-head: "DM Serif Display", Georgia, serif; --font-body: "DM Sans", system-ui, sans-serif; --head-weight: 400;
}
[data-brand="swiezosc"] {
  --bg: #f6fbf7; --text: #10362a; --muted: #5b7468; --line: #dcebe1;
  --teal: #0b7f5d; --teal-dark: #0b6b4f; --mint: #8fddb5; --mint-soft: #ddf4e6;
  --amber: #f4c92f; --amber-soft: #fdf5d0; --amber-text: #6e5700; --chip: #e9f3ec;
  --grad: linear-gradient(130deg, #0b6b4f 0%, #0b7f5d 60%, #33a877 100%);
  --shadow: 0 1px 2px rgba(11, 107, 79, .05), 0 8px 24px rgba(11, 107, 79, .08);
  --font-head: "Outfit", system-ui, sans-serif; --font-body: "Outfit", system-ui, sans-serif; --head-weight: 700;
}
* { box-sizing: border-box; }
body { margin: 0; min-height: 100vh; display: flex; flex-direction: column; background: var(--bg); color: var(--text);
       font: 15px/1.5 var(--font-body); }
h1, h2, .auth-hero h2, .sample-head { font-family: var(--font-head); font-weight: var(--head-weight); }
h1 { font-size: 1.7rem; line-height: 1.2; margin: 0; letter-spacing: -.01em; }
h2 { font-size: 1.2rem; margin: 0; }
.brand-logo { height: 34px; width: auto; display: block; }
.auth-logo { height: 44px; width: auto; margin: 0 auto 6px; display: block; }
h3 { font-size: 1.02rem; font-weight: 700; margin: 0; }
p { margin: 0; }
a { color: var(--teal); }
.wrap { width: 100%; max-width: 1200px; margin: 0 auto; padding: 20px 16px 32px; flex: 1; }
.center { text-align: center; }
.muted { color: var(--muted); }
.small { font-size: .85rem; }
.green { color: var(--green); }
.red { color: var(--red); font-weight: 600; }
.inline { display: inline-flex; gap: 6px; flex-wrap: wrap; align-items: center; margin: 0; }
.ic { width: 1.15em; height: 1.15em; flex: none; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; vertical-align: -.2em; }
.inactive { opacity: .55; }

/* Górny pasek */
.topnav { position: sticky; top: 0; z-index: 20; display: flex; gap: 8px; align-items: center; padding: 10px 16px;
          background: #fff; border-bottom: 1px solid var(--line); }
.topnav a, .topnav .brand { text-decoration: none; color: var(--text); }
.brand { display: inline-flex; align-items: center; gap: 9px; font-weight: 800; letter-spacing: -.01em; margin-right: 10px; white-space: nowrap; }
.brand-mark { display: grid; place-items: center; width: 32px; height: 32px; border-radius: 10px; background: var(--grad); color: #fff; }
.navlinks { display: flex; gap: 4px; overflow-x: auto; scrollbar-width: none; flex: 1; min-width: 0; }
.navlinks a { display: inline-flex; align-items: center; gap: 7px; padding: 7px 12px; border-radius: 10px; font-weight: 600; font-size: .9rem; color: var(--muted); white-space: nowrap; }
.navlinks a:hover { background: var(--bg); color: var(--text); }
.navlinks a.active { background: var(--mint-soft); color: var(--teal-dark); }
.topnav .right { display: inline-flex; align-items: center; gap: 7px; color: var(--muted); font-size: .9rem; font-weight: 600; padding: 7px; border-radius: 10px; }
.topnav .right:hover { background: var(--bg); color: var(--text); }
.topnav .right.active { background: var(--mint-soft); color: var(--teal-dark); }
.nav-tools { display: flex; align-items: center; gap: 2px; flex: none; margin-left: auto; }
@media (max-width: 720px) {
  .topnav { flex-wrap: wrap; }
  .navlinks { order: 3; flex-basis: 100%; }
  .topnav .right { margin-left: auto; }
  .hide-sm { display: none; }
}

/* Stopka */
.sitefoot { text-align: center; padding: 18px 16px 24px; font-size: .85rem; color: var(--muted); }
.sitefoot a { font-weight: 700; color: var(--teal-dark); text-decoration: none; }
.sitefoot a:hover { text-decoration: underline; }

/* Karty, przyciski, pola */
.card { background: var(--card); border-radius: var(--r); padding: 18px; margin-bottom: 16px; box-shadow: var(--shadow); }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; background: var(--teal); color: #fff; border: 1px solid transparent;
       border-radius: 11px; padding: 9px 16px; font: inherit; font-weight: 700; cursor: pointer; text-decoration: none; list-style: none; transition: background .15s, transform .05s; }
.btn:hover { background: var(--teal-dark); }
.btn:active { transform: translateY(1px); }
.btn-sm { padding: 6px 11px; font-size: .84rem; border-radius: 9px; }
.btn-ghost { background: #fff; color: var(--teal-dark); border-color: var(--line); }
.btn-ghost:hover { background: var(--mint-soft); }
.btn-ghost.copied { background: var(--green-soft); color: var(--green); }
.btn-big { padding: 13px 24px; font-size: 1.02rem; flex: 1; }
.btn-green { background: var(--green); }
.btn-green:hover { background: #116430; }
.btn-light { background: #fff; color: var(--teal-dark); }
.btn-light:hover { background: var(--mint-soft); }
.btn-outline-light { background: rgba(255,255,255,.12); color: #fff; border-color: rgba(255,255,255,.45); }
.btn-outline-light:hover { background: rgba(255,255,255,.22); }
input, select, textarea { font: inherit; padding: 9px 11px; border: 1px solid var(--line); border-radius: 10px; width: 100%; background: #fff; color: var(--text); }
input:focus, select:focus, textarea:focus { outline: 2px solid var(--mint); outline-offset: 0; border-color: transparent; }
label { display: grid; gap: 5px; font-size: .88rem; font-weight: 600; }
.flash { display: flex; gap: 10px; align-items: flex-start; padding: 12px 14px; border-radius: 12px; margin-bottom: 14px; font-weight: 500; }
.flash .ic { margin-top: 3px; }
.flash-ok { background: var(--green-soft); color: #0f5c2c; }
.flash-error { background: var(--red-soft); color: #94231f; }

/* Logowanie */
.auth { display: grid; grid-template-columns: 1fr 1fr; max-width: 820px; margin: 40px auto; border-radius: 22px; overflow: hidden; box-shadow: var(--shadow); background: #fff; }
.auth-hero { background: var(--grad); color: #fff; padding: 32px 28px; display: grid; gap: 8px; align-content: center; text-align: center; }
.auth-hero h2 { font-size: 1.25rem; font-weight: 800; }
.auth-hero p { opacity: .88; }
.auth-art { width: 100%; max-width: 300px; margin: 0 auto 8px; }
.auth-form { padding: 36px 30px; display: grid; gap: 16px; align-content: center; }
.pin { font-size: 1.7rem; text-align: center; letter-spacing: .45em; font-weight: 700; }
.pin-show { font-size: 1.25rem; letter-spacing: .18em; }
@media (max-width: 680px) {
  .auth { grid-template-columns: 1fr; margin: 4px auto; }
  .auth-hero { padding: 22px 20px; }
  .auth-art { max-width: 200px; }
  .auth-form { padding: 24px 20px; }
}

/* Baner */
.hero { display: flex; justify-content: space-between; align-items: center; gap: 20px; background: var(--grad); color: #fff; border-radius: 20px;
        padding: 24px 26px; margin-bottom: 16px; position: relative; box-shadow: var(--shadow); }
.hero-sm { padding: 20px 22px; }
.hero-text { display: grid; gap: 8px; min-width: 0; }
.hero-kicker { font-size: .85rem; font-weight: 600; opacity: .85; }
.hero-sub { opacity: .9; max-width: 62ch; }
.hero-actions { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 8px; }
.hero-pills { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 2px; }
.hero-pills span { background: rgba(255,255,255,.16); border-radius: 20px; padding: 3px 12px; font-size: .88rem; }
.ring { --p: 0; flex: none; width: 112px; height: 112px; border-radius: 50%; display: grid; place-items: center;
        background: conic-gradient(var(--amber) calc(var(--p) * 1%), rgba(255,255,255,.22) 0); }
.ring-inner { width: 90px; height: 90px; border-radius: 50%; background: var(--teal-dark); display: grid; place-content: center; text-align: center; }
.ring-inner b { font-size: 1.2rem; line-height: 1.1; }
.ring-inner small { font-size: .66rem; opacity: .85; }
.dropdown { position: relative; }
.dropdown summary::-webkit-details-marker { display: none; }
.dropdown-body { position: absolute; left: 0; top: 48px; width: 280px; display: grid; gap: 10px; z-index: 10; color: var(--text); margin: 0; }
@media (max-width: 560px) {
  .hero { padding: 20px; }
  .ring { width: 84px; height: 84px; }
  .ring-inner { width: 68px; height: 68px; }
  .ring-inner b { font-size: .95rem; }
  .ring-inner small { font-size: .55rem; }
  h1 { font-size: 1.3rem; }
}

/* Liczniki */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-bottom: 16px; }
.stat { --c: var(--teal-dark); --s: var(--mint-soft); display: flex; gap: 12px; align-items: center; background: #fff; border-radius: var(--r); padding: 14px; box-shadow: var(--shadow); }
.stat-green { --c: var(--green); --s: var(--green-soft); }
.stat-blue { --c: var(--blue); --s: var(--blue-soft); }
.stat-red { --c: var(--red); --s: var(--red-soft); }
.stat-icon { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 12px; background: var(--s); color: var(--c); flex: none; font-size: 1.05rem; }
.stat b { display: block; font-size: 1.35rem; line-height: 1.1; font-weight: 800; }
.stat small { color: var(--muted); font-size: .78rem; }
@media (max-width: 700px) { .stats { grid-template-columns: repeat(2, 1fr); } }

/* Pasek dni */
.daystrip { display: flex; gap: 8px; align-items: stretch; justify-content: center; flex-wrap: wrap; margin: 0 0 16px; }
.day-pill { display: grid; justify-items: center; min-width: 58px; padding: 7px 8px; border-radius: 13px; background: #fff; color: var(--text); text-decoration: none; box-shadow: var(--shadow); line-height: 1.2; }
.day-pill b { font-size: 1.15rem; font-weight: 800; }
.day-pill small { font-size: .7rem; color: var(--muted); }
.day-pill.today small:first-child { color: var(--teal); font-weight: 700; }
.day-pill.sel { background: var(--teal-dark); color: #fff; }
.day-pill.sel small { color: rgba(255,255,255,.8) !important; }
.day-pick { align-self: center; }
.day-pick input { width: auto; padding: 8px 10px; }
.weeknav { display: flex; justify-content: center; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 14px; }

.layout { display: grid; grid-template-columns: minmax(0, 1fr) 310px; gap: 16px; align-items: start; }
@media (max-width: 880px) { .layout { grid-template-columns: minmax(0, 1fr); } }

/* Zlecenie */
.job { background: #fff; border-radius: var(--r); padding: 16px 18px; margin-bottom: 14px; box-shadow: var(--shadow); display: grid; gap: 11px; border-top: 4px solid var(--teal); }
.job.urgent { border-top-color: var(--amber); }
.job.status-done { border-top-color: var(--green); }
.job.status-done .flow, .job.status-cancelled .flow { opacity: .6; }
.job.status-cancelled { border-top-color: var(--muted); opacity: .7; }
.job-head { display: flex; gap: 12px; align-items: center; }
.job-icon { display: grid; place-items: center; width: 42px; height: 42px; flex: none; border-radius: 12px; background: var(--mint-soft); color: var(--teal-dark); font-size: 1.05rem; }
.status-done .job-icon { background: var(--green-soft); color: var(--green); }
.job-title { flex: 1; min-width: 0; }
.job-addr { display: flex; gap: 5px; align-items: center; color: var(--muted); font-size: .83rem; }
.badge { display: inline-flex; align-items: center; gap: 6px; border-radius: 20px; padding: 4px 11px; font-size: .78rem; font-weight: 700; white-space: nowrap; }
.badge-open { background: var(--amber-soft); color: #8a4517; }
.badge-taken { background: var(--blue-soft); color: var(--blue); }
.badge-done { background: var(--green-soft); color: var(--green); }
.badge-cancelled { background: #edf1f3; color: var(--muted); }
.badge-warn { background: var(--amber-soft); color: #8a4517; font-weight: 600; margin-left: 8px; }
.alert { display: flex; gap: 9px; align-items: center; background: var(--amber-soft); color: #7a3a10; padding: 8px 12px; border-radius: 10px; font-weight: 700; font-size: .9rem; }
.flow { display: grid; grid-template-columns: 1fr auto 1fr; gap: 8px; align-items: center; }
.flow-side { display: grid; gap: 1px; padding: 9px 12px; border-radius: 12px; min-width: 0; }
.flow-side b { font-size: 1.1rem; font-weight: 800; }
.flow-out { background: var(--red-soft); color: #8e2622; }
.flow-in { background: var(--green-soft); color: #0f5c2c; }
.flow-label, .flow-sub { display: flex; gap: 5px; align-items: center; font-size: .76rem; font-weight: 600; }
.flow-time { display: inline-flex; gap: 5px; align-items: center; font-size: .78rem; font-weight: 700; color: var(--teal-dark); background: var(--mint-soft); border-radius: 20px; padding: 4px 10px; white-space: nowrap; }
@media (max-width: 420px) { .job-head { flex-wrap: wrap; } .flow-time { padding: 3px 7px; font-size: .7rem; } .flow-side { padding: 8px; } }
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chip { display: inline-flex; gap: 5px; align-items: center; background: var(--chip); border-radius: 20px; padding: 3px 10px; font-size: .78rem; font-weight: 600; white-space: nowrap; }
.note { background: var(--amber-soft); padding: 6px 10px; border-radius: 8px; }
.guidelines summary { cursor: pointer; font-weight: 700; color: var(--teal-dark); }
.actions { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.actions select { width: auto; min-width: 180px; }

/* Panel boczny */
.side { position: sticky; top: 74px; }
@media (max-width: 880px) { .side { position: static; } }
.side h3 { margin: 14px 0 8px; }
.month { display: flex; justify-content: space-between; background: var(--mint-soft); border-radius: 10px; padding: 8px 12px; font-weight: 700; }
.group { border: 1px solid var(--line); border-radius: 12px; margin: 8px 0; padding: 9px 12px; }
.group summary { display: flex; align-items: center; gap: 9px; cursor: pointer; font-weight: 600; list-style: none; }
.group summary::-webkit-details-marker { display: none; }
.group-count { margin-left: auto; background: var(--chip); border-radius: 20px; padding: 1px 9px; font-size: .78rem; font-weight: 700; }
.group ul { margin: 8px 0 2px; padding-left: 20px; font-size: .88rem; }
.group li.done { text-decoration: line-through; color: var(--muted); }
.group-warn { border-color: var(--amber); background: var(--amber-soft); }
.avatar { --h: 180; display: inline-grid; place-items: center; flex: none; width: 44px; height: 44px; border-radius: 50%;
          background: hsl(var(--h) 55% 88%); color: hsl(var(--h) 60% 26%); font-weight: 800; font-size: .95rem; }
.avatar-sm { width: 30px; height: 30px; font-size: .72rem; }
.avatar-xs { width: 19px; height: 19px; font-size: .55rem; }
.avatar-lg { width: 68px; height: 68px; font-size: 1.3rem; }
.avatar-warn { background: var(--amber); color: #4a2308; }
.avatar { overflow: hidden; }
.avatar img { width: 100%; height: 100%; object-fit: cover; display: block; }
.photo-form { margin: 0; flex: none; }
.photo-pick { position: relative; display: block; cursor: pointer; }
.photo-pick input { position: absolute; opacity: 0; width: 1px; height: 1px; padding: 0; }
.photo-pick:focus-within .avatar { outline: 2px solid var(--mint); outline-offset: 2px; }
.photo-badge { position: absolute; right: -2px; bottom: -2px; display: grid; place-items: center; width: 26px; height: 26px; border-radius: 50%;
               background: var(--teal); color: #fff; border: 2px solid #fff; font-size: .72rem; }
.linkbtn { background: none; border: 0; padding: 0; font: inherit; font-size: .82rem; font-weight: 600; color: var(--red); cursor: pointer; text-decoration: underline; }

/* Sekcje, puste stany */
.section-title { display: flex; align-items: center; gap: 10px; margin: 18px 0 10px; }
.section-title .group-count { margin-left: 0; }
.empty { display: grid; justify-items: center; gap: 6px; text-align: center; padding: 34px 18px; }
.empty-icon { display: grid; place-items: center; width: 58px; height: 58px; border-radius: 50%; background: var(--mint-soft); color: var(--teal); font-size: 1.4rem; margin-bottom: 4px; }
.empty-line { color: var(--muted); padding: 14px; background: rgba(255,255,255,.6); border-radius: 12px; }
.tip { display: flex; gap: 9px; color: var(--muted); font-size: .85rem; }
.tip .ic { margin-top: 3px; }

/* Dostępność */
.reminder { display: flex; align-items: center; gap: 12px; background: var(--amber-soft); color: #7a3a10; font-weight: 700; text-decoration: none;
            padding: 12px 14px; border-radius: 14px; margin-bottom: 14px; border: 1px solid var(--amber); }
.reminder small { display: block; font-weight: 500; }
.week-head { display: flex; justify-content: space-between; align-items: center; gap: 8px; flex-wrap: wrap; }
.week-form { display: grid; gap: 10px; }
.week-form.locked { opacity: .7; }
.sent { display: flex; gap: 6px; align-items: center; color: var(--green); font-weight: 600; }
.avail-row { display: grid; grid-template-columns: minmax(190px, 1fr) 1.2fr; gap: 8px; align-items: center; padding: 6px 0; border-top: 1px solid var(--line); }
@media (max-width: 480px) { .avail-row { grid-template-columns: 1fr; } }
.toggle { display: flex; align-items: center; gap: 11px; font-size: .98rem; font-weight: 600; cursor: pointer; }
.toggle input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.switch { position: relative; flex: none; width: 44px; height: 26px; border-radius: 26px; background: #cfdade; transition: background .15s; }
.switch::after { content: ""; position: absolute; top: 3px; left: 3px; width: 20px; height: 20px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(0,0,0,.25); transition: transform .15s; }
.toggle input:checked + .switch { background: var(--teal); }
.toggle input:checked + .switch::after { transform: translateX(18px); }
.toggle input:focus-visible + .switch { outline: 2px solid var(--mint); outline-offset: 2px; }
.scroll-x { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; }
th, td { text-align: left; padding: 8px; border-bottom: 1px solid var(--line); vertical-align: middle; }
table.grid th a { text-decoration: none; color: var(--teal-dark); }
table.grid th.center, table.grid td.center { text-align: center; }
.person { min-width: 190px; }
.person-in { display: flex; align-items: center; gap: 9px; }
.person .badge { display: flex; width: max-content; margin: 2px 0 0; }
.cell form { margin: 0; }
.cell-btn { width: 44px; height: 36px; border: 1px solid var(--line); border-radius: 10px; background: #fff; font-size: 1.05rem; font-weight: 700; cursor: pointer; color: var(--muted); }
.cell.yes .cell-btn { background: var(--green-soft); color: var(--green); border-color: transparent; }
.cell.no .cell-btn { background: var(--red-soft); color: var(--red); border-color: transparent; }
.count, .cell-note { display: block; font-size: .72rem; color: var(--muted); }
.count { color: var(--teal-dark); font-weight: 700; margin-top: 2px; }
tr.sum td { font-weight: 700; background: #f4f8f9; }

/* Zespół */
.row-form { display: flex; gap: 8px; flex-wrap: wrap; }
.row-form input { flex: 1; min-width: 180px; }
.people { display: grid; grid-template-columns: repeat(auto-fill, minmax(330px, 1fr)); gap: 14px; }
@media (max-width: 400px) { .people { grid-template-columns: minmax(0, 1fr); } }
.person-card { display: grid; gap: 12px; margin: 0; }
.person-card header { display: flex; align-items: center; gap: 12px; }
.copyrow { display: flex; gap: 6px; }
input.link { font-size: .78rem; font-weight: 400; min-width: 0; }
.person-actions { display: flex; justify-content: space-between; align-items: flex-end; gap: 10px; flex-wrap: wrap; }
.hours-form { margin: 0; }
input.hours { width: 90px; }

@media (max-width: 480px) {
  .job-head { flex-wrap: wrap; }
  .job-title { flex: 1 1 60%; }
}

/* Funkcje zlecenia */
.job { scroll-margin-top: 80px; }
.badge-in_progress { background: var(--blue-soft); color: var(--blue); }
.job.status-in_progress { border-top-color: var(--blue); }
.chip-ok { background: var(--green-soft); color: var(--green); }
.chip-warn { background: var(--amber-soft); color: var(--amber-text); }
.alert-block { margin-bottom: 16px; }
.nav-count { background: var(--red); color: #fff; border-radius: 20px; min-width: 18px; padding: 0 5px; font-size: .7rem; text-align: center; }
.group li.live { font-weight: 700; color: var(--blue); }
.group li small { font-weight: 500; }
.checklist { display: grid; gap: 2px; background: var(--bg); border-radius: 12px; padding: 10px 12px; }
.checklist-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 4px; }
.check-row { margin: 0; }
.check-row label { display: flex; align-items: center; gap: 10px; padding: 7px 0; font-weight: 500; font-size: .95rem; cursor: pointer; }
.check-row input { width: 22px; height: 22px; flex: none; accent-color: var(--teal); }
.check-row input:checked + span { color: var(--muted); text-decoration: line-through; }
.tools { display: flex; flex-wrap: wrap; gap: 8px; align-items: flex-start; }
.file-btn { position: relative; display: inline-flex; flex-direction: row; font-size: inherit; }
.file-btn input { position: absolute; opacity: 0; width: 1px; height: 1px; padding: 0; }
.issue-box { flex: 1 1 100%; }
.issue-box summary { width: max-content; }
.issue-box summary::-webkit-details-marker { display: none; }
.issue-form { display: grid; gap: 10px; margin-top: 10px; padding: 12px; border: 1px solid var(--line); border-radius: 12px; }
.issue-line { display: flex; gap: 8px; align-items: flex-start; background: var(--red-soft); color: #8e2622; border-radius: 10px; padding: 8px 12px; font-size: .88rem; }
.issue-line .ic { margin-top: 3px; }
.thumbs { display: flex; flex-wrap: wrap; gap: 8px; }
.thumbs img { width: 76px; height: 76px; object-fit: cover; border-radius: 10px; display: block; }
.issue-card { display: flex; gap: 14px; align-items: center; flex-wrap: wrap; }
.issue-body { flex: 1 1 240px; display: grid; gap: 6px; }
.issue-photo { width: 88px; height: 88px; object-fit: cover; border-radius: 12px; display: block; }
.stats-3 { grid-template-columns: repeat(3, 1fr); }
@media (max-width: 700px) { .stats-3 { grid-template-columns: minmax(0, 1fr); } }
.report-toggle { cursor: pointer; font-weight: 700; }

/* Kontrola opinii */
tr.rank-top td { background: var(--amber-soft); }
.review-tools { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; align-items: start; }
@media (max-width: 760px) { .review-tools { grid-template-columns: minmax(0, 1fr); } }
.review-head { display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; margin: 6px 0 12px; }
.review-head select { width: auto; }
.review { display: flex; gap: 16px; align-items: flex-start; flex-wrap: wrap; margin-bottom: 12px; }
.review.s-excluded { opacity: .6; }
.review-score { display: grid; justify-items: center; flex: none; width: 66px; padding: 10px 4px; border-radius: 14px; background: var(--green-soft); color: var(--green); }
.review-score b { font-size: 1.35rem; line-height: 1.1; font-weight: 800; }
.review-score small { font-size: .66rem; font-weight: 600; }
.review-score.low { background: var(--red-soft); color: var(--red); }
.review-body { flex: 1 1 260px; min-width: 0; display: grid; gap: 5px; }
.review-actions { display: grid; gap: 8px; flex: 0 1 210px; }
.review-actions form { margin: 0; }
.review-status-assigned { background: var(--green-soft); color: var(--green); }
.link-form { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.link-form select { flex: 1 1 240px; min-width: 0; }
.review-status-needs_check, .review-status-no_cleaning, .review-status-unlinked { background: var(--amber-soft); color: var(--amber-text); }
.review-status-pending { background: var(--blue-soft); color: var(--blue); }

/* Księga znaku */
.brand-options { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 440px), 1fr)); gap: 16px; margin-bottom: 16px; }
.brand-option { display: grid; gap: 12px; margin: 0; background: var(--card); color: var(--text); font-family: var(--font-body); border: 2px solid transparent; align-content: start; }
.brand-option.chosen { border-color: var(--teal); }
.brand-option-head { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.brand-logos { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.logo-tile { display: grid; place-items: center; background: var(--bg); border-radius: 12px; padding: 22px 14px; min-height: 96px; }
.logo-tile img { width: 100%; max-width: 210px; height: auto; }
.logo-dark { background: var(--teal-dark); }
.brand-row { display: flex; align-items: center; gap: 12px; }
.brand-icon { width: 56px; height: 56px; flex: none; }
.brand-sample { display: grid; gap: 6px; background: var(--bg); border-radius: 12px; padding: 14px; }
.sample-head { font-size: 1.3rem; line-height: 1.25; }
.sample-ui { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-top: 4px; }
.brand-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.brand-actions form { margin: 0; }
.brand-section { display: grid; gap: 10px; }
.swatches { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
.swatch { display: grid; gap: 1px; font-size: .78rem; min-width: 0; }
.swatch span { height: 46px; border-radius: 10px; border: 1px solid var(--line); margin-bottom: 4px; }
.swatch small { color: var(--muted); font-size: .7rem; }
.brand-files { display: flex; flex-wrap: wrap; gap: 8px; }

/* Apartamenty */
.apt { padding: 12px 16px; margin-bottom: 10px; }
.apt summary { display: flex; align-items: center; gap: 12px; cursor: pointer; list-style: none; }
.apt summary::-webkit-details-marker { display: none; }
.apt-name { display: grid; flex: 1; min-width: 0; }
.apt-name small { font-size: .82rem; }
.grid-form { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 12px; margin-top: 14px; align-items: end; }
.grid-form .full { grid-column: 1 / -1; }
.check { display: flex; align-items: center; gap: 8px; }
.check input { width: auto; }

/* Kody do apartamentu i rzeczy znalezione */
.codes { border: 1px solid var(--line); background: var(--mint-soft); border-radius: 12px; padding: 10px 12px; display: grid; gap: 6px; }
.codes p { display: flex; justify-content: space-between; gap: 12px; font-size: .9rem; }
.codes p span { color: var(--muted); }
.codes .codes-head { justify-content: flex-start; gap: 6px; color: var(--teal); }
.codes .code { font-size: 1.05rem; letter-spacing: .08em; font-variant-numeric: tabular-nums; }
.codes .codes-note { display: block; color: var(--text); font-size: .85rem; }
.codes-later { display: flex; gap: 6px; align-items: center; }
.found-line { display: flex; gap: 8px; align-items: flex-start; background: var(--amber-soft); color: var(--amber-text); border-radius: 10px; padding: 8px 12px; font-size: .88rem; }
.found-line .ic { margin-top: 3px; }
.found-actions { display: flex; flex-direction: column; gap: 8px; align-items: flex-end; }
.found-actions input[type=email] { min-width: 200px; }
fieldset.access { border: 1px solid var(--line); border-radius: 12px; padding: 12px; display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 10px; margin: 0; }
fieldset.access legend { font-weight: 700; padding: 0 6px; }
fieldset.access legend small { font-weight: 400; display: block; }
@media (max-width: 700px) { .found-actions { align-items: stretch; } .found-actions input[type=email] { min-width: 0; width: 100%; } }

/* ===== Panel v2: wygląd jak strona główna ===== */
html:not([data-brand]), html[data-brand="dach"] { background: var(--bg); }
body { background:
  radial-gradient(900px 420px at 100% -10%, #e3f5ef 0%, rgba(227,245,239,0) 70%),
  radial-gradient(700px 380px at -10% 110%, #eef8fd 0%, rgba(238,248,253,0) 70%), var(--bg);
  background-attachment: fixed; letter-spacing: -.005em; }
h1, h2, h3 { letter-spacing: -.02em; }
.wrap { max-width: 1240px; padding-top: 24px; }

/* Górny pasek: biały, rozmyty, aktywna zakładka jako miętowa pigułka */
.topnav { background: rgba(255,255,255,.86); backdrop-filter: saturate(1.4) blur(14px); border-bottom: 1px solid var(--line);
          padding: 10px 22px; gap: 14px; box-shadow: 0 1px 0 rgba(16,48,47,.02); }
.topnav .brand-logo { height: 30px; }
.navlinks { gap: 2px; justify-content: center; }
.navlinks a { border-radius: 999px; padding: 8px 14px; font-size: .88rem; transition: background .15s, color .15s; }
.navlinks a.active { background: var(--mint-soft); color: var(--teal); box-shadow: inset 0 0 0 1px #c9eadf; }
.nav-count { background: var(--red) !important; }
.nav-who { font-size: .8rem; font-weight: 700; color: var(--teal); background: var(--mint-soft); padding: 6px 12px; border-radius: 999px; white-space: nowrap; }

/* Nagłówek strony */
.hero { border-radius: 26px; padding: 26px 30px; position: relative; overflow: hidden;
        box-shadow: 0 24px 50px -24px rgba(27,106,110,.55); }
.hero::after { content: ""; position: absolute; right: -80px; top: -120px; width: 320px; height: 320px; border-radius: 50%;
               background: radial-gradient(circle, rgba(127,240,214,.35), rgba(127,240,214,0) 70%); pointer-events: none; }
.hero h1 { font-size: 1.9rem; font-weight: 800; }
.hero-sm { padding: 22px 26px; }
.hero-kicker { text-transform: uppercase; letter-spacing: .12em; font-size: .72rem; font-weight: 700; opacity: .8; }
.hero-pills span, .hero-pills a { background: rgba(255,255,255,.18); color: #fff; text-decoration: none; border-radius: 999px; padding: 4px 13px; }

/* Karty i przyciski */
.card, .stat, .job { border: 1px solid var(--line); box-shadow: var(--shadow); }
.card { border-radius: 22px; }
.btn { border-radius: 999px; font-weight: 700; padding: 10px 18px; box-shadow: 0 8px 18px -10px rgba(27,106,110,.6); transition: transform .12s, background .15s, box-shadow .15s; }
.btn:hover { transform: translateY(-1px); }
.btn-sm { border-radius: 999px; padding: 7px 13px; }
.btn-ghost { box-shadow: none; border-color: var(--line); }
.btn-green { background: var(--mint); }
.btn-green:hover { background: #2f9c88; }
input, select, textarea { border-radius: 12px !important; border-color: var(--line) !important; font-family: inherit; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--mint) !important; box-shadow: 0 0 0 4px rgba(63,182,160,.18); }

/* Liczniki dnia */
.stat { border-radius: 20px; padding: 16px; transition: transform .15s; }
.stat:hover { transform: translateY(-2px); }
.stat-icon { border-radius: 14px; width: 44px; height: 44px; }
.stat b { font-size: 1.55rem; }

/* Zlecenia */
.job { border-radius: 22px; border-top: 0; padding: 18px 20px; position: relative; overflow: hidden; }
.job::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 5px; background: var(--teal); }
.job.status-open::before { background: var(--amber); }
.job.urgent::before { background: linear-gradient(var(--red), var(--amber)); }
.job.status-done::before { background: var(--mint); }
.job.status-cancelled::before { background: #c6d3cf; }
.job-icon { border-radius: 14px; background: var(--mint-soft); color: var(--teal); }
.job-title h3 { font-size: 1.12rem; font-weight: 800; }
.badge { border-radius: 999px; padding: 5px 12px; }
.badge-open { background: var(--amber-soft); color: var(--amber-text); }
.badge-done { background: var(--mint-soft); color: var(--teal); }
.alert { border-radius: 14px !important; }
.chip { background: var(--chip); color: var(--teal-dark); }

/* Boczny panel i zespół */
.side .card, .side > * { border-radius: 20px; }
.avatar { box-shadow: 0 0 0 2px #fff, 0 4px 10px -4px rgba(16,48,47,.3); }
.people { grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 16px; }
.person-card { transition: transform .15s, box-shadow .15s; }
.person-card:hover { transform: translateY(-2px); box-shadow: 0 18px 40px -20px rgba(16,48,47,.3); }
.role-tabs { display: flex; gap: 8px; flex-wrap: wrap; margin: 0 0 18px; }
.role-tabs a { display: inline-flex; gap: 8px; align-items: center; padding: 9px 16px; border-radius: 999px; background: #fff; border: 1px solid var(--line);
               color: var(--text); text-decoration: none; font-weight: 700; font-size: .9rem; }
.role-tabs a b { background: var(--mint-soft); color: var(--teal); border-radius: 999px; padding: 1px 9px; font-size: .8rem; }
.role-tabs a:hover { border-color: var(--mint); }
.team-block { margin: 8px 0 34px; scroll-margin-top: 80px; }
.team-head { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; justify-content: space-between; margin-bottom: 12px; }
.row-form.compact { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; padding: 0; background: none; box-shadow: none; border: 0; }
.row-form.compact input { min-width: 180px; }
.person-id h3 { font-size: 1.05rem; }

/* Instrukcja mieszkania */
.apt-info { border: 1px solid var(--line); border-radius: 16px; background: #fbfdfc; }
.apt-info summary { cursor: pointer; padding: 11px 14px; font-weight: 700; display: flex; gap: 8px; align-items: center; color: var(--teal); list-style: none; }
.apt-info summary::-webkit-details-marker { display: none; }
.apt-info dl { margin: 0; padding: 0 14px 12px; display: grid; gap: 8px; }
.info-row { display: grid; grid-template-columns: 150px 1fr; gap: 10px; font-size: .88rem; padding-top: 8px; border-top: 1px dashed var(--line); }
.info-row dt { color: var(--muted); font-weight: 600; }
.info-row dd { margin: 0; white-space: pre-line; }
.info-key dd { background: var(--mint-soft); border-radius: 10px; padding: 8px 10px; }
.info-edit { border: 1px solid var(--line); border-radius: 14px; padding: 10px 12px; }
.info-edit summary { cursor: pointer; font-weight: 700; }
.info-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 10px; margin-top: 10px; }
.info-grid label.full { grid-column: 1 / -1; }
@media (max-width: 600px) { .info-row { grid-template-columns: 1fr; gap: 2px; } }

/* Złota rączka */
.handyman-line { display: flex; gap: 6px; align-items: center; color: var(--blue); }
.chip-ok-line { color: var(--green); }
.issue-actions { display: flex; flex-direction: column; gap: 8px; align-items: flex-end; }
.fix-card::before { background: var(--blue); }
.fix-text { font-size: 1.02rem; font-weight: 600; }
.codes-box summary { cursor: pointer; font-weight: 700; color: var(--teal); display: flex; gap: 6px; align-items: center; margin-bottom: 6px; }
.done-line { background: var(--mint-soft); color: var(--teal-dark); }
@media (max-width: 700px) {
  .topnav { padding: 8px 12px; }
  .navlinks { justify-content: flex-start; }
  .hero { padding: 20px; border-radius: 22px; }
  .hero h1 { font-size: 1.45rem; }
  .issue-actions { align-items: stretch; }
}

/* Strefy */
.chip-zone { background: #e4f1f8; color: #24597a; }
.zone-summary p { display: flex; flex-wrap: wrap; gap: 8px; align-items: baseline; margin-bottom: 10px; }

/* Twoje dane w pasku */
.nav-me { display: inline-flex; align-items: center; gap: 8px; padding: 4px 12px 4px 4px; border-radius: 999px; text-decoration: none;
          color: var(--text); border: 1px solid var(--line); background: #fff; }
.nav-me:hover, .nav-me.active { border-color: var(--mint); background: var(--mint-soft); }
.nav-me-text { display: grid; line-height: 1.1; font-size: .82rem; font-weight: 700; white-space: nowrap; }
.nav-me-text small { font-size: .68rem; font-weight: 600; color: var(--muted); }
.nav-tools { display: flex; align-items: center; gap: 6px; }
@media (max-width: 900px) { .nav-me-text { display: none; } .nav-me { padding: 4px; } }

/* Wiadomość od właściciela / managera */
.msg-note { display: flex; gap: 8px; align-items: flex-start; background: #fff6dc; color: #6b5310; border: 1px solid #ffe08a;
            border-radius: 14px; padding: 10px 12px; font-size: .92rem; }
.msg-note .ic { margin-top: 3px; color: #b8860b; }
.msg-edit summary { cursor: pointer; display: inline-flex; gap: 6px; align-items: center; font-size: .84rem; font-weight: 700; color: var(--teal); list-style: none; }
.msg-edit summary::-webkit-details-marker { display: none; }
.msg-form { display: flex; gap: 8px; margin-top: 8px; }
.msg-form input { flex: 1; min-width: 0; }

/* UWAGA: niestandardowe godziny wyjazdu / przyjazdu */
.time-warn { display: flex; gap: 12px; align-items: center; background: #fff1e0; border: 2px solid #f08a2c; border-radius: 16px; padding: 10px 14px;
             color: #7a3a00; animation: warnPulse 1.8s ease-in-out infinite; }
.time-warn b { display: block; font-size: .98rem; }
.time-warn small { display: block; font-size: .78rem; color: #8a5a2c; margin-top: 2px; }
.time-warn-badge { display: inline-flex; gap: 6px; align-items: center; flex: none; background: #e8590c; color: #fff; font-weight: 800;
                   letter-spacing: .08em; font-size: .8rem; padding: 7px 11px; border-radius: 999px; box-shadow: 0 6px 14px -6px rgba(232,89,12,.8); }
.time-warn-badge .ic { stroke-width: 2.6; }
@keyframes warnPulse { 50% { box-shadow: 0 0 0 6px rgba(240,138,44,.18); } }
.job.time-alert::before { background: #e8590c; width: 7px; }
.flow-side.time-off { outline: 3px solid #e8590c; outline-offset: -3px; }
.flow-side.time-off b { color: #c2410c; }
@media (prefers-reduced-motion: reduce) { .time-warn { animation: none; } }

/* Powiadomienia */
.bell { position: relative; }
.bell-count { position: absolute; top: -2px; right: -4px; min-width: 18px; height: 18px; border-radius: 999px; background: #e8590c; color: #fff;
              font-size: .68rem; font-weight: 800; display: grid; place-items: center; padding: 0 5px; box-shadow: 0 0 0 2px #fff; }
.notif-banner { background: #fff1e0 !important; border-color: #f5b47a !important; color: #7a3a00 !important; }
.notif-list { display: grid; gap: 10px; }
.notif { display: flex; gap: 12px; align-items: flex-start; background: #fff; border: 1px solid var(--line); border-radius: 18px; padding: 14px;
         text-decoration: none; color: var(--text); box-shadow: var(--shadow); }
.notif.unread { border-color: var(--mint); background: #fbfffd; }
.notif-ic { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 12px; background: var(--mint-soft); color: var(--teal); flex: none; }
.notif-grafik { background: #e4f1f8; color: #24597a; }
.notif-usterka { background: var(--red-soft); color: var(--red); }
.notif-wiadomosc { background: #fff6dc; color: #9a6b00; }
.notif-body { flex: 1; font-weight: 600; line-height: 1.4; }
.notif-body small { display: block; color: var(--muted); font-weight: 500; font-size: .78rem; margin-top: 3px; }
.notif-dot { width: 10px; height: 10px; border-radius: 50%; background: #e8590c; flex: none; margin-top: 6px; }

/* Sposób liczenia wypłat */
.pay-box summary { cursor: pointer; display: flex; gap: 10px; align-items: center; list-style: none; }
.pay-box summary::-webkit-details-marker { display: none; }
.pay-form { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 14px; align-items: end; }
.pay-form .full, .pay-options { grid-column: 1 / -1; }
.pay-options { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; border: 0; padding: 0; margin: 0; }
.pay-opt { display: flex; gap: 10px; align-items: flex-start; border: 1.5px solid var(--line); border-radius: 16px; padding: 12px 14px; cursor: pointer; }
.pay-opt:has(input:checked) { border-color: var(--mint); background: var(--mint-soft); }
.pay-opt b { display: block; } .pay-opt small { color: var(--muted); }
@media (max-width: 700px) { .pay-form, .pay-options { grid-template-columns: 1fr; } }

/* Zarządzanie strefami */
.zones-card h2 { font-size: 1.2rem; }
.zone-list { display: grid; gap: 8px; margin-top: 12px; }
.zone-item { border: 1px solid var(--line); border-radius: 16px; padding: 10px 12px; background: #fbfdfc; }
.zone-item summary { cursor: pointer; display: flex; flex-wrap: wrap; gap: 10px; align-items: center; list-style: none; }
.zone-item summary::-webkit-details-marker { display: none; }
.zone-edit { margin-left: auto; font-size: .82rem; font-weight: 700; color: var(--teal); }
.zone-new { border-style: dashed; background: none; }
.zone-none { color: var(--muted); padding: 4px 2px; }
.zone-form { display: grid; gap: 10px; margin-top: 12px; }
.zone-pick { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 6px; }
.zone-apt { display: flex; gap: 8px; align-items: flex-start; border: 1px solid var(--line); border-radius: 12px; padding: 8px 10px; cursor: pointer; background: #fff; font-size: .88rem; font-weight: 600; }
.zone-apt:has(input:checked) { border-color: var(--mint); background: var(--mint-soft); }
.zone-apt small { display: block; font-weight: 500; color: var(--muted); font-size: .74rem; }
.zone-apt.other { opacity: .8; }
.zone-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.zone-heading { display: flex; gap: 8px; align-items: center; margin: 18px 4px 10px; font-size: .82rem; text-transform: uppercase;
                letter-spacing: .1em; color: #24597a; }
.zone-heading small { background: #e4f1f8; border-radius: 999px; padding: 1px 8px; letter-spacing: 0; }
.zone-heading:first-child { margin-top: 0; }

/* Pola wyboru (radio, checkbox) nie rozciągają się na całą szerokość */
input[type=radio], input[type=checkbox] { width: 18px; height: 18px; padding: 0; flex: none; margin: 2px 0 0; accent-color: var(--teal); box-shadow: none !important; }
.pay-opt, .zone-apt { display: flex !important; flex-direction: row; gap: 10px; align-items: flex-start; text-align: left; }
.pay-opt span, .zone-apt span { flex: 1; min-width: 0; }
.pay-opt b { font-size: .98rem; }
.pay-opt small { display: block; font-weight: 500; margin-top: 2px; }
.pay-form .btn { justify-self: start; min-width: 180px; }
/* Telefon Pani: dolny pasek zakładek jak w aplikacji */
@media (max-width: 700px) {
  .cleaner-nav .navlinks { position: fixed; left: 0; right: 0; bottom: 0; z-index: 30; justify-content: space-around; gap: 0;
    background: rgba(255,255,255,.96); backdrop-filter: blur(12px); border-top: 1px solid var(--line); padding: 6px 4px calc(6px + env(safe-area-inset-bottom)); }
  .cleaner-nav .navlinks a { flex-direction: column; gap: 3px; font-size: .72rem; padding: 6px 10px; border-radius: 14px; flex: 1; justify-content: center; }
  .cleaner-nav .navlinks a .ic { width: 1.35em; height: 1.35em; }
  body:has(.cleaner-nav) { padding-bottom: 76px; }
  .cleaner-nav { flex-wrap: nowrap; }
}@media (max-width: 700px) { .cleaner-nav { backdrop-filter: none; -webkit-backdrop-filter: none; background: #fff; } }
/* Termin zgłoszeń */
.deadline-box summary { cursor: pointer; display: flex; flex-wrap: wrap; gap: 10px; align-items: center; list-style: none; }
.deadline-box summary::-webkit-details-marker { display: none; }
.deadline-form { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 14px; align-items: end; }
.deadline-form .full, .deadline-form .check-row-inline { grid-column: 1 / -1; }
.check-row-inline { display: flex !important; gap: 10px; align-items: flex-start; font-weight: 600; }
.deadline-form .btn { justify-self: start; min-width: 160px; }
@media (max-width: 700px) { .deadline-form { grid-template-columns: 1fr; } }

/* Ręczna poprawka czasu */
.time-fix { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.time-fix input[type=number] { width: 78px; padding: 6px 8px; }
.time-tag { font-size: .7rem; font-weight: 700; border-radius: 999px; padding: 2px 8px; background: var(--chip); color: var(--muted); }
.time-tag.manual { background: #e4f1f8; color: #24597a; }
.time-tag.missing { background: #fff1e0; color: #b45309; }
.row-missing td { background: #fffaf3; }
.chip-missing { background: #fff1e0; color: #b45309; margin-left: 8px; }

/* Karta zlecenia v2 */
.tag-turnover { display: inline-block; vertical-align: middle; margin-left: 8px; font-size: .68rem; font-weight: 800; text-transform: uppercase;
                letter-spacing: .06em; color: #9a3412; background: #ffedd5; border-radius: 999px; padding: 3px 9px; }
.flow-mid { display: grid; gap: 6px; justify-items: center; align-content: center; }
.flow-window { display: grid; justify-items: center; font-weight: 800; font-size: .95rem; color: var(--teal); background: var(--mint-soft);
               border-radius: 12px; padding: 5px 10px; line-height: 1.1; }
.flow-window.tight { color: #c2410c; background: #fff1e0; }
.flow-window small, .flow-time small { display: block; font-size: .62rem; font-weight: 600; color: var(--muted); text-transform: uppercase; letter-spacing: .06em; }
.flow-time { flex-direction: column; line-height: 1.1; }
.guest-line { display: flex; flex-wrap: wrap; gap: 4px 10px; align-items: center; font-size: .85rem; color: var(--muted); }
.guest-line b { color: var(--text); font-weight: 700; }
.guest-line .src { background: var(--chip); border-radius: 999px; padding: 1px 8px; font-size: .74rem; }
.msg-note-edit summary { display: flex; gap: 8px; align-items: flex-start; cursor: pointer; list-style: none; }
.msg-note-edit summary::-webkit-details-marker { display: none; }
.msg-note-edit summary > span:first-of-type { flex: 1; }
.msg-edit-link { font-size: .78rem; font-weight: 700; color: #8a6400; text-decoration: underline; }
.msg-note-edit .msg-form { margin-top: 10px; }
.admin-bar { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; padding-top: 12px; border-top: 1px solid var(--line); }
.assign-form { flex: 1 1 220px; min-width: 0; }
.assign-label { display: flex !important; align-items: center; gap: 8px; border: 1px solid var(--line); border-radius: 999px; padding: 3px 4px 3px 5px; background: #fff; }
.assign-label select { border: 0 !important; box-shadow: none !important; padding: 6px 8px; background: transparent; font-weight: 700; }
.avatar-empty { background: #eef2f1 !important; color: var(--muted) !important; }
.status-form { display: flex; gap: 6px; align-items: center; margin-left: auto; }
.msg-add { display: contents; }
.msg-add[open] .msg-form { order: 10; flex: 1 1 100%; }
.msg-add summary { list-style: none; }
.msg-add summary::-webkit-details-marker { display: none; }
.more-menu { position: relative; }
.more-menu summary { list-style: none; min-width: 36px; font-weight: 800; letter-spacing: .08em; }
.more-menu summary::-webkit-details-marker { display: none; }
.more-pop { position: absolute; right: 0; bottom: calc(100% + 6px); z-index: 5; background: #fff; border: 1px solid var(--line); border-radius: 14px;
            box-shadow: 0 16px 40px -12px rgba(16,48,47,.35); padding: 6px; min-width: 190px; }
.more-item { display: block; width: 100%; text-align: left; border: 0; background: none; padding: 9px 12px; border-radius: 10px; font: inherit; font-weight: 600; cursor: pointer; }
.more-item:hover { background: var(--bg); }
.more-item.danger { color: var(--red); }
@media (max-width: 600px) { .status-form { margin-left: 0; } .assign-form { flex-basis: 100%; } }

/* Brak stawki */
.rate-warn { display: flex; gap: 12px; align-items: flex-start; background: #fff1f0; border: 1.5px solid #f4b4ab; color: #8e2622; border-radius: 18px; padding: 14px 16px; margin-bottom: 16px; }
.rate-warn > .ic { margin-top: 3px; width: 1.4em; height: 1.4em; flex: none; }
.rate-warn b { display: block; }
.rate-warn small { display: block; margin-top: 3px; color: #8a4a40; }
.rate-warn-actions { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 10px; }