/* v79: písma uložená přímo v aplikaci (dřív Google Fonts) – bez přenosu dat ke Googlu a fungují i bez signálu. Licence SIL OFL. */
@font-face { font-family: 'Archivo'; font-style: normal; font-display: swap; font-weight: 100 900; src: url(fonts/archivo-latin-ext-wght-normal.woff2) format('woff2'); unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF; }
@font-face { font-family: 'Archivo'; font-style: normal; font-display: swap; font-weight: 100 900; src: url(fonts/archivo-latin-wght-normal.woff2) format('woff2'); unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD; }
@font-face { font-family: 'IBM Plex Mono'; font-style: normal; font-display: swap; font-weight: 400; src: url(fonts/ibm-plex-mono-latin-ext-400-normal.woff2) format('woff2'); unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF; }
@font-face { font-family: 'IBM Plex Mono'; font-style: normal; font-display: swap; font-weight: 400; src: url(fonts/ibm-plex-mono-latin-400-normal.woff2) format('woff2'); unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD; }
@font-face { font-family: 'IBM Plex Mono'; font-style: normal; font-display: swap; font-weight: 500; src: url(fonts/ibm-plex-mono-latin-ext-500-normal.woff2) format('woff2'); unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF; }
@font-face { font-family: 'IBM Plex Mono'; font-style: normal; font-display: swap; font-weight: 500; src: url(fonts/ibm-plex-mono-latin-500-normal.woff2) format('woff2'); unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD; }
:root {
  /* v87: světlý motiv v barvách LERAM Building (logo: petrolejová #004072 + tyrkysová #00BED1) */
  --bg: #F1F3F2;          /* beton */
  --surface: #FFFFFF;
  --surface-2: #E8ECEE;
  --surface-3: #DCE2E6;
  --ink: #0E2338;
  --ink-2: #3A4A5C;
  --muted: #66768A;
  --line: #DCE2E7;
  --brand: #004072;
  --accent: #00BED1;
  --accent-ink: #00788A;
  --accent-soft: #DCF3F6;
  --on-accent: #06263F;
  --red: #D92D20; --red-soft: #FDECEA; --red-ink: #B42318;
  --orange: #E8780C; --orange-soft: #FDF0E1; --orange-ink: #A8530A;
  --green: #16A34A; --green-soft: #E5F5EA; --green-ink: #15803D;
  --violet-soft: #EFEBFD; --violet-ink: #5B3FC4;
  --shadow: 0 1px 2px rgba(16,24,40,.05), 0 1px 3px rgba(16,24,40,.06);
  /* staré názvy (používají je zbylá pravidla) */
  --navy: var(--ink);
  --navy-2: var(--surface);
  --navy-3: var(--surface-2);
  --blue: var(--brand);
  --cyan: var(--accent);
  --light: var(--ink);
  --muted-2: var(--ink-2);
  --grey: #9AA4B2;
  --pink: #E0508A;
  --mono: 'IBM Plex Mono', ui-monospace, monospace;
  --sans: 'Archivo', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --safe-top: env(safe-area-inset-top, 0px);
  --safe-bottom: env(safe-area-inset-bottom, 0px);
}
* { box-sizing: border-box; }
html, body { margin: 0; background: var(--bg); color: var(--ink); font-family: var(--sans); -webkit-text-size-adjust: 100%; }
body { min-height: 100vh; min-height: 100dvh; }
a { color: inherit; }
button, input, textarea, select { font: inherit; }
button { cursor: pointer; }
button:disabled { cursor: default; }
:focus-visible { outline: 3px solid var(--cyan); outline-offset: 2px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- page shell ---------- */
.page { padding: calc(28px + var(--safe-top)) 40px calc(40px + var(--safe-bottom)); max-width: 1500px; margin: 0 auto; display: flex; flex-direction: column; gap: 28px; }
.topbar { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 22px; }
.brand { display: flex; align-items: center; gap: 12px; }
.brand-sub { font-family: var(--mono); font-size: 12px; letter-spacing: 3px; color: var(--accent-ink); padding-left: 12px; border-left: 1px solid var(--line); }
.spacer { flex: 1 1 20px; }
.user { display: flex; align-items: center; gap: 10px; }
.user-text { display: flex; flex-direction: column; align-items: flex-end; }
.user-name { font-size: 15px; }
.user-role { font-family: var(--mono); font-size: 11px; letter-spacing: 1px; color: var(--muted); text-transform: uppercase; }
.avatar { width: 44px; height: 44px; background: var(--accent); color: var(--on-accent); display: flex; align-items: center; justify-content: center; font-weight: 700; border: 0; }
.topbar .titleblock { flex: 1 1 260px; }
.back { width: 44px; height: 44px; flex: 0 0 44px; border: 2px solid var(--ink); border-radius: 50%; background: transparent; color: var(--ink); display: flex; align-items: center; justify-content: center; text-decoration: none; }
.titleblock { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.kicker { font-family: var(--mono); font-size: 12px; letter-spacing: 1px; color: var(--muted); text-transform: uppercase; }
h1.title { margin: 0; font-size: 40px; font-weight: 300; letter-spacing: -0.5px; color: var(--ink); line-height: 1.1; overflow-wrap: anywhere; }
.sub { font-family: var(--mono); font-size: 13px; color: var(--muted); text-transform: uppercase; }

/* ---------- tiles ---------- */
.tiles { display: flex; flex-wrap: wrap; gap: 8px; }
.tile { width: 308px; height: 308px; padding: 18px; display: flex; flex-direction: column; gap: 8px; text-decoration: none; color: var(--ink); border: 0; text-align: left; background: var(--surface-2); position: relative; }
.tile:hover { filter: brightness(1.08); }
.tile.blue { background: var(--brand); }
.tile.navy2 { background: var(--surface); }
.tile.cyan { background: var(--accent); color: var(--on-accent); }
.tile.disabled { opacity: 0.55; pointer-events: none; }
.tile .t-kicker { font-family: var(--mono); font-size: 12px; letter-spacing: 1px; color: var(--ink); }
.tile .t-line { font-size: 14px; color: var(--ink); }
.tile.cyan .t-line, .tile.cyan .t-kicker { color: var(--ink); }
.tile .t-name { margin-top: auto; font-size: 22px; font-weight: 500; }
.tile .t-big { font-size: 56px; font-weight: 300; line-height: 1; }
.counts { display: flex; flex-direction: column; gap: 4px; }
.count-row { display: flex; align-items: center; gap: 14px; }
.count-row .n { width: 52px; font-size: 40px; font-weight: 300; line-height: 1.1; }
.count-row .l { display: flex; align-items: center; gap: 8px; font-size: 15px; color: var(--ink); }
.dot { width: 12px; height: 12px; border-radius: 50%; flex: 0 0 12px; display: inline-block; }
.dot.open { background: var(--red); } .dot.fixed { background: var(--orange); } .dot.over { background: var(--grey); } .dot.done { background: var(--green); }

/* ---------- forms ---------- */
.field { display: flex; flex-direction: column; gap: 6px; }
.label { font-family: var(--mono); font-size: 11px; letter-spacing: 1px; color: var(--muted); text-transform: uppercase; }
.input, .textarea { width: 100%; border: 0; background: #fff; color: var(--ink); font-size: 16px; padding: 0 12px; height: 48px; border-radius: 0; -webkit-appearance: none; appearance: none; }
.textarea { height: auto; padding: 12px; min-height: 110px; resize: vertical; }
.btn { min-height: 48px; padding: 0 18px; border: 0; background: var(--accent); color: var(--on-accent); font-size: 16px; font-weight: 600; display: inline-flex; align-items: center; justify-content: center; gap: 8px; text-decoration: none; }
.btn.secondary { background: var(--surface); color: var(--ink); font-weight: 400; }
.btn.small { min-height: 40px; font-size: 14px; padding: 0 12px; }
.btn:disabled { opacity: 0.5; }
.error { background: var(--red); color: #fff; padding: 10px 12px; font-size: 14px; }
.note { font-size: 13px; color: var(--muted); line-height: 1.5; }

/* ---------- login ---------- */
.login { min-height: 100vh; min-height: 100dvh; display: flex; align-items: center; justify-content: center; padding: 24px; }
.login-box { width: 100%; max-width: 380px; display: flex; flex-direction: column; gap: 18px; }

/* ---------- file list ---------- */
.toolbar { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.search { flex: 1 1 220px; display: flex; align-items: center; gap: 8px; height: 44px; padding: 0 12px; background: var(--surface); color: var(--muted); }
.search input { border: 0; outline: none; background: transparent; color: var(--ink); font-size: 16px; width: 100%; }
.crumbs { display: flex; flex-wrap: wrap; gap: 4px 8px; font-family: var(--mono); font-size: 12px; color: var(--muted); }
.crumbs a { color: var(--muted); text-decoration: none; }
.crumbs a:hover { color: var(--accent-ink); }
.list { display: flex; flex-direction: column; }
.row { display: flex; align-items: center; gap: 12px; min-height: 62px; padding: 8px 4px; border-bottom: 1px solid var(--line); text-decoration: none; color: var(--ink); background: none; border-left: 0; border-right: 0; border-top: 0; text-align: left; width: 100%; }
.row:hover { background: var(--surface-2); }
.ficon { width: 40px; height: 40px; flex: 0 0 40px; display: flex; align-items: center; justify-content: center; }
.ficon.folder { background: var(--brand); }
.ficon.file { background: var(--brand); color: #fff; align-items: flex-end; padding-bottom: 6px; font-family: var(--mono); font-size: 10px; font-weight: 500; }
.rtext { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.rname { font-size: 15px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rmeta { font-family: var(--mono); font-size: 12px; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.empty { padding: 40px 0; text-align: center; color: var(--muted); display: flex; flex-direction: column; gap: 10px; align-items: center; }
.progress { background: var(--surface); padding: 12px 14px; display: flex; flex-direction: column; gap: 8px; font-size: 14px; }
.bar { height: 6px; background: var(--surface-2); }
.bar > div { height: 6px; background: var(--accent); width: 0; transition: width .2s; }

/* ---------- drawing viewer ---------- */
.viewer-page { height: 100vh; height: 100dvh; display: flex; flex-direction: column; gap: 10px; padding: calc(14px + var(--safe-top)) 14px calc(14px + var(--safe-bottom)); }
.vtiles { display: flex; gap: 6px; align-items: stretch; }
.vtile { width: 130px; height: 84px; padding: 10px; border: 0; color: var(--ink); background: var(--surface); display: flex; flex-direction: column; justify-content: space-between; text-align: left; text-decoration: none; font-size: 14px; }
.vtile.cyan { background: var(--accent); color: var(--on-accent); font-weight: 600; }
.vtile.blue { background: var(--brand); }
.vtile.n3 { background: var(--surface-2); }
.vtile.active { background: var(--pink); color: var(--on-accent); }
.vtile:disabled { opacity: 0.5; }
.vtile .vt-meta { font-family: var(--mono); font-size: 11px; }
.vhead { flex: 1; min-width: 0; display: flex; flex-direction: column; justify-content: flex-end; align-items: flex-end; text-align: right; gap: 2px; }
.vhead .vname { font-size: 17px; font-weight: 300; color: var(--ink); overflow-wrap: anywhere; }
.vbanner { display: flex; align-items: center; gap: 12px; padding: 10px 14px; background: var(--accent); color: var(--on-accent); }
.vbanner b { font-size: 15px; }
.viewer { isolation: isolate; flex: 1; min-height: 0; position: relative; overflow: hidden; background: #fff; touch-action: none; user-select: none; -webkit-user-select: none; -webkit-touch-callout: none; }
.viewer.placing { cursor: crosshair; }
.stage { position: absolute; left: 0; top: 0; transform-origin: 0 0; will-change: transform; }
.stage canvas { display: block; width: 100%; height: 100%; }
.viewer canvas.hi { position: absolute; display: block; pointer-events: none; }
.mstage { position: absolute; inset: 0; overflow: hidden; pointer-events: none; }
.mstage .marker { pointer-events: auto; }
.markers { position: absolute; inset: 0; }
.marker { position: absolute; width: 40px; height: 40px; border-radius: 50%; border: 3px solid #fff; box-shadow: 0 2px 8px rgba(7,23,76,.45); display: flex; align-items: center; justify-content: center; transform: translate(-50%, -50%); padding: 0; }
.marker.open { background: var(--red); } .marker.fixed { background: var(--orange); } .marker.done { background: var(--green); }
.marker.focus { box-shadow: 0 0 0 6px rgba(59, 221, 236, .7), 0 2px 8px rgba(7,23,76,.45); }
.vcontrols { position: absolute; right: 10px; bottom: 10px; display: flex; gap: 4px; }
.vcontrols button { width: 44px; height: 44px; border: 0; background: var(--surface); color: var(--ink); font-size: 20px; }
.vlegend { position: absolute; left: 10px; bottom: 10px; background: var(--surface); color: var(--ink); padding: 8px 12px; display: flex; flex-wrap: wrap; gap: 6px 14px; font-size: 12px; }
.vlegend span { display: flex; align-items: center; gap: 6px; }
.vloading { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; color: var(--ink); font-size: 15px; }
.pager { display: flex; align-items: center; gap: 6px; font-family: var(--mono); font-size: 12px; }

/* ---------- tasks ---------- */
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chip { font-size: 13px; padding: 5px 9px; background: var(--brand); color: #fff; }
.trade-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); background: #fff; }
.trade { min-height: 46px; padding: 0 12px; border: 0; border-bottom: 1px solid #ECEEF5; background: #fff; color: var(--ink); font-size: 15px; display: flex; align-items: center; gap: 10px; text-align: left; }
.trade.on { background: #ECEFFE; }
.check { width: 20px; height: 20px; flex: 0 0 20px; border: 2px solid var(--blue); display: flex; align-items: center; justify-content: center; color: var(--ink); font-size: 13px; }
.trade.on .check { background: var(--brand); }
.dropdown { min-height: 48px; padding: 8px 12px; border: 0; background: #fff; color: var(--ink); font-size: 16px; display: flex; align-items: center; gap: 8px; text-align: left; width: 100%; }
.media-btns { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.media-btn { height: 96px; padding: 10px; color: #fff; background: var(--brand); display: flex; flex-direction: column; justify-content: space-between; cursor: pointer; position: relative; }
.media-btn.n3 { background: var(--surface-2); }
.media-btn input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.thumbs { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; }
.thumb { aspect-ratio: 1; background: var(--surface); position: relative; overflow: hidden; display: flex; align-items: center; justify-content: center; color: var(--muted); font-size: 12px; }
.thumb img, .thumb video { width: 100%; height: 100%; object-fit: cover; display: block; }
.thumb .tclick { position: absolute; inset: 0; width: 100%; height: 100%; padding: 0; border: 0; background: none; cursor: pointer; display: block; }
.play-badge { position: absolute; left: 50%; top: 50%; width: 44px; height: 44px; margin: -22px 0 0 -22px; border-radius: 50%; background: rgba(7,23,76,.78); border: 2px solid #fff; color: #fff; display: flex; align-items: center; justify-content: center; pointer-events: none; padding-left: 3px; box-sizing: border-box; }
.mviewer { position: fixed; inset: 0; z-index: 200; background: rgba(0,0,0,.94); display: flex; align-items: center; justify-content: center; padding: 56px 8px 48px; }
.mviewer video, .mviewer img { max-width: 100%; max-height: 100%; background: #000; display: block; }
.mclose { position: absolute; right: 8px; top: calc(8px + var(--safe-top, 0px)); width: 48px; height: 48px; border: 0; background: rgba(7,23,76,.9); color: #fff; display: flex; align-items: center; justify-content: center; }
.mopen { position: absolute; left: 0; right: 0; bottom: calc(12px + var(--safe-bottom)); text-align: center; color: var(--cyan); font-size: 13px; }
.thumb .rm { position: absolute; right: 4px; top: 4px; width: 32px; height: 32px; border: 0; background: rgba(7,23,76,.85); color: #fff; font-size: 18px; }
.form { max-width: 560px; width: 100%; display: flex; flex-direction: column; gap: 18px; }
.place { display: flex; gap: 12px; align-items: center; background: var(--surface); padding: 10px; }
.place canvas { width: 80px; height: 80px; flex: 0 0 80px; background: #fff; display: block; }
.status-band { display: flex; align-items: center; gap: 12px; padding: 12px 14px; color: var(--ink); }
.status-band.open { background: var(--red); } .status-band.fixed { background: var(--orange); color: var(--navy); } .status-band.done { background: var(--green); }
.actions { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; }
.action { height: 92px; border: 0; padding: 10px; display: flex; flex-direction: column; justify-content: space-between; text-align: left; font-size: 14px; font-weight: 600; }
.action.fixed { background: var(--orange); color: var(--navy); }
.action.returned { background: var(--red); color: #fff; }
.action.checked { background: var(--green); color: #fff; }
.action:disabled { opacity: 0.35; }
.history { display: flex; flex-direction: column; gap: 12px; }
.hrow { display: flex; gap: 12px; }
.hrow .dot { margin-top: 4px; }
.tabs { display: flex; flex-wrap: wrap; gap: 6px; }
.tab { min-height: 44px; padding: 0 14px; border: 0; background: var(--surface); color: var(--ink); display: flex; align-items: center; gap: 8px; font-size: 14px; text-decoration: none; }
.tab.on { background: var(--brand); color: #fff; font-weight: 600; }
.task-row .rname { white-space: normal; }

#toast { position: fixed; left: 50%; bottom: calc(24px + var(--safe-bottom)); transform: translateX(-50%) translateY(20px); background: var(--brand); color: #fff; padding: 12px 18px; font-size: 15px; font-weight: 600; opacity: 0; pointer-events: none; transition: opacity .2s, transform .2s; z-index: 50; max-width: calc(100% - 32px); }
#toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }
#toast.err { background: var(--red); color: #fff; }

/* ---------- phone ---------- */
@media (max-width: 720px) {
  .page { padding: calc(16px + var(--safe-top)) 16px calc(28px + var(--safe-bottom)); gap: 20px; }
  h1.title { font-size: 30px; }
  .tiles { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .tile { width: auto; height: 176px; padding: 14px; }
  .tile.wide { grid-column: 1 / -1; height: 200px; }
  .tile .t-name { font-size: 18px; }
  .tile .t-big { font-size: 40px; }
  .count-row { gap: 8px; }
  .count-row .n { width: 26px; font-size: 26px; }
  .count-row .l { font-size: 12px; gap: 5px; }
  .count-row .dot { width: 10px; height: 10px; flex-basis: 10px; }
  .user-text { display: none; }
  .brand svg { width: 94px; }
  .brand-sub { font-size: 10px; letter-spacing: 2px; }
  .viewer-page { padding: calc(8px + var(--safe-top)) 8px calc(8px + var(--safe-bottom)); gap: 8px; }
  .vtiles { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); }
  .vtile { width: auto; height: 72px; padding: 8px; font-size: 12px; }
  .vhead { grid-column: 1 / -1; align-items: flex-start; text-align: left; }
  .vhead .vname { font-size: 15px; }
  .vlegend { display: none; }
}

/* ---------- uživatelé, dialogy, kontakty ---------- */
a.avatar { text-decoration: none; }
.users { display: flex; flex-direction: column; gap: 22px; max-width: 760px; width: 100%; }
.card { background: var(--surface); padding: 14px 16px 16px; display: flex; flex-direction: column; gap: 4px; }
.card-head { display: flex; flex-direction: column; gap: 8px; padding-bottom: 8px; }
.card-title { margin: 0; font-size: 22px; font-weight: 400; }
.person-row { cursor: pointer; }
.tag-blocked { margin-left: 8px; font-family: var(--mono); font-size: 10px; letter-spacing: 1px; text-transform: uppercase; background: var(--grey); color: var(--ink); padding: 2px 6px; }
.modal-back { position: fixed; inset: 0; background: rgba(16,24,40,0.5); display: flex; align-items: flex-start; justify-content: center; overflow-y: auto; padding: calc(var(--safe-top) + 16px) 16px calc(var(--safe-bottom) + 16px); z-index: 50; }
.modal { background: var(--surface); border: 1px solid var(--navy-3); width: 100%; max-width: 520px; padding: 18px 18px 22px; display: flex; flex-direction: column; gap: 16px; }
.modal-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.modal-form { max-width: none; }
.divider { height: 1px; background: var(--line); margin: 4px 0; }
select.input { padding-right: 8px; }
.btn.danger { color: var(--red-ink); }
.pw-show { font-family: var(--mono); font-size: 22px; letter-spacing: 2px; background: #fff; color: var(--ink); padding: 12px; user-select: all; word-break: break-all; }
.person { display: flex; align-items: center; justify-content: space-between; gap: 10px 14px; flex-wrap: wrap; }
.person-text { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.person-name { font-size: 16px; color: var(--ink); }
.person-meta { font-size: 13px; color: var(--muted); }
.person-btns { display: flex; gap: 8px; flex-wrap: wrap; }
.person-btns .btn { gap: 6px; }

.sortbar { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin: 6px 0 4px; }
.sortbar .label { margin-right: 4px; }
.sortbar .tab { min-height: 40px; border: 0; cursor: pointer; font-family: inherit; }
.trade-grid.one { grid-template-columns: minmax(0, 1fr); }
.chip.stavba { background: var(--surface); border: 1px solid var(--blue); }

/* mazání souborů a koš */
.rowwrap { display: flex; align-items: stretch; border-bottom: 1px solid var(--line); }
.rowwrap > .row { flex: 1; min-width: 0; border-bottom: 0; }
.rowact { flex: none; width: 48px; display: flex; align-items: center; justify-content: center; background: none; border: 0; color: var(--muted); cursor: pointer; }
.rowact:hover { color: var(--ink); background: var(--surface-2); }
.rowact.danger:hover { color: var(--red-ink); }
.rmeta.wrap { white-space: normal; }

.tile.photo { background-size: cover; background-position: center; }
.tile.photo .t-name { text-shadow: 0 1px 6px rgba(0,0,0,0.6); }

/* překrytí výkresů */
.stage canvas.ov { position: absolute; mix-blend-mode: multiply; pointer-events: none; }
.opanel { position: fixed; left: 8px; right: 8px; bottom: calc(8px + var(--safe-bottom)); max-height: 52dvh; max-height: 52vh; overflow-y: auto; z-index: 30; background: var(--surface); border: 1px solid var(--line); box-shadow: 0 -6px 24px rgba(16,24,40,0.135); padding: 10px 12px 12px; display: flex; flex-direction: column; gap: 8px; max-width: 560px; margin: 0 auto; }
.op-head { display: flex; align-items: center; gap: 10px; position: sticky; top: -10px; background: var(--surface); padding: 4px 0; }
.op-head b { flex: 1; font-weight: 500; }
.op-count { font-family: var(--mono); font-size: 12px; color: var(--ink); }
.op-body { display: flex; flex-direction: column; gap: 10px; }
.op-row { display: flex; flex-direction: column; gap: 6px; padding: 8px; background: var(--surface); }
.op-row.off { opacity: .55; }
.op-top { display: flex; align-items: center; gap: 8px; }
.op-name { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 14px; }
.op-color { width: 26px; height: 26px; border: 2px solid #fff; border-radius: 50%; padding: 0; flex: none; }
.op-ico { width: 40px; height: 40px; border: 0; background: none; color: var(--ink); display: inline-flex; align-items: center; justify-content: center; }
.op-mid { display: flex; align-items: center; gap: 10px; }
.op-mid input[type=range] { flex: 1; min-width: 0; accent-color: var(--cyan); }
.op-mid select { background: var(--surface); color: var(--ink); border: 1px solid var(--line); padding: 6px; }
.op-lbl { font-size: 12px; color: var(--ink); }
.op-warn { font-size: 12px; color: var(--orange); }
.op-toggle { align-self: flex-start; background: none; border: 0; color: var(--accent-ink); padding: 4px 0; font-size: 13px; }
.op-pad { display: flex; gap: 14px; align-items: center; flex-wrap: wrap; }
.op-arrows { display: grid; grid-template-columns: repeat(3, 44px); grid-auto-rows: 44px; gap: 4px; }
.op-dot { display: flex; align-items: center; justify-content: center; color: var(--ink); }
.nudge { border: 0; background: var(--surface-2); color: var(--ink); font-size: 16px; min-width: 44px; min-height: 44px; touch-action: manipulation; }
.nudge:active { background: var(--brand); }
.op-side { display: flex; flex-direction: column; gap: 6px; }
.op-pair { display: flex; align-items: center; gap: 8px; }
.op-pickhead { display: flex; gap: 8px; align-items: center; }
.op-pickhead .search { flex: 1; }
.op-list { display: flex; flex-direction: column; max-height: 34vh; overflow-y: auto; }
.op-pick { color: var(--ink); }

/* košík a nářadí */
.cart-form { display: flex; flex-direction: column; gap: 10px; padding: 12px; background: var(--surface); }
.cart-qty { display: flex; gap: 10px; }
.cart-qty .field { flex: 1; min-width: 0; }
.cart-qtybadge { flex: 0 0 auto; width: auto; min-width: 56px; align-items: center; padding-bottom: 0; padding: 0 8px; font-size: 12px; text-align: center; white-space: nowrap; }
.cart-group { font-family: var(--mono); font-size: 12px; letter-spacing: 1px; color: var(--ink); padding: 14px 4px 6px; }
.cart-buy{display:flex;gap:8px;padding:0 0 10px;align-items:center}
.cart-buy .cart-status{width:130px;flex:none;min-height:40px;padding:0 8px;font-size:14px}
.cart-buy .cart-supplier{flex:1;min-width:0;min-height:40px;font-size:14px}
.cart-status.objednano{border-color:#ff9f0a;color:var(--orange-ink)}
.cart-status.koupeno{border-color:#30d158;color:var(--green-ink)}

/* ---------- nářadí: barevné dlaždice ---------- */
.tool-actions { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; margin-bottom: 14px; }
.tool-actions .tile { width: auto; height: 120px; }
.toollist { display: flex; flex-direction: column; gap: 6px; margin-top: 10px; }
.tooltile { display: flex; flex-direction: column; gap: 3px; padding: 14px 16px; color: var(--ink); text-decoration: none; border: 0; text-align: left; position: relative; }
.tooltile .tt-name { font-size: 18px; font-weight: 500; }
.tooltile .tt-line { font-size: 14px; opacity: .95; }
.tooltile .tt-note { font-family: var(--mono); font-size: 11px; opacity: .8; }
.t-green { background: #1e8e4e; }
.t-orange { background: #d97706; }
.t-red { background: #c62828; }
a.tooltile:hover, label.tooltile:hover { filter: brightness(1.08); }
.tooltile.pick { cursor: pointer; padding-left: 52px; }
.tooltile.pick input { position: absolute; left: 16px; top: 50%; transform: translateY(-50%); width: 22px; height: 22px; accent-color: #fff; }
.tooltile.pick.picked { outline: 3px solid #fff; outline-offset: -3px; }
.tool-legend { display: flex; flex-wrap: wrap; gap: 14px; font-size: 12px; color: var(--ink); margin: 10px 0 2px; }
.tool-legend .dot { display: inline-block; width: 10px; height: 10px; margin-right: 6px; vertical-align: baseline; }
.tool-detail-actions { display: flex; flex-wrap: wrap; gap: 8px; margin: 12px 0; }
.histrow { display: flex; flex-direction: column; gap: 2px; padding: 10px 12px; border-left: 4px solid var(--navy-3); background: var(--surface); margin-bottom: 6px; }
.histrow.ok { border-left-color: #1e8e4e; }
.histrow.orange { border-left-color: #d97706; }
.histrow.red { border-left-color: #c62828; }

/* ---------- přístupový e-mail a instalace ---------- */
.status-band { background: var(--surface-2); }
.checkline { display: flex; align-items: center; gap: 10px; font-size: 14px; color: var(--ink); cursor: pointer; margin-top: 4px; }
.checkline input { width: 20px; height: 20px; accent-color: var(--cyan); flex: none; }
.install-steps { background: var(--surface); padding: 14px 16px; font-size: 14px; line-height: 1.5; }
.install-steps ol { margin: 8px 0 0; padding-left: 20px; }
.install-steps li { margin-bottom: 4px; }

/* tisk výkresu */
.ppanel { z-index: 31; }
.pp-body { display: flex; flex-direction: column; gap: 10px; }
.pp-row { display: flex; flex-direction: column; gap: 4px; }
.pp-lbl { font-size: 12px; color: var(--ink); }
.pp-seg { display: flex; gap: 4px; }
.pp-seg button { flex: 1; min-height: 40px; border: 1px solid var(--line); background: var(--surface); color: var(--ink); font-size: 13px; padding: 4px 6px; }
.pp-seg button.on { background: var(--accent); color: var(--on-accent); font-weight: 600; border-color: var(--cyan); }
.pp-actions { display: flex; gap: 8px; }
.pp-actions .btn { flex: 1; display: inline-flex; align-items: center; justify-content: center; gap: 8px; }
.pp-hint { font-size: 12px; color: var(--ink); }
.pp-status { font-size: 13px; min-height: 16px; color: var(--accent-ink); }
.pbar { position: fixed; left: 8px; right: 8px; bottom: calc(8px + var(--safe-bottom)); z-index: 31; background: var(--surface); border: 1px solid var(--line); box-shadow: 0 -6px 24px rgba(16,24,40,0.135); padding: 8px 10px; flex-wrap: wrap; align-items: center; gap: 8px; max-width: 560px; margin: 0 auto; }
.pbar .pp-bar-hint { flex: 1 1 100%; font-size: 13px; color: var(--ink); }
.pp-zoom { display: flex; gap: 4px; }
.pp-zoom button, .pbar .pp-pan { min-width: 44px; min-height: 44px; border: 1px solid var(--line); background: var(--surface); color: var(--ink); font-size: 18px; padding: 0 10px; }
.pbar .pp-pan { font-size: 14px; }
.pbar .pp-pan.on { background: var(--accent); color: var(--on-accent); border-color: var(--cyan); font-weight: 600; }
.pbar .pp-next { margin-left: auto; display: inline-flex; align-items: center; gap: 6px; }
.pp-edit { align-self: flex-start; display: inline-flex; align-items: center; gap: 6px; }
.psel { position: absolute; inset: 0; z-index: 20; cursor: crosshair; touch-action: none; background: rgba(0,0,0,.08); }
.psel-rect { position: absolute; border: 2px dashed var(--pink); background: rgba(255,255,255,.15); box-shadow: 0 0 0 9999px rgba(0,0,0,.35); pointer-events: none; }
#print-root { display: none; }

/* tendry */
.t-neutral { background: var(--surface-2); }
.tender.won .tt-name::before { content: '✓ '; }
.tender-rows, .offers { display: flex; flex-direction: column; gap: 10px; }
.tender-row, .offer { display: flex; flex-direction: column; gap: 6px; padding: 10px; background: var(--surface); }
.offer.won { background: #1e8e4e; }
.offer.won .input { background: rgba(0,0,0,.18); border-color: rgba(255,255,255,.4); }
.offer-top { display: flex; align-items: center; gap: 10px; }
.offer-price { font-size: 22px; font-weight: 500; flex: 1; }
.offer-badge { font-family: var(--mono); font-size: 11px; padding: 3px 7px; letter-spacing: 1px; }
.offer-badge.win { background: #fff; color: #1e8e4e; }
.offer-badge.low { background: var(--accent); color: var(--on-accent); }
.offer-actions { display: flex; gap: 8px; }
.offer-actions .btn:first-child { flex: 1; }
.tender-state { padding: 10px 12px; background: var(--surface); font-size: 14px; color: var(--ink); margin-bottom: 12px; }
.tender-state.won { background: #1e8e4e; color: #fff; }
#tender-delete { margin-top: 18px; }

/* časový harmonogram (Gantt) */
.sched-bar { flex-wrap: wrap; gap: 8px; align-items: center; }
.sched-bar .input { width: auto; min-width: 150px; }
.sched-zoom { margin-left: auto; display: inline-flex; gap: 6px; }
.gantt { position: relative; overflow: auto; background: var(--surface); margin-top: 10px; max-height: calc(100vh - 260px); max-height: calc(100dvh - 260px); min-height: 120px; -webkit-overflow-scrolling: touch; }
.g-body { position: relative; }
.g-row { display: flex; height: 44px; border-bottom: 1px solid var(--line); }
.g-headrow { height: 52px; position: sticky; top: 0; z-index: 4; background: var(--surface); }
.g-label { position: sticky; left: 0; z-index: 3; flex: none; background: var(--surface); border-right: 1px solid var(--line); padding: 4px 8px; display: flex; flex-direction: column; justify-content: center; min-width: 0; }
.g-corner { font-family: var(--mono); font-size: 12px; color: var(--ink); letter-spacing: 1px; }
.g-name { font-size: 14px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.g-sub { font-family: var(--mono); font-size: 10px; color: var(--ink); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.g-row.isdone .g-name { text-decoration: line-through; opacity: .7; }
.g-track { position: relative; flex: none; background-image: linear-gradient(to right, var(--line) 1px, transparent 1px); }
.g-headtrack { background-image: linear-gradient(to right, var(--line) 1px, transparent 1px); }
.g-months, .g-weeks { position: absolute; left: 0; height: 26px; }
.g-months { top: 0; }
.g-weeks { top: 26px; }
.g-month, .g-week { position: absolute; top: 0; height: 100%; font-size: 11px; color: var(--ink); padding: 5px 6px; overflow: hidden; white-space: nowrap; font-family: var(--mono); border-left: 1px solid var(--line); }
.g-month { color: var(--ink); font-size: 12px; }
.g-bar { position: absolute; top: 7px; height: 30px; border-radius: 3px; color: #fff; display: flex; align-items: center; overflow: hidden; box-shadow: 0 1px 3px rgba(0,0,0,.4); user-select: none; -webkit-user-select: none; }
.g-bar.edit { cursor: pointer; }
.g-bt { padding: 0 10px; font-size: 12px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; pointer-events: none; }
.g-today { position: absolute; top: 0; bottom: 0; width: 2px; background: var(--pink); z-index: 2; pointer-events: none; }
.sched-sheet { z-index: 32; }
.sched-form { display: flex; flex-direction: column; gap: 10px; }
.input.bad { outline: 2px solid var(--pink); }

.cal { position: fixed; z-index: 80; width: 292px; background: var(--surface); border: 1px solid var(--cyan); padding: 8px; box-shadow: 0 8px 24px rgba(16,24,40,0.15); color: var(--ink); }
.cal-head { display: flex; align-items: center; justify-content: space-between; padding: 2px 0 6px; }
.cal-head b { font-weight: 500; text-transform: capitalize; }
.cal-nav { width: 44px; height: 40px; border: 0; background: none; color: var(--ink); font-size: 26px; }
.cal-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 2px; text-align: center; }
.cal-grid i { font-style: normal; font-size: 11px; color: var(--ink); font-family: var(--mono); padding: 4px 0; }
.cal-d { height: 36px; border: 0; background: none; color: var(--ink); font-size: 15px; }
.cal-d.today { outline: 1px solid var(--cyan); }
.cal-d.sel { background: var(--accent); color: var(--on-accent); }
.cal-foot { display: flex; justify-content: space-between; padding-top: 6px; }
.cal-foot button { border: 0; background: none; color: var(--accent-ink); font-size: 14px; min-height: 40px; padding: 0 10px; }

.sched-detail { display: flex; flex-direction: column; gap: 10px; }
.det-title { font-size: 22px; font-weight: 400; margin: 4px 0 2px; overflow-wrap: anywhere; }
.det-val { font-size: 16px; overflow-wrap: anywhere; }

/* oznámení */
.bell { position: relative; }
.bell-n { position: absolute; top: -4px; right: -4px; min-width: 18px; height: 18px; padding: 0 4px; border-radius: 9px; background: var(--pink); color: #fff; font-size: 11px; line-height: 18px; text-align: center; font-family: var(--mono); }
.notif-list { display: flex; flex-direction: column; gap: 6px; margin-top: 10px; }
.notif { display: flex; gap: 10px; text-align: left; width: 100%; border: 0; background: var(--surface); color: var(--ink); padding: 12px; }
.n-dot { flex: none; width: 10px; height: 10px; border-radius: 50%; margin-top: 6px; background: transparent; }
.notif.unread .n-dot { background: var(--accent); }
.notif.unread b { font-weight: 600; }
.notif:not(.unread) { opacity: .75; }
.n-text { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.n-body { font-size: 13px; color: var(--ink); overflow-wrap: anywhere; }
.n-time { font-family: var(--mono); font-size: 11px; color: var(--ink); }
.notif-push { margin: 10px 0; }
.notif-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.app-version { position: fixed; right: 14px; bottom: 10px; z-index: 5; font-family: var(--mono); font-size: 11px; color: var(--ink); opacity: .6; pointer-events: none; }
@media (max-width: 640px) { .app-version { left: 0; right: 0; text-align: center; bottom: calc(14px + env(safe-area-inset-bottom)); } }

.bell.has-unread { background: #E5262E; border-color: #E5262E; color: #fff; animation: bell-glow 1.8s ease-in-out infinite; }
.bell.has-unread .bell-n { background: #fff; color: #E5262E; font-weight: 700; }
@keyframes bell-glow { 0%, 100% { box-shadow: 0 0 0 0 rgba(229,38,46,.75); } 50% { box-shadow: 0 0 0 8px rgba(229,38,46,0); } }
@media (prefers-reduced-motion: reduce) { .bell.has-unread { animation: none; box-shadow: 0 0 0 3px rgba(229,38,46,.55); } }

/* harmonogram: více staveb */
.gpanels { display: flex; flex-direction: column; gap: 14px; }
.gpanel-head { align-items: center; gap: 8px; padding: 2px 0 6px; }
.gpanel-head b { flex: 1; font-weight: 500; font-size: 16px; }
.sched-more { flex-direction: column; gap: 6px; padding: 8px 12px; background: var(--surface); border: 1px solid var(--line); margin-bottom: 8px; }
.late-dot { margin-left: 10px; vertical-align: middle; width: 14px; height: 14px; flex-basis: 14px; }
/* porovnání verzí výkresu */
.cmp { position: fixed; inset: 0; z-index: 70; background: var(--surface); display: flex; flex-direction: column; padding: 12px 16px calc(12px + env(safe-area-inset-bottom)); gap: 8px; overflow: hidden; }
.cmp-head { display: flex; align-items: center; justify-content: space-between; color: var(--ink); font-size: 18px; }
.cmp-body { flex: 1; min-height: 0; display: flex; flex-direction: column; gap: 8px; overflow: auto; }
.cmp-info { display: flex; flex-direction: column; gap: 2px; font-size: 13px; color: var(--muted); }
.cmp-info b { color: var(--ink); font-weight: 600; }
.cmp-bar { display: flex; gap: 8px; align-items: center; justify-content: space-between; flex-wrap: wrap; }
.cmp-zoom { display: flex; gap: 6px; }
.cmp-legend { display: flex; gap: 14px; font-size: 13px; color: var(--ink); flex-wrap: wrap; }
.cmp-sw { display: inline-block; width: 12px; height: 12px; margin-right: 6px; vertical-align: -1px; }
.cmp-view { flex: 1; min-height: 240px; overflow: auto; background: #fff; touch-action: pan-x pan-y; cursor: grab; }
.cmp-frame { width: 100%; }
.cmp-canvas { display: block; max-width: none; height: auto; }

.acc-section { margin: 18px 0 6px; padding: 14px; background: var(--surface); display: flex; flex-direction: column; gap: 10px; border-left: 3px solid var(--cyan); }
.acc-section .btn { align-self: flex-start; }

.g-bar.proposal { background-image: repeating-linear-gradient(45deg, rgba(255,255,255,.28) 0 6px, transparent 6px 12px) !important; outline: 2px dashed #fff; outline-offset: -3px; }
.sched-pending { margin: 8px 0; padding: 10px 12px; background: var(--surface); border-left: 3px solid var(--pink); font-size: 14px; }

/* ---------- Kalendář GD ---------- */
.cal-bar { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.cal-bar .btn:last-child { margin-left: auto; }
.cal-head, .cal-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 2px; }
.cal-head { margin-top: 8px; font-size: 12px; text-align: center; color: var(--ink); opacity: .8; }
.cal-cell { position: relative; min-height: 52px; border: 0; background: var(--surface); color: var(--ink); padding: 6px 4px; text-align: left; font-size: 14px; }
.cal-cell.other { opacity: .4; }
.cal-cell.today .cal-d { color: var(--accent-ink); font-weight: 700; }
.cal-cell.sel { outline: 2px solid var(--pink); outline-offset: -2px; background: var(--surface-2); }
.cal-badge { position: absolute; right: 4px; bottom: 4px; min-width: 18px; height: 18px; padding: 0 4px; background: var(--pink); color: var(--on-accent); font-size: 11px; font-weight: 700; display: flex; align-items: center; justify-content: center; }
.cal-day { margin-top: 14px; }
.cal-list { display: flex; flex-direction: column; gap: 6px; margin-top: 8px; }
.cal-ev { display: flex; gap: 10px; width: 100%; text-align: left; border: 0; background: var(--surface); color: var(--ink); padding: 10px 12px; }
.cal-time { flex: 0 0 64px; font-family: var(--mono); font-size: 13px; color: var(--accent-ink); }
.cal-main { flex: 1; display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.cal-proj { font-size: 13px; color: var(--ink); }
.cal-note { font-size: 13px; opacity: .8; white-space: pre-line; overflow-wrap: anywhere; }
.cal-by { font-size: 11px; opacity: .6; align-self: flex-start; text-align: right; max-width: 90px; }
.cal-up { display: flex; flex-direction: column; gap: 2px; }
.cal-updatedate { font-size: 12px; opacity: .7; }
.cal-remind { display:flex; flex-wrap:wrap; gap:8px; }
.cal-rem { display:flex; align-items:center; gap:8px; min-height:44px; padding:0 12px; border:1px solid var(--line, rgba(16,24,40,0.18)); border-radius:10px; cursor:pointer; font-size:15px; }
.cal-rem input { width:20px; height:20px; accent-color: var(--cyan, #6fd8ea); }
.cal-bell { color: var(--accent-ink); display:inline-flex; align-self:flex-start; margin-left:4px; }
.cal-people { display:flex; flex-direction:column; gap:6px; max-height:240px; overflow-y:auto; margin-top:6px; }
#cal-invite .chips { display:flex; flex-wrap:wrap; gap:6px; }

/* ---------- Kalendář (v55): Den / Týden / Měsíc / Rok pro všechny ---------- */
.cx-page { padding-bottom: 96px; }
.cx-bar { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; margin-top: 8px; }
.cx-seg { display: flex; padding: 3px; background: var(--surface-2); border-radius: 12px; flex: 1 1 240px; }
.cx-seg button { flex: 1; min-height: 38px; border: 0; border-radius: 9px; background: transparent; color: var(--muted); font-size: 14px; }
.cx-seg button.on { background: var(--surface); color: var(--ink); font-weight: 600; }
.cx-nav { display: flex; gap: 6px; }
.cx-search { flex: 1 1 160px; min-width: 0; margin: 0; }
.cx-bar .cal-add-btn { display: none; margin-left: 0; }
.cx-results { background: var(--surface); padding: 8px 12px; margin-top: 8px; }
.cx { display: block; margin-top: 8px; }
.cx-side { display: none; }
.cx-dow { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); padding: 4px 0; font-size: 12px; color: var(--muted); text-align: center; }
.cx[data-view="y"] .cx-dow, .cx[data-view="t"] .cx-dow, .cx[data-view="d"] .cx-dow { display: none; }
.cx-week { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); grid-template-rows: 30px repeat(var(--maxr), 7px) auto; row-gap: 3px; position: relative; border-top: 1px solid rgba(16,24,40,0.09); min-height: 62px; padding-bottom: 4px; }
.cx-cell.cal-cell { background: transparent; min-height: 0; padding: 3px 0 0; display: flex; justify-content: center; align-items: flex-start; }
.cx-cell.sel { outline: 0; background: var(--surface); }
.cx-num { display: flex; align-items: center; justify-content: center; width: 24px; height: 24px; border-radius: 50%; font-size: 14px; }
.cx-cell.today .cx-num { background: var(--accent); color: var(--on-accent); font-weight: 700; }
.cx-cell.sel:not(.today) .cx-num { box-shadow: inset 0 0 0 1.5px #fff; font-weight: 600; }
.cx-cell.other .cx-num { color: var(--muted); }
.cx-ev { position: relative; z-index: 1; margin: 0 2px; padding: 0; border: 0; border-radius: 3px; background: var(--c); height: 7px; min-width: 0; overflow: hidden; color: transparent; }
.cx-ev .cx-txt, .cx-ev .cx-tm, .cx-ev .cx-pip { display: none; }
.cx-ev.timed { opacity: .55; }
.cx-more { z-index: 1; font-size: 10px; line-height: 12px; color: var(--muted); text-align: center; }
.cx-panel { margin-top: 12px; background: var(--surface); border-radius: 20px 20px 0 0; padding: 14px 14px 8px; }
.cx-panel .card-title { margin: 0 0 4px; font-size: 18px; font-weight: 600; }
.cx-panel .cal-day { margin-top: 0; }
.cx-line { border-radius: 12px; border-left: 4px solid var(--c); background: var(--surface); text-decoration: none; }
.cx-line .cal-time { flex-basis: 56px; }
.cx-year { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px 12px; }
.cx-ym-t { border: 0; background: transparent; color: var(--accent-ink); font-size: 15px; font-weight: 600; padding: 4px 0; text-align: left; }
.cx-ym-g { display: grid; grid-template-columns: repeat(7, 1fr); gap: 1px; }
.cx-ym-d { border: 0; background: transparent; color: var(--ink); font-size: 11px; padding: 4px 0; min-height: 24px; position: relative; }
.cx-ym-d.off { visibility: hidden; }
.cx-ym-d.today { background: var(--accent); color: var(--on-accent); border-radius: 50%; font-weight: 700; }
.cx-ym-d.has::after { content: ''; position: absolute; left: 50%; bottom: 1px; width: 4px; height: 4px; margin-left: -2px; border-radius: 50%; background: #A78BFA; }
.cx-listview { display: flex; flex-direction: column; gap: 12px; }
.cx-lday h3 { margin: 0 0 4px; font-size: 16px; font-weight: 600; }
.cx-lday.today h3 { color: var(--accent-ink); }
.cx[data-view="y"] .cx-panel, .cx[data-view="t"] .cx-panel, .cx[data-view="d"] .cx-panel { display: none; }
.cx-fab { position: fixed; z-index: 30; right: 20px; bottom: calc(18px + var(--safe-bottom)); width: 56px; height: 56px; border-radius: 50%; border: 0; background: var(--accent); color: var(--on-accent); display: flex; align-items: center; justify-content: center; padding: 0; box-shadow: 0 6px 18px rgba(16,24,40,0.12); }
.cx-todayfab { position: fixed; z-index: 30; left: 20px; bottom: calc(18px + var(--safe-bottom)); height: 56px; padding: 0 22px; border-radius: 28px; border: 1px solid rgba(16,24,40,0.18); background: var(--surface); color: var(--ink); font-size: 15px; box-shadow: 0 6px 18px rgba(16,24,40,0.12); }
.cx-chk { display: flex; align-items: center; gap: 8px; min-height: 36px; font-size: 14px; }
.cx-chk i { width: 10px; height: 10px; border-radius: 3px; flex-shrink: 0; }
.cx-side-t { display: block; font-size: 12px; letter-spacing: .06em; color: var(--muted); margin-bottom: 4px; text-transform: uppercase; }

@media (min-width: 700px) {
  .cx-page { padding-bottom: 24px; }
  .cx-fab, .cx-todayfab { display: none; }
  .cx-bar .cal-add-btn { display: inline-flex; }
  .cx { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 16px; align-items: start; }
  .cx[data-view="y"], .cx[data-view="t"], .cx[data-view="d"] { grid-template-columns: minmax(0, 1fr); }
  .cx-week { grid-template-rows: 30px repeat(var(--maxr), 20px) auto; min-height: 112px; }
  .cx-ev { height: 20px; display: flex; align-items: center; gap: 5px; padding: 0 6px; background: var(--f); color: var(--t); border-left: 3px solid var(--c); border-radius: 4px; font-size: 12px; text-align: left; }
  .cx-ev .cx-txt { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; flex: 1; }
  .cx-ev .cx-tm { display: block; opacity: .8; }
  .cx-ev.timed { opacity: 1; }
  .cx-panel { margin-top: 0; border-radius: 20px; position: sticky; top: 8px; }
  .cx-year { grid-template-columns: repeat(4, 1fr); }
}
@media (min-width: 1100px) {
  .cx { grid-template-columns: 200px minmax(0, 1fr) 300px; }
  .cx[data-view="y"], .cx[data-view="t"], .cx[data-view="d"] { grid-template-columns: 200px minmax(0, 1fr); }
  .cx-side { display: block; }
  .cx-week { grid-template-rows: 30px repeat(var(--maxr), 22px) auto; min-height: 130px; }
}

/* ---------- Nový vzhled v57: spodní lišta na telefonu, zaoblené karty ---------- */
.tabbar, .tb-more { display: none; }
@media (max-width: 699px) {
  body.has-tabbar #app { padding-bottom: calc(76px + var(--safe-bottom)); }
  .tabbar { position: fixed; z-index: 28; left: 0; right: 0; bottom: 0; display: flex; background: var(--surface); border-top: 1px solid rgba(16,24,40,0.09); padding: 0 6px var(--safe-bottom); }
  .tb-item { flex: 1; min-height: 60px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; border: 0; background: transparent; color: var(--muted); font-size: 11px; font-weight: 500; text-decoration: none; position: relative; padding: 6px 0 4px; }
  .tb-item.on { color: var(--accent-ink); font-weight: 600; }
  .tb-plus { flex: 1; display: flex; justify-content: center; }
  .tb-plus-btn { margin-top: -18px; width: 56px; height: 56px; border-radius: 50%; border: 0; background: var(--accent); color: var(--on-accent); display: flex; align-items: center; justify-content: center; padding: 0; box-shadow: 0 6px 18px rgba(16,24,40,0.12); }
  .tb-more { display: flex; flex-direction: column; position: fixed; z-index: 29; right: 10px; bottom: calc(70px + var(--safe-bottom)); min-width: 220px; background: var(--surface); border-radius: 16px; padding: 6px; box-shadow: 0 10px 30px rgba(16,24,40,0.15); }
  .tb-more-i { display: flex; align-items: center; gap: 12px; min-height: 48px; padding: 0 14px; border-radius: 12px; color: var(--ink); text-decoration: none; font-size: 16px; }
  .tb-more-i:active { background: var(--surface-2); }
  .topbar .user a.back:not(.bell) { display: none; }
  .avatar { border-radius: 50%; }
  .tile.wide { height: 128px; border-radius: 20px; padding: 14px 16px; }
  .tile.wide .t-name { font-size: 22px; }
  .tiles { gap: 12px; }
  .cx-fab, .cx-todayfab { bottom: calc(76px + var(--safe-bottom)); }
  .app-version { display: none; }
}
@media (min-width: 700px) {
  .tile.wide, .tile { border-radius: 20px; }
}
.home-today { display: flex; gap: 10px; flex-wrap: wrap; }
.home-chip { flex: 1 1 160px; border-radius: 16px; padding: 12px 14px; background: var(--surface); text-decoration: none; color: var(--ink); display: flex; flex-direction: column; gap: 2px; }
.home-chip .k { font-size: 12px; color: var(--muted); }
.home-chip .v { font-size: 15px; }
.home-chip.late { background: var(--red-soft); }
.home-chip.late .k { color: var(--red-ink); }

/* rychlé akce (+) */
.qa-back { position: fixed; inset: 0; z-index: 60; background: rgba(16,24,40,0.5); display: flex; align-items: flex-end; justify-content: center; }
.qa { width: 100%; max-width: 560px; max-height: 88vh; overflow-y: auto; background: var(--surface); border-radius: 22px 22px 0 0; padding: 14px 14px calc(18px + var(--safe-bottom)); }
.qa-head { display: flex; align-items: center; gap: 8px; padding: 2px 2px 10px; }
.qa-head b { flex: 1; font-size: 18px; font-weight: 600; }
.qa-ico { width: 44px; height: 44px; border: 0; background: transparent; color: var(--ink); display: flex; align-items: center; justify-content: center; }
.qa-list { display: flex; flex-direction: column; gap: 8px; }
.qa-item { display: flex; align-items: center; gap: 14px; min-height: 64px; padding: 10px 14px; border: 0; border-radius: 16px; background: var(--surface); color: var(--ink); text-align: left; }
.qa-item:active { background: var(--surface-3); }
.qa-i { width: 44px; height: 44px; border-radius: 50%; background: var(--accent-soft); color: var(--accent-ink); display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.qa-t { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.qa-t b { font-size: 16px; font-weight: 500; }
.qa-t small { font-size: 13px; color: var(--muted); }
.qa-form { display: flex; flex-direction: column; gap: 12px; }
.ps-preview { height: 160px; border-radius: 16px; background: var(--navy-2) center / cover no-repeat; display: flex; align-items: center; justify-content: center; color: var(--muted); font-size: 14px; }
.proj-gear { margin-left: auto; }
.tile .tile-gear { position: absolute; top: 10px; right: 10px; width: 40px; height: 40px; border-radius: 50%; border: 0; background: rgba(8,22,74,.6); color: #fff; display: flex; align-items: center; justify-content: center; padding: 0; z-index: 2; }
.tile { border-radius: 20px; }
.proj-top { flex-wrap: nowrap; }
.proj-top .titleblock { min-width: 0; flex: 1 1 auto; }
.tb-plus-btn:focus-visible { outline: 3px solid #fff; outline-offset: 2px; }

/* ---------- Počítač (od 1100 px): postranní menu + horní lišta ---------- */
@media (min-width: 700px) { .qa-back { align-items: center; } .qa { border-radius: 22px; max-height: 80vh; padding-bottom: 18px; } }
@media (min-width: 1100px) {
  body.has-shell { background: var(--bg); }
  body.has-shell #app { margin-left: 264px; padding-top: 84px; }
  /* v106: výkres měl výšku celého okna i pod horní lištou → ovládání zoomu a přepínač byly 84 px pod okrajem */
  body.has-shell .viewer-page { height: calc(100vh - 84px); height: calc(100dvh - 84px); }
  body.has-shell .page { max-width: none; padding: 24px 32px 40px; gap: 22px; }
  body.has-shell .page > header.topbar { display: none; }
  body.has-shell .app-version { display: none; }
  .sh-side { position: fixed; z-index: 25; left: 0; top: 0; bottom: 0; width: 264px; background: var(--surface); border-right: 1px solid rgba(16,24,40,0.072); display: flex; flex-direction: column; gap: 4px; padding: 20px 12px; box-sizing: border-box; overflow-y: auto; }
  .sh-logo { display: block; padding: 0 12px 16px; text-decoration: none; color: var(--ink); }
  .sh-logo-k { display: block; font-size: 12px; letter-spacing: .14em; color: var(--accent-ink); font-weight: 600; }
  .sh-logo-t { display: block; font-size: 22px; font-weight: 500; margin-top: 2px; }
  .sh-item { display: flex; align-items: center; gap: 12px; height: 44px; padding: 0 12px; border-radius: 12px; font-size: 15px; color: var(--ink-2); text-decoration: none; }
  .sh-item .sh-ico { color: var(--muted); display: flex; }
  .sh-item .sh-lbl { flex: 1; }
  .sh-item:hover { background: var(--surface); }
  .sh-item.on { background: var(--accent-soft); color: var(--ink); font-weight: 600; }
  .sh-item.on .sh-ico { color: var(--accent-ink); }
  .sh-badge { font-size: 12px; font-weight: 600; padding: 1px 8px; border-radius: 99px; background: var(--red-soft); color: var(--red-ink); }
  .sh-sec { font-size: 12px; color: var(--muted); padding: 18px 12px 6px; letter-spacing: .06em; text-transform: uppercase; }
  .sh-proj { display: flex; align-items: center; gap: 10px; height: 40px; padding: 0 12px; border-radius: 10px; font-size: 14px; color: var(--ink-2); text-decoration: none; }
  .sh-proj i { width: 10px; height: 10px; border-radius: 3px; flex-shrink: 0; }
  .sh-proj:hover { background: var(--surface); }
  .sh-proj.on { background: var(--accent-soft); color: var(--ink); }
  .sh-user { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 12px; background: var(--surface); text-decoration: none; color: var(--ink); }
  .sh-av { width: 36px; height: 36px; border-radius: 50%; background: var(--accent); color: var(--on-accent); display: flex; align-items: center; justify-content: center; font-weight: 600; flex-shrink: 0; }
  .sh-ut { display: flex; flex-direction: column; min-width: 0; }
  .sh-ut b { font-size: 14px; font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .sh-ut small { font-size: 12px; color: var(--muted); }
  .sh-top { position: fixed; z-index: 20; left: 264px; right: 0; top: 0; height: 84px; display: flex; align-items: center; gap: 14px; padding: 0 32px; background: var(--bg); border-bottom: 1px solid rgba(16,24,40,0.072); box-sizing: border-box; }
  .sh-tt { flex: 1; min-width: 0; }
  .sh-title { margin: 0; font-size: 30px; font-weight: 500; line-height: 1.15; }
  .sh-sub { font-size: 13px; color: var(--muted); }
  .sh-sw { position: relative; display: flex; align-items: center; gap: 8px; height: 44px; width: 300px; padding: 0 14px; border-radius: 99px; background: var(--surface-2); color: var(--muted); box-sizing: border-box; }
  .sh-search { flex: 1; min-width: 0; border: 0; background: transparent; color: var(--ink); font-size: 14px; outline: none; }
  .sh-search::placeholder { color: var(--muted); }
  .sh-results { position: absolute; top: 50px; left: 0; right: 0; background: var(--surface); border-radius: 16px; padding: 6px; box-shadow: 0 10px 30px rgba(16,24,40,0.15); z-index: 30; }
  .sh-res { display: flex; align-items: center; gap: 10px; min-height: 40px; padding: 0 12px; border-radius: 10px; color: var(--ink); text-decoration: none; font-size: 14px; }
  .sh-res:hover { background: var(--surface-2); }
  .sh-res.none { color: var(--muted); }
  .sh-bell { width: 44px; height: 44px; border-radius: 50%; border: 1px solid rgba(16,24,40,0.162); background: var(--surface); color: var(--ink); display: flex; align-items: center; justify-content: center; text-decoration: none; position: relative; }
  .sh-add { height: 44px; padding: 0 20px; border-radius: 99px; border: 0; background: var(--accent); color: var(--on-accent); font-size: 15px; font-weight: 600; display: flex; align-items: center; gap: 6px; }
}
@media (min-width: 1100px) {
  .db-page { flex-direction: row !important; align-items: stretch; gap: 24px !important; }
  .db-main { flex: 1; display: flex; flex-direction: column; gap: 20px; min-width: 0; }
  .db-stats { display: flex; gap: 14px; }
  .db-stat { flex: 1; padding: 16px 18px; border-radius: 18px; background: var(--surface); }
  .db-stat .k { font-size: 13px; color: var(--muted); }
  .db-stat .v { font-size: 32px; font-weight: 500; margin-top: 4px; }
  .db-two { display: flex; gap: 20px; flex: 1; min-width: 0; }
  .db-col { flex: 1; display: flex; flex-direction: column; gap: 14px; min-width: 0; }
  .db-sec { display: flex; flex-direction: column; gap: 8px; }
  .db-sec h2, .db-notif h2 { margin: 0 0 4px; font-size: 18px; font-weight: 600; }
  .db-row { display: flex; gap: 14px; padding: 12px 14px; border-radius: 14px; background: var(--surface); align-items: center; text-decoration: none; color: var(--ink); }
  .db-row:hover { background: var(--surface-2); }
  .db-row .w { width: 56px; font-size: 14px; color: var(--muted); flex-shrink: 0; }
  .db-row .bar { width: 4px; align-self: stretch; border-radius: 2px; }
  .db-row .tx { flex: 1; min-width: 0; }
  .db-row .tx b { font-size: 15px; font-weight: 500; }
  .db-row .tx div { font-size: 13px; color: var(--ink-2); }
  .db-none { color: var(--muted); font-size: 14px; padding: 8px 2px; }
  .db-week { display: flex; padding: 14px; border-radius: 18px; background: var(--surface); }
  .db-wd { flex: 1; display: flex; flex-direction: column; gap: 4px; align-items: center; text-decoration: none; color: var(--ink); }
  .db-wd > span:first-child { font-size: 12px; color: var(--muted); }
  .db-wd .num { width: 30px; height: 30px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 14px; }
  .db-wd .num.today { background: var(--accent); color: var(--on-accent); font-weight: 600; }
  .db-wd i { width: 70%; height: 5px; border-radius: 3px; }
  .db-proj { display: flex; align-items: center; gap: 12px; height: 76px; border-radius: 18px; padding: 0 18px; background-size: cover; background-position: center; text-decoration: none; color: #fff; }
  .db-proj b { flex: 1; font-size: 18px; font-weight: 500; text-shadow: 0 1px 6px rgba(0,0,0,.5); }
  .db-chip { font-size: 12px; padding: 3px 10px; border-radius: 99px; white-space: nowrap; }
  .db-notif { width: 320px; flex-shrink: 0; border-radius: 20px; background: var(--surface); padding: 18px 20px; box-sizing: border-box; display: flex; flex-direction: column; align-self: flex-start; }
  .db-n { display: flex; gap: 12px; padding: 12px 0; border-bottom: 1px solid rgba(16,24,40,0.072); text-decoration: none; color: var(--ink); }
  .db-n i { margin-top: 6px; width: 9px; height: 9px; border-radius: 50%; flex-shrink: 0; }
  .db-n .t { font-size: 14px; }
  .db-n .s { font-size: 12px; color: var(--muted); margin-top: 2px; }
  .db-all { margin-top: 12px; font-size: 14px; color: var(--accent-ink); text-decoration: none; }
}
@media (min-width: 1100px) {
  .pw-banner { height: 200px; border-radius: 24px; background-size: cover; background-position: center; display: flex; align-items: flex-end; gap: 10px; padding: 24px 28px; box-sizing: border-box; }
  .pw-bt { flex: 1; } .pw-bt h1 { margin: 0; font-size: 36px; font-weight: 500; } .pw-bt div { color: #D5DBF7; font-size: 15px; margin-top: 4px; }
  .pw-btn { display: inline-flex; align-items: center; gap: 6px; border: 1px solid rgba(255,255,255,.3); background: rgba(8,22,74,.55); color: #fff; border-radius: 12px; padding: 10px 16px; font: inherit; font-size: 14px; cursor: pointer; }
  .pw-btn.pri { background: var(--cyan); color: var(--navy); border-color: transparent; font-weight: 600; }
  .pw-grid { display: flex; gap: 20px; margin-top: 20px; } .pw-left { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 20px; } .pw-right { width: 340px; flex-shrink: 0; display: flex; flex-direction: column; gap: 16px; }
  .pw-tiles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
  .pw-tile { display: flex; flex-direction: column; gap: 6px; padding: 18px; border-radius: 20px; background: var(--surface); color: var(--ink); text-decoration: none; min-height: 130px; }
  .pw-tile.blue { background: var(--brand); } .pw-tile:hover { filter: brightness(1.1); } .pw-tile b { font-size: 20px; font-weight: 500; margin-top: auto; } .pw-l { font-size: 13px; color: var(--ink-2); }
  .pw-h, .pw-card h2 { margin: 0 0 8px; font-size: 18px; font-weight: 600; }
  .pw-table { display: flex; flex-direction: column; gap: 6px; }
  .pw-tr { display: flex; align-items: center; gap: 14px; padding: 12px 16px; border-radius: 14px; background: var(--surface); color: var(--ink); text-decoration: none; } .pw-tr:hover { background: var(--surface-2); } .pw-tr b { flex: 1; font-weight: 500; font-size: 15px; }
  .pw-ck { width: 18px; height: 18px; border-radius: 50%; border: 2px solid rgba(16,24,40,0.3); } .pw-ck.on { background: var(--accent); border-color: var(--cyan); }
  .pw-trade { font-size: 12px; padding: 3px 10px; border-radius: 99px; background: var(--surface-3); } .pw-d { width: 90px; text-align: right; font-size: 14px; color: var(--muted); } .pw-d.late { color: var(--red-ink); }
  .pw-card { border-radius: 20px; background: var(--surface); padding: 18px 20px; } .pw-none { color: var(--muted); font-size: 14px; }
  .pw-sr { display: flex; align-items: center; gap: 10px; margin: 8px 0; font-size: 13px; } .pw-sr span { width: 96px; flex-shrink: 0; } .pw-track { flex: 1; height: 8px; border-radius: 4px; background: var(--surface-2); position: relative; } .pw-track i { position: absolute; top: 0; bottom: 0; border-radius: 4px; background: var(--accent); }
  .pw-ev { display: flex; gap: 10px; padding: 8px 0; font-size: 13px; } .pw-ev i { margin-top: 5px; width: 8px; height: 8px; border-radius: 50%; background: var(--accent); flex-shrink: 0; } .pw-ev small { color: var(--muted); }
}
@media (min-width: 1100px) {
  .mw-page { display: flex !important; flex-direction: row !important; gap: 24px !important; align-items: flex-start; }
  .mw-main { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 12px; } .mw-side { width: 300px; flex-shrink: 0; display: flex; flex-direction: column; gap: 14px; }
  .mw-filters { display: flex; gap: 12px; align-items: center; }
  .mw-seg { display: flex; gap: 4px; padding: 4px; border-radius: 99px; background: var(--surface-2); } .mw-seg a { padding: 7px 16px; border-radius: 99px; font-size: 14px; color: var(--ink-2); text-decoration: none; } .mw-seg a.on { background: var(--accent); color: var(--on-accent); font-weight: 600; }
  .mw-sel { height: 40px; padding: 0 14px; border-radius: 99px; border: 1px solid rgba(16,24,40,0.162); background: transparent; color: var(--ink-2); font: inherit; font-size: 14px; } .mw-sel option { color: var(--ink); }
  .mw-head { display: grid; gap: 14px; padding: 0 16px; font-size: 12px; color: var(--muted); letter-spacing: .04em; } .mw-list { display: flex; flex-direction: column; gap: 6px; }
  .mw-tr { display: grid; grid-template-columns: 20px 1fr 160px 170px 130px; gap: 14px; align-items: center; padding: 12px 16px; border-radius: 14px; background: var(--surface); color: var(--ink); text-decoration: none; } .mw-tr:hover { background: var(--surface-2); }
  .mw-ck { width: 18px; height: 18px; border-radius: 50%; box-sizing: border-box; border: 2px solid; } .mw-t b { display: block; font-size: 15px; font-weight: 500; } .mw-t span, .mw-p { font-size: 13px; color: var(--ink-2); } .mw-d { font-size: 13px; color: var(--muted); } .mw-d.late { color: var(--red-ink); }
  .mw-sum { display: flex; align-items: center; gap: 10px; margin: 10px 0; font-size: 14px; color: var(--ink-2); } .mw-sum i { width: 10px; height: 10px; border-radius: 50%; } .mw-sum span { flex: 1; } .mw-sum b { font-size: 18px; font-weight: 500; color: var(--ink); }
  .mw-bp { margin-top: 12px; font-size: 13px; color: var(--ink-2); } .mw-bp > div:first-child { display: flex; justify-content: space-between; margin-bottom: 4px; } .mw-bar { height: 8px; border-radius: 4px; background: var(--surface-2); } .mw-bar i { display: block; height: 8px; border-radius: 4px; }
}
.doc-list { display: flex; flex-direction: column; gap: 6px; }
.doc-row { display: flex; align-items: center; gap: 12px; width: 100%; padding: 10px 14px; border-radius: 14px; border: 0; background: var(--surface); color: var(--ink); font: inherit; text-align: left; cursor: pointer; }
.doc-row:hover { background: var(--surface-2); } .doc-row .rname { flex: 1; font-size: 15px; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } .doc-open { font-size: 13px; color: var(--accent-ink); }
@media (min-width: 1100px) {
  .tk-wide > .topbar { display: none; } .tkw { max-width: none; }
  .tkw-head { display: flex; align-items: center; gap: 12px; margin-bottom: 20px; } .tkw-back { display: inline-flex; align-items: center; gap: 4px; color: var(--accent-ink); font-size: 14px; text-decoration: none; } .tkw-back svg { transform: rotate(180deg); }
  .tkw-kick { font-size: 13px; color: var(--muted); } .tkw-st { display: inline-block; margin-top: 4px; font-size: 12px; padding: 3px 12px; border-radius: 99px; background: var(--accent-soft); color: var(--accent-ink); } .tkw-st.fixed { background: var(--green-soft); color: var(--green-ink); } .tkw-st.over { background: var(--red-soft); color: var(--red-ink); } .tkw-st.done { background: var(--surface-3); color: var(--ink); }
  .tkw-btn { display: inline-flex; align-items: center; height: 44px; padding: 0 20px; border-radius: 99px; border: 0; background: var(--accent); color: var(--on-accent); font: inherit; font-size: 15px; font-weight: 600; cursor: pointer; box-sizing: border-box; }
  .tkw-btn.ghost { background: transparent; color: var(--ink); border: 1px solid rgba(16,24,40,0.27); font-weight: 400; } .tkw-btn.ok { background: #4CD08A; } .tkw-btn:disabled { opacity: .35; cursor: default; }
  .tkw-grid { display: flex; gap: 20px; align-items: flex-start; } .tkw-left { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 16px; } .tkw-right { width: 340px; flex-shrink: 0; display: flex; flex-direction: column; gap: 16px; }
  .tkw-desc { margin: 0 0 12px; font-size: 15px; line-height: 1.5; color: var(--ink-2); white-space: pre-line; } .tkw-sh { display: flex; align-items: center; margin-bottom: 8px; } .tkw-sh h2 { flex: 1; margin: 0; }
  .tkw-info { display: flex; flex-direction: column; gap: 12px; } .tkw-f span { display: block; font-size: 12px; color: var(--muted); } .tkw-f b { font-weight: 400; font-size: 15px; }
  .tkw-photos { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; } .pw-card .doc-row { margin-top: 6px; }
}
.tk-wide .form { max-width: none; padding: 0; }
@media (min-width: 1100px) {
  .cw-page { display: flex !important; flex-direction: row !important; gap: 24px !important; align-items: flex-start; }
  .cw-main { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 12px; } .cw-main .toolbar { padding: 0; } .cw-main .list { display: flex; flex-direction: column; gap: 8px; }
  .cw-side { width: 340px; flex-shrink: 0; display: flex; flex-direction: column; gap: 14px; } .cw-side .cart-form { padding: 0; max-width: none; } .cw-cnt { display: flex; justify-content: space-between; font-size: 14px; color: var(--muted); } .cw-cnt b { color: var(--ink); font-weight: 500; }
  .cw-main .cart-item { display: flex; align-items: center; gap: 14px; padding: 10px 16px; border-radius: 14px; background: var(--surface); } .cw-main .cart-item .rowwrap { flex: 1; min-width: 0; } .cw-main .cart-item .row { background: transparent; padding: 0; }
  .cw-main .cart-buy { display: flex; gap: 8px; width: 400px; flex-shrink: 0; } .cw-main .cart-buy .input { height: 40px; } .cw-main .cart-group { margin-top: 10px; font-size: 12px; letter-spacing: .06em; color: var(--muted); }
}
@media (min-width: 1100px) {
  .fw-page { display: flex !important; flex-direction: row !important; gap: 24px !important; align-items: flex-start; }
  .fw-main { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 12px; } .fw-main .list { display: flex; flex-direction: column; gap: 6px; }
  .fw-side { width: 340px; flex-shrink: 0; display: flex; flex-direction: column; gap: 12px; min-height: 420px; position: sticky; top: 100px; }
  .fw-row { width: 100%; background: var(--surface); border-radius: 14px; border: 1px solid transparent; } .fw-row:hover { background: var(--surface-2); } .fw-row.sel { border-color: var(--cyan); background: var(--accent-soft); }
  .fw-prev { height: 170px; border-radius: 14px; background: var(--surface); border: 1px solid rgba(16,24,40,0.072); display: flex; align-items: center; justify-content: center; } .fw-name { font-size: 17px; font-weight: 600; word-break: break-word; }
  .fw-det { display: flex; justify-content: space-between; font-size: 13px; } .fw-det span:first-child { color: var(--muted); }
  .fw-drop { margin-top: 6px; border: 2px dashed rgba(0,150,165,0.4); border-radius: 16px; padding: 18px; text-align: center; font-size: 14px; color: var(--accent-ink); } .fw-drop.on { background: var(--accent-soft); }
  .tkw-btn.danger { border-color: rgba(240,96,110,.5); color: var(--red-ink); } .fw-side .tkw-btn { justify-content: center; }
}
@media (min-width: 1100px) {
  .tw-page { display: flex !important; flex-direction: row !important; gap: 24px !important; align-items: flex-start; }
  .tw-left { width: 300px; flex-shrink: 0; display: flex; flex-direction: column; gap: 8px; } .tw-mid { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 10px; }
  .tw-item { display: block; padding: 14px 16px; border-radius: 14px; background: var(--surface); color: var(--ink); text-decoration: none; } .tw-item b { display: block; font-size: 15px; font-weight: 500; } .tw-item span { font-size: 13px; color: var(--muted); } .tw-item.on { background: var(--accent-soft); } .tw-item.won span { color: var(--green-ink); }
  .tw-top { display: flex; align-items: center; gap: 12px; } .tw-name { flex: 1; background: transparent; border: 0; border-bottom: 1px solid transparent; color: var(--ink); font: inherit; font-size: 22px; font-weight: 600; padding: 4px 0; } .tw-name:focus { border-bottom-color: var(--cyan); outline: 0; }
  .tw-state { font-size: 14px; color: var(--muted); } .tw-state.won { color: var(--green-ink); }
  .tw-offer, .tw-add { display: flex; align-items: center; gap: 12px; padding: 10px 16px; border-radius: 14px; background: var(--surface); } .tw-offer.won { background: var(--green-soft); border: 1px solid #4CD08A; }
  .tw-av { width: 36px; height: 36px; border-radius: 50%; background: var(--surface-2); display: flex; align-items: center; justify-content: center; font-weight: 600; flex-shrink: 0; } .tw-names { flex: 1; min-width: 0; display: flex; flex-direction: column; }
  .tw-in { background: transparent; border: 0; border-bottom: 1px solid transparent; color: var(--ink); font: inherit; font-size: 15px; padding: 3px 0; min-width: 0; } .tw-in:focus { border-bottom-color: var(--cyan); outline: 0; } .tw-in.sm { font-size: 13px; color: var(--muted); } .tw-in.pr { width: 130px; text-align: right; font-size: 17px; }
  .tw-add { background: transparent; border: 1px dashed rgba(16,24,40,0.225); } .tw-add .tw-in { flex: 1; border-bottom-color: rgba(16,24,40,0.18); } .tw-add .tw-in.pr { flex: 0 0 130px; text-align: left; font-size: 15px; }
  .tw-pick { height: 34px; padding: 0 16px; border-radius: 99px; border: 1px solid rgba(16,24,40,0.27); background: transparent; color: var(--ink); font: inherit; font-size: 13px; cursor: pointer; } .tw-pick.won { background: var(--green-soft); color: var(--green-ink); border-color: transparent; } .tw-x { background: transparent; border: 0; color: var(--muted); cursor: pointer; }
}
@media (min-width: 1100px) { .mw-seg a { white-space: nowrap; } .mw-filters { flex-wrap: wrap; } .fw-main .crumbs { margin-bottom: 0; } }
@media (min-width: 1100px) {
  .sc-wide > .topbar { display: none; }
  .sc-bar { display: flex; align-items: center; gap: 10px; padding: 0 0 16px; }
  .sc-seg { display: flex; padding: 3px; border-radius: 12px; background: var(--surface-2); } .sc-seg button { height: 36px; padding: 0 18px; border: 0; border-radius: 9px; font: inherit; font-size: 14px; background: transparent; color: var(--muted); cursor: pointer; } .sc-seg button.on { background: var(--surface); color: var(--ink); font-weight: 600; }
  .sc-legend { display: flex; gap: 10px; } .sc-chip { font-size: 12px; padding: 3px 10px; border-radius: 99px; } .sc-chip.ok { background: var(--violet-soft); color: var(--violet-ink); } .sc-chip.pr { background: var(--orange-soft); color: var(--orange-ink); }
  .sc-wide .gantt { background: var(--surface); border-radius: 20px; margin-top: 0; max-height: calc(100vh - 230px); }
  .sc-wide .g-headrow, .sc-wide .g-label { background: var(--surface); } .sc-wide .g-row { border-bottom-color: rgba(16,24,40,0.063); height: 56px; } .sc-wide .g-headrow { height: 52px; }
  .sc-wide .g-label { border-right-color: rgba(16,24,40,0.063); padding-left: 20px; } .sc-wide .g-name { font-size: 14px; color: var(--ink-2); } .sc-wide .g-sub { font-family: inherit; font-size: 11px; color: var(--muted); }
  .sc-wide .g-corner { font-family: inherit; letter-spacing: 0; font-size: 13px; }
  .sc-wide .g-bar { top: 13px; height: 30px; border-radius: 8px; box-shadow: none; } .sc-wide .g-bt { font-size: 13px; padding: 0 12px; }
  .sc-wide .g-bar.proposal { background: transparent !important; background-image: none !important; border: 2px dashed #F5B04A; outline: 0; color: var(--orange-ink); box-sizing: border-box; }
  .sc-wide .g-today { background: var(--accent); } .sc-wide .g-month, .sc-wide .g-week { border-left-color: rgba(16,24,40,0.063); font-family: inherit; }
}
@media (min-width: 1100px) {
  .uw-page > .topbar { display: none; } .uw-page .users { display: flex; flex-direction: row; gap: 24px; align-items: flex-start; max-width: none; }
  .uw-main { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 20px; } .uw-side { width: 360px; flex-shrink: 0; border-radius: 20px; background: var(--surface); padding: 22px; display: flex; flex-direction: column; gap: 14px; min-height: 420px; position: sticky; top: 100px; }
  .uw-sec { display: flex; flex-direction: column; gap: 8px; } .uw-sh { display: flex; align-items: baseline; gap: 10px; } .uw-sh h2 { margin: 0; font-size: 18px; font-weight: 600; } .uw-sh span { font-size: 13px; color: var(--muted); } .uw-add { background: transparent; border: 0; color: var(--accent-ink); font: inherit; font-size: 14px; cursor: pointer; }
  .uw-row { display: flex; align-items: center; gap: 14px; padding: 12px 16px; border-radius: 14px; background: var(--surface); border: 1px solid transparent; color: var(--ink); font: inherit; text-align: left; width: 100%; cursor: pointer; } .uw-row:hover { background: var(--surface-2); } .uw-row.on { border-color: var(--cyan); background: var(--accent-soft); } div.uw-row { cursor: default; }
  .uw-av { width: 40px; height: 40px; border-radius: 50%; background: var(--surface-2); display: flex; align-items: center; justify-content: center; font-weight: 600; flex-shrink: 0; } .uw-av.big { width: 56px; height: 56px; background: var(--accent); color: var(--on-accent); font-size: 22px; }
  .uw-t { flex: 1; min-width: 0; } .uw-t b { display: block; font-size: 15px; font-weight: 500; } .uw-t span, .uw-sub { font-size: 13px; color: var(--muted); } .uw-head { display: flex; align-items: center; gap: 14px; } .uw-chips { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 4px; } .pw-trade.cy { background: var(--accent-soft); color: var(--accent-ink); }
}
@media (min-width: 1100px) { .sc-bar .btn { height: 44px; border-radius: 99px; padding: 0 20px; font-size: 15px; width: auto; } .sc-bar .btn.small { height: 40px; } .sc-bar .input { height: 40px; border-radius: 99px; } .sc-wide .g-body { min-width: 100%; } }

/* ---------- login (varianta A) ---------- */
/* fotka stavby přes celou plochu; na telefonu nahoře a přechází do navy pod formulářem */
.login { align-items: stretch; padding: 0; position: relative; isolation: isolate;
  background: linear-gradient(180deg, rgba(7,23,76,.82) 0, rgba(7,23,76,.6) 150px, rgba(7,23,76,.45) 220px, rgba(7,23,76,.75) 300px, #07174C 400px), url(img/login-bg-m.jpg) center top / 100% auto no-repeat, #07174C; }
.login-box.lg { max-width: 420px; margin: 0 auto; padding: 0 28px; gap: 0; min-height: 100dvh; }
.lg-logo { display: flex; flex-direction: column; align-items: flex-start; gap: 8px; padding-top: calc(56px + var(--safe-top)); }
.lg-brand { display: block; width: 180px; height: auto; filter: drop-shadow(0 2px 10px rgba(0,0,0,.35)); }
.lg-app { font-size: 13px; letter-spacing: .22em; text-transform: uppercase; color: #E0FAFF; font-weight: 500; padding-left: 2px; text-shadow: 0 1px 8px rgba(0,0,0,.4); }
@media (min-width: 900px) {
  .login { justify-content: flex-start;
    background: linear-gradient(90deg, #07174C 0, rgba(7,23,76,.97) 520px, rgba(7,23,76,.55) 760px, rgba(7,23,76,.08) 100%), url(img/login-bg.jpg) 70% center / cover no-repeat, #07174C; }
  .login-box.lg { margin: 0 0 0 max(48px, 6vw); max-width: 420px; }
  .lg-brand { width: 220px; }
}
.lg-mid { flex: 1; display: flex; flex-direction: column; justify-content: center; gap: 16px; }
.lg-title { margin: 0; font-size: 30px; font-weight: 500; color: #fff; }
.lg-sub { font-size: 14px; color: #AEB8E8; margin-top: 6px; }
.lg-field { display: flex; flex-direction: column; gap: 6px; }
.lg-field label { font-size: 12px; color: #AEB8E8; }
.lg-field input { height: 48px; border-radius: 12px; border: 1px solid rgba(255,255,255,.22); background: rgba(255,255,255,.04); color: #fff; padding: 0 14px; font-size: 16px; outline: none; font-family: inherit; }
.lg-field input:focus { border-color: #6FD8EA; }
.lg-row { display: flex; align-items: center; justify-content: space-between; padding-top: 6px; }
.lg-forgot { font-size: 14px; color: #6FD8EA; text-decoration: none; }
.lg-btn { height: 44px; padding: 0 28px; border-radius: 99px; border: 0; background: #6FD8EA; color: #08164A; font-size: 15px; font-weight: 500; font-family: inherit; cursor: pointer; }
.lg-btn:disabled { opacity: .5; }
.lg-foot { padding-bottom: calc(28px + var(--safe-bottom)); font-size: 12px; color: #7F8CC4; text-align: center; display: flex; flex-direction: column; gap: 6px; }
.ph-credit { align-self: center; display: inline-flex; align-items: center; gap: 7px; font-size: 11px; color: #6F7BB0; padding: 14px 0 4px; text-decoration: none; }
.lg-credit { align-self: center; display: inline-flex; align-items: center; gap: 8px; font-size: 12px; color: #7F8CC4; text-decoration: none; }
.lg-credit img { display: block; }
.lg-credit b { color: #C9D3F7; font-weight: 500; }
.lg-credit:hover b { color: #6FD8EA; }
.login .error { border-radius: 10px; }

/* ======== TELEFON (<700px): nový vzhled vnitřních obrazovek ======== */
@media (max-width: 699px) {
  body.ph-route { background: var(--bg); }
  body.ph-route .page { padding: calc(8px + var(--safe-top)) 16px 24px; gap: 14px; max-width: none; }
  body.ph-route .page > header.topbar { display: none; }
  body.ph-route .page > .topbar { flex-wrap: nowrap; gap: 2px; align-items: center; }
  body.ph-route .page > .topbar > .back { border: 0; width: 44px; height: 44px; flex: 0 0 44px; margin-left: -10px; color: var(--ink); }
  body.ph-route .page > .topbar > .titleblock { flex: 1; }
  body.ph-route .titleblock { flex-direction: column; }
  body.ph-route h1.title { font-size: 26px; font-weight: 500; letter-spacing: 0; line-height: 1.15; }
  body.ph-route .titleblock .sub, body.ph-route .titleblock .kicker { order: -1; font-family: inherit; font-size: 12px; letter-spacing: 0; text-transform: none; color: var(--muted); }
  body.ph-route .label { font-family: inherit; font-size: 12px; letter-spacing: 0; text-transform: none; color: var(--muted); }
  body.ph-route .input, body.ph-route .textarea { background: var(--surface); color: var(--ink); border-radius: 14px; border: 0; }
  body.ph-route .input::placeholder, body.ph-route .textarea::placeholder { color: var(--muted); }
  body.ph-route .textarea { padding: 12px 14px; height: auto; }
  body.ph-route select.input { background-image: none; }
  body.ph-route .btn { border-radius: 99px; background: var(--accent); color: var(--on-accent); font-weight: 500; }
  body.ph-route .btn.secondary { background: var(--surface-2); color: var(--ink); }
  body.ph-route .btn.danger { background: transparent; border: 1px solid rgba(255,120,120,.5); color: var(--red-ink); }
  body.ph-route .error { border-radius: 12px; }
  body.ph-route .tabs, body.ph-route .seg { gap: 8px; flex-wrap: nowrap; overflow-x: auto; }
  body.ph-route .tab { min-height: 38px; border-radius: 99px; background: var(--surface-2); padding: 0 16px; font-size: 14px; white-space: nowrap; }
  body.ph-route .tab.on { background: var(--accent); color: var(--on-accent); font-weight: 600; }
  body.ph-route .chip { border-radius: 99px; background: var(--surface-2); font-size: 12px; }
  body.ph-route .list { gap: 8px; }
  body.ph-route .row { background: var(--surface); border: 0; border-radius: 14px; padding: 10px 14px; min-height: 62px; }
  body.ph-route .ficon { border-radius: 10px; }
  body.ph-route .ficon.folder { background: var(--brand); }
  body.ph-route .card { background: var(--surface); border-radius: 16px; }
  body.ph-route .empty { color: var(--muted); }
  /* spodní akční lišta */
  body.ph-bar .tabbar { display: none; }
  body.ph-bar #app { padding-bottom: calc(86px + var(--safe-bottom)); }
  body.ph-bar .ph-submit { position: fixed; z-index: 30; left: 0; right: 0; bottom: 0; margin: 0; width: 100%; border-radius: 0; min-height: 0; height: auto; padding: 12px 16px calc(12px + var(--safe-bottom)); background: var(--surface); border-top: 1px solid rgba(16,24,40,0.09); display: block; }
  body.ph-bar .ph-submit > button { width: 100%; height: 52px; border: 0; border-radius: 99px; background: var(--accent); color: var(--on-accent); font-size: 16px; font-weight: 600; display: flex; align-items: center; justify-content: center; gap: 8px; }
  body.ph-bar .ph-submit > button:disabled { opacity: .5; }
}
@media (max-width: 699px) {
  .ph-dot { width: 10px; height: 10px; border-radius: 50%; flex: 0 0 10px; background: #F5B14C; }
  .ph-dot.fixed { background: #4ADE80; }
  .ph-dot.done { background: #7F8CC4; }
  .ph-chip { font-size: 12px; padding: 4px 10px; border-radius: 99px; background: var(--orange-soft); color: var(--orange-ink); white-space: nowrap; }
  .ph-chip.fixed { background: var(--green-soft); color: var(--green-ink); }
  .ph-chip.done { background: var(--surface-3); color: var(--ink-2); }
  body.ph-route .ph-trow { min-height: 58px; }
  body.ph-route #rek-new { min-height: 44px; padding: 0 18px; font-size: 15px; flex: 0 0 auto; }
  body.ph-route #rek-new .ficon, body.ph-route #rek-new span { display: inline-flex; }
  body.ph-route .tabs { margin: 0 -16px; padding: 0 16px; }
  /* nový úkol / reklamace */
  body.ph-route .form { max-width: none; gap: 14px; }
  body.ph-route .form .place { background: var(--surface); border-radius: 14px; }
  body.ph-route .dropdown { background: var(--surface); color: var(--ink); border-radius: 14px; border: 0; }
  body.ph-route .trade-grid .trade { border-radius: 99px; }
  body.ph-route .media-btns { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  body.ph-route .media-btn { height: 76px; background: transparent; border: 1px dashed rgba(16,24,40,0.252); border-radius: 14px; align-items: center; justify-content: center; gap: 6px; font-size: 13px; color: var(--ink); }
  body.ph-route .media-btn.n3 { background: transparent; }
  body.ph-route .media-btn svg { width: 22px; height: 22px; color: var(--accent-ink); }
  body.ph-route .thumb { border-radius: 12px; }
  .file-thumb { flex-direction: column; gap: 4px; padding: 6px; text-align: center; word-break: break-all; }
}
@media (max-width: 699px) {
  body.ph-route .rname { font-size: 15px; }
  body.ph-route .rmeta { font-family: inherit; font-size: 12px; color: var(--muted); }
}
@media (max-width: 699px) {
  .ph-only { display: inline; }
  body.ph-route .toolbar { gap: 8px; flex-wrap: wrap; }
  body.ph-route .toolbar .search { flex: 1 1 0; min-width: 0; height: 48px; border-radius: 99px; background: var(--surface); padding: 0 16px; }
  body.ph-route .toolbar .search input { font-size: 15px; }
  body.ph-route .toolbar > label.btn:not(.secondary) { min-height: 48px; padding: 0 20px; font-size: 15px; flex: 0 0 auto; }
  body.ph-route .toolbar > .btn.secondary { min-height: 36px; font-size: 13px; padding: 0 14px; }
  body.ph-route .sortbar { display: flex; gap: 8px; overflow-x: auto; align-items: center; }
  body.ph-route .sortbar .label { display: none; }
  body.ph-route .sortbar .tab { min-height: 34px; font-size: 13px; padding: 0 14px; gap: 4px; }
  body.ph-route .crumbs { font-family: inherit; font-size: 12px; color: var(--muted); }
  body.ph-route .rowwrap { display: flex; align-items: center; background: var(--surface); border-radius: 14px; margin-bottom: 8px; overflow: hidden; }
  body.ph-route .rowwrap .row { background: none; margin: 0; flex: 1; min-width: 0; }
  body.ph-route .rowwrap .rowact { width: 44px; height: 44px; margin-right: 4px; color: var(--muted); }
  body.ph-route .list > .row, body.ph-route .list > .rowwrap { margin: 0; }
  body.ph-route .ficon { width: 44px; height: 44px; flex: 0 0 44px; }
  body.ph-route .ficon.file { background: var(--surface-3); color: var(--ink-2); }
  body.ph-route .row .chev, body.ph-route .row > span:last-child svg { color: var(--accent-ink); }
}
@media (max-width: 699px) {
  body.ph-route .toolbar > label.btn.secondary { display: none; }
}
@media (max-width: 699px) {
  body.ph-route .notif-push { display: none; }
  body.ph-route .page > .topbar > #notif-readall { background: none; color: var(--accent-ink); font-size: 14px; font-weight: 500; min-height: 44px; padding: 0 2px; flex: 0 0 auto; }
  body.ph-route .notif-list { margin-top: 0; gap: 8px; }
  body.ph-route .notif { background: var(--surface); border-radius: 14px; padding: 12px 14px; align-items: center; opacity: 1; }
  body.ph-route .notif .n-dot { width: 10px; height: 10px; flex: 0 0 10px; border-radius: 50%; background: var(--surface-2); margin: 0; }
  body.ph-route .notif.unread .n-dot { background: var(--accent); }
  body.ph-route .notif b { font-weight: 400; font-size: 15px; }
  body.ph-route .notif.unread b { font-weight: 500; }
  body.ph-route .notif .n-time { font-family: inherit; font-size: 12px; color: var(--muted); }
  body.ph-route .notif .n-text { display: flex; flex-direction: column; gap: 2px; }
}
@media (max-width: 699px) {
  .ph-account { min-height: calc(100dvh - 90px); padding-top: calc(18px + var(--safe-top)); }
  .ph-account h1.title { font-size: 28px; font-weight: 500; letter-spacing: 0; }
  .ph-profile { display: flex; align-items: center; gap: 16px; }
  .ph-avatar { width: 64px; height: 64px; border-radius: 50%; background: var(--accent); color: var(--on-accent); display: flex; align-items: center; justify-content: center; font-size: 22px; font-weight: 600; flex: 0 0 64px; }
  .ph-pname { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
  .ph-pname b { font-size: 18px; font-weight: 600; }
  .ph-pname span { font-size: 13px; color: var(--muted); }
  .ph-menu { display: flex; flex-direction: column; gap: 8px; }
  .ph-mrow { display: flex; align-items: center; gap: 12px; min-height: 50px; padding: 0 16px; border: 0; border-radius: 14px; background: var(--surface); color: var(--ink); font-size: 16px; text-align: left; width: 100%; }
  .ph-mic { color: var(--accent-ink); display: flex; }
  .ph-mlabel { flex: 1; }
  .ph-mright { font-size: 13px; color: var(--muted); }
  .ph-mchev { color: var(--muted); display: flex; }
  .ph-card { background: var(--surface); border-radius: 14px; padding: 14px; margin-bottom: 4px; }
  .ph-card .form { max-width: none; }
  .ph-card ol { margin: 8px 0 0; padding-left: 20px; display: flex; flex-direction: column; gap: 6px; font-size: 14px; }
  .ph-logout { height: 50px; border-radius: 14px; border: 1px solid rgba(255,120,120,.55); background: transparent; color: var(--red-ink); font-size: 16px; }
}
.cart-chips { display: none; }
@media (max-width: 699px) {
  body.ph-route .cart-form { display: grid; grid-template-columns: 1fr 48px; gap: 10px; padding: 0; background: none; align-items: center; }
  body.ph-route .cart-form .cf-name { order: 1; grid-column: 1; } 
  body.ph-route .cart-form > .btn { order: 2; grid-column: 2; width: 48px; min-height: 48px; padding: 0; font-size: 0; gap: 0; border-radius: 50%; }
  body.ph-route .cart-form .cf-name .label, body.ph-route .cart-form .cf-proj .label { display: none; }
  body.ph-route .cart-form .cf-proj, body.ph-route .cart-form .cf-qty, body.ph-route .cart-form .cf-note { grid-column: 1 / -1; display: none; }
  body.ph-route .cart-form:focus-within .cf-proj { order: 3; display: flex; }
  body.ph-route .cart-form:focus-within .cf-qty { order: 4; display: flex; }
  body.ph-route .cart-form:focus-within .cf-note { order: 5; display: flex; }
  body.ph-route .cart-qty .input { width: 100% !important; }
  body.ph-route .cart-chips { display: flex; gap: 8px; overflow-x: auto; margin: 0 -16px; padding: 0 16px; }
  body.ph-route .cart-chips .tab { min-height: 36px; font-size: 14px; }
  body.ph-route .page > .toolbar:not(.sched-bar) > select { display: none; }
  body.ph-route .page > .toolbar { justify-content: flex-end; }
  body.ph-route .cart-group { font-family: inherit; font-size: 12px; letter-spacing: .5px; color: var(--muted); padding: 8px 2px 8px; }
  body.ph-route .cart-item { position: relative; background: var(--surface); border-radius: 14px; margin-bottom: 8px; padding: 0 0 0; }
  body.ph-route .cart-item .row { background: none; border-radius: 14px; padding-right: 120px; }
  body.ph-route .cart-item .rowwrap { background: none; margin: 0; }
  body.ph-route .cart-item .rowwrap .rowact { position: absolute; right: 4px; bottom: 2px; width: 36px; height: 36px; margin: 0; opacity: .6; display: none; }
  body.ph-route .cart-item.open .rowwrap .rowact { display: flex; }
  body.ph-route .cart-qtybadge { background: var(--surface-3); color: var(--ink); font-family: inherit; font-weight: 600; font-size: 12px; border-radius: 10px; align-items: center; min-width: 52px; height: 40px; padding: 0 6px; }
  body.ph-route .cart-buy { display: block; padding: 0; }
  body.ph-route .cart-buy .cart-status { position: absolute; right: 14px; top: 17px; width: auto; min-height: 0; height: 26px; padding: 0 22px 0 10px; font-size: 12px; border: 0; border-radius: 99px; background: var(--surface-3); color: var(--ink); -webkit-appearance: none; appearance: none; }
  body.ph-route .cart-buy .cart-status.objednano { background: var(--orange-soft); color: var(--orange-ink); }
  body.ph-route .cart-buy .cart-status.koupeno { background: var(--green-soft); color: var(--green-ink); }
  body.ph-route .cart-buy .cart-supplier { display: none; margin: 0 14px 12px; width: calc(100% - 28px); height: 40px; font-size: 14px; }
  body.ph-route .cart-item.open .cart-buy .cart-supplier { display: block; }
}
@media (max-width: 699px) {
  body.ph-route .users { display: flex; flex-direction: column; gap: 0; }
  body.ph-route .uw-side { display: none; }
  body.ph-route .uw-main { display: flex; flex-direction: column; gap: 14px; }
  body.ph-route .uw-sec { display: flex; flex-direction: column; gap: 8px; }
  body.ph-route .uw-sh { display: flex; align-items: center; gap: 8px; }
  body.ph-route .uw-sh h2 { margin: 0; font-size: 17px; font-weight: 500; }
  body.ph-route .uw-sh span { display: none; }
  body.ph-route .uw-sh span:nth-last-of-type(1) { display: block; flex: 1; }
  body.ph-route .uw-add { background: none; border: 0; color: var(--accent-ink); font: inherit; font-size: 14px; padding: 8px 0 8px 8px; }
  body.ph-route .uw-row { display: flex; align-items: center; gap: 14px; padding: 12px 16px; border-radius: 16px; background: var(--surface); border: 0; color: var(--ink); font: inherit; text-align: left; width: 100%; min-height: 64px; }
  body.ph-route .uw-av { width: 44px; height: 44px; border-radius: 50%; background: var(--surface-2); display: flex; align-items: center; justify-content: center; font-weight: 600; flex: 0 0 44px; }
  body.ph-route .uw-t { flex: 1; min-width: 0; }
  body.ph-route .uw-t b { display: block; font-size: 16px; font-weight: 500; }
  body.ph-route .uw-t span { font-size: 12px; color: var(--muted); display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  body.ph-route .uw-row .pw-trade { font-size: 12px; padding: 4px 10px; border-radius: 99px; background: var(--surface-3); white-space: nowrap; }
  body.ph-route .pw-none { color: var(--muted); font-size: 14px; }
}
@media (max-width: 699px) {
  body.ph-route .tp-tabs { margin: 0 -16px; padding: 0 16px; }
  body.ph-route .tp-state { font-size: 13px; color: var(--green-ink); }
  body.ph-route .tp-state.wait { color: var(--muted); }
  body.ph-route .tp-list { display: flex; flex-direction: column; gap: 10px; }
  body.ph-route .tp-offer { background: var(--surface); border-radius: 16px; overflow: hidden; border: 1px solid transparent; }
  body.ph-route .tp-offer.won { background: var(--green-soft); border-color: rgba(74,222,128,.55); }
  body.ph-route .tp-row { display: flex; align-items: center; gap: 12px; width: 100%; padding: 12px 14px; border: 0; background: none; color: var(--ink); text-align: left; font: inherit; }
  body.ph-route .tp-av { width: 40px; height: 40px; border-radius: 50%; background: var(--surface-2); display: flex; align-items: center; justify-content: center; font-weight: 600; flex: 0 0 40px; }
  body.ph-route .tp-t { flex: 1; min-width: 0; display: flex; flex-direction: column; }
  body.ph-route .tp-t b { font-size: 16px; font-weight: 500; }
  body.ph-route .tp-t span { font-size: 12px; color: var(--muted); }
  body.ph-route .tp-r { display: flex; flex-direction: column; align-items: flex-end; gap: 4px; }
  body.ph-route .tp-r b { font-size: 16px; font-weight: 500; }
  body.ph-route .tp-offer .offer { background: none; padding: 0 14px 14px; }
  body.ph-route .tp-offer .offer.won { background: none; }
  body.ph-route .tp-offer .offer .offer-top { display: none; }
  body.ph-route .tp-offer .offer .input { background: var(--surface); }
  body.ph-route .tp-offer .offer.won .input { background: var(--surface); border: 0; }
  body.ph-route .tp-addbtn { height: 48px; border-radius: 16px; border: 1px dashed rgba(0,150,165,0.5); background: none; color: var(--accent-ink); font-size: 15px; }
  body.ph-route .tp-add { display: flex; flex-direction: column; gap: 10px; background: none; padding: 0; }
}
@media (max-width: 699px) { body.ph-route .tp-body { display: flex; flex-direction: column; gap: 14px; } body.ph-route .tp-body > .btn.small { align-self: flex-start; } }
@media (max-width: 699px) {
  body.ph-route .tool-actions .tile.cyan { height: 56px; width: 100%; border-radius: 99px; flex-direction: row; align-items: center; justify-content: center; padding: 0; gap: 8px; }
  body.ph-route .tool-actions .tile.cyan .t-name { margin: 0; font-size: 16px; }
  body.ph-route .tooltile { border-radius: 16px; }
  body.ph-route .tool-legend { color: var(--muted); font-family: inherit; }
}
@media (max-width: 699px) {
  body.ph-route .issue-form { display: contents; }
  body.ph-route .issue-form .field:first-child { order: 1; }
  body.ph-route .issue-form .cart-qty { order: 2; }
  body.ph-route .page > .toolbar { order: 3; }
  body.ph-route .ph-pick-label { order: 4; margin-bottom: -6px; }
  body.ph-route .page > .toollist { order: 5; margin-top: 0; }
  body.ph-route .issue-form .field:nth-of-type(3) { order: 6; }
  body.ph-route .issue-form .ph-submit { order: 7; }
  body.ph-route .tooltile { background: var(--surface); border-radius: 16px; padding: 12px 16px; }
  body.ph-route .tooltile .tt-name { font-size: 16px; }
  body.ph-route .tooltile .tt-line, body.ph-route .tooltile .tt-note { font-family: inherit; font-size: 12px; color: var(--muted); opacity: 1; }
  body.ph-route .tooltile.t-green { border-left: 3px solid #4ADE80; }
  body.ph-route .tooltile.t-orange { border-left: 3px solid #F5B14C; }
  body.ph-route .tooltile.t-red { border-left: 3px solid #FF6B6B; }
  body.ph-route .tooltile.pick { border-left: 0; padding-left: 70px; min-height: 64px; justify-content: center; border: 1px solid transparent; }
  body.ph-route .tooltile.pick::before { content: ''; position: absolute; left: 14px; top: 50%; transform: translateY(-50%); width: 40px; height: 40px; border-radius: 10px; background: #1B2C78 url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 24 24' fill='none' stroke='%236FD8EA' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M14.5 6a4 4 0 00-5.2 5.2L3.5 17a1.8 1.8 0 002.5 2.5l5.8-5.8A4 4 0 0018 8.5l-2.4 2.4-2.5-.6-.6-2.5z'/%3E%3C/svg%3E") center / 20px no-repeat; }
  body.ph-route .tooltile.pick input { left: auto; right: 16px; width: 26px; height: 26px; -webkit-appearance: none; appearance: none; border: 2px solid rgba(16,24,40,0.3); border-radius: 50%; background: none; }
  body.ph-route .tooltile.pick input:checked { background: var(--accent); border-color: #6FD8EA; box-shadow: inset 0 0 0 5px #0E1D5E; }
  body.ph-route .tooltile.pick.picked { outline: 0; border-color: #6FD8EA; background: var(--accent-soft); }
}
@media (max-width: 699px) {
  body.ph-route .tkp-chips { display: flex; flex-wrap: wrap; gap: 8px; }
  body.ph-route .tkp-chips .chip { padding: 5px 12px; font-size: 12px; }
  body.ph-route .tkp-st { background: var(--orange-soft); color: var(--orange-ink); }
  body.ph-route .tkp-st.late { background: var(--red-soft); color: var(--red-ink); }
  body.ph-route .tkp-st.fixed { background: var(--orange-soft); color: var(--orange-ink); }
  body.ph-route .tkp-st.done { background: var(--green-soft); color: var(--green-ink); }
  body.ph-route .tkp-tr { background: var(--accent-soft); color: var(--accent-ink); }
  body.ph-route .tkp-desc { margin: 0; font-size: 15px; line-height: 1.5; white-space: pre-line; background: var(--surface); border-radius: 14px; padding: 12px 14px; }
  body.ph-route .tkp-by { font-size: 12px; color: var(--muted); }
  body.ph-route .tkp-sec { display: flex; flex-direction: column; gap: 10px; }
  body.ph-route .tkp-sh { display: flex; align-items: center; justify-content: space-between; }
  body.ph-route .tkp-sh b { font-size: 17px; font-weight: 500; }
  body.ph-route .tkp-pill { display: inline-flex; align-items: center; gap: 6px; height: 40px; padding: 0 16px; border-radius: 99px; background: var(--accent); color: var(--on-accent); font-size: 14px; font-weight: 500; cursor: pointer; }
  body.ph-route .doc-row { background: var(--surface); border-radius: 16px; padding: 12px 14px; }
  body.ph-route .doc-row .ficon.file { background: var(--red-soft); color: var(--red-ink); font-size: 11px; align-items: center; padding: 0; font-family: inherit; font-weight: 600; }
  body.ph-route .doc-open { color: var(--accent-ink); font-size: 14px; }
  body.ph-route .tkp-photos { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
  body.ph-route .tkp-photos .thumb { border-radius: 14px; aspect-ratio: 1 / .9; }
  body.ph-route .tkp-add { border: 1px dashed rgba(16,24,40,0.252); background: none; color: var(--muted); font-size: 13px; cursor: pointer; position: relative; }
  body.ph-route .tkp-add input { position: absolute; width: 1px; height: 1px; opacity: 0; }
  body.ph-bar .tkp-bar { display: flex; gap: 10px; }
  body.ph-bar .tkp-bar .action { flex: 1; height: 52px; border: 0; border-radius: 99px; font-size: 16px; font-weight: 600; flex-direction: row; justify-content: center; align-items: center; padding: 0 20px; background: var(--accent); color: var(--on-accent); opacity: 1; }
  body.ph-bar .tkp-bar .action.checked { background: #4ADE80; color: var(--on-accent); }
  body.ph-bar .tkp-bar .action.fixed { background: var(--accent); color: var(--on-accent); }
  body.ph-bar .tkp-bar .action.returned { background: transparent; color: var(--ink); border: 1px solid rgba(16,24,40,0.3); flex: 0 0 auto; }
  body.ph-bar .tkp-bar .action:only-child { flex: 1; }
}
.vmenu-btn, .vsheet { display: none; }
@media (max-width: 699px) {
  body.ph-notab .tabbar { display: none; }
  body.ph-notab #app { padding-bottom: 0; }
  body.ph-notab { background: var(--bg); }
  .viewer-page { padding: calc(6px + var(--safe-top)) 0 0; gap: 0; position: relative; }
  .viewer-page .vtiles { display: grid; grid-template-columns: 44px 1fr auto; align-items: center; gap: 4px; padding: 0 12px 8px 4px; position: relative; }
  .viewer-page .vtiles > a.vtile { grid-column: 1; grid-row: 1; width: 44px; height: 44px; padding: 0; background: none; align-items: center; justify-content: center; }
  .viewer-page .vtiles > a.vtile span:not([aria-hidden]) { display: none; }
  .viewer-page .vhead { grid-column: 2; grid-row: 1; align-items: flex-start; justify-content: center; text-align: left; gap: 0; }
  .viewer-page .vhead .kicker { order: 0; font-family: inherit; font-size: 12px; letter-spacing: 0; text-transform: none; color: #AEB8E8; display: flex; align-items: center; gap: 4px; flex-wrap: wrap; }
  .viewer-page .vhead .vname { order: 1; font-size: 20px; font-weight: 500; }
  .viewer-page .vhead .pager { order: 2; font-size: 12px; font-family: inherit; color: #AEB8E8; }
  .viewer-page .vhead .pager .btn { min-height: 28px; height: 28px; width: 32px; padding: 0; border-radius: 99px; }
  .viewer-page .vmenu-btn { display: block; grid-column: 3; grid-row: 1; height: 40px; padding: 0 18px; border-radius: 99px; border: 1px solid rgba(255,255,255,.3); background: none; color: #fff; font-size: 14px; }
  .viewer-page .vtiles > .vtile:not(a) { display: none; }
  .viewer-page .vtiles.open > .vtile:not(a):not(.cyan):not(.active) { display: flex; flex-direction: row; align-items: center; gap: 10px; height: 52px; width: 100%; grid-column: 1 / -1; border-radius: 12px; background: #14286B; padding: 0 16px; font-size: 15px; }
  .viewer-page .vtiles.open { background: transparent; }
  .viewer-page .vtiles > .vtile.cyan, .viewer-page .vtiles > .vtile.active { display: flex; position: fixed; z-index: 12; right: 16px; top: calc(76px + var(--safe-top)); width: 44px; height: 44px; padding: 0; border-radius: 12px; align-items: center; justify-content: center; background: rgba(8,22,74,.85); color: #fff; border: 1px solid rgba(255,255,255,.15); }
  .viewer-page .vtiles > .vtile.active { background: var(--pink); color: #08164A; }
  .viewer-page .vtiles > .vtile.cyan span:not([aria-hidden]), .viewer-page .vtiles > .vtile.active span:not([aria-hidden]) { display: none; }
  .viewer-page .viewer { background: #fff; }
  .marker { width: 30px; height: 30px; border-width: 2px; }
  .marker .marker-n { color: #fff; font-size: 14px; font-weight: 700; }
  .marker.open { background: #F0626F; } .marker.done { background: #34C77B; }
  .marker.focus { box-shadow: 0 0 0 5px rgba(111,216,234,.7), 0 2px 8px rgba(7,23,76,.45); }
  .vsheet { display: none; flex-direction: column; gap: 12px; padding: 16px 16px calc(16px + var(--safe-bottom)); background: var(--surface); border-radius: 20px 20px 0 0; border-top: 1px solid rgba(16,24,40,0.09); z-index: 11; }
  .vs-top { display: flex; align-items: center; gap: 10px; }
  .vs-top b { flex: 1; font-size: 16px; font-weight: 500; min-width: 0; }
  .vs-n { width: 30px; height: 30px; border-radius: 50%; border: 2px solid #fff; display: flex; align-items: center; justify-content: center; font-size: 14px; font-weight: 700; background: #F0626F; flex: 0 0 30px; }
  .vs-n.fixed { background: var(--orange); } .vs-n.done { background: #34C77B; }
  .ph-chip.late { background: var(--red-soft); color: var(--red-ink); }
  .vs-btns { display: flex; gap: 10px; }
  .vs-btns a { flex: 1; height: 48px; border-radius: 99px; display: flex; align-items: center; justify-content: center; text-decoration: none; font-size: 15px; font-weight: 500; }
  .vs-open { background: var(--accent); color: var(--on-accent); }
  .vs-new { border: 1px solid rgba(255,255,255,.3); color: #fff; }
  .vcontrols { bottom: 12px; right: 12px; }
}
@media (max-width: 699px) {
  .viewer-page .vhead { min-width: 0; overflow: hidden; }
  .viewer-page .vhead .kicker { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; display: block; }
  .viewer-page .vhead .vname { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; display: block; font-size: 18px; }
}
@media (max-width: 699px) {
  body.ph-route .tkp-by .label { display: block; }
  body.ph-route .tkp-by { font-size: 12px; }
  body.ph-route .person-name { font-size: 15px; }
  body.ph-route .person-btns .btn { min-height: 36px; border-radius: 99px; }
  body.ph-route .history .hrow { gap: 10px; }
}
.cx-addday, .cx-searchbtn, .cx-cnt, .cx-dots { display: none; }
.cx-dh { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; }
@media (max-width: 699px) {
  .cx-page { padding: calc(8px + var(--safe-top)) 16px 0; gap: 12px; min-height: calc(100dvh - 76px - var(--safe-bottom)); }
  .cx-page > header.topbar { display: none; }
  .cx-page > .topbar { flex-wrap: nowrap; gap: 8px; align-items: center; padding-top: 6px; }
  .cx-page > .topbar > .back { display: none; }
  .cx-page > .topbar > .titleblock { flex: 1; }
  .cx-page h1.title { font-size: 30px; font-weight: 500; letter-spacing: 0; }
  .cx-page .titleblock .kicker { order: -1; font-family: inherit; font-size: 12px; letter-spacing: 0; text-transform: none; color: var(--muted); }
  .cx-searchbtn { display: flex; width: 44px; height: 44px; border-radius: 50%; border: 1px solid rgba(16,24,40,0.162); background: var(--surface); color: var(--ink); align-items: center; justify-content: center; padding: 0; }
  .cx-bar { display: block; margin-top: 0; position: relative; }
  .cx-bar .cx-nav { position: absolute; right: 0; top: -66px; display: flex; gap: 4px; align-items: center; }
  .cx-page > .topbar { padding-right: 150px; position: relative; }
  .cx-page > .topbar .cx-searchbtn { position: absolute; right: 96px; top: 6px; }
  .cx-nav .btn { background: transparent; border: 1px solid rgba(16,24,40,0.18); color: var(--ink); border-radius: 99px; min-height: 40px; }
  .cx-nav #cal-prev, .cx-nav #cal-next { display: none; }
  .cx-bar .cx-search { display: none; margin-top: 10px; border-radius: 99px; background: var(--surface); color: var(--ink); width: 100%; }
  .cx-bar.show-search .cx-search { display: block; }
  .cx-seg { border-radius: 99px; background: var(--surface); padding: 3px; }
  .cx-seg button { border-radius: 99px; color: var(--ink-2); min-height: 36px; font-size: 14px; }
  .cx-seg button.on { background: var(--accent); color: var(--on-accent); font-weight: 600; }
  .cx { display: flex; flex-direction: column; flex: 1; }
  .cx-main { padding: 0 0 4px; }
  .cx-dow { font-size: 12px; color: var(--muted); }
  .cx-week { grid-template-rows: 1fr; min-height: 0; height: 48px; }
  .cx-ev { display: none; }
  .cx-more { display: none; }
  .cx-cell.cal-cell { padding: 0; justify-content: center; align-items: center; flex-direction: column; gap: 2px; background: none; }
  .cx-cell.sel { background: none; }
  .cx-num { width: 34px; height: 34px; font-size: 16px; }
  .cx-cell.sel:not(.today) .cx-num { box-shadow: none; background: var(--surface-3); }
  .cx-dots { display: flex; gap: 3px; height: 5px; }
  .cx-dots i { width: 5px; height: 5px; border-radius: 50%; }
  .cx-cell.sel .cx-dots, .cx-cell .cx-dots { margin-top: -2px; }
  .cx-panel { flex: 1; margin: 6px -16px 0; background: var(--surface); border-radius: 22px 22px 0 0; padding: 16px 16px 24px; }
  .cx-panel .card-title { font-size: 17px; font-weight: 500; margin: 0; }
  .cx-cnt { display: inline; font-size: 12px; color: var(--muted); }
  .cx-dh { margin-bottom: 10px; }
  .cx-line { border-radius: 14px; background: var(--surface); }
  .cx-addday { display: flex; align-items: center; gap: 8px; border: 0; background: none; color: var(--accent-ink); font-size: 14px; padding: 12px 2px; }
  .cx-fab, .cx-todayfab { display: none; }
  .cx-listview { gap: 14px; }
  .cx-ym-t { color: var(--accent-ink); }
}
@media (max-width: 699px) { .cx-week, .cx-grid .cx-week + .cx-week { border: 0; } .cx-month { gap: 0; } }
@media (max-width: 699px) {
  .cx-line .cal-time { font-family: inherit; font-size: 13px; color: var(--muted); flex-basis: 48px; }
  .cx-line .cal-by { display: none; }
  .cx-line .cal-main b { font-weight: 400; font-size: 15px; }
  .cx-line .cal-proj, .cx-line .cal-note { font-family: inherit; font-size: 12px; color: var(--muted); }
}

/* ---------- v65: spodní panel na telefonu – varianta E (celoplošný, rozostřený, svítící proužek) ---------- */
@media (max-width: 699px) {
  body.has-tabbar #app { padding-bottom: calc(92px + var(--safe-bottom)); }
  .tabbar { height: calc(68px + var(--safe-bottom)); padding: 0 6px var(--safe-bottom); background: rgba(255,255,255,.88); -webkit-backdrop-filter: blur(26px) saturate(180%); backdrop-filter: blur(26px) saturate(180%); border-top: 1px solid rgba(16,24,40,0.126); }
  .tb-item { min-height: 0; height: 68px; gap: 4px; padding: 0; color: var(--muted); font-size: 10.5px; letter-spacing: .1px; -webkit-tap-highlight-color: transparent; }
  .tb-item svg { fill: none; }
  .tb-item.on { color: var(--accent-ink); }
  .tb-item.on:not(#tab-vice) svg { fill: currentColor; fill-opacity: .24; }
  .tb-item.on::before { content: ''; position: absolute; top: 0; left: 50%; transform: translateX(-50%); width: 30px; height: 3px; border-radius: 0 0 3px 3px; background: var(--accent); box-shadow: 0 0 12px var(--cyan); }
  .tb-item:active { opacity: .7; }
  .tb-plus-btn { margin: 0; width: auto; height: 68px; border-radius: 0; background: transparent; color: var(--muted); box-shadow: none; }
  .tb-more { bottom: calc(76px + var(--safe-bottom)); }
}

/* ---------- v66: detail stavby na telefonu (varianta E) ---------- */
@media (max-width: 699px) {
  .pp-page { gap: 14px; }
  .pp-page .titleblock .sub { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 100%; }
  .pp-sec-h { display: flex; align-items: baseline; justify-content: space-between; padding-top: 6px; }
  .pp-sec-h b { font-size: 17px; font-weight: 500; }
  .pp-sec-h a { color: var(--accent-ink); font-size: 14px; text-decoration: none; min-height: 32px; display: flex; align-items: center; }
  .pp-tasks { display: flex; flex-direction: column; gap: 8px; margin-top: -6px; }
  .pp-task { display: flex; align-items: center; gap: 12px; min-height: 62px; padding: 10px 14px; border-radius: 14px; background: var(--surface); color: var(--ink); text-decoration: none; }
  .pp-task:active, .pp-short:active { background: var(--surface-2); }
  .pp-ttext { display: flex; flex-direction: column; gap: 2px; min-width: 0; flex: 1; }
  .pp-tname { font-size: 15px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .pp-tsub { font-size: 12px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .pp-empty { padding: 14px; border-radius: 14px; background: var(--surface); color: var(--muted); font-size: 14px; display: flex; align-items: center; gap: 10px; }
  .pp-empty.ok { color: var(--green-ink); }
  .ph-dot.late { background: #F0606E; }
  .pp-shorts { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
  .pp-short { display: flex; align-items: center; gap: 10px; min-height: 64px; padding: 12px; border-radius: 16px; background: var(--surface); color: var(--ink); text-decoration: none; min-width: 0; }
  .pp-short > svg { color: var(--accent-ink); flex: 0 0 auto; }
  .pp-stext { display: flex; flex-direction: column; min-width: 0; }
  .pp-sname { font-size: 14.5px; }
  .pp-ssub { font-size: 11.5px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
}

/* v68: prohlížeč obrázků / videí přímo v aplikaci */
body.mv-open { overflow: hidden; }
.mv { position: fixed; inset: 0; z-index: 300; background: rgba(4, 8, 30, .96); display: flex; flex-direction: column; color: #fff; }
.mv-bar { display: flex; align-items: center; gap: 10px; padding: calc(var(--safe-top) + 10px) 14px 10px; background: rgba(10, 22, 80, .85); }
.mv-title { flex: 1; min-width: 0; font-weight: 600; font-size: 15px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mv-count { font-size: 13px; color: #AEB8E8; }
.mv-btn { background: rgba(255, 255, 255, .12); color: #fff; border: 0; border-radius: 10px; padding: 8px 12px; font: inherit; font-size: 14px; display: inline-flex; align-items: center; cursor: pointer; }
.mv-x { padding: 8px; }
.mv-stage { flex: 1; min-height: 0; display: flex; align-items: center; justify-content: center; padding: 8px; padding-bottom: calc(var(--safe-bottom) + 8px); }
.mv-img, .mv-vid { max-width: 100%; max-height: 100%; object-fit: contain; border-radius: 6px; }
.mv-aud { width: min(520px, 92%); }
.mv-msg { color: #AEB8E8; text-align: center; padding: 24px; max-width: 360px; }
.mv-nav { position: absolute; top: 50%; transform: translateY(-50%); width: 44px; height: 64px; border: 0; border-radius: 12px; background: rgba(255, 255, 255, .12); color: #fff; display: flex; align-items: center; justify-content: center; cursor: pointer; }
.mv-nav.prev { left: 8px; } .mv-nav.prev svg { transform: rotate(180deg); }
.mv-nav.next { right: 8px; }
@media (max-width: 699px) { .mv-nav { width: 38px; height: 56px; opacity: .75; } }

.fw-prev.real { height: 260px; padding: 8px; background: var(--surface); }
.fw-pimg { max-width: 100%; max-height: 100%; object-fit: contain; border-radius: 8px; cursor: zoom-in; background: #fff0; }
.mv-dir.sel { outline: 2px solid var(--cyan); }
.mv-dir:disabled { opacity: .45; }

/* v71: přepínání souborů ve složce nad výkresem */
.vswitch { position: absolute; left: 50%; bottom: calc(var(--safe-bottom) + 14px); transform: translateX(-50%); z-index: 6; display: flex; align-items: center; gap: 2px; background: var(--surface); border: 1px solid rgba(16,24,40,0.126); border-radius: 999px; padding: 4px; backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }
.vswitch button { width: 40px; height: 40px; border: 0; border-radius: 50%; background: none; color: var(--ink); display: flex; align-items: center; justify-content: center; cursor: pointer; }
.vswitch button:first-child svg { transform: rotate(180deg); }
.vswitch button:disabled { opacity: .3; cursor: default; }
.vs-count { min-width: 56px; text-align: center; font-size: 14px; color: var(--ink); font-variant-numeric: tabular-nums; }
/* v106: bílé písmo zůstalo z tmavé verze (v87) – na světlém podkladu nebylo vidět; na telefonu přepínač zakrýval tlačítko „+“ → doleva */
@media (max-width: 699px) { .vswitch { left: 12px; transform: none; } }
.mv .mv-stage { padding-bottom: calc(var(--safe-bottom) + 72px); }
.mv .mv-pill { z-index: 2; }
/* v72: verze souborů */
.ver-list { display: flex; flex-direction: column; gap: 8px; max-height: 50vh; overflow: auto; }
.ver-row { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 12px; background: var(--surface); }
.ver-row.cur { outline: 1px solid rgba(0,150,165,0.45); }
.ver-row .rtext { flex: 1; min-width: 0; }
.ver-no { flex: none; min-width: 38px; height: 28px; padding: 0 8px; border-radius: 8px; background: var(--accent-soft); color: var(--accent-ink); font-weight: 700; font-size: 13px; display: flex; align-items: center; justify-content: center; }
.rmeta.warn { color: var(--orange-ink); }
.tkw-btn.small { padding: 6px 10px; font-size: 13px; }
.ver-row .btn.small { width: auto; flex: none; }
/* v72: upozornění na novou verzi výkresu + štítek verze */
.vver { margin-left: 8px; border: 0; border-radius: 8px; padding: 2px 8px; background: var(--accent-soft); color: var(--accent-ink); font: inherit; font-size: 12px; font-weight: 700; cursor: pointer; vertical-align: middle; }
.vverban { display: flex; align-items: center; gap: 10px; padding: 10px 14px; background: var(--orange-soft); border-bottom: 1px solid rgba(255, 181, 71, .4); color: var(--orange-ink); font-size: 14px; }
.vverban > svg, .vverban > span:first-child { color: var(--orange-ink); flex: none; }
.vvb-text { flex: 1; min-width: 0; }
.vverban .btn.small { width: auto; flex: none; }
.vvb-x { flex: none; background: none; border: 0; color: var(--orange-ink); width: 36px; height: 36px; display: flex; align-items: center; justify-content: center; cursor: pointer; }
@media (max-width: 699px) { .vverban { flex-wrap: wrap; font-size: 13px; } }
/* v73: chybová stránka */
.err-page .err-actions { display: flex; flex-direction: column; gap: 10px; margin-top: 12px; }
.err-detail { font-size: 12px; opacity: .7; margin-top: 6px; word-break: break-word; }
/* v74: ukazatel připojení a odloženého odeslání */
.netbar { position: fixed; left: 0; right: 0; top: 0; z-index: 400; display: flex; align-items: center; justify-content: center; gap: 8px; padding: calc(var(--safe-top) + 6px) 14px 6px; font-size: 13px; line-height: 1.25; font-weight: 600; color: var(--ink); background: var(--surface); white-space: nowrap; overflow: hidden; }
.netbar > span { overflow: hidden; text-overflow: ellipsis; }
body.has-netbar { padding-top: 30px; }
body.has-netbar .sh-side, body.has-netbar .sh-top { top: 30px; }
.netbar.off { background: #8a5a00; }
.netbar.fail { background: #8c1d2a; cursor: pointer; }
.netbar.ok { background: #0f6b47; }
.netbar svg { flex: none; }
body.is-offline .needs-net { opacity: .4; pointer-events: none; }
.ph-chip.pend { background: var(--orange-soft); color: var(--orange-ink); }
.pend-row { opacity: .9; }
.pend-box:empty { display: none; }
.saved-later { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 10px; padding: 24px 18px; }
.saved-later > svg, .saved-later > span:first-child { color: var(--orange-ink); }
.saved-later .btn { width: 100%; }
/* v75: lišta „Je dostupná nová verze“ */
.updbar { position: fixed; left: 50%; transform: translateX(-50%); bottom: calc(var(--safe-bottom) + 96px); z-index: 390; display: flex; align-items: center; gap: 10px; width: max-content; max-width: calc(100% - 24px); padding: 8px 8px 8px 14px; border-radius: 16px; background: var(--surface); border: 1px solid rgba(0,150,165,0.45); color: var(--ink); font-size: 14px; font-weight: 600; box-shadow: 0 10px 30px rgba(16,24,40,0.12); }
.updbar > svg { color: var(--accent-ink); flex: none; }
.updbar .btn.small { width: auto; flex: none; min-height: 36px; }
.updbar-x { background: none; border: 0; color: var(--muted); width: 32px; height: 32px; display: flex; align-items: center; justify-content: center; cursor: pointer; flex: none; }
@media (min-width: 1100px) { .updbar { bottom: 24px; } }
.pw-show.link { font-size: 13px; word-break: break-all; font-family: 'IBM Plex Mono', monospace; }
/* v78: jednotné hlavičky – na počítači název obrazovky v horní liště, vlastní hlavička stránky skrytá */
body.has-shell .page.uni-head > .topbar { display: none; }
body.has-shell .uni-actions { display: flex; justify-content: flex-end; }
body.has-shell .uni-actions .btn { width: auto; }
/* kalendář na počítači: tmavé pole hledání (dřív bílé) */
@media (min-width: 700px) { .cx-bar .cx-search { background: var(--surface); color: var(--ink); border: 1px solid rgba(16,24,40,0.108); border-radius: 99px; } .cx-bar .cx-search::placeholder { color: var(--muted); } }
/* v78 telefon – karta Projekt: hledání přes celou šířku, pod ním Přidat + Smazané; v řádku jen ⋯ (Smazat je v nabídce) */
@media (max-width: 699px) {
  .toolbar.ph-ftools { flex-wrap: wrap; gap: 10px; }
  .toolbar.ph-ftools .search { flex: 1 1 100%; min-width: 0; }
  .ph-factions { display: flex; gap: 8px; width: 100%; }
  .ph-factions .btn { width: auto; flex: 0 0 auto; }
  .rowwrap .rowact-del { display: none; }
  .sheet-back { align-items: flex-end; padding: 0; }
  .modal.sheet { border-radius: 22px 22px 0 0; padding-bottom: calc(var(--safe-bottom) + 20px); }
}
/* v79: vlastní potvrzovací / vstupní okno (místo systémového confirm / prompt) */
.ask-back { align-items: center; z-index: 500; }
.modal.ask { max-width: 400px; border-radius: 20px; padding: 20px; gap: 0; }
.ask-form { display: flex; flex-direction: column; gap: 12px; }
.ask-q { font-size: 17px; line-height: 1.35; color: var(--ink); word-break: break-word; }
.ask-note { margin: 0; font-size: 14px; line-height: 1.4; white-space: pre-line; }
.ask-btns { display: flex; gap: 10px; margin-top: 6px; }
.ask-btns .btn { flex: 1; width: auto; min-height: 46px; border-radius: 99px; }
.btn.danger-solid { background: #E5484D !important; color: #fff !important; border-color: #E5484D !important; }
@media (max-width: 699px) { .ask-back { align-items: flex-end; padding: 0 0 calc(var(--safe-bottom) + 12px); } .modal.ask { margin: 0 12px; } }
/* v79: filtry (záložky) na telefonu v jednom řádku, posouvají se do strany */
@media (max-width: 699px) {
  .tabs { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
  .tabs::-webkit-scrollbar { display: none; }
  .tabs .tab { flex: none; white-space: nowrap; }
}
/* v79: větší plochy pro prst na telefonu (min. 44 px) */
@media (max-width: 699px) {
  .tab, .sortbar .tab, .cx-bar button, .seg button { min-height: 44px !important; }
  .btn.small { min-height: 44px !important; }
  .sched-zoom .btn, .sched-zoom button { min-width: 44px; min-height: 44px; }
  #pp-all { display: inline-flex; align-items: center; min-height: 44px; padding: 0 4px; }
  .uw-add { min-height: 44px; padding: 0 12px; }
  .markers .marker { position: absolute; }
  .markers .marker::after { content: ''; position: absolute; inset: -8px; border-radius: 50%; }   /* v104: jen značky ve výkresu – kolečka v seznamu úkolů jinak překryla celou stránku */   /* značka ve výkresu: větší neviditelná plocha pro klepnutí */
  a.brand { padding: 12px 0; margin: -12px 0; }
}

/* ======== v87: světlý motiv LERAM – karty, tlačítka, pole, navigace ======== */
body { background: var(--bg); }
h1.title { font-weight: 600; letter-spacing: -0.02em; color: var(--ink); }
.kicker, .label, .sh-sec, .cx-side-t { color: var(--muted); }

/* karty: bílé s jemným okrajem místo průhledných ploch */
.card, .db-stat, .db-week, .db-notif, .pw-card, .pw-tile, .db-row, .pw-tr, .mw-tr, .uw-row, .uw-side, .tw-item, .tw-offer,
.fw-row, .fw-prev, .doc-row, .notif, .ph-mrow, .ph-card, .pp-task, .pp-short, .pp-empty, .cx-panel, .cx-line, .cal-ev, .qa-item,
.home-chip, .tile:not(.photo):not(.blue):not(.cyan), .cart-item, .tp-offer, .tkp-desc, .ver-row, .op-row, .sched-more, .gantt, .install-steps,
.acc-section, .tender-row, .offer:not(.won), .histrow, .cart-form, .progress, .place, .cx-results, .sh-user, .tooltile:not(.t-green):not(.t-orange):not(.t-red),
body.ph-route .row, body.ph-route .rowwrap, body.ph-route .card, body.ph-route .tooltile, body.ph-route .uw-row {
  box-shadow: 0 0 0 1px var(--line), var(--shadow);
}
body.ph-route .rowwrap .row, body.ph-route .cart-item .row, body.ph-route .cart-item .rowwrap { box-shadow: none; }
.db-row:hover, .pw-tr:hover, .mw-tr:hover, .uw-row:hover, .fw-row:hover, .doc-row:hover, .tw-item:hover, .pw-tile:hover { background: var(--surface); box-shadow: 0 0 0 1px var(--surface-3), 0 4px 12px rgba(16,24,40,.08); filter: none; }
.pw-tile.blue, .tile.blue { background: var(--brand); color: #fff; box-shadow: none; }
.pw-tile.blue .pw-l, .pw-tile.blue *, .tile.blue * { color: #fff; }
.tile.blue .t-kicker, .tile.blue .t-line { color: rgba(255,255,255,.8); }
.pw-tile svg, .pp-short > svg, .ph-mic, .qa-i { color: var(--brand); }
.pw-tile.blue svg { color: var(--accent); }
.qa-i { background: var(--accent-soft); color: var(--accent-ink); }

/* tlačítka: hlavní akce petrolejová LERAM, tyrkysová jen pro zvýraznění (vybraný filtr, dnešek) */
.btn, .sh-add, .tkw-btn, .pw-btn.pri, .tkp-pill, .vs-open, .cx-fab, .tp-addbtn,
body.ph-route .btn, body.ph-bar .ph-submit > button, body.ph-bar .tkp-bar .action, body.ph-bar .tkp-bar .action.fixed {
  background: var(--brand); color: #fff; border-color: transparent;
}
.btn:hover, .sh-add:hover, .tkw-btn:hover { filter: brightness(1.12); }
.btn.secondary, body.ph-route .btn.secondary, .tkw-btn.ghost, .vs-new, .cx-nav .btn, .tw-pick {
  background: var(--surface); color: var(--ink); box-shadow: inset 0 0 0 1px var(--surface-3); border: 0;
}
.btn.danger, body.ph-route .btn.danger, .ph-logout { background: var(--surface); color: var(--red-ink); box-shadow: inset 0 0 0 1px #F3C4BF; border: 0; }
body.ph-bar .tkp-bar .action.checked, .tkw-btn.ok { background: var(--green); color: #fff; }
body.ph-bar .tkp-bar .action.returned { background: var(--surface); color: var(--ink); border: 0; box-shadow: inset 0 0 0 1px var(--surface-3); }
.tp-addbtn { background: transparent; color: var(--brand); border: 1px dashed var(--surface-3); }
.btn { border-radius: 10px; }
body.ph-route .btn, .tkw-btn, .sh-add { border-radius: 99px; }
.tab.on, .mw-seg a.on, .cx-seg button.on, .sc-seg button.on, .pp-seg button.on, body.ph-route .tab.on {
  background: var(--accent); color: var(--on-accent); font-weight: 600; box-shadow: none;
}
.tab, body.ph-route .tab, .mw-seg, .cx-seg, .sc-seg { background: var(--surface-2); color: var(--ink-2); }
.cx-seg button, .sc-seg button, .mw-seg a { color: var(--ink-2); }

/* pole formulářů */
.input, .textarea, .dropdown, select.input, body.ph-route .input, body.ph-route .textarea, body.ph-route .dropdown, .mw-sel, .cx-bar .cx-search {
  background: var(--surface); color: var(--ink); border: 1px solid var(--surface-3); border-radius: 10px; box-shadow: none;
}
body.ph-route .input, body.ph-route .textarea, body.ph-route .dropdown { border-radius: 14px; }
.input:focus, .textarea:focus, .dropdown:focus, .mw-sel:focus { border-color: var(--brand); outline: 0; box-shadow: 0 0 0 3px rgba(0,64,114,.12); }
.input::placeholder, .textarea::placeholder { color: #98A4B3; }
.search, body.ph-route .toolbar .search, .sh-sw { background: var(--surface); color: var(--muted); box-shadow: inset 0 0 0 1px var(--surface-3); }
.trade { color: var(--ink); border-bottom-color: var(--line); }
.trade.on { background: var(--accent-soft); }
.check { border-color: var(--brand); }
.trade.on .check { background: var(--brand); }

/* počítač: bílé postranní menu, průsvitná horní lišta */
@media (min-width: 1100px) {
  .sh-side { background: var(--surface); border-right: 1px solid var(--line); }
  .sh-logo { padding: 4px 12px 22px; display: flex; flex-direction: column; gap: 6px; }
  .sh-logo-img { display: block; width: 150px; height: auto; }
  .sh-logo-t { font-family: var(--mono); font-size: 11px; letter-spacing: .22em; text-transform: uppercase; color: var(--muted); margin: 0; font-weight: 500; }
  .sh-item, .sh-proj { color: var(--ink-2); }
  .sh-item:hover, .sh-proj:hover { background: var(--surface-2); }
  .sh-item.on, .sh-proj.on { background: var(--accent-soft); color: var(--ink); font-weight: 600; position: relative; }
  .sh-item.on::before { content: ''; position: absolute; left: 0; top: 10px; bottom: 10px; width: 3px; border-radius: 0 3px 3px 0; background: var(--accent); }
  .sh-item.on .sh-ico { color: var(--accent-ink); }
  .sh-user { background: var(--surface-2); box-shadow: none; }
  .sh-top { background: rgba(241,243,242,.86); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); border-bottom: 1px solid var(--line); }
  .sh-title { font-weight: 600; letter-spacing: -0.02em; }
  .sh-bell { background: var(--surface); border-color: var(--surface-3); color: var(--ink); }
  .sh-results, .tb-more { background: var(--surface); box-shadow: 0 0 0 1px var(--line), 0 12px 32px rgba(16,24,40,.14); }
  .db-stat .v { font-weight: 600; letter-spacing: -0.02em; }
}

/* telefon: světlá hlavička a spodní lišta */
.brand { gap: 10px; }
.brand img { display: block; }
.brand-sub { font-family: var(--mono); font-size: 10px; letter-spacing: .22em; text-transform: uppercase; color: var(--muted); border-left: 1px solid var(--line); padding-left: 10px; }
@media (max-width: 699px) {
  .tabbar { background: rgba(255,255,255,.9); border-top: 1px solid var(--line); }
  .tb-item { color: var(--muted); }
  .tb-item.on { color: var(--brand); }
  .tb-item.on::before { background: var(--accent); box-shadow: none; }
  .tb-plus-btn { color: var(--muted); }
  .tb-more { background: var(--surface); }
  .tb-more-i { color: var(--ink); }
  body.ph-route .page > .topbar > .back { color: var(--ink); }
  .cx-panel { background: var(--surface); }
  body.ph-bar .ph-submit { background: rgba(255,255,255,.94); border-top: 1px solid var(--line); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); }
  .ph-avatar { background: var(--brand); color: #fff; }
  .viewer-page .vtiles.open > .vtile:not(a):not(.cyan):not(.active) { background: var(--surface); box-shadow: 0 0 0 1px var(--line); }
  .viewer-page .vmenu-btn { color: var(--ink); border-color: var(--surface-3); }
}
.avatar, .sh-av, .uw-av.big { background: var(--brand); color: #fff; }
.uw-av, .tw-av, .tp-av, body.ph-route .uw-av, body.ph-route .tp-av { background: var(--surface-2); color: var(--ink-2); }
.back { border-color: var(--surface-3); color: var(--ink); }
.modal { background: var(--surface); border: 0; border-radius: 18px; box-shadow: 0 24px 48px rgba(16,24,40,.18); }
.qa { background: var(--surface); }
#toast { background: var(--ink); color: #fff; border-radius: 12px; }
.ficon.folder, body.ph-route .ficon.folder { background: var(--accent-soft); color: var(--accent-ink); border-radius: 10px; }
.ficon.file, body.ph-route .ficon.file { background: var(--surface-2); color: var(--ink-2); border-radius: 10px; }
.chip { background: var(--surface-2); color: var(--ink-2); }
.bar, .pw-track, .mw-bar { background: var(--surface-2); }
.g-bar { color: #fff; }
.cx-cell.today .cx-num, .db-wd .num.today, .cx-ym-d.today { background: var(--accent); color: var(--on-accent); }
.cx-cell.sel:not(.today) .cx-num { box-shadow: inset 0 0 0 1.5px var(--ink); }
.vbanner { background: var(--accent-soft); color: var(--ink); }
.vcontrols button { background: var(--surface); color: var(--ink); box-shadow: 0 0 0 1px var(--line), var(--shadow); }
.vlegend { background: rgba(255,255,255,.94); box-shadow: 0 0 0 1px var(--line); }
.updbar { background: var(--surface); color: var(--ink); box-shadow: 0 0 0 1px var(--line), 0 10px 30px rgba(16,24,40,.14); border: 0; }
.ph-credit, .lg-credit { color: var(--muted); }
.pw-banner, .pw-banner h1 { color: #fff; }
.tab { border-radius: 99px; }
.tile { background: var(--surface); color: var(--ink); }
.tile .t-kicker, .tile .t-line { color: var(--muted); }
.tile.photo, .tile.photo * { color: #fff; }
body.ph-route .tkp-pill { background: var(--brand); color: #fff; }
.tag-blocked { background: var(--red-soft); color: var(--red-ink); border-radius: 6px; }
/* stavba bez titulní fotky: tlumený přechod v barvě LERAM místo prázdné bílé karty */
.tile.wide:not(.photo):not(.navy2) { background: linear-gradient(135deg, #0B5A92, #003056); color: #fff; box-shadow: none; }
.tile.wide:not(.photo):not(.navy2) * { color: #fff; }
/* přihlášení otiskem / obličejem */
.lg-pkwrap { display: flex; flex-direction: column; gap: 14px; }
.lg-pkwrap:empty { display: none; }
.lg-or { display: flex; align-items: center; gap: 12px; color: #7F8CC4; font-size: 12px; }
.lg-or::before, .lg-or::after { content: ''; flex: 1; height: 1px; background: rgba(255,255,255,.16); }
.lg-pk { display: flex; align-items: center; justify-content: center; gap: 10px; height: 48px; border-radius: 99px; border: 1px solid rgba(255,255,255,.28); background: rgba(255,255,255,.06); color: #fff; font: inherit; font-size: 15px; cursor: pointer; }
.lg-pk:hover { background: rgba(255,255,255,.12); }
.lg-pk svg { color: #6FD8EA; }
/* Můj účet: kalendář a přihlášení otiskem */
.acc-box { display: flex; flex-direction: column; gap: 10px; max-width: 560px; }
.acc-btns { display: flex; flex-wrap: wrap; gap: 8px; }
.acc-btns .btn { width: auto; }
.acc-link { font-family: var(--mono); font-size: 12px; color: var(--ink-2); background: var(--surface-2); border-radius: 8px; padding: 8px 10px; word-break: break-all; user-select: all; }
.pk-row { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 12px; background: var(--surface); box-shadow: 0 0 0 1px var(--line); }
.pk-row .rtext { flex: 1; min-width: 0; }

/* ======== v90: tlačítka odhlášení / vzhledu, kalendář do telefonu ======== */
.sh-userrow { display: flex; align-items: center; gap: 6px; }
.sh-userrow .sh-user { flex: 1; min-width: 0; }
.sh-iconbtn, .ph-iconbtn { width: 40px; height: 40px; flex: none; border-radius: 50%; border: 0; background: var(--surface-2); color: var(--ink-2); display: inline-flex; align-items: center; justify-content: center; cursor: pointer; }
.sh-iconbtn:hover, .ph-iconbtn:hover { background: var(--surface-3); color: var(--ink); }
.sh-iconbtn.power:hover, .ph-iconbtn.power:hover { background: var(--red-soft); color: var(--red-ink); }
.ph-pbtns { display: flex; gap: 8px; margin-left: auto; align-self: flex-start; }
.ph-profile { align-items: flex-start; }
.cx-phonebtn { display: none; }
@media (max-width: 699px) {
  .cx-phonebtn { display: flex; position: absolute; right: 148px; top: 6px; }
  .cx-page > .topbar { padding-right: 200px; }
  .cal-phone { display: none; }
}
.theme-seg { max-width: 420px; }

/* ======== v90: tmavý vzhled (stejné tokeny, tmavé hodnoty) ======== */
:root[data-theme="dark"] {
  --bg: #0D1724; --surface: #152234; --surface-2: #1D2D44; --surface-3: #283B57;
  --ink: #E7EEF6; --ink-2: #B9C6D6; --muted: #8B9BB0; --line: #22334B;
  --brand: #1E78C2; --accent: #00BED1; --accent-ink: #4FD3E2; --accent-soft: rgba(0,190,209,.16); --on-accent: #04202F;
  --red-soft: rgba(217,45,32,.2); --red-ink: #FF9B92; --orange-soft: rgba(232,120,12,.2); --orange-ink: #FFB672;
  --green-soft: rgba(22,163,74,.22); --green-ink: #6EE29A; --violet-soft: rgba(124,99,224,.24); --violet-ink: #C2B4FF;
  --shadow: 0 1px 2px rgba(0,0,0,.35);
  color-scheme: dark;
}
:root[data-theme="dark"] .sh-top { background: rgba(13,23,36,.86); }
:root[data-theme="dark"] .tabbar, :root[data-theme="dark"] body.ph-bar .ph-submit { background: rgba(21,34,52,.92); }
:root[data-theme="dark"] .vlegend, :root[data-theme="dark"] .updbar { background: var(--surface); }
:root[data-theme="dark"] .btn.danger, :root[data-theme="dark"] .ph-logout { box-shadow: inset 0 0 0 1px rgba(255,155,146,.4); }
:root[data-theme="dark"] .input::placeholder, :root[data-theme="dark"] .textarea::placeholder { color: #6E7F95; }
:root[data-theme="dark"] .input:focus, :root[data-theme="dark"] .textarea:focus { box-shadow: 0 0 0 3px rgba(30,120,194,.3); }
:root[data-theme="dark"] .sh-logo-img, :root[data-theme="dark"] .brand img { content: url(img/brand/leram-building-logo-white.svg); }
:root[data-theme="dark"] .trade-grid, :root[data-theme="dark"] .trade, :root[data-theme="dark"] .pw-show { background: var(--surface); color: var(--ink); }
:root[data-theme="dark"] .trade.on { background: var(--accent-soft); }
:root[data-theme="dark"] .modal-back { background: rgba(0,0,0,.6); }
:root[data-theme="dark"] .modal { box-shadow: 0 0 0 1px var(--line), 0 24px 48px rgba(0,0,0,.5); }
:root[data-theme="dark"] #toast { background: var(--surface-3); }
/* uživatelé: rychlé tlačítko „poslat odkaz pro nové heslo“ */
.uw-rowwrap { display: flex; align-items: center; gap: 8px; }
.uw-rowwrap > .uw-row { flex: 1; min-width: 0; }
.uw-quick { width: 44px; height: 44px; flex: none; border-radius: 50%; border: 0; background: var(--surface); color: var(--ink-2); box-shadow: 0 0 0 1px var(--line), var(--shadow); display: inline-flex; align-items: center; justify-content: center; cursor: pointer; }
.uw-quick:hover { color: var(--brand); box-shadow: 0 0 0 1px var(--brand); }
.uw-quick:disabled { opacity: .5; }
.theme-seg { flex: none; }
@media (max-width: 699px) { .cx-page > .topbar .cx-phonebtn { right: 148px; } }

/* ======== v91: chat s podporou NextSupport (okénko N) ======== */
.sp-fab { position: fixed; z-index: 35; right: 20px; bottom: calc(20px + var(--safe-bottom)); width: 54px; height: 54px; border-radius: 50%; border: 0; background: var(--surface); box-shadow: 0 0 0 1px var(--line), 0 8px 24px rgba(16,24,40,.18); display: flex; align-items: center; justify-content: center; cursor: pointer; }
.sp-fab:hover, .sp-fab.on { box-shadow: 0 0 0 2px var(--accent), 0 8px 24px rgba(16,24,40,.18); }
.sp-badge { position: absolute; top: -3px; right: -3px; min-width: 20px; height: 20px; padding: 0 5px; border-radius: 10px; background: var(--red); color: #fff; font-size: 11px; font-weight: 700; line-height: 20px; text-align: center; }
.sp-panel { position: fixed; z-index: 36; right: 20px; bottom: calc(86px + var(--safe-bottom)); width: 380px; max-width: calc(100vw - 24px); height: min(560px, calc(100dvh - 130px)); display: flex; flex-direction: column; background: var(--surface); border-radius: 18px; box-shadow: 0 0 0 1px var(--line), 0 24px 48px rgba(16,24,40,.22); overflow: hidden; }
.sp-panel[hidden] { display: none; }
.sp-head { display: flex; align-items: center; gap: 10px; padding: 12px 12px 12px 16px; border-bottom: 1px solid var(--line); }
.sp-ht { flex: 1; display: flex; flex-direction: column; min-width: 0; }
.sp-ht b { font-size: 15px; } .sp-ht small { font-size: 12px; color: var(--muted); }
.sp-close { width: 36px; height: 36px; border: 0; border-radius: 50%; background: transparent; color: var(--muted); font-size: 24px; cursor: pointer; }
.sp-list { flex: 1; overflow-y: auto; padding: 14px; display: flex; flex-direction: column; gap: 10px; background: var(--bg); }
.sp-intro { font-size: 13px; color: var(--muted); text-align: center; padding: 6px 10px 10px; }
.sp-msg { max-width: 82%; display: flex; flex-direction: column; gap: 4px; }
.sp-msg.me { align-self: flex-end; align-items: flex-end; }
.sp-msg.them { align-self: flex-start; }
.sp-body { padding: 9px 12px; border-radius: 16px; font-size: 14.5px; line-height: 1.4; white-space: pre-line; overflow-wrap: anywhere; }
.sp-msg.me .sp-body { background: var(--brand); color: #fff; border-bottom-right-radius: 5px; }
.sp-msg.them .sp-body { background: var(--surface); color: var(--ink); box-shadow: 0 0 0 1px var(--line); border-bottom-left-radius: 5px; }
.sp-body:empty { display: none; }
.sp-img { max-width: 220px; max-height: 220px; border-radius: 12px; display: block; object-fit: cover; }
.sp-time { font-size: 11px; color: var(--muted); }
.sp-preview { display: flex; align-items: center; gap: 8px; padding: 0 12px; }
.sp-preview:empty { display: none; }
.sp-preview img { height: 60px; border-radius: 8px; margin-top: 8px; }
.sp-x { border: 0; background: var(--surface-2); color: var(--ink); width: 28px; height: 28px; border-radius: 50%; cursor: pointer; }
.sp-compose { display: flex; align-items: flex-end; gap: 8px; padding: 10px 10px calc(10px + var(--safe-bottom) * 0); border-top: 1px solid var(--line); }
.sp-input { flex: 1; min-width: 0; resize: none; border: 1px solid var(--surface-3); border-radius: 14px; background: var(--surface); color: var(--ink); font: inherit; font-size: 15px; padding: 9px 12px; max-height: 120px; }
.sp-input:focus { outline: 0; border-color: var(--brand); }
.sp-attach, .sp-send { width: 42px; height: 42px; flex: none; border-radius: 50%; border: 0; display: flex; align-items: center; justify-content: center; cursor: pointer; }
.sp-attach { background: var(--surface-2); color: var(--ink-2); }
.sp-send { background: var(--brand); color: #fff; }
.sp-send:disabled { opacity: .5; }
@media (max-width: 699px) {
  .sp-fab { right: 14px; bottom: calc(86px + var(--safe-bottom)); width: 48px; height: 48px; }
  body.ph-bar .sp-fab, body.ph-notab .sp-fab { display: none; }
  .sp-panel { right: 0; left: 0; bottom: 0; top: 0; width: auto; max-width: none; height: auto; border-radius: 0; padding-top: var(--safe-top); z-index: 60; }
  .sp-compose { padding-bottom: calc(10px + var(--safe-bottom)); }
}
@media (min-width: 700px) { body.ph-notab .sp-fab { bottom: 90px; } }
/* rychlý reset hesla */
.qr-body { display: flex; flex-direction: column; gap: 10px; margin-top: 12px; }
.qr-opt { display: flex; align-items: flex-start; gap: 12px; padding: 14px; border-radius: 14px; border: 0; background: var(--surface-2); color: var(--ink); text-align: left; font: inherit; cursor: pointer; }
.qr-opt:hover { background: var(--accent-soft); }
.qr-opt svg { color: var(--brand); flex: none; margin-top: 2px; }
.qr-opt span { display: flex; flex-direction: column; gap: 3px; }
.qr-opt small { font-size: 13px; color: var(--muted); line-height: 1.4; }
.pw-show { border-radius: 10px; text-align: center; }
/* historie změn */
.hi-filters { display: flex; flex-wrap: wrap; gap: 8px; }
.hi-sel { width: auto; min-width: 150px; flex: 1 1 160px; height: 42px; }
.hi-list { display: flex; flex-direction: column; gap: 6px; }
.hi-day { margin: 14px 0 2px; font-size: 13px; font-weight: 600; color: var(--muted); text-transform: capitalize; }
.hi-row { display: flex; gap: 14px; padding: 10px 14px; border-radius: 12px; background: var(--surface); box-shadow: 0 0 0 1px var(--line); }
.hi-row.warn { box-shadow: 0 0 0 1px #F3C4BF; background: var(--red-soft); }
.hi-time { flex: 0 0 44px; font-family: var(--mono); font-size: 13px; color: var(--muted); padding-top: 1px; }
.hi-main { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 4px; font-size: 14.5px; line-height: 1.4; }
.hi-ent { font-size: 12px; padding: 1px 8px; border-radius: 99px; background: var(--surface-2); color: var(--ink-2); white-space: nowrap; }
.hi-label { font-weight: 500; overflow-wrap: anywhere; }
.hi-diff { display: flex; flex-direction: column; gap: 2px; font-size: 13px; color: var(--ink-2); }
.hi-diff i { font-style: normal; color: var(--muted); }
.hi-meta { font-size: 12px; color: var(--muted); }
.hi-meta:empty { display: none; }
@media (max-width: 699px) { .hi-sel { flex-basis: 100%; } .hi-row { gap: 10px; padding: 10px 12px; } }
/* náhled pohledem uživatele */
.imp-bar { position: fixed; z-index: 450; left: 0; right: 0; top: 0; display: flex; align-items: center; justify-content: center; gap: 14px; padding: calc(var(--safe-top) + 7px) 14px 7px; background: #B54708; color: #fff; font-size: 14px; font-weight: 600; }
.imp-bar button { border: 0; border-radius: 99px; background: #fff; color: #7A2E05; font: inherit; font-size: 13px; padding: 5px 14px; cursor: pointer; }
body.has-impbar { padding-top: 40px; }
body.has-impbar .sh-side, body.has-impbar .sh-top { top: 40px; }

/* ======== v93: zprávy (chat mezi uživateli) ======== */
.chat-ico { position: relative; }
.chat-n { position: absolute; top: -4px; right: -4px; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 9px; background: var(--accent); color: var(--on-accent); font-size: 11px; font-weight: 700; line-height: 18px; text-align: center; }
.sh-item .chat-n { position: static; margin-left: auto; }
.ch-wrap { display: grid; grid-template-columns: 340px minmax(0, 1fr); gap: 16px; height: calc(100dvh - 140px); min-height: 420px; }
.ch-list { display: flex; flex-direction: column; gap: 6px; overflow-y: auto; padding: 2px; }
.ch-new { align-self: flex-start; margin-bottom: 6px; border-radius: 99px; }
.ch-conv { display: flex; gap: 12px; align-items: center; padding: 10px 12px; border-radius: 14px; background: var(--surface); box-shadow: 0 0 0 1px var(--line); text-decoration: none; color: var(--ink); }
.ch-conv:hover { box-shadow: 0 0 0 1px var(--surface-3), var(--shadow); }
.ch-conv.on { box-shadow: 0 0 0 2px var(--accent); }
.ch-av { width: 40px; height: 40px; flex: none; border-radius: 50%; background: var(--surface-2); color: var(--ink-2); display: flex; align-items: center; justify-content: center; font-weight: 600; font-size: 14px; }
.ch-av.proj { background: var(--accent-soft); color: var(--accent-ink); border-radius: 12px; }
.ch-ct { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.ch-row1, .ch-row2 { display: flex; align-items: center; gap: 8px; min-width: 0; }
.ch-row1 b { flex: 1; min-width: 0; font-weight: 500; font-size: 15px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ch-row1 small { font-size: 12px; color: var(--muted); flex: none; }
.ch-row2 span { flex: 1; min-width: 0; font-size: 13px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ch-conv.unread .ch-row1 b { font-weight: 700; } .ch-conv.unread .ch-row2 span { color: var(--ink-2); }
.ch-unread { font-style: normal; min-width: 20px; height: 20px; padding: 0 6px; border-radius: 10px; background: var(--accent); color: var(--on-accent); font-size: 11px; font-weight: 700; line-height: 20px; text-align: center; flex: none; }
.ch-thread { display: flex; flex-direction: column; min-height: 0; background: var(--surface); border-radius: 18px; box-shadow: 0 0 0 1px var(--line); overflow: hidden; }
.ch-empty { margin: auto; }
.ch-head { display: flex; align-items: center; gap: 12px; padding: 12px 16px; border-bottom: 1px solid var(--line); }
.ch-ht { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.ch-ht b { font-size: 16px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; } .ch-ht small { font-size: 12px; color: var(--muted); }
.ch-msgs { flex: 1; overflow-y: auto; padding: 14px 16px; display: flex; flex-direction: column; gap: 6px; background: var(--bg); }
.ch-older { align-self: center; margin-bottom: 8px; }
.ch-day { align-self: center; font-size: 12px; color: var(--muted); padding: 8px 0 4px; text-transform: capitalize; }
.ch-msg { max-width: 76%; display: flex; flex-direction: column; gap: 3px; }
.ch-msg.me { align-self: flex-end; align-items: flex-end; }
.ch-msg.them { align-self: flex-start; }
.ch-from { font-size: 12px; color: var(--accent-ink); font-weight: 600; padding: 0 4px; }
.ch-body { padding: 8px 12px; border-radius: 16px; font-size: 15px; line-height: 1.4; white-space: pre-line; overflow-wrap: anywhere; }
.ch-msg.me .ch-body { background: var(--brand); color: #fff; border-bottom-right-radius: 5px; }
.ch-msg.them .ch-body { background: var(--surface); color: var(--ink); box-shadow: 0 0 0 1px var(--line); border-bottom-left-radius: 5px; }
.ch-img { max-width: 260px; max-height: 260px; border-radius: 14px; display: block; object-fit: cover; cursor: zoom-in; background: var(--surface-2); min-width: 80px; min-height: 80px; }
.ch-time { font-size: 11px; color: var(--muted); padding: 0 4px; }
.ch-seen { align-self: flex-end; font-size: 11px; color: var(--muted); margin-top: -2px; }
.ch-seen:empty { display: none; }
.ch-compose { background: var(--surface); }
.ch-pick { gap: 10px; max-height: 80vh; }
.ch-people { display: flex; flex-direction: column; gap: 4px; overflow-y: auto; max-height: 55vh; }
.ch-person { display: flex; align-items: center; gap: 12px; padding: 8px 10px; border-radius: 12px; border: 0; background: transparent; color: var(--ink); text-align: left; font: inherit; cursor: pointer; }
.ch-person:hover { background: var(--surface-2); }
.ch-pt { display: flex; flex-direction: column; min-width: 0; } .ch-pt small { font-size: 12px; color: var(--muted); }
@media (max-width: 899px) {
  .ch-mobile { position: fixed; inset: 0; z-index: 40; display: flex; flex-direction: column; background: var(--surface); padding-top: var(--safe-top); }
  .ch-mobile .ch-thread { flex: 1; border-radius: 0; box-shadow: none; }
  .ch-mobile .ch-compose { padding-bottom: calc(10px + var(--safe-bottom)); }
  body.ch-open .tabbar, body.ch-open .sp-fab { display: none; }
  .ch-back { border: 0; margin-left: -8px; }
  .ch-msg { max-width: 84%; }
}
@media (min-width: 900px) and (max-width: 1099px) { .ch-wrap { height: calc(100dvh - 180px); } }
/* v94: podpora NextSupport na počítači v levém menu, ne přes obsah */
.sh-support { border: 0; background: transparent; width: 100%; font: inherit; text-align: left; cursor: pointer; margin-bottom: 6px; }
.sh-support .sh-ico img { display: block; }
.sp-badge-inline { position: static; margin-left: auto; }
@media (min-width: 1100px) {
  body.has-shell .sp-fab { display: none; }
  body.has-shell .sp-panel { left: 276px; right: auto; bottom: 20px; }
}
@media (min-width: 700px) and (max-width: 1099px) {
  .sp-fab { right: auto; left: 20px; }
  .sp-panel { right: auto; left: 20px; }
}
/* v95: „Informační systém“ pod logem na telefonu (vedle by odsunul ikony na další řádek) */
@media (max-width: 699px) {
  .brand { flex-direction: column; align-items: flex-start; gap: 3px; }
  .brand-sub { border-left: 0; padding-left: 1px; font-size: 8.5px; letter-spacing: .2em; }
  header.topbar { flex-wrap: nowrap; }
}
@media (max-width: 699px) { .topbar .user a.back.chat-ico { display: flex; } }
@media (max-width: 699px) { .brand { flex: none; } .brand-sub { white-space: nowrap; } }

/* ======== v96: telefon – iPhone při klepnutí do pole s písmem < 16 px stránku přiblíží (useknuté okraje) ======== */
@media (max-width: 1099px) {
  input:not([type=checkbox]):not([type=radio]):not([type=range]), textarea, select { font-size: 16px !important; }
}
/* konverzace na telefonu: výška podle skutečně viditelné plochy (lišty prohlížeče), zpět vždy na dosah */
@media (max-width: 899px) {
  .ch-mobile { top: 0; bottom: auto; height: 100vh; height: 100dvh; }
  .ch-head { padding: 10px 12px; gap: 10px; }
  .ch-back { margin-left: 0; width: 44px; height: 44px; flex: 0 0 44px; display: flex; align-items: center; justify-content: center; background: var(--surface-2); border-radius: 50%; color: var(--ink); }
  .ch-compose { padding-left: 10px; padding-right: 10px; }
  .sp-panel { height: 100vh; height: 100dvh; bottom: auto; }
}
@media (max-width: 699px) {
  /* uživatelé: s rychlými tlačítky se štítek nevejde – jméno má přednost */
  .uw-rowwrap .uw-row .pw-trade { display: none; }
  .uw-rowwrap { gap: 6px; }
  .uw-quick { width: 40px; height: 40px; }
  /* místo na konci stránky, ať tlačítko N nezakryje poslední položku */
  body.has-tabbar #app { padding-bottom: calc(150px + var(--safe-bottom)); }
}
/* v97: seznam zpráv se smí zmenšit pod výšku obsahu (jinak vysoká fotka vytlačí pole pro psaní mimo obrazovku) */
.ch-msgs, .ch-mobile .ch-thread, .sp-list { min-height: 0; }
.ch-head, .ch-compose, .sp-preview { flex: none; }

/* ======== v98: nápověda ======== */
.hp-page { max-width: 820px; }
.hp-intro p { margin: 0 0 10px; color: var(--ink-2); line-height: 1.5; }
.hp-toc { display: flex; flex-direction: column; gap: 4px; padding: 14px 16px; border-radius: 14px; background: var(--surface); box-shadow: 0 0 0 1px var(--line); }
.hp-toc a { color: var(--accent-ink); text-decoration: none; font-size: 15px; padding: 3px 0; }
.hp-content { display: flex; flex-direction: column; gap: 18px; }
.hp-sec { padding: 18px 20px; border-radius: 16px; background: var(--surface); box-shadow: 0 0 0 1px var(--line); line-height: 1.55; font-size: 15.5px; }
.hp-sec h2 { display: flex; align-items: center; gap: 10px; margin: 0 0 10px; font-size: 20px; font-weight: 600; letter-spacing: -0.01em; }
.hp-n { width: 30px; height: 30px; border-radius: 50%; background: var(--accent); color: var(--on-accent); display: inline-flex; align-items: center; justify-content: center; font-size: 15px; flex: none; }
.hp-roles { font-size: 12px; color: var(--muted); margin: -4px 0 8px; }
.hp-sec p { margin: 0 0 10px; } .hp-sec ul, .hp-sec ol { margin: 0 0 12px; padding-left: 22px; } .hp-sec li { margin-bottom: 5px; }
.hp-sec b { display: block; margin: 10px 0 4px; }
.hp-fig { margin: 8px 0 14px; display: inline-block; margin-right: 12px; vertical-align: top; }
.hp-fig img { width: 220px; max-width: 100%; border-radius: 18px; box-shadow: 0 0 0 1px var(--line), 0 8px 24px rgba(16,24,40,.12); display: block; }
.hp-tip { display: flex; gap: 10px; align-items: flex-start; padding: 10px 12px; border-radius: 12px; background: var(--accent-soft); color: var(--ink); margin: 6px 0 10px; }
.hp-tip svg { color: var(--accent-ink); flex: none; margin-top: 2px; }
@media (max-width: 699px) { .hp-sec { padding: 14px 14px; font-size: 15px; } .hp-fig img { width: 100%; max-width: 280px; } .hp-fig { display: block; } }
@media print {
  .sh-side, .sh-top, .tabbar, .sp-fab, .sp-panel, .hp-intro .acc-btns, header.topbar, .page > .topbar .back, #imp-bar, .updbar, .netbar { display: none !important; }
  body, body.has-shell { background: #fff !important; }
  body.has-shell #app { margin: 0 !important; padding: 0 !important; }
  .hp-sec { box-shadow: none; border: 1px solid #ddd; break-inside: avoid-page; }
  .hp-fig img { width: 190px; box-shadow: 0 0 0 1px #ddd; }
  .hp-toc { box-shadow: none; border: 1px solid #ddd; }
}
@media print {
  .hp-page { max-width: none; }
  .hp-sec { break-inside: auto; padding: 12px 14px; font-size: 12.5px; }
  .hp-sec h2 { font-size: 16px; break-after: avoid; }
  .hp-fig { break-inside: avoid; margin: 4px 10px 8px 0; }
  .hp-fig img { width: 150px; border-radius: 12px; }
  .hp-content { gap: 10px; }
  .hp-toc { columns: 2; display: block; font-size: 12px; }
  .hp-toc a { display: block; }
}
/* v99: tisk návodu – kapitola se nikdy nedělí, obrázky vpravo vedle textu, bez rámečků */
@media print {
  @page { size: A4; margin: 14mm 14mm 16mm; }
  .hp-page { padding: 0 !important; gap: 0 !important; }
  .hp-intro p { font-size: 12px; }
  .hp-toc { border: 0; padding: 0 0 6mm; margin-bottom: 4mm; border-bottom: 1.5px solid #00BED1; border-radius: 0; columns: 2; }
  .hp-content { display: block; }
  .hp-sec { display: block; overflow: hidden; break-inside: avoid; page-break-inside: avoid; border: 0; border-bottom: 1px solid #DCE2E7; border-radius: 0; box-shadow: none; padding: 5mm 0; margin: 0; font-size: 11.5px; line-height: 1.45; }
  .hp-sec h2 { font-size: 15px; margin: 0 0 3mm; }
  .hp-n { width: 22px; height: 22px; font-size: 12px; }
  .hp-fig { float: right; clear: none; margin: 0 0 3mm 4mm; display: block; }
  .hp-fig img { width: 38mm; border-radius: 8px; box-shadow: none; border: 1px solid #DCE2E7; }
  .hp-sec ul, .hp-sec ol { padding-left: 16px; }
  .hp-tip { padding: 6px 8px; }
}
.hp-figs { display: none; }
@media print {
  .hp-sec > .hp-fig { display: none; }
  .hp-figs { display: flex; flex-wrap: wrap; gap: 4mm; margin-top: 3mm; }
  .hp-figs .hp-fig { float: none; margin: 0; }
  .hp-figs .hp-fig img { width: 36mm; }
}

/* v108: stavební deník */
.dy { display: flex; flex-direction: column; gap: 14px; }
.dy-noloc { border-radius: 12px; flex-wrap: wrap; }
.dy-noloc span { flex: 1; min-width: 180px; }
.dy-today, .dy-day { display: flex; flex-direction: column; gap: 10px; }
.dy-head { display: flex; align-items: center; gap: 10px; justify-content: space-between; flex-wrap: wrap; }
.dy-head .card-title { margin: 0; font-size: 19px; }
.dy-weather { display: flex; align-items: flex-start; gap: 8px; padding: 9px 12px; border-radius: 10px; background: var(--accent-soft); color: var(--ink); font-size: 14px; line-height: 1.4; }
.dy-weather svg { flex: none; margin-top: 1px; color: var(--accent-ink); }
.dy-f { display: flex; flex-direction: column; gap: 2px; }
.dy-f span { font-size: 12px; color: var(--muted); text-transform: uppercase; letter-spacing: .5px; }
.dy-f p { margin: 0; white-space: pre-wrap; overflow-wrap: anywhere; color: var(--ink); font-size: 15px; line-height: 1.45; }
.dy-ftitle { font-size: 15px; }
.dy-form { gap: 12px; }
.dy-sup { border-left: 3px solid var(--accent); padding: 6px 0 6px 12px; display: flex; flex-direction: column; gap: 8px; }
.dy-sup-h { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; font-size: 13px; color: var(--muted); }
.dy-sup-h b { color: var(--ink); }
.dy-sup-h .btn { margin-left: auto; }
.dy-media { align-items: stretch; }
.dy-add-photo { min-height: 76px; min-width: 96px; }
.dy-empty { text-align: center; padding: 18px 0; }
/* v108: deaktivovaní uživatelé, výběr dodavatele, poloha stavby */
.inactive-sec { opacity: .92; }
.inactive-row { cursor: default; }
.inactive-row .rname { color: var(--ink-2); }
.firm-step { display: flex; flex-direction: column; gap: 6px; margin-top: 10px; }
.ps-geo { display: flex; flex-direction: column; gap: 6px; }
.ps-geo-hit { text-align: left; padding: 9px 12px; border: 1px solid var(--line); border-radius: 10px; background: var(--surface); color: var(--ink); font: inherit; font-size: 14px; cursor: pointer; }
.ps-geo-hit:hover { border-color: var(--accent); }
.uw-rowwrap[data-inactive] { align-items: center; }
.uw-rowwrap[data-inactive] .uw-row { opacity: .75; cursor: default; }
.uw-restore { flex: none; padding: 8px 12px; }
/* v111: smajlíky v chatu (panel nad polem pro psaní) */
.sp-compose { position: relative; }
.sp-emoji { font-size: 22px; line-height: 1; }
.em-panel { position: absolute; left: 8px; right: 8px; bottom: calc(100% + 6px); z-index: 30; background: var(--surface); border: 1px solid var(--line); border-radius: 16px; box-shadow: 0 12px 32px rgba(16,24,40,.18); display: flex; flex-direction: column; max-height: 300px; overflow: hidden; }
.em-tabs { display: flex; gap: 2px; padding: 6px 6px 0; border-bottom: 1px solid var(--line); overflow-x: auto; flex: none; }
.em-tab { flex: 1 0 36px; height: 38px; border: 0; background: none; font-size: 20px; border-bottom: 2.5px solid transparent; cursor: pointer; opacity: .65; }
.em-tab.on { opacity: 1; border-bottom-color: var(--brand); }
.em-cat { font-size: 12px; color: var(--ink-2); padding: 8px 12px 2px; font-weight: 600; }
.em-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(40px, 1fr)); padding: 4px 6px 8px; overflow-y: auto; }
.em { height: 42px; border: 0; background: none; font-size: 26px; border-radius: 10px; cursor: pointer; line-height: 1; }
.em:hover, .em:focus-visible { background: var(--surface-2); }
.em-none { grid-column: 1 / -1; padding: 12px 6px; }

/* v113: dodavatel = blok firmy (šéf + odsazení pracovníci) */
.uw-firm { display: flex; flex-direction: column; gap: 6px; padding: 10px; border-radius: 18px; background: var(--surface-2); }
.uw-firm + .uw-firm { margin-top: 6px; }
.uw-firm-h { display: flex; align-items: center; gap: 8px; padding: 2px 6px 4px; color: var(--ink-2); min-width: 0; }
.uw-firm-h b { font-size: 15px; font-weight: 600; color: var(--ink); white-space: nowrap; }
.uw-firm-h span { font-size: 13px; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.uw-crew { display: flex; flex-direction: column; gap: 6px; margin-left: 22px; padding-left: 14px; border-left: 2px solid var(--line); }
.uw-crew .uw-av { width: 34px; height: 34px; flex-basis: 34px; font-size: 13px; }
body.ph-route .uw-crew .uw-row { min-height: 56px; }
.uw-crew-add { align-self: flex-start; padding: 6px 4px !important; min-height: 36px; font-size: 14px; }
.uw-firmref .note { display: block; margin-top: 4px; }
.uw-firmref .uw-add { padding: 4px 0; min-height: 0; display: block; }
/* v114: pracovník architekta pod architektem (tabletový seznam) */
.person-worker { margin-left: 28px; width: calc(100% - 28px); border-left: 2px solid var(--line); }
