/* =========================================================
   Design tokens
   ========================================================= */
:root {
  --bg: #ffffff;
  --surface: #ffffff;
  --surface-2: #f7f5f1;
  --sand: #f1ece3;
  --ink: #121417;
  --ink-2: #3c4148;
  --muted: #62676e;        /* αντίθεση ≥ 4,5:1 και σε λευκό και στο ανοιχτό γκρι */
  --line: #e9e6e0;
  --line-2: #d8d4cc;
  --night: #121417;        /* περιοχές που μένουν σκούρες και στα δύο θέματα */
  --navy: #121417;
  --navy-2: #24282d;
  --accent: #ffc21a;        /* κίτρινο εργοταξίου */
  --accent-2: #e8ab00;
  --accent-soft: #fff5d6;
  --accent-ink: #121417;
  --blue: #1d5fa8;
  --blue-soft: #eaf1f9;
  --ok: #17703f;
  --ok-soft: #e5f4ec;
  --bad: #c0352b;
  --bad-soft: #fcebe9;
  --radius: 14px;
  --radius-sm: 10px;
  --shadow-sm: 0 1px 2px rgba(18, 20, 23, .05);
  --shadow: 0 1px 2px rgba(18, 20, 23, .04), 0 6px 20px rgba(18, 20, 23, .06);
  --shadow-lg: 0 20px 50px rgba(18, 20, 23, .16);
  --ease: cubic-bezier(.2, .7, .2, 1);
  --row-h: 68px;
  --header-h: 116px;
  --font: 'Commissioner', system-ui, -apple-system, 'Segoe UI', sans-serif;
}
* { box-sizing: border-box; }
html { scroll-padding-top: calc(var(--header-h) + 16px); -webkit-text-size-adjust: 100%; }
html, body { margin: 0; }
body { font-family: var(--font); background: var(--bg); color: var(--ink); font-size: 16px; line-height: 1.55; -webkit-font-smoothing: antialiased; }
body.no-scroll { overflow: hidden; }
a { color: var(--blue); text-decoration: none; }
a:hover { color: var(--ink); }
h1, h2, h3, h4 { margin: 0 0 .45em; line-height: 1.15; letter-spacing: -.02em; color: var(--ink); font-weight: 700; }
h1 { font-size: clamp(28px, 3.4vw, 40px); }
h2 { font-size: clamp(22px, 2.4vw, 30px); }
h3 { font-size: 18px; letter-spacing: -.01em; }
h4 { font-size: 16px; }
p { margin: 0 0 1em; }
img { max-width: 100%; display: block; }
:focus-visible { outline: 3px solid rgba(29, 95, 168, .45); outline-offset: 2px; border-radius: 8px; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--accent); color: var(--accent-ink); padding: 8px 14px; border-radius: 8px; z-index: 100; font-weight: 700; }
.skip:focus { left: 8px; }
.wrap { max-width: 1240px; margin: 0 auto; padding: 0 28px; }
main.wrap { padding-top: 32px; padding-bottom: 80px; min-height: calc(100vh - 320px); outline: none; }
main.is-home { max-width: none; padding: 0 0 72px; }
.page-in { animation: pageIn .2s ease-out; }
@keyframes pageIn { from { opacity: .6; transform: translateY(4px); } to { opacity: 1; transform: none; } }
/* Πλοήγηση που αργεί: η σελίδα μένει ορατή (ελαφρώς αχνή) και μια λεπτή μπάρα τρέχει στην κορυφή */
#app { transition: opacity .2s; }
body.routing #app { opacity: .6; }
body::before { content: ''; position: fixed; top: 0; left: 0; height: 3px; width: 100%; z-index: 200; background: var(--accent); transform-origin: left; transform: scaleX(0); opacity: 0; pointer-events: none; }
body.routing::before { opacity: 1; animation: routeBar 1.6s cubic-bezier(.2, .7, .3, 1) forwards; }
@keyframes routeBar { from { transform: scaleX(.08); } to { transform: scaleX(.85); } }
@media (prefers-reduced-motion: reduce) { .page-in, body.routing::before { animation: none; } body.routing::before { transform: scaleX(.6); } }
.num { font-variant-numeric: tabular-nums; }

/* Icons */
.ic { width: 18px; height: 18px; flex-shrink: 0; stroke-width: 1.9; vertical-align: -3px; }
.ic.xs { width: 15px; height: 15px; vertical-align: -2px; }
.ic.fill { fill: currentColor; }

/* =========================================================
   Header
   ========================================================= */
.topbar { background: color-mix(in srgb, var(--surface) 94%, transparent); backdrop-filter: saturate(1.4) blur(10px); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 40; }
body.scrolled .topbar { box-shadow: 0 6px 24px rgba(18, 20, 23, .06); }
.topbar-inner { display: flex; align-items: center; flex-wrap: wrap; gap: 0 20px; }
.topbar-inner > .brand, .topbar-inner > .userbox, .topbar-inner > .menu-toggle { height: var(--row-h); }
.brand { color: var(--ink); font-weight: 800; font-size: 19px; white-space: nowrap; display: inline-flex; align-items: center; gap: 10px; letter-spacing: -.02em; }
.brand:hover { color: var(--ink); }
.brand em { font-style: normal; color: var(--accent); }   /* ίδιο κίτρινο με κουμπιά και εικονίδιο */
/* Η τελεία στο ίδιο οπτικό κενό από το «n» και το «c» (μετρημένο στη γραμματοσειρά Commissioner 800:
   φυσικό κενό 0,075em / 0,06em· το στρογγυλό «c» θέλει λίγο λιγότερο για να φαίνεται ίσο) */
.brand .dot { margin: 0 .02em 0 .015em; }
.brand-mark { width: 36px; height: 36px; border-radius: 10px; background: var(--night); color: var(--accent); display: grid; place-items: center; }
.brand-mark svg { width: 24px; height: 24px; }
.mainnav { display: flex; gap: 2px; order: 3; flex-basis: 100%; padding: 0 0 2px; margin-left: -12px; }
.mainnav .drawer-only { display: none; }
.nav-tools .dd-btn { display: inline-flex; align-items: center; gap: 6px; background: none; border: 0; border-bottom: 3px solid transparent; font: inherit; font-weight: 500; font-size: 15px; color: var(--ink-2); padding: 11px 12px 13px; }
.nav-tools .dd-btn:hover, .nav-tools.open .dd-btn { color: var(--ink); }
.nav-tools .dd-btn.active { color: var(--ink); font-weight: 600; border-bottom-color: var(--accent); }
.nav-tools .chev-down { transform: rotate(90deg); transition: transform .15s; }
.nav-tools.open .chev-down { transform: rotate(-90deg); }
.nav-tools .dd-menu { top: calc(100% + 2px); }
.mainnav::-webkit-scrollbar { display: none; }
.mainnav > a { color: var(--ink-2); padding: 11px 12px 13px; font-weight: 500; font-size: 15px; white-space: nowrap; display: inline-flex; align-items: center; gap: 8px; border-bottom: 3px solid transparent; transition: color .15s, border-color .15s; }
.mainnav > a .ic { display: none; }
.mainnav > a:hover { color: var(--ink); }
.mainnav > a.active { color: var(--ink); font-weight: 600; border-bottom-color: var(--accent); }
.drawer-head, .drawer-extra { display: none; }
.userbox { display: flex; align-items: center; gap: 6px; white-space: nowrap; margin-left: auto; }
.nav-link { color: var(--ink); font-weight: 600; padding: 8px 12px; border-radius: 10px; }
.nav-link:hover { background: var(--surface-2); color: var(--ink); }
.iconbtn { position: relative; display: inline-grid; place-items: center; min-width: 42px; height: 42px; padding: 0 9px; border-radius: 12px; color: var(--ink-2); background: none; border: 0; cursor: pointer; font: inherit; transition: background .15s, color .15s; }
.iconbtn:hover { background: var(--surface-2); color: var(--ink); }
.iconbtn.danger { color: var(--bad); }
.iconbtn.danger:hover { background: var(--bad-soft); }
.badge-dot { position: absolute; top: 4px; right: 3px; background: var(--bad); color: #fff; font-size: 10.5px; font-weight: 700; border-radius: 99px; padding: 0 5px; min-width: 18px; line-height: 18px; text-align: center; border: 2px solid #fff; }
.badge { background: var(--accent); color: var(--accent-ink); font-size: 11.5px; font-weight: 700; border-radius: 99px; padding: 1px 8px; }
.menu-toggle { display: none; }
.nav-overlay { position: fixed; inset: 0; background: rgba(18, 20, 23, .45); opacity: 0; pointer-events: none; transition: opacity .25s; z-index: 45; }
.nav-overlay.show { opacity: 1; pointer-events: auto; }

/* Dropdowns */
.dd { position: relative; }
.dd-btn { cursor: pointer; }
.lang .dd-btn { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; font-size: 14px; }
.user-btn { display: inline-flex; align-items: center; gap: 8px; background: var(--surface-2); border: 1px solid var(--line); color: var(--ink); padding: 4px 14px 4px 4px; border-radius: 99px; font: inherit; font-weight: 600; font-size: 14.5px; }
.user-btn:hover { border-color: var(--line-2); }
.dd-menu { position: absolute; right: 0; top: calc(100% + 8px); min-width: 230px; background: var(--surface); color: var(--ink); border: 1px solid var(--line); border-radius: 14px; box-shadow: var(--shadow-lg); padding: 6px;
  opacity: 0; transform: translateY(-4px); pointer-events: none; transition: opacity .15s, transform .15s var(--ease); z-index: 60; }
.dd.open .dd-menu { opacity: 1; transform: none; pointer-events: auto; }
.dd-menu a, .dd-menu button { display: flex; align-items: center; gap: 10px; width: 100%; padding: 10px 12px; border-radius: 9px; color: var(--ink); background: none; border: 0; font: inherit; font-weight: 500; font-size: 14.5px; cursor: pointer; text-align: left; }
.dd-menu a:hover, .dd-menu button:hover { background: var(--surface-2); }
.dd-menu button.on { font-weight: 700; }
.dd-menu button .ic { margin-left: auto; color: var(--ok); }
.dd-head { padding: 8px 12px 10px; border-bottom: 1px solid var(--line); margin-bottom: 4px; display: flex; flex-direction: column; }

/* Segmented control */
.seg { display: inline-flex; background: var(--surface-2); border: 1px solid var(--line); border-radius: 12px; padding: 3px; gap: 2px; }
.seg button, .seg a { border: 0; background: none; padding: 7px 14px; border-radius: 9px; font: inherit; font-weight: 600; font-size: 14px; color: var(--muted); cursor: pointer; }
.seg .on { background: var(--surface); color: var(--ink); box-shadow: var(--shadow-sm); }
.seg.dark { background: rgba(255, 255, 255, .06); border-color: rgba(255, 255, 255, .1); }
.seg.dark button { color: #a7adb5; }
.seg.dark .on { background: rgba(255, 255, 255, .14); color: #fff; }

/* =========================================================
   Buttons & forms
   ========================================================= */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; border: 1px solid var(--line-2); background: var(--surface); color: var(--ink);
  padding: 10px 18px; min-height: 44px; border-radius: 12px; font: inherit; font-weight: 600; font-size: 15px; cursor: pointer; white-space: nowrap;
  transition: background .15s, border-color .15s, box-shadow .15s, transform .1s; }
.btn:hover { border-color: var(--ink-2); color: var(--ink); }
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.btn-primary:hover { background: #ffcd45; border-color: #ffcd45; color: var(--accent-ink); box-shadow: 0 4px 14px rgba(232, 171, 0, .35); }
.btn-dark { background: var(--night); border-color: var(--night); color: #fff; }
.btn-dark:hover { background: #2a2f35; border-color: #2a2f35; color: #fff; }
.btn-soft { background: var(--surface-2); border-color: var(--surface-2); color: var(--ink); }
.btn-soft:hover { background: var(--sand); border-color: var(--sand); }
.btn-danger { color: var(--bad); }
.btn-danger:hover { background: var(--bad-soft); border-color: #efc2bd; color: var(--bad); }
.btn-danger-solid { background: var(--bad); border-color: var(--bad); color: #fff; }
.btn-danger-solid:hover { background: #a42c23; color: #fff; }
.btn-ghost-light { background: rgba(255, 255, 255, .1); border-color: rgba(255, 255, 255, .35); color: #fff; }
.btn-ghost-light:hover { background: rgba(255, 255, 255, .18); border-color: #fff; color: #fff; }
.btn-sm { padding: 6px 13px; min-height: 36px; font-size: 14px; border-radius: 10px; }
.btn-lg { padding: 14px 26px; min-height: 54px; font-size: 16.5px; border-radius: 14px; }
.btn.block { width: 100%; }
.btn:disabled { opacity: .55; cursor: not-allowed; }
/* Ο δείκτης αναμονής στα κουμπιά εμφανίζεται μόνο αν η ενέργεια κρατήσει πάνω από 0,3", ώστε οι γρήγορες να μη «τρεμοπαίζουν» */
.btn.loading { position: relative; animation: btnBusy 0s .3s forwards; }
.btn.loading:disabled { opacity: 1; cursor: progress; }
.btn.loading::after { content: ''; position: absolute; width: 18px; height: 18px; border: 2.5px solid var(--ink); border-right-color: transparent; border-radius: 50%; opacity: 0; animation: spin .7s linear infinite, btnSpin 0s .3s forwards; }
@keyframes btnBusy { to { color: transparent; } }
@keyframes btnSpin { to { opacity: 1; } }
.link-btn { background: none; border: 0; padding: 0; font: inherit; color: inherit; cursor: pointer; text-decoration: underline; text-decoration-color: rgba(255, 255, 255, .45); text-underline-offset: 3px; }
.link-btn:hover { text-decoration-color: currentColor; }

label { display: block; font-weight: 600; font-size: 14px; color: var(--ink-2); margin-bottom: 7px; }
input, select, textarea { width: 100%; font: inherit; font-size: 15.5px; padding: 11px 14px; min-height: 48px; border: 1px solid var(--line-2); border-radius: 12px; background: var(--surface); color: var(--ink); transition: border-color .15s, box-shadow .15s; }
input:hover, select:hover, textarea:hover { border-color: #bdb8ae; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--ink); box-shadow: 0 0 0 4px rgba(255, 194, 26, .3); }
input:disabled { background: var(--surface-2); color: var(--muted); }
select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5 6 6.5 11 1.5' stroke='%233c4148' stroke-width='1.8' fill='none' stroke-linecap='round'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 14px center; padding-right: 38px; }
textarea { min-height: 104px; resize: vertical; }
input[type=checkbox], input[type=radio] { width: 19px; height: 19px; min-height: 0; accent-color: var(--ink); flex-shrink: 0; }
input[type=range] { padding: 0; min-height: 0; border: 0; accent-color: var(--ink); background: none; box-shadow: none; }
input[type=file] { padding: 9px; background: var(--surface-2); }
.field { margin-bottom: 18px; }
.input-ic { position: relative; display: flex; align-items: center; }
.input-ic > .ic { position: absolute; left: 14px; color: var(--muted); pointer-events: none; }
.input-ic input { padding-left: 42px; }
.pw-toggle { position: absolute; right: 6px; background: none; border: 0; color: var(--muted); cursor: pointer; padding: 9px; border-radius: 9px; }
.pw-toggle:hover { color: var(--ink); background: var(--surface-2); }
.grid { display: grid; gap: 0 18px; }
.g2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.g3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.g4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.grid.g2 > .card, .grid.g3 > .card { margin: 0 0 18px; }
.span2 { grid-column: 1 / -1; }
.check { display: flex; align-items: flex-start; gap: 11px; font-weight: 400; color: var(--ink-2); font-size: 15px; margin: 0; cursor: pointer; }
.check input { margin-top: 2px; }
.hint { font-size: 14px; color: var(--muted); }
.switch { position: relative; display: inline-block; width: 48px; height: 28px; flex-shrink: 0; margin: 0; }
.switch input { opacity: 0; width: 0; height: 0; position: absolute; }
.switch span { position: absolute; inset: 0; background: #cfd2d6; border-radius: 99px; cursor: pointer; transition: background .2s; }
.switch span::after { content: ''; position: absolute; left: 3px; top: 3px; width: 22px; height: 22px; background: var(--surface); border-radius: 50%; box-shadow: 0 1px 3px rgba(0, 0, 0, .2); transition: transform .2s var(--ease); }
.switch input:checked + span { background: var(--night); }
.switch input:checked + span::after { transform: translateX(20px); }
.switch input:disabled + span { opacity: .5; cursor: not-allowed; }
.switch input:focus-visible + span { outline: 3px solid rgba(29, 95, 168, .45); outline-offset: 2px; }
.switch-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 16px 18px; border: 1px solid var(--line); border-radius: 14px; margin: 18px 0; background: var(--surface-2); cursor: pointer; }
.switch-row > span:first-child { display: flex; flex-direction: column; color: var(--ink); font-weight: 400; }

/* Chips */
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip-check { margin: 0; cursor: pointer; }
.chip-check input { position: absolute; opacity: 0; pointer-events: none; }
.chip-check span { display: inline-flex; align-items: center; gap: 6px; padding: 9px 15px; border: 1px solid var(--line-2); border-radius: 99px; background: var(--surface); font-weight: 500; font-size: 14.5px; color: var(--ink-2); transition: all .15s; user-select: none; }
.chip-check span .on { display: none; }
.chip-check:hover span { border-color: var(--ink-2); }
.chip-check input:checked + span { background: var(--night); border-color: var(--night); color: #fff; }
.chip-check input:checked + span .on { display: inline-block; color: var(--accent); }
.chip-check input:focus-visible + span { outline: 3px solid rgba(29, 95, 168, .45); outline-offset: 2px; }
.chip-group { border: 1px solid var(--line); border-radius: 14px; margin-bottom: 10px; background: var(--surface); }
.chip-group summary { list-style: none; display: flex; align-items: center; gap: 10px; padding: 14px 16px; cursor: pointer; font-weight: 600; }
.chip-group summary::-webkit-details-marker { display: none; }
.chip-group summary > .ic:first-child { color: var(--muted); }
.chip-group summary .count:not(:empty) { background: var(--accent); color: var(--accent-ink); border-radius: 99px; font-size: 12px; font-weight: 700; padding: 0 8px; }
.chip-group .chev { margin-left: auto; transition: transform .2s; color: var(--muted); }
.chip-group[open] .chev { transform: rotate(90deg); }
.chip-group .chips { padding: 0 16px 16px; }

/* =========================================================
   Layout helpers
   ========================================================= */
.row { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.row.nowrap { flex-wrap: nowrap; }
.grow { flex: 1; min-width: 0; }
.spread { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; flex-wrap: wrap; }
.stack > * + * { margin-top: 16px; }
.muted { color: var(--muted); }
.small { font-size: 14px; }
.center { text-align: center; }
.pre { white-space: pre-wrap; }
.ellipsis { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.show-sm { display: none !important; }
.layout-side { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 24px; align-items: start; }
.layout-side > *, .cards > * { min-width: 0; }
.sticky-side { position: sticky; top: calc(var(--header-h) + 16px); }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; } }

/* =========================================================
   Cards
   ========================================================= */
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; box-shadow: var(--shadow-sm); }
.card + .card, .card + section, section + .card, .notice + .card, .card + .notice { margin-top: 18px; }
.cards { display: grid; gap: 18px; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); }
.cards > .card { margin: 0; }
.card-link { display: flex; flex-direction: column; color: inherit; transition: box-shadow .2s, border-color .2s, transform .2s var(--ease); }
.card-link:hover { color: inherit; border-color: var(--line-2); box-shadow: var(--shadow); transform: translateY(-2px); }
.card-link h3 { margin-top: 12px; }
.card-foot { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; margin-top: auto; padding-top: 14px; border-top: 1px solid var(--line); font-size: 14px; color: var(--muted); }
.card-foot > span { display: inline-flex; align-items: center; gap: 6px; }
.card-foot .ic { width: 16px; height: 16px; }
.go { margin-left: auto; display: inline-flex !important; color: var(--ink); transition: transform .2s var(--ease); }
.card-link:hover .go { transform: translateX(3px); }
.meta { display: flex; flex-wrap: wrap; gap: 6px 16px; font-size: 14px; color: var(--muted); margin-top: 6px; }
.meta span { display: inline-flex; align-items: center; gap: 6px; }
.meta .ic { width: 16px; height: 16px; }
.tags { display: flex; flex-wrap: wrap; gap: 6px; margin: 12px 0 14px; }
.link-more { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; font-size: 14.5px; color: var(--ink); margin-top: auto; padding-top: 10px; }
.link-more:hover { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; }
.cat-card { gap: 4px; }
.cat-card h3 { margin: 0 0 2px; }
.role-ic { display: inline-flex; color: var(--ink); flex-shrink: 0; }
.role-ic .ic { width: 24px; height: 24px; }
.callout { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; background: var(--surface-2); border-color: var(--surface-2); }
.callout h3 { margin: 0 0 4px; }
.callout p { margin: 0; }

/* Professional cards */
.pro-card { padding: 0; overflow: hidden; }
.pro-card > :not(.pro-cover) { margin-left: 22px; margin-right: 22px; }
.pro-card > .row:first-child, .pro-card > .pro-cover + .row { margin-top: 20px; }
.pro-card > .card-foot { margin-bottom: 18px; }
.pro-cover { aspect-ratio: 16 / 9; overflow: hidden; background: var(--surface-2); }
.pro-cover img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s var(--ease); }
.pro-card:hover .pro-cover img { transform: scale(1.04); }
.pro-card h3 { margin: 0; font-size: 17px; }

/* Avatars */
.avatar { width: 46px; height: 46px; border-radius: 50%; display: inline-grid; place-items: center; font-weight: 700; font-size: 15px; flex-shrink: 0; letter-spacing: .02em; }
.avatar.xs { width: 24px; height: 24px; font-size: 10px; vertical-align: middle; }
.avatar.sm { width: 36px; height: 36px; font-size: 13px; }
.avatar.lg { width: 60px; height: 60px; font-size: 20px; }
.avatar.xl { width: 96px; height: 96px; font-size: 32px; border: 4px solid #fff; box-shadow: var(--shadow); }
.av-owner { background: #e4eefa; color: #23558f; }
.av-contractor { background: #fff1c7; color: #7d5a00; }
.av-subcontractor { background: #e2f3e9; color: #1c6d43; }
.av-supplier { background: #efe7fb; color: #5d3a98; }
.av-engineer { background: #ddf1f3; color: #176670; }
.av-designer { background: #fbe4ec; color: #9b2f58; }
.av-admin { background: #eceef1; color: #3c4855; }

/* Tags */
.tag { display: inline-flex; align-items: center; gap: 5px; background: var(--surface-2); border: 1px solid var(--line); padding: 3px 11px; border-radius: 99px; font-size: 13px; font-weight: 500; color: var(--ink-2); line-height: 1.45; }
a.tag:hover { border-color: var(--line-2); color: var(--ink); }
.tag-accent { background: var(--accent-soft); border-color: #f6dc8b; color: #6b4d00; }
.tag-ok { background: var(--ok-soft); border-color: #bfe2cd; color: var(--ok); }
.tag-bad { background: var(--bad-soft); border-color: #f1c5c0; color: var(--bad); }
.tag-blue { background: var(--blue-soft); border-color: #c9daee; color: var(--blue); }
.kind { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 600; padding: 4px 11px; border-radius: 99px; }
.kind .ic { width: 15px; height: 15px; }
.kind-project { background: #fff1c7; color: #6b4d00; }
.kind-materials { background: #efe7fb; color: #553090; }
.kind-interior { background: #fbe4ec; color: #8c2950; }
.verified-ic { color: var(--blue); margin-left: 5px; }
.verified-ic .ic, svg.verified-ic { width: 17px; height: 17px; vertical-align: -3px; }
.ok-text { color: var(--ok); font-weight: 600; }
.dot-ok { display: inline-flex; align-items: center; gap: 7px; color: var(--ok); font-weight: 500; }
.dot-ok::before { content: ''; width: 8px; height: 8px; border-radius: 50%; background: var(--ok); }
.stars { color: #f2a900; display: inline-flex; gap: 1px; vertical-align: middle; }
.stars .ic { width: 16px; height: 16px; }
.stars .ic:not(.fill) { color: #dcd8cf; }
.pill { display: inline-flex; align-items: center; gap: 6px; border: 1px solid var(--line-2); background: var(--surface); color: var(--ink-2); padding: 7px 14px; border-radius: 99px; font: inherit; font-size: 14px; font-weight: 500; cursor: pointer; transition: all .15s; }
.pill:hover { border-color: var(--ink); color: var(--ink); }

/* Notices & empty states */
.notice { display: flex; gap: 11px; align-items: flex-start; padding: 14px 18px; border-radius: 14px; background: var(--blue-soft); color: #1b4a80; font-size: 15px; margin-bottom: 18px; }
.notice .ic { margin-top: 2px; }
.notice a { font-weight: 600; color: inherit; text-decoration: underline; }
.notice-warn { background: var(--accent-soft); color: #5e4300; }
.notice-ok { background: var(--ok-soft); color: #16603b; }
.empty { text-align: center; padding: 48px 24px; color: var(--muted); display: flex; flex-direction: column; align-items: center; gap: 4px; }
.empty h3 { margin: 8px 0 2px; }
.empty .btn { margin-top: 12px; }
.empty-ic { width: 46px; height: 46px; color: #c4beb2; stroke-width: 1.5; }
.skeleton { min-height: 200px; background: linear-gradient(90deg, #f3f1ec 25%, #faf9f6 50%, #f3f1ec 75%); background-size: 200% 100%; animation: shimmer 1.2s infinite; border: 0; }
@keyframes shimmer { to { background-position: -200% 0; } }
.loader { display: grid; place-items: center; min-height: 40vh; }
.spinner { width: 40px; height: 40px; border: 3.5px solid var(--line); border-top-color: var(--ink); border-radius: 50%; animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* Page head */
.page-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 18px; flex-wrap: wrap; margin-bottom: 28px; padding-bottom: 22px; border-bottom: 1px solid var(--line); }
.page-head h1 { margin: 0 0 6px; }
.page-head p { margin: 0; max-width: 720px; font-size: 17px; }
.back { display: inline-flex; align-items: center; gap: 4px; font-weight: 600; font-size: 14.5px; color: var(--muted); margin-bottom: 16px; }
.back:hover { color: var(--ink); }
.section { margin-top: 64px; }
.section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 18px; margin-bottom: 22px; flex-wrap: wrap; }
.section-head h2 { margin: 0; }
.section-head p { margin: 6px 0 0; color: var(--muted); }
.kicker { display: block; font-size: 14px; font-weight: 600; color: var(--accent-2); margin-bottom: 6px; }
.lead { font-size: 18px; color: var(--ink-2); max-width: 620px; }

/* =========================================================
   Home
   ========================================================= */
.home-hero { position: relative; min-height: 600px; display: flex; align-items: center; color: #fff; overflow: hidden; background: #2a2723; }
.home-hero > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.home-hero::after { content: ''; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(14, 15, 17, .82) 0%, rgba(14, 15, 17, .55) 45%, rgba(14, 15, 17, .1) 100%); }
.home-hero .wrap { position: relative; z-index: 2; width: 100%; padding-top: 64px; padding-bottom: 64px; }
.home-hero h1 { color: #fff; font-size: clamp(36px, 5vw, 60px); line-height: 1.05; letter-spacing: -.03em; max-width: 720px; margin-bottom: 18px; }
.home-hero .lead { color: rgba(255, 255, 255, .86); font-size: 19px; }
.hero-search { display: flex; align-items: stretch; background: var(--surface); border-radius: 18px; padding: 8px; max-width: 760px; margin: 30px 0 16px; box-shadow: 0 20px 60px rgba(0, 0, 0, .3); position: relative; }
.hero-search .hs-field { flex: 1; min-width: 0; display: flex; flex-direction: column; justify-content: center; padding: 6px 16px; color: var(--ink); position: relative; }
.hero-search .hs-field + .hs-field { border-left: 1px solid var(--line); }
.hero-search .hs-field label { font-size: 12.5px; font-weight: 700; margin: 0; color: var(--ink); }
.hero-search .hs-field input, .hero-search .hs-field select { border: 0; padding: 2px 0; min-height: 30px; box-shadow: none; font-size: 16px; background-position: right 0 center; }
.hero-search .hs-field input:focus, .hero-search .hs-field select:focus { box-shadow: none; }
.hero-search .hs-region { flex: 0 0 210px; }
.hero-search .btn { min-height: 60px; padding: 0 28px; border-radius: 13px; font-size: 16.5px; }
.suggest { position: absolute; left: 0; right: 0; top: calc(100% + 10px); background: var(--surface); border-radius: 16px; box-shadow: var(--shadow-lg); padding: 6px; display: none; z-index: 20; max-height: 400px; overflow-y: auto; color: var(--ink); }
.suggest.open { display: block; }
.sug { display: flex; align-items: center; gap: 12px; padding: 11px 12px; border-radius: 10px; color: var(--ink); font-size: 15px; }
.sug > .ic:first-child { color: var(--muted); }
.sug:hover, .sug.sel { background: var(--surface-2); color: var(--ink); }
.sug-all { border-top: 1px solid var(--line); margin-top: 4px; font-weight: 600; }
.hero-proof { display: flex; flex-wrap: wrap; gap: 10px 28px; margin-top: 34px; color: rgba(255, 255, 255, .86); font-size: 15px; }
.hero-proof span { display: inline-flex; align-items: center; gap: 8px; }
.hero-proof b { color: #fff; font-size: 18px; }
.hero-proof .ic { color: var(--accent); }
.photo-credit { position: absolute; right: 16px; bottom: 12px; z-index: 2; font-size: 12px; color: rgba(255, 255, 255, .6); }
.photo-credit a { color: inherit; }

.home-section { padding: 72px 0 0; }
.home-section.sand { background: var(--surface-2); padding-bottom: 72px; margin-top: 72px; }
.tiles { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.tile { position: relative; display: block; aspect-ratio: 4 / 3.4; border-radius: 18px; overflow: hidden; color: #fff; background: var(--sand); }
.tile img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s var(--ease); }
.tile::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0, 0, 0, 0) 35%, rgba(0, 0, 0, .72) 100%); }
.tile-text { position: absolute; left: 18px; right: 18px; bottom: 16px; z-index: 1; }
.tile-text b { display: block; font-size: 19px; letter-spacing: -.01em; }
.tile-text span { font-size: 13.5px; color: rgba(255, 255, 255, .82); }
.tile:hover { color: #fff; }
.tile:hover img { transform: scale(1.05); }
.services-strip { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 12px; margin-top: 18px; }
.services-strip a { display: flex; align-items: center; gap: 12px; padding: 16px; border: 1px solid var(--line); border-radius: 14px; color: var(--ink); font-weight: 600; font-size: 15px; background: var(--surface); transition: border-color .15s; }
.services-strip a:hover { border-color: var(--ink); }
.services-strip .ic { color: var(--ink-2); width: 22px; height: 22px; }

.steps-row { list-style: none; counter-reset: s; display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; padding: 0; margin: 0; }
.steps-row li { counter-increment: s; background: var(--surface); border: 1px solid var(--line); border-radius: 18px; padding: 24px; }
.steps-row li::before { content: counter(s); display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: var(--accent); color: var(--accent-ink); font-weight: 800; font-size: 17px; margin-bottom: 16px; }
.steps-row h3 { margin: 0 0 8px; }
.steps-row p { color: var(--ink-2); font-size: 15px; margin: 0; }

.split { display: grid; grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr); gap: 48px; align-items: center; }
.split p { color: var(--ink-2); max-width: 460px; font-size: 17px; }
.example { padding: 0; overflow: hidden; box-shadow: var(--shadow); border-radius: 18px; }
.example td.best { color: var(--ok); font-weight: 700; }
.example tbody tr:last-child td { border-bottom: 0; }

.feed { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.feed a { display: flex; flex-direction: column; gap: 6px; height: 100%; padding: 20px; border: 1px solid var(--line); border-radius: 16px; background: var(--surface); color: var(--ink); transition: border-color .15s, box-shadow .15s; }
.feed a:hover { border-color: var(--line-2); box-shadow: var(--shadow); }
.feed-kind { font-size: 13px; color: var(--muted); }
.feed-title { font-weight: 700; font-size: 16.5px; line-height: 1.3; }
.feed-date { font-size: 13px; color: var(--muted); margin-top: auto; padding-top: 8px; }

.calc-teaser { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); border-radius: 22px; overflow: hidden; background: var(--night); color: #fff; }
.calc-teaser > div:first-child { padding: 44px; }
.calc-teaser h2 { color: #fff; }
.calc-teaser p { color: rgba(255, 255, 255, .78); font-size: 17px; }
.calc-teaser img { width: 100%; height: 100%; object-fit: cover; min-height: 280px; }
.teaser-form { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 22px; }
.teaser-form select { flex: 1 1 200px; }
.teaser-form input { flex: 0 1 140px; }

.audience { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.aud-card { border-radius: 20px; overflow: hidden; border: 1px solid var(--line); background: var(--surface); display: flex; flex-direction: column; }
.aud-card img { aspect-ratio: 16 / 7; object-fit: cover; width: 100%; }
.aud-card > div { padding: 28px; display: flex; flex-direction: column; flex: 1; }
.aud-card ul { list-style: none; padding: 0; margin: 4px 0 24px; display: grid; gap: 10px; color: var(--ink-2); }
.aud-card li { display: flex; gap: 10px; }
.aud-card li .ic { color: var(--ok); margin-top: 3px; }
.aud-card .btn { align-self: flex-start; margin-top: auto; }

.link-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 12px; }
.link-grid a { display: flex; flex-direction: column; gap: 3px; padding: 16px 18px; color: var(--ink); border: 1px solid var(--line); border-radius: 14px; background: var(--surface); }
.link-grid a:hover { border-color: var(--ink); }
.link-grid span { font-size: 14px; color: var(--muted); }

/* Tabs */
.tabs-pill { display: inline-flex; flex-wrap: wrap; gap: 4px; background: var(--surface-2); border-radius: 14px; padding: 4px; }
.tabs-pill button { border: 0; background: none; padding: 9px 16px; border-radius: 11px; font: inherit; font-weight: 600; font-size: 14.5px; color: var(--muted); cursor: pointer; transition: all .15s; }
.tabs-pill button:hover { color: var(--ink); }
.tabs-pill button.active { background: var(--surface); color: var(--ink); box-shadow: var(--shadow-sm); }
.tabs { display: flex; gap: 6px; border-bottom: 1px solid var(--line); margin: 8px 0 24px; overflow-x: auto; scrollbar-width: none; }
.tabs::-webkit-scrollbar { display: none; }
.tabs a { display: inline-flex; align-items: center; gap: 8px; padding: 12px 14px; font-weight: 600; color: var(--muted); border-bottom: 3px solid transparent; margin-bottom: -1px; white-space: nowrap; }
.tabs a .ic { width: 17px; height: 17px; }
.tabs a.active { color: var(--ink); border-bottom-color: var(--accent); }
.tabs a:hover { color: var(--ink); }

/* Services page */
.filter-bar { display: flex; flex-direction: column; gap: 14px; margin-bottom: 20px; position: sticky; top: calc(var(--header-h) + 10px); z-index: 5; box-shadow: var(--shadow); }
.jump { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 2px; scrollbar-width: thin; }
.jump .pill { white-space: nowrap; }
.svc-group { margin-top: 18px; }
.svc-group h2 { font-size: 22px; }
.svc-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 10px; margin-top: 16px; }
.svc { display: flex; align-items: center; gap: 8px; border: 1px solid var(--line); border-radius: 12px; padding: 6px 6px 6px 16px; transition: border-color .15s; }
.svc:hover { border-color: var(--ink); }
.svc > a.grow { color: var(--ink); font-weight: 500; padding: 7px 0; }

/* Filters */
.filters { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; margin-bottom: 16px; padding: 16px; }
.filter-more { display: flex; gap: 10px; flex: 2; min-width: 0; }
.filter-more select { flex: 1; min-width: 0; }
.result-count { margin: 0 0 14px 4px; }

/* Profile */
.profile-cover { padding: 0; overflow: hidden; margin-bottom: 24px; }
.profile-banner { height: 220px; background: var(--sand) center / cover no-repeat; }
.profile-top { display: flex; align-items: center; gap: 22px; padding: 24px 28px; flex-wrap: wrap; }
.profile-top h1 { margin-bottom: 4px; }
.has-banner .profile-top { align-items: flex-end; padding-top: 0; }
.has-banner .profile-top > .avatar { margin-top: -40px; }
.profile-stats { display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--line); }
.profile-stats > div { padding: 18px 24px; display: flex; flex-direction: column; gap: 2px; border-right: 1px solid var(--line); }
.profile-stats > div:last-child { border-right: 0; }
.profile-stats b { font-size: 24px; }
.profile-stats span { font-size: 14px; color: var(--muted); }
.portfolio { display: grid; gap: 10px; }
.portfolio-item { display: flex; align-items: flex-start; gap: 12px; padding: 14px 16px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface-2); }
.pf-public { display: grid; gap: 24px; }
.pf-item .gallery { margin-bottom: 10px; }
.review { display: flex; gap: 14px; padding: 16px 0; border-bottom: 1px solid var(--line); }
.review:last-child { border-bottom: 0; }
.review p { margin: 6px 0; }
.review .gallery { margin: 8px 0; grid-template-columns: repeat(auto-fill, minmax(110px, 1fr)); }
.kv { display: grid; grid-template-columns: minmax(140px, auto) 1fr; gap: 10px 18px; font-size: 15px; margin: 16px 0 0; }
.kv dt { color: var(--muted); font-weight: 500; display: flex; align-items: center; gap: 7px; }
.kv dd { margin: 0; min-width: 0; overflow-wrap: anywhere; }

/* Photos */
.gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 8px; }
.gallery .thumb:first-child:nth-last-child(n+3) { grid-column: span 2; grid-row: span 2; }
.thumb { display: block; padding: 0; border: 0; border-radius: 12px; overflow: hidden; cursor: zoom-in; background: var(--surface-2); aspect-ratio: 4 / 3; width: 100%; }
.thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .3s var(--ease); }
.thumb:hover img { transform: scale(1.04); }
.photo-edit { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 12px; }
.pe { position: relative; width: 112px; }
.pe .thumb { aspect-ratio: 1; }
.pe-del { position: absolute; top: 6px; right: 6px; width: 28px; height: 28px; border-radius: 50%; border: 0; background: rgba(18, 20, 23, .75); color: #fff; display: grid; place-items: center; cursor: pointer; }
.pe-del:hover { background: var(--bad); }
.pe-del .ic { width: 15px; height: 15px; }
.pe-add { width: 112px; aspect-ratio: 1; margin: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; border: 1.5px dashed var(--line-2); border-radius: 12px; color: var(--muted); font-size: 13.5px; font-weight: 600; cursor: pointer; transition: all .15s; position: relative; }
.pe-add:hover, .pe-add:focus-within { border-color: var(--ink); color: var(--ink); background: var(--surface-2); }
.pe-add input, .photo-btn input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.busy { pointer-events: none; opacity: .6; position: relative; }
.busy::after { content: ''; position: absolute; width: 20px; height: 20px; border: 2.5px solid var(--ink); border-right-color: transparent; border-radius: 50%; animation: spin .7s linear infinite; }
.pf-edit-list { display: grid; gap: 12px; margin: 14px 0; }
.pf-edit { padding: 16px; border: 1px solid var(--line); border-radius: 14px; }
.pf-new { padding: 18px; border-radius: 14px; background: var(--surface-2); }
.pf-new h4 { margin-bottom: 12px; }
.lightbox { position: fixed; inset: 0; z-index: 95; background: rgba(10, 11, 12, .94); display: grid; place-items: center; padding: 56px 72px; animation: pageIn .15s ease-out; }
.lightbox figure { margin: 0; max-width: 100%; max-height: 100%; display: flex; flex-direction: column; align-items: center; gap: 12px; }
.lightbox img { max-width: 100%; max-height: calc(100vh - 150px); object-fit: contain; border-radius: 8px; }
.lightbox figcaption { color: rgba(255, 255, 255, .85); font-size: 15px; text-align: center; }
.lb-btn { position: absolute; width: 48px; height: 48px; border-radius: 50%; border: 0; background: rgba(255, 255, 255, .12); color: #fff; display: grid; place-items: center; cursor: pointer; transition: background .15s; }
.lb-btn:hover { background: rgba(255, 255, 255, .25); }
.lb-btn .ic { width: 24px; height: 24px; }
.lb-close { top: 16px; right: 16px; }
.lb-prev { left: 16px; top: 50%; transform: translateY(-50%); }
.lb-next { right: 16px; top: 50%; transform: translateY(-50%); }
.lb-count { position: absolute; top: 26px; left: 50%; transform: translateX(-50%); color: rgba(255, 255, 255, .75); font-size: 14px; }

/* File buttons */
.file-btn { display: flex; align-items: center; gap: 10px; padding: 12px 16px; border: 1.5px dashed var(--line-2); border-radius: 12px; background: var(--surface); color: var(--ink-2); font-weight: 600; font-size: 14.5px; cursor: pointer; margin: 0; transition: all .15s; min-width: 0; position: relative; }
.file-btn span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.file-btn input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.file-btn:hover, .file-btn:focus-within { border-color: var(--ink); color: var(--ink); }
.file-btn.has-files { border-style: solid; border-color: var(--ok); background: var(--ok-soft); color: var(--ok); }

/* Auth */
.auth-layout { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); max-width: 1080px; margin: 0 auto; border-radius: 24px; overflow: hidden; box-shadow: var(--shadow-lg); background: var(--surface); border: 1px solid var(--line); }
.auth-layout.wide { grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); max-width: 1200px; }
.auth-main { padding: 40px; }
.auth-main > .card { box-shadow: none; border: 0; padding: 0; }
.auth-main > .card + .card { margin-top: 26px; padding-top: 24px; border-top: 1px solid var(--line); border-radius: 0; }
.auth-aside { position: relative; color: #fff; padding: 44px 40px; display: flex; flex-direction: column; justify-content: flex-end; background: #2a2723 center / cover no-repeat; min-height: 100%; }
.auth-aside::before { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(14, 15, 17, .15) 0%, rgba(14, 15, 17, .88) 70%); }
.auth-aside > * { position: relative; }
.auth-aside h2 { color: #fff; font-size: 28px; margin: 4px 0 18px; }
.demo-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 8px; margin-top: 12px; }
.demo-grid .btn { justify-content: flex-start; }
.role-picker { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-bottom: 24px; }
.choice { position: relative; display: flex; flex-direction: column; align-items: flex-start; gap: 6px; text-align: left; border: 1.5px solid var(--line); border-radius: 16px; padding: 18px; cursor: pointer; background: var(--surface); font: inherit; color: var(--ink); transition: all .15s; }
.choice:hover { border-color: var(--ink-2); }
.choice.selected { border-color: var(--ink); box-shadow: 0 0 0 1px var(--ink) inset; background: var(--surface); }
.choice .tick { position: absolute; top: 14px; right: 14px; color: var(--ink); opacity: 0; transition: opacity .15s; }
.choice.selected .tick { opacity: 1; }
.choice b { font-size: 16px; }
.checklist { list-style: none; padding: 0; margin: 12px 0 0; display: grid; gap: 10px; }
.checklist li { display: flex; gap: 10px; align-items: flex-start; }
.checklist .ic { color: var(--ok); margin-top: 3px; }
.checklist.light li { color: rgba(255, 255, 255, .92); }
.checklist.light .ic { color: var(--accent); }

/* Dashboard */
.dash-head { display: flex; justify-content: space-between; align-items: center; gap: 18px; flex-wrap: wrap; margin-bottom: 24px; }
.dash-head h1 { margin: 0; }
.dash-head p { margin: 2px 0 0; }
.kpis { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-bottom: 10px; }
.kpis.five { grid-template-columns: repeat(5, 1fr); }
.kpi { padding: 20px; margin: 0 !important; background: var(--surface-2); border-color: var(--surface-2); box-shadow: none; }
.kpi b { display: block; font-size: 30px; font-weight: 700; line-height: 1.1; letter-spacing: -.02em; }
.kpi span { font-size: 14px; color: var(--muted); }

/* Tables */
.table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
table { width: 100%; border-collapse: collapse; font-size: 15px; }
th, td { text-align: left; padding: 13px 14px; border-bottom: 1px solid var(--line); vertical-align: top; }
thead th { font-size: 13px; color: var(--muted); font-weight: 600; background: var(--surface-2); }
tbody tr { transition: background .12s; }
tbody tr:hover { background: #fcfbf9; }
.card.table-wrap { padding: 0; }
.num { text-align: right; white-space: nowrap; }
.actions-cell { white-space: nowrap; }
.sumrow td { color: var(--muted); background: var(--surface-2); }
.compare-card h2 { display: flex; align-items: center; gap: 10px; margin-bottom: 4px; font-size: 24px; }
.compare { min-width: 600px; }
.compare th[scope=row], .compare thead th:first-child { position: sticky; left: 0; background: var(--surface); z-index: 1; width: 180px; color: var(--ink-2); font-weight: 600; font-size: 14.5px; box-shadow: 1px 0 0 var(--line); }
.compare thead th { font-size: 14.5px; color: var(--ink); }
.compare tr.crit th { background: var(--night); color: #fff; font-size: 13px; font-weight: 600; padding: 9px 14px; position: static; }
.compare td.best { background: var(--ok-soft); box-shadow: inset 3px 0 0 var(--ok); }

/* Wizard */
.steps { position: relative; display: grid; grid-template-columns: repeat(5, 1fr); margin-bottom: 26px; }
.steps::before, .steps::after { content: ''; position: absolute; top: 18px; left: 10%; right: 10%; height: 3px; background: var(--line); border-radius: 3px; }
.steps::after { right: auto; width: calc(80% * var(--pct) / 100); background: var(--night); transition: width .4s var(--ease); }
.step { position: relative; z-index: 1; display: flex; flex-direction: column; align-items: center; gap: 7px; text-align: center; font-size: 14px; font-weight: 600; color: var(--muted); }
.step-num { width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; background: var(--surface); border: 2px solid var(--line-2); font-weight: 700; transition: all .25s; }
.step.active .step-num { border-color: var(--accent); background: var(--accent); color: var(--accent-ink); box-shadow: 0 0 0 6px rgba(255, 194, 26, .25); }
.step.active { color: var(--ink); }
.step.done .step-num { border-color: var(--night); background: var(--night); color: #fff; }
.step.done { color: var(--ink-2); }
.step-mobile { display: none; }
.progress { height: 6px; background: var(--line); border-radius: 99px; overflow: hidden; margin-top: 10px; }
.progress span { display: block; height: 100%; background: var(--night); border-radius: 99px; transition: width .4s var(--ease); }
.wizard { grid-template-columns: minmax(0, 1fr) 320px; }
.wiz-body { min-height: 320px; padding: 30px; }
.wiz-body h2 { margin-bottom: 18px; font-size: 24px; }
.wiz-summary { position: sticky; top: calc(var(--header-h) + 16px); background: var(--surface-2); border-color: var(--surface-2); box-shadow: none; }
.wiz-summary .kv { grid-template-columns: auto 1fr; font-size: 14.5px; }
.wizard-nav { display: flex; justify-content: space-between; gap: 12px; margin-top: 20px; }
.shake { animation: shake .35s; }
@keyframes shake { 20%, 60% { transform: translateX(-6px); } 40%, 80% { transform: translateX(6px); } }
.items { display: grid; gap: 10px; margin-bottom: 12px; }
.item-row, .qline { display: grid; grid-template-columns: 1.4fr .7fr .7fr 1.6fr auto; gap: 10px; align-items: end; padding: 14px; border: 1px solid var(--line); border-radius: 14px; background: var(--surface-2); }
.item-row .field, .qline .field { margin: 0; }
.item-row label, .qline label { font-size: 13px; color: var(--muted); }
.qline { grid-template-columns: 2fr .7fr .8fr .9fr .9fr auto; margin-bottom: 10px; }
.ql_sum { min-height: 48px; display: flex; align-items: center; justify-content: flex-end; font-weight: 700; font-variant-numeric: tabular-nums; }
.total-box { display: grid; grid-template-columns: 1fr 1fr 1.2fr; gap: 14px; align-items: end; margin: 20px 0; padding: 18px; border-radius: 16px; background: var(--night); color: #fff; }
.total-box label { color: #b8bec6; }
.total-box .field { margin: 0; }
.total-out { text-align: right; }
.total-out .muted { color: #b8bec6; }
.total-out .price { color: var(--accent); }
.dropzone { display: flex; flex-direction: column; align-items: center; gap: 8px; border: 2px dashed var(--line-2); border-radius: 18px; padding: 44px 20px; text-align: center; background: var(--surface-2); cursor: pointer; transition: all .2s; margin: 0; font-weight: 500; color: var(--ink); }
.dropzone:hover { border-color: var(--ink); }
.dropzone.over { border-color: var(--accent-2); background: var(--accent-soft); }
.drop-ic { width: 46px; height: 46px; color: var(--ink-2); }
.filelist { list-style: none; padding: 0; margin: 14px 0 0; display: grid; gap: 8px; }
.filelist li { display: flex; align-items: center; gap: 10px; padding: 9px 9px 9px 14px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); font-size: 15px; }
.filelist li > .ic { color: var(--ink-2); }
.pick-list { display: grid; gap: 8px; }
.pick { position: relative; display: flex; align-items: center; gap: 12px; padding: 13px 16px; border: 1.5px solid var(--line); border-radius: 14px; background: var(--surface); cursor: pointer; margin: 0; font-weight: 400; color: var(--ink); transition: all .15s; }
.pick input { position: absolute; opacity: 0; pointer-events: none; }
.pick .tick { color: var(--line-2); width: 24px; height: 24px; }
.pick:hover { border-color: var(--ink-2); }
.pick:has(input:checked) { border-color: var(--ink); box-shadow: 0 0 0 1px var(--ink) inset; }
.pick:has(input:checked) .tick { color: var(--ink); }
.pick:has(input:focus-visible) { outline: 3px solid rgba(29, 95, 168, .45); outline-offset: 2px; }
details.more { margin-top: 12px; }
details.more > summary { cursor: pointer; font-weight: 600; font-size: 15px; color: var(--ink); padding: 6px 0; }

/* Request */
.req-card h3 { margin-top: 14px; }
.req-title { margin: 14px 0 6px; }
.sub { margin: 24px 0 10px; font-size: 16px; }
.track { display: flex; align-items: center; margin: 18px 0 6px; padding: 16px 18px; background: var(--surface-2); border-radius: 14px; }
.track-step { display: flex; align-items: center; gap: 9px; font-size: 14px; font-weight: 600; color: var(--muted); }
.track-step .ic { width: 32px; height: 32px; padding: 7px; border-radius: 50%; background: var(--surface); border: 2px solid var(--line-2); }
.track-step.done { color: var(--ink); }
.track-step.done .ic { background: var(--night); border-color: var(--night); color: #fff; }
.track-step.cur .ic { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.track-line { flex: 1; height: 2px; background: var(--line-2); margin: 0 12px; min-width: 16px; }
.quote-card { border-left: 4px solid var(--line-2); }
.quote-card.awarded { border-left-color: var(--ok); }
.quote-card.rejected, .quote-card.withdrawn { opacity: .7; }
.quote-card .who { color: inherit; align-items: flex-start; }
.quote-card .table-wrap { margin-top: 16px; }
.price-box { text-align: right; }
.price { font-size: 26px; font-weight: 800; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.price.pulse { animation: pulse .3s; }
@keyframes pulse { 50% { transform: scale(1.04); } }
.quote-card .actions { margin-top: 16px; }
.log { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; max-height: 280px; overflow-y: auto; }
.log li { display: flex; flex-direction: column; padding-left: 12px; border-left: 3px solid var(--line); }
.star-input { display: inline-flex; gap: 4px; }
.star-input button { border: 0; background: none; padding: 4px; cursor: pointer; color: #dcd8cf; border-radius: 8px; transition: transform .12s, color .12s; }
.star-input button .ic { width: 30px; height: 30px; }
.star-input button.on, .star-input button.hover { color: #f2a900; }
.star-input button:hover { transform: scale(1.12); }

/* Messages */
.chat { display: grid; grid-template-columns: 340px 1fr; min-height: 580px; padding: 0; overflow: hidden; }
.threads { border-right: 1px solid var(--line); overflow-y: auto; max-height: 700px; }
.thread { display: flex; gap: 12px; padding: 16px 18px; border-bottom: 1px solid var(--line); color: inherit; transition: background .12s; }
.thread:hover { background: var(--surface-2); color: inherit; }
.thread.active { background: var(--surface-2); box-shadow: inset 3px 0 0 var(--ink); }
.thread .t1 { font-weight: 600; display: flex; justify-content: space-between; gap: 8px; }
.conv { display: flex; flex-direction: column; min-width: 0; }
.conv-head { display: flex; align-items: center; gap: 12px; padding: 16px 20px; border-bottom: 1px solid var(--line); }
.conv-body { flex: 1; padding: 22px; overflow-y: auto; max-height: 520px; display: flex; flex-direction: column; gap: 10px; background: var(--surface-2); }
.conv-empty { margin: auto; }
.bubble { max-width: 72%; padding: 11px 15px; border-radius: 18px 18px 18px 6px; background: var(--surface); border: 1px solid var(--line); font-size: 15px; white-space: pre-wrap; overflow-wrap: anywhere; }
.bubble.mine { align-self: flex-end; background: var(--night); color: #fff; border-color: var(--night); border-radius: 18px 18px 6px 18px; }
.bubble .time { display: block; font-size: 11.5px; opacity: .6; margin-top: 4px; }
.conv-form { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; padding: 14px; border-top: 1px solid var(--line); background: var(--surface); }
.conv-form > input[name="body"] { flex: 1; min-width: 0; }
.dd-menu a .badge { margin-left: auto; }

/* Συνημμένα μηνυμάτων */
.att-btn { position: relative; flex: none; cursor: pointer; }
.att-btn input { position: absolute; inset: 0; opacity: 0; cursor: pointer; width: 100%; }
.att-btn:focus-within { box-shadow: 0 0 0 3px rgba(255, 194, 26, .45); }
.conv-form.has-files .att-btn { color: var(--ink); background: var(--accent-soft); }
.att-tray { flex-basis: 100%; display: flex; flex-wrap: wrap; align-items: center; gap: 8px; padding-bottom: 4px; }
.att-chip { display: flex; align-items: center; gap: 10px; max-width: 260px; padding: 6px 6px 6px 6px; border: 1px solid var(--line-2); border-radius: 12px; background: var(--surface-2); font-size: 13px; animation: pop .16s var(--ease); }
.att-chip img { width: 38px; height: 38px; object-fit: cover; border-radius: 8px; flex: none; }
.att-chip .grow, .att-file .grow { min-width: 0; display: flex; flex-direction: column; line-height: 1.25; }
.att-chip b, .att-file b { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-weight: 600; }
.att-chip .grow span, .att-file .grow span { font-size: 11.5px; opacity: .7; }
.att-ic { width: 38px; height: 38px; border-radius: 8px; display: grid; place-items: center; flex: none; background: var(--accent-soft); color: var(--ink); }
.att-del { flex: none; width: 28px; height: 28px; border-radius: 99px; border: 0; background: none; color: var(--muted); cursor: pointer; display: grid; place-items: center; }
.att-del:hover { background: var(--bad-soft); color: var(--bad); }
.att-del .ic { width: 15px; height: 15px; }
.att-count { margin-left: 4px; }
.drop-hint { display: none; }
.conv { position: relative; }
.conv.drop .drop-hint { display: flex; position: absolute; inset: 0; z-index: 3; align-items: center; justify-content: center; gap: 10px; flex-direction: column; border: 2px dashed var(--accent-2); border-radius: 0 0 16px 0; background: color-mix(in srgb, var(--surface) 88%, transparent); font-weight: 700; font-size: 16px; }
.conv.drop .drop-hint .ic { width: 34px; height: 34px; color: var(--accent-2); }
.bubble.has-att { white-space: normal; }
.bubble.has-att > span[data-tr] { white-space: pre-wrap; display: block; margin-bottom: 8px; }
.att-imgs { display: grid; gap: 4px; margin: 2px 0 6px; border-radius: 12px; overflow: hidden; }
.att-imgs.n2 { grid-template-columns: 1fr 1fr; }
.att-imgs.n3 { grid-template-columns: 1fr 1fr 1fr; }
.att-img { display: block; background: var(--surface-2); }
.att-img img { display: block; width: 100%; max-height: 260px; object-fit: cover; aspect-ratio: auto; }
.att-imgs.n2 img, .att-imgs.n3 img { aspect-ratio: 1; max-height: 160px; }
.att-file { display: flex; align-items: center; gap: 10px; min-width: 220px; max-width: 320px; padding: 8px 10px 8px 8px; margin: 2px 0 6px; border-radius: 12px; background: var(--surface-2); border: 1px solid var(--line); color: var(--ink); font-size: 13.5px; }
.att-file:hover { color: var(--ink); border-color: var(--line-2); }
.bubble.mine .att-file { background: rgba(255, 255, 255, .08); border-color: rgba(255, 255, 255, .14); color: #fff; }
.bubble.mine .att-file .att-ic { background: var(--accent); color: var(--accent-ink); }

/* Ειδοποιήσεις */
.notif-tabs { display: flex; gap: 8px; overflow-x: auto; padding: 2px 2px 14px; scrollbar-width: none; }
.notif-tabs::-webkit-scrollbar { display: none; }
.ntab { display: inline-flex; align-items: center; gap: 8px; flex: none; padding: 8px 10px 8px 14px; border-radius: 99px; border: 1px solid var(--line-2); background: var(--surface); color: var(--ink-2); font: inherit; font-size: 14px; font-weight: 600; cursor: pointer; transition: background .12s, border-color .12s; }
.ntab .ic { width: 16px; height: 16px; }
.ntab:hover:not(:disabled) { border-color: var(--ink); }
.ntab.active { background: var(--night); border-color: var(--night); color: #fff; }
.ntab:disabled { opacity: .45; cursor: default; }
.ncount { min-width: 24px; padding: 1px 7px; border-radius: 99px; background: var(--surface-2); color: var(--ink-2); font-size: 12px; text-align: center; }
.ntab.active .ncount { background: rgba(255, 255, 255, .16); color: #fff; }
.ncount.hot, .ntab.active .ncount.hot { background: var(--accent); color: var(--accent-ink); }
.notif-group + .notif-group { margin-top: 20px; }
.notif-day { display: flex; align-items: center; gap: 8px; font-size: 13px; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); margin: 0 0 8px 4px; }
.notif-day span { font-size: 12px; letter-spacing: 0; padding: 0 7px; border-radius: 99px; background: var(--surface-2); }
.notif-list { padding: 6px; }
.notif { display: flex; align-items: flex-start; gap: 14px; padding: 14px; border-radius: 12px; color: var(--ink); transition: background .12s; }
.notif:hover { background: var(--surface-2); }
.notif + .notif { border-top: 1px solid var(--line); }
.notif.unread { background: color-mix(in srgb, var(--accent-soft) 55%, transparent); }
.notif.unread:hover { background: var(--accent-soft); }
.notif-text { display: block; color: var(--ink); font-size: 15px; line-height: 1.4; }
.notif-text:hover { color: var(--ink); text-decoration: underline; }
.notif.unread .notif-text { font-weight: 700; }
.notif-time { display: flex; align-items: center; gap: 6px; margin-top: 3px; }
.dot-new { width: 8px; height: 8px; border-radius: 99px; background: var(--accent-2); flex: none; }
.notif-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.notif-tools { display: flex; gap: 2px; flex: none; opacity: .6; transition: opacity .12s; }
.notif:hover .notif-tools, .notif-tools:focus-within { opacity: 1; }
.notif-tools .iconbtn { width: 36px; height: 36px; }
.notif-ic { width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center; background: var(--surface-2); color: var(--muted); flex-shrink: 0; }
.notif-ic.k-messages { background: #e6f0ff; color: #1f5fbf; }
.notif-ic.k-quotes { background: #fff3cf; color: #8a5a00; }
.notif-ic.k-requests { background: #e7f6ec; color: #17703f; }
.notif-ic.k-account { background: #efeaf9; color: #5b3fa6; }
[data-theme="dark"] .notif-ic.k-messages { background: #15233a; color: #9cc3f2; }
[data-theme="dark"] .notif-ic.k-quotes { background: #33290c; color: #f3d27a; }
[data-theme="dark"] .notif-ic.k-requests { background: #10271c; color: #8fdcb3; }
[data-theme="dark"] .notif-ic.k-account { background: #241a3d; color: #c9b2f3; }
@media (max-width: 640px) {
  .notif { gap: 12px; padding: 12px 10px; }
  .notif-ic { width: 36px; height: 36px; }
  .notif-tools { flex-direction: column; opacity: 1; }
  .att-file { min-width: 0; }
}
.save-bar { position: sticky; bottom: 0; padding: 16px 0 calc(16px + env(safe-area-inset-bottom)); margin-top: 8px; background: linear-gradient(transparent, var(--bg) 35%); z-index: 4; }

/* Legal & FAQ */
.legal-layout { display: grid; grid-template-columns: 260px minmax(0, 1fr); gap: 24px; align-items: start; }
.toc { position: sticky; top: calc(var(--header-h) + 16px); display: flex; flex-direction: column; gap: 2px; padding: 18px; }
.toc b { margin-bottom: 8px; }
.toc a { color: var(--ink-2); font-size: 14.5px; padding: 7px 9px; border-radius: 9px; }
.toc a:hover { background: var(--surface-2); color: var(--ink); }
.legal { margin: 0 !important; padding: 36px 40px; }
.legal section + section { margin-top: 28px; }
.legal h2 { font-size: 21px; }
.legal p, .legal li { color: var(--ink-2); }
.legal ul { padding-left: 20px; margin: 0 0 1em; }
.legal li + li { margin-top: 5px; }
.faq { display: grid; gap: 10px; }
.faq-item { padding: 0; margin: 0 !important; }
.faq-item summary { list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 14px; padding: 20px 22px; cursor: pointer; font-weight: 600; font-size: 16.5px; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-ic { color: var(--ink); transition: transform .25s var(--ease); width: 22px; height: 22px; }
.faq-item[open] .faq-ic { transform: rotate(45deg); }
.faq-item p { padding: 0 22px 20px; margin: 0; color: var(--ink-2); }
.faq-item:hover { border-color: var(--line-2); }
.faq + .card, #faqEmpty + .card { margin-top: 24px; }
.contact-info p { display: flex; align-items: center; gap: 10px; margin: 0 0 10px; }

/* Calculator */
.calc { display: grid; grid-template-columns: minmax(0, 1fr) 440px; gap: 24px; align-items: start; }
.calc-form { padding: 28px; }
.calc-form h3 { font-size: 17px; margin: 26px 0 14px; padding-top: 22px; border-top: 1px solid var(--line); }
.range-row { display: grid; grid-template-columns: 1fr 130px; gap: 16px; align-items: center; }
.stepper { display: flex; align-items: stretch; border: 1px solid var(--line-2); border-radius: 12px; overflow: hidden; }
.stepper button { width: 48px; border: 0; background: var(--surface-2); font: inherit; font-size: 20px; cursor: pointer; color: var(--ink); }
.stepper button:hover { background: var(--sand); }
.stepper input { border: 0; border-radius: 0; text-align: center; min-height: 46px; -moz-appearance: textfield; }
.stepper input::-webkit-inner-spin-button { -webkit-appearance: none; }
.level-pick { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.level-pick label { margin: 0; cursor: pointer; position: relative; }
.level-pick input { position: absolute; opacity: 0; }
.level-pick span { display: flex; flex-direction: column; gap: 4px; height: 100%; padding: 14px; border: 1.5px solid var(--line); border-radius: 14px; font-weight: 400; color: var(--ink-2); font-size: 13.5px; transition: all .15s; }
.level-pick span b { color: var(--ink); font-size: 15.5px; }
.level-pick input:checked + span { border-color: var(--ink); box-shadow: 0 0 0 1px var(--ink) inset; }
.level-pick input:focus-visible + span { outline: 3px solid rgba(29, 95, 168, .45); outline-offset: 2px; }
.extras { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.extras .check { padding: 12px 14px; border: 1px solid var(--line); border-radius: 12px; align-items: center; }
.calc-result { position: sticky; top: calc(var(--header-h) + 16px); padding: 0; overflow: hidden; box-shadow: var(--shadow); }
.calc-top { background: var(--night); color: #fff; padding: 26px 26px 22px; }
.calc-top .small { color: rgba(255, 255, 255, .7); }
.calc-range { font-size: clamp(26px, 2.8vw, 34px); font-weight: 800; letter-spacing: -.02em; line-height: 1.15; margin: 6px 0 10px; font-variant-numeric: tabular-nums; }
.calc-sub { display: flex; flex-wrap: wrap; gap: 6px 16px; font-size: 14px; color: rgba(255, 255, 255, .8); }
.calc-body { padding: 22px 26px 26px; }
.calc-lines { font-size: 14.5px; margin-bottom: 22px; }
.calc-lines td { padding: 8px 0; }
.calc-lines tr.total td { font-weight: 700; border-bottom: 0; border-top: 2px solid var(--ink); }
.bars { display: grid; gap: 12px; margin: 10px 0 22px; }
.bar-row { display: grid; grid-template-columns: 1fr auto; gap: 4px 10px; font-size: 14px; }
.bar-row a { color: var(--ink); font-weight: 500; }
.bar-row a:hover { text-decoration: underline; text-underline-offset: 3px; }
.bar-row .amt { font-variant-numeric: tabular-nums; color: var(--ink-2); }
.bar-track { grid-column: 1 / -1; height: 8px; background: var(--surface-2); border-radius: 99px; overflow: hidden; }
.bar-track span { display: block; height: 100%; background: var(--accent); border-radius: 99px; transition: width .35s var(--ease); color: var(--accent-ink); }
.calc-actions { display: grid; gap: 10px; }
.disclaimer { font-size: 13.5px; color: var(--muted); margin-top: 18px; }

/* Google / διαχωριστικό */
.or-sep { display: flex; align-items: center; gap: 12px; color: var(--muted); font-size: 13.5px; margin: 18px 0; }
.or-sep::before, .or-sep::after { content: ''; flex: 1; height: 1px; background: var(--line); }
.gbtn { display: flex; justify-content: center; min-height: 44px; }

/* Τιμές υλικών */
.trend-up { color: var(--bad); font-weight: 600; }
.trend-down { color: var(--ok); font-weight: 600; }
.price-range { display: block; font-size: 13px; color: var(--muted); }
.thin-data { font-size: 12px; color: var(--muted); }

/* Χάρτης */
.map-wrap { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 20px; align-items: start; }
#map { height: 600px; border-radius: var(--radius); border: 1px solid var(--line); z-index: 0; }
.map-list { max-height: 600px; overflow-y: auto; padding: 0; }
.map-list .map-item { display: block; padding: 14px 18px; border-bottom: 1px solid var(--line); color: var(--ink); }
.map-list .map-item:hover { background: var(--surface-2); }
.map-count { display: grid; place-items: center; border-radius: 50%; background: var(--night); color: var(--accent); font-weight: 800; border: 3px solid #fff; box-shadow: 0 3px 10px rgba(0, 0, 0, .3); font-family: var(--font); }
.leaflet-popup-content { font-family: var(--font); font-size: 14px; }

/* Παρακολούθηση έργου */
.ms-progress { height: 10px; background: var(--surface-2); border-radius: 99px; overflow: hidden; margin: 10px 0 6px; display: flex; }
.ms-progress span { display: block; height: 100%; }
.ms-progress .paid { background: var(--ok); }
.ms-progress .certified { background: var(--accent); color: var(--accent-ink); }
.ms-progress .completed { background: #bfc4ca; }
.ms-legend { display: flex; flex-wrap: wrap; gap: 6px 16px; font-size: 13px; color: var(--muted); }
.ms-legend i { display: inline-block; width: 10px; height: 10px; border-radius: 3px; margin-right: 5px; vertical-align: -1px; }
.ms-row { display: grid; grid-template-columns: 1fr auto auto; gap: 8px 16px; align-items: center; padding: 14px 0; border-bottom: 1px solid var(--line); }
.ms-row:last-child { border-bottom: 0; }
.ms-row .ms-actions { grid-column: 1 / -1; display: flex; gap: 8px; flex-wrap: wrap; }
.diary { display: grid; gap: 14px; margin-top: 12px; }
.diary-entry { padding: 16px; border: 1px solid var(--line); border-radius: 14px; }
.diary-entry .gallery { margin-top: 10px; grid-template-columns: repeat(auto-fill, minmax(110px, 1fr)); }
.diary-entry .gallery .thumb:first-child:nth-last-child(n+3) { grid-column: auto; grid-row: auto; }

/* Συνδρομές */
.plans { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; align-items: stretch; }
.plan { display: flex; flex-direction: column; padding: 28px; }
.plan.featured { border: 2px solid var(--ink); box-shadow: var(--shadow); position: relative; }
.plan.featured::before { content: attr(data-badge); position: absolute; top: -13px; left: 24px; background: var(--accent); color: var(--accent-ink); font-size: 12.5px; font-weight: 700; padding: 3px 12px; border-radius: 99px; }
.plan .plan-price { font-size: 38px; font-weight: 800; letter-spacing: -.02em; margin: 6px 0 2px; }
.plan .plan-price small { font-size: 15px; font-weight: 500; color: var(--muted); }
.plan ul { list-style: none; padding: 0; margin: 18px 0 24px; display: grid; gap: 10px; color: var(--ink-2); }
.plan li { display: flex; gap: 10px; }
.plan li .ic { color: var(--ok); margin-top: 3px; }
.plan .btn { margin-top: auto; }
.tag-plan { background: var(--night); border-color: var(--night); color: var(--accent); }

/* Έγγραφα επαλήθευσης */
.doc-list { display: grid; gap: 8px; margin: 12px 0; }
.doc { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 12px; }
.doc > .ic { color: var(--ink-2); }

/* Σελίδα εκτύπωσης */
.print-doc { max-width: 1000px; margin: 0 auto; }
.print-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 20px; border-bottom: 2px solid var(--ink); padding-bottom: 16px; margin-bottom: 20px; }
.print-head .brand { font-size: 17px; }
.print-doc .compare { min-width: 0; font-size: 13px; }
.print-doc .compare th, .print-doc .compare td { padding: 8px 10px; }
@media print {
  @page { size: A4 landscape; margin: 12mm; }
  body { font-size: 12px; background: #fff; }
  .topbar, .footer, .cookie-bar, .toast, .no-print, .nav-overlay { display: none !important; }
  main.wrap { padding: 0; max-width: none; min-height: 0; }
  .card { box-shadow: none; border-color: #ccc; break-inside: avoid; }
  .compare th[scope=row], .compare thead th:first-child { position: static; }
  .compare td.best { background: #e5f4ec !important; -webkit-print-color-adjust: exact; print-color-adjust: exact; }
  .compare tr.crit th { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
  a { color: inherit; text-decoration: none; }
}

/* Cookies */
.cookie-bar { position: fixed; left: 50%; bottom: 18px; transform: translate(-50%, 140%); width: min(1000px, calc(100% - 24px)); background: var(--surface); border: 1px solid var(--line); border-radius: 20px; box-shadow: var(--shadow-lg); padding: 20px 22px; display: flex; gap: 18px; align-items: center; z-index: 70; transition: transform .35s var(--ease); }
.cookie-bar.show { transform: translate(-50%, 0); }
/* Όσο φαίνεται η μπάρα cookies, το τέλος της σελίδας μπορεί να ανέβει πάνω από αυτήν */
body.has-cookie-bar { padding-bottom: var(--cookie-h, 0px); }
.cookie-ic { width: 44px; height: 44px; border-radius: 50%; background: var(--accent-soft); color: var(--ink); display: grid; place-items: center; flex-shrink: 0; }
.cookie-text p { margin: 2px 0 0; font-size: 14px; color: var(--ink-2); }
.cookie-text a { font-weight: 600; color: var(--ink); text-decoration: underline; }
.cookie-actions { display: flex; gap: 8px; flex-shrink: 0; }
.cookie-opt { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 16px 0; border-top: 1px solid var(--line); text-align: left; }
.cookie-opt p { margin: 2px 0 0; }

/* Modal */
.modal-wrap { position: fixed; inset: 0; background: rgba(18, 20, 23, .5); display: grid; place-items: center; padding: 16px; z-index: 80; opacity: 0; transition: opacity .18s; }
.modal-wrap.show { opacity: 1; }
.modal { background: var(--surface); border-radius: 20px; padding: 28px; width: min(480px, 100%); box-shadow: var(--shadow-lg); text-align: left; transform: translateY(10px); transition: transform .22s var(--ease); max-height: 90vh; overflow-y: auto; }
.modal-wide { width: min(580px, 100%); }
.modal-wrap.show .modal { transform: none; }
.modal-icon { width: 48px; height: 48px; border-radius: 50%; background: var(--accent-soft); color: var(--ink); display: grid; place-items: center; margin-bottom: 14px; }
.modal-icon .ic { width: 24px; height: 24px; }
.modal-icon.danger { background: var(--bad-soft); color: var(--bad); }
.modal p { margin: 0; }
.modal-actions { display: flex; gap: 10px; justify-content: flex-end; margin-top: 24px; }

/* Toast */
.toast { position: fixed; bottom: 24px; left: 50%; transform: translate(-50%, 140px); display: flex; align-items: center; gap: 10px; background: var(--night); color: #fff; padding: 13px 20px; border-radius: 14px; font-weight: 500; transition: transform .3s var(--ease); z-index: 99; max-width: calc(100vw - 24px); box-shadow: var(--shadow-lg); }
.toast .ic { color: #7fdca6; }
.toast.show { transform: translate(-50%, 0); }
.toast.err { background: var(--bad); }
.toast.err .ic { color: #fff; }

/* Footer */
.footer { background: var(--night); color: #a7adb5; padding: 56px 0 0; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 36px; }
.footer h4 { color: #fff; font-size: 15px; margin-bottom: 14px; }
.footer-grid > div > a:not(.brand) { display: block; color: #a7adb5; padding: 5px 0; font-size: 15px; }
.footer-grid a:hover { color: #fff; }
.footer .brand { color: #fff; }
.footer .brand em { color: var(--accent); }
.footer-brand p { font-size: 15px; margin: 16px 0 18px; max-width: 380px; }
.brand-ic { color: var(--accent); width: 28px; height: 28px; }
.footer-bottom { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; font-size: 13.5px; padding: 24px 28px; margin-top: 40px; border-top: 1px solid rgba(255, 255, 255, .08); }
.footer-bottom span { display: inline-flex; align-items: center; gap: 6px; }
.footer-bottom a { color: #a7adb5; }

/* =========================================================
   Responsive
   ========================================================= */
@media (max-width: 1180px) {
  .kpis.five { grid-template-columns: repeat(3, 1fr); }
  .tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .services-strip { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .calc { grid-template-columns: minmax(0, 1fr) 380px; }
}
@media (max-width: 1024px) {
  :root { --header-h: 68px; }
  /* Το backdrop-filter θα έκανε το header «containing block» για το σταθερό μενού και θα προκαλούσε οριζόντιο scroll */
  .topbar { backdrop-filter: none; background: var(--surface); }
  .topbar-inner { flex-wrap: nowrap; }
  .brand { min-width: 0; }
  #brandText { overflow: hidden; text-overflow: ellipsis; }
  .menu-toggle { display: inline-grid; }
  .userbox { margin-left: auto; }
  .mainnav { position: fixed; top: 0; right: 0; bottom: 0; width: min(360px, 88vw); background: var(--surface); flex-direction: column; justify-content: flex-start; gap: 2px; padding: 0 16px 24px; margin: 0;
    transform: translateX(105%); transition: transform .3s var(--ease); z-index: 50; overflow-y: auto; box-shadow: var(--shadow-lg); }
  .mainnav.open { transform: none; }
  /* Το μενού βρίσκεται μέσα στο header: όταν είναι ανοιχτό, το header πρέπει να είναι πάνω από το σκούρο φόντο */
  body.nav-open .topbar { z-index: 60; }
  /* Στο κινητό: ύψος της ορατής οθόνης (χωρίς τις μπάρες του browser) και περιθώριο για την περιοχή κάτω από την οθόνη του iPhone */
  .mainnav { height: 100vh; height: 100dvh; bottom: auto; padding-bottom: calc(28px + env(safe-area-inset-bottom)); }
  body.nav-open .cookie-bar { visibility: hidden; }
  .mainnav .drawer-only { display: inline-flex; }
  .mainnav .nav-tools { display: none; }
  .mainnav > a { color: var(--ink); padding: 13px 12px; font-size: 16px; border-bottom: 0; border-radius: 10px; }
  .mainnav > a .ic { display: inline-block; color: var(--muted); }
  .mainnav > a:hover { background: var(--surface-2); }
  .mainnav > a.active { background: var(--accent-soft); }
  .drawer-head { display: flex; justify-content: space-between; align-items: center; height: var(--header-h); font-weight: 700; border-bottom: 1px solid var(--line); margin: 0 -16px 10px; padding: 0 16px 0 22px; position: sticky; top: 0; background: var(--surface); }
  .drawer-extra { display: flex; flex-direction: column; gap: 8px; margin-top: 14px; padding-top: 14px; border-top: 1px solid var(--line); }
  .drawer-extra > a:not(.btn) { display: flex; align-items: center; gap: 10px; padding: 11px 12px; color: var(--ink); font-weight: 500; border-radius: 10px; }
  .drawer-extra > a:not(.btn):hover { background: var(--surface-2); }
  /* Η γλώσσα επιλέγεται από το εικονίδιο στο header */
  .drawer-extra .seg { display: none; }
  .calc { grid-template-columns: 1fr; }
  .calc-result { position: static; }
  .map-wrap { grid-template-columns: 1fr; }
  #map { height: 420px; }
  .map-list { max-height: none; }
  .plans { grid-template-columns: 1fr; }
}
@media (max-width: 960px) {
  .layout-side, .wizard, .legal-layout { grid-template-columns: 1fr; }
  .sticky-side, .wiz-summary, .toc { position: static; }
  .wiz-summary { order: -1; }
  .toc { display: none; }
  .kpis { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
  .role-picker { grid-template-columns: repeat(2, 1fr); }
  .auth-layout, .auth-layout.wide { grid-template-columns: 1fr; }
  .auth-aside { display: none; }
  .chat { grid-template-columns: 1fr; min-height: 0; }
  .chat .threads { border-right: 0; max-height: none; }
  .chat.has-conv .threads { display: none; }
  .chat:not(.has-conv) .conv { display: none; }
  .conv-body { max-height: calc(100vh - 330px); min-height: 300px; }
  .show-sm { display: inline-flex !important; }
  .item-row { grid-template-columns: 1fr 1fr; }
  .item-row .grow2 { grid-column: 1 / -1; }
  .item-row .it_del { grid-column: 2; justify-self: end; }
  .qline { grid-template-columns: 1fr 1fr 1fr; }
  .qline .grow2 { grid-column: 1 / -1; }
  .profile-stats { grid-template-columns: repeat(2, 1fr); }
  .profile-stats > div:nth-child(2) { border-right: 0; }
  .profile-stats > div:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
  .filters .filter-more { display: none; flex-basis: 100%; flex-direction: column; }
  .filters .filter-more.open { display: flex; }
  .split, .calc-teaser { grid-template-columns: 1fr; gap: 28px; }
  .calc-teaser { gap: 0; }
  .calc-teaser img { min-height: 200px; max-height: 260px; }
  .steps-row { grid-template-columns: 1fr 1fr; }
  .audience { grid-template-columns: 1fr; }
  .feed { grid-template-columns: 1fr 1fr; }
  .hero-search { flex-wrap: wrap; }
  .hero-search .hs-field, .hero-search .hs-region { flex: 1 1 100%; padding: 10px 14px; }
  .hero-search .hs-field + .hs-field { border-left: 0; border-top: 1px solid var(--line); }
  .hero-search .btn { width: 100%; margin-top: 6px; }
}
@media (max-width: 720px) {
  .steps { display: none; }
  .step-mobile { display: block; background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 14px 16px; margin-bottom: 14px; font-size: 15px; }
  .wizard-nav { position: sticky; bottom: 0; z-index: 6; background: var(--surface); margin: 16px -16px 0; padding: 12px 16px calc(12px + env(safe-area-inset-bottom)); border-top: 1px solid var(--line); box-shadow: 0 -6px 20px rgba(18, 20, 23, .06); }
  .wizard-nav .btn { flex: 1; }
  .wizard-nav > span:empty { display: none; }
  .g2, .g3, .g4 { grid-template-columns: 1fr; }
  .total-box { grid-template-columns: 1fr 1fr; }
  .total-out { grid-column: 1 / -1; text-align: left; }
  .rtable thead { display: none; }
  .rtable, .rtable tbody, .rtable tr, .rtable td { display: block; width: 100%; }
  .rtable tr { padding: 14px 16px; border-bottom: 1px solid var(--line); }
  .rtable td { border: 0; padding: 4px 0; text-align: left; display: flex; justify-content: space-between; gap: 14px; }
  .rtable td[data-label]::before { content: attr(data-label); color: var(--muted); font-size: 13px; font-weight: 600; flex-shrink: 0; }
  .rtable td.num { white-space: normal; }
  .rtable td.actions-cell { justify-content: flex-start; flex-wrap: wrap; padding-top: 8px; }
  .rtable .sumrow { display: flex; justify-content: space-between; background: var(--surface-2); }
  .rtable .sumrow td { width: auto; background: none; }
  .cookie-bar { flex-direction: column; align-items: stretch; gap: 12px; bottom: calc(10px + env(safe-area-inset-bottom)); padding: 16px; max-height: 70vh; overflow-y: auto; }
  .cookie-text p { font-size: 13px; }
  .cookie-ic { display: none; }
  .cookie-actions { flex-wrap: wrap; }
  .cookie-actions .btn { flex: 1; }
  .level-pick, .extras { grid-template-columns: 1fr; }
  .services-strip { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .services-strip a { min-width: 0; overflow-wrap: anywhere; hyphens: auto; }
  .lightbox { padding: 56px 8px; }
  .lb-prev, .lb-next { top: auto; bottom: 16px; transform: none; }
}
@media (max-width: 600px) {
  :root { --header-h: 62px; --row-h: 62px; }
  body { font-size: 15.5px; }
  input, select, textarea { font-size: 16px; }
  .btn { white-space: normal; text-align: center; }
  .wrap { padding: 0 16px; }
  main.wrap { padding-top: 20px; }
  .desk-only { display: none !important; }
  .hide-sm { display: none; }
  /* Η εγγραφή υπάρχει στο πλαϊνό μενού. Η γλώσσα μένει στο header ως εικονίδιο. */
  .userbox > .btn-primary:not(.auth-btn) { display: none; }
  .userbox .lang .dd-btn > span { display: none; }
  .brand { font-size: 16px; gap: 8px; }
  .brand-mark { width: 32px; height: 32px; }
  .topbar-inner { gap: 6px; }
  .userbox { gap: 0; }
  .userbox .btn-sm { padding: 6px 12px; }
  .iconbtn { min-width: 40px; }
  .card { padding: 20px; }
  .home-hero { min-height: 0; }
  .home-hero .wrap { padding-top: 48px; padding-bottom: 40px; }
  .home-hero h1 { font-size: 34px; }
  .home-hero .lead { font-size: 16.5px; }
  .home-hero::after { background: linear-gradient(180deg, rgba(14, 15, 17, .55) 0%, rgba(14, 15, 17, .85) 100%); }
  .hero-proof { gap: 8px 18px; font-size: 14px; }
  .home-section { padding-top: 52px; }
  .home-section.sand { margin-top: 52px; padding-bottom: 52px; }
  .tiles { grid-template-columns: 1fr 1fr; gap: 10px; }
  .tile { border-radius: 14px; aspect-ratio: 1; }
  .tile-text { left: 12px; right: 12px; bottom: 12px; }
  .tile-text b { font-size: 15.5px; }
  .tile-text span { display: none; }
  .steps-row, .feed { grid-template-columns: 1fr; }
  .calc-teaser > div:first-child { padding: 28px 22px; }
  .teaser-form > * { flex-basis: 100% !important; }
  .section { margin-top: 44px; }
  .page-head { margin-bottom: 20px; padding-bottom: 18px; }
  .page-head p { font-size: 15.5px; }
  .page-head > .row, .page-head > .row .btn { width: 100%; }
  .tabs-pill { width: 100%; overflow-x: auto; flex-wrap: nowrap; }
  .tabs-pill button { white-space: nowrap; }
  .kpis, .kpis.five { grid-template-columns: 1fr 1fr; gap: 10px; }
  .kpi { padding: 16px; }
  .kpi b { font-size: 24px; }
  .role-picker { grid-template-columns: 1fr; }
  .auth-main { padding: 24px 18px; }
  .auth-layout { border-radius: 18px; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 26px; }
  .footer-bottom { padding: 20px 16px; }
  .kv { grid-template-columns: 1fr; gap: 2px; }
  .kv dd { margin-bottom: 10px; }
  .wiz-summary { display: none; }
  .wiz-body { padding: 20px; }
  .profile-banner { height: 140px; }
  .profile-top { padding: 18px; }
  .has-banner .profile-top > .avatar { margin-top: -34px; }
  .profile-top > .btn { width: 100%; }
  .avatar.xl { width: 76px; height: 76px; font-size: 26px; }
  .price-box { text-align: left; width: 100%; display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
  .price { font-size: 22px; }
  .quote-card .actions .btn { flex: 1; }
  .block-sm { width: 100%; }
  .track { padding: 12px; }
  .track-step span { display: none; }
  .track-step.cur span { display: inline; }
  .bubble { max-width: 88%; }
  .legal { padding: 24px 18px; }
  .modal { padding: 22px 18px; }
  .modal-actions { flex-direction: column-reverse; }
  .modal-actions .btn { width: 100%; }
  .toast { bottom: 12px; }
  .item-row, .qline { grid-template-columns: 1fr 1fr; }
  .qline .ql_sum_wrap { grid-column: 1; }
  .qline .ql_del { justify-self: end; }
  .filters { padding: 12px; }
  .callout .btn { width: 100%; }
  .hero-actions .btn { flex: 1; }
  .range-row { grid-template-columns: 1fr 110px; }
  .calc-form { padding: 20px; }
  .pe, .pe-add { width: calc(33.333% - 7px); }
  .gallery { grid-template-columns: repeat(2, 1fr); }
  .services-strip a { padding: 14px; font-size: 14.5px; }
}

/* Λογαριασμός: ξέχασα τον κωδικό, υπενθύμιση επιβεβαίωσης email */
.forgot-link { display: inline-block; margin-top: 8px; }
.linkbtn { background: none; border: 0; padding: 0; font: inherit; font-weight: 600; color: inherit; text-decoration: underline; cursor: pointer; margin-left: 4px; }
.linkbtn:disabled { opacity: .5; cursor: default; }
#pwForm { margin-top: 18px; }

/* ---------- Αγαπημένοι, αναζητήσεις, όριο προσφορών ---------- */
.fav-btn .ic { transition: color .15s, fill .15s; }
.fav-btn.on { border-color: #f2c4c0; background: var(--bad-soft); color: var(--bad); }
.fav-btn.on .ic { fill: currentColor; }
.fav-ic { color: var(--bad); margin-left: 6px; display: inline-flex; vertical-align: -2px; }
.fav-ic .ic { fill: currentColor; }
.searches-card { margin-bottom: 18px; }
.search-list { display: flex; flex-wrap: wrap; gap: 8px; margin: 10px 0 14px; }
.search-chip { display: inline-flex; align-items: center; gap: 8px; padding: 4px 4px 4px 12px; border: 1px solid var(--line-2); border-radius: 999px; background: var(--surface-2); font-size: 14px; }
.search-chip a { color: var(--ink); font-weight: 600; }
.search-chip .iconbtn { width: 30px; height: 30px; }
.search-form { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)) auto; gap: 10px; }
.quota .spread { margin-bottom: 8px; }
.quota-track { height: 8px; border-radius: 99px; background: var(--surface-2); overflow: hidden; }
.quota-track span { display: block; height: 100%; border-radius: 99px; background: var(--ok); }
.quota.full .quota-track span { background: var(--bad); }

/* ---------- Viber / WhatsApp, δεδομένα λογαριασμού ---------- */
.chat-box { margin-top: 20px; padding-top: 18px; border-top: 1px solid var(--line); }
.chat-box h4 { margin-bottom: 4px; }
.chat-row { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-top: 12px; }
.chat-name { display: inline-flex; align-items: center; gap: 10px; flex: 1 1 auto; min-width: 0; }
.chat-name > .ic { width: 34px; height: 34px; padding: 7px; border-radius: 10px; color: #fff; flex: none; }
.chat-name.viber > .ic { background: #7360f2; }
.chat-name.whatsapp > .ic { background: #1f9e55; }
.code { font-family: ui-monospace, Consolas, monospace; letter-spacing: .08em; font-size: 1.05em; }
.danger-zone { border-color: #f2d6d3; }
.del-confirm { display: block; margin-top: 14px; text-align: left; color: var(--ink); }
.del-confirm span { display: block; font-size: 14px; font-weight: 600; margin-bottom: 6px; }

/* ---------- Στατιστικά διαχείρισης ---------- */
.viz-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; margin: 18px 0; }
.viz-grid .card + .card { margin-top: 0; }
.viz { margin: 0; --series-1: #2a78d6; }
.viz figcaption { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; margin-bottom: 10px; flex-wrap: wrap; }
.viz svg { width: 100%; height: auto; display: block; overflow: visible; }
.viz .bar { fill: var(--series-1); }
.viz .hit { fill: transparent; }
.viz .col:hover .bar, .viz .col:focus .bar { fill: #1d5fa8; }
.viz .col:focus { outline: none; }
.viz .col:focus .hit { fill: rgba(42, 120, 214, .08); }
.viz .grid { stroke: var(--line); stroke-width: 1; }
.viz .base { stroke: var(--line-2); stroke-width: 1; }
.viz .tick { fill: var(--muted); font-size: 11px; }
.viz-table { margin-top: 8px; font-size: 13.5px; }
.viz-table summary { cursor: pointer; color: var(--muted); }
.viz-table table { margin-top: 8px; }
.viz-tip { position: fixed; z-index: 90; pointer-events: none; background: var(--night); color: #fff; font-size: 13px; padding: 6px 10px; border-radius: 8px; box-shadow: var(--shadow); white-space: nowrap; }
.hbars { display: grid; gap: 10px; }
.hbar { display: grid; grid-template-columns: minmax(90px, 38%) 1fr 32px; align-items: center; gap: 10px; font-size: 14px; }
.hbar-label { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--ink-2); }
.hbar-track { height: 12px; }
.hbar-fill { display: block; height: 100%; min-width: 3px; border-radius: 0 4px 4px 0; background: var(--series-1, #2a78d6); }
.hbar b { text-align: right; font-weight: 600; }
.svc-stat-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px 18px; margin-bottom: 12px; }
.svc-stat { display: grid; grid-template-columns: auto 1fr; column-gap: 10px; align-items: center; padding: 10px 0; border-bottom: 1px solid var(--line); }
.svc-stat > .ic { grid-row: span 2; color: var(--accent-2); }
.svc-stat.on > .ic { color: var(--ok); }
.svc-stat > span:first-of-type { font-weight: 600; }

@media (max-width: 960px) {
  .viz-grid { grid-template-columns: 1fr; }
  .search-form { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 600px) {
  .search-form, .svc-stat-list { grid-template-columns: 1fr; }
  .profile-top .row.nowrap { flex-wrap: wrap; width: 100%; }
  .profile-top .row.nowrap .btn { flex: 1 1 auto; }
}

/* ---------- Εγγραφή σε δύο βήματα ---------- */
.reg-wrap { max-width: 600px; margin: 8px auto 0; }
.reg-card { padding: 36px 40px; border-radius: 22px; box-shadow: var(--shadow-lg); }
.reg-card h1 { font-size: 30px; margin-bottom: 6px; }
.reg-card > .muted { margin-bottom: 22px; }
.reg-steps { display: flex; gap: 8px; list-style: none; padding: 0; margin: 0 0 26px; counter-reset: s; }
.reg-steps li { flex: 1; display: flex; align-items: center; gap: 8px; font-size: 13.5px; color: var(--muted); padding-bottom: 10px; border-bottom: 3px solid var(--line); }
.reg-steps li span { width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center; font-size: 12.5px; font-weight: 700; background: var(--surface-2); color: var(--muted); flex: none; }
.reg-steps li span .ic { width: 14px; height: 14px; }
.reg-steps li.on { color: var(--ink); font-weight: 600; border-color: var(--accent); }
.reg-steps li.on span { background: var(--accent); color: var(--accent-ink); }
.reg-steps li.done { color: var(--ink-2); border-color: var(--ok); }
.reg-steps li.done span { background: var(--ok); color: #fff; }
.aud-pick { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-bottom: 22px; }
.aud { position: relative; display: flex; flex-direction: column; gap: 14px; text-align: left; padding: 20px; border: 1.5px solid var(--line); border-radius: 16px; background: var(--surface); font: inherit; color: var(--ink); cursor: pointer; transition: border-color .15s, box-shadow .15s, background .15s; }
.aud:hover { border-color: var(--ink-2); }
.aud.selected { border-color: var(--ink); box-shadow: 0 0 0 1px var(--ink) inset; background: var(--accent-soft); }
.aud-ic { width: 46px; height: 46px; border-radius: 13px; display: grid; place-items: center; background: var(--surface-2); }
.aud.selected .aud-ic { background: var(--accent); color: var(--accent-ink); }
.aud-text b { display: block; font-size: 17px; margin-bottom: 4px; }
.aud-text span { display: block; font-size: 14px; color: var(--muted); line-height: 1.45; }
.aud .tick { position: absolute; top: 16px; right: 16px; opacity: 0; transition: opacity .15s; }
.aud.selected .tick { opacity: 1; }
.reg-label { font-weight: 600; margin: 0 0 10px; }
.role-list { display: grid; gap: 8px; margin-bottom: 22px; }
.role-row { display: flex; align-items: center; gap: 14px; text-align: left; padding: 12px 14px; border: 1.5px solid var(--line); border-radius: 14px; background: var(--surface); font: inherit; color: var(--ink); cursor: pointer; transition: border-color .15s, background .15s; }
.role-row:hover { border-color: var(--ink-2); }
.role-row b { display: block; font-size: 15px; }
.role-row .small { display: block; line-height: 1.4; }
.role-row .role-ic { flex: none; }
.role-row.selected { border-color: var(--ink); background: var(--surface-2); }
.radio-dot { width: 20px; height: 20px; border-radius: 50%; border: 2px solid var(--line-2); flex: none; transition: all .15s; }
.role-row.selected .radio-dot { border: 6px solid var(--ink); }
#regNext .ic { margin: 0 0 0 6px; }
.reg-card .back { margin-bottom: 14px; padding: 0; }
.reg-role { display: flex; align-items: center; gap: 14px; margin-bottom: 22px; }
.reg-role h1 { font-size: 26px; margin: 0; }
.reg-role p { margin: 2px 0 0; }
.reg-cats { border: 1px solid var(--line); border-radius: 14px; padding: 14px 16px; margin: 6px 0 12px; }
.reg-cats summary { cursor: pointer; list-style: none; display: flex; flex-direction: column; gap: 2px; margin-bottom: 4px; }
.reg-cats summary::-webkit-details-marker { display: none; }
.reg-cats[open] summary { margin-bottom: 12px; }
.reg-note { display: flex; gap: 8px; align-items: flex-start; }
.reg-note .ic { flex: none; margin-top: 3px; color: var(--blue); }
.reg-terms { margin: 18px 0; }
.pw-meter { height: 4px; border-radius: 4px; background: var(--line); margin-top: 8px; overflow: hidden; }
.pw-meter span { display: block; height: 100%; width: 0; border-radius: 4px; transition: width .2s, background .2s; }
.pw-meter.s1 span { width: 25%; background: var(--bad); }
.pw-meter.s2 span { width: 50%; background: var(--accent-2); }
.pw-meter.s3 span { width: 75%; background: #5fae6e; }
.pw-meter.s4 span { width: 100%; background: var(--ok); }
#pwHint { margin: 6px 0 4px; }
.pw-lvl.l1 { color: var(--bad); }
.pw-lvl.l2 { color: var(--ink-2); }
.pw-lvl.l3, .pw-lvl.l4 { color: var(--ok); }
.pw-rules { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 4px 12px; font-size: 13px; color: var(--muted); }
.pw-rules li { display: flex; align-items: center; gap: 6px; transition: color .15s; }
.pw-rules .ic { width: 15px; height: 15px; flex: none; padding: 2px; border-radius: 99px; background: var(--surface-2); color: transparent; box-shadow: inset 0 0 0 1px var(--line-2); transition: background .15s, color .15s; }
.pw-rules li.ok { color: var(--ink); }
.pw-rules li.ok .ic { background: var(--ok); color: #fff; box-shadow: none; }
.pw-match { display: flex; align-items: center; gap: 6px; margin: 6px 0 0; font-weight: 600; }
.pw-match.ok { color: var(--ok); }
.pw-match.bad { color: var(--bad); }
.pw-current { max-width: 420px; }
.pw-grid { align-items: start; }
.reg-trust { list-style: none; padding: 0; margin: 18px 0 0; display: flex; justify-content: center; flex-wrap: wrap; gap: 8px 22px; font-size: 13.5px; color: var(--muted); }
.reg-trust li { display: inline-flex; align-items: center; gap: 6px; }
.reg-trust .ic { width: 16px; height: 16px; color: var(--ok); }
@media (max-width: 600px) {
  .reg-card { padding: 24px 18px; border-radius: 18px; }
  .reg-card h1 { font-size: 25px; }
  .aud-pick { grid-template-columns: 1fr; }
  .aud { flex-direction: row; align-items: center; padding: 16px; }
  .aud-ic { flex: none; }
  .aud .tick { top: 50%; transform: translateY(-50%); }
  .aud-text { padding-right: 24px; }
}

/* ---------- Σελίδες κατηγοριών (banner, βήματα, κάρτες) ---------- */
.cat-hero { position: relative; border-radius: 24px; padding: 34px 40px 30px; color: #fff; background-size: cover; background-position: center; min-height: 300px; display: flex; flex-direction: column; justify-content: flex-end; overflow: hidden; }
.cat-hero .crumbs { position: absolute; top: 22px; left: 40px; display: flex; align-items: center; gap: 6px; font-size: 13.5px; color: rgba(255, 255, 255, .75); }
.cat-hero .crumbs a { color: rgba(255, 255, 255, .85); }
.cat-hero .crumbs a:hover { color: #fff; }
.cat-hero h1 { color: #fff; font-size: clamp(30px, 4.4vw, 46px); margin: 48px 0 10px; }
.cat-hero > p { max-width: 640px; font-size: 17.5px; line-height: 1.5; color: rgba(255, 255, 255, .86); margin: 0; }
.cat-hero-actions { margin-top: 22px; gap: 10px; }
.cat-facts { list-style: none; padding: 18px 0 0; margin: 24px 0 0; display: flex; flex-wrap: wrap; gap: 10px 34px; border-top: 1px solid rgba(255, 255, 255, .18); }
.cat-facts li { display: flex; align-items: center; gap: 10px; font-size: 14px; color: rgba(255, 255, 255, .8); }
.cat-facts li > .ic { color: var(--accent); width: 20px; height: 20px; }
.cat-facts b { display: block; color: #fff; font-size: 20px; line-height: 1.1; }
.section.first { margin-top: 40px; }

.how-steps { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.how-steps li { position: relative; background: var(--surface-2); border-radius: 18px; padding: 24px; }
.how-steps h3 { margin: 14px 0 6px; font-size: 18px; }
.how-steps p { margin: 0; }
.how-n { position: absolute; top: 20px; right: 22px; font-size: 13px; font-weight: 700; color: var(--muted); }
.how-ic { width: 46px; height: 46px; border-radius: 13px; background: var(--accent); display: grid; place-items: center; color: var(--accent-ink); }
.cta-band { margin-top: 56px; display: flex; align-items: center; gap: 24px; flex-wrap: wrap; background: var(--night); color: #fff; border-radius: 22px; padding: 30px 34px; }
.cta-band h2 { color: #fff; margin: 0 0 6px; }
.cta-band p { margin: 0; color: rgba(255, 255, 255, .75); max-width: 640px; }
.cta-band .btn .ic { margin: 0 0 0 6px; }

/* Κατασκευές */
.bld-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(270px, 1fr)); gap: 18px; }
.bld-card { background: var(--surface); border: 1px solid var(--line); border-radius: 18px; overflow: hidden; display: flex; flex-direction: column; transition: box-shadow .2s, transform .2s; }
.bld-card:hover { box-shadow: var(--shadow); transform: translateY(-2px); }
.bld-img { position: relative; aspect-ratio: 16 / 9; background-size: cover; background-position: center; background-color: var(--surface-2); }
.bld-ic { position: absolute; left: 14px; bottom: -20px; width: 44px; height: 44px; border-radius: 12px; background: var(--accent); display: grid; place-items: center; box-shadow: 0 0 0 4px var(--surface); color: var(--accent-ink); }
.bld-body { padding: 30px 18px 18px; display: flex; flex-direction: column; flex: 1; }
.bld-body h3 { margin: 0 0 4px; font-size: 19px; }
.bld-body p { margin: 0 0 16px; }
.bld-actions { margin-top: auto; display: flex; gap: 8px; align-items: center; }
.bld-actions .iconbtn { margin-left: auto; }

/* Υπηρεσίες */
.svc-toolbar { position: sticky; top: calc(var(--header-h) + 8px); z-index: 5; display: flex; flex-direction: column; gap: 12px; margin: 22px 0 6px; padding: 14px; background: color-mix(in srgb, var(--surface) 95%, transparent); backdrop-filter: blur(8px); border: 1px solid var(--line); border-radius: 18px; box-shadow: var(--shadow); }
.svc-groups { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; margin-top: 18px; align-items: start; }
.svc-groups .svc-group { margin: 0; background: var(--surface); border: 1px solid var(--line); border-radius: 18px; padding: 20px; scroll-margin-top: calc(var(--header-h) + 150px); }
.svc-head { display: flex; align-items: center; gap: 12px; margin-bottom: 12px; }
.svc-head h2 { font-size: 20px; margin: 0; }
.svc-head .small { display: block; line-height: 1.2; }
.svc-ic { width: 42px; height: 42px; border-radius: 12px; background: var(--accent-soft); color: #7a5600; display: grid; place-items: center; flex: none; }
.svc-items { list-style: none; padding: 0; margin: 0; }
.svc-items .svc { display: flex; align-items: center; gap: 10px; border: 0; border-top: 1px solid var(--line); border-radius: 0; padding: 10px 0; }
.svc-items .svc:first-child { border-top: 0; }
.svc-items .svc:hover { border-color: var(--line); }
.svc-name { flex: 1; min-width: 0; display: flex; flex-direction: column; color: var(--ink); }
.svc-name b { font-weight: 600; font-size: 15px; }
.svc-name:hover b { color: var(--blue); }
.svc-items .btn { flex: none; }

/* Μελέτες */
.study-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 12px; }
.study-card { display: flex; align-items: center; gap: 14px; padding: 16px 18px; border: 1px solid var(--line); border-radius: 16px; background: var(--surface); color: var(--ink); transition: border-color .15s, box-shadow .15s; }
.study-card:hover { border-color: var(--ink-2); box-shadow: var(--shadow); color: var(--ink); }
.study-card b { display: block; font-size: 15.5px; }
.study-card .small { display: block; }
.study-ic { width: 44px; height: 44px; border-radius: 12px; background: var(--blue-soft); color: var(--blue); display: grid; place-items: center; flex: none; }
.study-card .go { color: var(--muted); }
.info-split { display: grid; grid-template-columns: 1.2fr 1fr; gap: 28px; align-items: center; padding: 30px; background: var(--surface-2); border-color: var(--surface-2); }
.info-split h2 { margin-top: 0; }
.info-split p { margin: 0; }

/* Interior */
.space-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 12px; }
.space-card { display: flex; flex-direction: column; align-items: center; gap: 10px; text-align: center; padding: 22px 12px; border: 1px solid var(--line); border-radius: 16px; background: var(--surface); color: var(--ink); transition: border-color .15s, background .15s; }
.space-card .ic { width: 28px; height: 28px; color: #a0522d; }
.space-card:hover { border-color: var(--ink-2); background: var(--surface-2); color: var(--ink); }
.deliverables { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 10px; }
.deliverables li { position: relative; display: flex; align-items: center; gap: 12px; padding: 16px; border-radius: 14px; background: var(--surface-2); }
.deliverables .how-n { position: static; width: 28px; height: 28px; border-radius: 50%; background: var(--surface); display: grid; place-items: center; color: var(--ink); flex: none; }
.pro-filters { margin-top: 22px; }

@media (max-width: 960px) {
  .svc-groups { grid-template-columns: 1fr; }
  .how-steps { grid-template-columns: 1fr; }
  .space-grid { grid-template-columns: repeat(3, 1fr); }
  .info-split { grid-template-columns: 1fr; }
}
@media (max-width: 600px) {
  .cat-hero { padding: 64px 20px 22px; min-height: 0; border-radius: 18px; }
  .cat-hero .crumbs { left: 20px; top: 18px; }
  .cat-hero h1 { margin-top: 0; }
  .cat-hero > p { font-size: 15.5px; }
  .cat-hero-actions .btn { flex: 1 1 100%; }
  .cat-facts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin-top: 20px; }
  .cat-facts li { flex-direction: column; align-items: flex-start; gap: 4px; font-size: 12.5px; }
  .cat-facts b { font-size: 18px; }
  .svc-toolbar { top: calc(var(--header-h) + 4px); padding: 10px; border-radius: 14px; }
  .svc-groups .svc-group { padding: 16px; }
  .space-grid { grid-template-columns: repeat(2, 1fr); }
  .cta-band { padding: 24px 20px; }
  .cta-band .btn { width: 100%; }
  .bld-actions .btn { flex: 1 1 0; min-width: 0; white-space: normal; line-height: 1.2; text-align: center; padding-left: 8px; padding-right: 8px; font-size: 13.5px; }
  .svc-head { flex-wrap: wrap; }
  .svc-head .grow { min-width: 0; }
  .svc-head h2 { overflow-wrap: anywhere; }
}

/* ---------- Υλικά: λίστα υλικών με ποσότητες ---------- */
.seg.light { max-width: 100%; overflow-x: auto; scrollbar-width: none; }
.seg.light a { white-space: nowrap; }
.mat-toolbar { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; margin-bottom: 18px; }
.mat-toolbar .input-ic { flex: 1 1 260px; }
.mat-chips { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; max-width: 100%; }
.mat-chip { white-space: nowrap; border: 1px solid var(--line-2); background: var(--surface); color: var(--ink-2); border-radius: 99px; padding: 8px 14px; font: inherit; font-size: 14px; font-weight: 600; cursor: pointer; transition: all .15s; }
.mat-chip:hover { border-color: var(--ink-2); }
.mat-chip.on { background: var(--night); border-color: var(--night); color: #fff; }

/* Χρώμα ανά ομάδα υλικών */
.g-structure { --g: #b45309; --g-soft: #fef3e2; }
.g-finish { --g: #0f766e; --g-soft: #e3f4f1; }
.g-mep { --g: #1d5fa8; --g-soft: #e8f0fa; }
.g-equip { --g: #6d28d9; --g-soft: #f1ebfd; }

.mat-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 16px; align-items: stretch; }
.mat-card { position: relative; display: grid; grid-template-rows: auto auto minmax(42px, auto) 1fr auto; gap: 0; padding: 18px; border: 1.5px solid var(--line); border-radius: 18px; background: var(--surface); color: var(--ink); transition: border-color .15s, box-shadow .2s, transform .2s; }
.mat-card:hover { border-color: var(--line-2); box-shadow: var(--shadow); transform: translateY(-2px); }
.mat-card.in-list { border-color: var(--g); box-shadow: 0 0 0 1px var(--g) inset; }
.mat-top { display: flex; justify-content: space-between; align-items: center; }
.mat-ic { width: 46px; height: 46px; border-radius: 14px; background: var(--g-soft); color: var(--g); display: grid; place-items: center; transition: background .2s, color .2s; }
.mat-ic .ic { width: 23px; height: 23px; }
.mat-card:hover .mat-ic, .mat-card.in-list .mat-ic { background: var(--g); color: #fff; }
.mat-unit { font-size: 12.5px; font-weight: 600; color: var(--muted); background: var(--surface-2); border-radius: 99px; padding: 4px 10px; }
.mat-card h3 { margin: 14px 0 4px; font-size: 18px; }
.mat-spec { margin: 0 0 14px; font-size: 14px; color: var(--muted); line-height: 1.45; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.mat-price { align-self: end; background: var(--surface-2); border-radius: 12px; padding: 12px 14px; margin-bottom: 14px; min-height: 112px; display: flex; flex-direction: column; justify-content: center; gap: 2px; }
.mat-price > b { font-size: 21px; letter-spacing: -.01em; }
.mat-price > b small { font-size: 13px; font-weight: 500; color: var(--muted); }
.mat-price p { margin: 4px 0 0; line-height: 1.4; }
.trend { display: inline-flex; align-items: center; gap: 2px; font-size: 12.5px; font-weight: 600; }
.trend.up { color: var(--bad); }
.trend.down { color: var(--ok); }
.range { position: relative; height: 4px; border-radius: 4px; background: linear-gradient(90deg, var(--ok), var(--accent-2), var(--bad)); opacity: .55; margin: 8px 0 4px; }
.range-dot { position: absolute; top: 50%; width: 12px; height: 12px; margin-left: -6px; border-radius: 50%; background: var(--night); border: 2px solid #fff; transform: translateY(-50%); box-shadow: 0 0 0 1px var(--ink); }
.mat-actions .btn { width: 100%; }
.mat-add .ic { transition: transform .2s; }
.mat-add:hover { background: var(--g); border-color: var(--g); color: #fff; }
.mat-add:hover .ic { transform: rotate(90deg); }
.stepper { display: flex; align-items: center; gap: 6px; border: 1.5px solid var(--g); border-radius: 12px; padding: 3px; background: var(--g-soft); }
.stepper .iconbtn { width: 36px; height: 36px; background: var(--surface); border-radius: 9px; flex: none; }
.stepper label { flex: 1; display: flex; align-items: baseline; justify-content: center; gap: 4px; min-width: 0; }
.stepper input { width: 64px; min-height: 0; border: 0; background: transparent; text-align: right; font-weight: 700; font-size: 16px; padding: 4px 0; -moz-appearance: textfield; }
.stepper input::-webkit-inner-spin-button { -webkit-appearance: none; }
.stepper label span { font-size: 13px; color: var(--ink-2); }

/* Μπάρα λίστας στο κάτω μέρος */
.mat-bar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 30; padding: 0 16px calc(14px + env(safe-area-inset-bottom)); pointer-events: none; animation: barIn .25s ease-out; }
.mat-bar-in { pointer-events: auto; max-width: 820px; margin: 0 auto; display: flex; align-items: center; gap: 14px; background: var(--night); color: #fff; border-radius: 18px; padding: 12px 12px 12px 16px; box-shadow: var(--shadow-lg); }
.mat-bar-in .grow { min-width: 0; display: flex; flex-direction: column; }
.mat-bar-in .small { color: rgba(255, 255, 255, .7); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mat-bar-ic { position: relative; width: 42px; height: 42px; border-radius: 12px; background: rgba(255, 255, 255, .12); display: grid; place-items: center; flex: none; }
.mat-bar-ic b { position: absolute; top: -6px; right: -6px; min-width: 20px; height: 20px; border-radius: 10px; background: var(--accent); color: var(--accent-ink); font-size: 12px; display: grid; place-items: center; padding: 0 5px; }
.mat-bar .iconbtn { color: #fff; background: transparent; border-color: rgba(255, 255, 255, .25); flex: none; }
.mat-bar .btn-primary { flex: none; }
.mat-bar .btn-primary .ic { margin: 0 0 0 6px; }
body.has-mat-bar { padding-bottom: 96px; }
@keyframes barIn { from { transform: translateY(100%); opacity: 0; } to { transform: none; opacity: 1; } }
@media (max-width: 600px) {
  .mat-grid { grid-template-columns: 1fr; }
  .mat-toolbar .input-ic { flex-basis: 100%; }
  .mat-bar { padding: 0 10px calc(10px + env(safe-area-inset-bottom)); }
  .mat-bar-in { gap: 10px; padding: 10px; }
  .mat-bar-in .grow .small { display: none; }
  .mat-bar .btn-primary { padding-left: 14px; padding-right: 14px; }
}

@media (max-width: 400px) { .brand { font-size: 16px; gap: 8px; } .brand-mark { width: 32px; height: 32px; } }

/* Από 601px και πάνω, λογαριασμός, σύνδεση και «Ζήτησε προσφορές» φαίνονται στο header: το πλαϊνό μενού δεν τα επαναλαμβάνει */
@media (min-width: 601px) { .drawer-extra { display: none !important; } }

/* ---------- Μετάφραση ---------- */
.tr-btn { display: inline-flex; align-items: center; gap: 6px; border: 1px solid var(--line-2); background: var(--surface); color: var(--ink-2); border-radius: 99px; padding: 4px 11px; font: inherit; font-size: 13px; font-weight: 600; cursor: pointer; transition: all .15s; }
.tr-btn:hover { border-color: var(--blue); color: var(--blue); }
.tr-btn[data-on] { background: var(--blue-soft); border-color: var(--blue-soft); color: var(--blue); }
.tr-btn.busy { opacity: .6; pointer-events: none; }
.req-title + .tr-btn { margin: -4px 0 12px; }
.quote-card details .tr-btn { margin: 8px 0 4px; }
.conv-head .tr-btn { flex: none; }

/* ---------- Αυτοψία ---------- */
.visit { border: 1px solid var(--line); border-radius: 12px; padding: 12px; margin-top: 10px; }
.visit.confirmed { border-color: #bfe3cf; background: var(--ok-soft); }
.visit-when { display: flex; align-items: center; gap: 6px; font-weight: 600; margin: 8px 0; }
.visit-note { margin: 8px 0 6px; color: var(--ink-2); }
.slot-list { display: grid; gap: 6px; margin: 6px 0 8px; }
.slot { display: flex; align-items: center; gap: 8px; text-align: left; border: 1.5px solid var(--line-2); background: var(--surface); border-radius: 10px; padding: 9px 12px; font: inherit; font-size: 14px; font-weight: 600; color: var(--ink); cursor: pointer; transition: all .15s; }
.slot:hover { border-color: var(--ok); background: var(--ok-soft); }
.slot-plain { list-style: none; padding: 0; margin: 6px 0 10px; display: grid; gap: 4px; font-size: 14px; }
.slot-plain li { display: flex; align-items: center; gap: 6px; }
.visit-form { display: grid; gap: 8px; margin-top: 8px; }
.visit-form input { min-height: 42px; }

/* ---------- Συμπλήρωση με AI ---------- */
.ai-box { border: 1.5px dashed #c9b8f5; background: linear-gradient(135deg, #f6f2ff, #fff); border-radius: 16px; padding: 18px; margin-bottom: 26px; transition: opacity .2s; }
.ai-box.busy { opacity: .7; }
.ai-head { display: flex; gap: 12px; align-items: flex-start; margin-bottom: 10px; }
.ai-head p { margin: 2px 0 0; }
.ai-ic { width: 40px; height: 40px; border-radius: 12px; background: #6d28d9; color: #fff; display: grid; place-items: center; flex: none; }
.ai-actions { margin-top: 10px; gap: 10px; }
.ai-actions .btn-dark { margin-left: auto; }

/* ---------- Αναλυτικές αξιολογήσεις ---------- */
.crit-input { display: grid; gap: 6px; }
.crit-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; font-size: 14px; }
.crit-row .star-input button { width: 30px; height: 30px; }
.crit-summary { display: grid; gap: 8px; margin: 6px 0 16px; padding: 14px; background: var(--surface-2); border-radius: 12px; }
.crit-bar { display: grid; grid-template-columns: minmax(120px, 40%) 1fr 30px; align-items: center; gap: 10px; font-size: 14px; }
.crit-track { height: 8px; border-radius: 99px; background: var(--line); overflow: hidden; }
.crit-track span { display: block; height: 100%; border-radius: 99px; background: var(--accent-2); }
.crit-bar b { text-align: right; }
.crit-chips { display: flex; flex-wrap: wrap; gap: 4px 12px; font-size: 12.5px; color: var(--muted); margin: 4px 0; }
.crit-chips b { color: var(--ink); }
.verified-review { font-size: 12px; }

/* ---------- Συμφωνητικό ---------- */
.contract h2 { font-size: 19px; margin: 28px 0 10px; }
.parties { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin: 20px 0; }
.party { display: flex; flex-direction: column; gap: 3px; border: 1px solid var(--line); border-radius: 14px; padding: 16px; }
.party b { font-size: 17px; }
.party .accept { margin-top: 8px; display: inline-flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 600; color: #8a6300; }
.party .accept.ok { color: var(--ok); }
.clauses { padding-left: 20px; display: grid; gap: 8px; line-height: 1.55; }
.sumrow.total td { font-weight: 700; font-size: 16px; }
.accept-box { margin-top: 24px; border-color: var(--accent); background: var(--accent-soft); }
.contract-card { border-color: var(--accent); }
@media (max-width: 600px) { .parties { grid-template-columns: 1fr; } .ai-actions .btn-dark { margin-left: 0; width: 100%; } }
@media print { .contract .party { break-inside: avoid; } .tr-btn { display: none !important; } }

/* ---------- Επεξεργασία αιτήματος, έλεγχος περιεχομένου ---------- */
.req-title ~ .updated { margin: -4px 0 12px; display: flex; align-items: center; gap: 6px; }
.seg-opt { position: relative; }
.seg-opt input { position: absolute; opacity: 0; pointer-events: none; }
.seg-opt span { display: block; padding: 7px 14px; border-radius: 9px; font-weight: 600; font-size: 14px; color: var(--muted); cursor: pointer; }
.seg-opt input:checked + span { background: var(--surface); color: var(--ink); box-shadow: var(--shadow-sm); }
.seg-opt input:focus-visible + span { outline: 2px solid var(--blue); }
.edit-item { display: grid; grid-template-columns: minmax(0, 1.3fr) 150px minmax(0, 1.4fr) auto; gap: 8px; align-items: center; padding: 8px 0; border-top: 1px solid var(--line); }
.edit-item:first-child { border-top: 0; }
.input-unit { display: flex; align-items: center; gap: 6px; }
.input-unit input { min-width: 0; }
.input-unit span { font-size: 13px; color: var(--muted); white-space: nowrap; }
#editForm .save-bar { display: flex; gap: 10px; justify-content: flex-end; }
.admin-actions { border-color: #f2d6d3; }
.review-mod.is-hidden { opacity: .65; border-style: dashed; }
.review-mod .btn { margin-top: 10px; }
@media (max-width: 600px) {
  .edit-item { grid-template-columns: 1fr auto; }
  .edit-item select { grid-column: 1 / -1; }
  .edit-item .input-unit { grid-column: 1; }
  .edit-item input[data-it$="spec"] { grid-column: 1 / -1; }
  .edit-item .iconbtn { grid-column: 2; grid-row: 2; }
}

/* ---------- Πρόοδος προφίλ ---------- */
.progress-card { margin-bottom: 18px; border-color: var(--accent); }
.progress-head { display: flex; align-items: center; gap: 16px; }
.progress-head h3 { margin: 0 0 2px; }
.progress-head p { margin: 0; }
.ring { --p: 0; width: 62px; height: 62px; border-radius: 50%; flex: none; display: grid; place-items: center; background: conic-gradient(var(--ok) calc(var(--p) * 1%), var(--line) 0); position: relative; }
.ring::before { content: ''; position: absolute; inset: 6px; border-radius: 50%; background: var(--surface); }
.ring b { position: relative; font-size: 15px; }
.todo { list-style: none; padding: 0; margin: 14px 0 0; display: grid; gap: 4px; }
.todo a { display: flex; align-items: center; gap: 10px; padding: 9px 10px; border-radius: 10px; color: var(--ink); font-size: 14.5px; }
.todo a:hover { background: var(--surface-2); color: var(--ink); }
.todo a > .ic:first-child { color: var(--accent-2); }
.todo a span { flex: 1; }
.todo a > .ic:last-child { color: var(--muted); }
.todo li.small { padding: 4px 10px; }
.card.flash { animation: flash 1.6s ease-out; }
@keyframes flash { 0%, 40% { box-shadow: 0 0 0 3px var(--accent); } 100% { box-shadow: var(--shadow); } }

/* ---------- Πρότυπα προσφοράς ---------- */
.tpl-bar { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; padding: 10px 12px; margin: 4px 0 16px; background: var(--surface-2); border-radius: 12px; }
.tpl-bar select { width: auto; flex: 1 1 200px; min-width: 0; min-height: 38px; }
.tpl-bar .small.muted { flex: 1 1 220px; }
.tpl-bar #tplSave { margin-left: auto; }
@media (max-width: 600px) { .tpl-bar #tplSave { margin-left: 0; width: 100%; } }

/* Γραμμές προσφοράς: προσαρμόζονται στο πλάτος της στήλης τους, όχι της οθόνης */
.qlines { container-type: inline-size; }
@container (max-width: 680px) { .qline { grid-template-columns: 1fr 1fr 1fr; } .qline .grow2 { grid-column: 1 / -1; } }
@container (max-width: 420px) { .qline { grid-template-columns: 1fr 1fr; } .qline .ql_sum_wrap { grid-column: 1; } .qline .ql_del { justify-self: end; } }

/* ---------- Φόρμα προσφοράς (νέα έκδοση) ---------- */
.qf-head h2 { margin-bottom: 4px; }
.qf-head p { margin: 0 0 14px; }
.qf-step { display: flex; align-items: center; gap: 10px; font-size: 17px; margin: 26px 0 12px; padding-top: 18px; border-top: 1px solid var(--line); }
.qf-step:first-of-type { border-top: 0; padding-top: 0; margin-top: 8px; }
.qf-step > span:first-child { width: 26px; height: 26px; border-radius: 50%; background: var(--night); color: #fff; display: grid; place-items: center; font-size: 13px; flex: none; }
.qf .qline { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px 12px; align-items: end; padding: 14px; margin-bottom: 10px; border: 1.5px solid var(--line); border-radius: 14px; background: var(--surface); transition: border-color .15s; }
.qf .qline:focus-within { border-color: var(--ink-2); }
.qf .qline.need { border-color: var(--bad); background: var(--bad-soft); }
.qf .qline .field { margin: 0; }
.qf .qline label { font-size: 12.5px; color: var(--muted); font-weight: 600; }
.qf .qline .ql-desc { grid-column: 1 / -1; }
.qf .qline .ql-desc input { font-weight: 600; }
.money-in { position: relative; }
.money-in span { position: absolute; left: 12px; top: 50%; transform: translateY(-50%); color: var(--muted); font-weight: 600; pointer-events: none; }
.money-in input { padding-left: 28px; }
.ql-foot { grid-column: 1 / -1; display: flex; align-items: center; gap: 8px; padding-top: 8px; border-top: 1px dashed var(--line); }
.ql-foot .ql_sum { margin-right: auto; font-size: 16px; }
.ql-foot .iconbtn { width: 36px; height: 36px; }
.qf-summary { margin: 16px 0 4px; padding: 14px 16px; background: var(--surface-2); border-radius: 14px; display: grid; gap: 8px; }
.qf-sum-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; font-size: 15px; }
.qf-sum-row label { font-size: 15px; font-weight: 500; color: var(--ink); margin: 0; }
.qf-sum-row input { width: 130px; min-height: 40px; text-align: right; }
.qf-vat { display: flex; align-items: center; gap: 10px; }
.qf-vat select { width: 92px; min-height: 40px; }
.qf-sum-row.total { padding-top: 10px; border-top: 1px solid var(--line-2); font-weight: 700; }
.qf-sum-row.total .price { font-size: 24px; }
.qf-chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.qf-chip { display: inline-flex; align-items: center; gap: 4px; border: 1px dashed var(--line-2); background: var(--surface); border-radius: 99px; padding: 5px 11px; font: inherit; font-size: 13px; color: var(--ink-2); cursor: pointer; transition: all .15s; }
.qf-chip:hover { border-style: solid; border-color: var(--ink-2); color: var(--ink); }
.qf-more { margin: 6px 0 4px; border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; }
.qf-more summary { cursor: pointer; font-weight: 600; display: flex; align-items: center; gap: 8px; }
.qf-more[open] summary { margin-bottom: 12px; }
.qf-submit { position: sticky; bottom: 0; z-index: 4; margin: 22px -24px -24px; padding: 14px 24px calc(14px + env(safe-area-inset-bottom)); background: color-mix(in srgb, var(--surface) 96%, transparent); backdrop-filter: blur(6px); border-top: 1px solid var(--line); border-radius: 0 0 var(--radius) var(--radius); display: flex; align-items: center; justify-content: space-between; gap: 14px; flex-wrap: wrap; }
.qf-submit .price { display: block; font-size: 22px; }
/* Πρότυπα */
.qf .tpl-bar { display: block; padding: 14px; background: var(--accent-soft); border-radius: 14px; margin: 0 0 6px; }
.tpl-title { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-bottom: 10px; }
.tpl-title .small { flex-basis: 100%; }
.tpl-list { display: flex; flex-wrap: wrap; gap: 8px; }
.tpl-chip { display: inline-flex; align-items: stretch; border: 1.5px solid #e8d49a; background: var(--surface); border-radius: 12px; overflow: hidden; transition: border-color .15s, box-shadow .15s; }
.tpl-chip:hover { border-color: var(--ink); box-shadow: var(--shadow-sm); }
.tpl-chip button { border: 0; background: none; font: inherit; cursor: pointer; color: var(--ink); }
.tpl-chip [data-tpl] { display: inline-flex; align-items: center; gap: 6px; padding: 9px 10px 9px 12px; font-weight: 600; font-size: 14px; }
.tpl-chip [data-tpl] small { font-weight: 500; color: var(--muted); }
.tpl-x { padding: 0 10px; color: var(--muted); border-left: 1px solid var(--line) !important; }
.tpl-x:hover { color: var(--bad); background: var(--bad-soft); }
.tpl-save { display: inline-flex; align-items: center; gap: 6px; border: 1.5px dashed var(--ink-2); background: transparent; border-radius: 12px; padding: 9px 12px; font: inherit; font-size: 14px; font-weight: 600; color: var(--ink); cursor: pointer; }
.tpl-save:hover { background: var(--surface); border-style: solid; }
@container (min-width: 640px) {
  .qf .qline { grid-template-columns: minmax(0, 2.4fr) minmax(0, .8fr) minmax(0, .9fr) minmax(0, 1.1fr); }
  .qf .qline .ql-desc { grid-column: auto; }
}
@media (max-width: 600px) {
  .qf .qline { grid-template-columns: 1fr 1fr; padding: 12px; }
  .qf .qline .field:nth-of-type(4) { grid-column: 1 / -1; }
  .qf-sum-row input { width: 110px; }
  .qf-submit { margin: 18px -20px -20px; padding: 12px 20px calc(12px + env(safe-area-inset-bottom)); }
  .qf-submit .btn { width: 100%; }
}
.tpl-bar .tpl-title .small.muted { flex: 1 1 100%; }
.tpl-bar .tpl-list #tplSave { margin-left: 0; width: auto; }
.footer .brand-mark { background: rgba(255, 255, 255, .08); }

/* ---------- Λίστες επιλογής (αντί για τη λίστα του συστήματος) ---------- */
select[aria-expanded="true"] { border-color: var(--ink); box-shadow: 0 0 0 4px rgba(255, 194, 26, .3); }
.nsel { position: fixed; inset: 0; z-index: 95; pointer-events: none; }
.nsel-panel { position: fixed; pointer-events: auto; background: var(--surface); color: var(--ink); border: 1px solid var(--line); border-radius: 14px; box-shadow: var(--shadow-lg); padding: 6px; display: flex; flex-direction: column; max-height: min(340px, 60vh); opacity: 0; transform: translateY(-4px) scale(.98); transform-origin: top; transition: opacity .14s, transform .14s var(--ease); }
.nsel.show .nsel-panel { opacity: 1; transform: none; }
.nsel-list { overflow-y: auto; overscroll-behavior: contain; padding: 2px; }
.nsel-opt { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 9px; cursor: pointer; font-size: 15px; line-height: 1.3; }
.nsel-opt span { flex: 1; min-width: 0; }
.nsel-opt.active { background: var(--surface-2); }
.nsel-opt.sel { font-weight: 700; }
.nsel-opt.sel .ic { color: var(--ok); flex: none; }
.nsel-opt.dis { opacity: .45; cursor: default; }
.nsel-search { display: flex; align-items: center; gap: 8px; margin: 2px 2px 6px; padding: 0 10px; border: 1px solid var(--line-2); border-radius: 10px; background: var(--surface-2); color: var(--muted); }
.nsel-search input { border: 0; background: transparent; min-height: 40px; padding: 0; box-shadow: none !important; font-size: 15px; color: var(--ink); }
.nsel-none { margin: 10px 12px; }
/* Κινητό: πάνελ από κάτω */
.nsel.sheet { pointer-events: auto; }
.nsel-backdrop { position: absolute; inset: 0; background: rgba(18, 20, 23, .45); opacity: 0; transition: opacity .16s; }
.nsel.sheet.show .nsel-backdrop { opacity: 1; }
.nsel.sheet .nsel-panel { left: 0; right: 0; bottom: 0; top: auto; border-radius: 20px 20px 0 0; max-height: 72vh; padding: 6px 10px calc(10px + env(safe-area-inset-bottom)); transform: translateY(100%); transition: transform .22s var(--ease); opacity: 1; border-bottom: 0; }
.nsel.sheet.show .nsel-panel { transform: none; }
.nsel-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 8px 6px 10px; border-bottom: 1px solid var(--line); margin-bottom: 6px; }
.nsel-head b { font-size: 17px; }
.nsel.sheet .nsel-opt { min-height: 50px; font-size: 16px; padding: 12px 14px; }
.nsel.sheet .nsel-opt + .nsel-opt { border-top: 1px solid var(--line); border-radius: 0; }
.nsel.sheet .nsel-opt.sel { background: var(--accent-soft); border-radius: 10px; }
.nsel.sheet .nsel-opt.sel + .nsel-opt { border-top-color: transparent; }
.nsel-opt[hidden] { display: none; }
/* Ένα κουμπί σύνδεσης/εγγραφής και εναλλαγή στις σελίδες */
.auth-btn .ic { width: 17px; height: 17px; }
.auth-switch { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; padding: 4px; margin-bottom: 22px; background: var(--surface-2); border: 1px solid var(--line); border-radius: 12px; }
.auth-switch a { text-align: center; padding: 10px 8px; border-radius: 9px; font-weight: 700; font-size: 14.5px; color: var(--muted); }
.auth-switch a:hover { color: var(--ink); }
.auth-switch a.on { background: var(--surface); color: var(--ink); box-shadow: var(--shadow-sm); }
@media (max-width: 380px) { .auth-btn span { display: none; } .auth-btn { padding-left: 10px; padding-right: 10px; } }
.drawer-extra:empty { display: none !important; }

/* ===================== Σκούρο θέμα =====================
   Ενεργοποιείται με data-theme="dark" στο <html> (το theme.js το ορίζει από την επιλογή του χρήστη
   ή από τη ρύθμιση της συσκευής). Ίδιο κίτρινο, σκούρες επιφάνειες, ελεγμένη αντίθεση κειμένου. */
:root[data-theme="dark"] {
  color-scheme: dark;
  --bg: #0f1113;
  --surface: #171a1d;
  --surface-2: #1f2327;
  --sand: #22262a;
  --ink: #eceef0;
  --ink-2: #c4c9cf;
  --muted: #9ba1a8;
  --line: #2a2f35;
  --line-2: #3a4047;
  --night: #262b31;
  --navy: #0b0d0f;
  --accent-soft: #2f2710;
  --accent-ink: #121417;
  --blue: #7cb1ff;
  --blue-soft: #15233a;
  --ok: #57c98f;
  --ok-soft: #10271c;
  --bad: #ff8478;
  --bad-soft: #351714;
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, .4);
  --shadow: 0 1px 2px rgba(0, 0, 0, .35), 0 8px 24px rgba(0, 0, 0, .35);
  --shadow-lg: 0 20px 50px rgba(0, 0, 0, .55);
}
[data-theme="dark"] body { background: var(--bg); }
[data-theme="dark"] .footer { background: #0b0d0f; }
[data-theme="dark"] .footer .brand-mark { background: #1c2024; }
[data-theme="dark"] .brand-mark { background: #0b0d0f; box-shadow: inset 0 0 0 1px #2a2f35; }
[data-theme="dark"] .btn-dark:hover { background: #333941; }
[data-theme="dark"] input:hover, [data-theme="dark"] select:hover, [data-theme="dark"] textarea:hover { border-color: #4b525a; }
[data-theme="dark"] select { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5 6 6.5 11 1.5' stroke='%23c4c9cf' stroke-width='1.8' fill='none' stroke-linecap='round'/%3E%3C/svg%3E"); }
[data-theme="dark"] ::placeholder { color: #7d848c; }
/* Ειδοποιήσεις, ετικέτες, αβατάρ: ανοιχτό κείμενο σε σκούρο απαλό φόντο */
[data-theme="dark"] .notice { color: #a9c9f5; }
[data-theme="dark"] .notice-warn { color: #f3d27a; }
[data-theme="dark"] .notice-ok { color: #8fdcb3; }
[data-theme="dark"] .tag-accent { border-color: #4a3c12; color: #f3d27a; }
[data-theme="dark"] .tag-ok { border-color: #1e4a33; }
[data-theme="dark"] .tag-bad { border-color: #5a2520; }
[data-theme="dark"] .tag-blue { border-color: #24406a; }
[data-theme="dark"] .av-owner { background: #172a42; color: #9cc3f2; }
[data-theme="dark"] .av-contractor, [data-theme="dark"] .kind-project { background: #33290c; color: #f3d27a; }
[data-theme="dark"] .av-subcontractor { background: #12301f; color: #8fdcb3; }
[data-theme="dark"] .av-supplier, [data-theme="dark"] .kind-materials { background: #2a1f40; color: #c9b2f3; }
[data-theme="dark"] .av-engineer { background: #0f2f33; color: #8ed6de; }
[data-theme="dark"] .av-designer, [data-theme="dark"] .kind-interior { background: #3a1626; color: #f2a6c2; }
[data-theme="dark"] .av-admin { background: #23282e; color: #c4c9cf; }
[data-theme="dark"] .svc-ic { color: #f3d27a; }
[data-theme="dark"] .stars .ic:not(.fill), [data-theme="dark"] .star-input button { color: #454b52; }
[data-theme="dark"] .empty-ic { color: #555c63; }
[data-theme="dark"] .fav-btn.on { border-color: #5a2520; }
[data-theme="dark"] .danger-zone, [data-theme="dark"] .admin-actions { border-color: #4a2420; }
[data-theme="dark"] .visit.confirmed { border-color: #1e4a33; }
[data-theme="dark"] .tpl-chip { border-color: #4a3c12; }
[data-theme="dark"] .party .accept { color: #f3d27a; }
[data-theme="dark"] .space-card .ic { color: #e8a37c; }
[data-theme="dark"] .ai-box { background: linear-gradient(135deg, #221a35, var(--surface)); border-color: #4b3d73; }
[data-theme="dark"] .g-structure { --g: #f0a54a; --g-soft: #33240f; }
[data-theme="dark"] .g-finish { --g: #4fd1bd; --g-soft: #0e2b28; }
[data-theme="dark"] .g-mep { --g: #7cb1ff; --g-soft: #15233a; }
[data-theme="dark"] .g-equip { --g: #b79cff; --g-soft: #241a3d; }
[data-theme="dark"] .mat-card:hover .mat-ic, [data-theme="dark"] .mat-card.in-list .mat-ic { color: #121417; }
[data-theme="dark"] .nsel-backdrop { background: rgba(0, 0, 0, .6); }
[data-theme="dark"] .badge-dot { background: #cf3238; border-color: var(--surface); }
[data-theme="dark"] .viz { --series-1: #3987e5; }
/* Χάρτης: σκούρα πλακίδια */
[data-theme="dark"] .leaflet-tile-pane { filter: invert(1) hue-rotate(180deg) brightness(.92) contrast(.9); }
[data-theme="dark"] .leaflet-container { background: #1b1f23; }
/* Φωτογραφίες και εικόνες λίγο πιο ήπιες στο σκούρο */
[data-theme="dark"] img:not(.no-dim) { filter: brightness(.94); }

/* Κουμπί θέματος στο header */
.theme-btn .ic { width: 19px; height: 19px; }
@keyframes pop { from { opacity: 0; transform: scale(.94); } to { opacity: 1; transform: none; } }
