/* Εργαλειοθήκη Διαχρονικής — design system.
   Phone-first, outdoor-readable, for people of every age: large text, large targets, words + icons, never colour alone.
   Every colour is a token: the dark theme and the high contrast for the sun change only the tokens. */

:root {
  --fs: 15px;
  --bg: #f3f1ec;
  --surface: #ffffff;
  --surface-2: #f8f7f3;
  --surface-3: #eeebe4;
  --ink: #15181b;
  --ink-2: #383e45;
  --ink-3: #59606a;
  --line: #e1ddd4;
  --line-2: #c3bcae;
  --brand: #ffc21a;
  --brand-2: #ffd75e;
  --brand-soft: #fff3cc;
  --brand-edge: #d39b00;
  --brand-ink: #15181b;
  --ok: #157a3a;
  --ok-soft: #e3f4e8;
  --ok-line: #9fd3ae;
  --ok-ink: #0b4f24;
  --warn: #8f5b00;
  --warn-soft: #fff1c9;
  --warn-line: #d99a00;
  --warn-ink: #4f3300;
  --bad: #b8231a;
  --bad-soft: #fde7e5;
  --bad-line: #e5a49e;
  --bad-ink: #741410;
  --ai: #2b40d4;
  --ai-soft: #eaedff;
  --ai-line: #b8c1ff;
  --ai-ink: #18237f;
  --inverse: #15181b;
  --on-inverse: #ffffff;
  --overlay: rgba(12, 14, 17, .5);
  --topbar-bg: rgba(243, 241, 236, .9);
  --bar-bg: rgba(255, 255, 255, .97);
  --mic-bg: #15181b;
  --mic-ink: #ffc21a;
  --mic-label: #ffffff;
  --shadow-sm: 0 1px 2px rgba(20, 23, 26, .06);
  --shadow: 0 1px 2px rgba(20, 23, 26, .05), 0 6px 20px rgba(20, 23, 26, .07);
  --shadow-lg: 0 20px 60px rgba(20, 23, 26, .22);
  --radius: 18px;
  --radius-sm: 13px;
  --gap: 14px;
  --bar-h: 5.1rem;
  --top-h: 4rem;
  --press: 0 2px 0 var(--brand-edge);
  --press-soft: 0 2px 0 rgba(20, 23, 26, .3);
  --picked-line: #15181b;
  --ring: 0 0 0 3px var(--bg), 0 0 0 6px var(--ai);
  --font: system-ui, -apple-system, "Segoe UI", Roboto, "Noto Sans", "Helvetica Neue", Arial, sans-serif;
  color-scheme: light;
}
:root[data-text="small"] { --fs: 14px; }
:root[data-text="large"] { --fs: 17px; }
:root[data-text="xlarge"] { --fs: 19px; }
/* Dark: chosen in Ρυθμίσεις → Εμφάνιση, or «Αυτόματα» with the phone or computer set to dark. */
:root[data-theme="dark"] {
  --bg: #0f1114; --surface: #181b1f; --surface-2: #1e2226; --surface-3: #272c32;
  --ink: #eef0f2; --ink-2: #c6ccd3; --ink-3: #9aa3ad; --line: #2c3137; --line-2: #444b54;
  --brand: #ffc21a; --brand-2: #ffd14d; --brand-soft: #3a3012; --brand-edge: #a87b00; --brand-ink: #15181b;
  --ok: #23a45b; --ok-soft: #11281b; --ok-line: #2d6a45; --ok-ink: #8fe0b0;
  --warn: #e3a62f; --warn-soft: #2e230c; --warn-line: #8f6a17; --warn-ink: #f4d083;
  --bad: #e5544c; --bad-soft: #351412; --bad-line: #8a2c27; --bad-ink: #ffaea7;
  --ai: #7d8bff; --ai-soft: #1c2142; --ai-line: #3c468a; --ai-ink: #c3caff;
  --inverse: #eef0f2; --on-inverse: #15181b; --overlay: rgba(0, 0, 0, .62);
  --topbar-bg: rgba(15, 17, 20, .88); --bar-bg: rgba(24, 27, 31, .97);
  --mic-bg: #eef0f2; --mic-ink: #15181b; --mic-label: #15181b;
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, .5); --shadow: 0 1px 2px rgba(0, 0, 0, .45), 0 8px 24px rgba(0, 0, 0, .35); --shadow-lg: 0 24px 64px rgba(0, 0, 0, .65);
  --press-soft: 0 2px 0 rgba(0, 0, 0, .6);
  --picked-line: #ffc21a;
  color-scheme: dark;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0f1114; --surface: #181b1f; --surface-2: #1e2226; --surface-3: #272c32;
    --ink: #eef0f2; --ink-2: #c6ccd3; --ink-3: #9aa3ad; --line: #2c3137; --line-2: #444b54;
    --brand: #ffc21a; --brand-2: #ffd14d; --brand-soft: #3a3012; --brand-edge: #a87b00; --brand-ink: #15181b;
    --ok: #23a45b; --ok-soft: #11281b; --ok-line: #2d6a45; --ok-ink: #8fe0b0;
    --warn: #e3a62f; --warn-soft: #2e230c; --warn-line: #8f6a17; --warn-ink: #f4d083;
    --bad: #e5544c; --bad-soft: #351412; --bad-line: #8a2c27; --bad-ink: #ffaea7;
    --ai: #7d8bff; --ai-soft: #1c2142; --ai-line: #3c468a; --ai-ink: #c3caff;
    --inverse: #eef0f2; --on-inverse: #15181b; --overlay: rgba(0, 0, 0, .62);
    --topbar-bg: rgba(15, 17, 20, .88); --bar-bg: rgba(24, 27, 31, .97);
    --mic-bg: #eef0f2; --mic-ink: #15181b; --mic-label: #15181b;
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, .5); --shadow: 0 1px 2px rgba(0, 0, 0, .45), 0 8px 24px rgba(0, 0, 0, .35); --shadow-lg: 0 24px 64px rgba(0, 0, 0, .65);
    --press-soft: 0 2px 0 rgba(0, 0, 0, .6);
    --picked-line: #ffc21a;
  --picked-line: #ffc21a;
    color-scheme: dark;
  }
}
/* High contrast (for the sun): black on white, or white on black in the dark theme. */
:root[data-contrast="high"] {
  --bg: #ffffff; --surface-2: #ffffff; --surface-3: #f1f1f1;
  --ink: #000000; --ink-2: #000000; --ink-3: #1a1a1a;
  --line: #000000; --line-2: #000000; --ok-line: #000000; --ai-line: #000000; --bad-line: #000000;
  --ok: #005c1f; --warn: #6b4300; --bad: #8f0f08; --ai: #0019b8;
}
:root[data-theme="dark"][data-contrast="high"] {
  --bg: #000000; --surface: #000000; --surface-2: #0b0b0b; --surface-3: #1a1a1a;
  --ink: #ffffff; --ink-2: #ffffff; --ink-3: #e8e8e8; --line: #ffffff; --line-2: #ffffff; --ok-line: #ffffff; --ai-line: #ffffff; --bad-line: #ffffff;
  --ok: #3ddc84; --warn: #ffcc4d; --bad: #ff6b61; --ai: #a9b3ff;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"])[data-contrast="high"] {
    --bg: #000000; --surface: #000000; --surface-2: #0b0b0b; --surface-3: #1a1a1a;
    --ink: #ffffff; --ink-2: #ffffff; --ink-3: #e8e8e8; --line: #ffffff; --line-2: #ffffff; --ok-line: #ffffff; --ai-line: #ffffff; --bad-line: #ffffff;
    --ok: #3ddc84; --warn: #ffcc4d; --bad: #ff6b61; --ai: #a9b3ff;
  }
}
/* Documents for the customer or the supplier stay paper, in any theme. */
.paper, .doc-paper {
  --bg: #ffffff; --surface: #ffffff; --surface-2: #f8f7f3; --surface-3: #eeebe4;
  --ink: #15181b; --ink-2: #383e45; --ink-3: #59606a; --line: #d3cec2; --line-2: #a9a397;
  --ok: #157a3a; --ok-soft: #e3f4e8; --ok-ink: #0b4f24; --warn-soft: #fff1c9; --warn-ink: #4f3300; --bad: #b8231a; --bad-ink: #741410;
  --ai: #2b40d4; --ai-ink: #18237f; --inverse: #15181b; --on-inverse: #ffffff;
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { font-size: var(--fs); -webkit-text-size-adjust: 100%; text-size-adjust: 100%; background: var(--bg); overflow-x: hidden; }
body {
  margin: 0; min-height: 100vh; min-height: 100dvh; background: var(--bg); color: var(--ink);
  font-family: var(--font); font-size: 1rem; line-height: 1.42; -webkit-font-smoothing: antialiased;
  overflow-wrap: break-word; hyphens: manual; -webkit-tap-highlight-color: transparent;
}
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; touch-action: manipulation; }
button:disabled, .is-disabled { cursor: not-allowed; }
img, svg { display: block; max-width: 100%; }
.ic { width: 1.5rem; height: 1.5rem; flex: none; }
h1, h2, h3, p { margin: 0; }
h1 { font-size: 1.55rem; line-height: 1.15; letter-spacing: -.02em; font-weight: 700; }
h2 { font-size: 1.3rem; line-height: 1.2; letter-spacing: -.01em; font-weight: 700; }
h3 { font-size: 1.08rem; line-height: 1.25; font-weight: 700; }
p + p { margin-top: .6em; }
a { color: var(--ai-ink); text-underline-offset: 3px; }
:focus { outline: none; }
:focus-visible { outline: none; box-shadow: var(--ring) !important; border-radius: 12px; }
.sr-only { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.num { font-variant-numeric: tabular-nums; font-feature-settings: "tnum"; }
.muted { color: var(--ink-3); }
.small { font-size: .9rem; }
.stack > * + * { margin-top: var(--gap); }
.stack-lg > * + * { margin-top: 1.4rem; }
.row { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.row.nowrap { flex-wrap: nowrap; }
.spacer { flex: 1; }
.hidden { display: none !important; }

/* ── App frame ───────────────────────────────────────────── */
#app { min-height: 100vh; }
.topbar {
  position: sticky; top: 0; z-index: 20; display: flex; align-items: center; gap: 8px;
  min-height: var(--top-h); padding: max(8px, env(safe-area-inset-top)) max(10px, env(safe-area-inset-right)) 8px max(10px, env(safe-area-inset-left));
  background: color-mix(in srgb, var(--bg) 94%, transparent); color: var(--ink); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  border-bottom: 2px solid var(--line);
}
.topbar .brand { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 1.15rem; letter-spacing: -.02em; padding: 0 6px; min-height: 3.2rem; }
.brand-mark { width: 2.2rem; height: 2.2rem; border-radius: 11px; background: var(--brand); color: var(--ink); border: 2px solid var(--ink); display: grid; place-items: center; box-shadow: 0 2px 0 var(--ink); }
.brand-mark svg { width: 1.5rem; height: 1.5rem; }
.topbar .brand { gap: 8px; padding: 0; flex: 1; min-width: 0; }
.topbar .brand-mark { width: 42px; height: 42px; padding: 2px; background: var(--bg); border: 0; box-shadow: none; border-radius: 9px; flex: none; }
.brand-logo { display: block; width: 100%; height: 100%; object-fit: contain; }
.brand-name { font-size: clamp(14px, 1rem, 19px); font-weight: 700; line-height: 1.2; min-width: 0; }
@media (max-width: 360px) {
  .topbar:has(.brand) .status-pill .label-long, .topbar:has(.brand) .status-pill .label-short { display: none; }
  .topbar:has(.brand) .status-pill { padding: 0 8px; }
}
.back {
  display: inline-flex; align-items: center; gap: 6px; min-height: 3.2rem; padding: 0 14px 0 8px; border-radius: 14px;
  border: 2px solid transparent; background: transparent; font-weight: 700; font-size: 1rem; min-width: 0; flex: 0 1 auto; text-align: left;
}
.back:hover { background: var(--surface-3); }
.back svg { width: 1.6rem; height: 1.6rem; flex: none; }
.back span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.top-actions { margin-left: auto; display: flex; align-items: center; gap: 6px; flex: none; }
.status-pill {
  display: inline-flex; align-items: center; gap: 7px; min-height: 3.2rem; padding: 0 14px; border-radius: 999px;
  border: 2px solid var(--line); background: var(--surface); color: var(--ink); font-weight: 600; font-size: .9rem; white-space: nowrap;
}
.status-pill svg { width: 1.25rem; height: 1.25rem; flex: none; }
.status-pill.ok { border-color: #9fd3ae; background: var(--ok-soft); color: var(--ok-ink); }
.status-pill.warn { border-color: var(--warn-line); background: var(--warn-soft); color: var(--warn-ink); }
.status-pill.bad { border-color: var(--bad); background: var(--bad-soft); color: var(--bad-ink); }
.status-pill.busy { border-color: var(--brand); background: var(--brand-soft); }
.status-pill .label-short { display: none; }
@media (max-width: 560px) { .status-pill .label-long { display: none; } .status-pill .label-short { display: inline; } .status-pill { padding: 0 12px; } }

.page { max-width: 46rem; margin: 0 auto; padding: 18px max(16px, env(safe-area-inset-right)) calc(var(--bar-h) + 40px + env(safe-area-inset-bottom)) max(16px, env(safe-area-inset-left)); }
.page.wide { max-width: 72rem; }
.page-head { margin: 4px 0 18px; }
.page-head .kicker { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 6px; color: var(--ink-3); font-weight: 600; }
.page-head p { color: var(--ink-2); margin-top: 6px; }
.section { margin-top: 28px; }
.section-title { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-bottom: 12px; }
.section-title h2 { font-size: 1.2rem; }

/* ── Bottom action bar ───────────────────────────────────── */
.bottombar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 30; background: var(--surface); border-top: 2px solid var(--ink);
  padding: 8px max(10px, env(safe-area-inset-right)) calc(8px + env(safe-area-inset-bottom)) max(10px, env(safe-area-inset-left));
  box-shadow: 0 -8px 24px rgba(20, 23, 26, .08);
}
.bottombar-inner { max-width: 46rem; margin: 0 auto; display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); align-items: end; gap: 10px; }
.bb-btn {
  min-height: 4.1rem; border-radius: 16px; border: 2px solid var(--ink); background: var(--surface); font-weight: 700; font-size: .95rem;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; padding: 6px 8px; line-height: 1.1; text-align: center;
}
.bb-btn svg { width: 1.6rem; height: 1.6rem; }
.bb-btn.primary { background: var(--brand); color: var(--brand-ink); box-shadow: var(--press); }
.bb-btn.primary:active { transform: translateY(3px); box-shadow: 0 1px 0 var(--ink); }
.bb-btn.ghost { border-color: var(--line-2); }
.bb-btn:disabled, .bb-btn.primary:disabled { opacity: 1; background: var(--surface-2); color: var(--ink-2); border-color: var(--line-2); box-shadow: none; cursor: default; }
.bb-slot { min-width: 0; display: grid; }
.bb-mic {
  width: 5rem; min-height: 4.6rem; border-radius: 22px; border: 3px solid var(--ink); background: var(--ink); color: var(--brand);
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 1px; font-weight: 700; font-size: .85rem; line-height: 1.05;
  box-shadow: 0 4px 0 #000; transform: translateY(-6px);
}
.bb-mic span { color: #fff; }
.bb-mic svg { width: 2rem; height: 2rem; }
.bb-mic:active { transform: translateY(-3px); box-shadow: 0 1px 0 #000; }
.bb-mic.listening { background: var(--bad); border-color: var(--bad-ink); color: #fff; animation: pulse 1.4s ease-in-out infinite; }

/* ── Buttons ─────────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 3.2rem; padding: 10px 20px;
  border-radius: 15px; border: 2px solid var(--ink); background: var(--surface); color: var(--ink); font-weight: 700; font-size: 1rem;
  text-decoration: none; text-align: center; line-height: 1.2; user-select: none;
}
.btn svg { width: 1.4rem; height: 1.4rem; flex: none; }
.btn:active:not(:disabled) { transform: translateY(2px); }
.btn:disabled { opacity: .45; }
.btn.primary { background: var(--brand); color: var(--brand-ink); box-shadow: var(--press); }
.btn.primary:active:not(:disabled) { box-shadow: 0 2px 0 var(--ink); }
.btn.dark { background: var(--ink); color: #fff; }
.btn.ok { background: var(--ok); border-color: var(--ok-ink); color: #fff; box-shadow: 0 4px 0 var(--ok-ink); }
.btn.ok:active:not(:disabled) { box-shadow: 0 2px 0 var(--ok-ink); }
.btn.danger { border-color: var(--bad); color: var(--bad-ink); background: var(--surface); }
.btn.danger.solid { background: var(--bad); color: #fff; }
.btn.ai { border-color: var(--ai); color: var(--ai-ink); background: var(--ai-soft); }
.btn.soft { border-color: var(--line-2); background: var(--surface); }
.btn.ghost { border-color: transparent; background: transparent; text-decoration: underline; text-underline-offset: 4px; }
.btn.lg { min-height: 3.8rem; font-size: 1.1rem; padding: 12px 24px; border-radius: 17px; }
.btn.xl { min-height: 4.4rem; font-size: 1.2rem; padding: 14px 26px; border-radius: 18px; }
.btn.block { display: flex; width: 100%; }
.btn.left { justify-content: flex-start; text-align: left; }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }
.btn-row > .btn { flex: 1 1 12rem; }
.btn-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 9.5rem), 1fr)); gap: 12px; }
.btn-grid .btn { flex-direction: column; min-height: 5rem; gap: 6px; padding: 12px; }
.btn-grid .btn svg { width: 1.8rem; height: 1.8rem; }
.link-btn { border: 0; background: none; padding: 10px 6px; min-height: 3.2rem; font-weight: 700; color: var(--ai-ink); text-decoration: underline; text-underline-offset: 4px; display: inline-flex; align-items: center; gap: 6px; }
.icon-btn { width: 3.2rem; height: 3.2rem; border-radius: 14px; border: 2px solid var(--line-2); background: var(--surface); display: inline-grid; place-items: center; flex: none; }
.icon-btn svg { width: 1.5rem; height: 1.5rem; }

/* ── Cards ───────────────────────────────────────────────── */
.card { background: var(--surface); border: 2px solid var(--line); border-radius: 20px; padding: 18px; }
.card.flat { border-color: transparent; }
.card.brand { background: var(--brand); color: var(--ink); border-color: var(--ink); box-shadow: 0 5px 0 var(--ink); }
.card.dashed { border-style: dashed; border-color: var(--line-2); background: transparent; }
.card-title { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; }
.card-title svg { width: 1.5rem; height: 1.5rem; }
.card + .card { margin-top: 12px; }
.tap-card { width: 100%; text-align: left; cursor: pointer; display: block; }
.tap-card:active { transform: translateY(2px); }

.continue-card { display: grid; gap: 14px; }
.home-current { display: grid; gap: 10px; }
.home-current .who { font-size: min(1.2rem, 19px); }
.current-project-head { justify-content: space-between; gap: 12px; flex-wrap: nowrap; }
.current-project-head h1 { flex: 1; min-width: 0; overflow-wrap: anywhere; }
.current-project-link { border: 0; background: transparent; padding: 0; color: inherit; }
.project-with-delete { display: flex; align-items: center; gap: 8px; }
.project-with-delete + .project-with-delete { margin-top: 12px; }
.project-with-delete > .project-card, .project-with-delete > .card { flex: 1; min-width: 0; }
.home-current .project-menu { background: rgba(255,255,255,.6); border-color: transparent; }
.continue-card .who { font-size: 1.35rem; font-weight: 800; letter-spacing: -.01em; }
.continue-card .where { font-weight: 600; }
.continue-card .what { background: rgba(255,255,255,.6); border-radius: 12px; padding: 10px 12px; font-weight: 600; }

.project-card { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 12px; align-items: center; padding: 16px 16px 16px 18px; border-radius: 20px; border: 2px solid var(--line); background: var(--surface); width: 100%; text-align: left; }
.project-card + .project-card { margin-top: 12px; }
.project-card .name { font-size: 1.15rem; font-weight: 700; }
.project-card .meta { color: var(--ink-3); margin-top: 2px; }
.project-card .chev { width: 2rem; height: 2rem; color: var(--ink-3); }
.project-card:active { transform: translateY(2px); }

.progress { height: 14px; border-radius: 999px; background: var(--surface-3); border: 2px solid var(--line); overflow: hidden; margin-top: 10px; }
.progress > span { display: block; height: 100%; background: var(--ok); border-radius: 999px; min-width: 0; }
.progress-label { font-weight: 700; margin-top: 8px; }

/* Openings */
.opening-card { display: block; width: 100%; padding: 12px 14px 14px; border-radius: 20px; border: 2px solid var(--line); background: var(--surface); text-align: left; }
.opening-wrap + .opening-wrap { margin-top: 12px; }
.opening-wrap { position: relative; }
.opening-wrap .more { position: absolute; right: 10px; top: 10px; }
.opening-card .oc-head { display: flex; align-items: center; gap: 10px; min-height: 3.2rem; padding-right: 3.6rem; }
.opening-card .code { display: inline-flex; align-items: center; justify-content: center; min-width: 2.9rem; height: 2rem; padding: 0 8px; border-radius: 8px; background: var(--ink); color: #fff; font-weight: 800; font-size: 1rem; flex: none; }
.opening-card .title { font-weight: 700; font-size: 1.1rem; line-height: 1.2; }
.opening-card .title .pos { font-weight: 600; color: var(--ink-2); }
.opening-card .oc-body { display: grid; grid-template-columns: 4.8rem minmax(0, 1fr); gap: 14px; align-items: center; margin-top: 6px; }
.opening-card .thumb { background: var(--surface-2); border-radius: 14px; aspect-ratio: 1; display: grid; place-items: center; overflow: hidden; border: 1px solid var(--line); }
.opening-card .thumb svg { width: 100%; height: 100%; }
.opening-card .oc-info { display: grid; gap: 2px; min-width: 0; }
.opening-card .dims { font-size: 1.45rem; font-weight: 800; letter-spacing: -.01em; }
.opening-card .type { color: var(--ink-3); font-size: .9rem; }
.opening-card .chips { margin-top: 6px; }
.opening-card:active { transform: translateY(2px); }

/* ── Chips / badges ──────────────────────────────────────── */
.chip { display: inline-flex; align-items: center; gap: 6px; min-height: 2rem; padding: 3px 12px; border-radius: 999px; font-weight: 700; font-size: .9rem; border: 2px solid var(--line); background: var(--surface-2); color: var(--ink-2); white-space: normal; text-align: left; line-height: 1.25; max-width: 100%; }
.chip svg { width: 1.1rem; height: 1.1rem; flex: none; }
.chip.ok { border-color: #9fd3ae; background: var(--ok-soft); color: var(--ok-ink); }
.chip.warn { border-color: var(--warn-line); background: var(--warn-soft); color: var(--warn-ink); }
.chip.bad { border-color: var(--bad); background: var(--bad-soft); color: var(--bad-ink); }
.chip.ai { border-color: #aab5ff; background: var(--ai-soft); color: var(--ai-ink); }
.chip.dark { border-color: var(--ink); background: var(--ink); color: #fff; }
.chip.neutral { border-color: var(--line); }
.chips { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 8px; }

/* ── Notices (they stay until understood) ────────────────── */
.notice { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 12px; align-items: start; padding: 14px 16px; border-radius: 16px; border: 2px solid var(--line); background: var(--surface); }
.notice > svg { width: 1.6rem; height: 1.6rem; margin-top: 1px; }
.notice + .notice { margin-top: 10px; }
.notice strong { display: block; }
.notice .actions { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: 10px; margin-top: 2px; }
.notice .actions .btn { flex: 1 1 10rem; }
.notice.info { border-color: #b8c1ff; background: var(--ai-soft); color: var(--ai-ink); }
.notice.ok { border-color: #9fd3ae; background: var(--ok-soft); color: var(--ok-ink); }
.notice.warn { border-color: var(--warn-line); background: var(--warn-soft); color: var(--warn-ink); }
.notice.bad { border-color: var(--bad); background: var(--bad-soft); color: var(--bad-ink); }
.notice.ai { border-color: var(--ai); background: var(--ai-soft); color: var(--ai-ink); }
.notice ul { margin: 6px 0 0; padding-left: 1.2em; }
/* «Η AI ελέγχει τα μέτρα…»: the only thing on the screen that is still working */
.notice.working > svg { animation: pulse 1.2s ease-in-out infinite; }
@media (prefers-reduced-motion: reduce) { .notice.working > svg { animation: none; } }
.ai-line { margin-top: 14px; }

/* ── Form fields ─────────────────────────────────────────── */
.field { display: grid; gap: 8px; }
.field + .field { margin-top: 16px; }
.field > label, .q { font-weight: 700; font-size: 1.05rem; }
.q { display: block; margin: 22px 0 10px; }
.q:first-child { margin-top: 0; }
.q .opt { font-weight: 600; color: var(--ink-3); }
.hint { color: var(--ink-3); font-size: .9rem; }
.input, .field input, .field select, .field textarea {
  width: 100%; min-height: 3.3rem; padding: 12px 16px; border-radius: 14px; border: 2px solid var(--line-2); background: var(--surface);
  font-size: 1.1rem; color: var(--ink);
}
.field textarea { min-height: 7rem; resize: vertical; line-height: 1.4; }
.field input::placeholder, .field textarea::placeholder { color: #7a8088; }
.field input:focus, .field textarea:focus, .field select:focus { border-color: var(--ink); box-shadow: 0 0 0 4px var(--brand-2); }
.field.error input { border-color: var(--bad); }
.input-row { display: flex; gap: 10px; align-items: stretch; }
.input-row > input { flex: 1; min-width: 0; }

/* Choice tiles */
.tiles { display: grid; gap: 10px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.tiles.three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.tiles.four { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.tiles.one { grid-template-columns: minmax(0, 1fr); }
@media (min-width: 640px) { .tiles.auto { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 340px) { .tiles, .tiles.three { grid-template-columns: minmax(0, 1fr); } .tiles.four { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.tile {
  position: relative; min-height: 3.4rem; padding: 10px 12px; border-radius: 15px; border: 2px solid var(--line-2); background: var(--surface);
  font-weight: 700; font-size: 1rem; line-height: 1.2; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; text-align: center;
}
.tile .sub { font-weight: 600; font-size: .9rem; color: var(--ink-3); }
.tile .pic { width: 100%; max-width: 5.5rem; height: 4.2rem; color: var(--ink); }
.tile .pic svg { width: 100%; height: 100%; }
.tile .swatch { width: 2rem; height: 2rem; border-radius: 50%; border: 2px solid var(--ink); flex: none; }
.tile.row-tile { flex-direction: row; justify-content: flex-start; text-align: left; gap: 12px; padding-left: 14px; }
.tile[aria-pressed="true"] { border-color: var(--ink); border-width: 3px; background: var(--brand-soft); padding: 9px 11px; }
.tile[aria-pressed="true"]::after {
  content: ""; position: absolute; top: -9px; right: -9px; width: 1.6rem; height: 1.6rem; border-radius: 50%; background: var(--ink) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23ffc21a' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E") center / 70% no-repeat; border: 2px solid var(--surface);
}
.tile:active { transform: translateY(2px); }
.tile.tall { min-height: 7.2rem; }
.tile.compact { min-height: 3.2rem; font-size: .95rem; }

/* Dimension value buttons */
.dims-grid { display: grid; gap: 12px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (max-width: 380px) { .dims-grid { grid-template-columns: minmax(0, 1fr); } }
.value-btn {
  display: grid; gap: 2px; width: 100%; text-align: left; padding: 12px 14px 14px; border-radius: 16px; border: 2px solid var(--ink); background: var(--surface);
  box-shadow: var(--press-soft); position: relative; min-height: 6rem;
}
.value-btn .vlabel { font-weight: 700; font-size: .95rem; color: var(--ink-2); padding-right: 1.8rem; }
.value-btn .vvalue { font-size: 2.1rem; font-weight: 800; letter-spacing: -.02em; line-height: 1.1; }
.value-btn .vvalue small { font-size: 1rem; font-weight: 700; margin-left: 4px; color: var(--ink-2); letter-spacing: 0; }
.value-btn .vedit { position: absolute; top: 12px; right: 12px; width: 1.4rem; height: 1.4rem; color: var(--ink-3); }
.value-btn.empty { border-style: dashed; border-color: var(--line-2); box-shadow: none; background: var(--surface-2); }
.value-btn.empty .vvalue { color: var(--ink-3); font-size: 1.15rem; font-weight: 700; padding: 10px 0 6px; }
.value-btn.error { border-color: var(--bad); background: var(--bad-soft); }
.value-btn.focus { border-color: var(--ai); box-shadow: 0 0 0 4px var(--brand); }
.value-btn .vsrc { font-size: .85rem; font-weight: 600; color: var(--ai-ink); }
.value-btn:active { transform: translateY(2px); box-shadow: none; }
.value-btn.small-v .vvalue { font-size: 1.5rem; }
.value-btn.small-v { min-height: 4.8rem; }

/* Toggle row */
.toggle-row { display: flex; align-items: center; gap: 14px; width: 100%; min-height: 3.6rem; padding: 10px 14px; border-radius: 15px; border: 2px solid var(--line-2); background: var(--surface); text-align: left; font-weight: 700; }
.toggle-row .box { width: 2rem; height: 2rem; border-radius: 8px; border: 3px solid var(--ink); flex: none; display: grid; place-items: center; background: var(--surface); }
.toggle-row .box svg { width: 1.3rem; height: 1.3rem; opacity: 0; }
.toggle-row[aria-checked="true"] { border-color: var(--ink); background: var(--brand-soft); }
.toggle-row[aria-checked="true"] .box { background: var(--ink); color: var(--brand); }
.toggle-row[aria-checked="true"] .box svg { opacity: 1; }

/* Segmented */
.segmented { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; gap: 6px; padding: 5px; border-radius: 16px; background: var(--surface-3); border: 2px solid var(--line); }
.segmented button { min-height: 3.2rem; border-radius: 11px; border: 2px solid transparent; background: transparent; font-weight: 700; }
.segmented button[aria-pressed="true"] { background: var(--surface); border-color: var(--ink); box-shadow: 0 2px 0 var(--ink); }

/* ── Opening editor ──────────────────────────────────────── */
.editor-layout { display: grid; gap: 18px; grid-template-columns: minmax(0, 1fr); }
.editor-layout > * { min-width: 0; }
.editor-layout.editor-simple { grid-template-columns: minmax(0, 1fr); max-width: 46rem; margin: 0 auto; }
@media (min-width: 1000px) {
  .editor-layout { grid-template-columns: minmax(0, 1fr) 22rem; align-items: start; }
  .editor-side { position: sticky; top: calc(var(--top-h) + 16px); }
  .editor-side-inline { display: none; }
}
@media (max-width: 999px) { .editor-side { display: none; } }
.stepper { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 6px; margin: 12px 0 6px; }
.step-btn {
  position: relative; min-height: 3.4rem; border-radius: 13px; border: 2px solid var(--line-2); background: var(--surface); font-weight: 800; font-size: 1.05rem;
  display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 4px 2px; gap: 0; line-height: 1.05;
}
.step-btn .sname { font-size: .9rem; font-weight: 700; color: var(--ink-3); max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
@media (max-width: 899px) { .step-btn .sname { display: none; } }
.step-btn[aria-current="step"] { background: var(--ink); color: #fff; border-color: var(--ink); }
.step-btn[aria-current="step"] .sname { color: #fff; }
.step-btn .mark { position: absolute; top: -7px; right: -5px; width: 1.25rem; height: 1.25rem; border-radius: 50%; display: grid; place-items: center; border: 2px solid var(--surface); }
.step-btn .mark svg { width: .8rem; height: .8rem; }
.step-btn .mark.done { background: var(--ok); color: #fff; }
.step-btn .mark.error { background: var(--bad); color: #fff; }
.step-btn .mark.warning { background: var(--warn-line); color: var(--ink); }
.step-title { display: flex; align-items: baseline; gap: 10px; margin: 16px 0 4px; }
.step-title .count { color: var(--ink-3); font-weight: 700; }
.opening-head { display: grid; gap: 6px; }
.opening-head .code-big { display: inline-flex; align-items: center; justify-content: center; min-width: 3.4rem; height: 2.3rem; padding: 0 10px; border-radius: 10px; background: var(--ink); color: #fff; font-weight: 800; font-size: 1.15rem; }

.sketch-card { background: var(--surface); border: 2px solid var(--line); border-radius: 20px; padding: 12px; }
.sketch-card svg.sketch { width: 100%; height: auto; max-height: 22rem; }
.sketch-caption { text-align: center; font-weight: 600; color: var(--ink-2); font-size: .9rem; margin-top: 6px; }
.sketch-card.mini svg.sketch { max-height: 13rem; }
/* Measuring screen: the drawing is square, so tap areas in % line up with the sizes drawn on it. */
.sketch-tap { position: relative; width: min(100%, 22rem); aspect-ratio: 1 / 1; margin: 0 auto; }
.sketch-tap svg.sketch { position: absolute; inset: 0; width: 100%; height: 100%; max-height: none; }
.dim-hit { position: absolute; padding: 0; border: 0; border-radius: 14px; background: transparent; cursor: pointer; -webkit-tap-highlight-color: transparent; }
.dim-hit:active { background: rgba(255, 194, 26, .28); }
.dim-hit:focus-visible { outline: 3px solid var(--ai); outline-offset: 2px; }
.dim-hit.body { border-radius: 4px; }
.dims-grid.dims-two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.dim-cell { display: grid; gap: 4px; }
.dim-remove { justify-self: start; font-size: .9rem; color: var(--ink-3); display: inline-flex; gap: 4px; align-items: center; }
.op-job { font-weight: 600; color: var(--ink-3); }
.sketch.job-icon { max-height: 9rem; }
.said-line { margin-top: 8px; font-weight: 600; color: var(--ai-ink); }

.summary-table { width: 100%; border-collapse: collapse; }
.summary-table th, .summary-table td { text-align: left; padding: 10px 6px; border-bottom: 1px solid var(--line); vertical-align: top; }
.summary-table th { width: 40%; color: var(--ink-3); font-weight: 600; }
.summary-table td { font-weight: 700; }
.summary-table tr.unknown td { color: var(--warn-ink); }
.summary-table .edit { text-align: right; width: 1%; white-space: nowrap; }
.summary-table .edit button { min-height: 2.6rem; padding: 4px 12px; }

.issue { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 10px 12px; align-items: start; padding: 14px; border-radius: 16px; border: 2px solid var(--line); background: var(--surface); }
.issue + .issue { margin-top: 10px; }
.issue > svg { width: 1.5rem; height: 1.5rem; margin-top: 2px; }
.issue .who { font-weight: 800; }
.issue .actions { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: 10px; }
.issue .actions .btn { flex: 1 1 9rem; min-height: 3.2rem; }
/* A proposed correction says what it changes («Αλλαγή σε μπαλκονόπορτα»): its own row, the answers under it */
.issue .actions .btn.wide { flex-basis: 100%; }
.issue.bad { border-color: var(--bad); background: var(--bad-soft); color: var(--bad-ink); }
.issue.warn { border-color: var(--warn-line); background: var(--warn-soft); color: var(--warn-ink); }
.issue.ok { border-color: #9fd3ae; background: var(--ok-soft); color: var(--ok-ink); }
.issue.pending { border-style: dashed; color: var(--ink-2); }

.photo-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 8rem), 1fr)); gap: 10px; }
.photo-grid button { padding: 0; border: 2px solid var(--line); border-radius: 14px; overflow: hidden; aspect-ratio: 1; background: var(--surface-3); }
.photo-grid img { width: 100%; height: 100%; object-fit: cover; }
.file-btn { position: relative; overflow: hidden; }
.file-btn input { position: absolute; inset: 0; opacity: 0; cursor: pointer; font-size: 0; }

.history { font-size: .9rem; color: var(--ink-2); }
.history li { margin: 2px 0; }

/* ── Bottom sheets (keypad, assistant, menus) ────────────── */
.overlay { position: fixed; inset: 0; z-index: 60; display: flex; align-items: flex-end; justify-content: center; background: rgba(15, 17, 20, .55); }
.overlay.center { align-items: center; padding: 16px; }
.sheet {
  width: min(100%, 40rem); max-height: 94vh; max-height: 94dvh; overflow: auto; overscroll-behavior: contain; background: var(--surface);
  border-radius: 26px 26px 0 0; border: 2px solid var(--ink); border-bottom: 0;
  padding: 10px max(16px, env(safe-area-inset-right)) calc(16px + env(safe-area-inset-bottom)) max(16px, env(safe-area-inset-left));
}
.overlay.enter .sheet { animation: rise .18s ease-out; }
.overlay.center .sheet { border-radius: 24px; border-bottom: 2px solid var(--ink); max-height: 90vh; }
.sheet-grip { width: 3.5rem; height: 6px; border-radius: 99px; background: var(--line); margin: 2px auto 10px; }
.sheet-head { display: flex; align-items: flex-start; gap: 12px; margin-bottom: 12px; }
.sheet-head h2 { flex: 1; padding-top: 8px; }
.sheet-head .icon-btn { border-color: var(--ink); }
.sheet .menu-list { display: grid; gap: 10px; }
.sheet .menu-list .btn { justify-content: flex-start; text-align: left; min-height: 3.6rem; }

/* Keypad */
.keypad { display: grid; gap: 10px; }
.kp-top { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 10px; align-items: start; }
.kp-field { font-weight: 700; font-size: 1.05rem; line-height: 1.2; }
.kp-display {
  display: flex; align-items: baseline; justify-content: center; gap: 8px; min-height: 4.6rem; padding: 10px 14px; border-radius: 16px;
  border: 3px solid var(--ink); background: var(--surface-2); font-size: 2.6rem; font-weight: 800; letter-spacing: -.02em;
}
.kp-display small { font-size: 1.1rem; font-weight: 700; color: var(--ink-2); }
.kp-display.selected .kp-digits { background: var(--brand); color: var(--brand-ink); border-radius: 8px; padding: 0 6px; }
.kp-display.invalid { border-color: var(--bad); background: var(--bad-soft); }
.kp-display .placeholder { color: var(--ink-3); font-size: 1.4rem; }
.kp-actions { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.kp-msg { min-height: 1.4em; font-weight: 600; font-size: .95rem; flex: 1 1 10rem; }
.kp-clear { min-height: 3.2rem; padding: 6px 14px; }
.kp-next { min-height: 4rem; margin-top: 2px; }
.kp-msg.bad { color: var(--bad-ink); }
.kp-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 9px; }
.kp-grid button {
  min-height: 4rem; border-radius: 15px; border: 2px solid var(--ink); background: var(--surface); font-size: 1.8rem; font-weight: 800;
  box-shadow: 0 3px 0 var(--ink); display: flex; align-items: center; justify-content: center; gap: 6px;
}
.kp-grid button.fn { font-size: 1rem; background: var(--surface-3); flex-direction: column; gap: 0; }
.kp-grid button.fn svg { width: 1.5rem; height: 1.5rem; }
.kp-grid button:active { transform: translateY(3px); box-shadow: none; }
.kp-bottom { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 10px; }
.kp-bottom .btn { min-height: 4rem; }
.kp-mini { width: 4.5rem; height: 4.5rem; border-radius: 12px; background: var(--surface-2); border: 1px solid var(--line); }
@media (max-width: 420px) { .kp-mini { display: none; } .kp-top { grid-template-columns: minmax(0, 1fr); } }
@media (max-height: 640px) { .kp-grid button { min-height: 3.3rem; font-size: 1.5rem; } .kp-display { min-height: 3.8rem; font-size: 2.1rem; } .kp-mini { display: none; } }

/* Assistant */
.assist-listen { display: grid; justify-items: center; gap: 14px; padding: 8px 0 4px; text-align: center; }
.mic-orb { width: 7.5rem; height: 7.5rem; border-radius: 50%; display: grid; place-items: center; background: var(--bad); color: #fff; border: 4px solid var(--bad-ink); position: relative; }
.mic-orb svg { width: 3.4rem; height: 3.4rem; }
.mic-orb::before { content: ""; position: absolute; inset: -14px; border-radius: 50%; border: 6px solid rgba(184, 35, 26, .25); transform: scale(var(--level, 1)); transition: transform .08s linear; }
.mic-orb.idle { background: var(--ink); color: var(--brand); border-color: #000; }
.mic-orb.idle::before { display: none; }
.timer { font-size: 1.6rem; font-weight: 800; }
.live-text { min-height: 3em; width: 100%; padding: 12px 14px; border-radius: 14px; background: var(--surface-2); border: 2px dashed var(--line-2); font-size: 1.1rem; font-weight: 600; text-align: left; }
.example { background: var(--surface-2); border-radius: 14px; padding: 12px 14px; font-weight: 600; border-left: 5px solid var(--brand); }
.heard { padding: 12px 14px; border-radius: 14px; background: var(--ai-soft); color: var(--ai-ink); font-weight: 600; }
.heard .q2 { display: block; font-weight: 600; font-size: .9rem; }
.prop-list { display: grid; gap: 10px; }
.prop { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 4px 12px; align-items: start; padding: 12px 14px; border-radius: 16px; border: 2px solid var(--line-2); background: var(--surface); text-align: left; width: 100%; }
.prop .tick { width: 2rem; height: 2rem; border-radius: 8px; border: 3px solid var(--ink); display: grid; place-items: center; grid-row: span 2; margin-top: 2px; }
.prop .tick svg { width: 1.3rem; height: 1.3rem; opacity: 0; }
.prop[aria-checked="true"] { border-color: var(--ink); background: var(--ok-soft); }
.prop[aria-checked="true"] .tick { background: var(--ok); border-color: var(--ok-ink); color: #fff; }
.prop[aria-checked="true"] .tick svg { opacity: 1; }
.prop .pl { font-weight: 600; color: var(--ink-2); font-size: .9rem; }
.prop .pv { font-weight: 800; font-size: 1.15rem; }
.prop .pc { grid-column: 2; font-size: .9rem; color: var(--ink-3); font-weight: 600; }
.prop-amb > svg { width: 1.6rem; height: 1.6rem; margin-bottom: 4px; }
.prop-amb { padding: 12px 14px; border-radius: 16px; border: 2px solid var(--warn-line); background: var(--warn-soft); color: var(--warn-ink); }
.prop-amb .opts { display: grid; gap: 8px; margin-top: 10px; }
.prop-group { border: 2px solid var(--ink); border-radius: 18px; padding: 12px; }
.prop-group + .prop-group { margin-top: 12px; }
.prop-group h3 { margin-bottom: 8px; }

/* Settings list */
.list { border: 2px solid var(--line); border-radius: 20px; background: var(--surface); overflow: hidden; }
.list-row { display: flex; align-items: center; gap: 14px; width: 100%; min-height: 4.2rem; padding: 12px 16px; border: 0; border-top: 1px solid var(--line); background: transparent; text-align: left; font-weight: 700; }
.list-row:first-child { border-top: 0; }
.list-row > svg:first-child { width: 1.6rem; height: 1.6rem; flex: none; }
.list-row .lr-text { flex: 1; min-width: 0; }
.list-row .lr-sub { display: block; font-weight: 600; color: var(--ink-3); font-size: .9rem; }
.list-row .chev { width: 1.5rem; height: 1.5rem; color: var(--ink-3); flex: none; }
button.list-row:active { background: var(--surface-3); }

/* Empty state */
.empty { text-align: center; padding: 30px 18px; border: 2px dashed var(--line-2); border-radius: 22px; background: var(--surface-2); }
.empty .art { width: 7rem; margin: 0 auto 14px; color: var(--ink); }
.empty p { color: var(--ink-2); margin: 8px auto 18px; max-width: 26rem; }

/* Search */
.search { position: relative; }
.search svg { position: absolute; left: 16px; top: 50%; transform: translateY(-50%); width: 1.4rem; height: 1.4rem; color: var(--ink-3); }
.search input { padding-left: 3.1rem; }

/* Onboarding */
.welcome { min-height: 100vh; min-height: 100dvh; display: grid; align-content: center; gap: 22px; max-width: 34rem; margin: 0 auto; padding: 24px max(18px, env(safe-area-inset-right)) calc(24px + env(safe-area-inset-bottom)) max(18px, env(safe-area-inset-left)); }
.welcome .logo-big { width: 6rem; height: 6rem; padding: 6px; border-radius: 20px; background: var(--surface); border: 2px solid var(--line); display: grid; place-items: center; }
.welcome .logo-big svg { width: 4rem; height: 4rem; }
.welcome h1 { font-size: 2rem; }
.text-sample { padding: 14px; border-radius: 14px; background: var(--surface); border: 2px solid var(--line); }
.dots { display: flex; gap: 8px; justify-content: center; }
.dots span { width: 12px; height: 12px; border-radius: 50%; background: var(--line); }
.dots span.on { background: var(--ink); width: 30px; border-radius: 99px; }

/* Order editor */
.order-item { border: 2px solid var(--line); border-radius: 20px; background: var(--surface); padding: 14px; }
.order-item + .order-item { margin-top: 14px; }
.ref-box { background: var(--surface-2); border: 2px dashed var(--line-2); border-radius: 14px; padding: 10px 12px; font-size: .95rem; }
.ref-box strong { font-size: 1.05rem; }
.timeline { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.timeline li { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 10px; align-items: start; }
.timeline li svg { width: 1.4rem; height: 1.4rem; margin-top: 2px; }

/* Conflict view */
.compare { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
@media (max-width: 480px) { .compare { grid-template-columns: minmax(0, 1fr); } }
.compare .side { border: 2px solid var(--line); border-radius: 16px; padding: 12px; }
.compare .side h3 { margin-bottom: 6px; }
.compare dl { margin: 0; display: grid; gap: 4px; }
.compare dt { color: var(--ink-3); font-size: .85rem; font-weight: 600; }
.compare dd { margin: 0 0 6px; font-weight: 700; }
.compare dd.diff { background: var(--brand-soft); border-radius: 6px; padding: 0 6px; }

/* Banner */
.banner { display: flex; align-items: center; gap: 12px; padding: 12px max(16px, env(safe-area-inset-right)) 12px max(16px, env(safe-area-inset-left)); background: var(--ai); color: #fff; font-weight: 600; }
.banner .btn { margin-left: auto; min-height: 3.2rem; border-color: #fff; }

@keyframes rise { from { transform: translateY(24px); opacity: .6; } to { transform: none; opacity: 1; } }
@keyframes pulse { 0%, 100% { box-shadow: 0 4px 0 #000, 0 0 0 0 rgba(184, 35, 26, .5); } 50% { box-shadow: 0 4px 0 #000, 0 0 0 12px rgba(184, 35, 26, 0); } }
@keyframes flash { 0% { box-shadow: 0 0 0 0 var(--brand); } 50% { box-shadow: 0 0 0 8px var(--brand); } 100% { box-shadow: 0 0 0 0 var(--brand); } }
.flash { animation: flash 1.1s ease-out 2; }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}
.ic.inline { display: inline-block; width: 1.1em; height: 1.1em; vertical-align: -0.17em; }
.tile:has(input:checked) { border-color: var(--ink); border-width: 3px; background: var(--brand-soft); }
.tile input[type="radio"] { accent-color: var(--ink); }
details > summary { list-style: none; }
details > summary::-webkit-details-marker { display: none; }
details > summary::after { content: "▾"; margin-left: auto; font-size: 1.2rem; }
details[open] > summary::after { content: "▴"; }
.tile.size-normal { font-size: 15px; }
.tile.size-large { font-size: 17px; }
.tile.size-xlarge { font-size: 19px; }
.quick-row { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); gap: 10px; }
.quick-row .btn { flex-direction: column; gap: 4px; min-height: 4.2rem; padding: 8px 6px; font-size: .95rem; }
.quick-row .btn svg { width: 1.6rem; height: 1.6rem; }
.tile .tile-text { display: flex; flex-direction: column; align-items: inherit; gap: 2px; min-width: 0; }
.tile.row-tile .tile-text { align-items: flex-start; }
.tile.pic-left .pic { width: 5.2rem; max-width: 5.2rem; height: 4.2rem; flex: none; }
.tile.pic-left { min-height: 5rem; }
@media (min-width: 700px) { .tiles.one.basis { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.summary { display: grid; }
.sum-row { display: flex; align-items: center; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--line); }
.sum-row:last-child { border-bottom: 0; }
.sum-text { flex: 1; min-width: 0; }
.sum-label { color: var(--ink-3); font-weight: 600; font-size: .9rem; }
.sum-value { font-weight: 700; }
.sum-row.unknown .sum-value { color: var(--warn-ink); }
.sum-row .btn { min-height: 3.2rem; padding: 6px 14px; flex: none; }

/* ── Large text on narrow phones ─────────────────────────────
   The page text scales with the user's choice; the two action bars keep a fixed, comfortable size
   so they never push content off-screen. Long single words (e.g. «Ανοιγοανακλινόμενο») may break inside tiles. */
.tile, .opening-card .title, h1, h2, .sum-value, .notice, .issue { overflow-wrap: anywhere; hyphens: auto; }
.bb-btn { font-size: clamp(14px, .9rem, 16px); min-height: 48px; padding: 4px; border-radius: 12px; gap: 1px; }
.bb-btn svg { width: 20px; height: 20px; }
.bb-mic { width: 64px; min-height: 52px; font-size: 14px; border-radius: 16px; border-width: 2px; transform: translateY(-2px); }
.bb-mic svg { width: 22px; height: 22px; }
:root { --bar-h: 60px; }
.topbar .back { font-size: clamp(14px, 1rem, 16px); min-height: 44px; }
.status-pill { font-size: 13px; min-height: 36px; padding: 0 10px; }
.sum-row { flex-wrap: wrap; }
details > summary { flex-wrap: wrap; }
.opening-card .oc-body { grid-template-columns: min(4.8rem, 92px) minmax(0, 1fr); }
.opening-card .dims { font-size: clamp(1.2rem, 1.45rem, 34px); overflow-wrap: anywhere; }
@media (max-width: 440px) {
  :root[data-text="large"] .tiles.three, :root[data-text="xlarge"] .tiles.three,
  :root[data-text="xlarge"] .tiles:not(.four):not(.one) { grid-template-columns: minmax(0, 1fr); }
  :root[data-text="xlarge"] .tiles.four { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  :root[data-text="xlarge"] .dims-grid { grid-template-columns: minmax(0, 1fr); }
  :root[data-text="xlarge"] .quick-row { grid-auto-flow: row; }
}

.bb-btn { min-width: 0; overflow-wrap: anywhere; }
.diff-table { width: 100%; border-collapse: collapse; border: 2px solid var(--ink); border-radius: 14px; overflow: hidden; }
.diff-table th, .diff-table td { padding: 10px 8px; text-align: left; border-bottom: 1px solid var(--line); vertical-align: top; }
.diff-table thead th { background: var(--surface-3); font-size: .85rem; }
.diff-table tbody th { font-weight: 600; color: var(--ink-2); }
.diff-table td { font-weight: 800; font-size: 1.05rem; }

/* ── One question at a time ──────────────────────────────── */
.wiz-head { display: grid; gap: 8px; margin-bottom: 14px; }
.wiz-title { font-size: 1.35rem; min-width: 0; }
.wiz-head .code-big { display: inline-flex; align-items: center; justify-content: center; min-width: 3.2rem; height: 2.3rem; padding: 0 10px; border-radius: 10px; background: var(--ink); color: #fff; font-weight: 800; font-size: 1.1rem; flex: none; }
.wiz-progress { height: 10px; border-radius: 99px; background: var(--surface-3); overflow: hidden; }
.wiz-progress > span { display: block; height: 100%; background: var(--brand); border-right: 3px solid var(--ink); }
.wiz-step { color: var(--ink-2); }
.ok-text { color: var(--ok-ink); font-weight: 700; }
.question { background: var(--surface); border: 3px solid var(--ink); border-radius: 22px; padding: 18px 16px; margin-top: 10px; box-shadow: 0 5px 0 var(--brand); }
.q-title { font-size: 1.3rem; line-height: 1.2; margin-bottom: 12px; }
.q-hint { color: var(--ink-2); margin: -6px 0 14px; }
.answer-row { display: flex; align-items: center; gap: 12px; width: 100%; min-height: 4rem; padding: 10px 14px; margin-top: 8px; border-radius: 16px; border: 2px solid var(--line); background: var(--surface-2); text-align: left; }
.answer-tick { width: 2rem; height: 2rem; border-radius: 50%; background: var(--ok); color: #fff; display: grid; place-items: center; flex: none; }
.answer-tick svg { width: 1.2rem; height: 1.2rem; }
.answer-row.missing .answer-tick { background: var(--warn-line); color: var(--ink); }
.answer-text { flex: 1; min-width: 0; display: grid; }
.answer-label { color: var(--ink-3); font-weight: 600; font-size: .9rem; }
.answer-value { font-weight: 700; font-size: 1.05rem; }
.answer-edit { font-weight: 700; color: var(--ai-ink); text-decoration: underline; text-underline-offset: 4px; flex: none; }
.answers { display: grid; }
.more-toggle { display: inline-flex; align-items: center; gap: 8px; min-height: 3.2rem; padding: 8px 14px; border-radius: 14px; border: 2px dashed var(--line-2); background: transparent; font-weight: 700; color: var(--ink-2); }
.more-toggle svg { width: 1.3rem; height: 1.3rem; }
.more-box { margin-top: 12px; padding: 14px; border-radius: 18px; background: var(--surface-2); border: 2px solid var(--line); }
.more-box > h3:first-child { margin-top: 0; }
.step-next { margin-top: 18px; }
.flow-next { display: inline-flex; align-items: center; gap: 8px; padding: 6px 0; font-size: .95rem; }
.check-hero { background: var(--surface); border: 2px solid var(--line); border-radius: 20px; padding: 10px 12px 14px; text-align: center; }
.check-hero svg.sketch { max-height: 15rem; margin: 0 auto; }
.check-dims { font-size: 2.1rem; font-weight: 800; letter-spacing: -.02em; }
.check-dims small { font-size: 1rem; color: var(--ink-2); }
.review-groups { display: grid; gap: 14px; margin-top: 14px; }
.review-group { background: var(--surface); border: 2px solid var(--line); border-radius: var(--radius); padding: 14px; }
.review-group h2 { font-size: 1.15rem; font-weight: 700; margin-bottom: 6px; color: var(--ink); }
.review-hint { font-size: .88rem; color: var(--ink-2); margin-bottom: 10px; line-height: 1.3; }
.review-fields { display: grid; gap: 8px; }
.review-field { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 14px; border: 1.5px solid var(--line); background: var(--surface-2); min-height: 3.4rem; flex-wrap: wrap; }
.review-field.missing { background: var(--surface); border-color: var(--line); }
.review-field.invalid { background: var(--bad-soft); border-color: var(--bad); }
.review-icon { width: 1.6rem; height: 1.6rem; display: flex; align-items: center; justify-content: center; flex: none; color: var(--ok); }
.review-icon svg { width: 1.35rem; height: 1.35rem; }
.review-field.missing .review-icon { color: var(--ink-3); }
.review-field.missing:has(.review-tag.required) .review-icon { color: var(--warn); }
.review-field.invalid .review-icon { color: var(--bad); }
.review-text { flex: 1 1 11rem; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.review-label { font-size: .95rem; font-weight: 700; color: var(--ink); display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.review-tag { font-size: .75rem; font-weight: 700; padding: 1px 7px; border-radius: 6px; background: var(--surface-3); color: var(--ink-3); }
.review-tag.required { background: var(--warn-soft); color: var(--warn-ink); border: 1px solid var(--warn-line); }
.review-value { font-size: .92rem; color: var(--ink-2); overflow-wrap: anywhere; }
.review-field.missing .review-value { color: var(--ink-3); font-style: italic; }
/* An empty line says what goes there («Πού ακριβώς είναι… π.χ. αριστερά, προς δρόμο») */
.review-help { font-size: clamp(14px, .88rem, 16px); color: var(--ink-2); line-height: 1.3; }
.review-problem { font-size: .85rem; font-weight: 700; color: var(--bad-ink); margin-top: 2px; }
.review-action.link-btn { flex: none; margin-left: auto; min-height: 2.5rem; padding: 5px 12px; border-radius: 10px; font-weight: 700; font-size: .92rem; text-decoration: none; border: 1.5px solid var(--line); background: var(--surface); color: var(--ink); }
.review-field.missing .review-action.link-btn { background: var(--brand); border-color: var(--ink); color: var(--brand-ink); box-shadow: 0 2px 0 var(--ink); }
.review-action.link-btn:active { transform: translateY(1px); }
.review-concerns { width: 100%; display: flex; gap: 8px; margin-top: 6px; padding-top: 6px; border-top: 1px dashed var(--line); flex-wrap: wrap; }
.review-ack { min-height: 2.5rem; font-size: .88rem; }
.measure-block { margin-top: 12px; }
@media (min-width: 1000px) { .measure-block .sketch-card, .step-body > div > .sketch-card { display: none; } }

/* Simple lists */
.op-list { display: grid; gap: 10px; }
.op-row { display: flex; align-items: center; gap: 12px; width: 100%; min-height: 4.6rem; padding: 10px 14px; border-radius: 18px; border: 2px solid var(--line); background: var(--surface); text-align: left; }
.op-row .code { display: inline-flex; align-items: center; justify-content: center; min-width: 3rem; height: 2.1rem; padding: 0 8px; border-radius: 9px; background: var(--ink); color: #fff; font-weight: 800; flex: none; }
.op-row .op-main { flex: 1; min-width: 0; display: grid; }
.op-row .op-room { font-weight: 700; font-size: 1.1rem; }
.op-row .op-dims { font-weight: 800; font-size: 1.25rem; }
.op-row:active { transform: translateY(2px); }
.op-state { display: flex; align-items: center; gap: 6px; font-weight: 700; margin-top: 2px; line-height: 1.15; }
.op-row .chev { width: 1.6rem; height: 1.6rem; color: var(--ink-3); flex: none; }
.op-row .code { align-self: flex-start; margin-top: 4px; }
.op-state svg { width: 1.4rem; height: 1.4rem; flex: none; }
.op-state.ok { color: var(--ok-ink); }
.op-state.warn { color: var(--warn-ink); }
.op-state.bad { color: var(--bad-ink); }
.op-state.neutral { color: var(--ink-3); }

.tile.size-small { font-size: 14px; }

/* The person who measures: even bigger keypad and answer tiles. The office person: denser screens. */
:root[data-mode="measure"] .kp-grid button { min-height: 3.8rem; font-size: 1.8rem; }
:root[data-mode="measure"] .kp-display { min-height: 4.4rem; font-size: 2.5rem; }
:root[data-mode="measure"] .question .tile { min-height: 3.6rem; font-size: 1.05rem; }
:root[data-mode="office"] .page { max-width: 60rem; }
:root[data-mode="office"] .card, :root[data-mode="office"] .order-item { padding: 14px; }
:root[data-mode="office"] .section { margin-top: 20px; }
:root[data-mode="office"] .btn.xl { min-height: 3.6rem; font-size: 1.05rem; }
:root[data-mode="office"] h1 { font-size: 1.55rem; }

/* On phones, answers to the current question are one full-width list: easier to read and to hit. */
@media (max-width: 620px) {
  .question .tiles { grid-template-columns: minmax(0, 1fr) !important; }
  .question .tile { flex-direction: row; justify-content: flex-start; text-align: left; min-height: 4rem; padding-left: 16px; overflow-wrap: break-word; hyphens: manual; }
  .question .tile .tile-text { align-items: flex-start; }
  .question .tile.tall { min-height: 5.2rem; }
  .question .tile .pic { width: 4rem; height: 3.6rem; max-width: 4rem; flex: none; }
  .question .tile[aria-pressed="true"] { padding-left: 15px; }
  /* Wood shades: many short names, two to a row so the list stays short. */
  :root:not([data-text="xlarge"]) .question .tiles.shades { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; }
  .question .tiles.shades .tile { min-height: 3.4rem; padding-left: 10px; gap: 8px; }
  .question .tiles.shades .tile[aria-pressed="true"] { padding-left: 9px; }
}
.tiles.shades .swatch { width: 1.6rem; height: 1.6rem; }
h1[tabindex="-1"]:focus, h1[tabindex="-1"]:focus-visible { box-shadow: none !important; outline: none; }
.segmented { grid-auto-columns: minmax(0, 1fr); }
.segmented button { min-width: 0; padding: 0 4px; overflow-wrap: anywhere; line-height: 1.1; }
.op-row .op-room, .op-row .op-dims, .answer-value, .answer-label { overflow-wrap: anywhere; }
.answer-row, .op-row { min-width: 0; }

/* Slim bottom bar */
.bottombar { padding: 6px max(10px, env(safe-area-inset-right)) calc(6px + env(safe-area-inset-bottom)) max(10px, env(safe-area-inset-left)); border-top-width: 1px; }
.bottombar-inner { gap: 8px; }
.bb-btn.primary { box-shadow: 0 3px 0 var(--ink); }
.bb-mic { box-shadow: 0 3px 0 #000; }
.topbar { min-height: 3.2rem; padding-top: max(6px, env(safe-area-inset-top)); padding-bottom: 6px; }
.bb-mic { width: 74px; }
.bb-mic span { white-space: nowrap; }
:root[data-mode="measure"] .kp-grid button.fn, .kp-grid button.fn { font-size: .85rem; }
.kp-grid button.fn span { white-space: nowrap; }
.op-note { color: var(--ink-2); font-size: .9rem; line-height: 1.25; }
.fix-row.bad { border-color: var(--bad); background: var(--bad-soft); }
.fix-row.bad .op-note { color: var(--bad-ink); }
.fix-row.warn { border-color: var(--warn-line); background: var(--warn-soft); }
.op-go { display: inline-flex; align-items: center; gap: 2px; font-weight: 700; color: var(--ink); flex: none; font-size: .9rem; }
.op-go svg { width: 1.2rem; height: 1.2rem; }
.checklist { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.checklist li { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 10px; align-items: start; padding: 10px 12px; border-radius: 14px; border: 2px solid var(--line); background: var(--surface); font-weight: 600; }
.checklist li > svg { width: 1.35rem; height: 1.35rem; margin-top: 1px; }
.checklist li.ok { border-color: #9fd3ae; background: var(--ok-soft); color: var(--ok-ink); }
.checklist li.todo { border-color: var(--warn-line); background: var(--warn-soft); color: var(--warn-ink); }
.checklist .issue { margin-top: 8px; }
.checklist .link-btn { min-height: 2.4rem; padding: 4px 0; }
.two-btn { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.two-btn .btn { width: 100%; }
@media (max-width: 360px) { .two-btn { grid-template-columns: 1fr; } }
.fix-row { flex-wrap: wrap; row-gap: 4px; }
.fix-row .op-main { flex: 1 1 8.5rem; }
.fix-row .op-go { margin-left: auto; }
.bb-btn { overflow-wrap: normal; hyphens: manual; }
.toast { position: fixed; z-index: 31; left: 12px; right: 12px; bottom: calc(var(--bar-h) + 18px + env(safe-area-inset-bottom)); max-width: 30rem; margin: 0 auto; display: flex; align-items: center; gap: 8px; padding: 8px 8px 8px 16px; border-radius: 16px; background: var(--ink); color: #fff; font-weight: 700; box-shadow: 0 10px 30px rgba(0, 0, 0, .25); animation: toast-in .2s ease-out; }
.toast.no-bar { bottom: calc(16px + env(safe-area-inset-bottom)); }
.toast > span { flex: 1; min-width: 0; overflow-wrap: anywhere; }
.toast-btn { display: inline-flex; align-items: center; gap: 6px; min-height: 2.9rem; padding: 0 14px; border-radius: 12px; border: 2px solid #fff; background: var(--brand); color: var(--brand-ink); font-weight: 800; flex: none; }
.toast-btn svg { width: 1.2rem; height: 1.2rem; }
.toast-x { width: 2.6rem; height: 2.6rem; display: grid; place-items: center; border: 0; background: none; color: #fff; flex: none; }
.toast-x svg { width: 1.3rem; height: 1.3rem; }
@keyframes toast-in { from { transform: translateY(12px); opacity: 0; } to { transform: none; opacity: 1; } }
@media (prefers-reduced-motion: reduce) { .toast { animation: none; } }
/* Row + its delete button */
.op-item { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 8px; align-items: stretch; }
.op-del { width: 3.2rem; display: grid; place-items: center; border-radius: 16px; border: 2px solid var(--line); background: var(--surface); color: var(--ink-3); }
.op-del svg { width: 1.35rem; height: 1.35rem; }
.op-del:hover, .op-del:focus-visible { color: var(--bad-ink); border-color: var(--bad); }
.op-del:active { transform: translateY(2px); }
.wiz-del { display: inline-flex; align-items: center; gap: 6px; min-height: 2.6rem; padding: 0 10px; border-radius: 12px; border: 2px solid var(--line); background: var(--surface); color: var(--ink-2); font-weight: 700; font-size: .9rem; flex: none; }
.wiz-del svg { width: 1.1rem; height: 1.1rem; }
.wiz-head .wiz-title { flex: 1; }
@media (max-width: 360px) { .wiz-del-text { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); } .wiz-del { padding: 0 8px; } }
.code-pill { display: inline-flex; align-items: center; justify-content: center; min-width: 3rem; height: 2rem; padding: 0 8px; border-radius: 9px; background: var(--ink); color: #fff; font-weight: 800; flex: none; }
/* «Πείτε το»: many κουφώματα at once, hands-free answer */
.prop-card { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 6px; border: 2px solid var(--ink); border-radius: 16px; background: var(--ok-soft); padding: 4px 8px 4px 4px; }
.prop-card.off { border-color: var(--line); background: var(--surface-2); opacity: .7; }
.prop-card-main { display: flex; align-items: center; gap: 10px; min-height: 3.6rem; padding: 6px 8px; border: 0; background: none; text-align: left; min-width: 0; }
.prop-card-main .tick { width: 1.8rem; height: 1.8rem; border-radius: 8px; border: 2px solid var(--ink); display: grid; place-items: center; flex: none; background: var(--ok); color: #fff; }
.prop-card.off .tick { background: var(--surface); color: transparent; border-color: var(--line-2); }
.prop-card-main .tick svg { width: 1.1rem; height: 1.1rem; }
.prop-card-text { display: grid; min-width: 0; }
.prop-card-text span { color: var(--ink-2); font-size: .92rem; overflow-wrap: anywhere; }
.prop-card .link-btn { min-height: 2.6rem; font-size: .9rem; }
.answer-banner { display: flex; align-items: center; gap: 10px; padding: 12px 14px; margin-bottom: 12px; border-radius: 14px; background: var(--ink); color: #fff; font-weight: 600; }
.answer-banner svg { width: 1.5rem; height: 1.5rem; flex: none; animation: pulse 1.2s ease-in-out infinite; }
@keyframes pulse { 50% { opacity: .4; } }
@media (prefers-reduced-motion: reduce) { .answer-banner svg { animation: none; } }
.confirm-actions { display: grid; gap: 10px; margin-top: 6px; }
/* «Από φωτογραφία»: the image, what was found, one question at a time */
.btn.paper-import { justify-content: flex-start; gap: 12px; padding: 12px 14px; border-color: var(--line-2); border-radius: 14px; background: var(--surface-2); text-align: left; }
.btn.paper-import > .paper-import-icon { width: 1.65rem; height: 1.65rem; }
.paper-import-text { display: grid; gap: 3px; min-width: 0; }
.paper-import-text strong { font-size: clamp(14px, 1rem, 19px); line-height: 1.3; }
.paper-import-text > span { font-size: clamp(14px, .93rem, 17px); font-weight: 500; line-height: 1.35; color: var(--ink-2); }
.paper-import:focus-within { outline: 3px solid var(--ai); outline-offset: 3px; }

/* Σύνδεση: yellow band with the logo and the name beside it, the form in a white card over its lower edge */
.page:has(> .login-page) { max-width: none; min-height: 100vh; min-height: 100dvh; padding: 0; display: flex; flex-direction: column; }
.login-page { flex: 1; display: flex; flex-direction: column; width: 100%; }
.login-hero { padding: max(28px, env(safe-area-inset-top)) max(20px, env(safe-area-inset-right)) 78px max(20px, env(safe-area-inset-left)); background: var(--brand); color: var(--ink); }
.login-brand, .login-hello { max-width: 400px; margin: 0 auto; }
.login-brand { display: flex; align-items: center; gap: 12px; }
.login-brand .brand-logo { flex: none; width: 72px; height: 72px; padding: 6px; background: #fff; border: 2px solid var(--ink); border-radius: 18px; box-shadow: 0 3px 0 var(--ink); }
.login-brand h1, .toolbox-head h1 { font-size: 19px; line-height: 1.3; }
.login-hello { margin-top: 26px; }
.login-hello h2, .tools-title { font-size: 18px; line-height: 1.3; }
.login-hello p { margin-top: 4px; font-size: 15px; }
.login-card { position: relative; width: calc(100% - 32px); max-width: 400px; margin: -54px auto 0; padding: 20px 18px; background: var(--surface); border: 2px solid var(--ink); border-radius: 22px; box-shadow: 0 5px 0 var(--ink); }
.login-card > * + * { margin-top: 14px; }
.login-card .btn[type="submit"] { margin-top: 22px; }
.login-card .btn.dark { box-shadow: 0 4px 0 #000; }
.login-card .btn.dark:active:not(:disabled) { box-shadow: 0 2px 0 #000; }
.login-help { margin-top: auto; padding: 22px 20px max(20px, env(safe-area-inset-bottom)); text-align: center; font-size: 14px; color: var(--ink-3); }
.pass-wrap { position: relative; }
.pass-wrap input { padding-right: 3.6rem; }
.pass-eye { position: absolute; top: 50%; right: 4px; transform: translateY(-50%); width: 3rem; height: 3rem; display: grid; place-items: center; border: 0; border-radius: 11px; background: transparent; color: var(--ink-3); }
.pass-eye svg { width: 1.4rem; height: 1.4rem; }
.pass-eye[aria-pressed="true"] { color: var(--ink); background: var(--surface-3); }
.tools-title { margin-bottom: 12px; }
.tool-card { display: grid; grid-template-columns: 44px minmax(0, 1fr) 20px; gap: 12px; align-items: center; width: 100%; padding: 16px; border: 2px solid var(--line); border-radius: 16px; background: var(--surface); color: var(--ink); text-align: left; }
.tool-card strong { font-size: 17px; line-height: 1.35; }
.tool-card .tool-sub { display: block; margin-top: 5px; font-size: 14px; color: var(--ink-2); }
.tool-icon { display: grid; place-items: center; width: 44px; height: 44px; background: var(--ai-soft); color: var(--ai); border-radius: 10px; }
.tool-icon svg { width: 26px; height: 26px; }
.toolbox-settings { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 22px; }
/* Optional address suggestions stay inline on small screens, clear of the keyboard. */
.address-suggestions { border: 1px solid var(--line-2); border-radius: 10px; background: var(--surface); overflow: hidden; }
.address-suggestions[hidden] { display: none; }
.address-suggestions [role="listbox"] { max-height: 220px; overflow-y: auto; }
.address-suggestions [role="option"] { display: block; width: 100%; padding: 10px 12px; border: 0; border-bottom: 1px solid var(--line); background: transparent; color: var(--ink); text-align: left; font: inherit; font-size: 15px; line-height: 1.35; cursor: pointer; }
.address-suggestions [role="option"]:hover, .address-suggestions [role="option"][aria-selected="true"] { background: var(--surface-2); }
.maps-attribution { display: block; padding: 8px 12px; color: #5e5e5e; background: white; font-family: sans-serif; font-weight: 400; font-style: normal; font-size: 14px; letter-spacing: normal; white-space: nowrap; }
.import-head { display: flex; align-items: center; gap: 12px; }
.import-head > div { display: grid; gap: 2px; min-width: 0; }
.import-thumb { flex: none; width: 4.2rem; height: 4.2rem; padding: 0; border: 2px solid var(--line); border-radius: 12px; overflow: hidden; background: var(--surface-3); display: grid; place-items: center; color: var(--ink-3); }
.import-thumb img { width: 100%; height: 100%; object-fit: cover; }
.import-thumb svg { width: 1.8rem; height: 1.8rem; }
.import-reading .import-thumb { width: 7rem; height: 7rem; }
.import-for { margin: 0 0 4px; font-size: .92rem; font-weight: 700; color: var(--ink-3); }
.import-q .link-btn { min-height: 2.6rem; padding: 4px 0; margin: -6px 0 8px; }
.import-type { display: grid; gap: 10px; margin-top: 12px; }
.import-items { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.import-items li { display: grid; padding: 8px 12px; border-radius: 12px; background: var(--surface-2); border: 1px solid var(--line); }
.import-items li span { color: var(--ink-2); font-size: .92rem; overflow-wrap: anywhere; }
.import-full { width: 100%; height: auto; border-radius: 12px; border: 1px solid var(--line); background: var(--surface-3); }
/* The «Αναίρεση» bar stays under open sheets and dialogs. */
.toast { z-index: 50; }
.notice + .section-title, .quick-row + .section-title { margin-top: 18px; }
/* Many projects */
.list-group { font-size: .9rem; color: var(--ink-3); text-transform: none; margin: 16px 0 8px; }
.list-group:first-child { margin-top: 0; }
.project-card .tag.ok { background: var(--ok-soft); color: var(--ok-ink); }
.project-card .tag { display: inline-block; font-size: .75rem; font-weight: 700; padding: 1px 8px; border-radius: 99px; background: var(--surface-3); color: var(--ink-2); vertical-align: middle; }
.pc-date { display: block; margin-top: 4px; color: var(--ink-3); font-weight: 600; }
.filter-seg button { min-height: 2.8rem; }
/* Κουφώματα list: one card, thin dividers, compact two-line rows. The code colour shows the state. */
.op-lines { border: 2px solid var(--line); border-radius: 18px; background: var(--surface); overflow: hidden; }
.op-line { display: flex; align-items: stretch; min-width: 0; }
.op-line + .op-line { border-top: 1px solid var(--line); }
.op-open { flex: 1; min-width: 0; display: flex; align-items: center; gap: 12px; min-height: 3.5rem; padding: 8px 6px 8px 12px; border: 0; background: none; text-align: left; color: var(--ink); }
.op-open:active { background: var(--surface-2); }
.op-open:focus-visible { outline: 3px solid var(--ai); outline-offset: -3px; }
.op-code { display: inline-flex; align-items: center; justify-content: center; min-width: 2.9rem; height: 2rem; padding: 0 6px; border-radius: 9px; font-weight: 800; font-size: .95rem; flex: none; background: var(--surface-3); color: var(--ink); border: 2px solid var(--line-2); }
.op-line.ok .op-code { background: var(--ok); border-color: var(--ok); color: #fff; }
.op-line.warn .op-code { background: var(--warn-soft); border-color: var(--warn-line); color: var(--warn-ink); }
.op-line.bad .op-code { background: var(--bad); border-color: var(--bad); color: #fff; }
.op-text { flex: 1; min-width: 0; display: grid; gap: 2px; }
.op-top { display: block; min-width: 0; }
/* What the item is, on the whole width: up to two lines, then «…» (most fit in one, so rows stay compact). */
.op-line .op-room { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; line-clamp: 2; overflow: hidden; font-weight: 700; font-size: 1.02rem; line-height: 1.25; overflow-wrap: break-word; }
/* Second line: size first, then where it is and its state. */
.op-size { flex: none; font-weight: 800; font-size: .95rem; }
.op-bottom { display: flex; align-items: center; flex-wrap: wrap; column-gap: 8px; row-gap: 2px; min-width: 0; }
.op-sub { flex: 1; min-width: 0; display: flex; align-items: center; gap: 5px; font-size: .85rem; font-weight: 600; line-height: 1.2; color: var(--ink-3); overflow-wrap: anywhere; }
.op-sub svg { width: 1rem; height: 1rem; flex: none; }
.op-sub.ok { color: var(--ok-ink); }
.op-sub.warn { color: var(--warn-ink); }
.op-sub.bad { color: var(--bad-ink); }
.op-line .op-go { flex: none; display: inline-flex; align-items: center; gap: 1px; font-size: .82rem; font-weight: 700; color: var(--ink-2); }
/* Lines that lead somewhere («Έλεγχος», «Συμπλήρωση») say more: the size and the link share a row, the words get their own */
.op-bottom:has(.op-go) .op-go { margin-left: auto; }
.op-bottom:has(.op-go) .op-sub { order: 3; flex-basis: 100%; overflow-wrap: break-word; }
.op-line .op-go svg { width: 1rem; height: 1rem; }
.op-trash { flex: none; width: 3rem; display: grid; place-items: center; border: 0; border-left: 1px solid var(--line); background: none; color: var(--ink-3); }
.op-trash svg { width: 1.25rem; height: 1.25rem; }
.op-trash:hover, .op-trash:focus-visible { color: var(--bad-ink); background: var(--bad-soft); }
.op-trash:active { background: var(--bad-soft); }
/* Voice recordings on a κούφωμα, and recordings waiting for signal */
.rec-list { display: grid; gap: 10px; }
.rec { border: 2px solid var(--line); border-radius: 16px; background: var(--surface); padding: 10px 12px; display: grid; gap: 8px; }
.rec-head { display: flex; align-items: center; gap: 8px; }
.rec-head svg { width: 1.2rem; height: 1.2rem; flex: none; }
.rec-head strong { flex: 1; min-width: 0; }
.rec audio { width: 100%; height: 2.6rem; }
.rec-text summary { font-weight: 700; min-height: 2.4rem; display: flex; align-items: center; cursor: pointer; }
.rec-text p { margin-top: 4px; color: var(--ink-2); font-size: .92rem; }
.pending-rec { border-color: var(--ai); margin-bottom: 14px; }
.pending-row { gap: 8px; }
.pending-row { display: grid; gap: 6px; padding-top: 8px; border-top: 1px solid var(--line); }
.pending-row:first-child { border-top: 0; padding-top: 0; }
.pending-row .row { gap: 8px; }
.pending-row .btn { flex: 1; }
/* Signed out on a server with AI */
.signin-hint { width: 100%; display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-radius: 14px; background: var(--ai-soft, #e8ecff); color: var(--ai-ink); font-size: .9rem; text-align: left; }
.signin-hint svg { width: 1.3rem; height: 1.3rem; flex: none; }
.signin-hint span { flex: 1; min-width: 0; }
.signin-card { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 10px 12px; align-items: center; margin-bottom: 14px; border-color: var(--ai); }
.signin-card > svg { width: 1.6rem; height: 1.6rem; color: var(--ai-ink); }
.signin-card .btn { grid-column: 1 / -1; }
/* «Ζωντανά»: live dictation dock — replaces the bottom bar so the app stays visible and changes as you talk */
.live-dock { position: fixed; left: 0; right: 0; bottom: 0; z-index: 30; background: var(--ink); color: #fff; padding: 10px max(12px, env(safe-area-inset-right)) calc(10px + env(safe-area-inset-bottom)) max(12px, env(safe-area-inset-left)); box-shadow: 0 -10px 30px rgba(0, 0, 0, .25); display: grid; gap: 8px; max-width: 100%; }
.live-top { display: flex; align-items: center; gap: 10px; min-width: 0; max-width: 46rem; margin: 0 auto; width: 100%; }
.live-dot { width: 14px; height: 14px; border-radius: 50%; background: #9aa0a6; flex: none; transform: scale(var(--level, 1)); transition: transform .08s linear; }
.live-dot.on { background: #ff4d3d; box-shadow: 0 0 0 4px rgba(255, 77, 61, .25); }
.live-caption { flex: 1; min-width: 0; color: #e6e6e6; font-weight: 600; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.live-feed { list-style: none; margin: 0 auto; padding: 0; display: grid; gap: 4px; max-width: 46rem; width: 100%; }
.live-feed li { display: flex; align-items: flex-start; gap: 8px; font-size: .9rem; font-weight: 600; line-height: 1.25; }
.live-feed li svg { width: 1.1rem; height: 1.1rem; flex: none; margin-top: 1px; }
.live-feed li span { flex: 1; min-width: 0; overflow-wrap: anywhere; }
.live-feed li em { font-style: normal; font-weight: 600; color: #ffd27a; }
.live-feed li.ok svg { color: #7ee2a0; }
.live-feed li.warn svg, .live-feed li.bad svg { color: #ffd27a; }
.live-feed li.muted { color: #b8bcc2; font-weight: 600; }
.live-feed .btn { min-height: 2.4rem; padding: 0 10px; font-size: .85rem; }
.live-actions { display: grid; grid-template-columns: 1fr 1fr 1.2fr; gap: 8px; max-width: 46rem; margin: 0 auto; width: 100%; }
.live-actions .btn { min-height: 2.8rem; padding: 0 8px; font-size: .9rem; }
.live-actions .btn.dark { background: #ff4d3d; border-color: #ff4d3d; color: #fff; box-shadow: none; }
.page.live-on { padding-bottom: calc(14rem + env(safe-area-inset-bottom)); }
@media (prefers-reduced-motion: reduce) { .live-dot { transition: none; transform: none; } }
.live-dock { grid-template-columns: minmax(0, 1fr); }
.live-dock > * { min-width: 0; }
@media (max-width: 360px) { .live-actions .btn { font-size: .8rem; gap: 4px; } .live-actions .btn svg { width: 1rem; height: 1rem; } }
.live-feed li em.info { color: #c9cdd2; }
/* What the trade does anyway (arch → no shutter, shutter with box…), shown once instead of asked */
.facts { list-style: none; margin: 14px 0 0; padding: 10px 12px; display: grid; gap: 6px; border-radius: 14px; background: var(--surface-2); border: 1px solid var(--line); font-size: .9rem; color: var(--ink-2); }
.facts li { display: flex; gap: 8px; align-items: flex-start; }
.facts svg { width: 1.05rem; height: 1.05rem; flex: none; margin-top: 2px; color: var(--ink-3); }
/* «Μέτρηση: άνοιγμα τοίχου · Αλλαγή» under the sizes */
.basis-line { display: flex; align-items: center; gap: 8px; width: 100%; margin-top: 10px; padding: 8px 10px; border: 1px dashed var(--line-2); border-radius: 12px; background: none; text-align: left; color: var(--ink-2); font-size: .92rem; }
.basis-line svg { width: 1.1rem; height: 1.1rem; flex: none; }
.basis-line > span:first-of-type { flex: 1; min-width: 0; }
.basis-line .answer-edit { font-size: .88rem; }
/* ── Εκκρεμότητες, Πελάτες, Προσφορές, Διαδρομή ───────────── */
.tool-list { display: grid; gap: 12px; }
.tool-count { display: inline-block; margin-top: 6px; font-size: 14px; font-weight: 700; color: var(--ink-2); }
.tool-count.late { color: var(--bad-ink); }
.tag { display: inline-block; font-size: .78rem; font-weight: 700; padding: 1px 8px; border-radius: 99px; background: var(--surface-3); color: var(--ink-2); vertical-align: middle; line-height: 1.5; }
.tag.ok { background: var(--ok-soft); color: var(--ok-ink); }
.tag.warn { background: var(--warn-soft); color: var(--warn-ink); }
.tag.bad { background: var(--bad-soft); color: var(--bad-ink); }
.task-actions { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin-bottom: 16px; }
.task-actions .btn { width: 100%; min-width: 0; }
.task-actions > :first-child, .task-actions > :last-child:nth-child(2) { grid-column: 1 / -1; }
@media (min-width: 640px) { .task-actions { grid-template-columns: repeat(auto-fit, minmax(12rem, 1fr)); } .task-actions > :first-child, .task-actions > :last-child:nth-child(2) { grid-column: auto; } }
.filter-seg { margin-bottom: 12px; }
/* Filters: never break a word in the middle («Συνεργε-ίο»); smaller text on narrow phones instead. */
.filter-seg button { overflow-wrap: normal; word-break: keep-all; font-size: .92rem; padding: 0 2px; }
@media (max-width: 400px) { .filter-seg button { font-size: .82rem; } }
@media (max-width: 340px) { .filter-seg { gap: 3px; padding: 4px; } .filter-seg button { font-size: .76rem; } }
.task-line .task-ic { width: 2.4rem; height: 2.4rem; border-radius: 10px; display: grid; place-items: center; flex: none; background: var(--surface-3); color: var(--ink-2); }
.task-line .task-ic svg { width: 1.3rem; height: 1.3rem; }
.task-line.late .task-ic, .task-line.urgent .task-ic { background: var(--bad-soft); color: var(--bad-ink); }
.task-line.today .task-ic { background: var(--brand-soft); color: var(--ink); }
.task-line.done .op-room { text-decoration: line-through; color: var(--ink-3); }
.task-done { flex: none; width: 3.4rem; display: grid; place-items: center; border: 0; border-left: 1px solid var(--line); background: none; color: var(--ok); }
.task-done svg { width: 1.6rem; height: 1.6rem; padding: 3px; border: 2px solid currentColor; border-radius: 8px; }
.task-done:active, .task-done:hover { background: var(--ok-soft); }
.list-group.late { color: var(--bad-ink); font-weight: 700; }
.task-done-group { margin-top: 16px; }
.task-done-group > summary { min-height: 3rem; display: flex; align-items: center; font-weight: 700; color: var(--ink-2); cursor: pointer; }
.task-done-group .op-lines, .task-done-group .timeline { margin-top: 6px; }
.task-head { display: flex; align-items: flex-start; gap: 12px; }
.task-head-text { flex: 1; min-width: 0; }
.task-head .kicker { font-size: .9rem; margin-bottom: 4px; }
.task-ic.big { width: 3.2rem; height: 3.2rem; border-radius: 14px; display: grid; place-items: center; flex: none; background: var(--brand-soft); color: var(--ink); }
.task-ic.big svg { width: 1.8rem; height: 1.8rem; }
.task-main-actions { display: flex; flex-wrap: wrap; gap: 10px; margin: 14px 0; }
.task-main-actions .btn { flex: 1 1 10rem; }
.info-card { border: 2px solid var(--line); border-radius: 18px; background: var(--surface); margin-top: 12px; }
.info-row { display: flex; align-items: flex-start; gap: 10px; padding: 12px 14px; }
.info-row + .info-row { border-top: 1px solid var(--line); }
.info-text { flex: 1; min-width: 0; display: grid; gap: 2px; }
.info-row .answer-edit { min-height: 2.6rem; display: inline-flex; align-items: center; }
.answer-sub { display: block; font-weight: 600; font-size: .9rem; color: var(--ink-3); }
.info-link { display: inline-flex; align-items: center; gap: 6px; font-weight: 700; overflow-wrap: anywhere; min-height: 2.6rem; }
.info-link svg { width: 1.2rem; height: 1.2rem; }
.ic.inline { display: inline-block; vertical-align: -0.18em; width: 1.1em; height: 1.1em; }
.q-line-head { flex-wrap: wrap; }
.q-line-head .q-title-input { order: 3; flex: 1 1 100%; }
.q-line-head .icon-btn { margin-left: auto; }
.link-row { display: flex; flex-wrap: wrap; column-gap: 14px; margin-top: 2px; }
.link-row .link-btn { min-height: 2.8rem; padding: 6px 2px; font-size: .95rem; }
.btn-sub { display: block; font-size: .78rem; font-weight: 600; color: var(--ink-3); }
.chip-row { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 12px; }
.idea { min-height: 2.8rem; padding: 6px 14px; border-radius: 999px; border: 2px solid var(--line-2); background: var(--surface); font-weight: 600; }
.idea[aria-pressed="true"] { border-color: var(--ink); background: var(--brand-soft); }
.label-like { display: block; font-weight: 700; font-size: 1.05rem; margin-bottom: 8px; }
.warn-text { color: var(--warn-ink); font-weight: 600; }
.warn-text .link-btn { padding: 0 2px; min-height: 0; display: inline; }
.more-details { margin-top: 12px; }
.more-details > summary { min-height: 3rem; display: flex; align-items: center; font-weight: 700; color: var(--ink-2); cursor: pointer; }
.more-details > .field { margin-top: 12px; }
.match-box { margin-top: 12px; padding: 12px; border-radius: 16px; background: var(--ai-soft); border: 2px solid var(--ai); }
.match-box .hint { display: block; margin-top: 8px; }
.picked-line { display: flex; align-items: center; gap: 10px; padding: 8px 12px; margin-bottom: 12px; border-radius: 14px; background: var(--ok-soft); color: var(--ok-ink); }
.picked-line svg { width: 1.3rem; height: 1.3rem; flex: none; }
.picked-line span { flex: 1; min-width: 0; }
.tiles.quick { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.tiles.quick .tile .pic { height: 2.2rem; max-width: 2.2rem; }
.tile.suggested { border-color: var(--ai); }
.tile.suggested .sub { color: var(--ai-ink); }
.phone-line { display: flex; align-items: center; gap: 8px; }
.phone-line + .phone-line { margin-top: 8px; }
.phone-line input { flex: 1; min-width: 0; width: auto; min-height: 3.3rem; padding: 12px 16px; border-radius: 14px; border: 2px solid var(--line-2); background: var(--surface); font-size: 1.1rem; }
.phone-kind { flex: none; min-width: 4.2rem; font-size: .85rem; font-weight: 600; color: var(--ink-3); }
.pay-line { display: flex; align-items: center; gap: 8px; }
.pay-line input { min-width: 0; min-height: 3.1rem; padding: 10px 12px; border-radius: 12px; border: 2px solid var(--line-2); background: var(--surface); font-size: 1.02rem; }
.pay-line input:first-child { flex: none; width: 4.6rem; text-align: right; font-variant-numeric: tabular-nums; }
.pay-line input:nth-of-type(2) { flex: 1; }
.pay-line > span { font-weight: 700; color: var(--ink-2); }
.money-card { display: grid; gap: 6px; }
.money-row { display: flex; justify-content: space-between; gap: 12px; font-size: 1rem; }
.money-row strong { font-variant-numeric: tabular-nums; }
.money-row.total { font-size: 1.15rem; padding-top: 6px; border-top: 2px solid var(--line); }
.money-row.total.due strong { color: var(--bad-ink); }
.q-line-head { display: flex; align-items: center; gap: 8px; min-width: 0; }
.q-line-head .code { flex: none; background: var(--ink); color: #fff; padding: 2px 8px; border-radius: 8px; font-weight: 800; font-size: .9rem; }
.q-line-head strong { flex: 1; min-width: 0; }
.q-title-input { width: 100%; min-width: 0; border: 2px solid var(--line-2); border-radius: 12px; background: var(--surface); padding: 8px 12px; font-size: 1rem; }
.q-title-input { flex: 1; font-weight: 700; min-height: 3rem; }
.q-line-head .icon-btn { width: 2.8rem; height: 2.8rem; }
.q-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
.q-grid.three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.q-cell { gap: 4px; min-width: 0; }
.q-cell > label { font-size: .82rem; font-weight: 700; color: var(--ink-2); }
.q-cell input { min-height: 3rem; padding: 8px 10px; font-size: 1.05rem; font-variant-numeric: tabular-nums; }
.field.q-cell + .field.q-cell { margin-top: 0; }
@media (max-width: 520px) { .q-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 340px) { .q-grid.three { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.opt-seg { padding: 3px; border-radius: 12px; }
.opt-seg button { min-height: 2.6rem; font-size: .85rem; }
.ai-lines p { display: flex; align-items: flex-start; gap: 6px; }
.ai-lines p + p { margin-top: 6px; }
.ai-lines svg { width: 1.1rem; height: 1.1rem; flex: none; margin-top: 3px; }
.photo-grid.small-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.intake-sheet textarea { min-height: 6rem; }
.route-start { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 6px; margin-top: 12px; }
.route-start .small { display: inline-flex; align-items: center; gap: 6px; }
.route-start svg { width: 1.1rem; height: 1.1rem; }
.route-list { border: 2px solid var(--line); border-radius: 18px; background: var(--surface); overflow: hidden; }
.route-stop { display: grid; grid-template-columns: 4rem minmax(0, 1fr) auto; gap: 10px; align-items: center; padding: 10px 12px; }
.route-stop + .route-stop { border-top: 1px solid var(--line); }
.route-time { display: grid; font-variant-numeric: tabular-nums; }
.route-time strong { font-size: 1.15rem; }
.route-body { display: grid; gap: 2px; min-width: 0; }
.route-title { display: flex; align-items: center; gap: 6px; font-weight: 700; color: var(--ink); text-decoration: none; min-height: 2.6rem; overflow-wrap: anywhere; }
.route-title svg { width: 1.1rem; height: 1.1rem; flex: none; }
.route-n { flex: none; width: 1.6rem; height: 1.6rem; border-radius: 50%; background: var(--ink); color: #fff; display: grid; place-items: center; font-size: .85rem; }
.route-nav { min-height: 3rem; width: 3.2rem; padding: 0; }
.route-crew { margin: 18px 0 8px; }
.tiles.compact-tiles .tile { min-height: 3.6rem; }

/* ── Προσφορά: one page in five numbered steps; the final price always in the bottom bar ── */
:root[data-mode="office"] .page.wide { max-width: 72rem; }
.qe-head { display: flex; align-items: flex-start; gap: 12px; margin-top: 4px; }
.qe-head-text { flex: 1; min-width: 0; }
.qe-kicker { font-size: .93rem; font-weight: 700; color: var(--ink-3); margin-bottom: 2px; }
.qe-kicker span { font-weight: 600; }
.qe-who { color: var(--ink-2); margin-top: 4px; }
.qe-links { margin-top: 2px; }
.qe-steps { list-style: none; margin: 8px 0 16px; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); }
.qe-steps li { position: relative; display: grid; justify-items: center; align-content: start; gap: 4px; text-align: center; font-size: .93rem; font-weight: 600; color: var(--ink-3); line-height: 1.2; }
.qe-steps li + li::before { content: ""; position: absolute; top: 14px; right: 50%; width: 100%; height: 2px; background: var(--line-2); }
.qe-steps li.done + li::before { background: var(--ok); }
.qe-dot { position: relative; z-index: 1; width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; background: var(--surface); border: 2px solid var(--line-2); font-weight: 700; font-size: 14px; color: var(--ink-3); }
.qe-dot svg { width: 16px; height: 16px; }
.qe-steps li.now { color: var(--ink); font-weight: 700; }
.qe-steps li.now .qe-dot { background: var(--brand); border-color: var(--ink); color: var(--ink); }
.qe-steps li.done { color: var(--ok-ink); }
.qe-steps li.done .qe-dot { background: var(--ok); border-color: var(--ok); color: #fff; }
.qe-steps li.no { color: var(--bad-ink); font-weight: 700; }
.qe-steps li.no .qe-dot { background: var(--bad); border-color: var(--bad); color: #fff; }

.qe-grid > * + *, .qe-a > * + *, .qe-b > * + * { margin-top: 14px; }
.qe-card { background: var(--surface); border: 2px solid var(--line); border-radius: 18px; padding: 14px; min-width: 0; scroll-margin-top: 4.6rem; }
.qe-card:focus { outline: none; }
.qe-card-head { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; }
.qe-card-head h2 { flex: 1; min-width: 0; font-size: 1.12rem; }
.qe-card-head h2 small { font-size: .93rem; font-weight: 600; color: var(--ink-3); }
.qe-step { flex: none; width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; background: var(--ink); color: #fff; font-weight: 700; font-size: 14px; }
.qe-aside { flex: none; font-weight: 700; font-variant-numeric: tabular-nums; }
.qe-lead { color: var(--ink-2); margin-bottom: 12px; }
.qe-empty { color: var(--ink-3); }
.qe-note { color: var(--ink-2); font-size: .93rem; }
.qe-label { display: block; font-weight: 700; font-size: .93rem; color: var(--ink-2); margin-bottom: 6px; }
.qe-group { font-weight: 700; font-size: .93rem; color: var(--ink-2); margin: 14px 0 6px; }
.qe-group:first-child { margin-top: 0; }
.qe-card .link-row { margin-top: 4px; }
.qe-card .qe-note + .link-row, .qe-card .qe-supplier + .link-row { margin-top: 6px; }
.link-btn.file-btn { cursor: pointer; }
.link-btn.danger-link { color: var(--bad-ink); }
.field > label .opt { font-weight: 600; color: var(--ink-3); }

/* 1 — where the prices come from */
.qe-choices { display: grid; gap: 10px; }
.qe-choice { display: flex; align-items: center; gap: 12px; width: 100%; min-height: 4.2rem; padding: 12px 14px; border-radius: 16px; border: 2px solid var(--line-2); background: var(--surface); color: var(--ink); text-align: left; cursor: pointer; }
.qe-choice > svg { width: 1.6rem; height: 1.6rem; flex: none; }
.qe-choice > span { display: grid; gap: 2px; min-width: 0; }
.qe-choice strong { font-size: 1.02rem; }
.qe-choice small { font-size: .93rem; color: var(--ink-3); }
.qe-choice.ai { border-color: var(--ai); background: var(--ai-soft); color: var(--ai-ink); box-shadow: 0 3px 0 var(--ai); }
.qe-choice.ai small { color: var(--ai-ink); }
.qe-choice:active { transform: translateY(2px); }
.qe-choice:focus-visible, .qe-choice:focus-within { outline: 3px solid var(--ai); outline-offset: 2px; }
.qe-supplier { display: flex; align-items: center; gap: 10px; padding: 8px 8px 8px 12px; border-radius: 14px; background: var(--surface-2); border: 1px solid var(--line); }
.qe-supplier > svg { width: 1.4rem; height: 1.4rem; flex: none; color: var(--ink-3); }
.qe-supplier-text { flex: 1; min-width: 0; display: grid; }
.qe-supplier-text small { font-size: .93rem; color: var(--ink-3); }
.qe-supplier .link-btn { min-height: 2.8rem; padding: 4px 8px; }

/* 2, 3 — one line per item; tap to open it in place */
.qe-list { border: 2px solid var(--line); border-radius: 14px; overflow: hidden; background: var(--surface); }
.qe-card .qe-list { margin: 0 -14px; border-left: 0; border-right: 0; border-radius: 0; }
.qe-row + .qe-row { border-top: 1px solid var(--line); }
.qe-row.item .qe-open { display: grid; grid-template-columns: auto minmax(0, 1fr) auto auto; grid-template-areas: "no title title chev" "no sub money chev"; column-gap: 10px; row-gap: 3px; }
.qe-row.item .qe-no { grid-area: no; align-self: start; }
.qe-row.item .qe-title { grid-area: title; align-self: center; }
.qe-row.item .qe-sub { grid-area: sub; }
.qe-row.item .qe-money { grid-area: money; align-self: end; }
.qe-row.item .qe-chev { grid-area: chev; }
.qe-open { display: flex; align-items: center; gap: 10px; width: 100%; min-height: 3.5rem; padding: 10px 12px 10px 14px; border: 0; background: none; color: var(--ink); text-align: left; }
button.qe-open { cursor: pointer; }
button.qe-open:active { background: var(--surface-2); }
.qe-open:focus-visible { outline: 3px solid var(--ai); outline-offset: -3px; }
.qe-no { flex: none; min-width: 2rem; height: 2rem; padding: 0 4px; border-radius: 9px; display: grid; place-items: center; background: var(--surface-3); border: 2px solid var(--line-2); font-weight: 700; font-size: 14px; }
.qe-no svg { width: 1.1rem; height: 1.1rem; }
.qe-row.warn .qe-no { background: var(--warn-soft); border-color: var(--warn-line); color: var(--warn-ink); }
.qe-text { flex: 1; min-width: 0; display: grid; gap: 1px; }
.qe-title { font-weight: 700; line-height: 1.25; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; line-clamp: 2; overflow: hidden; overflow-wrap: break-word; }
.qe-code { display: inline-block; margin-right: 6px; padding: 0 6px; border-radius: 6px; background: var(--ink); color: #fff; font-size: 14px; line-height: 1.45; }
.qe-sub { display: flex; align-items: center; gap: 4px; font-size: .93rem; font-weight: 600; color: var(--ink-3); line-height: 1.25; }
.qe-sub:empty { display: none; }
.qe-sub svg { width: 1rem; height: 1rem; flex: none; }
.qe-row.warn .qe-sub { color: var(--warn-ink); }
.qe-money { flex: none; display: grid; justify-items: end; text-align: right; font-variant-numeric: tabular-nums; }
.qe-money strong { font-size: 1.02rem; font-weight: 700; white-space: nowrap; }
.qe-money small { font-size: .93rem; color: var(--ink-3); font-weight: 600; white-space: nowrap; }
.qe-money small[hidden] { display: none; }
.qe-chev { width: 1.2rem; height: 1.2rem; flex: none; color: var(--ink-3); }
.qe-row.open { background: var(--surface-2); }
.qe-row.open > .qe-open { border-bottom: 1px dashed var(--line-2); }
.qe-edit { display: grid; gap: 12px; padding: 12px; }
.qe-edit .field + .field { margin-top: 0; }
.qe-edit .field > label { font-size: .93rem; }
.qe-edit .field textarea { min-height: 5.2rem; font-size: 1rem; }
.qe-edit .field > input { min-height: 3rem; padding: 8px 12px; font-size: 1.05rem; }
.qe-edit .hint { margin-top: -4px; }
.qe-edit-foot { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.qe-edit-foot .btn.primary { min-width: 8rem; }
.qe-from { font-size: .93rem; color: var(--ink-2); }
.q-grid { align-items: end; }
.q-grid.two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.qe-input { position: relative; }
.qe-input > span { position: absolute; right: 10px; top: 50%; transform: translateY(-50%); font-weight: 600; font-size: .93rem; color: var(--ink-3); pointer-events: none; }
.qe-input.has-unit > input { padding-right: 2.7rem; }
.qe-toggle { margin-top: 10px; }
.qe-toggle .hint { margin-top: 6px; }

/* 4 — the price: markup, VAT, rounding, a receipt that adds up, then send */
.qe-price { display: grid; gap: 16px; }
.qe-markup-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.qe-markup-row .qe-label { margin: 0; font-size: 1rem; color: var(--ink); }
.qe-quick { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 6px; margin-top: 8px; }
.qe-pct { width: 6.4rem; flex: none; }
.qe-pct input { width: 100%; min-height: 3rem; padding: 8px 2.2rem 8px 12px; border-radius: 12px; border: 2px solid var(--line-2); background: var(--surface); font-size: 1.15rem; font-weight: 700; font-variant-numeric: tabular-nums; }
.qe-pct input:focus { border-color: var(--ink); box-shadow: 0 0 0 4px var(--brand-2); outline: none; }
.qe-quick .idea { min-height: 2.8rem; padding: 4px 2px; font-variant-numeric: tabular-nums; }
.qe-price .hint { margin-top: 6px; }
.qe-price .filter-seg { margin-bottom: 0; }
.qe-receipt { width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums; }
.qe-receipt th, .qe-receipt td { padding: 5px 0; font-weight: 600; vertical-align: baseline; }
.qe-receipt th { text-align: left; color: var(--ink-2); }
.qe-receipt td { text-align: right; white-space: nowrap; padding-left: 12px; color: var(--ink); }
.qe-receipt small { display: block; font-size: .93rem; font-weight: 600; color: var(--ink-3); }
.qe-receipt thead th { text-align: right; padding-left: 12px; font-weight: 700; color: var(--ink-2); }
.qe-receipt tr.sum > * { border-top: 1px solid var(--line); padding-top: 8px; font-weight: 700; color: var(--ink); }
.qe-receipt tr.final > * { border-top: 2px solid var(--ink); padding-top: 10px; font-weight: 700; color: var(--ink); font-size: 1.05rem; }
.qe-receipt tr.final strong { font-size: 1.3rem; }
.qe-receipt tr.bad td { color: var(--bad-ink); }
@media (max-width: 420px) { .qe-receipt.two { font-size: .93rem; } .qe-receipt.two td, .qe-receipt.two thead th { padding-left: 8px; } .qe-receipt.two tr.final strong { font-size: 1.08rem; } }
.qe-ready { display: flex; align-items: center; gap: 8px; padding: 10px 12px; border-radius: 12px; background: var(--ok-soft); color: var(--ok-ink); font-weight: 700; }
.qe-ready svg, .qe-warn svg { width: 1.3rem; height: 1.3rem; flex: none; }
.qe-warn { padding: 10px 12px; border-radius: 12px; background: var(--warn-soft); border: 1px solid var(--warn-line); color: var(--warn-ink); }
.qe-warn p { display: flex; align-items: center; gap: 8px; }
.qe-warn ul { margin: 6px 0 0; padding-left: 1.3em; }
.qe-send .btn { min-width: 0; }
.qe-send .hint { margin-top: 8px; }

/* A sent quote: the customer's answer first */
.qe-state { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 12px; align-items: start; padding: 14px; border-radius: 18px; border: 2px solid var(--line); background: var(--surface); }
.qe-state > svg { width: 1.6rem; height: 1.6rem; margin-top: 2px; }
.qe-state.warn { border-color: var(--warn-line); background: var(--warn-soft); }
.qe-state.warn > svg { color: var(--warn-ink); }
.qe-state.ok { border-color: #9fd3ae; background: var(--ok-soft); }
.qe-state.ok > svg { color: var(--ok-ink); }
.qe-state.no { background: var(--surface-2); }
.qe-state-body { display: grid; gap: 10px; min-width: 0; }
.qe-state .link-row { margin-top: -6px; }

/* 5 and the history: folded until needed */
.qe-fold > summary { display: flex; align-items: center; gap: 8px; min-height: 2.9rem; font-weight: 600; color: var(--ink-2); cursor: pointer; }
.qe-fold-body { display: grid; gap: 14px; padding-top: 8px; }
.qe-fold-body .field + .field { margin-top: 0; }
.qe-history { padding: 2px 14px; border-radius: 18px; border: 2px solid var(--line); background: var(--surface); }
.qe-history > .qe-fold-body { padding-bottom: 12px; }

/* The bottom bar: the final price (tap: the price card), and the PDF */
.bottombar-inner.has-sum { grid-template-columns: minmax(0, 1.5fr) auto minmax(0, 1fr); }
.bb-btn.bb-sum { align-items: flex-start; text-align: left; gap: 0; padding: 4px 12px; }
.bb-sum > span { font-size: 14px; font-weight: 600; color: var(--ink-3); }
.bb-sum > strong { font-size: 18px; font-weight: 700; line-height: 1.15; font-variant-numeric: tabular-nums; white-space: nowrap; }
.bb-sum > strong.two { font-size: 15px; }

/* Wide screens: the price stays in view next to the items */
@media (min-width: 64rem) {
  .qe-grid.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(20rem, 24rem); grid-template-areas: "a side" "b side"; grid-template-rows: auto 1fr; column-gap: 22px; row-gap: 14px; align-items: start; }
  .qe-grid.split > * + * { margin-top: 0; }
  .qe-grid.split > .qe-a { grid-area: a; }
  .qe-grid.split > .qe-b { grid-area: b; }
  .qe-grid.split > .qe-side { grid-area: side; position: sticky; top: 4.6rem; max-height: calc(100vh - 4.6rem - var(--bar-h) - 64px); overflow: auto; border-radius: 18px; }
  .qe-choices { grid-template-columns: repeat(auto-fit, minmax(14rem, 1fr)); }
}

/* Προσφορές list and «Νέα προσφορά»: the app's list rows, with the state as an icon */
.qs-list { margin-top: 14px; }
.qs-list .op-lines + .list-group { margin-top: 18px; }
.qs-ic { width: 2.4rem; height: 2.4rem; border-radius: 10px; display: grid; place-items: center; flex: none; background: var(--surface-3); color: var(--ink-2); }
.qs-ic svg { width: 1.3rem; height: 1.3rem; }
.qs-line.draft .qs-ic { background: var(--brand-soft); color: var(--ink); }
.qs-line.sent .qs-ic { background: var(--warn-soft); color: var(--warn-ink); }
.qs-line.accepted .qs-ic { background: var(--ok-soft); color: var(--ok-ink); }
.qs-line.rejected .op-room { color: var(--ink-3); }
.qs-amount { flex: none; display: grid; justify-items: end; padding-right: 6px; font-weight: 700; font-variant-numeric: tabular-nums; text-align: right; white-space: nowrap; }
.qs-amount small { font-size: .93rem; font-weight: 600; color: var(--ink-2); }
.qs-line .op-sub .warn-text { font-weight: 700; }
.op-open .qe-chev { margin-right: 4px; }
.qs-empty .btn { margin-top: 12px; }
.qs-new { margin-top: 10px; }
.qs-new .hint { margin-top: -4px; }
.offer-check { margin-top: 2px; }

/* ══ Finish: light and dark ═══════════════════════════════════════════════════
   Softer edges and shadows and calmer weights, with the same big targets and strong text contrast. */

/* Frame */
.topbar { background: var(--topbar-bg); border-bottom: 1px solid var(--line); }
.topbar .brand-mark { background: #ffffff; border-radius: 11px; padding: 3px; box-shadow: var(--shadow-sm); }
.status-pill { border-width: 1px; min-height: 2.9rem; font-weight: 600; box-shadow: var(--shadow-sm); }
.status-pill.ok { border-color: var(--ok-line); }
.status-pill.bad { border-color: var(--bad-line); }
.back { border: 0; }
.back:hover { background: var(--surface-3); }
.bottombar { background: var(--bar-bg); border-top: 1px solid var(--line); box-shadow: 0 -8px 28px rgba(0, 0, 0, .07); -webkit-backdrop-filter: saturate(1.3) blur(12px); backdrop-filter: saturate(1.3) blur(12px); }
.bb-btn { border: 1.5px solid var(--line-2); background: var(--surface); color: var(--ink); box-shadow: var(--shadow-sm); font-weight: 700; }
.bb-btn.ghost { border-color: var(--line); }
.bb-btn.primary { background: var(--brand); border-color: var(--brand-edge); color: var(--brand-ink); box-shadow: 0 2px 0 var(--brand-edge); }
.bb-btn.primary:active { box-shadow: none; transform: translateY(2px); }
.bb-mic { background: var(--mic-bg); color: var(--mic-ink); border: 0; box-shadow: 0 6px 16px rgba(0, 0, 0, .28); }
.bb-mic span { color: var(--mic-label); }
.bb-mic:active { box-shadow: 0 2px 6px rgba(0, 0, 0, .3); }
.bb-mic.listening { background: var(--bad); color: #ffffff; }
.bb-mic.listening span { color: #ffffff; }
@keyframes pulse { 0%, 100% { box-shadow: 0 6px 16px rgba(0, 0, 0, .28), 0 0 0 0 rgba(184, 35, 26, .5); } 50% { box-shadow: 0 6px 16px rgba(0, 0, 0, .28), 0 0 0 12px rgba(184, 35, 26, 0); } }

/* Buttons */
.btn { border: 1.5px solid var(--line-2); box-shadow: var(--shadow-sm); font-weight: 700; }
.btn.primary { background: var(--brand); border-color: var(--brand-edge); color: var(--brand-ink); box-shadow: 0 2px 0 var(--brand-edge), 0 6px 16px rgba(211, 155, 0, .16); }
.btn.primary:active:not(:disabled) { box-shadow: 0 0 0 var(--brand-edge); }
.btn.dark { background: var(--inverse); border-color: var(--inverse); color: var(--on-inverse); }
.btn.ok { background: var(--ok); border-color: var(--ok); color: #ffffff; box-shadow: 0 2px 0 rgba(0, 0, 0, .25); }
.btn.ok:active:not(:disabled) { box-shadow: none; }
.btn.danger { border-color: var(--bad-line); color: var(--bad-ink); }
.btn.danger.solid { background: var(--bad); border-color: var(--bad); color: #ffffff; }
.btn.ai { border-color: var(--ai-line); color: var(--ai-ink); background: var(--ai-soft); }
.btn.ghost { border-color: transparent; background: transparent; box-shadow: none; }
.btn:where(.link-btn) { border: 0; background: transparent; box-shadow: none; }
.two-btn .btn, .task-actions .btn { padding-left: 12px; padding-right: 12px; }
.btn:disabled { box-shadow: none; }
.icon-btn { border: 1.5px solid var(--line-2); box-shadow: var(--shadow-sm); color: var(--ink); }
.link-btn { color: var(--ai-ink); font-weight: 700; }

/* Surfaces: cards and lists */
.card, .project-card, .opening-card, .op-lines, .list, .order-item, .review-group, .check-hero, .sketch-card, .tool-card,
.info-card, .route-list, .rec, .op-row, .op-del, .compare .side, .checklist li, .issue, .prop-card, .prop, .more-box, .answer-row, .notice {
  border-width: 1px;
}
.card, .project-card, .opening-card, .op-lines, .list, .order-item, .review-group, .check-hero, .sketch-card, .tool-card, .info-card, .route-list, .op-row { box-shadow: var(--shadow-sm); }
.card.brand { background: var(--brand); color: var(--brand-ink); border-color: var(--brand-edge); box-shadow: 0 2px 0 var(--brand-edge), var(--shadow); }
.card.brand .muted, .card.brand .hint { color: rgba(21, 24, 27, .72); }
.empty { border: 1.5px dashed var(--line-2); background: var(--surface-2); }
.project-card:hover, .tool-card:hover, .op-open:hover, button.list-row:hover, .qe-choice:hover { background-color: var(--surface-2); }
.tool-card { border-radius: 18px; }
.tool-icon { background: var(--ai-soft); color: var(--ai); border-radius: 12px; }
.info-row + .info-row, .list-row, .op-line + .op-line, .route-stop + .route-stop { border-color: var(--line); }

/* Codes and numbers in dark pills */
.opening-card .code, .op-row .code, .code-pill, .opening-head .code-big, .wiz-head .code-big, .q-line-head .code, .route-n, .qe-step, .qe-code { background: var(--inverse); color: var(--on-inverse); }
.chip { border-width: 1px; font-weight: 700; }
.chip.ok { border-color: var(--ok-line); }
.chip.ai { border-color: var(--ai-line); }
.chip.dark { background: var(--inverse); border-color: var(--inverse); color: var(--on-inverse); }
.checklist li.ok, .issue.ok { border-color: var(--ok-line); }
.issue.bad { border-color: var(--bad-line); }
.notice.ok { border-color: var(--ok-line); }
.notice.info { border-color: var(--ai-line); }
.notice.bad { border-color: var(--bad-line); }
.notice.ai { border-color: var(--ai-line); }

/* Fields */
.input, .field input, .field select, .field textarea, .phone-line input, .pay-line input, .q-title-input { border-width: 1.5px; background: var(--surface); color: var(--ink); }
.field input:focus, .field textarea:focus, .field select:focus, .phone-line input:focus, .pay-line input:focus, .q-title-input:focus { border-color: var(--ink); box-shadow: 0 0 0 3px var(--brand-2); outline: none; }
.field input::placeholder, .field textarea::placeholder { color: var(--ink-3); opacity: .75; }
input[type="date"], input[type="time"] { color-scheme: inherit; }

/* Choices */
.tile { border: 1.5px solid var(--line-2); box-shadow: var(--shadow-sm); font-weight: 700; }
.tile[aria-pressed="true"], .tile:has(input:checked) { border: 2px solid var(--picked-line); background: var(--brand-soft); padding: 9.5px 11.5px; }
.tile[aria-pressed="true"]::after {
  background: var(--brand) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2315181b' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E") center / 68% no-repeat;
  border: 2px solid var(--surface); box-shadow: var(--shadow-sm);
}
.tile .swatch { border: 1.5px solid var(--line-2); }
.segmented { border: 1px solid var(--line); background: var(--surface-3); }
.segmented button { color: var(--ink-2); font-weight: 700; }
.segmented button[aria-pressed="true"] { background: var(--surface); color: var(--ink); border: 1.5px solid var(--ink); box-shadow: var(--shadow-sm); }
.toggle-row { border: 1.5px solid var(--line-2); box-shadow: var(--shadow-sm); font-weight: 700; }
.toggle-row .box { border: 2px solid var(--line-2); border-radius: 8px; }
.toggle-row[aria-checked="true"] { border-color: var(--brand-edge); background: var(--brand-soft); }
.toggle-row[aria-checked="true"] .box { background: var(--brand); border-color: var(--brand-edge); color: var(--brand-ink); }
.idea { border: 1.5px solid var(--line-2); font-weight: 700; }
.idea[aria-pressed="true"] { border-color: var(--picked-line); background: var(--brand-soft); }
.more-toggle, .live-text, .ref-box { border-width: 1.5px; }
.value-btn { border-width: 2px; }
.value-btn.empty { border-width: 1.5px; }
.step-btn { border-width: 1.5px; }
.step-btn[aria-current="step"] { background: var(--inverse); border-color: var(--inverse); color: var(--on-inverse); }
.step-btn[aria-current="step"] .sname { color: var(--on-inverse); }
.question { border: 1.5px solid var(--line-2); box-shadow: 0 3px 0 var(--brand), var(--shadow); }
.answer-row { background: var(--surface); }
.prop-card { border-color: var(--ok-line); }
.prop-card.off { border-color: var(--line); }
.prop-card-main .tick { border: 0; }
.prop-card.off .tick { border: 2px solid var(--line-2); }
.prop[aria-checked="true"] { border-color: var(--ok-line); }
.prop .tick, .prop-group { border-width: 2px; border-color: var(--line-2); }
.prop[aria-checked="true"] .tick { border-color: var(--ok); }
.answer-banner { background: var(--inverse); color: var(--on-inverse); }

/* Keypad */
.kp-display { border: 2px solid var(--ink); }
.kp-grid button { border: 1.5px solid var(--line-2); box-shadow: 0 2px 0 var(--line-2); font-weight: 700; }
.kp-grid button:active { box-shadow: none; }

/* Sheets, dialogs and the «Αναίρεση» bar */
.overlay { background: var(--overlay); }
.sheet { border: 0; box-shadow: var(--shadow-lg); }
.overlay.center .sheet { border: 0; }
.sheet-grip { background: var(--line-2); }
.sheet-head .icon-btn { border-color: var(--line-2); }
.toast { background: var(--inverse); color: var(--on-inverse); box-shadow: var(--shadow-lg); }
.toast-x { color: var(--on-inverse); }
.toast-btn { border: 0; box-shadow: 0 2px 0 var(--brand-edge); }
.mic-orb.idle { background: var(--mic-bg); color: var(--mic-ink); border-color: transparent; }
.banner { background: #2b40d4; color: #ffffff; }
.banner .btn { border-color: #ffffff; }
.live-dock { background: #15181b; border-top: 1px solid var(--line); }

/* Sign-in: the yellow band keeps dark text in both themes */
.login-hero { color: var(--brand-ink); }
.login-brand .brand-logo { background: #ffffff; border: 0; box-shadow: 0 2px 0 var(--brand-edge), var(--shadow); }
.login-card { border: 1px solid var(--line); box-shadow: var(--shadow-lg); }
.login-card .btn.dark { box-shadow: 0 2px 0 rgba(0, 0, 0, .5); }

/* Drawings: dark lines on light glass, or the same drawing turned light-on-dark in the dark theme. */
:root[data-theme="dark"] svg.sketch { filter: invert(1) hue-rotate(180deg); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) svg.sketch { filter: invert(1) hue-rotate(180deg); } }
.paper svg.sketch, .qd svg.sketch { filter: none !important; }
:root[data-theme="dark"] .maps-attribution { border-radius: 0 0 10px 10px; }

/* Wider screens: the action bar floats as a dock under the content */
@media (min-width: 900px) {
  .bottombar { left: 50%; right: auto; bottom: 16px; width: min(46rem, calc(100% - 48px)); transform: translateX(-50%); padding: 8px; border: 1px solid var(--line); border-radius: 22px; box-shadow: var(--shadow-lg); }
  .bottombar-inner { max-width: none; }
  .page { padding-top: 26px; padding-bottom: calc(var(--bar-h) + 72px); }
  .toast { bottom: calc(var(--bar-h) + 44px); }
}

/* Small fixes */
.compact-tiles .tile { overflow-wrap: normal; word-break: keep-all; hyphens: manual; font-size: .95rem; }
@media (max-width: 520px) { .qe-send .two-btn { grid-template-columns: minmax(0, 1fr); } }

/* Tablets and computers: the top bar lines up with the page under it; the tools side by side. */
@media (min-width: 760px) {
  .tool-list { grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: stretch; }
  .tool-list .tool-card { height: 100%; }
}
@media (min-width: 900px) {
  .topbar { padding-left: max(10px, calc(50% - 23rem + 6px)); padding-right: max(10px, calc(50% - 23rem + 6px)); }
  :root[data-mode="office"] .topbar { padding-left: max(10px, calc(50% - 30rem + 6px)); padding-right: max(10px, calc(50% - 30rem + 6px)); }
  .topbar.wide, :root[data-mode="office"] .topbar.wide { padding-left: max(10px, calc(50% - 36rem + 6px)); padding-right: max(10px, calc(50% - 36rem + 6px)); }
}

/* A computer: the quote's price column holds the final price and the PDF, so the floating bar is not needed there. */
@media (min-width: 64rem) {
  #app:has(.qe-grid.split) .bottombar { display: none; }
  #app:has(.qe-grid.split) .page { padding-bottom: 48px; }
  .qe-grid.split > .qe-side { max-height: calc(100vh - 4.6rem - 24px); }
}

/* ── Computer: two columns — a page's tools on the left, its content on the right; the home shows today's work ── */
.desk-only { display: none; }
.dash-side { display: none; }
.d-list { margin-top: 12px; }
.d-export { margin-top: 22px; }
.d-export .hint { margin-top: 6px; }
.route-note { margin-top: 12px; }
.dpanel { background: var(--surface); border: 1px solid var(--line); border-radius: 18px; box-shadow: var(--shadow-sm); padding: 14px 14px 4px; min-width: 0; }
.dpanel-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 6px; }
.dpanel-head h2 { font-size: 1.05rem; }
.dpanel-link { display: inline-flex; align-items: center; gap: 2px; min-height: 2.6rem; font-weight: 700; font-size: .93rem; color: var(--ai-ink); text-decoration: none; }
.dpanel .op-lines { margin: 0 -14px; border-left: 0; border-right: 0; border-bottom: 0; border-radius: 0; box-shadow: none; }
.dpanel .list-group { margin: 6px 0; }
.dpanel .op-lines + .list-group { margin-top: 12px; }
.dpanel .qe-empty { padding: 4px 0 12px; }
.dsum { margin-top: 14px; padding: 4px 14px; background: var(--surface); border: 1px solid var(--line); border-radius: 16px; box-shadow: var(--shadow-sm); }
.dsum-row { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; padding: 9px 0; font-weight: 600; color: var(--ink-2); }
.dsum-row + .dsum-row { border-top: 1px solid var(--line); }
.dsum-row strong { color: var(--ink); text-align: right; font-variant-numeric: tabular-nums; }
.dsum-row.late span, .dsum-row.late strong { color: var(--bad-ink); }
.dsum .btn { margin: 6px 0 10px; }
.d-new { margin-bottom: 12px; }
.qs-ic.initials { border-radius: 50%; background: var(--ai-soft); color: var(--ai-ink); font-weight: 700; font-size: .93rem; letter-spacing: .02em; }
.qs-amount.owes { color: var(--bad-ink); }
.qs-amount.owes small { color: var(--bad-ink); font-weight: 600; }
@media (min-width: 760px) {
  .dash-side { display: grid; gap: 16px; margin-top: 28px; }
}
@media (min-width: 1100px) {
  .desk-only { display: block; }
  .phone-only { display: none; }
  :root .page:has(> .dsplit), :root .page:has(> .dash) { max-width: 80rem; }
  #app:has(.page > .dsplit) .topbar, #app:has(.page > .dash) .topbar { padding-left: max(10px, calc(50% - 40rem + 6px)); padding-right: max(10px, calc(50% - 40rem + 6px)); }
  .dsplit { display: grid; grid-template-columns: 21rem minmax(0, 1fr); column-gap: 36px; align-items: start; }
  .dsplit.detail { grid-template-columns: minmax(0, 27rem) minmax(0, 1fr); }
  .dsplit-side, .dsplit-main { min-width: 0; }
  .dsplit-main > :first-child { margin-top: 0; }
  .dsplit.browse > .dsplit-side { position: sticky; top: 4.6rem; max-height: calc(100vh - 4.6rem - var(--bar-h) - 48px); overflow: auto; padding: 2px 6px 18px 2px; }
  .dsplit-side .task-actions { grid-template-columns: minmax(0, 1fr); }
  .dsplit-side .task-actions > * { grid-column: auto; }
  .dsplit-side .filter-seg { grid-auto-flow: row; grid-auto-columns: auto; }
  .dsplit-side .filter-seg button { min-height: 2.8rem; padding: 0 14px; text-align: left; font-size: .95rem; }
  .dsplit.detail .dsplit-main > .section:first-child, .dsplit.detail .dsplit-main > section:first-child { margin-top: 0; }
  .dash { display: grid; grid-template-columns: minmax(0, 1fr) 27rem; column-gap: 36px; align-items: start; }
  .dash-side { margin-top: 0; }
}

/* Customer details, as in Google Contacts: labels beside the numbers, the optional details folded */
.phone-line select, .ce-item select { flex: none; min-height: 3.3rem; max-width: 9.5rem; padding: 0 8px; border-radius: 12px; border: 1.5px solid var(--line-2); background: var(--surface); color: var(--ink); font-size: .95rem; }
.ce-more { display: grid; grid-template-columns: minmax(0, 1fr); gap: 18px; padding: 14px; border-radius: 16px; background: var(--surface-2); border: 1px solid var(--line); }
.ce-group { display: grid; grid-template-columns: minmax(0, 1fr); gap: 8px; min-width: 0; }
.ce-group > .label-like { margin: 0; font-size: 1rem; }
.ce-group .field + .field { margin-top: 0; }
.ce-group .q-grid { gap: 10px; align-items: start; }
.ce-group input { min-width: 0; }
.ce-item { display: flex; align-items: center; gap: 8px; }
.ce-item > input, .ce-rel-fields input { flex: 1; min-width: 0; min-height: 3.1rem; padding: 8px 12px; border-radius: 12px; border: 1.5px solid var(--line-2); background: var(--surface); color: var(--ink); font-size: 1rem; }
.ce-item > input:focus, .ce-rel-fields input:focus, .ce-item select:focus, .phone-line select:focus { border-color: var(--ink); box-shadow: 0 0 0 3px var(--brand-2); outline: none; }
.ce-rel-fields { flex: 1; min-width: 0; display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 8px; }
.ce-rel-fields input:last-child { grid-column: 1 / -1; }
.ce-item .icon-btn { width: 2.9rem; height: 2.9rem; align-self: flex-start; margin-top: 2px; }
.ce-dl { margin: 4px 0 0; display: grid; gap: 6px; }
.ce-dl > div { display: grid; grid-template-columns: minmax(6.5rem, auto) minmax(0, 1fr); gap: 10px; }
.ce-dl dt { color: var(--ink-3); font-weight: 600; }
.ce-dl dd { margin: 0; font-weight: 600; overflow-wrap: anywhere; }
.ce-rel, .ce-addr { display: block; }
.ce-addr { margin-top: 4px; }
.more-toggle .opt { font-weight: 600; color: var(--ink-3); }
@media (max-width: 400px) { .phone-line select, .ce-item select { max-width: 7.6rem; } }
@media (max-width: 380px) {
  .ce-group .q-grid.two { grid-template-columns: minmax(0, 1fr); }
  .ce-item { flex-wrap: wrap; }
  .ce-item > input { flex-basis: 100%; }
  .ce-item > select { flex: 1; max-width: none; }
}

/* ── Χάρτης εκκρεμοτήτων: Google map with our pins, then the «Κοντά μαζί» groups ── */
/* Pin colours stay the same in both themes: they sit on the map, not on the page. */
:root { --pin-bad: #c62828; --pin-soon: #ffc21a; --pin-week: #2b59c3; --pin-later: #5f6670; }
.t-bad { --pin: var(--pin-bad); --pin-ink: #ffffff; }
.t-soon { --pin: var(--pin-soon); --pin-ink: #15181b; }
.t-week { --pin: var(--pin-week); --pin-ink: #ffffff; }
.t-later { --pin: var(--pin-later); --pin-ink: #ffffff; }
.head-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.head-row .btn { flex: none; min-height: 2.9rem; }
.map-box { position: relative; height: min(60vh, 36rem); min-height: 17rem; border-radius: 18px; overflow: hidden; border: 1px solid var(--line); background: var(--surface-3); box-shadow: var(--shadow-sm); isolation: isolate; scroll-margin-top: 5rem; }
.map-box.map-note { height: auto; min-height: 0; border: 0; background: none; box-shadow: none; overflow: visible; }
.map-loading { position: absolute; inset: 0; display: grid; place-content: center; justify-items: center; gap: 8px; color: var(--ink-3); font-weight: 600; }
.gmap { position: absolute; inset: 0; }
.gm-pin { position: absolute; transform: translate(-50%, -50%); width: 2.3rem; height: 2.3rem; padding: 0; display: grid; place-items: center; border-radius: 50%; border: 2px solid #ffffff; background: var(--pin, var(--pin-later)); color: var(--pin-ink, #ffffff); box-shadow: 0 1px 3px rgba(0, 0, 0, .35), 0 4px 12px rgba(0, 0, 0, .2); cursor: pointer; font: inherit; }
.gm-pin::before { content: ''; position: absolute; inset: -7px; border-radius: 50%; } /* a bigger target for a finger */
.gm-pin svg { width: 1.15rem; height: 1.15rem; }
.gm-pin.many { width: 2.8rem; height: 2.8rem; border-width: 3px; font-weight: 700; font-size: 1.05rem; }
.gm-pin.approx { border-style: dashed; }
.gm-pin.dim { opacity: .35; }
.gm-pin.sel { box-shadow: 0 0 0 3px #15181b, 0 0 0 6px var(--pin-soon); z-index: 5000 !important; }
.gm-pin:focus-visible { outline: 3px solid #15181b; outline-offset: 3px; }
.gm-me { position: absolute; transform: translate(-50%, -50%); width: 18px; height: 18px; border-radius: 50%; background: #1a73e8; border: 3px solid #ffffff; box-shadow: 0 0 0 9px rgba(26, 115, 232, .22); pointer-events: none; z-index: 6000; }
.gm-base { position: absolute; transform: translate(-50%, -50%); width: 1.9rem; height: 1.9rem; display: grid; place-items: center; border-radius: 8px; background: #15181b; color: #ffc21a; border: 2px solid #ffffff; box-shadow: 0 1px 3px rgba(0, 0, 0, .35); pointer-events: none; }
.gm-base svg { width: 1.05rem; height: 1.05rem; }
.map-legend { display: flex; flex-wrap: wrap; align-items: center; gap: 2px 14px; margin-top: 10px; font-size: .86rem; color: var(--ink-2); }
.map-legend > span { display: inline-flex; align-items: center; gap: 6px; min-height: 1.8rem; }
.map-legend .dot, .near-count { background: var(--pin); color: var(--pin-ink); border: 2px solid #ffffff; box-shadow: 0 0 0 1px var(--line-2); }
.map-legend .dot { width: .85rem; height: .85rem; border-radius: 50%; border-width: 1.5px; }
.map-legend .link-btn { margin-left: auto; min-height: 2.6rem; font-size: .93rem; }
.map-focus { display: flex; align-items: center; gap: 10px; margin-bottom: 8px; min-width: 0; }
.map-focus strong { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.map-focus .link-btn { margin-left: auto; min-height: 2.6rem; font-size: .93rem; flex: none; }
.near-list > .section-title { margin: 22px 0 2px; }
.near-hint { margin-bottom: 4px; }
.near-group { margin-top: 18px; }
.near-head { display: flex; align-items: center; gap: 10px; width: 100%; min-height: 3.2rem; padding: 4px 6px; margin: 0 -6px 6px; border: 0; border-radius: 14px; background: none; text-align: left; color: var(--ink); }
button.near-head:hover { background: var(--surface-2); }
.near-group.focus .near-head { background: var(--brand-soft); }
.near-count { flex: none; width: 2.3rem; height: 2.3rem; border-radius: 50%; display: grid; place-items: center; font-weight: 700; font-size: .98rem; }
.map-focus .near-count { width: 2rem; height: 2rem; font-size: .9rem; }
.near-title { display: grid; min-width: 0; }
.near-title strong { font-size: 1.08rem; }
.near-go { margin-left: auto; color: var(--ai-ink); }
.near-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 14px; margin-top: 10px; }
.near-actions .hint { flex-basis: 100%; }
.near-actions .link-btn { min-height: 2.8rem; }
.near-done { display: inline-flex; align-items: center; gap: 6px; font-weight: 700; color: var(--ok-ink); }
.near-done svg { width: 1.2rem; height: 1.2rem; }
.pin-info { display: flex; align-items: flex-start; gap: 8px; color: var(--ink-2); }
.pin-info svg { width: 1.3rem; height: 1.3rem; margin-top: 1px; }
.pin-info .tag { margin-left: 2px; }
/* Phone and tablet: the map first, the groups under it. A computer: the groups on the left, the map stays in view. */
@media (max-width: 1099.98px) { .map-split { display: flex; flex-direction: column; } .map-split > .dsplit-main { order: -1; } }
@media (min-width: 1100px) {
  .dsplit.map-split { grid-template-columns: minmax(0, 25rem) minmax(0, 1fr); }
  .map-split > .dsplit-main { position: sticky; top: 4.6rem; }
  .map-split .map-box:not(.map-note) { height: calc(100vh - 4.6rem - var(--bar-h) - 96px); max-height: none; }
  .near-list > .section-title { margin-top: 0; }
}
