/* Písmo Manrope (OFL, assets/fonts/OFL.txt) z vlastního serveru: nic se nenačítá od Googlu */
@font-face { font-family: Manrope; font-style: normal; font-display: swap; font-weight: 200 800; src: url(fonts/manrope-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: Manrope; font-style: normal; font-display: swap; font-weight: 200 800; src: url(fonts/manrope-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; }
/* Dayline – vzhled podle návrhu B: světlý, vzdušný, velké dotykové plochy */
:root {
  --bg: #F7F6F3; --ink: #1C1917; --mute: #57534E; --soft: #78716C; --line: #E7E5E4; --line2: #F5F5F4;
  --card: #fff; --ok: #15803D; --warn: #B45309; --bad: #B91C1C; --r: 20px;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; }
/* Bez zvětšení dvojitým klepnutím (sevření prsty zůstává) */
:where(html, body, body *) { touch-action: manipulation; }
/* iOS přibližuje pole s písmem pod 16 px při kliknutí do nich */
@media (hover: none) and (pointer: coarse) { input:not([type="checkbox"]):not([type="radio"]):not([type="range"]), select, textarea { font-size: max(16px, 1em) !important; } }
body { margin: 0; background: var(--bg); color: var(--ink); font: 500 15px/1.45 Manrope, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
.wrap { max-width: 720px; margin: 0 auto; padding: calc(20px + env(safe-area-inset-top)) 16px 120px; display: flex; flex-direction: column; gap: 14px; }
body:not(.has-nav) .wrap { padding-bottom: 48px; }
h1, h2, h3 { margin: 0; }
h1 { font-size: 28px; font-weight: 800; letter-spacing: -.02em; line-height: 1.15; }
h2 { font-size: 13px; font-weight: 800; color: var(--mute); text-transform: uppercase; letter-spacing: .04em; margin: 8px 2px 0; }
h3 { font-size: 17px; font-weight: 800; }
.i { fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; flex: none; }

/* Hlavička stránky */
.ph { display: flex; align-items: center; gap: 10px; }
.ph .t { flex: 1; display: flex; flex-direction: column; min-width: 0; }
.ph .sub { font-size: 14px; font-weight: 600; color: var(--mute); }

/* Karty a řádky */
.card { background: var(--card); border-radius: var(--r); padding: 14px; display: block; }
.card.list { padding: 0 14px; }
.row { display: flex; align-items: center; gap: 12px; min-height: 60px; padding: 8px 0; border-bottom: 1px solid var(--line2); }
.row:last-child { border-bottom: 0; }
.card.row { padding: 8px 14px; border-bottom: 0; }
.grow { flex: 1; min-width: 0; }
.muted { color: var(--mute); font-weight: 600; font-size: 13px; }
.strong { font-weight: 800; }
.stack { display: flex; flex-direction: column; gap: 10px; }
.between { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.wrapline { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }

/* Štítky, čipy, tlačítka */
.tag { display: inline-flex; align-items: center; height: 22px; padding: 0 8px; border-radius: 11px; font-size: 11.5px; font-weight: 800; letter-spacing: .02em; white-space: nowrap; color: var(--c, #57534E); background: #F5F5F4; background: color-mix(in srgb, var(--c, #57534E) 13%, #fff); }
.chips { display: flex; gap: 6px; overflow-x: auto; margin: 0 -16px; padding: 2px 16px; scrollbar-width: none; }
.chips::-webkit-scrollbar, .tabs::-webkit-scrollbar { display: none; }
.chip { flex: none; display: inline-flex; align-items: center; gap: 6px; min-height: 40px; padding: 0 16px; border-radius: 20px; background: #fff; border: 1px solid var(--line); font-weight: 800; font-size: 14px; white-space: nowrap; color: #44403C; }
.chip.on { background: var(--ink); border-color: var(--ink); color: #fff; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 50px; padding: 0 20px; border-radius: 25px; border: 0; font-weight: 800; font-size: 15px; cursor: pointer; background: var(--ink); color: #fff; text-align: center; }
.btn.light { background: #fff; color: var(--ink); border: 1.5px solid #D6D3D1; }
.btn.soft { background: var(--line2); color: var(--ink); }
.btn.sm { min-height: 40px; padding: 0 14px; font-size: 14px; }
.btn.block { width: 100%; }
.btn.danger { background: #fff; color: var(--bad); border: 1.5px solid #FECACA; }
.btn.ok { background: #15803D; color: #fff; }
.rb { width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--line); background: #fff; color: var(--ink); display: inline-flex; align-items: center; justify-content: center; flex: none; cursor: pointer; }
.rb.dark { background: var(--ink); color: #fff; border: 0; }
.rb.plain { border: 0; background: transparent; width: 40px; height: 40px; }
.linkbtn { border: 0; background: none; padding: 0; font-weight: 800; color: var(--mute); cursor: pointer; font-size: 13px; }
.av { border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; font-weight: 800; color: #fff; background: var(--c, #57534E); flex: none; box-shadow: 0 0 0 2px #fff; }
.avs { display: flex; }
.avs .av + .av { margin-left: -8px; }

/* Formuláře */
form { margin: 0; }
.form { display: flex; flex-direction: column; gap: 14px; }
.field { display: flex; flex-direction: column; gap: 6px; font-size: 13px; font-weight: 800; color: #44403C; }
.field .hint { font-weight: 600; color: var(--soft); font-size: 12.5px; }
.in { width: 100%; min-height: 48px; padding: 0 14px; border: 1px solid var(--line); border-radius: 14px; background: #FAFAF9; font-weight: 700; font-size: 16px; color: var(--ink); }
select.in { appearance: none; background-image: linear-gradient(45deg, transparent 50%, #78716C 50%), linear-gradient(135deg, #78716C 50%, transparent 50%); background-position: calc(100% - 20px) 21px, calc(100% - 15px) 21px; background-size: 5px 5px; background-repeat: no-repeat; padding-right: 36px; }
textarea.in { padding: 12px 14px; min-height: 96px; resize: vertical; line-height: 1.45; }
.in:focus { outline: 2px solid var(--ink); outline-offset: 1px; background: #fff; }
.two { display: flex; gap: 8px; }
.two > * { flex: 1; min-width: 0; }
.check { display: flex; align-items: center; gap: 12px; min-height: 44px; font-size: 15px; font-weight: 700; color: var(--ink); cursor: pointer; }
.check input { width: 22px; height: 22px; margin: 0; accent-color: var(--ink); flex: none; }
.color-in { width: 56px; height: 48px; padding: 4px; border-radius: 14px; border: 1px solid var(--line); background: #fff; flex: none; }
.people { display: flex; flex-wrap: wrap; gap: 6px; }
.people label { display: inline-flex; align-items: center; gap: 6px; height: 40px; padding: 0 12px 0 4px; border-radius: 20px; background: var(--line2); font-weight: 800; font-size: 13.5px; cursor: pointer; border: 2px solid transparent; }
.people input { position: absolute; opacity: 0; pointer-events: none; }
.people label:has(input:checked) { border-color: var(--ink); background: #fff; }
.people label:focus-within { outline: 2px solid var(--ink); outline-offset: 1px; }
.sticky-actions { position: sticky; bottom: 0; padding: 12px 0 calc(12px + env(safe-area-inset-bottom)); background: linear-gradient(to top, var(--bg) 75%, rgba(247, 246, 243, 0)); display: flex; gap: 8px; }
.sticky-actions > * { flex: 1; }

/* Hlášky */
.flash { padding: 12px 14px; border-radius: 14px; font-weight: 700; font-size: 14px; }
.flash.ok { background: #DCFCE7; color: #166534; }
.flash.error { background: #FEE2E2; color: #991B1B; }
.flash.info { background: #E0E7FF; color: #3730A3; }

/* Spodní plovoucí menu */
.nav { position: fixed; left: 50%; transform: translateX(-50%); bottom: calc(14px + env(safe-area-inset-bottom)); width: min(688px, calc(100% - 32px)); display: flex; justify-content: space-between; align-items: center; gap: 4px; padding: 6px; border-radius: 30px; background: #fff; box-shadow: 0 8px 24px rgba(28, 25, 23, .12), 0 1px 3px rgba(28, 25, 23, .08); z-index: 20; }
.nav a { display: flex; align-items: center; justify-content: center; gap: 6px; min-width: 48px; height: 48px; padding: 0 14px; border-radius: 24px; color: var(--mute); font-weight: 800; font-size: 13px; }
.nav a.on { background: var(--ink); color: #fff; }
.nav a .lbl { display: none; }
.nav a.on .lbl { display: inline; }
@media (min-width: 560px) { .nav a .lbl { display: inline; } .nav a { flex: 1; } }
/* Šest položek (se zapnutou Výrobou): užší tlačítka, na úzkém displeji jen ikony */
.nav.n6 { gap: 2px; }
.nav.n6 a { min-width: 44px; padding: 0 10px; }
@media (max-width: 389px) { .nav.n6 a.on .lbl, .nav.n6 a.on-m .lbl { display: none; } }
@media (min-width: 560px) and (max-width: 759px) { .nav.n6 a { flex: none; } .nav.n6 a .lbl { display: none; } .nav.n6 a.on .lbl, .nav.n6 a.on-m .lbl { display: inline; } }

/* Zakázka */
.jobhead { margin: calc(-20px - env(safe-area-inset-top)) -16px 0; padding: calc(14px + env(safe-area-inset-top)) 16px 16px; background: #F5F5F4; background: color-mix(in srgb, var(--c, #57534E) 14%, #fff); border-radius: 0 0 24px 24px; display: flex; flex-direction: column; gap: 6px; }
.jobhead .kicker { font-size: 12px; font-weight: 800; letter-spacing: .04em; color: var(--c, #57534E); }
.jobhead .acts { display: flex; gap: 8px; padding-top: 6px; }
.jobhead .acts a, .jobhead .acts button { flex: 1; display: flex; align-items: center; justify-content: center; gap: 6px; min-height: 44px; border-radius: 22px; background: #fff; border: 0; font-weight: 800; font-size: 13.5px; color: var(--ink); cursor: pointer; }
.tabs { display: flex; gap: 6px; overflow-x: auto; margin: 0 -16px; padding: 2px 16px; scrollbar-width: none; }
.tabs a { flex: none; min-height: 42px; padding: 0 15px; border-radius: 21px; background: #fff; border: 1px solid var(--line); display: flex; align-items: center; gap: 6px; font-weight: 800; font-size: 14px; color: #44403C; }
.tabs a.on { background: var(--ink); border-color: var(--ink); color: #fff; }
.tabs a .n { opacity: .65; }
.kv { display: grid; grid-template-columns: minmax(0, 42%) 1fr; gap: 10px 12px; font-size: 14.5px; margin: 0; }
.kv dt { color: var(--mute); font-weight: 700; }
.kv dd { margin: 0; font-weight: 700; overflow-wrap: anywhere; }
.ck { width: 30px; height: 30px; border-radius: 50%; border: 2px solid #A8A29E; background: #fff; display: inline-flex; align-items: center; justify-content: center; cursor: pointer; flex: none; padding: 0; color: #fff; }
.ck.on { background: var(--ink); border-color: var(--ink); }
.done { color: #A8A29E; text-decoration: line-through; }
.pinned { background: #FFFBEB; }
.empty { padding: 24px 8px; text-align: center; color: var(--mute); font-weight: 600; }
.addrow { display: flex; gap: 8px; align-items: center; }
.addrow .in { min-height: 46px; }
.when { display: flex; align-items: center; gap: 5px; font-size: 13px; font-weight: 800; }
.late { color: var(--bad); }
.jobcard { display: flex; flex-direction: column; gap: 8px; }
.jobcard .top { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.jobcard .num { margin-left: auto; font-size: 12px; font-weight: 700; color: var(--soft); }
.jobcard .title { font-size: 17px; font-weight: 800; display: block; }
.jobcard .foot { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
details.more { position: relative; }
details.more > summary { list-style: none; cursor: pointer; }
.popover { position: absolute; right: 0; top: calc(100% + 6px); box-shadow: 0 8px 24px rgba(28, 25, 23, .15); z-index: 5; display: flex; flex-direction: column; gap: 6px; min-width: 180px; }
details.more > summary::-webkit-details-marker { display: none; }
.menu a, .menu button { display: flex; align-items: center; gap: 12px; min-height: 58px; border-bottom: 1px solid var(--line2); font-weight: 800; width: 100%; background: none; border-left: 0; border-right: 0; border-top: 0; padding: 0; cursor: pointer; text-align: left; font-size: 15px; }
.menu > :last-child, .menu form:last-child button { border-bottom: 0; }
.menu .ico { width: 40px; height: 40px; border-radius: 13px; background: var(--line2); display: inline-flex; align-items: center; justify-content: center; }
.logo { width: 52px; height: 52px; border-radius: 16px; background: #1D4ED8; color: #fff; display: inline-flex; align-items: center; justify-content: center; font-size: 24px; font-weight: 800; flex: none; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.badge { min-width: 20px; height: 20px; padding: 0 6px; border-radius: 10px; background: #DC2626; color: #fff; font-size: 11.5px; font-weight: 800; display: inline-flex; align-items: center; justify-content: center; }
.swatch { width: 14px; height: 14px; border-radius: 5px; background: var(--c); flex: none; display: inline-block; }
.progress { display: block; height: 8px; border-radius: 4px; background: var(--line2); overflow: hidden; }
.progress > span { display: block; height: 100%; background: var(--ink); border-radius: 4px; }
.search { display: flex; align-items: center; gap: 10px; min-height: 46px; padding: 0 16px; border-radius: 23px; background: #fff; border: 1px solid var(--line); color: var(--soft); }
.search input { flex: 1; min-width: 0; border: 0; outline: 0; background: transparent; font-weight: 600; font-size: 16px; color: var(--ink); }
@media (min-width: 900px) { .wrap { max-width: 760px; } }

/* 0.2 – docházka, kalendář, fotky */
.ico { width: 40px; height: 40px; border-radius: 13px; background: var(--line2); display: inline-flex; align-items: center; justify-content: center; flex: none; }
.big { font-size: 28px; font-weight: 800; letter-spacing: -.02em; line-height: 1.15; display: block; }
.muted a { text-decoration: underline; text-underline-offset: 2px; }
h2.today { color: var(--ok); }
.clock { font-variant-numeric: tabular-nums; font-weight: 800; }
.timer.on { background: #F0FDF4; box-shadow: inset 0 0 0 1.5px #BBF7D0; }
.timer .clock { font-size: 30px; letter-spacing: -.02em; line-height: 1; color: #166534; }
.jobhead .acts form { flex: 1; display: flex; }
.jobhead .acts button.running { background: #166534; color: #fff; }
.weeknav { display: flex; align-items: center; gap: 8px; padding: 6px; }
.plan { display: flex; flex-direction: column; gap: 4px; border-left: 5px solid var(--c, #57534E); }
.plan.off { background: #F5F5F4; border-left-color: #A8A29E; }
.planacts { display: flex; gap: 8px; margin-top: 10px; flex-wrap: wrap; }
.planacts > * { flex: 1 1 140px; }
.planacts form .btn { width: 100%; }
.plangroup { position: relative; }
.calday .dshort { display: none; }
.plangroup::before { content: ""; position: absolute; left: -14px; top: 12px; bottom: 12px; width: 4px; border-radius: 0 3px 3px 0; background: var(--c); }
.pchip { display: inline-flex; align-items: center; gap: 6px; min-height: 32px; padding: 0 10px 0 4px; border-radius: 16px; background: var(--line2); font-weight: 800; font-size: 13px; }
.pchip .muted { font-size: 12px; }
.mini7 { display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px; width: 100%; margin: 2px 0 4px; }
.mini7 span { display: flex; flex-direction: column; align-items: center; font-size: 12px; font-weight: 700; background: var(--line2); border-radius: 8px; padding: 3px 0; font-variant-numeric: tabular-nums; }
.mini7 b { font-size: 10.5px; color: var(--soft); font-weight: 800; text-transform: uppercase; }
.mini7 span.today { background: #DCFCE7; }
.gpslinks { display: flex; gap: 14px; margin-top: 3px; }
.gpslinks a { display: inline-flex; gap: 4px; align-items: center; font-size: 12.5px; font-weight: 800; color: #1E40AF; }
.gallery { display: grid; grid-template-columns: repeat(3, 1fr); gap: 4px; border-radius: var(--r); overflow: hidden; }
.gallery a { aspect-ratio: 1; background: var(--line); display: block; }
.gallery img, .strip img { width: 100%; height: 100%; object-fit: cover; display: block; }
@media (min-width: 560px) { .gallery { grid-template-columns: repeat(4, 1fr); } }
.strip { display: grid; grid-template-columns: repeat(4, 1fr); gap: 4px; border-radius: 16px; overflow: hidden; }
.strip img { aspect-ratio: 1; background: var(--line); }
.filebtn { cursor: pointer; }
.filebtn:focus-within { outline: 2px solid var(--ink); outline-offset: 2px; }
.uplist { display: flex; flex-direction: column; gap: 8px; }
.uplist:empty { display: none; }
.upitem { display: flex; align-items: center; gap: 10px; font-size: 13.5px; font-weight: 700; }
.upitem img, .upitem .ph { width: 44px; height: 44px; object-fit: cover; border-radius: 10px; background: var(--line2); flex: none; display: inline-flex; align-items: center; justify-content: center; }
.upitem .info { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 5px; }
.upitem .name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.upitem .bar { height: 6px; border-radius: 3px; background: var(--line2); overflow: hidden; }
.upitem .bar span { display: block; height: 100%; width: 0; background: var(--ink); transition: width .2s; }
.upitem.done .bar span { background: var(--ok); width: 100%; }
.upitem.err { color: var(--bad); }
.upitem.err .bar { display: none; }
.lb { border: 0; padding: 0; margin: 0; width: 100%; height: 100%; max-width: 100%; max-height: 100%; background: #0C0A09; color: #fff; }
.lb::backdrop { background: #0C0A09; }
.lb[open] { display: flex; flex-direction: column; }
.lb img { flex: 1; min-height: 0; width: 100%; object-fit: contain; padding-top: env(safe-area-inset-top); touch-action: none; transform-origin: center; will-change: transform; user-select: none; -webkit-user-select: none; }
.lb img.zoomed { cursor: grab; }
.lbbar { display: flex; align-items: center; gap: 8px; padding: 12px 16px calc(12px + env(safe-area-inset-bottom)); }
.lbbar .muted { color: #A8A29E; }
.lbbar .rb { background: #292524; border: 0; color: #fff; }
.lbnav { position: absolute; top: 42%; width: 46px; height: 64px; border: 0; background: rgba(41, 37, 36, .65); color: #fff; display: flex; align-items: center; justify-content: center; cursor: pointer; }
.lbnav.prev { left: 0; border-radius: 0 16px 16px 0; }
.lbnav.next { right: 0; border-radius: 16px 0 0 16px; }
.lbnav[hidden] { display: none; }
button[aria-busy="true"] { opacity: .75; }
.gpsmsg { margin-top: 8px; }
.h2note { text-transform: none; letter-spacing: 0; font-weight: 600; color: var(--soft); margin-left: 8px; font-size: 13px; }
.h2sum { text-transform: none; letter-spacing: 0; color: var(--ink); font-size: 14px; }
h2.between { display: flex; }
.maprow { flex-wrap: wrap; }
.maprow > .grow { flex: 1 1 220px; }
.maprow label { flex: 1 1 220px; }
.maprow select.in { min-height: 44px; font-size: 15px; }
.aresout:empty { display: none; }
.aresl { display: flex; flex-direction: column; border-radius: 14px; overflow: hidden; border: 1px solid var(--line); }
.aresitem { display: flex; flex-direction: column; align-items: flex-start; gap: 2px; text-align: left; padding: 10px 12px; background: #fff; border: 0; border-bottom: 1px solid var(--line2); cursor: pointer; font: inherit; }
.aresitem:last-child { border-bottom: 0; }
.aresitem:hover, .aresitem:focus { background: #FAFAF9; }

/* 0.3 – chat, upozornění */
.nav a .nico { position: relative; display: inline-flex; }
.nbadge { position: absolute; top: -7px; right: -10px; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 9px; background: #DC2626; color: #fff; font-size: 11px; font-weight: 800; display: inline-flex; align-items: center; justify-content: center; box-shadow: 0 0 0 2px #fff; }
.nav a.on .nbadge { box-shadow: 0 0 0 2px var(--ink); }
.tabs a.hot { border-color: #DC2626; }
.chatrow .side { display: flex; flex-direction: column; align-items: flex-end; gap: 4px; flex: none; }
.chatrow .muted { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; display: block; }
body.chatpage .wrap { padding-bottom: calc(96px + env(safe-area-inset-bottom)); gap: 0; }
.chathead { position: sticky; top: 0; z-index: 10; display: flex; align-items: center; gap: 10px; margin: calc(-20px - env(safe-area-inset-top)) -16px 8px; padding: calc(10px + env(safe-area-inset-top)) 12px 10px; background: rgba(247, 246, 243, .94); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
.msgs { display: flex; flex-direction: column; gap: 2px; }
.msgs .older { align-self: center; margin: 4px 0 10px; }
.daysep { display: flex; justify-content: center; margin: 12px 0 6px; }
.daysep span { font-size: 12px; font-weight: 800; color: var(--mute); background: var(--line2); padding: 3px 10px; border-radius: 10px; }
.msg { display: flex; align-items: flex-end; gap: 8px; margin-top: 8px; max-width: 100%; }
.msg.cont { margin-top: 2px; }
.msg .msgav { width: 30px; flex: none; }
.msg .bub { max-width: min(78%, 520px); background: #fff; border-radius: 18px 18px 18px 6px; padding: 7px 12px 6px; display: flex; flex-direction: column; gap: 1px; box-shadow: 0 1px 1px rgba(28, 25, 23, .05); }
.msg.cont:not(.mine) .bub { border-radius: 6px 18px 18px 6px; }
.msg .who { font-size: 12.5px; font-weight: 800; color: var(--mute); }
.msg .txt { font-size: 15.5px; line-height: 1.38; overflow-wrap: anywhere; white-space: normal; }
.msg .txt a { text-decoration: underline; }
.msg .tm { align-self: flex-end; font-size: 11px; font-weight: 700; color: var(--soft); }
.msg.mine { justify-content: flex-end; flex-wrap: wrap; }
.msg.mine .bub { background: var(--ink); color: #fff; border-radius: 18px 18px 6px 18px; cursor: pointer; }
.msg.mine.cont .bub { border-radius: 18px 6px 6px 18px; }
.msg.mine .tm { color: #A8A29E; }
.msg.mine .txt a { color: #fff; }
.msg.gone .txt { font-style: italic; opacity: .6; }
.msgdel { display: none; width: 100%; text-align: right; padding: 2px 4px 0; }
.msg.sel .msgdel { display: block; }
.newpill { position: fixed; left: 50%; transform: translateX(-50%); bottom: calc(86px + env(safe-area-inset-bottom)); z-index: 15; border: 0; border-radius: 18px; padding: 8px 14px; background: var(--ink); color: #fff; font-weight: 800; font-size: 13px; box-shadow: 0 6px 18px rgba(28, 25, 23, .2); cursor: pointer; }
.composer { position: fixed; left: 50%; transform: translateX(-50%); bottom: 0; width: min(720px, 100%); z-index: 12; display: flex; align-items: flex-end; gap: 8px; padding: 10px 16px calc(10px + env(safe-area-inset-bottom)); background: rgba(247, 246, 243, .96); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); border-top: 1px solid var(--line); flex-wrap: wrap; }
.composer .flash { width: 100%; }
.composer textarea.in { min-height: 44px; max-height: 160px; padding: 11px 14px; border-radius: 22px; resize: none; background: #fff; line-height: 1.35; }
.composer .rb.dark { width: 44px; height: 44px; }
.chatempty { padding: 40px 8px; }

/* 0.4 – hlášky jako pilulky, práce bez signálu */
.toasts { position: fixed; top: calc(10px + env(safe-area-inset-top)); left: 50%; transform: translateX(-50%); z-index: 100; display: flex; flex-direction: column; align-items: center; gap: 8px; width: min(560px, calc(100% - 24px)); pointer-events: none; }
.toast { pointer-events: auto; display: flex; align-items: center; gap: 10px; max-width: 100%; padding: 9px 8px 9px 16px; border-radius: 22px; background: var(--ink); color: #fff; font-weight: 700; font-size: 14px; line-height: 1.35; box-shadow: 0 10px 28px rgba(28, 25, 23, .22); cursor: pointer; animation: toastIn .22s ease-out, toastOut .3s ease-in 3.8s forwards; }
.toast.ok { background: #166534; }
.toast.info { background: #1C1917; }
.toast.error { background: #991B1B; animation: toastIn .22s ease-out; }
.toast.gone { opacity: 0; transform: translateY(-8px); transition: all .18s; }
.toast .tclose { flex: none; width: 26px; height: 26px; border: 0; border-radius: 50%; background: rgba(255, 255, 255, .16); color: #fff; font-size: 16px; line-height: 1; cursor: pointer; }
@keyframes toastIn { from { opacity: 0; transform: translateY(-14px) scale(.97); } }
@keyframes toastOut { to { opacity: 0; transform: translateY(-14px); visibility: hidden; } }
@media (prefers-reduced-motion: reduce) { .toast { animation: toastOut .01s linear 4s forwards; } .toast.error { animation: none; } }
.netpill { position: fixed; left: 16px; bottom: calc(80px + env(safe-area-inset-bottom)); z-index: 90; border: 0; border-radius: 18px; padding: 8px 14px; background: #1E40AF; color: #fff; font-weight: 800; font-size: 13px; box-shadow: 0 6px 18px rgba(28, 25, 23, .2); cursor: pointer; }
.netpill.off { background: #57534E; }
body:not(.has-nav) .netpill { bottom: calc(16px + env(safe-area-inset-bottom)); }
body.chatpage .netpill { bottom: calc(80px + env(safe-area-inset-bottom)); }
button[aria-busy="true"] { pointer-events: none; }
.composer .attach { width: 44px; height: 44px; cursor: pointer; }
.composer .attach[aria-busy="true"] { opacity: .5; animation: pulse 1s infinite alternate; }
@keyframes pulse { to { opacity: .25; } }
.chatimg { display: block; margin: 2px 0 4px; }
.chatimg img { display: block; max-width: min(240px, 100%); max-height: 320px; border-radius: 12px; background: var(--line); }
.chatfile { display: flex; align-items: center; gap: 8px; padding: 6px 0; font-weight: 700; text-decoration: underline; overflow-wrap: anywhere; }
.msg.mine .chatfile .muted { color: #D6D3D1; }
form.queued:not(:has(textarea, input[type="text"], input:not([type]))) { opacity: .5; }

/* Datum a čas: vlastní zobrazení nad průhledným nativním polem (stejné v iPhonu, Androidu i počítači) */
.datebox { position: relative; display: flex; align-items: center; gap: 6px; padding: 0 10px 0 14px; cursor: pointer; container-type: inline-size; overflow: hidden; }
.datebox .dshow { flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-variant-numeric: tabular-nums; }
.datebox .dw { color: var(--mute); font-weight: 600; margin-right: 5px; }
.datebox.dempty .dshow { color: #A8A29E; font-weight: 600; }
.datebox .dico { display: flex; color: var(--mute); flex: none; }
.datebox .dclear { display: none; position: relative; z-index: 2; flex: none; width: 32px; height: 32px; margin-right: -6px; border: 0; border-radius: 50%; background: transparent; color: var(--mute); align-items: center; justify-content: center; cursor: pointer; }
.datebox.canclear .dclear { display: flex; }
.datebox.canclear .dico { display: none; }
.datebox .dnative { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; padding: 0; border: 0; opacity: 0; font-size: 16px; cursor: pointer; -webkit-appearance: none; appearance: none; z-index: 1; }
.datebox .dnative::-webkit-calendar-picker-indicator { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; padding: 0; cursor: pointer; }
.datebox:focus-within { outline: 2px solid var(--ink); outline-offset: 1px; background: #fff; }
@container (max-width: 150px) { .datebox .dw { display: none; } }
/* Bez JavaScriptu: nativní pole aspoň zarovnané doleva a bez přetékání */
input.in[type="date"], input.in[type="time"] { min-width: 0; display: block; -webkit-appearance: none; appearance: none; line-height: 46px; text-align: left; }
input.in[type="date"]::-webkit-date-and-time-value, input.in[type="time"]::-webkit-date-and-time-value { text-align: left; margin: 0; }

/* Předání zakázky */
.signpad { position: relative; height: 210px; border: 1.5px dashed #A8A29E; border-radius: 16px; background: #fff; touch-action: none; overflow: hidden; }
.signpad canvas { position: absolute; inset: 0; width: 100%; height: 100%; touch-action: none; cursor: crosshair; z-index: 1; }
.signpad .signhint { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; color: #A8A29E; font-weight: 700; font-size: 15px; pointer-events: none; }
.signpad .signline { position: absolute; left: 22px; right: 22px; bottom: 46px; border-bottom: 1px solid #D6D3D1; pointer-events: none; }
.signpad.signed .signhint { display: none; }
.signpad.signed { border-style: solid; border-color: var(--ink); }
.pickgrid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; }
.pick { position: relative; aspect-ratio: 1; border-radius: 10px; overflow: hidden; background: var(--line); cursor: pointer; }
.pick img { width: 100%; height: 100%; object-fit: cover; display: block; opacity: .45; transition: opacity .15s; }
.pick input { position: absolute; top: 6px; left: 6px; width: 22px; height: 22px; z-index: 1; accent-color: var(--ink); }
.pick:has(input:checked) img { opacity: 1; }
.pick:has(input:checked) { outline: 3px solid var(--ink); outline-offset: -3px; }

/* Předávací protokol (obrazovka i tisk A4) */
.protocol { background: #fff; border-radius: var(--r); padding: 22px 18px; color: #1C1917; font-size: 14px; line-height: 1.5; box-shadow: 0 1px 0 var(--line); }
.protocol h1 { font-size: 22px; margin: 0 0 4px; letter-spacing: -.01em; }
.protocol h2 { font-size: 11.5px; text-transform: uppercase; letter-spacing: .06em; color: #78716C; margin: 18px 0 6px; font-weight: 800; }
.protocol p { margin: 0 0 6px; }
.p-head { display: flex; justify-content: space-between; gap: 16px; padding-bottom: 14px; border-bottom: 2px solid #1C1917; flex-wrap: wrap; }
.p-company { font-weight: 800; font-size: 16px; }
.p-title { text-align: right; }
.p-small { font-size: 12.5px; color: #57534E; }
.p-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0 20px; }
.p-pre { white-space: pre-line; }
.p-muted { color: #78716C; }
.p-photos { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; }
.p-photos a { display: block; text-decoration: none; color: #57534E; font-size: 11px; }
.p-photos img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 6px; display: block; background: #E7E5E4; }
.q-thanks { margin: 18px 0 0; font-weight: 700; font-size: 15px; }
.p-declare { margin-top: 16px !important; padding: 10px 12px; background: #F5F5F4; border-radius: 10px; font-size: 13px; }
.p-sign { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-top: 4px; break-inside: avoid; }
.p-sign > div { border-top: 1px solid #A8A29E; }
.p-signimg { display: block; width: 100%; max-width: 280px; height: auto; margin: 4px 0; mix-blend-mode: multiply; }
.p-foot { margin-top: 18px; padding-top: 8px; border-top: 1px solid #E7E5E4; font-size: 11px; color: #78716C; }
@media (max-width: 420px) { .p-grid, .p-sign { grid-template-columns: 1fr; } .p-photos { grid-template-columns: repeat(3, 1fr); } .p-title { text-align: left; } }
body.protocol-page.public .wrap { max-width: 820px; }
@media print {
  @page { size: A4; margin: 14mm 14mm 16mm; }
  body, body.protocol-page { background: #fff !important; padding: 0 !important; }
  .noprint, .bottomnav, .toasts, .netpill, nav { display: none !important; }
  .wrap { max-width: none !important; padding: 0 !important; margin: 0 !important; }
  .protocol { box-shadow: none; border-radius: 0; padding: 0; font-size: 11pt; }
  .p-grid, .p-sign { grid-template-columns: 1fr 1fr !important; }
  .p-photos { grid-template-columns: repeat(4, 1fr) !important; }
  .p-photos a, .p-sign, .p-declare { break-inside: avoid; }
  a { color: inherit; text-decoration: none; }
}

/* Rozbalovací sekce */
details > summary { list-style: none; cursor: pointer; }
details > summary::-webkit-details-marker { display: none; }
details.card > summary, summary.chev { display: flex; align-items: center; gap: 8px; }
/* Šipka rozbalení vpravo: zavřeno dolů, otevřeno nahoru */
details.card > summary::after, summary.chev::after { content: ''; flex: none; order: 99; width: 8px; height: 8px; margin: -4px 4px 0 auto; border-right: 2.5px solid currentColor; border-bottom: 2.5px solid currentColor; transform: rotate(45deg); transition: transform .18s ease, margin .18s ease; opacity: .6; }
details[open] > summary.chev::after, details.card[open] > summary::after { transform: rotate(-135deg); margin-top: 4px; }
summary.chev::after { margin-left: 8px; }
details.card > summary > .tag { margin-left: auto !important; }
details.card > summary:has(> .tag)::after { margin-left: 12px; }
details.card[open] > summary { margin-bottom: 4px; }

/* Obaly pro rozložení (v mobilu se chovají jako dosud) */
.cardgrid, .ovgrid, .ovmain, .ovside, .calweek { display: flex; flex-direction: column; gap: 14px; min-width: 0; }
.calday { display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.calempty { font-size: 13px; font-weight: 600; color: var(--soft); padding: 0 2px; }
.chatside { display: none; }
.nav .side-only { display: none; }
.nav a.on-m { background: var(--ink); color: #fff; }
.nav a.on-m .lbl { display: inline; }
body.nonav .nav { display: none; }
.chatrow.on { background: var(--line2); margin: 0 -14px; padding-left: 14px; padding-right: 14px; }

/* ---------- Počítač a tablet na šířku ---------- */
@media (hover: hover) {
  a.card:hover, .jobcard:hover { box-shadow: 0 6px 20px rgba(28, 25, 23, .08); }
  a.row:hover, .card.list a.row:hover { background: #FAFAF9; }
  .btn:hover { filter: brightness(1.08); }
  .btn.light:hover, .rb:hover, .chip:hover { border-color: #A8A29E; }
}
@media (min-width: 1024px) {
  :root { --side: 248px; }
  body.has-side { padding-left: var(--side); }
  body.has-side .nav { display: flex; position: fixed; inset: 0 auto 0 0; transform: none; width: var(--side); flex-direction: column; align-items: stretch; justify-content: flex-start; gap: 2px; padding: 18px 12px 14px; border-radius: 0; background: #FBFAF8; box-shadow: none; border-right: 1px solid var(--line); overflow-y: auto; z-index: 30; }
  body.has-side .nav a { flex: none; justify-content: flex-start; gap: 12px; height: 42px; min-width: 0; padding: 0 12px; border-radius: 12px; font-size: 14.5px; color: #44403C; }
  body.has-side .nav a .lbl { display: inline; }
  body.has-side .nav a.on-m { background: transparent; color: #44403C; }
  body.has-side .nav a.on { background: var(--ink); color: #fff; }
  body.has-side .nav a:not(.on):hover { background: #F0EEEB; color: var(--ink); }
  body.has-side .nav .side-only { display: flex; }
  .nav .brand { height: auto !important; padding: 4px 8px 16px !important; align-items: center; gap: 10px; }
  .nav .brand:hover { background: transparent !important; }
  .nav .brand .logo { width: 36px; height: 36px; border-radius: 11px; background: #1D4ED8; color: #fff; display: inline-flex; align-items: center; justify-content: center; font-weight: 800; font-size: 18px; flex: none; }
  .nav .brand.haslogo { justify-content: flex-start; padding: 6px 10px 18px !important; }
  .nav .brand img.logo { background: transparent; object-fit: contain; object-position: left center; width: auto; height: auto; max-width: 100%; max-height: 44px; border-radius: 0; }
  .nav .brand .grow, .nav .me .grow { display: flex; flex-direction: column; line-height: 1.2; min-width: 0; }
  .nav .brand .muted, .nav .me .muted { font-size: 12px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .nav .brand .strong, .nav .me .strong { color: var(--ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .nav .sep { height: 1px; background: var(--line); margin: 10px 8px; flex: none; }
  .nav .me { margin-top: auto; height: auto !important; padding: 10px 8px !important; }
  .nav .me.on .strong, .nav .me.on .muted { color: #fff; }
  .nav .sbadge { margin-left: auto; min-width: 20px; height: 20px; padding: 0 6px; border-radius: 10px; background: #B45309; color: #fff; font-size: 11.5px; font-weight: 800; display: inline-flex; align-items: center; justify-content: center; }
  .nav a .nbadge { top: -6px; right: -8px; }

  body.has-side .wrap { max-width: 880px; padding: 28px 36px 56px; }
  body.has-side.wide .wrap { max-width: 1240px; }
  body.has-side .chips, body.has-side .tabs { margin: 0; padding: 2px 0; flex-wrap: wrap; overflow: visible; }
  .jobhead { margin: -28px -36px 0; padding: 22px 36px 22px; border-radius: 0 0 24px 24px; }
  .jobhead h1 { font-size: 32px; }
  .toasts { left: calc(50% + var(--side) / 2); }
  body.has-side .netpill { left: calc(var(--side) + 16px); bottom: 16px; }

  .cardgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(340px, 1fr)); gap: 14px; align-items: start; }
  .cardgrid > .card { height: 100%; }
  .ovgrid { display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(320px, 1fr); gap: 22px; align-items: start; }
  .ovside { position: sticky; top: 16px; }
  .calweek { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 10px; align-items: start; }
  .calday .dlong, .calday .caladdt { display: none; }
  .calday .dshort { display: inline; }
  .calday .between { gap: 4px; align-items: flex-start; }
  .calday .pchip { flex-wrap: wrap; }
  .calday { background: rgba(255, 255, 255, .55); border-radius: var(--r); padding: 4px 8px 10px; }
  .calday.istoday { background: #fff; box-shadow: 0 0 0 2px var(--ink) inset; }
  .calday.wkend:not(.istoday) { background: rgba(255, 255, 255, .3); }
  .calday h2 { font-size: 12px; }
  .calday .h2note { display: block; margin: 2px 0 0; }
  .calday .card.list { padding: 0 10px; }
  .calday .card.plan { padding: 10px 12px; }
  .pickgrid { grid-template-columns: repeat(6, 1fr); }
  .signpad { height: 240px; }
  .sticky-actions { position: static; background: none; padding: 4px 0 0; }

  /* Chat: seznam konverzací vedle otevřené konverzace */
  body.chatpage .chatside { display: block; position: fixed; top: 0; bottom: 0; left: var(--side); width: 330px; overflow-y: auto; padding: 22px 16px; border-right: 1px solid var(--line); background: var(--bg); z-index: 5; }
  body.chatpage .chatside h2 { margin-top: 14px; }
  body.chatpage .wrap { max-width: none; margin: 0 0 0 330px; padding: 0 36px calc(96px + env(safe-area-inset-bottom)); }
  body.chatpage .chathead { margin: 0 -36px 8px; padding: 14px 24px; }
  body.chatpage .chathead > a.rb:first-child { display: none; }
  body.chatpage .composer { left: calc(var(--side) + 330px); right: 0; width: auto; transform: none; padding: 12px 36px 14px; }
  body.chatpage .newpill { left: calc(var(--side) + 330px + (100% - var(--side) - 330px) / 2); }
  .msg .bub { max-width: min(560px, 75%); }
  .jobhead .acts { max-width: 620px; }
}
@media (min-width: 1200px) { .calweek { grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 8px; } }
@media (min-width: 1024px) and (max-width: 1180px) {
  body.chatpage .chatside { width: 280px; }
  body.chatpage .wrap { margin-left: 280px; }
  body.chatpage .composer { left: calc(var(--side) + 280px); }
}
@media print { .nav, .chatside { display: none !important; } body.has-side { padding-left: 0 !important; } }
.logobox { display: flex; align-items: center; justify-content: center; min-height: 84px; padding: 12px; border: 1px dashed #D6D3D1; border-radius: 14px; background: repeating-conic-gradient(#F5F5F4 0 25%, #fff 0 50%) 0 0 / 16px 16px; }
.logobox img { max-width: 100%; max-height: 90px; object-fit: contain; }
.p-logo { display: block; max-width: 220px; max-height: 64px; object-fit: contain; margin-bottom: 8px; }

/* Kontrolní seznamy */
.clbar { flex: none; width: 90px; height: 8px; border-radius: 4px; background: linear-gradient(90deg, var(--ok) var(--p), var(--line) var(--p)); }
.clitem { display: flex; flex-direction: column; gap: 10px; border-left: 5px solid transparent; }
.clitem.fault { border-left-color: var(--bad); background: #FEF7F7; }
.seg { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; }
.segbtn { position: relative; }
.segbtn input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.segbtn span { display: flex; align-items: center; justify-content: center; min-height: 44px; padding: 0 8px; border-radius: 12px; border: 1.5px solid #D6D3D1; background: #fff; font-weight: 800; font-size: 13.5px; text-align: center; line-height: 1.15; }
.segbtn input:focus-visible + span { outline: 2px solid var(--ink); outline-offset: 2px; }
.segbtn.r-ok input:checked + span { background: #15803D; border-color: #15803D; color: #fff; }
.segbtn.r-fault input:checked + span { background: #B91C1C; border-color: #B91C1C; color: #fff; }
.segbtn.r-na input:checked + span { background: #57534E; border-color: #57534E; color: #fff; }
.segbtn input:disabled + span { opacity: .7; }
.clmore .in { min-height: 42px; font-size: 14.5px; font-weight: 600; }
.clthumb { flex: none; width: 44px; height: 44px; border-radius: 10px; overflow: hidden; background: var(--line); }
.clthumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
label.rb[aria-busy="true"] { opacity: .5; animation: pulse 1s infinite alternate; }
.clrow { display: flex; flex-direction: column; gap: 8px; padding: 10px 12px; }
.p-table { width: 100%; border-collapse: collapse; font-size: 13px; }
.p-table td { padding: 5px 6px; border-bottom: 1px solid #EFEDEA; vertical-align: top; }
.p-table td.n { width: 26px; color: #78716C; }
.p-table td.r { text-align: right; white-space: nowrap; font-weight: 700; }
.p-table tr.fault td { color: #B91C1C; }
.p-checklist { break-inside: auto; }
.p-table tr { break-inside: avoid; }

/* QR štítky (A4, 3 sloupce × 8 řádků; 70 × 37 mm) */
.labels { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 10px; }
.label { display: flex; gap: 10px; align-items: center; background: #fff; border: 1px dashed #D6D3D1; border-radius: 10px; padding: 8px 10px; break-inside: avoid; }
.lqr { flex: none; width: 110px; height: 110px; }
.lqr svg { width: 100%; height: 100%; display: block; }
.ltext { min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.llogo { max-width: 120px; max-height: 24px; object-fit: contain; object-position: left; }
.lco { font-weight: 800; font-size: 12px; }
.lname { font-weight: 800; font-size: 14px; line-height: 1.2; overflow-wrap: anywhere; }
.lsmall { font-size: 11px; color: #44403C; }
.lcode { font-size: 11px; font-weight: 800; letter-spacing: .08em; color: #78716C; }
@media print {
  body.labels-page .wrap { padding: 0 !important; }
  .labels { grid-template-columns: repeat(3, 70mm); gap: 0; justify-content: center; }
  .label { width: 70mm; height: 37mm; border: 0; border-radius: 0; padding: 3mm; gap: 2.5mm; }
  .lqr { width: 29mm; height: 29mm; }
  .lname { font-size: 9.5pt; } .lsmall, .lcode { font-size: 7pt; } .llogo { max-height: 5mm; max-width: 30mm; }
  body.labels-page .labels { page: labels; }
  @page labels { margin: 8mm 0; }
}

/* Zákazník: výběr typu jako první krok */
.kindpick { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.kindopt { position: relative; display: flex; align-items: center; gap: 10px; min-height: 68px; padding: 12px; border-radius: var(--r); background: #fff; border: 2px solid var(--line); cursor: pointer; line-height: 1.25; }
.kindopt input { position: absolute; opacity: 0; pointer-events: none; }
.kindopt .kico { flex: none; width: 40px; height: 40px; border-radius: 12px; background: var(--line2); display: flex; align-items: center; justify-content: center; color: #44403C; }
.kindopt .strong { display: block; font-size: 15px; }
.kindopt .muted { display: block; font-size: 12px; margin-top: 2px; }
.kindopt:has(input:checked) { border-color: var(--ink); }
.kindopt:has(input:checked) .kico { background: var(--ink); color: #fff; }
.kindopt:focus-within { outline: 2px solid var(--ink); outline-offset: 2px; }
.custform .kindhint { display: none; text-align: center; padding: 6px 0; }
.custform.nokind:not(.has-kind):not(:has(input[name="kind"]:checked)) .kindhint { display: block; }
.custform.nokind:not(.has-kind):not(:has(input[name="kind"]:checked)) .afterkind { display: none; }
.custform.is-osoba .firmonly, .custform:has(input[name="kind"][value="osoba"]:checked) .firmonly { display: none; }
.afterkind { gap: 14px; }
@media (max-width: 380px) { .kindopt .kico { display: none; } }

/* Dokumenty u zakázky */
.ftype { flex: none; width: 40px; height: 40px; border-radius: 10px; display: inline-flex; align-items: center; justify-content: center; background: var(--fc, #78716C); color: #fff; font-size: 10.5px; font-weight: 800; letter-spacing: .02em; }


/* Cenové nabídky */
.qicon { flex: none; width: 40px; height: 40px; border-radius: 12px; background: var(--line2); display: inline-flex; align-items: center; justify-content: center; color: #44403C; }
.qright { display: flex; flex-direction: column; align-items: flex-end; gap: 4px; flex: none; text-align: right; }
.chip .cnt { opacity: .6; font-weight: 700; margin-left: 2px; }
.qitem { background: #fff; border-radius: var(--r); padding: 12px; display: flex; flex-direction: column; gap: 8px; box-shadow: 0 1px 0 var(--line); }
.qline { display: flex; align-items: flex-end; gap: 6px; }
.qline .field { flex: 1; min-width: 0; }
.qnums { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.qitems.novat .qvatf { display: none; }
@media (min-width: 560px) {
  .qnums { grid-template-columns: 1fr .8fr 1.3fr 1fr; }
  .qitems.novat .qnums { grid-template-columns: 1fr .8fr 1.3fr; }
}
.qdetail > summary { font-size: 13px; }
.qdetail textarea { margin-top: 6px; }
.qlinesum { text-align: right; font-size: 13px; }
.qtotals [data-qrates] { display: flex; flex-direction: column; gap: 4px; }
.qtotals [data-qrates]:empty { display: none; }
.qtotals [data-qrates] > div { display: flex; flex-direction: row; justify-content: space-between; color: var(--mute); font-size: 14px; }
.qtotals .qgrand { display: flex; flex-direction: row; justify-content: space-between; align-items: baseline; font-size: 17px; padding-top: 8px; border-top: 1px solid var(--line); }
.qtotals .qgrand strong { font-size: 20px; }
/* Hlavička položek a kompaktní řádky (široká obrazovka) */
.qhead { display: none; }
.qbottom { display: flex; flex-direction: column; gap: 14px; }
.qfcol { gap: 12px; }
.psline { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; align-items: end; }
.psline .psname { grid-column: 1 / -1; }
.psline2 { display: grid; grid-template-columns: 1fr; gap: 12px; }
@media (min-width: 700px) { .psline2 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1024px) {
  body.has-side.wide .qitems { --qcols: minmax(0, 1fr) 84px 100px 132px 92px 128px; gap: 6px; }
  body.has-side.wide .qitems.novat { --qcols: minmax(0, 1fr) 84px 100px 132px 128px; }
  body.has-side.wide .qhead { display: grid; grid-template-columns: var(--qcols); column-gap: 8px; padding: 0 12px; font-size: 12px; font-weight: 800; color: var(--mute); text-transform: uppercase; letter-spacing: .03em; }
  body.has-side.wide .qitems.novat .qhead .qhv { display: none; }
  body.has-side.wide .qhead .qhs { text-align: right; }
  body.has-side.wide .qitem { display: grid; grid-template-columns: var(--qcols); column-gap: 8px; row-gap: 2px; align-items: center; padding: 8px 10px 6px 12px; border-radius: 16px; }
  body.has-side.wide .qitem .qline { grid-column: 1; grid-row: 1; align-items: center; }
  body.has-side.wide .qitem .qnums { display: contents; }
  body.has-side.wide .qitem .qnums > .field { grid-row: 1; min-width: 0; }
  body.has-side.wide .qitem .qlinesum { grid-row: 1; grid-column: -2 / -1; text-align: right; font-size: 14.5px; white-space: nowrap; }
  body.has-side.wide .qitem .qlinesum strong { color: var(--ink); }
  body.has-side.wide .qitem .qdetail { grid-column: 1 / -1; grid-row: 2; }
  body.has-side.wide .qitem .qdetail:not([open]) > summary { font-size: 12.5px; }
  body.has-side.wide .qitem .ql { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
  body.has-side.wide .qaddbar .btn { flex: 0 1 240px; }
  body.has-side.wide .qformhead { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px 28px; align-items: start; }
  body.has-side.wide .qformhead .qfull { grid-column: 1 / -1; }
  body.has-side.wide .qbottom { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(320px, 1fr); gap: 14px; align-items: start; }
  body.has-side.wide .qbottom .qterms { order: 1; }
  body.has-side.wide .qbottom .qtotals { order: 2; }
  body.has-side.wide .psline { grid-template-columns: minmax(0, 2.4fr) 130px 170px 190px; }
  body.has-side.wide .psline .psname { grid-column: auto; }
  body.has-side.wide .psadd { align-self: flex-start; min-width: 240px; }
}
.qok { border: 2px solid #16653433; }
.qfoot { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-top: 16px; }
.qfoot > a, .qfoot > form { flex: 1 1 150px; max-width: 260px; display: flex; }
.qfoot .btn { width: 100%; }
.linkbtn.danger { color: #B91C1C; }
.qdecide h2 { font-size: 18px; text-transform: none; letter-spacing: 0; color: inherit; }
.qreject > summary { font-size: 14px; }
.q-table { width: 100%; border-collapse: collapse; font-size: 13px; margin-top: 14px; }
.q-table th { text-align: left; font-size: 11px; text-transform: uppercase; letter-spacing: .05em; color: #78716C; font-weight: 800; padding: 6px; border-bottom: 2px solid #1C1917; }
.q-table td { padding: 7px 6px; border-bottom: 1px solid #EFEDEA; vertical-align: top; }
.q-table .n { width: 22px; color: #78716C; }
.q-table .r { text-align: right; white-space: nowrap; }
.q-table .strong { font-weight: 700; }
.q-table tr { break-inside: avoid; }
.q-sum { margin: 10px 0 0 auto; max-width: 320px; display: flex; flex-direction: column; gap: 3px; font-size: 13.5px; break-inside: avoid; }
.q-sum > div { display: flex; justify-content: space-between; gap: 16px; }
.q-sum .q-total { font-size: 17px; font-weight: 800; border-top: 2px solid #1C1917; padding-top: 6px; margin-top: 4px; }
@media (max-width: 560px) {
  .q-table thead { display: none; }
  .q-table tr { display: grid; grid-template-columns: 22px 1fr auto; column-gap: 6px; padding: 6px 0; border-bottom: 1px solid #EFEDEA; }
  .q-table td { border: 0; padding: 1px 0; }
  .q-table td.n { grid-row: span 3; }
  .q-table td:nth-child(2) { grid-column: 2 / 4; }
  .q-table td.r { text-align: left; font-size: 12.5px; color: #57534E; }
  .q-table td.r.strong { text-align: right; color: #1C1917; grid-column: 3; grid-row: 2; font-size: 13px; }
}
@media print { .q-table thead { display: table-header-group !important; } .q-table tr { display: table-row !important; } .q-table td { display: table-cell !important; border-bottom: 1px solid #EFEDEA !important; } }
@media (max-width: 1023px) { .desk-only { display: none !important; } }
.q-confirm { margin-top: 14px; }
.qsumline { font-size: 15px; }
.qprivacy > summary { font-size: 13px; }
.qprivacy p { font-size: 12.5px; margin: 6px 0 0; }
.mobileoff { display: none; }
@media (max-width: 1023px) {
  body.mobile-off .mobileoff { display: flex; flex-direction: column; }
  body.mobile-off main.wrap > :not(.mobileoff):not(.toasts) { display: none !important; }
}
@media screen { body.public .q-confirm { display: none; } }

/* E-mail */
.mailgrid { display: flex; flex-direction: column; gap: 12px; min-width: 0; }
.mailside .mailfolders { display: none; }
.mailmain { min-width: 0; }
.maillist .mailrow { align-items: center; gap: 12px; }
.mailav { flex: none; width: 38px; height: 38px; border-radius: 50%; background: color-mix(in srgb, var(--c) 18%, #fff); color: color-mix(in srgb, var(--c) 70%, #1C1917); display: inline-flex; align-items: center; justify-content: center; font-weight: 800; font-size: 15px; }
.mailtop { display: flex; justify-content: space-between; gap: 8px; align-items: baseline; }
.mailfrom { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; }
.maildate { flex: none; font-size: 12.5px; color: var(--mute); }
.mailsubj { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--mute); font-size: 14px; }
.mailrow.unread .mailfrom, .mailrow.unread .mailsubj { font-weight: 800; color: var(--ink, #1C1917); }
.mailrow.unread .maildate { color: #1D4ED8; font-weight: 700; }
.mailrow.unread::before { content: ''; flex: none; width: 7px; height: 7px; border-radius: 50%; background: #1D4ED8; margin-right: -6px; }
.mailicon { display: inline-flex; vertical-align: -2px; margin: 0 4px; color: var(--mute); }
.mailhead { display: flex; flex-direction: column; gap: 10px; }
.mailmeta > summary { font-size: 13px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mailmeta > div { font-size: 13px; margin-top: 6px; overflow-wrap: anywhere; }
.mailacts { display: flex; flex-wrap: wrap; gap: 8px; }
.mailbody { padding: 12px; overflow: hidden; }
.mailframe { display: block; width: 100%; border: 0; min-height: 120px; background: #fff; }
.mailtext { font-size: 15px; line-height: 1.55; overflow-wrap: anywhere; }
.mailtextarea { min-height: 260px; font-family: inherit; }
.pager { margin-top: 4px; }
@media (min-width: 1024px) {
  body.has-side .mailgrid { display: grid; grid-template-columns: 220px minmax(0, 1fr); align-items: start; }
  body.has-side .mailfoldsel { display: none; }
  body.has-side .mailside .mailfolders { display: block; position: sticky; top: 16px; }
  .mailfolders a.on { font-weight: 800; }
}
.mailtextarea { font-weight: 500; line-height: 1.5; }
.mailfolders a.on { background: var(--line2); margin: 0 -8px; padding-left: 8px; padding-right: 8px; border-radius: 12px; }

/* Plátce DPH */
.vatbox { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; font-size: 13px; }
.qvatnote { display: block; margin-top: 6px; font-size: 13px; line-height: 1.45; padding: 8px 10px; border-radius: 12px; background: var(--line2); color: var(--mute); }
.qvatnote.warn { background: #FEF3C7; color: #78350F; }
.qvatnote .tag { margin-right: 4px; }

/* Návrh odpovědi pomocí AI */
.sethead { margin: 8px 0 0; font-size: 15px; }
.aibox { display: flex; flex-direction: column; gap: 6px; padding: 10px 12px; border-radius: 14px; background: var(--line2); }
.aibox .airow { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 12px; }
.aibox .airow .btn { flex: none; white-space: nowrap; }
.aibox .airow [data-ai-status] { flex: 1 1 200px; }
.aibox textarea.in { min-height: 0; font-weight: 500; }
.aibox [data-ai-status] { font-size: 13px; }
.aibox [data-ai-status].err { color: #B91C1C; }

/* Informační okna */
.infodlg { border: 0; padding: 0; border-radius: 20px; width: min(640px, calc(100% - 24px)); max-height: min(86vh, 900px); background: var(--card, #fff); color: inherit; box-shadow: 0 20px 60px rgba(0, 0, 0, .25); }
.infodlg::backdrop { background: rgba(12, 10, 9, .45); }
.infodlg[open] { display: flex; flex-direction: column; }
.infodlg .infohead { display: flex; align-items: center; gap: 10px; padding: 16px 16px 10px 20px; border-bottom: 1px solid var(--line2); }
.infodlg .infohead h2 { margin: 0; flex: 1; font-size: 18px; letter-spacing: 0; text-transform: none; color: inherit; }
.infodlg .infobody { overflow-y: auto; padding: 6px 20px 20px; font-size: 14px; line-height: 1.5; }
.infodlg h3 { font-size: 15px; margin: 16px 0 6px; }
.infodlg ul, .infodlg ol { margin: 0 0 6px; padding-left: 20px; }
.infodlg li { margin: 3px 0; }

/* Významná data na Můj den */
.datescard { padding: 4px 14px; background: #FFFBEB; }
.datescard .row { min-height: 52px; }
.datescard .row:last-child { border-bottom: 0; }
.datescard .ico { color: #B45309; }

/* Práce bez signálu */
.offstatus { font-size: 13px; text-align: center; margin: 18px 8px 0; }
.uplist .upitem.queued .bar span { width: 100%; background: #B45309; }

/* Dvojice polí: v mobilu pod sebou, na širší obrazovce vedle sebe */
.pair { display: grid; grid-template-columns: 1fr; gap: 10px; }
@media (min-width: 560px) { .pair { grid-template-columns: minmax(0, 1fr) minmax(0, 1.3fr); gap: 8px; } .pair.lead { grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); } }

/* Účtenka (AI) */
.rcptup { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; }
.rcptup .btn { flex: none; }
.rcptup .muted { flex: 1; min-width: 180px; font-size: 13px; }
.rcptup .muted.err { color: #991B1B; font-weight: 700; }
.rcptup.busy .btn { opacity: .55; pointer-events: none; }
.rcptup.busy .muted::before { content: ""; display: inline-block; width: 12px; height: 12px; margin-right: 8px; border: 2px solid var(--line); border-top-color: var(--ink); border-radius: 50%; vertical-align: -1px; animation: rspin .8s linear infinite; }
@keyframes rspin { to { transform: rotate(360deg); } }
.rlink { display: inline-flex; align-items: center; gap: 3px; margin-left: 4px; color: var(--mute); font-weight: 700; text-decoration: underline; text-underline-offset: 2px; }
.rcpt { display: flex; flex-direction: column; gap: 12px; }
.rcptimg { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 10px; text-decoration: none; color: inherit; }
.rcptimg img { max-width: 100%; max-height: 200px; border-radius: 10px; object-fit: contain; background: var(--line2); }
.rcptmain { min-width: 0; }
.rrows { display: flex; flex-direction: column; gap: 8px; }
.rrow { display: flex; gap: 10px; align-items: flex-start; padding: 10px; border: 1px solid var(--line); border-radius: 14px; background: #fff; }
.rrow.off { background: var(--line2); }
.rrow.off .rfields { opacity: .55; }
.rrow.blank { border-style: dashed; }
.rinc { display: flex; align-items: center; justify-content: center; min-width: 30px; min-height: 44px; cursor: pointer; }
.rinc input { width: 22px; height: 22px; margin: 0; accent-color: var(--ink); }
.rfields { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 6px; }
.rnums { display: flex; gap: 6px; }
.rnums .in { flex: 1; min-width: 0; }
.rnums .in[name^="unit"] { flex: 0 0 72px; }
.rfields select.in { font-size: 13.5px; }
.rsum { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 12px; font-size: 15px; }
.rsum .qvatnote { flex-basis: 100%; margin-top: 2px; }
@media (min-width: 900px) {
  .rcpt { flex-direction: row; align-items: flex-start; }
  .rcptimg { flex: 0 0 220px; position: sticky; top: 12px; }
  .rcptimg img { max-height: 420px; }
  .rcptmain { flex: 1; }
}

/* Manuály a katalogy */
.crumbs { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; font-size: 13.5px; font-weight: 700; color: var(--soft); padding: 0 2px; }
.crumbs a { color: var(--mute); text-decoration: underline; text-underline-offset: 2px; }
.crumbs [aria-current] { color: var(--ink); }
.docico { width: 40px; height: 40px; border-radius: 12px; background: #FEE2E2; color: #991B1B; display: inline-flex; align-items: center; justify-content: center; flex: none; }
.docico.folder { background: #FEF3C7; color: #92400E; }
.docico.link { background: #E0E7FF; color: #3730A3; }
.docico.img { background: #DCFCE7; color: #166534; }
.docfolders .row, .docitems .row { text-decoration: none; color: inherit; }
.docitems .row { gap: 4px; }
.docmain { display: flex; align-items: center; gap: 12px; flex: 1; min-width: 0; text-decoration: none; color: inherit; padding: 4px 0; }
.docmain .grow { min-width: 0; }
.docmain .strong { overflow-wrap: anywhere; }
.docnote { display: block; font-size: 12.5px; margin-top: 2px; }
.rb.sm { width: 38px; height: 38px; }
.docmanage summary { display: flex; align-items: center; gap: 8px; cursor: pointer; }
.docfile { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 8px; font-weight: 700; margin: 4px 0 6px; }
.docfile a { color: var(--ink); overflow-wrap: anywhere; }

/* Formulář jen pro čtení (role bez úprav) */
.rofs { display: contents; border: 0; margin: 0; padding: 0; min-width: 0; }
.rofs .in:disabled, .rofs select:disabled, .rofs textarea:disabled { color: var(--ink); opacity: 1; background: var(--line2); }

/* Role a oprávnění */
.rolechip { width: 14px; height: 14px; border-radius: 50%; background: var(--c); flex: none; margin: 0 6px; }
.rolebar { display: flex; align-items: center; gap: 12px; padding: 0 4px; flex-wrap: wrap; }
.rolegroup { padding: 6px 14px; }
.rolegrid { display: grid; grid-template-columns: minmax(0, 1fr) repeat(3, 76px); gap: 6px; align-items: center; }
.rolehead { padding: 8px 0 6px; border-bottom: 1px solid var(--line); font-size: 12px; font-weight: 800; color: var(--soft); text-transform: uppercase; letter-spacing: .03em; }
.rolehead span:not(.strong) { text-align: center; }
.rolehead .strong { font-size: 14px; color: var(--ink); text-transform: none; letter-spacing: 0; }
.rolerow { padding: 10px 0; border-bottom: 1px solid var(--line2); }
.rolerow:last-child { border-bottom: 0; }
.rolelabel { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.rolelabel .muted { font-size: 12.5px; line-height: 1.4; }
.rolecheck { display: flex; flex-direction: column; align-items: center; gap: 3px; cursor: pointer; font-size: 11.5px; font-weight: 700; color: var(--soft); min-height: 44px; justify-content: center; border-radius: 10px; }
.rolecheck input { width: 22px; height: 22px; margin: 0; accent-color: var(--ink); }
.rolecheck.on { color: var(--ink); }
.rolecheck span { display: none; }
.rolecheck.span3 { grid-column: 2 / span 3; flex-direction: row; justify-content: flex-start; gap: 10px; padding-left: 26px; }
.rolecheck.span3 span { display: inline; font-size: 13px; }
.rolena { text-align: center; color: var(--line); font-weight: 800; }
@media (max-width: 560px) {
  .rolegrid { grid-template-columns: minmax(0, 1fr) repeat(3, 52px); gap: 4px; }
  .rolehead span:not(.strong) { font-size: 10px; }
  .rolecheck.span3 { padding-left: 14px; }
}

/* Zákaz přibližování (nastavení Zobrazení) */
html[data-nozoom] { touch-action: manipulation; }

/* Kalkulačky */
.calcico { background: #E0E7FF; color: #3730A3; }
.calcrows { display: flex; flex-direction: column; gap: 8px; }
.calcrow { display: flex; align-items: flex-end; gap: 8px; }
.calcrow > .field { flex: 1; min-width: 0; }
.calcrow .rb { margin-bottom: 4px; }
.calcx { padding-bottom: 14px; font-weight: 800; color: var(--soft); }
.calcres { display: grid; grid-template-columns: auto 1fr; gap: 8px 14px; margin: 0; align-items: baseline; }
.calcres dt { color: var(--mute); font-size: 14px; }
.calcres dd { margin: 0; font-weight: 800; text-align: right; overflow-wrap: anywhere; }
.calcres dd.big { font-size: 19px; }
.calcres .ok { color: #166534; }
.calcres .bad { color: #B91C1C; }
.calcout { border: 2px solid var(--ink); }
.calcbar { display: flex; gap: 8px; flex-wrap: wrap; }
.calcrow.four, .calcrow.three { flex-wrap: wrap; }
.calcrow.four > .field { flex: 1 1 calc(50% - 30px); }
@media (min-width: 640px) { .calcrow.four { flex-wrap: nowrap; } .calcrow.four > .field { flex: 1 1 0; } }
.calcrow.two > .field:first-child { flex: 2 1 0; }

/* 0.9.5: ceník položek a výběr z ceníku */
/* Tlačítka pod položkami vždy v jednom řádku: Z ceníku, Z výroby, Přidat položku */
.qaddbar { display: flex; gap: 8px; }
.qaddbar .btn { flex: 1 1 0; min-width: 0; padding: 0 10px; white-space: nowrap; gap: 6px; }
.qaddbar .btn > span { overflow: hidden; text-overflow: ellipsis; }
.qaddbar .qas { display: none; }
@media (max-width: 479px) { .qaddbar:has(> .btn:nth-child(3)) .qal { display: none; } .qaddbar:has(> .btn:nth-child(3)) .qas { display: inline; } .qaddbar .btn { font-size: 14px; padding: 0 8px; } }
.qaddbar .cnt { font-weight: 700; color: var(--soft); }
.qpick { border: 0; padding: 0; border-radius: 22px; width: min(560px, calc(100% - 24px)); max-height: min(720px, calc(100% - 48px)); display: none; flex-direction: column; background: var(--bg, #F5F5F4); color: var(--ink); box-shadow: 0 20px 60px rgba(0,0,0,.25); }
.qpick[open] { display: flex; }
.qpick::backdrop { background: rgba(12,10,9,.45); }
.qpickhead { display: flex; gap: 8px; align-items: center; padding: 12px 12px 8px; }
.qpickhead .search { flex: 1; }
.qpicklist { overflow-y: auto; padding: 0 12px; flex: 1 1 auto; min-height: 0; -webkit-overflow-scrolling: touch; }
.qpicklist .empty { padding: 18px 4px; text-align: center; }
.qpickcat { font-size: 12px; font-weight: 800; color: var(--mute); text-transform: uppercase; letter-spacing: .04em; margin: 12px 4px 6px; }
.qpickitem { display: flex; align-items: center; gap: 10px; width: 100%; text-align: left; border: 0; background: #fff; border-radius: 14px; padding: 10px 12px; margin-bottom: 6px; cursor: pointer; color: var(--ink); font: inherit; }
.qpickitem .grow { display: flex; flex-direction: column; min-width: 0; }
.qpickitem .muted { font-size: 13px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.qpickprice { font-weight: 700; font-size: 14px; white-space: nowrap; }
.qpickcnt { min-width: 34px; height: 30px; border-radius: 15px; display: inline-flex; align-items: center; justify-content: center; background: var(--line2); font-weight: 800; font-size: 13px; flex: none; padding: 0 8px; }
.qpickitem.added { box-shadow: inset 0 0 0 2px #16653455; }
.qpickitem.added .qpickcnt { background: #DCFCE7; color: #166534; }
.qpickfoot { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 10px 12px 12px; border-top: 1px solid var(--line2); }
.qpickfoot .btn { margin-left: auto; }
.prow > summary { list-style: none; cursor: pointer; }
.prow > summary::-webkit-details-marker { display: none; }
.prow:last-child:not([open]) > summary { border-bottom: 0; }
.prow[open] > summary { border-bottom: 0; }
.prow .presetform { padding: 0 0 14px; border-bottom: 1px solid var(--line2); }
.prow:last-child .presetform { border-bottom: 0; }
.prow .pdetail { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.qvalidhint { margin-top: -4px; }

/* Oblíbené kalkulačky */
.calcitem { gap: 4px; }
.calclink { display: flex; align-items: center; gap: 12px; text-decoration: none; color: inherit; min-width: 0; }
.calcstar { color: var(--soft); }
.calcstar svg { transition: transform .15s; }
.calcstar.on { color: #D97706; }
.calcstar.on svg path { fill: currentColor; }
.calcstar:active svg { transform: scale(.85); }
h2 svg { vertical-align: -3px; color: #D97706; }
.calctip { margin: 2px 4px 0; font-size: 13px; }
.calctip svg { vertical-align: -2px; }

/* Pořadí položek ve Více */
.molist { display: flex; flex-direction: column; border: 1px solid var(--line2); border-radius: 14px; overflow: hidden; }
.morow { display: flex; align-items: center; gap: 2px; padding: 2px 4px 2px 14px; min-height: 46px; background: #fff; border-bottom: 1px solid var(--line2); }
.morow:last-child { border-bottom: 0; }
.morow .rb:disabled { opacity: .25; cursor: default; }

/* Fotky u požadavku zákazníka */
.reqphotos { display: flex; flex-wrap: wrap; gap: 6px; }
.reqphotos a, .reqaddbtn { width: 72px; height: 72px; border-radius: 12px; overflow: hidden; display: block; background: var(--line); flex: none; }
.reqphotos img { width: 100%; height: 100%; object-fit: cover; display: block; }
.reqadd { display: contents; }
.reqaddbtn { display: inline-flex; align-items: center; justify-content: center; background: var(--line2); color: var(--mute); border: 1.5px dashed #D6D3D1; cursor: pointer; }
.reqaddbtn:focus-within { outline: 2px solid var(--ink); outline-offset: 2px; }
.reqpick { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.reqpreview { display: contents; }
.reqthumb { position: relative; width: 64px; height: 64px; border-radius: 12px; overflow: hidden; background: var(--line); flex: none; }
.reqthumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.reqthumb button { position: absolute; top: 3px; right: 3px; width: 24px; height: 24px; border-radius: 50%; border: 0; background: rgba(12,10,9,.7); color: #fff; font-size: 16px; line-height: 1; cursor: pointer; }
.reqpick label.disabled { opacity: .45; pointer-events: none; }

/* iOS 26 v aplikaci na ploše rozmazává obsah pod stavovým řádkem. Při posunu stránky ho zakryje plný pruh v barvě pozadí,
   systémové rozmazání pak nemá co rozmazat a horní okraj zůstane čistý. */
@media (display-mode: standalone) {
  body::before { content: ''; position: fixed; z-index: 60; top: 0; left: 0; right: 0; height: calc(env(safe-area-inset-top) + 10px); background: linear-gradient(to bottom, var(--bg) calc(100% - 10px), rgba(247, 246, 243, 0)); opacity: 0; transition: opacity .12s; pointer-events: none; }
  html.scrolled body::before { opacity: 1; }
  html.scrolled body.chatpage::before { opacity: 0; }
}
.tmin { display: flex; flex-direction: column; align-items: flex-end; text-align: right; flex: none; }
.tmin .muted { font-size: 12px; white-space: nowrap; }
/* Zpět na Více jen v mobilu, na počítači je boční menu */
@media (min-width: 1024px) { body.has-side .backmore { display: none; } }
/* Logo Dayline s nápisem */
.loginlogo { display: flex; flex-direction: column; align-items: center; gap: 8px; text-align: center; }
.loginlogo img { height: 54px; width: auto; }
.loginlogo .sub { font-size: 15px; font-weight: 600; color: var(--mute); }
.nav .brand.dlbrand .dlogo { display: block; height: 30px; width: auto; margin: 2px 0 6px; }

/* 0.9.8: kalkulačka v okně nabídky */
.qcalcbtn { color: #1D4ED8; }
.qcalc { border: 0; padding: 0; border-radius: 22px; width: min(620px, calc(100% - 20px)); max-height: calc(100% - 40px); display: none; flex-direction: column; background: var(--bg, #F5F5F4); color: var(--ink); box-shadow: 0 20px 60px rgba(0,0,0,.25); }
.qcalc[open] { display: flex; }
.qcalc::backdrop { background: rgba(12,10,9,.45); }
.qcalchead { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 12px 12px 8px 18px; }
.qcalchead strong { font-size: 18px; }
.qcalcbody { overflow-y: auto; padding: 0 12px 12px; flex: 1 1 auto; min-height: 0; -webkit-overflow-scrolling: touch; }
.qcalcbody .calc { gap: 10px; }
.qcalcuse { flex: none; border-radius: 0 0 22px 22px; border-top: 1px solid var(--line2); padding: 10px 14px 14px; display: flex; flex-direction: column; gap: 6px; max-height: 38vh; overflow-y: auto; background: #fff; }
.qcalcuse .sethead { margin: 0; }
.qcalcrow { display: flex; align-items: center; justify-content: space-between; gap: 8px; flex-wrap: wrap; }
.qcalcrow .muted { font-size: 13px; flex: 1 1 180px; }
.qcalcchips { display: flex; gap: 6px; flex-wrap: wrap; }
/* Aktualizace */
.updbar { display: flex; align-items: center; gap: 10px; padding: 10px 10px 10px 14px; background: #EFF6FF; border: 1px solid #BFDBFE; color: #1E3A8A; margin-bottom: 12px; }
.updbar svg { flex: none; }
.updbar form { display: flex; }
.updnotes { margin: 0; padding-left: 20px; display: flex; flex-direction: column; gap: 4px; }
.rdot { flex: none; width: 10px; height: 10px; border-radius: 50%; background: #DC2626; display: inline-block; margin-left: 6px; }
.rdot.ndot { position: absolute; top: -3px; right: -5px; margin: 0; box-shadow: 0 0 0 2px #fff; }
.nav a.on .rdot.ndot { box-shadow: 0 0 0 2px var(--ink); }
.nav .rdot.sdot { margin-left: auto; }
@media (min-width: 1024px) { .nav a.more .rdot.ndot { display: none; } }
.bkrow { display: flex; align-items: center; gap: 10px; padding: 8px 0; border-bottom: 1px solid var(--line2); }
.bkrow:last-of-type { border-bottom: 0; }
.bkrow .muted { font-size: 12.5px; word-break: break-all; }
/* Resetovat aplikaci */
.resetwarn { border: 1.5px solid #FECACA; background: #FEF2F2; }
.resetwarn .strong { color: #991B1B; }
.resetq { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; font-size: 22px; font-weight: 800; }
.resetq .in { width: 140px; font-size: 22px; font-weight: 800; text-align: center; }
.btn.dangerfill { background: #DC2626; color: #fff; border-color: #DC2626; }
/* Logo Dayline a název firmy v bočním menu na střed */
.nav .brand.dlbrand { justify-content: center; }
.nav .brand.dlbrand .grow { align-items: center; text-align: center; width: 100%; }
.nav .brand.dlbrand .muted { max-width: 100%; }
/* 0.9.9: podbarvení zakázky */
[data-tint="zluta"] { --tbg: #FEF3C7; --tedge: #D97706; }
[data-tint="oranzova"] { --tbg: #FFEDD5; --tedge: #EA580C; }
[data-tint="cervena"] { --tbg: #FEE2E2; --tedge: #DC2626; }
[data-tint="ruzova"] { --tbg: #FCE7F3; --tedge: #DB2777; }
[data-tint="fialova"] { --tbg: #EDE9FE; --tedge: #7C3AED; }
[data-tint="modra"] { --tbg: #DBEAFE; --tedge: #2563EB; }
[data-tint="tyrkysova"] { --tbg: #CFFAFE; --tedge: #0891B2; }
[data-tint="zelena"] { --tbg: #DCFCE7; --tedge: #16A34A; }
[data-tint="seda"] { --tbg: #E7E5E4; --tedge: #57534E; }
.jobcard[data-tint] { background: var(--tbg); box-shadow: inset 5px 0 0 var(--tedge); padding-left: 20px; }
.jobhead[data-tint] { background: var(--tbg); }
.card.plan[data-tint] { background: var(--tbg); border-left-color: var(--tedge); }
.plangroup[data-tint] { background: var(--tbg); }
.tintpick { border: 0; padding: 0; margin: 0; min-width: 0; }
.tintpick legend { padding: 0; margin-bottom: 6px; font-weight: 700; font-size: 13.5px; }
.tints { display: flex; flex-wrap: wrap; gap: 8px; }
.tintopt { position: relative; display: inline-flex; cursor: pointer; padding: 0; border: 0; background: none; }
.tintopt input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.tintopt .sw { width: 36px; height: 36px; border-radius: 50%; background: var(--tbg, #fff); border: 2.5px solid var(--tedge, #D6D3D1); display: inline-flex; align-items: center; justify-content: center; color: #78716C; font-size: 18px; font-weight: 700; }
.tintopt input:checked + .sw, .tintopt.on .sw { box-shadow: 0 0 0 3px #fff, 0 0 0 5px var(--ink); }
.tintopt input:focus-visible + .sw { outline: 2px solid var(--ink); outline-offset: 3px; }
.tintopt .sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.tintmenu { position: relative; }
.tintmenu > summary { list-style: none; cursor: pointer; }
.tintmenu > summary::-webkit-details-marker { display: none; }
.tintdot { width: 20px; height: 20px; border-radius: 50%; background: conic-gradient(#FBBF24, #F87171, #A78BFA, #60A5FA, #34D399, #FBBF24); box-shadow: 0 0 0 2px #fff inset; display: inline-block; }
.tintpop { position: absolute; right: 0; top: calc(100% + 6px); z-index: 30; background: #fff; border-radius: 18px; padding: 12px; box-shadow: 0 12px 36px rgba(0,0,0,.18); display: flex; flex-direction: column; gap: 8px; width: 236px; }
/* 0.9.10: mapa se špendlíkem v záhlaví zakázky (počítač): na výšku přes celé podbarvení, tlačítka přes mapu, nejde na ni klikat */
.jobhead { position: relative; }
.jhmain { display: contents; }
.jhtools { position: absolute; z-index: 3; top: calc(14px + env(safe-area-inset-top)); right: 16px; display: flex; gap: 6px; }
.jobmap { display: none; }
@media (min-width: 1024px) {
  .jhtools { top: 22px; right: 36px; }
  .jobhead.hasmap { padding-right: calc(var(--mapw, 300px) + 32px); min-height: 300px; }
  .jobhead.hasmap .jhtools { right: 16px; }
  .jobhead.hasmap .jhtools .rb { box-shadow: 0 2px 8px rgba(0,0,0,.18); }
  .jobhead.hasmap .jobmap { display: block; position: absolute; z-index: 1; top: 0; right: 0; bottom: 0; width: var(--mapw, 300px); border-radius: 0 0 24px 0; overflow: hidden; background: #E7E5E4; pointer-events: none; user-select: none; }
  .jmtiles { position: absolute; inset: 0; filter: grayscale(20%); }
  .jmtiles img { position: absolute; width: 256px; height: 256px; max-width: none; }
  .jmpin { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -100%); line-height: 0; filter: drop-shadow(0 2px 3px rgba(0,0,0,.3)); }
  .jmattr { position: absolute; left: 6px; bottom: 4px; font-size: 9.5px; color: #57534E; background: rgba(255,255,255,.75); padding: 0 4px; border-radius: 4px; }
}
.bkdlg { border: 0; border-radius: 22px; padding: 18px; width: min(420px, calc(100% - 24px)); box-shadow: 0 20px 60px rgba(0,0,0,.25); }
.bkdlg::backdrop { background: rgba(12,10,9,.45); }
.bkrow .rb.plain { color: var(--bad, #B91C1C); }
/* 0.9.14: seznamy na počítači ve dvou sloupcích místo prázdných okrajů */
.cols2 { display: flex; flex-direction: column; gap: 14px; }
.colgroup { display: flex; flex-direction: column; gap: 14px; }
@media (min-width: 1200px) {
  body.has-side.wide .split2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 32px; }
  body.has-side.wide .split2 > :nth-last-child(2):nth-child(odd),
  body.has-side.wide .split2 > form:nth-last-child(2):nth-child(odd) button { border-bottom: 0; }
  body.has-side.wide .cols2 { display: block; columns: 2; column-gap: 24px; }
  body.has-side.wide .cols2 > .colgroup { break-inside: avoid; margin-bottom: 18px; }
  body.has-side.wide .cols2 > .colgroup > h2 { margin-top: 0; }
}
@media (min-width: 1200px) {
  body.has-side.wide .split2 > .empty, body.has-side.wide .split2 > :only-child { grid-column: 1 / -1; }
}
/* Zákazníci a dodavatelé: na počítači dvě karty vedle sebe, v mobilu spojené do jedné */
.pair2 { display: flex; flex-direction: column; gap: 0; }
.pair2 > .card + .card { border-top-left-radius: 0; border-top-right-radius: 0; }
.pair2 > .card:not(:last-child) { border-bottom-left-radius: 0; border-bottom-right-radius: 0; }
.pair2 > .card + .card > .row:first-child { border-top: 1px solid var(--line2); }
@media (min-width: 1200px) {
  body.has-side.wide .pair2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; align-items: start; }
  body.has-side.wide .pair2 > .card { border-radius: var(--r, 20px); }
  body.has-side.wide .pair2 > .card + .card > .row:first-child { border-top: 0; }
}
/* Na počítači každý řádek jako samostatná dlaždice (Zákazníci, Dodavatelé, Administrace) */
@media (min-width: 1200px) {
  body.has-side.wide .pair2 > .card.list { background: transparent; padding: 0; display: flex; flex-direction: column; gap: 10px; }
  body.has-side.wide .pair2 > .card.list > .row { background: var(--card); border-radius: 16px; padding: 8px 14px; border: 0; }
  body.has-side.wide .pair2 > .card.list > a.row:hover { background: #FAFAF9; }
  body.has-side.wide .menu.tiles { background: transparent; padding: 0 !important; gap: 10px 24px; }
  body.has-side.wide .menu.tiles > a { background: var(--card); border-radius: 16px; padding: 0 14px; border-bottom: 0; min-height: 66px; }
  body.has-side.wide .menu.tiles > a:hover { background: #FAFAF9; }
}
/* 0.9.17: Výroba */
.pcard { display: flex; flex-direction: column; gap: 6px; }
.pcard .top { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.pcard .num { margin-left: auto; font-size: 12px; font-weight: 700; color: var(--soft); }
.pcard .title { font-size: 16.5px; font-weight: 800; display: block; }
.pcard .foot { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.pcard .when { font-size: 13px; color: var(--mute); display: inline-flex; gap: 5px; align-items: center; }
.pcard .when.late { color: var(--bad); font-weight: 700; }
.pcard[data-tint] { background: var(--tbg); box-shadow: inset 5px 0 0 var(--tedge); padding-left: 19px; }
.pcard.dragging { opacity: .45; }
.pprog { display: block; height: 6px; border-radius: 3px; background: var(--line2); overflow: hidden; }
.pprog > span { display: block; height: 100%; background: #16A34A; border-radius: 3px; }
.pprog.big { height: 10px; border-radius: 5px; }
.pboard { display: flex; flex-direction: column; gap: 14px; }
.pcol { display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.pcol h2 { display: flex; align-items: center; gap: 6px; margin: 4px 2px 0; }
.pcol h2 .dot { width: 10px; height: 10px; border-radius: 50%; background: var(--c); display: inline-block; }
.pcolbody { display: flex; flex-direction: column; gap: 10px; min-height: 8px; }
.pcol.empty { display: none; }
@media (min-width: 1024px) {
  .pboard { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 14px; align-items: start; }
  .pcol, .pcol.empty { display: flex; background: rgba(0,0,0,.025); border-radius: 18px; padding: 10px; min-height: 240px; }
  .pcol.over { background: rgba(37,99,235,.08); box-shadow: inset 0 0 0 2px #93C5FD; }
  .pcard[draggable="true"] { cursor: grab; }
}
.pparams { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; align-items: end; }
.pparams:empty { display: none; }
.pchip { display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px 4px 6px; border-radius: 18px; background: var(--line2); }
.ptable { display: flex; flex-direction: column; }
.ptable > .prow { display: flex; align-items: baseline; gap: 10px; padding: 7px 0; border-bottom: 1px solid var(--line2); }
.ptable > .prow:last-child { border-bottom: 0; }
.plen { color: var(--mute); white-space: nowrap; }
.pqty { font-weight: 800; white-space: nowrap; min-width: 54px; text-align: right; }
.pstatus { display: flex; flex-wrap: wrap; gap: 6px; }
.pstatus form { display: inline-flex; }
.pstatus .chip.on { background: var(--c); border-color: var(--c); color: #fff; }
.phead[data-tint] { background: var(--tbg); box-shadow: inset 5px 0 0 var(--tedge); }
.phead h1 { font-size: 24px; }
.ppart.done .strong { color: var(--ok, #166534); }
.ppart.done { background: #F0FDF4; margin: 0 -14px; padding-left: 14px; padding-right: 14px; }
.pcount { white-space: nowrap; font-size: 14px; color: var(--mute); }
.pcount strong { color: var(--ink); font-size: 16px; }
.pbtns { display: inline-flex; align-items: center; gap: 4px; }
.pbtns form { display: inline-flex; }
.pbtns .rb.sm { font-size: 20px; font-weight: 800; }
.cutgroup { display: flex; flex-direction: column; gap: 6px; padding-bottom: 10px; border-bottom: 1px solid var(--line2); }
.cutgroup:last-child { border-bottom: 0; padding-bottom: 0; }
.cutbar { display: flex; align-items: center; gap: 8px; }
.cutn { font-weight: 800; min-width: 34px; text-align: right; font-size: 14px; }
.cuttrack { flex: 1; display: flex; height: 26px; border-radius: 6px; overflow: hidden; background: #E7E5E4; gap: 2px; }
.cutpc { background: #DBEAFE; color: #1E3A8A; font-size: 11px; font-weight: 700; display: flex; align-items: center; justify-content: center; min-width: 0; overflow: hidden; white-space: nowrap; }
.cutrest { background: repeating-linear-gradient(45deg, #F5F5F4, #F5F5F4 4px, #E7E5E4 4px, #E7E5E4 8px); color: #78716C; font-size: 10.5px; display: flex; align-items: center; justify-content: center; min-width: 0; overflow: hidden; white-space: nowrap; }
.prmrow { display: grid; grid-template-columns: .9fr 1.3fr .8fr .6fr 1fr 1.7fr auto; gap: 8px; align-items: end; }
.partrow { display: grid; grid-template-columns: 1fr 1fr 1.3fr 1.3fr .6fr .55fr 1fr 1.1fr auto; gap: 8px; align-items: end; padding-bottom: 10px; border-bottom: 1px solid var(--line2); }
.prmrow input:disabled { opacity: .45; }
/* Barva dílu: kolečko s náhledem a název */
.pcolor { display: inline-flex; align-items: center; gap: 5px; padding: 1px 8px 1px 4px; border-radius: 999px; background: var(--line2); font-size: 12px; font-weight: 700; color: #44403C; vertical-align: middle; white-space: nowrap; }
.pcolor:not(:has(.pcsw)) { padding-left: 8px; }
.pcsw { width: 13px; height: 13px; border-radius: 50%; background: var(--sw, #ccc); box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .18); flex: none; -webkit-print-color-adjust: exact; print-color-adjust: exact; }
.card.plan.pdue:not([data-tint]) { background: #FFFBEB; }
fieldset.invkindset { border: 0; padding: 0; margin: 0; min-width: 0; }
fieldset.invkindset legend { padding: 0; margin-bottom: 6px; font-weight: 700; font-size: 13.5px; }
/* Výrobek z výroby v nabídce */
.qprodbody { overflow-y: auto; padding: 4px 12px 8px; flex: 1 1 auto; min-height: 0; -webkit-overflow-scrolling: touch; }
.qprodbody .pparams { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; align-items: end; }
.qprodprev { background: #fff; border-radius: 14px; padding: 12px; gap: 4px; }
.qpickhead .strong.grow { display: flex; gap: 8px; align-items: center; padding-left: 4px; }
/* Návod ke vzorcům */
.help p { margin: 0; line-height: 1.5; }
.help code { background: var(--line2); padding: 1px 6px; border-radius: 6px; font-size: 13px; font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; }
.htable { display: flex; flex-direction: column; border-top: 1px solid var(--line2); }
.htable > div { display: grid; grid-template-columns: minmax(120px, 220px) 1fr; gap: 6px 14px; padding: 9px 0; border-bottom: 1px solid var(--line2); line-height: 1.45; }
.htable.fx > div { grid-template-columns: minmax(160px, 320px) 1fr; }
.htable.fx > div > code:first-child { background: none; padding: 0; font-size: 13.5px; }
@media (max-width: 640px) { .htable > div, .htable.fx > div { grid-template-columns: 1fr; } }
/* Tlačítka v záhlaví výroby (stopky, štítky) */
.phead .acts { display: flex; gap: 8px; padding-top: 4px; max-width: 520px; }
.phead .acts form { flex: 1; display: flex; }
.phead .acts a, .phead .acts button { flex: 1; display: flex; align-items: center; justify-content: center; gap: 6px; min-height: 44px; border-radius: 22px; background: #F5F5F4; border: 0; font-weight: 800; font-size: 13.5px; color: var(--ink); cursor: pointer; }
.phead[data-tint] .acts a, .phead[data-tint] .acts button { background: #fff; }
.phead .acts button.running { background: #166534; color: #fff; }
.pmat .row .ck { flex: none; }
.partrow:last-child { border-bottom: 0; }
@media (max-width: 899px) {
  .prmrow { grid-template-columns: 1fr 1fr; }
  .partrow { grid-template-columns: 1fr 1fr; }
  .prmrow > .rb, .partrow > .rb { justify-self: end; }
}
.mono { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: 14px; }
.fhelp code { background: var(--line2); padding: 1px 5px; border-radius: 5px; font-size: 12.5px; }
.printonly { display: none; }
@media print {
  .nav, .noprint, .toasts, .netpill, .backmore, .sticky-actions { display: none !important; }
  .printonly { display: block !important; }
  body { background: #fff !important; }
  .wrap { max-width: none !important; padding: 0 !important; }
  .card { box-shadow: none !important; border: 1px solid #ddd; break-inside: avoid; }
  .cutpc, .cutrest, .pprog > span { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
}

/* Administrace platformy a společné přihlášení (více firem) */
body.platform .wrap { max-width: 1120px; }
.ptop { display: flex; align-items: center; gap: 16px; padding: 12px 20px; background: #fff; box-shadow: 0 1px 0 var(--line); position: sticky; top: 0; z-index: 10; flex-wrap: wrap; }
.ptbrand { display: flex; align-items: center; gap: 10px; }
.ptnav { display: flex; gap: 4px; flex: 1; flex-wrap: wrap; }
.ptnav a { padding: 8px 14px; border-radius: 18px; font-weight: 700; color: var(--mute); display: inline-flex; align-items: center; gap: 6px; }
.ptnav a.on { background: var(--ink); color: #fff; }
.ptout .btn span { max-width: 160px; overflow: hidden; text-overflow: ellipsis; }
@media (max-width: 720px) {
  .ptop { gap: 8px 10px; padding: 10px 14px; }
  .ptout { margin-left: auto; }
  .ptout .btn span { display: none; }
  .ptnav { order: 3; flex: 1 0 100%; flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; }
  .ptnav a { padding: 7px 12px; white-space: nowrap; }
}
.ftable .row { display: grid; grid-template-columns: minmax(0, 1fr) 70px 80px 100px 100px 100px; gap: 10px; align-items: center; }
.ftable .fhead { font-size: 12px; font-weight: 800; color: var(--mute); text-transform: uppercase; letter-spacing: .03em; min-height: 40px; }
.ftable .fnum { text-align: right; white-space: nowrap; }
@media (max-width: 760px) { .ftable .row { grid-template-columns: minmax(0, 1fr) 60px 90px; } .ftable .row > :nth-child(3), .ftable .row > :nth-child(5), .ftable .row > :nth-child(6) { display: none; } }
.kv { display: grid; grid-template-columns: minmax(120px, 180px) 1fr; gap: 6px 14px; font-size: 14.5px; }
.kv > :nth-child(odd) { color: var(--mute); }
body.platform .pair2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 14px; align-items: start; }
