/* Στοιχεία UI */

/* ---- Κουμπιά ---- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  padding: 0 18px;
  border-radius: var(--r-md);
  border: 1px solid transparent;
  font-weight: 700;
  font-size: 0.9375rem;
  letter-spacing: -0.005em;
  white-space: nowrap;
  transition: background 0.15s, border-color 0.15s, transform 0.1s;
}
.btn:active:not(:disabled) { transform: translateY(1px); }
.btn:disabled { opacity: 0.45; }
.btn-primary { background: var(--ink); color: var(--surface); }
.btn-primary:hover:not(:disabled) { background: color-mix(in srgb, var(--ink) 86%, var(--surface)); }
.btn-quiet { background: var(--surface); border-color: var(--line-strong); color: var(--ink); }
.btn-quiet:hover:not(:disabled) { background: var(--surface-2); }
.btn-danger { background: var(--st-overdue); color: #fff; }
.btn-sm { min-height: 36px; padding: 0 12px; font-size: 0.875rem; border-radius: 10px; }
.btn-block { width: 100%; }
.btn-row { display: flex; gap: 8px; flex-wrap: wrap; }

.icon-btn {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 12px;
  color: var(--muted);
  flex: none;
}
.icon-btn:hover { background: var(--surface-2); color: var(--ink); }

/* ---- Panels ---- */
.panel {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 18px;
  box-shadow: var(--shadow-card);
  min-width: 0;
}
@media (min-width: 640px) { .panel { padding: 20px 22px; } }

.panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
}
.panel-title { font-size: 1rem; font-weight: 700; letter-spacing: -0.01em; }
.panel-link {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  padding: 6px 4px 6px 8px;
  margin: -6px -4px -6px 0;
  border-radius: 8px;
  color: var(--accent);
  font-weight: 600;
  font-size: 0.875rem;
  white-space: nowrap;
}
.panel-link:hover { background: var(--accent-soft); }

/* ---- Status ---- */
[data-st="ok"] { --st: var(--st-ok); --st-soft: var(--st-ok-soft); }
[data-st="upcoming"] { --st: var(--st-upcoming); --st-soft: var(--st-upcoming-soft); }
[data-st="soon"] { --st: var(--st-soon); --st-soft: var(--st-soon-soft); }
[data-st="overdue"] { --st: var(--st-overdue); --st-soft: var(--st-overdue-soft); }

.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 26px;
  padding: 0 10px 0 8px;
  border-radius: var(--r-pill);
  background: var(--st-soft);
  color: var(--st);
  font-size: 0.75rem;
  font-weight: 700;
  white-space: nowrap;
}
.badge-dot { width: 7px; height: 7px; border-radius: 50%; background: currentColor; }

/* ---- Γραμμές συντήρησης ---- */
.mlist { display: flex; flex-direction: column; }
.mrow {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  column-gap: 12px;
  row-gap: 10px;
  padding: 14px 0 14px 14px;
  border-top: 1px solid var(--line);
  position: relative;
}
.mrow:first-child { border-top: 0; padding-top: 4px; }
.mrow:last-child { padding-bottom: 2px; }
.mrow::before {
  content: "";
  position: absolute;
  left: 0;
  top: 16px;
  bottom: 16px;
  width: 3px;
  border-radius: 3px;
  background: var(--st);
}
.mrow:first-child::before { top: 6px; }
.mrow:last-child::before { bottom: 4px; }
.mrow-title { font-weight: 700; letter-spacing: -0.01em; }
.mrow-vehicle { font-size: 0.8125rem; color: var(--muted); }
.mrow-meta { display: flex; flex-wrap: wrap; gap: 2px 12px; margin-top: 2px; font-size: 0.875rem; }
.mrow-left { color: var(--st); font-weight: 600; font-variant-numeric: tabular-nums; }
.mrow[data-st="ok"] .mrow-left, .mrow[data-st="upcoming"] .mrow-left { color: var(--ink-2); }
.mrow-alt { color: var(--muted); font-variant-numeric: tabular-nums; }

.gauge {
  grid-column: 1 / -1;
  height: 4px;
  border-radius: 4px;
  background: var(--surface-3);
  overflow: hidden;
}
.gauge > span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: var(--st);
}

.all-good {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--ink-2);
  font-weight: 500;
}
.all-good .icon { color: var(--st-ok); flex: none; }

/* ---- Πινακίδα ---- */
.plate {
  display: inline-flex;
  align-items: stretch;
  height: 30px;
  border: 1.5px solid var(--plate-ink);
  border-radius: 5px;
  background: var(--plate-bg);
  color: var(--plate-ink);
  overflow: hidden;
  flex: none;
  box-shadow: 0 1px 0 rgba(0, 0, 0, 0.06);
}
.plate-eu {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
  width: 17px;
  padding-bottom: 2px;
  background: var(--plate-eu);
  color: #fff;
  font-size: 0.5rem;
  font-weight: 800;
  line-height: 1;
}
.plate-stars {
  width: 9px;
  height: 9px;
  margin-bottom: 3px;
  border-radius: 50%;
  border: 1.5px dotted #F4CE3C;
}
.plate-num {
  display: flex;
  align-items: center;
  padding: 0 9px 0 7px;
  font-weight: 800;
  font-size: 0.9375rem;
  letter-spacing: 0.06em;
  white-space: nowrap;
}

/* ---- Μετρητής km ---- */
.odo {
  display: inline-flex;
  align-items: flex-end;
  gap: 3px;
  font-variant-numeric: tabular-nums;
}
.odo-cell {
  display: grid;
  place-items: center;
  background: var(--tile-bg);
  color: var(--tile-ink);
  font-weight: 700;
  position: relative;
  overflow: hidden;
}
.odo-cell::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.09) 0 48%, rgba(0, 0, 0, 0.22) 50%, rgba(255, 255, 255, 0.03) 52% 100%);
  pointer-events: none;
}
.odo-cell--lead { color: var(--tile-lead); }
.odo-cell::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.07);
}
.odo-unit { margin-left: 6px; font-weight: 700; color: var(--muted); }
.odo--lg .odo-cell { width: 38px; height: 52px; border-radius: 7px; font-size: 1.875rem; }
.odo--lg .odo-cell--sep { margin-left: 7px; }
.odo--lg .odo-unit { font-size: 1rem; padding-bottom: 4px; }
.odo--sm { gap: 2px; }
.odo--sm .odo-cell { width: 19px; height: 26px; border-radius: 4px; font-size: 0.9375rem; }
.odo--sm .odo-cell--sep { margin-left: 4px; }
.odo--sm .odo-unit { font-size: 0.8125rem; margin-left: 5px; padding-bottom: 2px; }
.odo--empty { color: var(--muted); font-weight: 600; }
@media (max-width: 380px) {
  .odo--lg .odo-cell { width: 32px; height: 46px; font-size: 1.5625rem; }
}

/* ---- Εικόνα οχήματος ---- */
.vmedia {
  display: grid;
  place-items: center;
  background: var(--hero-tint);
  color: var(--hero-shape);
  overflow: hidden;
}
.vmedia { position: relative; }
.vmedia .silhouette { width: 78%; height: auto; }
.vmedia img { width: 100%; height: 100%; object-fit: cover; }
.vmedia.is-busy::after, .photo-preview.is-busy::after {
  content: "";
  position: absolute;
  inset: 0;
  background: color-mix(in srgb, var(--surface) 55%, transparent) ;
  animation: pulse 1s ease-in-out infinite alternate;
}
@keyframes pulse { from { opacity: 0.4; } to { opacity: 0.9; } }
.media-edit {
  position: absolute;
  right: 10px;
  bottom: 10px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 36px;
  padding: 0 12px;
  border-radius: var(--r-pill);
  background: rgba(20, 24, 30, 0.72);
  color: #fff;
  font-size: 0.8125rem;
  font-weight: 700;
  cursor: pointer;
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
}
.media-edit:hover { background: rgba(20, 24, 30, 0.88); }
.media-edit:focus-within { outline: 2px solid var(--accent); outline-offset: 2px; }
.media-edit input, .file-btn input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}
.vmedia--md { aspect-ratio: 16 / 9; }
.vmedia--lg { border-radius: var(--r-lg); aspect-ratio: 16 / 10; }

/* ---- Κάρτες οχημάτων ---- */
.vgrid {
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr));
}
.vcard {
  display: flex;
  flex-direction: column;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-xl);
  overflow: hidden;
  box-shadow: var(--shadow-card);
  transition: border-color 0.15s, box-shadow 0.15s;
}
.vcard:hover { border-color: var(--line-strong); box-shadow: var(--shadow-lift); }
.vcard-body { display: flex; flex-direction: column; gap: 14px; padding: 16px 18px 18px; flex: 1; }
.vcard-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.vcard-title { font-size: 1.1875rem; font-weight: 800; letter-spacing: -0.02em; line-height: 1.2; }
.vcard-sub { margin-top: 2px; color: var(--muted); font-size: 0.875rem; }
.vcard-next {
  display: flex;
  flex-direction: column;
  gap: 1px;
  margin-top: auto;
  padding: 10px 12px;
  border-radius: var(--r-md);
  background: var(--st-soft, var(--surface-2));
}
.vcard-next-label { font-size: 0.8125rem; color: var(--ink-2); font-weight: 600; }
.vcard-next-value { font-weight: 700; color: var(--st); font-variant-numeric: tabular-nums; }
.vcard-next[data-st="ok"] .vcard-next-value, .vcard-next[data-st="upcoming"] .vcard-next-value { color: var(--ink); }
.vcard-next--none { color: var(--muted); font-size: 0.875rem; background: var(--surface-2); }

.vcard-add {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 220px;
  border: 1.5px dashed var(--line-strong);
  border-radius: var(--r-xl);
  color: var(--muted);
  font-weight: 700;
}
.vcard-add:hover { color: var(--ink); border-color: var(--ink-2); }
.vcard-add-icon { display: grid; place-items: center; width: 52px; height: 52px; border-radius: 16px; background: var(--surface); border: 1px solid var(--line); }

/* ---- Hero οχήματος ---- */
.hero {
  display: grid;
  gap: 18px;
  margin-bottom: 18px;
  padding: 16px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-xl);
  box-shadow: var(--shadow-card);
}
.hero-id { display: grid; gap: 16px; }
.hero-text { display: flex; flex-direction: column; align-items: flex-start; gap: 6px; min-width: 0; }
.hero-top {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: -6px;
}
.hero-top .back-link { margin: 0 0 0 -2px; }
.hero-title {
  font-size: clamp(1.75rem, 1.35rem + 1.6vw, 2.5rem);
  font-weight: 800;
  letter-spacing: -0.035em;
  line-height: 1.05;
}
.hero-sub { color: var(--ink-2); font-weight: 600; font-size: 1.0625rem; }
.facts { display: flex; flex-wrap: wrap; gap: 6px; margin: 6px 0 8px; }
.facts li {
  padding: 3px 10px;
  border-radius: var(--r-pill);
  background: var(--surface-2);
  border: 1px solid var(--line);
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--ink-2);
}
.hero-odo {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
  padding: 16px;
  border-radius: var(--r-lg);
  background: var(--surface-2);
  border: 1px solid var(--line);
}
.hero-odo-label { font-weight: 700; font-size: 0.875rem; color: var(--ink-2); }
.hero-odo-meta { display: flex; flex-wrap: wrap; gap: 2px 12px; color: var(--muted); font-size: 0.875rem; }
.hero-rate { color: var(--ink-2); }
.hero-odo .btn { margin-top: 4px; }

.hero .vmedia--lg { aspect-ratio: 2 / 1; }
.hero .vmedia--lg .silhouette { width: 62%; }
@media (min-width: 640px) {
  .hero-id { grid-template-columns: 240px minmax(0, 1fr); align-items: center; }
  .hero .vmedia--lg .silhouette { width: 78%; }
  .hero-id .vmedia--lg { aspect-ratio: 4 / 3; }
}
@media (min-width: 1180px) {
  .hero { grid-template-columns: minmax(0, 1fr) 340px; align-items: stretch; padding: 18px; }
  .hero-id { grid-template-columns: 280px minmax(0, 1fr); }
  .hero-odo { justify-content: center; padding: 22px; }
}

/* ---- Καρτέλες οχήματος ---- */
.vtabs {
  display: flex;
  gap: 4px;
  margin: 0 -16px 18px;
  padding: 0 16px 2px;
  overflow-x: auto;
  scrollbar-width: none;
  scroll-snap-type: x proximity;
}
.vtabs::-webkit-scrollbar { display: none; }
.vtab {
  flex: none;
  scroll-snap-align: start;
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: 0 14px;
  border-radius: var(--r-pill);
  color: var(--ink-2);
  font-weight: 600;
  font-size: 0.9375rem;
  white-space: nowrap;
}
.vtab:hover { background: var(--surface); }
.vtab.is-active { background: var(--ink); color: var(--surface); }
@media (min-width: 1024px) {
  .vtabs { margin: 0 0 20px; padding: 0; gap: 2px; }
  .vtab { padding: 0 12px; }
}

.vhead { margin-bottom: 16px; }
.vhead-row { display: flex; align-items: center; flex-wrap: wrap; gap: 12px 16px; }

/* ---- Χρονολόγιο ---- */
.tl-year {
  margin: 18px 0 6px;
  font-weight: 800;
  font-size: 0.875rem;
  color: var(--muted);
  letter-spacing: 0.02em;
}
.tl-year:first-child { margin-top: 0; }
.tl { position: relative; }
.tl::before {
  content: "";
  position: absolute;
  left: 23px;
  top: 12px;
  bottom: 12px;
  width: 1.5px;
  background: var(--line);
}
.hrow {
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr) auto;
  align-items: center;
  gap: 14px;
  padding: 10px 0;
  border-radius: var(--r-md);
}
a.hrow:hover .hrow-title { color: var(--accent); }
.hrow-date {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 50px;
  border-radius: 12px;
  background: var(--surface);
  border: 1px solid var(--line-strong);
  line-height: 1;
}
.hrow-day { font-weight: 800; font-size: 1.125rem; font-variant-numeric: tabular-nums; }
.hrow-mon { margin-top: 3px; font-size: 0.6875rem; font-weight: 700; color: var(--muted); }
.hrow-main { display: flex; flex-direction: column; min-width: 0; }
.hrow-title { font-weight: 700; letter-spacing: -0.01em; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.hrow-meta { display: flex; flex-wrap: wrap; gap: 0 10px; color: var(--muted); font-size: 0.8125rem; }
.hrow-cost { font-weight: 700; }

/* ---- Έξοδα ---- */
.money-pair { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 8px 28px; margin-bottom: 16px; }
.money-pair > div { display: flex; flex-direction: column; }
.money-label { font-size: 0.8125rem; color: var(--muted); font-weight: 600; }
.money-value { font-size: 1.875rem; font-weight: 800; letter-spacing: -0.03em; line-height: 1.15; }
.money-value--sm { font-size: 1.25rem; color: var(--ink-2); }
.catbar { display: flex; height: 10px; gap: 2px; border-radius: 5px; overflow: hidden; margin-bottom: 12px; }
.catbar > span { min-width: 3px; }
[data-i="0"] { background: var(--cat-0); }
[data-i="1"] { background: var(--cat-1); }
[data-i="2"] { background: var(--cat-2); }
[data-i="3"] { background: var(--cat-3); }
[data-i="4"] { background: var(--cat-4); }
[data-i="5"] { background: var(--cat-5); }
.catlist { display: grid; gap: 6px 20px; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); font-size: 0.875rem; }
.catlist li { display: flex; align-items: center; gap: 8px; }
.catlist-key { width: 9px; height: 9px; border-radius: 3px; flex: none; }
.catlist-label { flex: 1; color: var(--ink-2); min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.catlist .num { font-weight: 700; }

/* ---- Προθεσμίες ---- */
.dlist { display: flex; flex-direction: column; }
.drow {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 0;
  border-top: 1px solid var(--line);
}
.drow:first-child { border-top: 0; padding-top: 0; }
.drow-main, .drow-when { display: flex; flex-direction: column; min-width: 0; }
.drow-when { align-items: flex-end; text-align: right; }
.drow-title { font-weight: 700; }
.drow-sub, .drow-date { font-size: 0.8125rem; color: var(--muted); }
.drow-left { font-weight: 700; font-size: 0.875rem; color: var(--ink-2); font-variant-numeric: tabular-nums; }
.drow[data-st="soon"] .drow-left, .drow[data-st="overdue"] .drow-left { color: var(--st); }

/* ---- Θέματα / προβλήματα ---- */
.ilist { display: flex; flex-direction: column; gap: 10px; }
.irow { display: flex; gap: 12px; align-items: flex-start; }
.irow-flag { width: 10px; height: 10px; margin-top: 7px; border-radius: 3px; flex: none; transform: rotate(45deg); }
.irow[data-pr="high"] .irow-flag { background: var(--st-overdue); }
.irow[data-pr="medium"] .irow-flag { background: var(--st-soon); }
.irow[data-pr="low"] .irow-flag { background: var(--line-strong); }
.irow-main { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.irow-title { font-weight: 600; }
.irow-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; font-size: 0.8125rem; color: var(--muted); }
.pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  height: 22px;
  padding: 0 9px;
  border-radius: var(--r-pill);
  background: var(--surface-3);
  color: var(--ink-2);
  font-size: 0.75rem;
  font-weight: 700;
  white-space: nowrap;
}
.pill[data-status="open"] { background: var(--st-overdue-soft); color: var(--st-overdue); }
.pill[data-status="monitoring"] { background: var(--st-soon-soft); color: var(--st-soon); }
.pill[data-status="local"] { height: 30px; padding: 0 12px; }

/* ---- Χαρακτηριστικά ---- */
.specs { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--r-md); overflow: hidden; }
.spec { display: flex; flex-direction: column; gap: 2px; padding: 10px 12px; background: var(--surface); min-width: 0; }
.spec dt { font-size: 0.75rem; color: var(--muted); font-weight: 600; }
.spec dd { font-weight: 700; overflow-wrap: anywhere; }
.spec-unit { color: var(--muted); font-weight: 600; }

.doclist { display: flex; flex-direction: column; gap: 8px; }
.doclist li { display: flex; align-items: center; gap: 10px; }
.doclist li span:nth-child(2) { flex: 1; }
.panel .muted.small + .btn { margin-top: 12px; }

/* ---- Γρήγορες ενέργειες ---- */
.qa-grid { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 8px; }
.qa {
  grid-column: span 2;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
  min-height: 88px;
  padding: 12px;
  border-radius: var(--r-md);
  background: var(--surface-2);
  border: 1px solid var(--line);
  text-align: left;
  font-weight: 700;
  font-size: 0.875rem;
  line-height: 1.25;
  transition: background 0.15s, border-color 0.15s;
}
/* Οι δύο συχνότερες ενέργειες πιο μεγάλες */
.qa[data-key="service"], .qa[data-key="expense"] {
  grid-column: span 3;
  flex-direction: row;
  align-items: center;
  justify-content: flex-start;
  min-height: 64px;
  background: var(--ink);
  border-color: var(--ink);
  color: var(--surface);
}
.qa[data-key="service"] .qa-icon, .qa[data-key="expense"] .qa-icon {
  background: color-mix(in srgb, var(--surface) 14%, transparent);
  border-color: transparent;
  color: var(--surface);
}
.qa:hover { background: var(--surface); border-color: var(--line-strong); }
.qa[data-key="service"]:hover, .qa[data-key="expense"]:hover { background: color-mix(in srgb, var(--ink) 86%, var(--surface)); }
.qa:active { transform: scale(0.98); }
.qa-icon {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 11px;
  background: var(--surface);
  border: 1px solid var(--line);
  color: var(--ink);
  flex: none;
}
.qa .qa-icon { width: 36px; height: 36px; }
@media (max-width: 360px) {
  .qa { grid-column: span 3; }
}

.qa-list { display: flex; flex-direction: column; gap: 6px; }
.qa-line {
  display: flex;
  align-items: center;
  gap: 14px;
  min-height: 60px;
  padding: 8px 12px 8px 8px;
  border-radius: var(--r-md);
  background: var(--surface-2);
  border: 1px solid var(--line);
  font-weight: 700;
  text-align: left;
}
.qa-line:hover { border-color: var(--line-strong); }
.qa-line .qa-label { flex: 1; }
.qa-chev { color: var(--muted); }

/* ---- Κενές καταστάσεις ---- */
.empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 8px;
  padding: 28px 12px;
}
.empty-icon {
  display: grid;
  place-items: center;
  width: 60px;
  height: 60px;
  margin-bottom: 6px;
  border-radius: 18px;
  background: var(--surface-2);
  border: 1px solid var(--line);
  color: var(--ink-2);
}
.empty-title { font-size: 1.125rem; font-weight: 800; letter-spacing: -0.02em; }
.empty-text { max-width: 46ch; color: var(--muted); }
.empty-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-top: 12px; }

.placeholder { display: flex; gap: 18px; align-items: flex-start; padding: 24px; max-width: 760px; }
.placeholder-icon {
  display: grid;
  place-items: center;
  width: 56px;
  height: 56px;
  border-radius: 16px;
  background: var(--accent-soft);
  color: var(--accent);
  flex: none;
}
.placeholder-title { font-size: 1.125rem; font-weight: 800; }
.placeholder-text { margin-top: 4px; color: var(--ink-2); max-width: 60ch; }
.placeholder-text + .btn { margin-top: 16px; }
.placeholder-phase {
  display: inline-block;
  margin-top: 14px;
  padding: 4px 10px;
  border-radius: var(--r-pill);
  background: var(--surface-2);
  border: 1px solid var(--line);
  font-size: 0.8125rem;
  font-weight: 700;
  color: var(--ink-2);
}

/* ---- Λίστα συνδέσμων ---- */
.linklist { padding: 6px; display: flex; flex-direction: column; }
.linklist-item { display: flex; align-items: center; gap: 14px; min-height: 64px; padding: 8px 10px; border-radius: var(--r-md); }
.linklist-item:hover { background: var(--surface-2); }
.linklist-text { flex: 1; display: flex; flex-direction: column; min-width: 0; }
.linklist-label { font-weight: 700; }
.linklist-help { font-size: 0.8125rem; color: var(--muted); }

/* ---- Ρυθμίσεις ---- */
.setting {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px 24px;
  padding: 14px 0;
  border-top: 1px solid var(--line);
}
.setting:first-child { border-top: 0; padding-top: 0; }
.setting:last-child { padding-bottom: 0; }
.setting-text { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.setting-label { font-weight: 700; }
.setting-help { font-size: 0.875rem; color: var(--muted); max-width: 52ch; }
.setting--danger .setting-label { color: var(--st-overdue); }
@media (max-width: 640px) {
  .setting { flex-direction: column; align-items: stretch; }
  .setting .btn, .setting .seg { width: 100%; }
  .setting .btn-row .btn { flex: 1; width: auto; }
  .setting .pill { align-self: flex-start; }
}

.seg {
  display: inline-flex;
  padding: 3px;
  border-radius: var(--r-md);
  background: var(--surface-2);
  border: 1px solid var(--line);
}
.seg-item {
  flex: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 38px;
  padding: 0 14px;
  border-radius: 9px;
  font-weight: 600;
  font-size: 0.875rem;
  color: var(--ink-2);
}
.seg-item[aria-checked="true"] { background: var(--surface); color: var(--ink); box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1); }

/* ---- Φόρμες ---- */
.form { display: flex; flex-direction: column; gap: 16px; }
.field { display: flex; flex-direction: column; gap: 6px; }
.field-label { font-weight: 700; font-size: 0.875rem; }
.input {
  width: 100%;
  min-height: 48px;
  padding: 0 14px;
  border-radius: var(--r-md);
  border: 1px solid var(--line-strong);
  background: var(--surface);
  font-size: 16px;
  transition: border-color 0.15s, box-shadow 0.15s;
}
.input:focus { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.input--xl { min-height: 60px; font-size: 1.625rem; font-weight: 800; letter-spacing: -0.01em; }
input[type="date"].input { appearance: none; -webkit-appearance: none; }
.input-affix { position: relative; }
.input-affix .input { padding-right: 56px; }
.affix { position: absolute; right: 16px; top: 50%; transform: translateY(-50%); color: var(--muted); font-weight: 700; pointer-events: none; }
.chip-row { display: flex; gap: 8px; flex-wrap: wrap; margin-top: -6px; }
.chip {
  min-height: 38px;
  padding: 0 14px;
  border-radius: var(--r-pill);
  background: var(--surface-2);
  border: 1px solid var(--line);
  font-weight: 700;
  font-size: 0.875rem;
  font-variant-numeric: tabular-nums;
}
.chip:hover { border-color: var(--line-strong); }
.km-current {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 4px 10px;
  padding: 12px 14px;
  border-radius: var(--r-md);
  background: var(--surface-2);
  font-size: 0.875rem;
}
.km-current strong { font-size: 1.0625rem; }
.form-error {
  padding: 10px 12px;
  border-radius: var(--r-md);
  background: var(--st-overdue-soft);
  color: var(--st-overdue);
  font-weight: 600;
  font-size: 0.875rem;
}

.vpick { display: flex; flex-wrap: wrap; gap: 8px; }
.vpick-item {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 46px;
  padding: 0 16px 0 12px;
  border-radius: var(--r-md);
  border: 1.5px solid var(--line-strong);
  background: var(--surface);
  font-weight: 700;
}
.vpick-item[aria-checked="true"] { border-color: var(--ink); background: var(--ink); color: var(--surface); }

/* ---- Αρχειοθετημένα ---- */
.vcard.is-archived .vmedia { filter: grayscale(1); opacity: 0.7; }
.add-pair { display: grid; gap: 16px; grid-template-rows: 1fr 1fr; }
.add-pair .vcard-add { min-height: 0; flex-direction: row; justify-content: flex-start; padding: 18px 20px; }
@media (max-width: 640px) {
  .add-pair { grid-template-rows: none; grid-template-columns: 1fr 1fr; gap: 10px; }
  .add-pair .vcard-add { flex-direction: column; justify-content: center; text-align: center; padding: 16px 10px; font-size: 0.875rem; }
}
.archived { margin-top: 28px; }
.archived summary {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 40px;
  margin-bottom: 8px;
  font-weight: 700;
  color: var(--ink-2);
  cursor: pointer;
  list-style: none;
}
.archived summary::-webkit-details-marker { display: none; }
.archived-chev { transition: transform 0.15s; }
.archived[open] .archived-chev { transform: rotate(90deg); }
.archived > .muted { margin-bottom: 14px; }

.notice {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px 12px;
  margin-bottom: 14px;
  padding: 12px 14px;
  border-radius: var(--r-md);
  background: var(--st-soon-soft);
  color: var(--ink);
  font-weight: 600;
  font-size: 0.9375rem;
}
.notice .icon { color: var(--st-soon); flex: none; }
.notice span { flex: 1 1 220px; }

/* ---- Στοιχεία οχήματος ---- */
.idlist { display: flex; flex-direction: column; }
.idrow {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 9px 0;
  border-top: 1px solid var(--line);
  font-size: 0.9375rem;
}
.idrow:first-child { border-top: 0; padding-top: 0; }
.idrow dt { color: var(--muted); }
.idrow dd { font-weight: 700; text-align: right; overflow-wrap: anywhere; }
.idrow--block { flex-direction: column; gap: 4px; }
.idrow--block dd { text-align: left; font-weight: 500; white-space: pre-line; }
.vin { font-variant-numeric: tabular-nums; letter-spacing: 0.04em; }

/* ---- Φόρμα οχήματος ---- */
.vform { gap: 24px; }
.type-pick { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.type-card {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 64px;
  padding: 0 16px;
  border-radius: var(--r-md);
  border: 1.5px solid var(--line-strong);
  background: var(--surface);
  font-weight: 700;
  text-align: left;
}
.type-card[aria-checked="true"] { border-color: var(--ink); background: var(--ink); color: var(--surface); }
@media (max-width: 400px) {
  .type-card { flex-direction: column; justify-content: center; gap: 4px; padding: 10px; font-size: 0.875rem; text-align: center; }
}

.photo-field { display: grid; grid-template-columns: 132px minmax(0, 1fr); gap: 16px; align-items: center; }
.photo-preview {
  position: relative;
  aspect-ratio: 4 / 3;
  border-radius: var(--r-md);
  overflow: hidden;
  background: var(--hero-tint);
  color: var(--hero-shape);
  border: 1px solid var(--line);
}
.photo-preview img { width: 100%; height: 100%; object-fit: cover; }
.photo-empty { display: grid; place-items: center; width: 100%; height: 100%; }
.photo-empty .silhouette { width: 80%; }
.photo-side { display: flex; flex-direction: column; align-items: flex-start; gap: 6px; }
.photo-side .btn-row { margin-top: 4px; }
.file-btn { position: relative; cursor: pointer; }
.file-btn:focus-within { outline: 2px solid var(--accent); outline-offset: 2px; }
@media (max-width: 420px) {
  .photo-field { grid-template-columns: 104px minmax(0, 1fr); gap: 14px; align-items: start; }
  .photo-side .field-help { display: none; }
  .photo-side .btn-row { flex-direction: column; align-items: stretch; width: 100%; }
}

.fsec { margin: 0; padding: 0; border: 0; min-width: 0; }
.fsec-title {
  padding: 0;
  margin-bottom: 12px;
  font-size: 1rem;
  font-weight: 800;
  letter-spacing: -0.01em;
}
.fgrid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px 12px; }
.fgrid > .field { grid-column: 1 / -1; min-width: 0; }
.fgrid > .field--half { grid-column: span 1; }
.fgrid > .field--full { grid-column: 1 / -1; }
@media (max-width: 460px) {
  .fgrid > .field--half { grid-column: 1 / -1; }
}
.req { color: var(--st-overdue); }
.field-help { font-size: 0.8125rem; color: var(--muted); }
.field-error { font-size: 0.8125rem; color: var(--st-overdue); font-weight: 600; }
.field.has-error .input { border-color: var(--st-overdue); }
.field.has-error .input:focus { box-shadow: 0 0 0 3px var(--st-overdue-soft); }
.input--area { min-height: 96px; padding: 12px 14px; resize: vertical; line-height: 1.45; }
.input--plate { font-weight: 800; letter-spacing: 0.06em; }
.input--vin { letter-spacing: 0.08em; font-variant-numeric: tabular-nums; }
.input::placeholder { color: var(--muted); opacity: 0.7; font-weight: 400; letter-spacing: 0; }
.vin-count { font-variant-numeric: tabular-nums; }

.choice { display: flex; flex-wrap: wrap; gap: 8px; }
.choice-item {
  min-height: 42px;
  padding: 0 16px;
  border-radius: var(--r-pill);
  border: 1px solid var(--line-strong);
  background: var(--surface);
  font-weight: 600;
  font-size: 0.9375rem;
}
.choice-item[aria-checked="true"] { border-color: var(--ink); background: var(--ink); color: var(--surface); }

.danger-zone { padding-top: 20px; border-top: 1px solid var(--line); }
.danger-zone .fsec-title { padding-top: 0; }
.discard-note {
  flex: 1 1 100%;
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--st-soon);
}

/* ---- Sheet ---- */
#sheet-root { position: fixed; inset: 0; z-index: 60; pointer-events: none; }
#sheet-root:empty { display: none; }
.sheet-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(8, 10, 14, 0.45);
  opacity: 0;
  transition: opacity 0.2s;
}
.sheet {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  display: flex;
  flex-direction: column;
  max-height: calc(100dvh - var(--safe-top) - 24px);
  background: var(--surface);
  border-radius: var(--r-xl) var(--r-xl) 0 0;
  box-shadow: var(--shadow-sheet);
  transform: translateY(100%);
  transition: transform 0.26s var(--ease);
}
#sheet-root.is-open { pointer-events: auto; }
#sheet-root.is-open .sheet-backdrop { opacity: 1; }
#sheet-root.is-open .sheet { transform: none; }
.sheet-grip { width: 38px; height: 5px; margin: 8px auto 0; border-radius: 3px; background: var(--line-strong); flex: none; }
.sheet-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 14px 8px 20px;
  flex: none;
}
.sheet-title { font-size: 1.25rem; font-weight: 800; letter-spacing: -0.02em; padding-top: 6px; }
.sheet-sub { color: var(--muted); font-size: 0.875rem; margin-top: 2px; }
.sheet-body { padding: 8px 20px 20px; overflow-y: auto; overscroll-behavior: contain; display: flex; flex-direction: column; gap: 18px; }
.sheet-text { color: var(--ink-2); }
.sheet-text p + p { margin-top: 10px; }
.sheet-foot {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  padding: 12px 20px calc(12px + var(--safe-bottom));
  border-top: 1px solid var(--line);
  flex: none;
}
.sheet-foot .btn { flex: 1; }
.sheet-body:last-child { padding-bottom: calc(20px + var(--safe-bottom)); }

@media (min-width: 720px) {
  .sheet {
    left: 50%;
    right: auto;
    top: 50%;
    bottom: auto;
    width: min(520px, calc(100vw - 48px));
    max-height: min(760px, calc(100dvh - 64px));
    border-radius: var(--r-xl);
    transform: translate(-50%, -46%) scale(0.98);
    opacity: 0;
    transition: transform 0.2s var(--ease), opacity 0.2s;
  }
  #sheet-root.is-open .sheet { transform: translate(-50%, -50%); opacity: 1; }
  .sheet[data-size="lg"] { width: min(680px, calc(100vw - 48px)); max-height: calc(100dvh - 48px); }
  .sheet-foot .discard-note { flex: 1 1 auto; align-self: center; }
  .sheet-grip { display: none; }
  .sheet-head { padding-top: 16px; }
  .sheet-foot { justify-content: flex-end; padding-bottom: 16px; }
  .sheet-foot .btn { flex: none; min-width: 120px; }
  .sheet-body:last-child { padding-bottom: 24px; }
}

/* ---- Toast ---- */
#toast-root {
  position: fixed;
  left: 0;
  right: 0;
  bottom: calc(var(--bottomnav-h) + var(--safe-bottom) + 12px);
  z-index: 80;
  display: flex;
  justify-content: center;
  padding: 0 16px;
  pointer-events: none;
}
@media (min-width: 1024px) { #toast-root { bottom: 28px; left: var(--sidebar-w); } }
html.has-sheet #toast-root { top: calc(16px + var(--safe-top)); bottom: auto; left: 0; }
.toast {
  max-width: 440px;
  padding: 12px 18px;
  border-radius: var(--r-md);
  background: var(--ink);
  color: var(--surface);
  font-weight: 600;
  font-size: 0.9375rem;
  box-shadow: var(--shadow-lift);
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 0.2s, transform 0.2s var(--ease);
}
.toast.is-in { opacity: 1; transform: none; }
.toast[data-tone="success"] { border-left: 4px solid var(--st-ok); }
.toast[data-tone="error"] { background: var(--st-overdue); color: #fff; }

@media (max-width: 640px) {
  .vcard .vmedia--md { aspect-ratio: 2 / 1; }
  .vcard .vmedia--md .silhouette { width: 64%; }
}

/* ---- Φάση 2: χιλιόμετρα ---- */
.hero-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  align-self: center;
  padding: 4px 8px;
  border-radius: 8px;
  color: var(--accent);
  font-weight: 600;
  font-size: 0.875rem;
}
.hero-link:hover { background: var(--accent-soft); }

.stats {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 16px;
}
@media (min-width: 900px) { .stats { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; } }
.stat {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 14px 16px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  min-width: 0;
}
.stat-label { font-size: 0.8125rem; font-weight: 600; color: var(--muted); }
.stat-value { font-size: 1.375rem; font-weight: 800; letter-spacing: -0.02em; line-height: 1.2; min-height: 28px; display: flex; align-items: center; }
.stat-sub { font-size: 0.8125rem; color: var(--muted); line-height: 1.35; }
@media (max-width: 400px) {
  .stat { padding: 12px; }
  .stat-value { font-size: 1.125rem; }
  .stat .odo--sm .odo-cell { width: 15px; height: 22px; font-size: 0.8125rem; }
}

.mgrid { display: grid; gap: 16px; }
@media (min-width: 1000px) {
  .mgrid { grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); align-items: start; }
  .panel--readings { position: sticky; top: 24px; max-height: calc(100dvh - 48px); overflow-y: auto; }
}
.panel--chart .panel-head { flex-wrap: wrap; }
.seg--sm { padding: 2px; }
.seg--sm .seg-item { min-height: 32px; padding: 0 10px; font-size: 0.8125rem; white-space: nowrap; }

.chart-box { position: relative; min-height: 180px; }
.chart { display: block; touch-action: pan-y; user-select: none; -webkit-user-select: none; }
.chart-grid { stroke: var(--line); stroke-width: 1; }
.chart-axis { stroke: var(--line-strong); }
.chart-label { fill: var(--muted); font-size: 11px; font-family: var(--font); font-variant-numeric: tabular-nums; }
.chart-line { fill: none; stroke: var(--accent); stroke-width: 2.25; stroke-linejoin: round; stroke-linecap: round; }
.chart-area { fill: var(--accent); opacity: 0.08; }
.chart-dot { fill: var(--surface); stroke: var(--accent); stroke-width: 1.75; }
.chart-dot--last, .chart-dot--active { fill: var(--accent); stroke: var(--surface); stroke-width: 2; }
.chart-guide { stroke: var(--line-strong); stroke-dasharray: 3 3; }
.chart-bar { fill: var(--accent); opacity: 0.85; transition: opacity 0.1s; }
.chart-bar--faded { opacity: 0.35; }
.chart-bar.is-active { opacity: 1; }
.chart-nodata { stroke: var(--line-strong); stroke-width: 2; stroke-linecap: round; }
.chart-empty { display: grid; place-items: center; min-height: 160px; color: var(--muted); font-size: 0.875rem; text-align: center; padding: 0 12px; }
.chart-note { margin-top: 8px; font-size: 0.8125rem; color: var(--muted); }
.chart-tip {
  position: absolute;
  z-index: 2;
  display: flex;
  flex-direction: column;
  padding: 6px 10px;
  border-radius: 8px;
  background: var(--ink);
  color: var(--surface);
  font-size: 0.8125rem;
  line-height: 1.3;
  white-space: nowrap;
  pointer-events: none;
  box-shadow: var(--shadow-lift);
}
.chart-tip strong { font-variant-numeric: tabular-nums; }
.chart-tip span { opacity: 0.75; }

.rlist { display: flex; flex-direction: column; }
.rrow {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto 16px;
  align-items: center;
  gap: 12px;
  width: 100%;
  min-height: 56px;
  padding: 8px 8px 8px 10px;
  margin: 0 -8px 0 -10px;
  width: calc(100% + 18px);
  border-radius: var(--r-md);
  text-align: left;
}
.rrow:hover { background: var(--surface-2); }
.rlist li + li .rrow { border-top: 1px solid var(--line); border-radius: 0; }
.rlist li + li .rrow:hover { border-radius: var(--r-md); border-top-color: transparent; }
.rrow-main { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.rrow-km { font-weight: 800; font-size: 1rem; letter-spacing: -0.01em; }
.rrow-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; font-size: 0.8125rem; color: var(--muted); }
.rrow-note { font-size: 0.8125rem; color: var(--ink-2); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rrow-delta { display: flex; flex-direction: column; align-items: flex-end; font-weight: 700; font-size: 0.875rem; color: var(--st-ok); }
.rrow-delta small { font-weight: 500; font-size: 0.75rem; color: var(--muted); }
.rrow-icon { color: var(--muted); }
.pill[data-source="purchase"] { background: var(--accent-soft); color: var(--accent); }
.pill[data-source="service"] { background: var(--surface-3); color: var(--ink-2); }

.form-warning {
  padding: 10px 12px;
  border-radius: var(--r-md);
  background: var(--st-soon-soft);
  color: var(--st-soon);
  font-weight: 600;
  font-size: 0.875rem;
}
.btn-danger-text { color: var(--st-overdue); border-color: transparent; margin-right: auto; }
.btn-danger-text:hover:not(:disabled) { background: var(--st-overdue-soft); }
@media (max-width: 719px) {
  .sheet-foot .btn-danger-text { flex: 0 0 auto; padding: 0 12px; }
}

/* ---- Φάση 3: εργασίες ---- */
.task-groups { display: flex; flex-direction: column; gap: 12px; margin-top: 6px; }
.task-group { display: flex; flex-direction: column; gap: 6px; }
.task-group-title { font-size: 0.75rem; font-weight: 700; color: var(--muted); }
.task-group .choice-item { min-height: 38px; padding: 0 13px; font-size: 0.875rem; }
.choice-item[role="checkbox"][aria-checked="true"]::before {
  content: "";
  display: inline-block;
  width: 10px;
  height: 6px;
  margin: 0 7px 3px 0;
  border-left: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(-45deg);
}
.custom-tasks { display: flex; flex-wrap: wrap; gap: 8px; }
.custom-tasks:empty { display: none; }
.custom-task {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  min-height: 38px;
  padding: 0 4px 0 14px;
  border-radius: var(--r-pill);
  background: var(--ink);
  color: var(--surface);
  font-weight: 600;
  font-size: 0.875rem;
}
.custom-task button { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; color: inherit; }
.custom-task button:hover { background: rgba(255, 255, 255, 0.15); }
.inline-add { display: flex; gap: 8px; margin-top: 4px; }
.inline-add .input { flex: 1; min-width: 0; }

.link-btn {
  align-self: flex-start;
  padding: 2px 0;
  color: var(--accent);
  font-weight: 600;
  font-size: 0.8125rem;
  text-align: left;
}
.link-btn:hover { text-decoration: underline; }
.seg--wide { display: flex; width: 100%; margin-bottom: 12px; }
.seg--wide .seg-item { min-height: 44px; }

.parts { display: flex; flex-direction: column; gap: 10px; }
.parts:empty { display: none; }
.parts:not(:empty) { margin-bottom: 10px; }
.part-row {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr) minmax(0, 1fr) 40px;
  grid-template-areas: "cat brand code rm" "qty price . .";
  gap: 8px;
  align-items: end;
  padding: 12px;
  border-radius: var(--r-md);
  background: var(--surface-2);
  border: 1px solid var(--line);
}
.part-cat { grid-area: cat; }
.part-remove { grid-area: rm; }
.part-brand { grid-area: brand; }
.part-code { grid-area: code; }
.part-qty { grid-area: qty; }
.part-price { grid-area: price; }
.part-row.has-error { border-color: var(--st-overdue); }
.part-row .field { gap: 4px; min-width: 0; }
.part-row .field-label { font-size: 0.75rem; }
.part-row .input { min-height: 42px; padding: 0 10px; }
.part-row .input-affix .input { padding-right: 30px; }
.part-row .affix { right: 10px; }
.part-remove { align-self: end; margin-bottom: 1px; }
.fsec > .field + .field, .fsec > .field + .fgrid, .fsec > .choice + .field { margin-top: 18px; }
@media (max-width: 719px) {
  .part-row { grid-template-areas: "cat cat rm" "brand code code" "qty price price"; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) 40px; }
  .part-remove { align-self: end; }
  .part-cat { grid-area: cat; }
  .part-remove { grid-area: rm; }
  .part-brand { grid-area: brand; }
  .part-code { grid-area: code; }
  .part-qty { grid-area: qty; }
  .part-price { grid-area: price; }
}

.total-line {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-top: 14px;
  padding: 12px 14px;
  border-radius: var(--r-md);
  background: var(--surface-2);
  font-weight: 700;
}
.total-line strong { font-size: 1.25rem; letter-spacing: -0.02em; }

/* Προβολή εργασίας */
.sfacts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--r-md); overflow: hidden; }
@media (min-width: 560px) { .sfacts { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.sfacts > div { padding: 10px 12px; background: var(--surface); min-width: 0; }
.sfacts dt { font-size: 0.75rem; color: var(--muted); font-weight: 600; }
.sfacts dd { font-weight: 700; overflow-wrap: anywhere; }
.ssec { display: flex; flex-direction: column; gap: 8px; }
.ssec-title { font-size: 0.875rem; font-weight: 800; }
.checklist { display: flex; flex-wrap: wrap; gap: 6px 16px; }
.checklist li { display: flex; align-items: center; gap: 6px; font-weight: 600; }
.checklist .icon { color: var(--st-ok); }
.plist { display: flex; flex-direction: column; }
.plist li { display: flex; justify-content: space-between; gap: 12px; padding: 8px 0; border-top: 1px solid var(--line); }
.plist li:first-child { border-top: 0; padding-top: 0; }
.plist-main { display: flex; flex-direction: column; min-width: 0; }
.plist-label { font-size: 0.8125rem; color: var(--muted); }
.plist-name { font-weight: 700; }
.plist-side { display: flex; flex-direction: column; align-items: flex-end; font-weight: 700; font-size: 0.875rem; }
.costlist { display: flex; flex-direction: column; }
.costlist > div { display: flex; justify-content: space-between; padding: 6px 0; }
.costlist dt { color: var(--ink-2); }
.costlist dd { font-weight: 600; }
.costlist-total { border-top: 1px solid var(--line); margin-top: 4px; padding-top: 10px !important; }
.costlist-total dt, .costlist-total dd { font-weight: 800; color: var(--ink); font-size: 1.0625rem; }
.stext { white-space: pre-line; color: var(--ink-2); }

/* Χρονολόγιο */
.hist-bar { display: flex; gap: 10px; margin-bottom: 12px; }
.hist-search { position: relative; flex: 1; min-width: 0; }
.hist-search .icon { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); color: var(--muted); pointer-events: none; }
.hist-search .input { padding-left: 42px; }
@media (max-width: 560px) {
  .hist-bar { flex-direction: column; }
}
.hist-kinds { margin-bottom: 10px; }
.hist-kinds .choice-item { min-height: 36px; font-size: 0.875rem; }
.hist-summary { margin: 0 2px 18px; color: var(--muted); font-size: 0.875rem; }

.tl-section + .tl-section { margin-top: 28px; }
.tl-yearhead { display: flex; align-items: baseline; gap: 12px; margin-bottom: 12px; }
.tl-yeartitle { font-size: 1.375rem; font-weight: 800; letter-spacing: -0.02em; }
.tl-yearmeta { color: var(--muted); font-size: 0.875rem; font-variant-numeric: tabular-nums; }
.tl-list { position: relative; display: flex; flex-direction: column; gap: 10px; }
.tl-list::before {
  content: "";
  position: absolute;
  left: 25px;
  top: 8px;
  bottom: 8px;
  width: 2px;
  border-radius: 2px;
  background: var(--line);
}
.tl-item { position: relative; display: grid; grid-template-columns: 52px minmax(0, 1fr); gap: 12px; align-items: start; }
.tl-date {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 54px;
  border-radius: 14px;
  background: var(--surface);
  border: 1px solid var(--line-strong);
  line-height: 1;
}
.tl-day { font-weight: 800; font-size: 1.1875rem; font-variant-numeric: tabular-nums; }
.tl-mon { margin-top: 3px; font-size: 0.6875rem; font-weight: 700; color: var(--muted); }
.tl-card {
  display: flex;
  flex-direction: column;
  gap: 6px;
  width: 100%;
  padding: 12px 14px;
  border-radius: var(--r-lg);
  background: var(--surface);
  border: 1px solid var(--line);
  text-align: left;
  box-shadow: var(--shadow-card);
  transition: border-color 0.15s, box-shadow 0.15s;
}
.tl-card:hover { border-color: var(--line-strong); box-shadow: var(--shadow-lift); }
.tl-head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.tl-title { font-weight: 800; font-size: 1rem; letter-spacing: -0.01em; }
.tl-cost { font-weight: 800; white-space: nowrap; }
.tl-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 12px; color: var(--muted); font-size: 0.8125rem; }
.tl-tags { display: flex; flex-wrap: wrap; gap: 6px; }
.tag { padding: 2px 8px; border-radius: 6px; background: var(--surface-2); border: 1px solid var(--line); font-size: 0.75rem; font-weight: 600; color: var(--ink-2); }
.tl-parts { display: flex; align-items: flex-start; gap: 6px; font-size: 0.8125rem; color: var(--ink-2); }
.tl-parts .icon { flex: none; margin-top: 2px; color: var(--muted); }
.pill[data-kind="service"] { background: var(--accent-soft); color: var(--accent); }
.pill[data-kind="repair"] { background: var(--st-soon-soft); color: var(--st-soon); }
.pill[data-kind="tires"] { background: var(--surface-3); color: var(--ink-2); }
.pill[data-kind="inspection"] { background: var(--st-ok-soft); color: var(--st-ok); }
button.hrow { width: 100%; text-align: left; }
button.hrow:hover .hrow-title { color: var(--accent); }
.panel .muted.small + .btn-sm { margin-top: 10px; }

/* Σιλουέτες: ίδιο οπτικό βάρος για αυτοκίνητο και μοτοσυκλέτα */
.vmedia .silhouette--car, .photo-empty .silhouette--car { width: 74%; max-height: 60%; }
.vmedia .silhouette--moto, .photo-empty .silhouette--moto { width: 56%; max-height: 64%; }
.vmedia--lg .silhouette--car { width: 78%; }
.vmedia--lg .silhouette--moto { width: 60%; }
@media (max-width: 640px) {
  .vcard .vmedia--md .silhouette--car { width: 58%; }
  .vcard .vmedia--md .silhouette--moto { width: 40%; }
  .hero .vmedia--lg .silhouette--car { width: 60%; }
  .hero .vmedia--lg .silhouette--moto { width: 44%; }
}
@media (max-width: 640px) {
  .hero .vmedia--lg:not(.has-photo) .silhouette { margin-bottom: 34px; }
}

/* ---- Φάση 4: συντήρηση ---- */
.mrow[data-schedule] { cursor: pointer; border-radius: 0; transition: background 0.12s; }
.mrow[data-schedule]:hover { background: var(--surface-2); box-shadow: -14px 0 0 var(--surface-2), 14px 0 0 var(--surface-2); }
.mrow[data-schedule]:focus-visible { outline-offset: 4px; }
.mrow.is-inactive { opacity: 0.65; }
.mrow.is-inactive::before { background: var(--line-strong); }
.drow[data-schedule] { cursor: pointer; }
.drow[data-schedule]:hover .drow-title { color: var(--accent); }

.maint-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 16px; }
.count-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.count-chip {
  display: inline-flex;
  align-items: baseline;
  gap: 6px;
  padding: 6px 12px;
  border-radius: var(--r-pill);
  background: var(--st-soft);
  color: var(--st);
  font-weight: 600;
  font-size: 0.875rem;
}
.count-chip strong { font-size: 1.0625rem; font-weight: 800; }

.sched-summary {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 14px 16px;
  border-radius: var(--r-lg);
  background: var(--st-soft);
  border-left: 4px solid var(--st);
}
.sched-summary .btn { align-self: flex-start; margin-top: 4px; }
.sched-summary-top { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; }
.sched-left { display: flex; flex-direction: column; gap: 2px; }
.sched-left li { font-size: 1.125rem; font-weight: 800; color: var(--st); letter-spacing: -0.01em; }
.sched-summary[data-st="ok"] .sched-left li, .sched-summary[data-st="upcoming"] .sched-left li { color: var(--ink); }
.forecast { display: flex; gap: 8px; align-items: flex-start; font-size: 0.875rem; color: var(--ink-2); }
.forecast .icon { flex: none; margin-top: 2px; color: var(--accent); }

details.more > summary { display: flex; align-items: center; gap: 6px; cursor: pointer; list-style: none; }
details.more > summary::-webkit-details-marker { display: none; }
details.more[open] .archived-chev { transform: rotate(90deg); }

.switch { display: flex; align-items: flex-start; gap: 12px; cursor: pointer; }
.switch > span:last-child { display: flex; flex-direction: column; }
.switch input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.switch-ui {
  position: relative;
  flex: none;
  width: 46px;
  height: 28px;
  border-radius: 14px;
  background: var(--line-strong);
  transition: background 0.15s;
}
.switch-ui::after {
  content: "";
  position: absolute;
  top: 3px;
  left: 3px;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.25);
  transition: transform 0.15s var(--ease);
}
.switch input:checked + .switch-ui { background: var(--st-ok); }
.switch input:checked + .switch-ui::after { transform: translateX(18px); }
.switch input:focus-visible + .switch-ui { outline: 2px solid var(--accent); outline-offset: 2px; }

/* Κάρτες επιλογής (επόμενη φορά, πρόταση προγράμματος) */
.fu-card {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 14px;
  border-radius: var(--r-md);
  border: 1px solid var(--line-strong);
  background: var(--surface);
  transition: opacity 0.15s;
}
.fu-card.is-off { opacity: 0.55; }
.fu-card.is-off .fu-fields { display: none; }
.fu-head { position: relative; display: flex; align-items: flex-start; gap: 12px; cursor: pointer; }
.fu-head input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.fu-check {
  display: grid;
  place-items: center;
  flex: none;
  width: 24px;
  height: 24px;
  margin-top: 1px;
  border-radius: 7px;
  border: 1.5px solid var(--line-strong);
  background: var(--surface);
  color: transparent;
}
.fu-head input:checked + .fu-check { background: var(--ink); border-color: var(--ink); color: var(--surface); }
.fu-head input:focus-visible + .fu-check { outline: 2px solid var(--accent); outline-offset: 2px; }
.fu-head input:disabled + .fu-check { background: var(--surface-3); }
.fu-title { display: flex; flex-direction: column; gap: 1px; min-width: 0; }

.plan-group + .plan-group { margin-top: 4px; }
.plan-group .task-group-title { display: block; margin-bottom: 6px; }
.plan-list { display: flex; flex-direction: column; }
.plan-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 0;
  border-top: 1px solid var(--line);
}
.plan-row:first-child { border-top: 0; }
.plan-row.is-disabled .fu-title { opacity: 0.7; }
.plan-next { color: var(--accent); font-weight: 600; }

.threshold-inputs { display: flex; gap: 8px; flex: none; }
.threshold-inputs .input-affix { width: 150px; }
.threshold-inputs .input-affix .input { padding-right: 70px; }
@media (max-width: 640px) {
  .threshold-inputs { width: 100%; }
  .threshold-inputs .input-affix { flex: 1; width: auto; }
}

.fgrid + .chip-row { margin-top: 10px; }
.chip-row + .field-help { margin-top: 8px; display: block; }
@media (min-width: 1100px) {
  .mgroups { display: block; max-width: none; columns: 2 440px; column-gap: 16px; }
  .mgroups > .panel { break-inside: avoid; margin-bottom: 16px; }
}

/* ---- Φάση 5: επισκόπηση ---- */
.hero-status {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 6px;
  padding: 6px 12px;
  border-radius: var(--r-pill);
  background: var(--st-soft);
  color: var(--st);
  font-weight: 700;
  font-size: 0.875rem;
}
.hero-status:hover { filter: brightness(0.97); text-decoration: underline; }
.hero-last { margin-top: 2px; font-size: 0.875rem; color: var(--muted); }
.inline-link { color: var(--ink); font-weight: 700; text-decoration: underline; text-decoration-color: var(--line-strong); text-underline-offset: 3px; }
.inline-link:hover { color: var(--accent); text-decoration-color: currentColor; }

.vswitch {
  display: flex;
  gap: 6px;
  margin: 0 -16px 12px;
  padding: 0 16px 2px;
  overflow-x: auto;
  scrollbar-width: none;
}
.vswitch::-webkit-scrollbar { display: none; }
.vswitch-item {
  flex: none;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 38px;
  padding: 0 14px 0 11px;
  border-radius: var(--r-pill);
  border: 1px solid var(--line-strong);
  background: var(--surface);
  color: var(--ink-2);
  font-weight: 600;
  font-size: 0.875rem;
  white-space: nowrap;
}
.vswitch-item.is-active { background: var(--ink); border-color: var(--ink); color: var(--surface); }
@media (min-width: 1024px) { .vswitch { display: none; } }

button.irow { width: 100%; text-align: left; padding: 6px 8px; margin: -6px -8px; width: calc(100% + 16px); border-radius: var(--r-md); }
button.irow:hover { background: var(--surface-2); }
.ilist { gap: 14px; }
.panel-foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 14px; }

.per-km {
  margin: -4px 0 14px;
  padding: 8px 12px;
  border-radius: var(--r-md);
  background: var(--surface-2);
  font-size: 0.8125rem;
  color: var(--ink-2);
}
.per-km strong { color: var(--ink); font-size: 0.9375rem; }
.mini-title { margin: 16px 0 4px; font-size: 0.8125rem; font-weight: 700; color: var(--muted); }
.xlist { display: flex; flex-direction: column; }
.xrow {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  width: calc(100% + 16px);
  margin: 0 -8px;
  padding: 8px;
  border-radius: var(--r-md);
  text-align: left;
}
.xrow:hover { background: var(--surface-2); }
.xrow-main { display: flex; flex-direction: column; min-width: 0; }
.xrow-title { font-weight: 700; font-size: 0.9375rem; }
.xrow-meta { font-size: 0.8125rem; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.xrow-amount { font-weight: 800; white-space: nowrap; }

.spec[data-copy] { cursor: pointer; transition: background 0.12s; }
.spec[data-copy]:hover { background: var(--surface-2); }
.spec[data-copy]:active { background: var(--accent-soft); }
.spec-hint { margin-top: 8px; }

.calc-value {
  display: flex;
  align-items: center;
  min-height: 48px;
  padding: 0 14px;
  border-radius: var(--r-md);
  background: var(--surface-2);
  font-weight: 700;
  color: var(--ink-2);
}

/* Επιλογές με χρώμα (κατάσταση, προτεραιότητα) */
.choice-item[data-tone="high"][aria-checked="true"], .choice-item[data-tone="open"][aria-checked="true"] { background: var(--st-overdue); border-color: var(--st-overdue); color: #fff; }
.choice-item[data-tone="medium"][aria-checked="true"], .choice-item[data-tone="monitoring"][aria-checked="true"] { background: var(--st-soon); border-color: var(--st-soon); color: #fff; }
.choice-item[data-tone="resolved"][aria-checked="true"] { background: var(--st-ok); border-color: var(--st-ok); color: #fff; }

.resolved-box { padding: 14px; border-radius: var(--r-md); background: var(--st-ok-soft); }
.resolved-box .fsec-title { float: left; width: 100%; }
.resolved-box > .field + .field { margin-top: 14px; }
.svc-pick { display: flex; flex-direction: column; gap: 6px; }
.svc-option {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 1px;
  padding: 10px 12px;
  border-radius: var(--r-md);
  border: 1.5px solid var(--line-strong);
  background: var(--surface);
  text-align: left;
}
.svc-option[aria-checked="true"] { border-color: var(--ink); box-shadow: inset 0 0 0 1px var(--ink); }
.svc-option-title { font-weight: 700; }
.svc-option-meta { font-size: 0.8125rem; color: var(--muted); }

/* Συμπαγής κεφαλίδα οχήματος στο κινητό: τα χιλιόμετρα φαίνονται αμέσως */
@media (max-width: 639px) {
  .hero { gap: 14px; padding: 14px; }
  .hero-id { grid-template-columns: 116px minmax(0, 1fr); gap: 14px; align-items: start; }
  .hero .vmedia--lg { aspect-ratio: 1 / 1; border-radius: var(--r-md); }
  .hero .vmedia--lg .silhouette--car { width: 84%; }
  .hero .vmedia--lg .silhouette--moto { width: 76%; }
  .hero .vmedia--lg:not(.has-photo) .silhouette { margin-bottom: 18px; }
  .hero .media-edit { right: 6px; bottom: 6px; min-height: 30px; padding: 0 8px; }
  .hero .media-edit span { display: none; }
  .hero-title { font-size: 1.5rem; }
  .hero-sub { font-size: 0.9375rem; }
  .hero .facts { display: none; }
  .hero-text { gap: 4px; }
  .hero-text .plate { margin-top: 4px; }
  .hero-status { font-size: 0.8125rem; padding: 5px 10px; }
  .hero-status, .hero-last { grid-column: 1 / -1; }
  .hero-odo { padding: 14px; gap: 8px; }
}
.hero-extra { grid-column: 1 / -1; display: flex; flex-direction: column; align-items: flex-start; gap: 6px; }
.hero-extra:empty { display: none; }
.hero-extra .hero-status { margin-top: 0; }
@media (min-width: 640px) {
  .hero-extra { grid-column: 2; margin-top: -8px; }
}

/* ---- Φάση 6: έξοδα ---- */
.xfilters { display: flex; flex-direction: column; gap: 10px; margin-bottom: 16px; }
.xf-line { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.xf-line .seg { flex: none; max-width: 100%; overflow-x: auto; scrollbar-width: none; }
.xf-line .seg::-webkit-scrollbar { display: none; }
.xf-search { flex: 1 1 220px; }
.xf-search .input { min-height: 40px; }
.xf-row { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; margin: 0 -16px; padding: 0 16px 2px; }
.xf-row::-webkit-scrollbar { display: none; }
.xf-row .choice-item { flex: none; min-height: 36px; font-size: 0.875rem; }
@media (min-width: 1024px) {
  .xf-row { flex-wrap: wrap; margin: 0; padding: 0; }
}

.xgrid { display: grid; gap: 16px; margin-bottom: 16px; }
@media (min-width: 1000px) {
  .xgrid { grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); align-items: start; }
}
@media (max-width: 899px) {
  .desk-only { display: none; }
}

.cbars { display: flex; flex-direction: column; gap: 4px; }
.cbar {
  display: flex;
  align-items: center;
  gap: 12px;
  width: calc(100% + 16px);
  margin: 0 -8px;
  padding: 8px;
  border-radius: var(--r-md);
  text-align: left;
}
.cbar:hover { background: var(--surface-2); }
.cbar.is-active { background: var(--accent-soft); }
.cbar-icon {
  display: grid;
  place-items: center;
  flex: none;
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: var(--surface-2);
  border: 1px solid var(--line);
  color: var(--ink-2);
}
.cbar-main { flex: 1; display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.cbar-top { display: flex; justify-content: space-between; gap: 10px; }
.cbar-label { font-weight: 700; font-size: 0.9375rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cbar-value { font-weight: 800; white-space: nowrap; }
.cbar-track { height: 6px; border-radius: 3px; background: var(--surface-3); overflow: hidden; }
.cbar-track > span { display: block; height: 100%; border-radius: inherit; background: var(--accent); }
.cbar-meta { font-size: 0.75rem; color: var(--muted); }

.xmonth + .xmonth { margin-top: 18px; }
.xmonth-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding: 0 0 6px;
  margin-bottom: 4px;
  border-bottom: 1px solid var(--line);
}
.xmonth-head h3 { font-size: 0.9375rem; font-weight: 800; }
.xmonth-head span { font-weight: 700; color: var(--ink-2); }
.xrow--full { gap: 12px; }
.xrow--full .xrow-meta { display: flex; flex-wrap: wrap; gap: 0 10px; white-space: normal; }
.xdate {
  display: flex;
  flex-direction: column;
  align-items: center;
  flex: none;
  width: 32px;
  line-height: 1.1;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
}
.xdate small { font-size: 0.6875rem; font-weight: 700; color: var(--muted); }
@media (max-width: 480px) {
  .xrow--full .cbar-icon { display: none; }
}
.xrow--full { justify-content: flex-start; }
.xrow--full .xrow-main { flex: 1; }
.xrow--full .xrow-amount { margin-left: auto; }
.xgrid .xcol { display: flex; flex-direction: column; gap: 16px; min-width: 0; }
@media (max-width: 999px) {
  .xgrid .xcol { display: contents; }
  .x-chart { order: 1; }
  .x-cats { order: 2; }
  .x-vehicles { order: 3; }
  .xlist-panel { order: 4; }
}
@media (min-width: 1000px) {
  .xcol--side { position: sticky; top: 24px; }
}

/* ---- Φάση 7: ανταλλακτικά ---- */
.parts-latest { margin-bottom: 18px; }
.pcards { display: grid; gap: 10px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 230px), 1fr)); }
.pcard {
  position: relative;
  display: flex;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-card);
  transition: border-color 0.15s, box-shadow 0.15s;
}
.pcard:hover { border-color: var(--line-strong); }
.pcard.is-active { border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent); }
.pcard.is-removed { opacity: 0.7; }
.pcard-main { flex: 1; display: flex; flex-direction: column; align-items: flex-start; gap: 4px; padding: 14px 44px 14px 16px; text-align: left; min-width: 0; }
.pcard-head { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.pcard-label { font-size: 0.8125rem; font-weight: 700; color: var(--muted); }
.pcard-count { padding: 1px 7px; border-radius: var(--r-pill); background: var(--surface-2); border: 1px solid var(--line); font-size: 0.6875rem; font-weight: 700; color: var(--ink-2); }
.pcard-name { font-size: 1.0625rem; font-weight: 800; letter-spacing: -0.01em; line-height: 1.25; overflow-wrap: anywhere; }
.pcard-meta { display: flex; flex-wrap: wrap; gap: 0 10px; font-size: 0.8125rem; color: var(--ink-2); font-variant-numeric: tabular-nums; }
.pcard-copy { position: absolute; top: 8px; right: 6px; width: 36px; height: 36px; }

.plist-full { display: flex; flex-direction: column; }
.plist-full li + li .prow { border-top: 1px solid var(--line); }
.prow {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  width: calc(100% + 16px);
  margin: 0 -8px;
  padding: 12px 8px;
  text-align: left;
}
.prow:hover { background: var(--surface-2); border-radius: var(--r-md); }
.prow.is-removed .xrow-title { text-decoration: line-through; text-decoration-color: var(--muted); }
.prow .xrow-main { flex: 1; gap: 2px; }
.prow .xrow-meta { display: flex; flex-wrap: wrap; gap: 0 10px; white-space: normal; }
.prow-cat { font-size: 0.8125rem; font-weight: 600; color: var(--accent); }
.prow-note { font-size: 0.8125rem; color: var(--ink-2); font-style: italic; }
.prow-side { display: flex; flex-direction: column; align-items: flex-end; flex: none; }
@media (max-width: 480px) { .prow .cbar-icon { display: none; } }

.qty-row { display: flex; gap: 8px; align-items: center; }
.qty-row .input { flex: 1; min-width: 0; }
.qty-row .seg { flex: none; }
.linked-box {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px 16px;
  padding: 12px 14px;
  border-radius: var(--r-md);
  background: var(--surface-2);
  font-size: 0.875rem;
  color: var(--ink-2);
}
@media (max-width: 640px) {
  .parts-latest .section-head .muted { display: none; }
  .pcard-main { padding: 12px 44px 12px 14px; }
}

/* ---- Φάση 8: σημειώσεις ---- */
.notice--info { background: var(--accent-soft); }
.notice--info .icon { color: var(--accent); }
.notice--danger { background: var(--st-overdue-soft); }
.notice--danger .icon { color: var(--st-overdue); }
.sheet-body > .notice { margin-bottom: 0; }
.chip-count {
  display: inline-grid;
  place-items: center;
  min-width: 20px;
  height: 20px;
  margin-left: 4px;
  padding: 0 6px;
  border-radius: var(--r-pill);
  background: var(--surface-3);
  color: var(--ink-2);
  font-size: 0.75rem;
  font-weight: 700;
}
.choice-item[aria-checked="true"] .chip-count { background: color-mix(in srgb, var(--surface) 22%, transparent); color: inherit; }
.nlist-wrap { margin-top: 14px; }
.nlist { display: grid; gap: 12px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 380px), 1fr)); align-items: start; }
.ncard {
  display: flex;
  flex-direction: column;
  background: var(--surface);
  border: 1px solid var(--line);
  border-left: 4px solid var(--line-strong);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-card);
  overflow: hidden;
}
.ncard[data-pr="high"] { border-left-color: var(--st-overdue); }
.ncard[data-pr="medium"] { border-left-color: var(--st-soon); }
.ncard[data-status="resolved"] { border-left-color: var(--st-ok); }
.ncard-main { display: flex; flex-direction: column; align-items: flex-start; gap: 6px; padding: 14px 16px 10px; text-align: left; }
@media (hover: hover) { .ncard-main:hover .ncard-title { color: var(--accent); } }
.ncard-top { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 12px; }
.prio { display: inline-flex; align-items: center; gap: 6px; font-size: 0.8125rem; font-weight: 600; color: var(--ink-2); }
.prio .irow-flag { margin-top: 0; }
.prio[data-pr="high"] .irow-flag { background: var(--st-overdue); }
.prio[data-pr="medium"] .irow-flag { background: var(--st-soon); }
.prio[data-pr="low"] .irow-flag { background: var(--line-strong); }
.ncard-title { font-size: 1.0625rem; font-weight: 800; letter-spacing: -0.01em; }
.ncard[data-status="resolved"] .ncard-title { color: var(--ink-2); }
.ncard-desc {
  color: var(--ink-2);
  font-size: 0.9375rem;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.ncard-meta { display: flex; flex-wrap: wrap; gap: 0 12px; font-size: 0.8125rem; color: var(--muted); }
.ncard-link {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0 16px 10px;
  padding: 8px 10px;
  border-radius: var(--r-md);
  background: var(--st-ok-soft);
  font-size: 0.8125rem;
  text-align: left;
}
.ncard-link .icon { color: var(--st-ok); flex: none; }
.ncard-link:hover strong { text-decoration: underline; }
.ncard-actions { display: flex; flex-wrap: wrap; gap: 6px; padding: 10px 16px 14px; border-top: 1px solid var(--line); background: var(--surface-2); }
.ncard-actions .btn { min-height: 34px; background: var(--surface); }
a.irow { border-radius: var(--r-md); padding: 6px 8px; margin: -6px -8px; }
a.irow:hover { background: var(--surface-2); }
a.irow:hover .irow-title { color: var(--accent); }
.checklist--col { flex-direction: column; }

@media (max-width: 560px) {
  .ncard-actions { display: grid; grid-template-columns: 1fr 1fr; }
  .ncard-actions .btn { width: 100%; padding: 0 8px; }
  .ncard-actions [data-fix] { grid-column: 1 / -1; order: -1; }
  .ncard-top { flex-direction: row; }
}
.btn .icon { flex: none; }

/* ---- Φάση 9: χαρακτηριστικά ---- */
.star-btn { color: var(--line-strong); }
.star-btn:hover { color: var(--muted); }
.star-btn[aria-pressed="true"] { color: #D9A21B; }
.star-btn[aria-pressed="true"] .icon { fill: currentColor; }
.inline-star { display: inline-block; vertical-align: -2px; color: #D9A21B; fill: currentColor; }

.spec-groups { display: block; columns: 1; }
@media (min-width: 1000px) { .spec-groups { columns: 2 420px; column-gap: 16px; } }
.spec-group { break-inside: avoid; margin-bottom: 16px; }
.spec-group .panel-link .icon { margin-right: 2px; }
.slist { display: flex; flex-direction: column; }
.srow { display: flex; align-items: center; gap: 2px; border-top: 1px solid var(--line); }
.srow:first-child { border-top: 0; }
.srow-main {
  flex: 1;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: baseline;
  column-gap: 12px;
  min-height: 48px;
  padding: 8px 8px 8px 0;
  text-align: left;
  min-width: 0;
}
.srow-label { color: var(--ink-2); }
.srow-value { font-weight: 800; text-align: right; overflow-wrap: anywhere; }
.srow-note { grid-column: 1 / -1; font-size: 0.8125rem; color: var(--muted); }
@media (hover: hover) { .srow-main:hover .srow-label { color: var(--accent); } }
.srow .icon-btn { width: 38px; height: 38px; }
@media (max-width: 420px) {
  .srow-main { grid-template-columns: 1fr; }
  .srow-value { text-align: left; }
}

.input--strong { font-weight: 800; font-size: 1.0625rem; }
.tpl-list { display: flex; flex-direction: column; gap: 6px; }
.tpl-row { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr) 40px; align-items: center; gap: 10px; }
.tpl-label { font-weight: 600; font-size: 0.9375rem; }
.tpl-input .input { min-height: 44px; }
@media (max-width: 520px) {
  .tpl-row { grid-template-columns: minmax(0, 1fr) 40px; row-gap: 4px; }
  .tpl-label { grid-column: 1 / 2; }
  .tpl-input { grid-column: 1 / 2; }
  .tpl-row .star-btn { grid-column: 2; grid-row: 2; }
  .tpl-row + .tpl-row { margin-top: 6px; }
}

/* ---- Φάση 10: έγγραφα ---- */
.doc-pdf {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  width: 100%;
  height: 100%;
  background: #FBE4E1;
  color: #B3261E;
}
.doc-pdf small { font-size: 0.625rem; font-weight: 800; letter-spacing: 0.06em; }
.doc-pdf--lg small { font-size: 0.75rem; }
.doc-thumb {
  position: relative;
  display: block;
  flex: none;
  width: 48px;
  height: 48px;
  border-radius: 10px;
  overflow: hidden;
  background: var(--surface-2);
  border: 1px solid var(--line);
}
.doc-thumb img { width: 100%; height: 100%; object-fit: cover; }

.dgrid { display: grid; gap: 12px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 200px), 1fr)); }
@media (max-width: 480px) { .dgrid { grid-template-columns: 1fr 1fr; gap: 10px; } }
.dcard {
  display: flex;
  flex-direction: column;
  width: 100%;
  height: 100%;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  overflow: hidden;
  text-align: left;
  box-shadow: var(--shadow-card);
  transition: border-color 0.15s, box-shadow 0.15s;
}
.dcard:hover { border-color: var(--line-strong); box-shadow: var(--shadow-lift); }
.dcard-thumb { position: relative; display: block; aspect-ratio: 4 / 3; background: var(--surface-2); border-bottom: 1px solid var(--line); }
.dcard-thumb img { width: 100%; height: 100%; object-fit: cover; }
.dcard-flag { position: absolute; left: 8px; top: 8px; padding: 2px 8px; border-radius: var(--r-pill); background: rgba(20, 24, 30, 0.75); color: #fff; font-size: 0.6875rem; font-weight: 700; }
.dcard-body { display: flex; flex-direction: column; align-items: flex-start; gap: 3px; padding: 10px 12px 12px; min-width: 0; }
.dcard-cat { font-size: 0.75rem; font-weight: 700; color: var(--accent); }
.dcard-title { font-weight: 800; line-height: 1.25; overflow-wrap: anywhere; }
.dcard-meta { display: flex; flex-wrap: wrap; gap: 0 8px; font-size: 0.75rem; color: var(--muted); }
.dcard-link { display: flex; align-items: flex-start; gap: 4px; font-size: 0.75rem; color: var(--ink-2); }
.dcard-link .icon { flex: none; margin-top: 2px; }

.doc-expiry {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: var(--r-pill);
  background: var(--st-soft);
  color: var(--st);
  font-weight: 700;
  font-size: 0.8125rem;
}
.doc-expiry--sm { margin-top: 4px; padding: 2px 8px; font-size: 0.75rem; }
.doc-expiry--row { display: flex; width: 100%; margin-bottom: 8px; padding: 8px 12px; border-radius: var(--r-md); text-align: left; font-weight: 500; }
.doc-expiry--row .icon { flex: none; }
.doc-alert { margin-bottom: 16px; border-color: var(--st-soon); }
.doc-alert .panel-title { display: flex; align-items: center; gap: 8px; }
.doc-alert .panel-title .icon { color: var(--st-soon); }
.drow[data-doc], .drow[data-open-doc] { cursor: pointer; }

.doc-mini { display: flex; flex-direction: column; }
.doc-mini-item { display: flex; align-items: center; gap: 12px; width: calc(100% + 16px); margin: 0 -8px; padding: 6px 8px; border-radius: var(--r-md); text-align: left; }
.doc-mini-item:hover { background: var(--surface-2); }
.doc-mini .doc-thumb { width: 42px; height: 42px; }

.dropzone {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 16px;
  border: 1.5px dashed var(--line-strong);
  border-radius: var(--r-lg);
  background: var(--surface-2);
  position: relative;
}
.dropzone.is-over { border-color: var(--accent); background: var(--accent-soft); }
.dropzone.is-busy { opacity: 0.6; pointer-events: none; }
.dropzone-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.dropzone-actions .btn { min-height: 52px; }
.dropzone-hint { font-size: 0.8125rem; color: var(--muted); }
.doc-pending { display: flex; flex-direction: column; gap: 6px; }
.doc-pending:empty { display: none; }
.doc-pending-item { display: flex; align-items: center; gap: 12px; padding: 6px 6px 6px 8px; border-radius: var(--r-md); background: var(--surface); border: 1px solid var(--line); }
.doc-pending-text { flex: 1; display: flex; flex-direction: column; min-width: 0; }
.doc-pending-text strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 0.875rem; }
.doc-current { display: flex; align-items: center; gap: 14px; padding: 12px; border-radius: var(--r-md); background: var(--surface-2); }
.doc-current .doc-thumb { width: 72px; height: 72px; }
.doc-current-text { display: flex; flex-direction: column; align-items: flex-start; gap: 4px; min-width: 0; }
.doc-current-text strong { overflow-wrap: anywhere; }
.seg--wrap { flex-wrap: wrap; display: flex; }
.seg--wrap .seg-item { flex: 1 1 auto; }
.svc-pick--scroll { max-height: 260px; overflow-y: auto; margin-top: 8px; padding: 2px; }

.doc-view { display: block; border-radius: var(--r-md); overflow: hidden; background: var(--surface-2); border: 1px solid var(--line); }
.doc-view--img img { width: 100%; max-height: 65dvh; object-fit: contain; background: #111; }
.doc-view--pdf { width: 100%; height: 60dvh; }
.doc-actions { margin-top: 2px; }

.attach-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(96px, 1fr)); gap: 8px; margin-bottom: 8px; }
.attach {
  display: flex;
  flex-direction: column;
  width: 100%;
  border-radius: var(--r-md);
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--surface);
  text-align: left;
}
.attach img, .attach .doc-pdf { width: 100%; aspect-ratio: 1 / 1; object-fit: cover; }
.attach span:last-child { padding: 4px 6px; font-size: 0.6875rem; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dcard-thumb { overflow: hidden; flex: none; }
.dcard-thumb img, .dcard-thumb .doc-pdf { position: absolute; inset: 0; width: 100%; height: 100%; }
.dcard-thumb img { object-fit: cover; object-position: top center; }
[data-dfilters] { display: flex; flex-direction: column; gap: 10px; margin-bottom: 12px; }
[data-dfilters]:empty { display: none; }
@media (max-width: 560px) {
  .hist-bar .btn-row { display: grid; grid-template-columns: 1fr 1fr; width: 100%; }
  .hist-bar .btn-row .btn { width: 100%; }
}

/* ---- Φάση 11: αρχική ---- */
.dash { gap: 22px; }
.kpis { display: grid; gap: 12px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (min-width: 900px) { .kpis { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; } }
.kpi {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
  padding: 14px 16px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-card);
  transition: border-color 0.15s, box-shadow 0.15s;
}
a.kpi:hover { border-color: var(--line-strong); box-shadow: var(--shadow-lift); }
.kpi[data-st] { border-top: 4px solid var(--st); }
.kpi-label { font-size: 0.8125rem; font-weight: 600; color: var(--muted); }
.kpi-value {
  display: flex;
  align-items: center;
  min-height: 34px;
  font-size: 1.625rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.15;
  overflow-wrap: anywhere;
}
.kpi[data-st="overdue"] .kpi-value, .kpi[data-st="soon"] .kpi-value { color: var(--st); }
.kpi[data-st="ok"] .kpi-value { color: var(--st-ok); }
.kpi:nth-child(2) .kpi-value { font-size: 1.125rem; }
.kpi-sub { font-size: 0.8125rem; color: var(--ink-2); }
@media (max-width: 480px) {
  .kpi { padding: 12px; }
  .kpi-value { font-size: 1.375rem; }
  .kpi:nth-child(2) .kpi-value { font-size: 1rem; }
}

.dash-quick { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; margin: 0 -16px; padding: 2px 16px; }
.dash-quick::-webkit-scrollbar { display: none; }
@media (min-width: 1024px) { .dash-quick { margin: 0; padding: 0; } }
.dq {
  flex: none;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 48px;
  padding: 0 16px 0 8px;
  border-radius: var(--r-pill);
  background: var(--surface);
  border: 1px solid var(--line);
  font-weight: 700;
  font-size: 0.875rem;
  white-space: nowrap;
}
.dq:hover { border-color: var(--line-strong); }
.dq-icon { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: var(--surface-2); color: var(--ink); }
.dq:first-child { background: var(--ink); color: var(--surface); border-color: var(--ink); }
.dq:first-child .dq-icon { background: color-mix(in srgb, var(--surface) 16%, transparent); color: var(--surface); }

/* Κάρτα οχήματος με ενέργειες */
.vcard-link { display: flex; flex-direction: column; flex: 1; }
.vcard-link:hover .vcard-title { color: var(--accent); }
.vcard-facts { display: flex; flex-direction: column; gap: 4px; font-size: 0.8125rem; color: var(--ink-2); }
.vcard-facts span { display: flex; align-items: center; gap: 6px; min-width: 0; }
.vcard-facts .icon { flex: none; color: var(--muted); }
.vcard-issues { color: var(--st-soon); font-weight: 600; }
.vcard-issues .icon { color: currentColor !important; }
.vcard-actions { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--line); }
.vcard-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 46px;
  font-weight: 700;
  font-size: 0.8125rem;
  color: var(--ink-2);
}
.vcard-btn + .vcard-btn { border-left: 1px solid var(--line); }
.vcard-btn:hover { background: var(--surface-2); color: var(--ink); }

/* Ημερολόγιο */
.agenda-month { margin: 14px 0 4px; font-size: 0.8125rem; font-weight: 800; color: var(--muted); }
.agenda-month:first-child { margin-top: 0; }
.agenda { display: flex; flex-direction: column; }
.agenda-row {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  padding: 8px 8px;
  margin: 0 -8px;
  border-radius: var(--r-md);
  cursor: pointer;
}
.agenda-row:hover { background: var(--surface-2); }
.agenda-date {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 46px;
  border-radius: 12px;
  background: var(--st-soft);
  color: var(--st);
  line-height: 1.05;
  font-weight: 800;
  font-size: 1.0625rem;
  font-variant-numeric: tabular-nums;
}
.agenda-row[data-st="ok"] .agenda-date { background: var(--surface-2); color: var(--ink); }
.agenda-date small { font-size: 0.625rem; font-weight: 700; opacity: 0.8; }
.agenda-date.is-est { border: 1.5px dashed currentColor; background: transparent; }
.agenda-main { display: flex; flex-direction: column; min-width: 0; }
.agenda-title { font-weight: 700; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.agenda-meta { display: flex; align-items: center; flex-wrap: wrap; gap: 2px 8px; font-size: 0.8125rem; color: var(--muted); }
.agenda-meta .icon { flex: none; }
.agenda-when { font-size: 0.8125rem; font-weight: 700; color: var(--ink-2); white-space: nowrap; }
@media (max-width: 420px) {
  .agenda-row { grid-template-columns: 44px minmax(0, 1fr); }
  .agenda-when { grid-column: 2; margin-top: -6px; }
}

.vsplit { display: flex; flex-direction: column; gap: 6px; }
.vsplit li { display: flex; justify-content: space-between; gap: 12px; font-size: 0.875rem; }
.vsplit li span:first-child { display: flex; align-items: center; gap: 6px; color: var(--ink-2); }
.vsplit .num { font-weight: 700; }
.mrow[data-open-doc] { cursor: pointer; }

.kpi:nth-child(2) .kpi-value { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
@media (max-width: 560px) {
  .kpis { gap: 8px; }
  .kpi { gap: 2px; padding: 10px 12px; }
  .kpi-label { font-size: 0.75rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .kpi-value { min-height: 28px; font-size: 1.25rem; }
  .kpi:nth-child(2) .kpi-value { font-size: 0.9375rem; line-height: 1.2; }
  .kpi-sub { font-size: 0.75rem; line-height: 1.3; }
  .dq { min-height: 44px; }
}

/* ---- Φάση 12: backup ---- */
.backup-options { display: grid; gap: 10px; }
@media (min-width: 640px) { .backup-options { grid-template-columns: 1fr 1fr; } }
.backup-opt {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 6px;
  padding: 14px;
  border-radius: var(--r-md);
  border: 1.5px solid var(--line-strong);
  background: var(--surface);
  text-align: left;
}
.backup-opt:disabled { opacity: 0.5; }
.backup-opt[aria-checked="true"] { border-color: var(--ink); box-shadow: inset 0 0 0 1px var(--ink); }
.backup-opt--danger[aria-checked="true"] { border-color: var(--st-overdue); box-shadow: inset 0 0 0 1px var(--st-overdue); }
.backup-opt-title { display: flex; align-items: center; gap: 8px; font-weight: 800; }
.backup-opt-text { font-size: 0.8125rem; color: var(--ink-2); }
.backup-ready { display: flex; flex-direction: column; gap: 10px; padding: 14px; border-radius: var(--r-md); background: var(--st-ok-soft); }
.backup-file { display: flex; align-items: center; gap: 12px; }
.backup-file-icon { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 12px; background: var(--surface); color: var(--st-ok); flex: none; }
.backup-file-text { display: flex; flex-direction: column; min-width: 0; }
.backup-file-text strong { overflow-wrap: anywhere; font-size: 0.875rem; }
.backup-meta { display: flex; flex-wrap: wrap; gap: 6px 16px; font-size: 0.875rem; color: var(--ink-2); }
.backup-meta span { display: inline-flex; align-items: center; gap: 6px; }
.backup-table { width: 100%; border-collapse: collapse; font-size: 0.875rem; }
.backup-table th { text-align: left; font-size: 0.75rem; color: var(--muted); font-weight: 700; padding: 6px 0; border-bottom: 1px solid var(--line); }
.backup-table td { padding: 7px 0; border-bottom: 1px solid var(--line); }
.backup-table .num { text-align: right; width: 90px; font-weight: 700; }
.backup-table td.muted { font-weight: 500; }
.replace-warn { display: flex; flex-direction: column; align-items: flex-start; gap: 10px; padding: 14px; border-radius: var(--r-md); background: var(--st-overdue-soft); }
.pill[data-backup-state="never"], .pill[data-backup-state="old"] { background: var(--st-soon-soft); color: var(--st-soon); }
.pill[data-backup-state="ok"] { background: var(--st-ok-soft); color: var(--st-ok); }

.backup-reminder {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 16px;
  padding: 14px 16px;
  border-radius: var(--r-lg);
  background: var(--accent-soft);
  border: 1px solid color-mix(in srgb, var(--accent) 25%, transparent);
}
.backup-reminder-icon { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 12px; background: var(--surface); color: var(--accent); flex: none; }
.backup-reminder-text { flex: 1 1 220px; display: flex; flex-direction: column; font-size: 0.875rem; color: var(--ink-2); }
.backup-reminder-text strong { color: var(--ink); font-size: 0.9375rem; }

/* ---- Φάση 13: cloud ---- */
[data-sync="idle"] { --sync: var(--st-ok); }
[data-sync="syncing"] { --sync: var(--accent); }
[data-sync="offline"] { --sync: var(--muted); }
[data-sync="error"], [data-sync="auth"] { --sync: var(--st-overdue); }
.sync-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--sync, var(--muted)); flex: none; }
[data-sync="syncing"] .sync-dot { animation: pulse 0.8s ease-in-out infinite alternate; }
.sync-indicator {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: auto 12px 6px;
  padding: 6px 10px;
  border-radius: var(--r-pill);
  background: var(--frame-hover);
  color: var(--frame-muted);
  font-size: 0.75rem;
  font-weight: 600;
}
.sync-indicator:hover { color: var(--frame-ink); }
.sync-indicator:not([hidden]) + .snav-settings { margin-top: 0; }
.sync-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 12px;
  border-radius: var(--r-pill);
  background: var(--surface-2);
  border: 1px solid var(--line);
  font-size: 0.8125rem;
  font-weight: 700;
  white-space: nowrap;
}
.sync-banner {
  position: fixed;
  left: 12px;
  right: 12px;
  bottom: calc(var(--bottomnav-h) + var(--safe-bottom) + 10px);
  z-index: 45;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-radius: var(--r-md);
  background: var(--st-overdue-soft);
  border: 1px solid var(--st-overdue);
  color: var(--ink);
  font-size: 0.8125rem;
  font-weight: 600;
  box-shadow: var(--shadow-lift);
}
.sync-banner span { flex: 1; }
@media (min-width: 1024px) { .sync-banner { display: none !important; } }
.sync-failures { margin: 4px 0 8px; font-size: 0.8125rem; }
.sync-failures summary { cursor: pointer; font-weight: 700; color: var(--st-overdue); }
.sync-failures ul { margin-top: 8px; display: flex; flex-direction: column; gap: 6px; }
.sync-failures code { padding: 1px 6px; border-radius: 4px; background: var(--surface-2); font-size: 0.75rem; }
.input--mono { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: 0.8125rem; }
.sync-progress { display: flex; align-items: center; gap: 16px; padding: 12px 0 8px; }
.spinner {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 3px solid var(--line);
  border-top-color: var(--accent);
  animation: spin 0.8s linear infinite;
  flex: none;
}
@keyframes spin { to { transform: rotate(360deg); } }
.panel .notice { margin: 8px 0; }

/* ---- 0.15: εστίαση φωτογραφίας οχήματος ---- */
.media-actions {
  position: absolute;
  right: 10px;
  bottom: 10px;
  display: flex;
  gap: 6px;
}
.media-actions .media-edit { position: relative; right: auto; bottom: auto; border: 0; font: inherit; font-size: 0.8125rem; font-weight: 700; }
.media-actions button.media-edit:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
@media (min-width: 640px) and (max-width: 1179px) {
  .hero-id .media-actions .media-edit span { display: none; }
  .hero-id .media-actions .media-edit { padding: 0 10px; }
}

.fpick { display: grid; gap: 14px; }
.fpick-stage-wrap {
  display: grid;
  place-items: center;
  padding: 10px;
  border-radius: var(--r-lg);
  background: repeating-conic-gradient(var(--surface-3) 0% 25%, var(--surface-2) 0% 50%) 50% / 18px 18px;
  border: 1px solid var(--line);
}
.fpick-stage {
  position: relative;
  display: inline-block;
  max-width: 100%;
  line-height: 0;
  cursor: crosshair;
  touch-action: none;
  -webkit-user-select: none;
  user-select: none;
  border-radius: var(--r-sm);
  overflow: hidden;
  outline: none;
}
.fpick-stage:focus-visible { box-shadow: 0 0 0 3px var(--accent); }
.fpick-stage img {
  display: block;
  max-width: 100%;
  max-height: min(46dvh, 420px);
  width: auto;
  height: auto;
  pointer-events: none;
}
.fpick-line {
  position: absolute;
  background: rgba(255, 255, 255, 0.75);
  box-shadow: 0 0 0 1px rgba(10, 14, 20, 0.25);
  pointer-events: none;
}
.fpick-line--v { top: 0; bottom: 0; width: 1px; transform: translateX(-0.5px); }
.fpick-line--h { left: 0; right: 0; height: 1px; transform: translateY(-0.5px); }
.fpick-dot {
  position: absolute;
  width: 34px;
  height: 34px;
  margin: -17px 0 0 -17px;
  border-radius: 50%;
  border: 3px solid #fff;
  background: color-mix(in srgb, var(--accent) 35%, transparent);
  box-shadow: 0 0 0 1px rgba(10, 14, 20, 0.35), 0 4px 14px rgba(10, 14, 20, 0.35);
  pointer-events: none;
  transition: transform 0.15s var(--ease, ease);
}
.fpick-dot::after {
  content: "";
  position: absolute;
  inset: 50%;
  width: 6px;
  height: 6px;
  margin: -3px 0 0 -3px;
  border-radius: 50%;
  background: #fff;
}
.fpick-stage.is-dragging .fpick-dot { transform: scale(1.18); }
.fpick-help { color: var(--ink-2); font-size: 0.9375rem; }
.fpick-previews {
  --fh: 92px;
  display: flex;
  flex-wrap: wrap;
  gap: 14px 12px;
  align-items: flex-start;
}
.fpick-prev { margin: 0; display: grid; gap: 6px; }
.fpick-frame {
  height: var(--fh);
  border-radius: var(--r-md);
  overflow: hidden;
  background: var(--hero-tint);
  border: 1px solid var(--line);
}
.fpick-frame img { display: block; width: 100%; height: 100%; object-fit: cover; }
.fpick-prev figcaption { font-size: 0.8125rem; font-weight: 700; color: var(--muted); }
.fpick-foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.fpick-readout { color: var(--muted); font-size: 0.8125rem; }
@media (max-width: 520px) {
  .fpick { gap: 12px; }
  .fpick-previews { --fh: 72px; gap: 10px 8px; }
  .fpick-prev figcaption { font-size: 0.75rem; }
  .fpick-help { font-size: 0.875rem; }
}

.photo-focus-panel {
  padding: 14px;
  border-radius: var(--r-lg);
  background: var(--surface-2);
  border: 1px solid var(--line);
}
.photo-focus-panel .fpick-stage img { max-height: min(38dvh, 320px); }
.photo-focus-panel .fpick-previews { --fh: 76px; }
.photo-field .btn[aria-expanded="true"] { background: var(--accent-soft); color: var(--accent); }
