:root {
  --ink: #171717;
  --muted: #686868;
  --paper: #f5f4ef;
  --white: #fff;
  --yellow: #f3b400;
  --yellow-dark: #cc9300;
  --line: #d9d7ce;
  --green: #147a46;
  --blue: #1769aa;
  --orange: #b95c16;
  --shadow: 0 18px 45px rgba(22, 22, 22, .11);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  overflow-x: hidden;
  color: var(--ink);
  background: var(--paper);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.5;
}
button, input, select, textarea { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
a { color: inherit; }
.wrap { width: min(1180px, calc(100% - 40px)); margin-inline: auto; }
.skip-link { position: fixed; top: -60px; left: 16px; z-index: 100; background: var(--yellow); padding: 12px 16px; font-weight: 800; }
.skip-link:focus { top: 12px; }

.site-header { position: sticky; top: 0; z-index: 50; background: rgba(20,20,20,.97); color: white; border-bottom: 1px solid rgba(255,255,255,.12); }
.header-inner { min-height: 70px; display: flex; align-items: center; gap: 28px; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; white-space: nowrap; }
.brand-logo { width: 54px; height: 54px; flex: 0 0 54px; object-fit: cover; border-radius: 50%; background: white; }
.brand-copy { display: flex; flex-direction: column; line-height: 1.05; }
.brand-copy strong { font-size: 1.08rem; font-weight: 950; letter-spacing: -.035em; color: white; }
.brand-copy small { margin-top: 4px; color: var(--yellow); font-size: .61rem; font-weight: 850; letter-spacing: .035em; text-transform: uppercase; }
nav { margin-left: auto; display: flex; gap: 24px; }
nav a { text-decoration: none; font-weight: 700; font-size: .93rem; color: #dedede; }
nav a:hover, nav a:focus-visible { color: var(--yellow); }
.phone-link { text-decoration: none; background: var(--yellow); color: var(--ink); padding: 10px 14px; font-weight: 900; border-radius: 4px; }
.phone-short { display: none; }
.account-entry-link { display: grid; justify-items: center; line-height: 1; text-align: center; }
.account-entry-link small { margin-top: 4px; font-size: .63rem; font-weight: 850; text-transform: uppercase; }
.mobile-menu { display: none; }
.mobile-menu summary { list-style: none; }
.mobile-menu summary::-webkit-details-marker { display: none; }
.logout-button { border: 0; cursor: pointer; }
.form-error { margin: 12px 0 0; padding: 10px 12px; border-left: 4px solid #b42318; background: #fff0ee; color: #8a1c13 !important; font-weight: 750; }

.hero { min-height: 650px; position: relative; display: grid; align-items: end; color: white; overflow: hidden; }
.hero > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 55% center; }
.hero-shade { position: absolute; inset: 0; background: linear-gradient(90deg, rgba(0,0,0,.87) 0%, rgba(0,0,0,.62) 48%, rgba(0,0,0,.16) 78%), linear-gradient(0deg, rgba(0,0,0,.6), transparent 40%); }
.hero-content { position: relative; padding-block: 95px 58px; }
.hero-brand-logo { width: clamp(106px, 12vw, 152px); height: auto; margin-bottom: 22px; border-radius: 50%; box-shadow: 0 14px 36px rgba(0,0,0,.28); }
.eyebrow { margin: 0 0 10px; color: var(--yellow); font-size: .82rem; font-weight: 900; letter-spacing: .14em; text-transform: uppercase; }
.eyebrow.dark { color: #876300; }
h1, h2 { margin: 0; line-height: 1.04; letter-spacing: -.045em; }
h1, h2, p { overflow-wrap: anywhere; }
h1 { max-width: 820px; font-size: clamp(2.5rem, 6vw, 5.25rem); }
.hero-title-local { max-width: 980px; font-size: clamp(2.65rem, 4.8vw, 4.5rem); }
h2 { font-size: clamp(2rem, 4vw, 3.25rem); }
.hero-lead { max-width: 700px; font-size: clamp(1.05rem, 2vw, 1.3rem); color: #f0f0f0; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 28px; }
.button { min-height: 48px; display: inline-flex; justify-content: center; align-items: center; padding: 12px 18px; border: 0; border-radius: 5px; text-decoration: none; font-weight: 900; cursor: pointer; }
.button-primary { background: var(--yellow); color: var(--ink); }
.button-primary:hover { background: #ffc51f; }
.button-light { background: white; color: var(--ink); }
.button-whatsapp { background: #1e9b55; color: white; }
.button-facebook { background: #1877f2; color: white; }
.button-facebook:hover { background: #0f62d6; color: white; }
.button-tiktok { background: #111; color: white; }
.button-tiktok:hover { background: #333; color: white; }
.button-google { background: white; color: #2856a8; border: 1px solid #d7d7d7; }
.button-google:hover { background: #f1f3f4; color: #174ea6; }
.button.full { width: 100%; }
.button:disabled { cursor: not-allowed; opacity: .58; }
.trust-row { display: flex; flex-wrap: wrap; gap: 24px; list-style: none; padding: 0; margin: 32px 0 0; font-weight: 750; color: #eee; }
.trust-row li::before { content: "✓"; color: var(--yellow); margin-right: 8px; }

.quick-facts { background: var(--ink); color: white; }
.facts-grid { display: grid; grid-template-columns: repeat(4, 1fr); }
.facts-grid > div { padding: 22px 24px; border-left: 1px solid #383838; }
.facts-grid > div:last-child { border-right: 1px solid #383838; }
.facts-grid strong, .facts-grid span { display: block; }
.facts-grid strong { color: var(--yellow); font-size: 1.45rem; }
.facts-grid span { color: #cfcfcf; font-size: .88rem; }

.section { padding-block: 82px; }
.section-heading { display: flex; justify-content: space-between; gap: 40px; align-items: end; margin-bottom: 30px; }
.section-heading.compact { margin-bottom: 22px; }
.section-heading p { max-width: 690px; color: var(--muted); }
.availability-legend { display: flex; flex-direction: column; gap: 5px; white-space: nowrap; font-size: .85rem; color: var(--muted); }
.dot { display: inline-block; width: 9px; height: 9px; margin-right: 7px; border-radius: 50%; }
.dot.available { background: var(--green); }
.dot.verify { background: var(--blue); }
.dot.soon { background: var(--orange); }
.filters { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 22px; }
.fleet-positioning { display: grid; grid-template-columns: minmax(220px, .65fr) 1.35fr; gap: 18px; margin: -4px 0 24px; padding: 18px 20px; background: #fff7d7; border-left: 5px solid var(--yellow-dark); }
.fleet-positioning strong { font-size: 1.05rem; }
.fleet-positioning span { color: var(--muted); }
.filter { border: 1px solid var(--line); background: white; padding: 9px 14px; border-radius: 99px; cursor: pointer; font-weight: 750; }
.filter.active { background: var(--ink); color: white; border-color: var(--ink); }

.machine-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.machine-card { display: flex; flex-direction: column; min-width: 0; background: white; border: 1px solid var(--line); border-radius: 8px; overflow: hidden; box-shadow: 0 6px 20px rgba(20,20,20,.05); }
.machine-card[hidden] { display: none; }
.machine-image { aspect-ratio: 16/10; position: relative; overflow: hidden; background: #dad8ce; }
.machine-image-link { display: block; color: inherit; cursor: pointer; }
.machine-image-link:focus-visible { outline: 4px solid var(--blue); outline-offset: -4px; }
.machine-image img { width: 100%; height: 100%; object-fit: contain; transition: transform .25s ease; }
.machine-card:hover .machine-image img { transform: scale(1.02); }
.machine-placeholder { height: 100%; display: grid; place-items: center; padding: 30px; color: #706e65; font-weight: 800; text-align: center; background: repeating-linear-gradient(-45deg,#e9e7de,#e9e7de 12px,#dfddd4 12px,#dfddd4 24px); }
.status { position: absolute; left: 12px; top: 12px; padding: 6px 9px; border-radius: 4px; color: white; font-size: .76rem; font-weight: 900; }
.status.available { background: var(--green); }
.status.verify { background: var(--blue); }
.status.soon { background: var(--orange); }
.status.service { background: #9b2c2c; }
.image-label { position: absolute; right: 10px; bottom: 10px; padding: 5px 7px; border-radius: 4px; background: rgba(0,0,0,.78); color: white; font-size: .68rem; font-weight: 800; }
.machine-body { display: flex; flex-direction: column; flex: 1; padding: 18px; }
.machine-type { margin: 0; color: var(--muted); text-transform: uppercase; font-size: .72rem; letter-spacing: .1em; font-weight: 850; }
.machine-body h3 { margin: 4px 0 8px; font-size: 1.35rem; line-height: 1.15; }
.machine-name-link { color: inherit; text-decoration: none; }
.machine-name-link:hover { text-decoration: underline; text-underline-offset: 3px; }
.machine-name-link:focus-visible { outline: 3px solid var(--blue); outline-offset: 3px; }
.machine-provenance { margin: 0 0 8px; color: #705400; font-size: .82rem; font-weight: 850; }
.specs { min-height: 44px; margin: 0 0 18px; color: var(--muted); font-size: .9rem; }
.price-row { margin-top: auto; display: flex; justify-content: space-between; gap: 12px; align-items: end; border-top: 1px solid #eceae2; padding-top: 14px; }
.price { display: flex; flex-direction: column; }
.price strong { font-size: 1.65rem; line-height: 1; }
.price span { color: var(--muted); font-size: .78rem; }
.card-actions { display: flex; gap: 7px; }
.card-actions button { padding: 10px 12px; }
.details-button { border: 1px solid var(--line); background: white; color: var(--ink); border-radius: 5px; font-weight: 800; cursor: pointer; }
.details-button:hover { border-color: var(--ink); }

/* Detail stroja */
.detail-main { background: var(--paper); }
.machine-detail-pending { display: none; }
.machine-detail-loading {
  min-height: 55vh;
  display: grid;
  place-items: center;
  padding: 32px 16px;
  background: var(--paper);
  color: var(--muted);
  font-weight: 800;
  text-align: center;
}
.machine-detail-loading[hidden] { display: none; }
.machine-detail-loading img {
  width: min(180px, 46vw);
  height: auto;
  border-radius: 50%;
}
.detail-breadcrumbs { padding-block: 22px; color: var(--muted); font-size: .9rem; }
.detail-breadcrumbs a { font-weight: 800; }
.detail-hero { padding: 0 0 58px; }
.detail-layout { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(300px, .75fr); gap: 34px; align-items: start; }
.detail-gallery { min-width: 0; }
.detail-gallery-main { width: 100%; aspect-ratio: 16/10; object-fit: contain; border-radius: 9px; background: #d8d4c8; display: block; }
.detail-thumbs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 9px; margin-top: 9px; }
.detail-thumbs button { min-width: 0; border: 2px solid transparent; border-radius: 6px; overflow: hidden; padding: 0; background: transparent; cursor: pointer; }
.detail-thumbs button.active { border-color: var(--yellow-dark); }
.detail-thumbs img { width: 100%; min-width: 0; aspect-ratio: 16/10; object-fit: contain; background:#d8d4c8; display: block; }
.gallery-caption { margin: 10px 2px 0; color: var(--muted); font-size: .82rem; }
.detail-summary { position: sticky; top: 92px; background: white; border: 1px solid var(--line); border-radius: 9px; padding: 28px; box-shadow: var(--shadow); }
.detail-summary h1 { font-size: clamp(2.3rem, 5vw, 4.2rem); }
.detail-type { margin: 8px 0 18px; color: var(--muted); font-weight: 800; }
.detail-provenance { margin: -8px 0 18px; padding: 9px 11px; background: #fff4c9; border-radius: 5px; color: #654c00; font-size: .9rem; font-weight: 900; }
.detail-price { display: flex; align-items: end; gap: 8px; margin: 20px 0 6px; }
.detail-price strong { font-size: 2.6rem; line-height: 1; }
.detail-price span { color: var(--muted); }
.detail-tax { margin: 0 0 20px; color: var(--muted); font-size: .9rem; }
.detail-status { display: inline-flex; align-items: center; gap: 8px; color: var(--green); font-weight: 900; }
.detail-status::before { content: ""; width: 10px; height: 10px; border-radius: 50%; background: var(--green); }
.detail-actions { display: grid; gap: 9px; margin-top: 22px; }
.detail-note { margin: 16px 0 0; font-size: .85rem; color: var(--muted); }
.availability-login-card { margin-top: 18px; padding: 17px; background: #fff7d7; border: 1px solid #ead58b; border-left: 5px solid var(--yellow-dark); border-radius: 6px; }
.availability-login-card strong, .availability-login-card span { display: block; }
.availability-login-card span { margin-top: 5px; color: var(--muted); font-size: .88rem; }
.availability-login-card > div { display: flex; align-items: center; flex-wrap: wrap; gap: 14px; margin-top: 14px; }
.availability-login-card .button { min-height: 42px; padding-block: 8px; }
.account-register-link { color: #695000; font-weight: 850; }
.detail-content { padding-block: 68px; background: white; }
.detail-columns { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; }
.detail-block + .detail-block { margin-top: 46px; }
.detail-block h2 { font-size: clamp(1.7rem, 3vw, 2.4rem); margin-bottom: 18px; }
.plain-list { list-style: none; padding: 0; margin: 0; }
.plain-list li { position: relative; padding: 9px 0 9px 28px; border-bottom: 1px solid #eceae2; }
.plain-list.good li::before, .plain-list.limit li::before { position: absolute; left: 0; top: 9px; font-weight: 950; }
.plain-list.good li::before { content: "✓"; color: var(--green); }
.plain-list.limit li::before { content: "!"; color: var(--orange); }
.difference-block { padding: 24px; border: 1px solid #e2c762; border-radius: 8px; background: #fff9e4; }
.difference-block h2 { margin-bottom: 10px; }
.difference-block > p:not(.eyebrow) { color: var(--muted); }
.difference-list { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; list-style: none; margin: 20px 0 0; padding: 0; }
.difference-list li { padding: 14px; background: white; border: 1px solid #ebe1bd; border-radius: 6px; }
.difference-list strong, .difference-list span { display: block; }
.difference-list strong { margin-bottom: 4px; }
.difference-list span { color: var(--muted); font-size: .88rem; }
.compatibility-block { border-left: 5px solid var(--blue); background: #f3f8fc; }
.compatibility-block > p { color: var(--muted); }
.compatibility-list { display: grid; gap: 10px; margin: 18px 0; padding: 0; list-style: none; }
.compatibility-list li { padding: 12px 14px; border: 1px solid #cbdde9; border-radius: 6px; background: white; }
.compatibility-list strong, .compatibility-list span { display: block; }
.compatibility-list strong { margin-bottom: 3px; }
.compatibility-list span { color: var(--muted); font-size: .9rem; }
.compatibility-note { margin: 16px 0; padding: 14px; border-radius: 6px; background: #e4f0f7; font-weight: 750; }
.compatibility-block > a { color: var(--blue); font-weight: 850; }
.spec-table { width: 100%; border-collapse: collapse; }
.spec-table th, .spec-table td { padding: 11px 10px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.spec-table th { width: 48%; color: var(--muted); font-weight: 700; }
.equipment-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.equipment-chips span { padding: 8px 11px; background: var(--paper); border: 1px solid var(--line); border-radius: 99px; font-weight: 800; }
.document-card { display: flex; justify-content: space-between; gap: 22px; align-items: center; padding: 22px; border: 1px solid var(--line); border-radius: 8px; background: var(--paper); }
.document-card p { margin: 4px 0 0; color: var(--muted); }
.detail-added-links { display: flex; flex-wrap: wrap; gap: 8px; }
.safety-box { padding: 18px 20px; background: #fff2c5; border-left: 5px solid var(--yellow-dark); }

@media (max-width: 900px) {
  .detail-layout { grid-template-columns: 1fr; }
  .detail-summary { position: static; }
  .detail-columns { grid-template-columns: 1fr; gap: 40px; }
}

@media (max-width: 620px) {
  .detail-breadcrumbs { padding-block: 14px; }
  .detail-hero { padding-bottom: 36px; }
  .detail-layout { gap: 18px; }
  .detail-summary { padding: 22px 18px; }
  .detail-summary h1 { font-size: 2.25rem; }
  .detail-type { overflow-wrap: anywhere; }
  .detail-thumbs { gap: 5px; }
  .detail-content { padding-block: 50px; }
  .document-card { align-items: stretch; flex-direction: column; }
  .difference-list { grid-template-columns: 1fr; }
  .document-card .button { width: 100%; }
  .card-actions { flex-wrap: wrap; justify-content: flex-end; }
}

.service-section { background: #e7e3d7; }
.service-grid { display: grid; grid-template-columns: 1.3fr .7fr; gap: 55px; align-items: center; }
.service-grid > div > p { color: var(--muted); font-size: 1.08rem; }
.check-list { list-style: none; padding: 0; columns: 2; }
.check-list li { break-inside: avoid; margin: 10px 0; }
.check-list li::before { content: "✓"; margin-right: 8px; color: var(--green); font-weight: 900; }
.price-panel { background: var(--ink); color: white; padding: 32px; border-radius: 8px; box-shadow: var(--shadow); }
.price-panel > span { display: block; color: #ccc; }
.price-panel > strong { display: block; margin: 8px 0 16px; color: var(--yellow); font-size: 2.5rem; }
.price-panel small { color: white; font-size: 1rem; }
.price-panel p { color: #d0d0d0; }

.zone-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.zone-grid article { background: white; border: 1px solid var(--line); border-top: 6px solid var(--yellow); padding: 20px; }
.zone-grid span, .zone-grid strong { display: block; }
.zone-grid span { color: var(--muted); }
.zone-grid strong { font-size: 2rem; }
.notice { margin-top: 16px; padding: 14px 16px; background: #fff2c5; border-left: 4px solid var(--yellow-dark); font-size: .9rem; }
.section-link { margin: 18px 0 0; }
.section-link a { color: #6f5200; font-weight: 900; }
.delivery-calculator { margin-bottom: 24px; padding: 22px; background: white; border: 1px solid var(--line); border-radius: 8px; box-shadow: 0 6px 20px rgba(20,20,20,.05); }
.detail-delivery-calculator { margin-top: 18px; box-shadow: none; background: var(--paper); }
.delivery-calculator > label { margin: 0 0 8px; }
.delivery-input-row { display: grid; grid-template-columns: 1fr auto; gap: 10px; }
.delivery-input-row .button { min-width: 190px; }
.delivery-help { margin: 8px 0 0; color: var(--muted); font-size: .85rem; }
.delivery-result { margin-top: 16px; padding: 16px; border-radius: 6px; background: #e7f6ed; border-left: 5px solid var(--green); }
.delivery-result.error { background: #fff2c5; border-left-color: var(--yellow-dark); }
.delivery-result strong { display: block; font-size: 1.25rem; }
.delivery-result span { color: var(--muted); }
.transport-page-main { background: var(--paper); }
.transport-page-hero { padding-block: 72px; color: white; background: radial-gradient(circle at 86% 20%, #3c3a32 0, #171717 40%, #0f0f0f 100%); }
.transport-page-hero-grid { display: grid; grid-template-columns: minmax(0, 1.45fr) minmax(250px, .55fr); gap: 40px; align-items: center; }
.transport-page-hero h1 { max-width: 780px; }
.transport-page-hero p:not(.eyebrow) { max-width: 720px; color: #e5e5e5; font-size: 1.12rem; }
.transport-price-summary { display: grid; gap: 5px; padding: 26px; border: 1px solid #4a4943; border-top: 6px solid var(--yellow); background: #242424; }
.transport-price-summary span, .transport-price-summary small { color: #d4d4d4; }
.transport-price-summary strong { color: var(--yellow); font-size: 2.7rem; line-height: 1.1; }
.transport-narrow { width: min(860px, calc(100% - 40px)); margin-inline: auto; }
.transport-zones-section { padding-top: 50px; background: #ebe8df; }
.transport-zone-details { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.transport-zone-details article { padding: 22px; border: 1px solid var(--line); border-top: 6px solid var(--yellow); background: white; }
.transport-zone-details article > div { display: grid; grid-template-columns: 1fr auto; gap: 2px 16px; align-items: end; }
.transport-zone-details span { color: var(--muted); font-size: .75rem; font-weight: 850; text-transform: uppercase; }
.transport-zone-details strong { grid-column: 1; font-size: 1.35rem; }
.transport-zone-details b { grid-column: 2; grid-row: 1 / span 2; color: #775700; font-size: 2rem; }
.transport-zone-details p { margin-bottom: 0; color: var(--muted); }
.transport-info-section { background: white; }
.transport-info-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 55px; }
.transport-info-grid h2 { margin-bottom: 18px; }
.transport-faq-section { background: #f0eee7; }
.transport-faq { display: grid; gap: 9px; margin-top: 24px; }
.transport-faq details { padding: 0 18px; border: 1px solid var(--line); border-radius: 7px; background: white; }
.transport-faq summary { padding: 17px 0; cursor: pointer; font-weight: 900; }
.transport-faq details p { margin: -3px 0 18px; color: var(--muted); }

.steps-section { background: white; }
.steps { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.steps li { display: flex; gap: 13px; border-top: 3px solid var(--ink); padding-top: 16px; }
.steps li > strong { display: grid; place-items: center; flex: 0 0 34px; height: 34px; border-radius: 50%; background: var(--yellow); }
.steps b, .steps span { display: block; }
.steps b { margin-bottom: 5px; }
.steps span { color: var(--muted); }
.steps b { color: var(--ink); }

.contact-strip { background: var(--yellow); padding-block: 55px; }
.contact-inner { display: flex; justify-content: space-between; align-items: center; gap: 35px; }
.contact-strip .eyebrow { color: #5e4600; }
.contact-strip p { margin-bottom: 0; }
.contact-actions { display: flex; flex-wrap: wrap; gap: 10px; }
footer { padding-block: 35px; background: var(--ink); color: #d7d7d7; }
.footer-grid { display: grid; grid-template-columns: 1.2fr 1fr .8fr; gap: 25px; }
.footer-grid div { display: flex; flex-direction: column; }
.footer-grid strong { color: var(--yellow); font-size: 1.15rem; }
.footer-grid a { color: white; }
.legal-main { padding-block: 58px 78px; background: var(--paper); }
.legal-layout { display: grid; gap: 16px; max-width: 980px; }
.legal-heading { margin-bottom: 12px; }
.legal-heading h1 { max-width: none; font-size: clamp(2.4rem, 5vw, 4.6rem); }
.legal-heading > p:last-child { color: var(--muted); }
.legal-card { padding: 26px; border: 1px solid var(--line); border-radius: 9px; background: white; box-shadow: 0 8px 28px rgba(20,20,20,.06); }
.legal-card h2 { margin-bottom: 14px; font-size: clamp(1.45rem, 3vw, 2rem); }
.legal-card p:last-child { margin-bottom: 0; }
.legal-card a { color: #725500; font-weight: 800; }
.legal-card li + li { margin-top: 7px; }
.legal-table-wrap { overflow-x: auto; }
.legal-table { width: 100%; border-collapse: collapse; font-size: .88rem; }
.legal-table th, .legal-table td { padding: 11px 10px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.legal-table th { color: var(--muted); font-size: .72rem; text-transform: uppercase; letter-spacing: .04em; }

dialog { width: min(570px, calc(100% - 24px)); border: 0; border-radius: 9px; padding: 0; box-shadow: 0 28px 90px rgba(0,0,0,.35); }
dialog::backdrop { background: rgba(0,0,0,.72); }
dialog form { position: relative; padding: 30px; }
.dialog-close { position: absolute; right: 18px; top: 12px; border: 0; background: transparent; font-size: 2rem; cursor: pointer; }
.form-intro { color: var(--muted); }
.form-privacy { margin: 12px 0 0; color: var(--muted); font-size: .78rem; }
.form-privacy a { color: #725500; font-weight: 800; }
label { display: grid; gap: 6px; margin-top: 14px; font-weight: 750; }
input, select, textarea { width: 100%; border: 1px solid #bbb8ae; border-radius: 5px; background: white; padding: 11px 12px; color: var(--ink); }
textarea { resize: vertical; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
label.checkbox { display: flex; flex-direction: row; align-items: center; }
.checkbox input { width: auto; }

@media (max-width: 900px) {
  nav { display: none; }
  .header-inner { position: relative; }
  .mobile-menu { display: block; margin-left: auto; }
  .mobile-menu summary { min-height: 44px; display: flex; align-items: center; gap: 7px; padding: 8px 11px; border: 1px solid rgba(255,255,255,.28); border-radius: 5px; color: white; font-size: .82rem; font-weight: 850; cursor: pointer; }
  .mobile-menu summary:hover, .mobile-menu summary:focus-visible, .mobile-menu[open] summary { border-color: var(--yellow); color: var(--yellow); }
  .mobile-menu .menu-icon { font-size: 1.2rem; line-height: 1; }
  .mobile-menu nav { position: absolute; top: 100%; left: 0; right: 0; display: grid; gap: 0; margin: 0; padding: 8px; border-top: 1px solid #343434; border-radius: 0 0 8px 8px; background: #171717; box-shadow: 0 18px 32px rgba(0,0,0,.32); }
  .mobile-menu nav a { min-height: 48px; display: flex; align-items: center; padding: 10px 14px; border-bottom: 1px solid #343434; color: white; font-size: .95rem; }
  .mobile-menu nav a:last-child { border-bottom: 0; color: var(--yellow); }
  .mobile-menu + .account-entry-link { margin-left: 0; }
  .header-inner { min-height: 62px; }
  .phone-link { margin-left: auto; }
  .hero { min-height: 610px; }
  .facts-grid { grid-template-columns: 1fr 1fr; }
  .facts-grid > div { border-bottom: 1px solid #383838; }
  .machine-grid { grid-template-columns: repeat(2, 1fr); }
  .service-grid { grid-template-columns: 1fr; }
  .zone-grid, .steps { grid-template-columns: repeat(2, 1fr); }
  .contact-inner { align-items: flex-start; flex-direction: column; }
  .transport-page-hero-grid { grid-template-columns: 1fr; }
  .transport-price-summary { max-width: 420px; }
}

@media (max-width: 620px) {
  .wrap { width: calc(100% - 24px); }
  .header-inner { min-height: 58px; gap: 8px; }
  .brand { gap: 7px; min-width: 0; }
  .brand-logo { width: 39px; height: 39px; flex-basis: 39px; }
  .brand-copy strong { font-size: .84rem; }
  .brand-copy small { margin-top: 3px; font-size: .46rem; }
  .logout-button { flex: 0 0 auto; padding-inline: 9px; font-size: .75rem; }
  .admin-page .header-inner { position: relative; padding-right: 54px; }
  .admin-page .logout-button { position: fixed; right: 12px; top: 10px; z-index: 60; }
  .admin-page .brand-copy small { display: none; }
  .admin-page .brand-copy strong { font-size: .78rem; }
  .phone-link { min-width: 0; padding: 8px 10px; font-size: .8rem; white-space: nowrap; }
  .account-entry-link span { font-size: 0; }
  .account-entry-link span::after { content: "Účet"; font-size: .8rem; }
  .account-entry-link small { display: none; }
  .phone-full { display: none; }
  .phone-short { display: inline; }
  .hero { min-height: 475px; align-items: end; }
  .hero > img { object-position: 63% center; }
  .hero-content { padding-block: 42px 24px; }
  .hero-brand-logo { display: none; }
  .hero-shade { background: linear-gradient(0deg, rgba(0,0,0,.94) 0%, rgba(0,0,0,.74) 64%, rgba(0,0,0,.38)); }
  .hero .eyebrow { margin-bottom: 7px; font-size: .68rem; letter-spacing: .1em; }
  .hero h1 { width: 100%; max-width: 530px; font-size: clamp(1.78rem, 7.8vw, 2.05rem); line-height: 1.03; letter-spacing: -.045em; }
  .hero-lead { max-width: 520px; margin: 13px 0 0; font-size: .98rem; line-height: 1.42; }
  .hero-actions { gap: 8px; margin-top: 18px; }
  .hero-actions .button { min-width: 0; min-height: 45px; flex: 1 1 44%; padding: 10px; }
  .hero-actions .button-primary { flex-basis: 100%; }
  .trust-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-top: 18px; font-size: .72rem; line-height: 1.2; }
  .trust-row li { display: flex; align-items: flex-start; }
  .trust-row li::before { margin-right: 5px; }
  .facts-grid > div { min-height: 86px; padding: 12px; }
  .facts-grid strong { font-size: 1.55rem; }
  .facts-grid span { font-size: .84rem; }
  .section { padding-block: 42px; }
  .section-heading { align-items: flex-start; flex-direction: column; gap: 12px; }
  .section-heading { margin-bottom: 20px; }
  .section-heading h2 { font-size: 2rem; }
  .section-heading p { margin-bottom: 0; }
  .availability-legend { flex-direction: row; flex-wrap: wrap; }
  .fleet-positioning { grid-template-columns: 1fr; gap: 6px; margin-bottom: 16px; padding: 13px 14px; }
  .fleet-positioning strong { font-size: .95rem; }
  .fleet-positioning span { font-size: .82rem; line-height: 1.4; }
  .filters { flex-wrap: nowrap; overflow-x: auto; margin-bottom: 16px; padding-bottom: 5px; scrollbar-width: none; }
  .filters::-webkit-scrollbar { display: none; }
  .filter { min-height: 43px; flex: 0 0 auto; padding: 8px 13px; }
  .fleet-positioning { grid-template-columns: 1fr; gap: 6px; }
  .filter { white-space: nowrap; }
  .machine-grid { grid-template-columns: 1fr; }
  .machine-grid { gap: 13px; }
  .machine-image { aspect-ratio: 16/8.5; }
  .machine-body { padding: 14px; }
  .machine-body h3 { margin: 3px 0 6px; font-size: 1.22rem; }
  .machine-provenance { margin-bottom: 5px; font-size: .78rem; }
  .specs { min-height: 0; margin-bottom: 11px; font-size: .84rem; line-height: 1.4; }
  .price-row { padding-top: 11px; }
  .price strong { font-size: 1.5rem; }
  .card-actions .details-button { display: none; }
  .card-actions .reserve-button { min-height: 46px; padding-inline: 16px; }
  .check-list { columns: 1; }
  .zone-grid, .steps { grid-template-columns: 1fr 1fr; }
  .steps li { font-size: .9rem; }
  .footer-grid { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .delivery-input-row { grid-template-columns: 1fr; }
  .delivery-input-row .button { width: 100%; }
  .transport-page-hero { padding-block: 38px; }
  .transport-page-hero-grid { gap: 24px; }
  .transport-page-hero h1 { font-size: clamp(2.25rem, 11vw, 3rem); }
  .transport-page-hero p:not(.eyebrow) { font-size: 1rem; }
  .transport-page-hero .hero-actions .button { flex: 1 1 100%; }
  .delivery-input-row { grid-template-columns: 1fr; }
  .delivery-input-row .button { width: 100%; }
  .transport-price-summary { padding: 20px; }
  .transport-narrow { width: calc(100% - 24px); }
  .transport-zone-details, .transport-info-grid { grid-template-columns: 1fr; }
  .transport-zone-details article { padding: 18px; }
  dialog form { padding: 24px 18px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: .01ms !important; }
}

/* Prihlásenie a zákaznícky účet */
.account-main { min-height: calc(100vh - 170px); padding-block: 58px 78px; }
.account-shell { width: min(1040px, calc(100% - 40px)); margin-inline: auto; }
.account-heading { margin-bottom: 26px; }
.account-heading h1 { max-width: none; font-size: clamp(2.2rem, 5vw, 4rem); }
.account-heading p { max-width: 720px; color: var(--muted); }
.prototype-notice { margin-bottom: 24px; padding: 14px 16px; background: #fff2c5; border-left: 5px solid var(--yellow-dark); }
.auth-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; align-items: start; }
.auth-card, .calendar-panel, .account-sidebar { padding: 26px; background: white; border: 1px solid var(--line); border-radius: 9px; box-shadow: 0 8px 28px rgba(20,20,20,.07); }
.auth-card h2 { font-size: 2rem; }
.auth-card p { color: var(--muted); }
.auth-card .button { margin-top: 18px; }
.owner-login-shell { width: min(520px, calc(100% - 40px)); margin-inline: auto; }
.owner-login-card { padding: 28px; }
.registration-consent { align-items: flex-start; margin-top: 14px; font-size: .82rem; }
.registration-consent a { text-decoration: underline; }
.customer-account-shell { width: min(1180px, calc(100% - 40px)); margin-inline: auto; }
.customer-welcome { display: flex; justify-content: space-between; gap: 24px; align-items: end; margin-bottom: 22px; }
.customer-welcome h1 { margin-bottom: 4px; font-size: clamp(2.2rem, 5vw, 4rem); }
.customer-welcome p { margin: 0; color: var(--muted); }
.customer-summary { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-bottom: 18px; }
.customer-summary > div { padding: 16px; border-radius: 8px; background: var(--ink); color: white; }
.customer-summary span, .customer-summary strong { display: block; }
.customer-summary span { color: #ccc; font-size: .78rem; }
.customer-summary strong { margin-top: 4px; color: var(--yellow); font-size: 1.7rem; }
.customer-account-layout { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 18px; align-items: start; }
.customer-account-nav { position: sticky; top: 90px; display: flex; flex-direction: column; padding: 18px; border-radius: 8px; background: #1b1b1b; color: white; }
.customer-account-nav strong { margin-bottom: 8px; color: var(--yellow); font-size: 1.2rem; }
.customer-account-nav a { padding: 10px 0; border-top: 1px solid #3a3a3a; color: white; font-size: .86rem; font-weight: 750; }
.customer-account-nav a:hover { color: var(--yellow); }
.customer-account-content { display: grid; gap: 18px; }
.customer-panel { padding: 24px; scroll-margin-top: 95px; border: 1px solid var(--line); border-radius: 9px; background: white; box-shadow: 0 8px 28px rgba(20,20,20,.06); }
.customer-panel-heading { display: flex; justify-content: space-between; gap: 20px; align-items: end; margin-bottom: 18px; }
.customer-panel-heading h2 { margin: 0; font-size: clamp(1.65rem, 4vw, 2.4rem); }
.customer-machine-picker { min-width: 240px; margin: 0; }
.customer-reservation-list { display: grid; gap: 9px; }
.customer-reservation-card { display: grid; grid-template-columns: minmax(0, 1fr) auto auto; gap: 14px; align-items: center; padding: 14px; border: 1px solid #dedbd1; border-radius: 7px; }
.customer-reservation-card span, .customer-reservation-card small { display: block; color: var(--muted); font-size: .76rem; }
.customer-reservation-card strong { display: block; }
.customer-reservation-group { align-items: start; }
.customer-reservation-group ul { display: grid; gap: 8px; margin: 8px 0; padding: 0; list-style: none; }
.customer-reservation-group li { padding-left: 10px; border-left: 3px solid var(--yellow); }
.customer-reservation-actions { display: flex; flex-direction: column; gap: 7px; min-width: 190px; }
.customer-reservation-actions .button { width: 100%; }
.customer-reservation-card .customer-payment-status { margin-top: 7px; color: var(--ink); font-weight: 800; }
.customer-request-status { display: block; padding: 5px 8px; border-radius: 99px; background: #fff0b8; color: #624b00; font-size: .72rem; text-align: center; }
.customer-request-status.confirmed, .customer-request-status.active { background: #dff2e7; color: #145735; }
.customer-request-status.cancelled { background: #f5dcdc; color: #7b1e1e; }
.customer-empty-state { display: flex; flex-direction: column; align-items: flex-start; gap: 6px; padding: 22px; border: 1px dashed #cfcbbf; border-radius: 7px; background: #f8f6ef; }
.customer-empty-state span { color: var(--muted); }
.customer-calendar-legend { display: flex; flex-wrap: wrap; gap: 12px 18px; margin-bottom: 12px; color: var(--muted); font-size: .8rem; }
.customer-calendar-legend i { display: inline-block; width: 12px; height: 12px; margin-right: 5px; border-radius: 3px; vertical-align: -1px; }
.customer-calendar-legend .free { background: #dff2e7; }
.customer-calendar-legend .busy { background: #f5dcdc; }
.customer-calendar-legend .hold { background: #fff0b8; }
.customer-calendar-legend .selected { background: var(--ink); }
.customer-calendar-instruction { margin: 12px 0 8px; color: var(--muted); font-size: .86rem; }
.customer-availability-grid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 5px; }
.customer-availability-day { width: 100%; min-height: 76px; padding: 8px; border: 1px solid #86c5a2; border-radius: 6px; background: #dff2e7; color: var(--ink); text-align: left; font: inherit; }
button.customer-availability-day.free { cursor: pointer; transition: transform .15s ease, box-shadow .15s ease; }
button.customer-availability-day.free:hover { box-shadow: 0 4px 12px rgba(20, 35, 28, .16); transform: translateY(-1px); }
.customer-availability-day.selected { border-color: var(--ink); background: var(--ink); color: #fff; }
.customer-availability-day.selected span { color: #d9e2dd; }
.customer-availability-day.busy { border-color: #d89898; background: #f5dcdc; }
.customer-availability-day.hold { border-color: #dfc15a; background: #fff0b8; }
.customer-availability-day.partial-start { border-color: #a9ad9c; background: linear-gradient(to bottom, #dff2e7 0 50%, #f5dcdc 50% 100%); }
.customer-availability-day.partial-end { border-color: #a9ad9c; background: linear-gradient(to bottom, #f5dcdc 0 50%, #dff2e7 50% 100%); }
.customer-availability-day span, .customer-availability-day small { display: block; font-size: .68rem; }
.customer-availability-day span { color: var(--muted); text-transform: capitalize; }
.customer-availability-day strong { display: block; margin: 3px 0 8px; }
.customer-availability-actions { display: flex; justify-content: space-between; gap: 20px; align-items: center; margin-top: 14px; }
.customer-availability-actions p { margin: 0; color: var(--muted); font-size: .82rem; }
.customer-availability-buttons { display: flex; flex: 0 0 auto; flex-wrap: wrap; gap: 8px; }
.customer-availability-buttons .button:disabled { cursor: not-allowed; opacity: .45; }
.customer-booking-form { margin-top: 14px; padding: 16px; border: 1px solid #d4d0c4; border-radius: 7px; background: #f8f6ef; }
.customer-booking-form > div { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin: 12px 0 8px; }
.customer-booking-form label { display: grid; gap: 5px; color: var(--muted); font-size: .78rem; font-weight: 700; }
.customer-booking-form select, .customer-booking-form input { width: 100%; padding: 10px; border: 1px solid #c9c5ba; border-radius: 5px; background: #fff; color: var(--ink); font: inherit; }
.customer-booking-form small { color: var(--muted); }
.customer-booking-form-actions { display: flex !important; grid-template-columns: none !important; align-items: center; justify-content: space-between; flex-wrap: wrap; }
.customer-booking-items { margin-top: 12px; padding: 12px; border: 1px solid #d4d0c4; border-radius: 7px; background: #fff; }
.customer-booking-items > strong { display: block; margin-bottom: 6px; }
.customer-booking-items > div { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 8px 0; border-top: 1px solid #ece8df; }
.customer-booking-items span, .customer-booking-items small { display: block; }
.customer-booking-items small { margin-top: 2px; color: var(--muted); }
.customer-booking-items button { border: 0; background: transparent; color: #9b302c; cursor: pointer; text-decoration: underline; }
.customer-document-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.customer-document-card { display: flex; flex-direction: column; align-items: flex-start; min-height: 165px; padding: 18px; border: 1px solid #dedbd1; border-radius: 7px; background: #f8f6ef; }
.customer-document-card span { color: var(--muted); font-size: .75rem; }
.customer-document-card strong { font-size: 1.2rem; }
.customer-document-card p { color: var(--muted); }
.customer-document-card .button { margin-top: auto; }
.customer-document-card.muted { opacity: .78; }
.customer-loyalty-card { display: grid; grid-template-columns: minmax(0, 1fr) 280px; gap: 28px; align-items: center; }
.loyalty-progress > span { display: block; margin-bottom: 7px; color: var(--muted); font-size: .8rem; }
.loyalty-progress > div { height: 12px; overflow: hidden; border-radius: 99px; background: #e4e1d7; }
.loyalty-progress i { display: block; width: 0; height: 100%; background: var(--yellow-dark); }
.customer-profile-list { margin: 0; }
.customer-profile-list > div { display: grid; grid-template-columns: 120px 1fr; gap: 12px; padding: 11px 0; border-bottom: 1px solid #e6e2d8; }
.customer-profile-list dt { color: var(--muted); }
.customer-profile-list dd { margin: 0; font-weight: 800; }
.account-layout { display: grid; grid-template-columns: minmax(0, 1fr) 250px; gap: 22px; align-items: start; }
.admin-machines-panel { margin-bottom: 24px; padding: 26px; background: white; border: 1px solid var(--line); border-radius: 9px; box-shadow: 0 8px 28px rgba(20,20,20,.07); }
.admin-section-heading { display: flex; justify-content: space-between; gap: 24px; align-items: end; margin-bottom: 20px; }
.admin-section-heading h2 { font-size: clamp(1.8rem, 4vw, 2.7rem); }
.admin-machine-stats { display: flex; flex-wrap: wrap; gap: 8px; justify-content: flex-end; }
.admin-machine-stats span { padding: 7px 10px; border-radius: 4px; background: #f0eee6; color: var(--muted); font-size: .8rem; }
.admin-machine-stats strong { color: var(--ink); }
.admin-machine-list { display: grid; gap: 8px; }
.admin-machine-row { display: grid; grid-template-columns: 76px minmax(180px, 1fr) minmax(130px, .55fr) auto auto; gap: 14px; align-items: center; padding: 9px; border: 1px solid #e8e5db; border-radius: 7px; }
.admin-machine-photo { width: 76px; height: 55px; overflow: hidden; border-radius: 5px; background: #e3e0d6; }
.admin-machine-photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.admin-machine-placeholder { height: 100%; display: grid; place-items: center; padding: 5px; color: var(--muted); font-size: .65rem; text-align: center; }
.admin-machine-main { min-width: 0; display: flex; flex-direction: column; }
.admin-machine-main span { color: var(--muted); font-size: .75rem; }
.admin-machine-main strong { font-size: 1.02rem; }
.admin-machine-price { font-weight: 850; font-size: .88rem; }
.admin-status { padding: 6px 8px; border-radius: 99px; color: white; font-size: .72rem; font-weight: 850; white-space: nowrap; }
.admin-status.available { background: var(--green); }
.admin-status.verify { background: var(--blue); }
.admin-status.soon { background: var(--orange); }
.admin-machine-row .button { min-height: 38px; padding: 7px 10px; font-size: .76rem; }
.admin-main { background: #efede5; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
nav.admin-nav { position: sticky; top: 70px; z-index: 20; display: flex; gap: 7px; margin: 0 0 24px; padding: 9px; overflow-x: auto; background: #1b1b1b; border-radius: 8px; }
.admin-nav a { flex: 0 0 auto; padding: 9px 11px; border-radius: 4px; color: white; font-size: .82rem; }
.admin-nav a:hover { background: #3c3c3c; color: var(--yellow); }
.admin-panel { margin-bottom: 24px; padding: 26px; scroll-margin-top: 145px; background: white; border: 1px solid var(--line); border-radius: 9px; box-shadow: 0 8px 28px rgba(20,20,20,.07); }
.today-panel { border-top: 5px solid var(--yellow); }
.today-stats { display: flex; flex-wrap: wrap; gap: 8px; justify-content: flex-end; }
.today-stats span { padding: 8px 11px; border-radius: 5px; background: #f0eee6; color: var(--muted); font-size: .78rem; }
.today-stats strong { color: var(--ink); }
.today-heading-actions { display: flex; flex-direction: column; align-items: flex-end; gap: 8px; }
.admin-heading-actions { display: flex; flex-direction: column; align-items: flex-end; gap: 9px; }
.quick-job-search { display: flex; gap: 8px; align-items: end; margin: 0 0 16px; padding: 11px; border: 1px solid #dedbd1; border-radius: 7px; background: #f7f5ee; }
.quick-job-search label { flex: 1; margin: 0; font-size: .76rem; }
.quick-job-search input { padding: 9px; }
.quick-job-search .button { min-height: 41px; }
.today-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.today-card { display: grid; grid-template-columns: 8px minmax(0, 1fr) auto; gap: 12px; align-items: start; padding: 14px; border: 1px solid #dfdcd2; border-radius: 7px; background: #faf9f5; }
.today-card::before { content: ""; align-self: stretch; min-height: 70px; border-radius: 99px; background: var(--blue); }
.today-card.return::before { background: var(--orange); }
.today-card.active::before { background: var(--green); }
.today-card strong, .today-card span, .today-card small { display: block; }
.today-card span { margin-bottom: 3px; color: var(--muted); font-size: .75rem; font-weight: 800; text-transform: uppercase; }
.today-card small { margin-top: 5px; color: var(--muted); line-height: 1.4; }
.today-card .button { min-height: 36px; padding: 7px 9px; font-size: .74rem; }
.today-actions { display: flex; flex-direction: column; gap: 6px; }
.admin-machine-row { grid-template-columns: 76px minmax(180px, 1fr) minmax(130px, .55fr) auto minmax(132px, auto); }
.admin-machine-row.machine-removed { opacity: .68; background: #f1efe9; }
.admin-row-actions { display: flex; flex-wrap: wrap; gap: 6px; justify-content: flex-end; }
.admin-status.service { background: #9b2c2c; }
.admin-form { padding: 18px; background: #f6f4ed; border: 1px solid #dfddd4; border-radius: 7px; }
.admin-form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 14px; }
.admin-form-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.admin-filter-bar { display: grid; grid-template-columns: minmax(180px, 1.4fr) repeat(4, minmax(130px, .8fr)) auto; gap: 8px; align-items: end; margin-top: 18px; padding: 12px; border: 1px solid #dedbd1; border-radius: 7px; background: white; }
.admin-filter-bar label { margin: 0; font-size: .75rem; }
.admin-filter-bar input, .admin-filter-bar select { padding: 8px 9px; font-size: .82rem; }
.admin-filter-bar .button { min-height: 39px; padding: 8px 10px; font-size: .76rem; }
.customer-filter-bar { display: grid; grid-template-columns: minmax(220px, 1.5fr) minmax(150px, .7fr) auto; gap: 8px; align-items: end; margin: 18px 0 8px; padding: 12px; border: 1px solid #dedbd1; border-radius: 7px; background: #f7f5ee; }
.customer-filter-bar label { margin: 0; font-size: .75rem; }
.customer-filter-bar input, .customer-filter-bar select { padding: 8px 9px; font-size: .82rem; }
.customer-filter-bar .button { min-height: 39px; padding: 8px 10px; font-size: .76rem; }
.reservation-extra-machines { display: grid; gap: 10px; margin-top: 12px; }
.reservation-addons { margin-top: 14px; padding: 14px; border: 1px solid #dedbd1; border-radius: 7px; background: #fffdf6; }
.reservation-addons h3 { margin: 0 0 10px; font-size: 1rem; }
.reservation-addons label { margin-bottom: 0; }
.service-history-toolbar { display: flex; justify-content: flex-end; margin-top: 18px; }
.service-history-toolbar label { width: min(100%, 310px); margin: 0; }
.service-history-record { grid-template-columns: minmax(220px, 1.5fr) 100px minmax(190px, .8fr) auto; }
.reservation-extra-row { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr auto; gap: 10px; align-items: end; padding: 12px; border: 1px solid var(--line); border-radius: 7px; background: var(--paper); }
.reservation-extra-row label { margin: 0; }
.add-machine-button { margin-top: 12px; }
.contract-upload { margin: 16px 0; padding: 14px; border: 1px solid #d9d5c9; border-radius: 7px; background: white; }
.contract-upload > label { margin-top: 0; }
.contract-preview { display: grid; grid-template-columns: 105px 1fr; gap: 14px; align-items: center; margin-top: 12px; padding: 10px; border: 1px solid #d9d5c9; border-radius: 6px; background: #f6f4ed; }
.contract-preview[hidden] { display: none; }
.contract-preview img { width: 105px; height: 135px; border-radius: 4px; background: white; object-fit: contain; }
.contract-preview strong, .contract-preview span { display: block; }
.contract-preview span { margin: 3px 0 9px; color: var(--muted); font-size: .78rem; }
.contract-photo-dialog { width: min(94vw, 1050px); max-width: none; padding: 20px; border: 0; border-radius: 9px; }
.contract-photo-dialog::backdrop { background: rgba(0,0,0,.78); }
.contract-photo-dialog h2 { margin: 0 45px 14px 0; }
.contract-photo-dialog > img { display: block; width: 100%; max-height: 78vh; background: #eee; object-fit: contain; }
.storage-usage { margin: 8px 0 0; color: var(--muted); font-size: .8rem; }
.check-control { display: flex; flex-direction: row; align-items: center; gap: 8px; }
.check-control input { width: auto; }
.reservation-checks { display: flex; flex-wrap: wrap; gap: 10px 24px; margin-top: 10px; }
.reservation-checks .check-control { margin: 0; }
.privacy-form-warning { margin-top: -8px; color: #8f2218; font-weight: 750; }
.admin-record-list { display: grid; gap: 8px; margin-top: 18px; }
.admin-record { display: grid; grid-template-columns: minmax(180px, 1fr) 130px minmax(180px, 1.2fr) auto; gap: 14px; align-items: center; padding: 13px; border: 1px solid #e2dfd5; border-radius: 7px; }
.admin-record > div { min-width: 0; }
.admin-record span, .admin-record small { display: block; color: var(--muted); font-size: .76rem; }
.admin-record strong { display: block; }
.admin-record-note { color: var(--muted); font-size: .85rem; }
.danger-button { min-height: 38px; padding: 7px 10px; border: 1px solid #d6a09a; background: #fff1ef; color: #8f2218; border-radius: 5px; font-weight: 800; cursor: pointer; }
.admin-empty, .admin-help { color: var(--muted); }
.admin-table-wrap { width: 100%; overflow-x: auto; }
.admin-table { width: 100%; border-collapse: collapse; font-size: .86rem; }
.admin-table th, .admin-table td { padding: 11px 10px; border-bottom: 1px solid #e3e0d7; text-align: left; white-space: nowrap; }
.admin-table th { color: var(--muted); font-size: .72rem; text-transform: uppercase; letter-spacing: .05em; }
.customer-contact { display: grid; gap: 4px; min-width: 150px; }
.customer-contact a { color: var(--ink); font-weight: 800; }
.customer-contact small { display: block; max-width: 240px; overflow-wrap: anywhere; white-space: normal; color: var(--muted); line-height: 1.35; }
.customer-email-link { max-width: 240px; padding: 0; border: 0; background: transparent; color: #235d82; font: inherit; font-size: .76rem; text-align: left; overflow-wrap: anywhere; white-space: normal; cursor: pointer; text-decoration: underline; }
.email-history-record { grid-template-columns: minmax(210px, .8fr) minmax(260px, 1.5fr) auto; }
.email-history-record .admin-record-note { max-height: 4.5em; overflow: hidden; white-space: pre-line; }
.email-send-status { padding: 7px 9px; border-radius: 5px; font-size: .74rem; font-weight: 800; }
.email-send-status.sent { background: #e2f3e7; color: #176b39; }
.email-send-status.failed { background: #fff0ed; color: #8f221b; }
.media-summary { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-top: 18px; }
.media-machine-button { display: flex; flex-direction: column; align-items: flex-start; padding: 12px; border: 1px solid #dedbd1; border-radius: 6px; background: white; text-align: left; cursor: pointer; }
.media-machine-button:hover { border-color: var(--yellow-dark); }
.media-machine-button span { color: var(--muted); font-size: .72rem; }
.machine-photo-gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 12px; margin: 18px 0; }
.machine-photo-gallery figure { margin: 0; padding: 8px; border: 1px solid #dedbd1; border-radius: 7px; background: #fff; }
.machine-photo-gallery img { width: 100%; aspect-ratio: 16 / 10; object-fit: contain; background:#d8d4c8; display: block; border-radius: 5px; }
.machine-photo-gallery figcaption { margin: 7px 0; color: var(--muted); font-size: .75rem; }
.machine-photo-gallery .button { width: 100%; min-height: 36px; padding: 6px 8px; }
.month-filter { min-width: 180px; margin: 0; }
.revenue-cards { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin-bottom: 20px; }
.revenue-cards > div { padding: 16px; border-radius: 7px; background: #1d1d1d; color: white; }
.revenue-cards span, .revenue-cards strong { display: block; }
.revenue-cards span { color: #c8c8c8; font-size: .75rem; }
.revenue-cards strong { margin-top: 4px; color: var(--yellow); font-size: 1.45rem; }
.revenue-cards .expense-card { background: #65352f; }
.revenue-cards .net-card { background: #174f35; }
.revenue-cards .negative-card { background: #7a211c; }
.stats-heading { margin-top: 30px; padding-top: 24px; border-top: 1px solid var(--line); }
.stats-heading h3 { margin: 0; font-size: 1.45rem; }
.stats-heading p { margin: 5px 0 0; }
.document-admin-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.document-admin-card { display: flex; flex-direction: column; min-height: 155px; padding: 20px; border: 1px solid #dcd9ce; border-radius: 8px; background: #f7f5ee; text-decoration: none; }
.document-admin-card strong { font-size: 1.25rem; }
.document-admin-card span { margin: 7px 0 18px; color: var(--muted); }
.document-admin-card b { margin-top: auto; color: #775700; }
.backup-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.file-button { position: relative; overflow: hidden; cursor: pointer; }
.file-button input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.backup-status { min-height: 24px; margin-bottom: 0; color: var(--muted); font-weight: 700; }
.admin-dialog h2 { font-size: 2rem; }
#machine-dialog { width: min(96vw, 880px); max-width: none; padding: 0; border: 0; border-radius: 9px; }
#machine-dialog::backdrop { background: rgba(0,0,0,.7); }
#machine-dialog > form { position: relative; max-height: 92vh; overflow-y: auto; padding: 24px; }
#machine-dialog h3 { margin: 25px 0 10px; padding-top: 18px; border-top: 1px solid var(--line); }
.quick-job-dialog { width: min(94vw, 760px); max-width: none; padding: 0; border: 0; border-radius: 9px; }
.quick-job-dialog::backdrop { background: rgba(0,0,0,.68); }
.quick-job-dialog > form { position: relative; max-height: 90vh; overflow-y: auto; padding: 24px; }
.quick-identity-check { margin: 12px 0 0; padding: 11px; border-radius: 6px; background: #fff3c7; font-weight: 800; }
.operations-dialog { width: min(96vw, 860px); max-width: none; padding: 0; border: 0; border-radius: 9px; }
.operations-dialog::backdrop { background: rgba(0,0,0,.7); }
.operations-dialog > form { position: relative; max-height: 92vh; overflow-y: auto; padding: 24px; }
.operation-stage { margin-top: 14px; padding: 15px; border: 1px solid #dedbd1; border-radius: 8px; background: #f8f6ef; }
.operation-stage.return-stage { background: #f4f7f5; }
.operation-stage-heading { display: flex; justify-content: space-between; gap: 12px; align-items: center; margin-bottom: 8px; }
.operation-stage-heading > div { display: flex; gap: 9px; align-items: center; }
.operation-stage-heading span { display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; background: var(--ink); color: white; font-weight: 900; }
.operation-stage-heading h3 { margin: 0; font-size: 1.2rem; }
.operation-stage-heading .check-control { margin: 0; font-weight: 850; }
.calendar-toolbar { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 14px; align-items: end; margin-bottom: 20px; }
.calendar-toolbar label { min-width: min(100%, 270px); margin: 0; }
.month-controls { display: flex; align-items: center; gap: 8px; }
.month-controls button { width: 42px; height: 42px; border: 1px solid var(--line); border-radius: 5px; background: white; cursor: pointer; font-size: 1.2rem; font-weight: 900; }
.month-controls strong { min-width: 155px; text-align: center; text-transform: capitalize; }
.calendar-legend { display: flex; flex-wrap: wrap; gap: 12px 18px; margin-bottom: 15px; font-size: .86rem; color: var(--muted); }
.calendar-legend i { display: inline-block; width: 12px; height: 12px; margin-right: 6px; border-radius: 3px; vertical-align: -1px; }
.legend-free { background: #dff2e7; border: 1px solid #86c5a2; }
.legend-reserved { background: #f5dcdc; border: 1px solid #d89898; }
.legend-hold { background: #fff0b8; border: 1px solid #dfc15a; }
.calendar-weekdays, .calendar-grid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 5px; }
.calendar-weekdays span { padding: 6px 2px; color: var(--muted); text-align: center; font-size: .78rem; font-weight: 850; }
.calendar-day { min-height: 78px; padding: 8px; border: 1px solid var(--line); border-radius: 5px; background: #dff2e7; }
.calendar-day.outside { background: #f3f2ed; color: #aaa; }
.calendar-day.reserved { background: #f5dcdc; border-color: #d89898; }
.calendar-day.hold { background: #fff0b8; border-color: #dfc15a; }
.calendar-day.partial-start { border-color: #a9ad9c; background: linear-gradient(to bottom, #dff2e7 0 50%, #f5dcdc 50% 100%); }
.calendar-day.partial-end { border-color: #a9ad9c; background: linear-gradient(to bottom, #f5dcdc 0 50%, #dff2e7 50% 100%); }
.calendar-day .day-number { display: block; font-weight: 900; }
.calendar-day small { display: block; margin-top: 12px; font-size: .69rem; line-height: 1.2; }
.calendar-day.today { outline: 3px solid var(--ink); outline-offset: -3px; }
.account-sidebar h2 { font-size: 1.55rem; }
.account-sidebar ul { list-style: none; margin: 16px 0 0; padding: 0; }
.account-sidebar li + li { border-top: 1px solid var(--line); }
.account-sidebar a { display: block; padding: 12px 0; font-weight: 800; }
.privacy-note { margin-top: 18px; color: var(--muted); font-size: .83rem; }

@media (max-width: 760px) {
  .reservation-extra-row { grid-template-columns: 1fr 1fr; }
  .reservation-extra-row label:first-child { grid-column: 1 / -1; }
  .reservation-extra-row .remove-reservation-machine { grid-column: 1 / -1; justify-self: start; }
  .contract-preview { grid-template-columns: 78px 1fr; }
  .contract-preview img { width: 78px; height: 105px; }
  .auth-grid, .account-layout { grid-template-columns: 1fr; }
  .calendar-panel { padding: 18px 12px; }
  .calendar-toolbar { align-items: stretch; }
  .calendar-toolbar label { width: 100%; }
  .month-controls { justify-content: space-between; }
  .calendar-weekdays, .calendar-grid { gap: 3px; }
  .calendar-day { min-height: 58px; padding: 5px; }
  .calendar-day small { margin-top: 6px; font-size: .6rem; }
  .admin-machines-panel { padding: 18px 12px; }
  .admin-section-heading { align-items: flex-start; flex-direction: column; gap: 10px; }
  .admin-machine-stats { justify-content: flex-start; }
  .admin-machine-row { grid-template-columns: 64px minmax(0, 1fr) auto; gap: 10px; }
  .admin-machine-photo { width: 64px; height: 52px; grid-row: span 2; }
  .admin-machine-price { grid-column: 2; }
  .admin-status { grid-column: 3; grid-row: 1; }
  .admin-machine-row .button { grid-column: 3; grid-row: 2; }
}

@media (max-width: 900px) {
  nav.admin-nav { top: 62px; display: flex; }
  .admin-record { grid-template-columns: 1fr auto; }
  .admin-record-note { grid-column: 1 / -1; }
  .media-summary { grid-template-columns: repeat(2, 1fr); }
  .revenue-cards { grid-template-columns: repeat(2, 1fr); }
  .admin-filter-bar { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .customer-filter-bar { grid-template-columns: 1fr 1fr; }
  .admin-filter-bar .button { align-self: end; }
  .today-grid { grid-template-columns: 1fr; }
  .customer-account-layout { grid-template-columns: 1fr; }
  .customer-account-nav { position: static; flex-direction: row; gap: 12px; overflow-x: auto; }
  .customer-account-nav strong { display: none; }
  .customer-account-nav a { flex: 0 0 auto; padding: 5px 0; border: 0; }
  .customer-availability-grid { grid-template-columns: repeat(5, minmax(0, 1fr)); }
}

@media (max-width: 620px) {
  .admin-panel { padding: 18px 12px; scroll-margin-top: 122px; }
  .admin-form { padding: 12px; }
  .admin-form-grid { grid-template-columns: 1fr; }
  .admin-machine-row { grid-template-columns: 58px minmax(0, 1fr); }
  .admin-machine-photo { width: 58px; height: 52px; grid-row: 1 / span 3; }
  .admin-machine-price, .admin-status, .admin-machine-row .admin-row-actions { grid-column: 2; grid-row: auto; justify-self: start; }
  .admin-machine-row .button { grid-column: auto; grid-row: auto; }
  .admin-record { grid-template-columns: 1fr; }
  .admin-record-note, .admin-record .admin-row-actions { grid-column: 1; }
  .media-summary { grid-template-columns: 1fr; }
  .revenue-cards { grid-template-columns: 1fr 1fr; }
  .admin-filter-bar { grid-template-columns: 1fr; }
  .customer-filter-bar { grid-template-columns: 1fr; }
  .document-admin-grid { grid-template-columns: 1fr; }
  .today-stats { justify-content: flex-start; }
  .today-heading-actions { align-items: flex-start; }
  .admin-heading-actions { width: 100%; align-items: flex-start; }
  .quick-job-search { align-items: stretch; flex-direction: column; }
  .today-card { grid-template-columns: 7px minmax(0, 1fr); }
  .today-actions { grid-column: 2; flex-direction: row; justify-self: start; }
  .operation-stage-heading { align-items: flex-start; flex-direction: column; }
  .customer-welcome, .customer-panel-heading, .customer-availability-actions { align-items: flex-start; flex-direction: column; }
  .customer-availability-buttons { width: 100%; }
  .customer-availability-buttons .button { flex: 1 1 145px; }
  .customer-booking-form > div { grid-template-columns: 1fr; }
  .customer-summary { grid-template-columns: 1fr 1fr; }
  .customer-summary > div:first-child { grid-column: 1 / -1; }
  .customer-panel { padding: 18px 12px; }
  .customer-machine-picker { width: 100%; min-width: 0; }
  .customer-reservation-card { grid-template-columns: 1fr; }
  .customer-availability-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .customer-document-grid, .customer-loyalty-card { grid-template-columns: 1fr; }
  .customer-profile-list > div { grid-template-columns: 90px 1fr; }
}
.settlement-summary {
  display: grid;
  gap: .45rem;
  margin: 1rem 0;
  padding: 1rem;
  border: 1px solid #d8dfd4;
  border-radius: 14px;
  background: #f4f7f2;
}
.settlement-summary strong { margin-bottom: .2rem; }
.settlement-summary span { display: flex; justify-content: space-between; gap: 1rem; }
.settlement-summary span:nth-last-child(2) { color: #176b39; font-size: 1.04rem; }
.settlement-summary span:last-child { color: #a23b2a; }
.customer-deposit-status { color: #176b39; font-weight: 750; }
.customer-deposit-payment {
  display: grid;
  gap: .3rem;
  margin-top: .65rem;
  padding: .8rem;
  border: 1px solid #d6ad27;
  border-radius: 12px;
  background: #fff9df;
}
.customer-deposit-payment .button { margin-top: .35rem; justify-self: start; }
.transport-quote-control{display:flex;flex-direction:column;gap:.45rem;justify-content:flex-end}.transport-quote-control .button,.transport-quote-button{width:100%}.transport-quote-control small,#customer-transport-result{display:block;line-height:1.4;color:#5c554b}.transport-quote-control small.transport-ready,#customer-transport-result.transport-ready{color:#176b39;font-weight:700}.transport-quote-control small.transport-error,#customer-transport-result.transport-error{color:#a52a20;font-weight:700}
.public-delivery-fields{display:grid;gap:.6rem;margin:.5rem 0}.public-delivery-fields[hidden]{display:none}.public-transport-result{display:block;line-height:1.4;color:#5c554b}.public-transport-result.transport-ready{color:#176b39;font-weight:700}.public-transport-result.transport-error{color:#a52a20;font-weight:700}
.form-message.transport-ready{color:#176b39;background:#e8f5ec;border-color:#8fc4a0;font-weight:700}.form-message.transport-error{color:#8f211b;background:#fff0ed;border-color:#e0a098;font-weight:700}
.compact-heading{margin-top:1rem;align-items:center}.compact-heading h3{margin:0}.email-account-settings{margin:1rem 0}.email-account-settings summary{cursor:pointer;font-weight:800}.inbox-record{width:100%;display:grid;grid-template-columns:minmax(150px,.8fr) minmax(180px,1.4fr) auto;gap:.8rem;align-items:center;padding:.85rem 1rem;border:1px solid #ddd6c8;border-radius:12px;background:#fff;text-align:left;color:#181713;cursor:pointer}.inbox-record:hover{border-color:#d7a900;background:#fffaf0}.inbox-record.unread{border-left:5px solid #e8ae00;background:#fffcf2}.inbox-record span,.inbox-record small{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.inbox-message{margin:1rem 0;padding:1rem;border:1px solid #d7a900;border-radius:14px;background:#fffdf7}.inbox-message pre{max-height:420px;overflow:auto;white-space:pre-wrap;overflow-wrap:anywhere;font:inherit;line-height:1.55}.inbox-message[hidden]{display:none}@media(max-width:620px){.inbox-record{grid-template-columns:1fr;gap:.25rem}.inbox-record small{white-space:normal}.compact-heading{align-items:flex-start}}
