/* Matice. – společné komponenty autoservisu a přehled dne (návrh B „Ráno v dílně“).
 * Obecné prvky (karty, tlačítka, tabulky, okna) jsou v app.css; tady je to, co je jen pro dílnu.
 */

/* ---------- SPZ ---------- */
/* malá raženka v textu: <span class="spz">5K2 4810</span> */
.spz { display: inline-block; font-family: var(--mono); font-size: 10.5px; font-weight: 600; line-height: 16px; letter-spacing: 0.04em; padding: 0 5px; border-radius: 4px; color: var(--mu); box-shadow: inset 0 0 0 1px rgba(255, 240, 220, 0.3); vertical-align: 1px; white-space: nowrap; }
b .spz, h1 .spz, h2 .spz, h3 .spz { margin-left: 6px; }
/* velká česká SPZ (bílá tabulka s modrým pruhem EU): <span class="plate"><i>CZ</i>5K2 4810</span> */
.plate { display: inline-flex; align-items: stretch; height: 34px; border-radius: 6px; overflow: hidden; background: #f7f7f2; color: #121212; box-shadow: inset 0 0 0 1.5px #1c1c1c, 0 6px 16px -8px rgba(0, 0, 0, 0.7); font: 700 19px/34px var(--mono); letter-spacing: 0.06em; white-space: nowrap; }
.plate i { display: grid; place-items: end center; width: 20px; padding-bottom: 2px; font: 700 8.5px/1 var(--font); font-style: normal; letter-spacing: 0; color: #fff; background: #1d4fb8; }
.plate span { padding: 0 10px 0 8px; }
.plate.lg { height: 56px; font-size: 34px; line-height: 56px; border-radius: 9px; }
.plate.lg i { width: 32px; font-size: 12px; padding-bottom: 5px; }
.plate.lg span { padding: 0 16px 0 12px; }

/* ---------- stav zakázky ---------- */
.st { display: inline-flex; align-items: center; gap: 6px; height: 24px; padding: 0 10px; border-radius: 999px; font-size: 12px; font-weight: 600; white-space: nowrap; background: rgba(255, 240, 220, 0.1); color: var(--mu); }
.st::before { content: ''; width: 7px; height: 7px; border-radius: 50%; background: currentColor; flex: none; }
.st.objednano { color: var(--mu); }
.st.prijato { color: var(--info); background: var(--info-bg); }
.st.v_praci { color: var(--amber-hi); background: var(--warn-bg); }
.st.v_praci::before { animation: stpulse 1.8s infinite; }
.st.ceka_schvaleni, .st.ceka_dily { color: var(--amber); background: rgba(255, 179, 64, 0.14); }
.st.ceka_schvaleni::before, .st.ceka_dily::before { width: 14px; height: 7px; border-radius: 1.5px; background: var(--hazard); }
.st.hotovo { color: var(--ok); background: var(--ok-bg); }
.st.predano { color: var(--mu2); }
.st.zruseno { color: var(--mu3); text-decoration: line-through; }
@keyframes stpulse { 0% { box-shadow: 0 0 0 0 rgba(255, 179, 64, 0.6); } 70% { box-shadow: 0 0 0 6px rgba(255, 179, 64, 0); } 100% { box-shadow: 0 0 0 0 rgba(255, 179, 64, 0); } }

/* ---------- semafor prohlídky ---------- */
.sem { display: inline-block; width: 10px; height: 10px; border-radius: 50%; flex: none; vertical-align: 0; }
.sem.ok { background: var(--ok); box-shadow: 0 0 8px -1px rgba(169, 224, 143, 0.7); }
.sem.doporuceno { background: var(--amber); box-shadow: 0 0 8px -1px rgba(255, 179, 64, 0.8); }
.sem.nutne { background: #ff6b4a; box-shadow: 0 0 8px -1px rgba(255, 107, 74, 0.8); }
.semset { display: inline-flex; gap: 4px; padding: 3px; border-radius: 999px; background: rgba(8, 6, 4, 0.3); box-shadow: inset 0 0 0 1px rgba(255, 240, 220, 0.09); }
.semset button { height: 30px; padding: 0 11px; border-radius: 999px; display: inline-flex; align-items: center; gap: 6px; font-size: 12.5px; font-weight: 600; color: var(--mu); }
.semset button.on.ok { color: #10230a; background: var(--ok); }
.semset button.on.doporuceno { color: var(--amber-ink); background: var(--amber); }
.semset button.on.nutne { color: #2c0a03; background: #ff8a6c; }

/* výstražný pruh (stojí, čeká) */
.hz { display: inline-block; width: 26px; height: 7px; border-radius: 1.5px; background: var(--hazard); vertical-align: 1px; }

/* ---------- dílkový průběh dne ---------- */
.segp { display: grid; grid-template-columns: repeat(var(--n, 18), minmax(0, 1fr)); gap: 3px; }
.segp span { height: 9px; border-radius: 2px; background: rgba(255, 240, 220, 0.13); }
.segp .done { background: linear-gradient(180deg, var(--amber-hi), var(--amber)); box-shadow: 0 0 10px -3px rgba(255, 170, 60, 0.8); }
.segp .work { background: rgba(255, 179, 64, 0.5); animation: segwork 1.6s ease-in-out infinite alternate; }
.segp .stop { background: var(--hazard); }
@keyframes segwork { to { background: rgba(255, 179, 64, 0.26); } }
.keys { display: flex; flex-wrap: wrap; gap: 4px 14px; font-size: 12px; color: var(--mu2); }
.keys span { display: inline-flex; align-items: center; gap: 6px; white-space: nowrap; }
.keys b { color: var(--ink); font-weight: 600; }
.keys i { width: 9px; height: 9px; border-radius: 2px; }
.keys .k-done { background: var(--amber); } .keys .k-work { background: rgba(255, 179, 64, 0.5); } .keys .k-stop { background: var(--hazard); } .keys .k-plan { background: rgba(255, 240, 220, 0.2); }

/* ---------- řádky pracovišť (zvedáky) ---------- */
.bays { display: grid; gap: 8px; }
.bay { position: relative; min-height: 58px; border-radius: 14px; overflow: hidden; display: flex; align-items: center; gap: 11px; padding: 0 14px 0 10px; background: rgba(255, 240, 220, 0.06); box-shadow: inset 0 0 0 1px rgba(255, 240, 220, 0.09); text-align: left; width: 100%; transition: background 0.15s; }
button.bay:hover { background: rgba(255, 240, 220, 0.1); }
.bay .fill { position: absolute; inset: 0 auto 0 0; width: var(--p); background: linear-gradient(90deg, rgba(255, 179, 64, 0.08), rgba(255, 179, 64, 0.36)); transition: width 0.9s cubic-bezier(0.2, 0.8, 0.2, 1); }
.bay.stop .fill { width: 100%; background: repeating-linear-gradient(-45deg, rgba(255, 179, 64, 0.26) 0 7px, rgba(255, 179, 64, 0.06) 7px 14px); }
.bay.idle .fill { background: none; }
.bay.done .fill { width: 100%; background: linear-gradient(90deg, rgba(169, 224, 143, 0.06), rgba(169, 224, 143, 0.2)); }
.bay > :not(.fill) { position: relative; }
.bay .no { width: 30px; height: 30px; border-radius: 9px; display: grid; place-items: center; flex: none; font: 700 13px var(--mono); color: var(--mu); background: rgba(10, 8, 6, 0.4); box-shadow: inset 0 0 0 1px rgba(255, 240, 220, 0.13); }
.bay.run .no { color: var(--amber-ink); background: linear-gradient(160deg, var(--amber-hi), var(--amber)); box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.5); }
.bay.stop .no { color: var(--amber); box-shadow: inset 0 0 0 1.5px rgba(255, 179, 64, 0.7); }
.bay .t { flex: 1; min-width: 0; }
.bay b { display: block; font-size: 14px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.bay small { display: block; font-size: 12px; color: var(--mu); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.bay .v { text-align: right; flex: none; }
.bay .v b { font-family: var(--display); font-size: 15px; font-variant-numeric: tabular-nums; }
.bay .v small { font-size: 11.5px; color: var(--mu2); }
.bay.stop .v b { color: var(--amber); }
.bay.done .v b { color: var(--ok); }

/* ---------- dlaždice s fotkou (nálezy ke schválení) ---------- */
.tiles { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.u { position: relative; padding: 6px 6px 9px; border-radius: 17px; display: flex; flex-direction: column; min-height: 0; text-align: left; background: rgba(255, 240, 220, 0.07); box-shadow: inset 0 0 0 1px rgba(255, 240, 220, 0.1); transition: box-shadow 0.2s, background 0.2s, transform 0.2s; }
button.u:hover { transform: translateY(-2px); background: rgba(255, 240, 220, 0.11); }
.u.on { box-shadow: inset 0 0 0 2px var(--amber), 0 12px 26px -14px rgba(255, 150, 40, 0.8); }
.u .pic { position: relative; flex: 1 1 auto; min-height: 44px; border-radius: 12px; background: #3a2c20 center / cover no-repeat; }
.u .pic.none { display: grid; place-items: center; color: var(--mu2); background: linear-gradient(160deg, rgba(255, 220, 170, 0.14), rgba(255, 220, 170, 0.04)); }
.u .pic.none svg { width: 26px; height: 26px; }
.u b { display: block; margin: 8px 4px 0; font-size: 13.5px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; flex-shrink: 0; }
.u small { display: block; margin: 1px 4px 0; font-size: 12px; color: var(--mu2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; flex-shrink: 0; }
.u small em { font-style: normal; font-weight: 600; color: var(--ink); }
.u .ck { position: absolute; top: 11px; right: 11px; width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; background: var(--amber); color: var(--amber-ink); opacity: 0; transform: scale(0.6); transition: opacity 0.2s, transform 0.25s; box-shadow: 0 2px 8px rgba(0, 0, 0, 0.35); }
.u.on .ck { opacity: 1; transform: none; }
.u .ck svg { width: 13px; height: 13px; stroke-width: 2.8; }
.u .sem { position: absolute; top: 12px; left: 12px; box-shadow: 0 0 0 2px rgba(20, 16, 12, 0.7); }
.mm { position: absolute; left: 6px; bottom: 6px; max-width: calc(100% - 12px); padding: 2px 6px; border-radius: 6px; font: 600 10.5px/16px var(--mono); color: var(--amber-hi); background: rgba(14, 11, 8, 0.78); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* ---------- velká světlá tlačítka a výběr času ---------- */
.act { display: flex; gap: 8px; }
.wbtn { flex: 1; min-width: 0; height: 44px; padding: 0 14px; border-radius: 14px; display: flex; align-items: center; justify-content: center; gap: 9px; font-size: 14.5px; font-weight: 600; color: #24170a; background: #f8f3ea; box-shadow: inset 0 -1px 0 rgba(60, 30, 5, 0.14), 0 10px 26px -14px rgba(10, 5, 0, 0.9); transition: transform 0.15s, background 0.2s; text-decoration: none; }
.wbtn span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.wbtn:hover { background: #fffaf2; }
.wbtn:active { transform: scale(0.98); }
.wbtn:disabled { opacity: 0.55; transform: none; cursor: default; }
.wbtn svg { width: 17px; height: 17px; stroke-width: 2; }
.wbtn .ok { color: #3d8a26; }
.wbtn.go { color: var(--amber-ink); background: linear-gradient(160deg, var(--amber-hi), var(--amber) 55%, var(--amber-2)); }
.ibtn { width: 44px; height: 44px; border-radius: 14px; display: grid; place-items: center; flex: none; background: rgba(255, 240, 220, 0.11); box-shadow: inset 0 1px 0 rgba(255, 250, 240, 0.14), inset 0 0 0 1px rgba(255, 240, 220, 0.08); transition: background 0.15s; }
.ibtn:hover { background: rgba(255, 240, 220, 0.2); }
.ibtn svg { width: 18px; height: 18px; }
.slots { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 7px; }
.slots button { height: 36px; border-radius: 12px; font-size: 13.5px; font-weight: 600; font-variant-numeric: tabular-nums; text-align: center; background: rgba(255, 240, 220, 0.11); box-shadow: inset 0 1px 0 rgba(255, 250, 240, 0.12); transition: background 0.15s, color 0.15s; }
.slots button:hover:not(:disabled):not(.on) { background: rgba(255, 240, 220, 0.2); }
.slots button.on { color: var(--amber-ink); background: linear-gradient(160deg, var(--amber-hi), var(--amber)); }
.slots button:disabled { color: var(--mu2); text-decoration: line-through; cursor: default; background: repeating-linear-gradient(-45deg, rgba(255, 240, 220, 0.07) 0 5px, transparent 5px 10px); box-shadow: inset 0 0 0 1px rgba(255, 240, 220, 0.1); }
.quote { display: flex; align-items: center; gap: 8px; padding: 8px 12px; border-radius: 12px; font-size: 13px; color: var(--mu); background: rgba(8, 6, 4, 0.25); box-shadow: inset 0 0 0 1px rgba(255, 240, 220, 0.08); }
.quote svg { width: 15px; height: 15px; color: var(--amber); flex: none; }
.quote span { flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.quote time { font-size: 12px; color: var(--mu2); font-variant-numeric: tabular-nums; flex: none; }
.flash { animation: flash 1.2s ease; }
@keyframes flash { 0%, 100% { box-shadow: inset 0 1px 0 rgba(255, 246, 232, 0.2), 0 30px 60px -30px rgba(8, 5, 2, 0.9); } 30% { box-shadow: inset 0 0 0 2px var(--amber), 0 0 0 6px rgba(255, 179, 64, 0.25), 0 30px 60px -30px rgba(8, 5, 2, 0.9); } }

/* ---------- přehled dne (jedna obrazovka) ---------- */
.dash { --bottom: 290px; display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.42fr) clamp(380px, 27vw, 470px); grid-template-rows: minmax(400px, calc(100vh - 22px - var(--top-h) - 24px - var(--bottom) - 20px - 24px)) var(--bottom); grid-template-areas: 'hero hero day' 'lifts appr tire'; gap: 20px 22px; margin-top: -4px; }
.dash .hero { grid-area: hero; display: flex; flex-direction: column; align-items: flex-start; min-height: 0; padding: 4px 0 0 6px; }
.dash .eyebrow { display: flex; align-items: center; gap: 10px; font-size: 12px; font-weight: 600; letter-spacing: 0.22em; text-transform: uppercase; color: var(--mu); }
.dash .eyebrow::before { content: ''; width: 26px; height: 7px; border-radius: 1.5px; background: var(--hazard); opacity: 0.9; }
.dash .hero h1 { margin: 14px 0 16px; font-family: var(--display); font-size: clamp(54px, 5.2vw, 84px); line-height: 0.97; font-weight: 400; letter-spacing: -0.045em; text-shadow: 0 2px 30px rgba(20, 10, 0, 0.45); }
.dash .hero h1 em { font-style: normal; font-weight: 600; color: var(--amber); }
.dash .hero > p { margin: 0; max-width: 34em; font-size: 17px; line-height: 1.5; color: var(--mu); text-shadow: 0 1px 12px rgba(20, 10, 0, 0.6); }
.dash .hero > p b { color: var(--ink); font-weight: 600; background: linear-gradient(transparent 64%, rgba(255, 138, 31, 0.45) 64%, rgba(255, 138, 31, 0.45) 92%, transparent 92%); }
.dash .hero > p a { color: inherit; text-decoration: none; white-space: nowrap; }
.dash .quick { display: flex; gap: 10px; margin-top: 24px; flex-wrap: wrap; }
.dash .stats { margin-top: auto; display: flex; padding: 13px 6px; border-radius: 20px; max-width: 100%; }
.dash .stat { padding: 0 22px; min-width: 0; }
.dash .stat + .stat { border-left: 1px solid var(--line); }
.dash .stat small { display: block; font-size: 10.5px; font-weight: 600; letter-spacing: 0.16em; text-transform: uppercase; color: var(--mu2); white-space: nowrap; }
.dash .stat b { font-family: var(--display); font-size: 24px; font-weight: 500; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; white-space: nowrap; }
.dash .stat span { margin-left: 6px; font-size: 12.5px; color: var(--mu); white-space: nowrap; }

.dash .day { grid-area: day; padding: 22px 22px 12px; display: flex; flex-direction: column; min-height: 0; }
.dash .day-h { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; }
.dash .day-h h2, .dash .dk h2 { margin: 0; font-family: var(--display); font-size: 22px; font-weight: 550; letter-spacing: -0.02em; white-space: nowrap; }
.dash .day-h p, .dash .dk .sub { margin: 3px 0 0; font-size: 13px; color: var(--mu2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dash .cnt { text-align: right; flex: none; }
.dash .cnt b { display: block; font-family: var(--display); font-size: 36px; font-weight: 500; line-height: 1; letter-spacing: -0.03em; }
.dash .cnt b i { font-style: normal; font-size: 18px; color: var(--mu2); letter-spacing: 0; }
.dash .cnt small { font-size: 11.5px; color: var(--mu2); }
.dash .day .segp { margin: 16px 0 8px; }
.dash .jobs { list-style: none; margin: 10px 0 0; padding: 0; min-height: 0; overflow: hidden; flex: 1 1 auto; }
.dash .jobs li + li { border-top: 1px solid var(--line); }
.dash .job { width: 100%; display: flex; align-items: center; gap: 12px; padding: 7px 0; border-radius: 8px; text-align: left; transition: background 0.15s, box-shadow 0.15s; }
.dash .job:hover { background: rgba(255, 240, 220, 0.06); box-shadow: 0 0 0 6px rgba(255, 240, 220, 0.06); }
.dash .job .t { flex: 1; min-width: 0; }
.dash .job b { display: block; font-size: 14.5px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dash .job small { display: block; font-size: 12.5px; color: var(--mu2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dash .job .r { font-size: 13.5px; font-weight: 600; white-space: nowrap; font-variant-numeric: tabular-nums; flex: none; }
.dash .job .r.live { display: inline-flex; align-items: center; gap: 6px; color: var(--amber-hi); }
.dash .job .r.live::before { content: ''; width: 7px; height: 7px; border-radius: 50%; background: var(--amber); animation: stpulse 1.8s infinite; }
.dash .job .r.w { display: inline-flex; align-items: center; gap: 7px; color: var(--amber); }
.dash .job .r.w::before { content: ''; width: 14px; height: 7px; border-radius: 1.5px; background: var(--hazard); }
.dash .job .r.ok { color: var(--ok); }
.dash .job.done b { color: var(--mu); }
.dash .ic.w { color: var(--amber-ink); background: linear-gradient(160deg, #ffb066, var(--amber-2)); box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.4), 0 0 0 3px rgba(255, 138, 31, 0.22); }
.dash .more { margin-top: auto; padding-top: 10px; display: flex; align-items: center; justify-content: space-between; width: 100%; height: 40px; font-size: 13.5px; font-weight: 600; color: var(--mu); border-top: 1px solid var(--line); text-decoration: none; flex: none; }
.dash .more:hover { color: var(--ink); }

.dash .dk { padding: 18px 20px; display: flex; flex-direction: column; min-height: 0; }
.dash .dk > * { flex-shrink: 0; }
.dash .dk-h { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.dash .dk-h > div:first-child { min-width: 0; }
.dash .d-lifts { grid-area: lifts; }
.dash .d-appr { grid-area: appr; }
.dash .d-tire { grid-area: tire; padding: 12px 12px 14px; }
.dash .seg2 { display: flex; padding: 3px; border-radius: 12px; background: rgba(8, 6, 4, 0.3); box-shadow: inset 0 0 0 1px rgba(255, 240, 220, 0.09); flex: none; }
.dash .seg2 button { height: 30px; padding: 0 12px; border-radius: 9px; font-size: 12.5px; font-weight: 600; color: var(--mu); white-space: nowrap; }
.dash .seg2 button.on { color: var(--ink); background: rgba(255, 240, 220, 0.16); box-shadow: inset 0 1px 0 rgba(255, 250, 240, 0.14); }
.dash .d-lifts .bays { grid-auto-rows: minmax(0, 62px); margin-top: auto; padding-top: 14px; flex: 1 1 auto; flex-shrink: 1; min-height: 0; align-content: end; }
.dash .d-lifts .bay { min-height: 0; }
.dash .sum { text-align: right; flex: none; }
.dash .sum b { display: block; font-family: var(--display); font-size: 22px; font-weight: 550; letter-spacing: -0.02em; white-space: nowrap; }
.dash .sum small { font-size: 11.5px; color: var(--mu2); white-space: nowrap; }
.dash .d-appr .quote { display: none; margin-top: 12px; }
.dash .d-appr .tiles { margin: 14px 0 12px; flex: 1 1 auto; flex-shrink: 1; min-height: 0; }
.dash .d-appr .empty { flex: 1 1 auto; display: grid; place-items: center; }
.dash .d-tire .head { position: relative; height: 88px; border-radius: 18px; overflow: hidden; background: #2a2622 url('../foto/pneu.webp') 50% 31% / 100% auto no-repeat; flex: none; }
.dash .d-tire .head::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(30, 20, 10, 0) 35%, rgba(30, 20, 10, 0.35)), rgba(120, 70, 20, 0.12); }
.dash .d-tire .head span { position: absolute; left: 10px; top: 10px; z-index: 1; padding: 4px 10px; border-radius: 999px; font-size: 10.5px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: #fff8ee; background: rgba(28, 22, 17, 0.62); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); box-shadow: inset 0 0 0 1px rgba(255, 240, 220, 0.22); }
.dash .tt { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; padding: 11px 8px 0; }
.dash .tt h2 { margin: 0; font-family: var(--display); font-size: 20px; font-weight: 550; letter-spacing: -0.02em; white-space: nowrap; }
.dash .tt b { font-family: var(--display); font-size: 18px; font-weight: 550; white-space: nowrap; }
.dash .tt b small { font-size: 12px; font-weight: 500; color: var(--mu2); margin-left: 3px; }
.dash .d-tire .sub { padding: 0 8px; margin: 3px 0 0; font-size: 13px; color: var(--mu2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dash .d-tire .slots { margin: 12px 2px; }
.dash .d-tire .wbtn { flex: none; margin: auto 2px 0; }

/* velká obrazovka (1080) */
@media (min-height: 1000px) and (min-width: 1101px) {
  .dash { --bottom: 340px; gap: 24px; }
  .dash .hero { padding-top: 14px; }
  .dash .hero h1 { margin: 18px 0 20px; }
  .dash .hero > p { font-size: 18px; }
  .dash .quick { margin-top: 30px; }
  .dash .stat b { font-size: 27px; }
  .dash .day { padding: 26px 26px 14px; }
  .dash .job { padding: 9px 0; }
  .dash .dk { padding: 22px 24px; }
  .dash .d-tire { padding: 14px 14px 16px; }
  .dash .d-appr .quote { display: flex; }
  .dash .d-lifts .bays { gap: 10px; padding-top: 18px; }
  .dash .d-tire .head { height: 120px; }
  .dash .wbtn { height: 48px; }
  .dash .ibtn { width: 48px; height: 48px; }
  .dash .slots button { height: 40px; }
}
/* nízká obrazovka (768) */
@media (max-height: 860px) and (min-width: 1101px) {
  .dash { --bottom: 262px; gap: 16px 18px; }
  .dash .hero h1 { font-size: clamp(46px, 4.6vw, 66px); margin: 10px 0 12px; }
  .dash .hero > p { font-size: 15.5px; }
  .dash .quick { margin-top: 18px; }
  .dash .stats { padding: 10px 4px; border-radius: 18px; }
  .dash .stat { padding: 0 18px; }
  .dash .stat b { font-size: 21px; }
  .dash .day { padding: 16px 18px 8px; }
  .dash .day-h h2, .dash .dk h2 { font-size: 20px; }
  .dash .cnt b { font-size: 30px; }
  .dash .day .segp { margin: 11px 0 6px; }
  .dash .jobs { margin-top: 6px; }
  .dash .job { padding: 5px 0; gap: 10px; }
  .dash .day .ic { width: 32px; height: 32px; border-radius: 10px; }
  .dash .job b { font-size: 14px; }
  .dash .job small { font-size: 12px; }
  .dash .dk { padding: 14px 16px; }
  .dash .d-tire { padding: 10px 10px 12px; }
  .dash .d-lifts .bays { gap: 6px; padding-top: 10px; }
  .dash .bay { border-radius: 12px; }
  .dash .bay .no { width: 28px; height: 28px; }
  .dash .seg2 button { height: 28px; }
  .dash .d-appr .tiles { margin: 10px 0 9px; gap: 8px; }
  .dash .u { padding: 5px 5px 7px; border-radius: 14px; }
  .dash .u .pic { border-radius: 10px; }
  .dash .u b { margin-top: 6px; font-size: 13px; }
  .dash .wbtn { height: 40px; font-size: 14px; border-radius: 12px; }
  .dash .ibtn { width: 40px; height: 40px; border-radius: 12px; }
  .dash .d-tire .head { height: 60px; border-radius: 15px; }
  .dash .tt { padding-top: 8px; }
  .dash .tt h2 { font-size: 18px; }
  .dash .d-tire .slots { margin: 9px 2px; }
  .dash .slots button { height: 32px; border-radius: 10px; }
}
@media (max-height: 740px) and (min-width: 1101px) {
  .dash { --bottom: 236px; }
  .dash .hero h1 { font-size: clamp(42px, 4.2vw, 56px); }
  .dash .d-tire .head { height: 46px; }
}
@media (max-width: 1360px) and (min-width: 1101px) {
  .dash { grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.2fr) 360px; }
  .dash .stat { padding: 0 14px; }
}
/* tablet a mobil: karty pod sebou */
@media (max-width: 1100px) {
  .dash { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); grid-template-rows: none; grid-template-areas: 'hero hero' 'day day' 'appr appr' 'lifts tire'; gap: 14px; }
  .dash .hero { padding: 12px 4px 6px; }
  .dash .stats { margin-top: 24px; }
  .dash .jobs { overflow: visible; }
  .dash .d-appr .quote { display: flex; }
  .dash .d-appr .tiles { min-height: 190px; flex: none; }
  .dash .d-lifts .bays { flex: none; grid-auto-rows: 56px; }
}
@media (max-width: 640px) {
  .dash { grid-template-columns: minmax(0, 1fr); grid-template-areas: 'hero' 'day' 'appr' 'lifts' 'tire'; }
  .dash .hero h1 { font-size: 48px; }
  .dash .hero > p { font-size: 15.5px; }
  .dash .stats { flex-wrap: wrap; gap: 10px 0; }
  .dash .stat { padding: 0 14px; }
  .dash .d-appr .tiles { grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: 62%; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; min-height: 170px; }
  .dash .u { scroll-snap-align: start; }
  .plate.lg { height: 48px; font-size: 28px; line-height: 48px; }
}

.top .who b, .top .who small { white-space: nowrap; }
/* tři role se na úzký telefon nevejdou i s avatarem – role je vidět na přepínači */
@media (max-width: 520px) {
  .top .who { display: none; }
  .top .user { padding-right: 6px; }
}

/* ---------- detail zakázky (zakázkový list) ---------- */
.zak-h { align-items: flex-end; }
.zak-h .eyebrow a { color: inherit; text-decoration: none; }
.zak-h .eyebrow a:hover { color: var(--ink); }
.zak-h h1 { max-width: 22em; }
.zak-car { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 10px; margin-top: 10px !important; }
.zak-car .link { color: var(--amber-hi); }
.zak-grid { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 18px; align-items: start; }
.estline { display: flex; align-items: center; gap: 9px; margin-top: 12px; padding: 10px 12px; border-radius: 12px; font-size: 13px; color: var(--mu); background: rgba(8, 6, 4, 0.25); box-shadow: inset 0 0 0 1px rgba(255, 240, 220, 0.08); }
.estline svg { width: 16px; height: 16px; flex: none; color: var(--ok); }
.estline b { color: var(--ink); font-weight: 600; }
.estline.over { color: var(--ink); background: rgba(255, 179, 64, 0.12); box-shadow: inset 0 0 0 1px rgba(255, 179, 64, 0.45); }
.estline.over svg { color: var(--amber); }
.tbl tfoot td { border-top: 1px solid var(--line); padding-top: 10px; }
.x.sm { width: 28px; height: 28px; }
.x.sm svg { width: 14px; height: 14px; }
.list.finds > li { align-items: flex-start; }
.find .ph { width: 64px; height: 48px; border-radius: 10px; flex: none; background: #3a2c20 center / cover no-repeat; display: grid; place-items: center; color: var(--mu2); }
.find .ph.none { background: rgba(255, 240, 220, 0.06); }
.find .ph svg { width: 18px; height: 18px; }
.find b .sem { margin-right: 4px; }
.find small + small { margin-top: 4px; }
.find .r { display: flex; flex-direction: column; align-items: flex-end; gap: 6px; }
.btnrow { display: flex; gap: 6px; }
.card .wbtn { margin-top: 14px; width: 100%; }
dl.kv { display: grid; grid-template-columns: max-content minmax(0, 1fr); gap: 6px 16px; margin: 0; font-size: 13.5px; }
dl.kv dt { color: var(--mu2); }
dl.kv dd { margin: 0; font-weight: 500; }
dd a[href^='tel:'], dd a[href^='mailto:'] { white-space: nowrap; }
.quote-p { margin: 0 0 12px; padding: 10px 12px; border-radius: 12px; font-size: 13.5px; color: var(--mu); background: rgba(8, 6, 4, 0.22); }
.carbox { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 14px; align-items: center; margin-top: 14px; }
.dmglist { margin: 0; padding-left: 20px; font-size: 13px; color: var(--mu); }
.dmglist li + li { margin-top: 4px; }
.carsvg { width: 100%; height: auto; display: block; }
.carsvg .body { fill: rgba(255, 240, 220, 0.08); stroke: rgba(255, 240, 220, 0.5); stroke-width: 1.5; }
.carsvg .glass { fill: rgba(120, 170, 220, 0.16); stroke: rgba(255, 240, 220, 0.3); stroke-width: 1; }
.carsvg .line { fill: none; stroke: rgba(255, 240, 220, 0.25); stroke-width: 1.2; }
.carsvg .wheel { fill: rgba(10, 8, 6, 0.7); stroke: rgba(255, 240, 220, 0.35); }
.carsvg .lbl { fill: var(--mu3); font-size: 10px; }
.carsvg .dmg circle { fill: #ff6b4a; stroke: #fff; stroke-width: 1.5; }
.carsvg .dmg text { fill: #fff; font-size: 10px; font-weight: 700; }
.carsvg.pick { cursor: crosshair; }
.chat { list-style: none; margin: 0 0 12px; padding: 0; max-height: 340px; overflow-y: auto; display: flex; flex-direction: column; gap: 10px; }
.msg { max-width: 86%; display: flex; flex-direction: column; gap: 3px; }
.msg .bub { padding: 9px 12px; border-radius: 14px; font-size: 13.5px; line-height: 1.45; background: rgba(255, 240, 220, 0.1); }
.msg small { font-size: 11.5px; color: var(--mu2); }
.msg.out { align-self: flex-end; align-items: flex-end; }
.msg.out .bub { color: var(--amber-ink); background: linear-gradient(160deg, var(--amber-hi), var(--amber)); border-bottom-right-radius: 4px; }
.msg.in .bub { border-bottom-left-radius: 4px; }
.sendrow { display: flex; gap: 8px; }
.sendrow .in { flex: 1; min-width: 0; }
.sendrow .btn { width: 46px; padding: 0; flex: none; }
p.small { font-size: 12.5px; display: flex; align-items: center; gap: 6px; margin: 0 0 10px; }
p.small svg { width: 14px; height: 14px; }
input[type='range'] { width: 100%; accent-color: var(--amber); }
.seg3.tabsel { display: inline-flex; gap: 3px; padding: 3px; margin-bottom: 16px; border-radius: 999px; background: rgba(255, 240, 220, 0.08); }
.seg3.tabsel button { height: 32px; padding: 0 14px; border-radius: 999px; font-size: 13px; font-weight: 600; color: var(--mu); }
.seg3.tabsel button.on { color: var(--amber-ink); background: linear-gradient(160deg, var(--amber-hi), var(--amber)); }
.photopick { display: flex; flex-wrap: wrap; gap: 8px; }
.photopick label { cursor: pointer; }
.photopick input { position: absolute; opacity: 0; pointer-events: none; }
.photopick span { display: grid; place-items: center; width: 74px; height: 54px; border-radius: 10px; background: #3a2c20 center / cover no-repeat; box-shadow: inset 0 0 0 1px rgba(255, 240, 220, 0.14); font-size: 11.5px; color: var(--mu2); transition: box-shadow 0.15s; }
.photopick span.none { background: rgba(255, 240, 220, 0.06); }
.photopick input:checked + span { box-shadow: inset 0 0 0 2px var(--amber), 0 6px 16px -8px rgba(255, 150, 40, 0.9); }
.photopick input:focus-visible + span { outline: 2px solid var(--amber-hi); outline-offset: 2px; }
.handsum { display: flex; align-items: baseline; justify-content: space-between; margin: 0 0 16px; padding: 14px 16px; border-radius: 16px; background: rgba(255, 240, 220, 0.07); }
.handsum span { color: var(--mu); }
.handsum b { font-size: 30px; font-weight: 500; }
.paysel { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.paysel.two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.paysel label { cursor: pointer; }
.paysel input { position: absolute; opacity: 0; pointer-events: none; }
.paysel span { display: flex; flex-direction: column; align-items: flex-start; gap: 3px; padding: 12px; border-radius: 14px; background: rgba(255, 240, 220, 0.07); box-shadow: inset 0 0 0 1px rgba(255, 240, 220, 0.1); transition: box-shadow 0.15s, background 0.15s; }
.paysel span svg { width: 20px; height: 20px; color: var(--amber); margin-bottom: 4px; }
.paysel span b { font-size: 14px; }
.paysel span small { font-size: 12px; color: var(--mu2); }
.paysel input:checked + span { background: rgba(255, 179, 64, 0.12); box-shadow: inset 0 0 0 2px var(--amber); }
.paysel input:focus-visible + span { outline: 2px solid var(--amber-hi); outline-offset: 2px; }
.eetnote { display: flex; gap: 9px; align-items: flex-start; margin: 14px 0 0; font-size: 12.5px; color: var(--mu); }
.eetnote svg { width: 16px; height: 16px; flex: none; color: var(--ok); margin-top: 1px; }
.eetbox { margin: 0 0 14px; padding: 12px 14px; border-radius: 14px; background: var(--ok-bg); }
.eetbox small { display: block; font-size: 11px; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--ok); }
.eetbox code { font: 600 13px var(--mono); word-break: break-all; }
.payqr { display: flex; align-items: center; gap: 16px; }
@media (max-width: 1100px) {
  .zak-grid { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 640px) {
  .carbox { grid-template-columns: minmax(0, 1fr); }
  .paysel { grid-template-columns: minmax(0, 1fr); }
  .find .ph { display: none; }
  .zak-h .acts { width: 100%; }
}
