/* PT Sports Cars. Same structure, type and patterns as turnkeysimulators.com; PT's own red (from its logo). */
:root {
  --bg: #0b0d10;
  --bg-2: #12151a;
  --panel: #171b21;
  --line: #262c35;
  --text: #eef1f5;
  --muted: #9aa4b2;
  --accent: #ed174c;
  --accent-hover: #ff3a69;
  --accent-soft: rgba(237, 23, 76, .12);
  --accent-ink: #ffffff;
  --ok: #3ccf8e;
  --warn: #ffb020;
  --radius: 10px;
  --wrap: 1200px;
  --head: "Barlow Condensed", "Arial Narrow", sans-serif;
  --body: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 400 16px/1.6 var(--body);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3, h4 { font-family: var(--head); font-weight: 700; line-height: 1.05; letter-spacing: 0.01em; margin: 0 0 0.5em; text-transform: uppercase; }
h1 { font-size: clamp(2.6rem, 6vw, 4.8rem); }
h2 { font-size: clamp(2rem, 4vw, 3rem); }
h3 { font-size: 1.35rem; }
p { margin: 0 0 1em; }
.muted { color: var(--muted); }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 20px; }
.skip { position: absolute; left: -999px; }
.skip:focus { left: 12px; top: 12px; background: var(--accent); color: var(--accent-ink); padding: 8px 12px; z-index: 100; }
.eyebrow { font: 600 0.8rem/1 var(--body); letter-spacing: 0.18em; text-transform: uppercase; color: var(--accent); margin-bottom: 14px; display: block; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  background: var(--accent); color: var(--accent-ink);
  font: 700 1.05rem/1 var(--head); letter-spacing: 0.06em; text-transform: uppercase;
  padding: 15px 26px; border-radius: 6px; border: 0; text-decoration: none; cursor: pointer;
  transition: transform .15s ease, background .15s ease;
}
.btn:hover { background: var(--accent-hover); transform: translateY(-1px); }
.btn:disabled { opacity: .5; cursor: progress; transform: none; }
.btn-ghost { background: transparent; color: var(--text); box-shadow: inset 0 0 0 1px var(--line); }
.btn-ghost:hover { background: var(--panel); }
.btn-small { padding: 10px 16px; font-size: 0.95rem; }
.btn-block { width: 100%; }

/* Header */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(11,13,16,.88); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 72px; }
.brand { display: block; line-height: 0; }
.brand img { height: 40px; width: auto; }
.brand-footer img { height: 48px; }
.site-nav { display: flex; align-items: center; gap: 24px; }
.site-nav a:not(.btn) { text-decoration: none; color: var(--muted); font-weight: 500; font-size: 0.95rem; }
.site-nav a:not(.btn):hover, .site-nav a[aria-current] { color: var(--text); }
.nav-toggle { display: none; background: none; border: 1px solid var(--line); color: var(--text); padding: 8px 14px; border-radius: 6px; font: inherit; }
@media (max-width: 1200px) {
  .nav-toggle { display: block; }
  .site-nav { display: none; position: absolute; top: 72px; left: 0; right: 0; flex-direction: column; align-items: stretch; gap: 0; background: var(--bg-2); border-bottom: 1px solid var(--line); padding: 8px 20px 20px; }
  .site-nav.open { display: flex; }
  .site-nav a:not(.btn) { padding: 14px 0; border-bottom: 1px solid var(--line); }
  .site-nav .btn { margin-top: 16px; }
}

/* Hero */
.hero { position: relative; min-height: min(88vh, 820px); display: flex; align-items: flex-end; overflow: hidden; }
.hero-media { position: absolute; inset: 0; }
.hero-media img, .hero-media video { width: 100%; height: 100%; object-fit: cover; }
.hero-media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(11,13,16,.2) 0%, rgba(11,13,16,.55) 50%, var(--bg) 100%), linear-gradient(90deg, rgba(11,13,16,.85) 0%, rgba(11,13,16,0) 65%); }
.hero .wrap { width: 100%; }
.hero-content { position: relative; padding-bottom: 80px; max-width: 760px; }
.hero-content p { font-size: 1.15rem; color: #cfd6df; max-width: 560px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }

.page-head { padding: 72px 0 40px; border-bottom: 1px solid var(--line); background: radial-gradient(1000px 300px at 10% 0%, var(--accent-soft), transparent 60%); }
.page-head p { max-width: 680px; color: #cfd6df; font-size: 1.1rem; }

/* Sections */
.section { padding: 96px 0; }
.section-tight { padding: 56px 0; }
.section-alt { background: var(--bg-2); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section-head { display: flex; justify-content: space-between; align-items: end; gap: 24px; margin-bottom: 40px; flex-wrap: wrap; }
.section-head p { max-width: 520px; margin: 0; }

.usp-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.usp { background: var(--bg); padding: 28px; }
.usp b { font: 700 2.4rem/1 var(--head); color: var(--accent); display: block; margin-bottom: 10px; }
.usp p { margin: 0; color: var(--muted); }
@media (max-width: 860px) { .usp-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .usp-grid { grid-template-columns: 1fr; } }

/* "How can we help" service tiles */
.service-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
@media (max-width: 960px) { .service-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .service-grid { grid-template-columns: 1fr; } }
.service { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; text-decoration: none; display: flex; flex-direction: column; gap: 6px; transition: border-color .2s ease, transform .2s ease; }
.service:hover { border-color: var(--accent); transform: translateY(-3px); }
.service h3 { font-size: 1.7rem; margin: 0; }
.service p { color: var(--muted); margin: 0; font-size: .95rem; }
.service span { margin-top: auto; padding-top: 12px; color: var(--accent); font-weight: 600; font-size: .9rem; }

/* Car cards */
.car-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 20px; }
.car-card { position: relative; background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; text-decoration: none; display: flex; flex-direction: column; transition: border-color .2s ease, transform .2s ease; }
.car-card:hover { border-color: var(--accent); transform: translateY(-3px); }
.car-card .media { aspect-ratio: 4 / 3; overflow: hidden; background: #000; }
.car-card .media img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.car-card:hover .media img { transform: scale(1.04); }
.car-card .body { padding: 20px 22px 22px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.car-card .year { font-size: .78rem; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.car-card h3 { font-size: 1.55rem; margin: 0; }
.car-card .facts { display: flex; flex-wrap: wrap; gap: 6px 16px; color: var(--muted); font-size: .88rem; margin: 4px 0 0; padding: 0; list-style: none; }
.car-card .price { margin-top: auto; padding-top: 16px; display: flex; justify-content: space-between; align-items: baseline; }
.car-card .price strong { font: 700 1.7rem/1 var(--head); }
.car-card .price span { color: var(--accent); font-weight: 600; font-size: .9rem; }
.car-card.is-sold .media img { filter: grayscale(.7) brightness(.7); }
.badge { display: inline-block; font: 700 .85rem/1 var(--head); letter-spacing: .1em; text-transform: uppercase; padding: 7px 10px; border-radius: 4px; background: var(--accent); color: #fff; }
.badge-sold { background: #fff; color: #111; }
.badge-reserved { background: var(--warn); color: #111; }
.car-card .badge { position: absolute; top: 14px; left: 14px; }
.stock-filters { display: flex; flex-wrap: wrap; gap: 8px; margin: -16px 0 28px; }
.stock-filters button { font: inherit; font-size: .88rem; color: var(--text); background: var(--panel); border: 1px solid var(--line); border-radius: 999px; padding: 7px 15px; cursor: pointer; }
.stock-filters button[aria-pressed="true"] { border-color: var(--accent); background: var(--accent-soft); }

/* Split / feature blocks */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.split > img { border-radius: var(--radius); width: 100%; aspect-ratio: 4/3; object-fit: cover; }
@media (max-width: 860px) { .split { grid-template-columns: 1fr; gap: 32px; } }
.ticks { list-style: none; padding: 0; margin: 0 0 1.5em; }
.ticks li { padding: 8px 0 8px 30px; position: relative; border-bottom: 1px solid var(--line); }
.ticks li::before { content: ""; position: absolute; left: 0; top: 15px; width: 14px; height: 8px; border-left: 2px solid var(--accent); border-bottom: 2px solid var(--accent); transform: rotate(-45deg); }

.price-table { width: 100%; border-collapse: collapse; margin: 0 0 1.5em; }
.price-table th, .price-table td { text-align: left; padding: 12px 0; border-bottom: 1px solid var(--line); }
.price-table td:last-child { text-align: right; font: 700 1.3rem/1 var(--head); white-space: nowrap; }
.price-table small { color: var(--muted); font: 400 .8rem var(--body); }

.team { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
@media (max-width: 760px) { .team { grid-template-columns: 1fr; } }
.person { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; margin: 0; }
.person img { width: 96px; height: 96px; border-radius: 50%; object-fit: cover; margin-bottom: 16px; }
.person h3 { margin-bottom: 2px; }
.person .role { color: var(--accent); font-size: .85rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; margin-bottom: 12px; display: block; }
.person p { color: #cfd6df; font-size: .95rem; }

.cta-band { background: var(--accent); color: var(--accent-ink); }
.cta-band .wrap { display: flex; justify-content: space-between; align-items: center; gap: 24px; padding-top: 56px; padding-bottom: 56px; flex-wrap: wrap; }
.cta-band h2 { margin: 0; }
.cta-band .btn { background: #fff; color: var(--accent); }

/* Car page */
.car-hero { display: grid; grid-template-columns: 1.4fr 1fr; gap: 48px; padding: 40px 0 64px; align-items: start; }
@media (max-width: 960px) { .car-hero { grid-template-columns: 1fr; gap: 28px; } }
.crumbs { font-size: .85rem; color: var(--muted); padding-top: 28px; }
.crumbs a { color: var(--muted); }
.gallery-main { position: relative; aspect-ratio: 4/3; border-radius: var(--radius); overflow: hidden; background: #000; border: 1px solid var(--line); }
.gallery-main img { width: 100%; height: 100%; object-fit: cover; }
.gallery-main .badge { position: absolute; top: 16px; left: 16px; font-size: 1.1rem; }
.gallery-nav { position: absolute; top: 50%; transform: translateY(-50%); width: 44px; height: 44px; border-radius: 50%; border: 0; background: rgba(11,13,16,.7); color: #fff; font-size: 1.4rem; cursor: pointer; }
.gallery-nav:hover { background: var(--accent); }
.gallery-nav.prev { left: 12px; }
.gallery-nav.next { right: 12px; }
.gallery-count { position: absolute; right: 14px; bottom: 12px; background: rgba(11,13,16,.75); padding: 4px 10px; border-radius: 999px; font-size: .8rem; }
.gallery-thumbs { display: grid; grid-template-columns: repeat(auto-fill, minmax(84px, 1fr)); gap: 8px; margin-top: 10px; }
.gallery-thumbs button { padding: 0; border: 1px solid var(--line); border-radius: 6px; overflow: hidden; background: #000; cursor: pointer; aspect-ratio: 4/3; }
.gallery-thumbs button[aria-pressed="true"] { border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent); }
.gallery-thumbs img { width: 100%; height: 100%; object-fit: cover; }
@media (max-width: 620px) {
  .gallery-thumbs { grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: 76px; overflow-x: auto; padding-bottom: 4px; }
}
.car-side h1 { font-size: clamp(2.2rem, 4.4vw, 3.4rem); }
.car-price { font: 700 3rem/1 var(--head); margin: 8px 0 18px; }
.car-price small { font: 500 1rem var(--body); color: var(--muted); margin-left: 6px; }
.spec-list { display: grid; grid-template-columns: 1fr 1fr; gap: 0 24px; padding: 0; list-style: none; margin: 0 0 24px; font-size: .95rem; }
.spec-list li { padding: 9px 0; border-bottom: 1px solid var(--line); }
.spec-list li span { display: block; color: var(--muted); font-size: .72rem; text-transform: uppercase; letter-spacing: .12em; }
.car-actions { display: grid; gap: 10px; }
.car-body { display: grid; grid-template-columns: 1.4fr 1fr; gap: 48px; align-items: start; }
@media (max-width: 960px) { .car-body { grid-template-columns: 1fr; } }
.car-body .prose ul { padding-left: 1.2em; columns: 2; column-gap: 32px; }
.car-body .prose li { break-inside: avoid; margin-bottom: 4px; }
@media (max-width: 620px) { .car-body .prose ul { columns: 1; } }
@media (min-width: 961px) { .sticky-card { position: sticky; top: 92px; } }

/* FAQ */
.faq { max-width: 820px; }
.faq details { border-bottom: 1px solid var(--line); padding: 20px 0; }
.faq summary { cursor: pointer; font: 700 1.35rem/1.2 var(--head); text-transform: uppercase; list-style: none; display: flex; justify-content: space-between; gap: 16px; }
.faq summary::after { content: "+"; color: var(--accent); font-size: 1.6rem; line-height: 1; }
.faq details[open] summary::after { content: "–"; }
.faq details p { color: #cfd6df; margin-top: 14px; }

/* Forms */
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-grid .full { grid-column: 1 / -1; }
@media (max-width: 620px) { .form-grid { grid-template-columns: 1fr; } }
label.field { display: grid; gap: 6px; font-size: .9rem; color: var(--muted); }
.field input, .field textarea, .field select { font: inherit; color: var(--text); background: var(--bg-2); border: 1px solid var(--line); border-radius: 8px; padding: 12px 14px; width: 100%; }
.field input:focus, .field textarea:focus, .field select:focus { outline: 2px solid var(--accent); outline-offset: 0; border-color: transparent; }
.hp { position: absolute; left: -9999px; }
.form-card { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; }
.form-card h2, .form-card h3 { margin-bottom: 6px; }
.form-error { color: #ff8a80; font-size: .9rem; margin: 10px 0 0; }
.form-note { font-size: .8rem; color: var(--muted); margin: 10px 0 0; }
.form-note a { color: var(--muted); }
.contact-cards { display: grid; gap: 16px; }
.contact-card { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; }
.contact-card h3 { margin-bottom: 6px; }
.contact-card a { color: var(--accent); text-decoration: none; font-weight: 600; }
.notice { padding: 14px 16px; border-radius: 8px; background: rgba(60,207,142,.1); border: 1px solid rgba(60,207,142,.35); }

/* Footer */
.site-footer { border-top: 1px solid var(--line); padding: 64px 0 28px; background: var(--bg-2); }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 32px; }
.footer-grid h3 { font-size: 1rem; color: var(--muted); }
.footer-grid p { color: #cfd6df; font-size: .95rem; }
.footer-grid a { text-decoration: none; }
.footer-grid a:hover { color: var(--accent); }
.brand-footer { margin-bottom: 14px; }
.footer-base { display: flex; justify-content: space-between; border-top: 1px solid var(--line); margin-top: 40px; padding-top: 22px; font-size: .85rem; color: var(--muted); gap: 20px; }
@media (max-width: 860px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .footer-grid { grid-template-columns: 1fr; } }
.footer-links { display: flex; gap: 20px; flex: none; flex-wrap: wrap; }
.footer-legal { max-width: 760px; line-height: 1.5; }
@media (max-width: 720px) { .footer-base { flex-direction: column; gap: 14px; } }
.link-btn { background: none; border: 0; padding: 0; font: inherit; color: inherit; cursor: pointer; }
.link-btn:hover, .footer-base a:hover { color: var(--accent); }
.sister { display: inline-flex; align-items: center; gap: 10px; margin-top: 8px; color: var(--muted); font-size: .85rem; text-decoration: none; }
.sister img { height: 26px; width: auto; }

/* Staff leads page (/leads/) */
.compare-scroll { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); background: var(--bg); }
.lead-filters { display: flex; flex-wrap: wrap; gap: 8px; margin: 16px 0 20px; }
.lead-filters button { font: inherit; font-size: .85rem; color: var(--text); background: var(--panel); border: 1px solid var(--line); border-radius: 999px; padding: 6px 14px; cursor: pointer; }
.lead-filters button[aria-pressed="true"] { border-color: var(--accent); background: var(--accent-soft); }
.leads { width: 100%; min-width: 860px; border-collapse: collapse; font-size: .9rem; }
.leads th, .leads td { padding: 12px 14px; text-align: left; vertical-align: top; border-bottom: 1px solid var(--line); }
.leads th { color: var(--muted); font-size: .75rem; text-transform: uppercase; letter-spacing: .1em; }
.leads a { color: var(--accent); text-decoration: none; }
.leads small { color: var(--muted); }
.leads .when { white-space: nowrap; color: var(--muted); }
.leads .msg { max-width: 360px; }
.leads select { font: inherit; color: var(--text); background: var(--bg-2); border: 1px solid var(--line); border-radius: 6px; padding: 6px 8px; }
.leads tr[data-status="new"] td:first-child { box-shadow: inset 3px 0 0 var(--accent); }
.add-lead { margin: 8px 0 16px; }
.add-lead > summary { list-style: none; display: inline-flex; }
.add-lead > summary::-webkit-details-marker { display: none; }
.add-lead[open] > summary { margin-bottom: 14px; }
.add-lead select { font: inherit; color: var(--text); background: var(--bg-2); border: 1px solid var(--line); border-radius: 8px; padding: 12px 14px; }

/* Floating call / WhatsApp button (every page) */
.wa-float {
  position: fixed; right: 18px; bottom: 18px; z-index: 55;
  display: inline-flex; align-items: center; gap: 8px;
  background: #25d366; color: #0b2e1a; text-decoration: none;
  font: 600 .95rem/1 var(--body); padding: 12px 16px; border-radius: 999px;
  box-shadow: 0 8px 24px rgba(0,0,0,.35); transition: transform .15s ease;
}
.wa-float.call { background: var(--accent); color: #fff; }
.wa-float:hover { transform: translateY(-2px); }
@media (max-width: 520px) { .wa-float span { display: none; } .wa-float { padding: 13px; } }

/* Cookie banner */
.cookie-banner {
  position: fixed; z-index: 60; left: 16px; right: 16px; bottom: 16px; max-width: 560px;
  background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 18px 20px; box-shadow: 0 12px 40px rgba(0,0,0,.5);
  display: flex; gap: 16px; align-items: center; flex-wrap: wrap;
}
.cookie-banner p { margin: 0; flex: 1 1 260px; font-size: .9rem; color: #cfd6df; }
.cookie-banner a { color: var(--accent); }
.cookie-actions { display: flex; gap: 8px; }

.prose { max-width: 760px; }
.prose h2 { font-size: 2rem; margin-top: 1.4em; }
.prose a { color: var(--accent); }
.test-banner { background: repeating-linear-gradient(45deg, #ffcc00, #ffcc00 12px, #111 12px, #111 24px); padding: 3px 0; }
.test-banner div { background: #ffcc00; color: #111; text-align: center; font: 700 .8rem/1.8 var(--body); letter-spacing: .1em; text-transform: uppercase; }

/* Staff screens (/stock/ and /leads/) */
.staff-nav { display: flex; gap: 6px; margin-bottom: 18px; flex-wrap: wrap; }
.staff-nav a { text-decoration: none; padding: 8px 14px; border-radius: 999px; border: 1px solid var(--line); color: var(--muted); font-size: .9rem; }
.staff-nav a[aria-current] { color: var(--text); border-color: var(--accent); background: var(--accent-soft); }
.stock-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.stock-row { display: flex; align-items: center; gap: 12px; background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 10px; }
.stock-link { display: flex; align-items: center; gap: 14px; flex: 1; min-width: 0; text-decoration: none; }
.stock-link img { width: 96px; height: 72px; object-fit: cover; border-radius: 6px; flex: none; background: #000; }
.stock-info { display: grid; gap: 3px; min-width: 0; font-size: .9rem; color: var(--muted); }
.stock-info b { color: var(--text); font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.stock-actions { display: flex; gap: 8px; flex: none; }
@media (max-width: 620px) {
  .stock-row { flex-wrap: wrap; }
  .stock-actions { width: 100%; }
  .stock-actions .btn { flex: 1; }
  .btn-block-mobile { width: 100%; }
}
.chip { justify-self: start; font-size: .72rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; padding: 3px 8px; border-radius: 4px; background: rgba(60,207,142,.15); color: var(--ok); }
.chip-reserved { background: rgba(255,176,32,.15); color: var(--warn); }
.chip-sold { background: rgba(255,255,255,.12); color: var(--text); }
.chip-hidden { background: transparent; color: var(--muted); border: 1px solid var(--line); }
.car-edit { display: grid; gap: 18px; padding-bottom: 96px; }
.edit-block { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; display: grid; gap: 14px; }
.edit-block h2 { font-size: 1.6rem; margin: 0; }
.edit-block h2 small { font: 400 .8rem var(--body); color: var(--muted); text-transform: none; margin-left: 8px; }
.staff-only { border-style: dashed; }
.photo-grid { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 10px; }
.photo-grid li { position: relative; border-radius: 8px; overflow: hidden; border: 1px solid var(--line); background: #000; aspect-ratio: 4/3; }
.photo-grid li:first-child { border-color: var(--accent); }
.photo-grid img { width: 100%; height: 100%; object-fit: cover; }
.main-tag { position: absolute; top: 6px; left: 6px; background: var(--accent); color: #fff; font-size: .7rem; font-weight: 600; padding: 2px 6px; border-radius: 4px; }
.photo-tools { position: absolute; left: 0; right: 0; bottom: 0; display: flex; justify-content: space-between; background: linear-gradient(transparent, rgba(0,0,0,.75)); padding: 6px; }
.photo-tools button { width: 38px; height: 34px; border-radius: 6px; border: 0; background: rgba(255,255,255,.9); color: #111; font-size: 1rem; cursor: pointer; }
.photo-tools button:disabled { opacity: .3; }
.photo-tools [data-remove] { background: #ff5a5a; color: #fff; }
.photo-add { justify-self: start; cursor: pointer; }
.seg-group { display: flex; border: 1px solid var(--line); border-radius: 8px; overflow: hidden; }
.seg { flex: 1; }
.seg input { position: absolute; opacity: 0; }
.seg span { display: block; text-align: center; padding: 13px 8px; cursor: pointer; font-weight: 600; background: var(--bg-2); }
.seg + .seg span { border-left: 1px solid var(--line); }
.seg input:checked + span { background: var(--accent); color: #fff; }
.seg input:focus-visible + span { outline: 2px solid #fff; outline-offset: -4px; }
.switch, .tick { display: flex; align-items: center; gap: 10px; font-weight: 500; cursor: pointer; }
.switch input, .tick input { width: 22px; height: 22px; accent-color: var(--accent); }
.ticks-row { display: flex; flex-wrap: wrap; gap: 10px 24px; }
.save-bar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 40; display: flex; flex-wrap: wrap; gap: 10px; align-items: center; justify-content: flex-end; padding: 12px 20px; background: rgba(18,21,26,.96); border-top: 1px solid var(--line); }
/* Leave room under the edit form so the last links and history are not hidden behind the fixed save bar. */
body:has(.save-bar) { padding-bottom: 140px; }
.save-bar .form-error { flex: 1 1 100%; margin: 0; text-align: right; }
@media (max-width: 620px) { .save-bar .btn { flex: 1; } }
.edit-links { margin: 0 0 16px; }
.edit-links a, .history a { color: var(--accent); }
.history { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px 20px; margin-bottom: 96px; }
.history summary { cursor: pointer; font-weight: 600; }
.history ul { list-style: none; padding: 0; margin: 12px 0 0; display: grid; gap: 10px; font-size: .9rem; }
