/* Πιστοφίδης & Συνεργάτες · Τηλεφωνήματα
   Χαρτί, γραφίτης και ένα βαθύ πράσινο. Didot για τους τίτλους, Commissioner για το κείμενο. */

@font-face { font-family: "Didot GFS"; src: url("fonts/gfsdidot-greek.woff2") format("woff2"); font-weight: 400; font-display: swap;
  unicode-range: U+0370-0377, U+037A-037F, U+0384-038A, U+038C, U+038E-03A1, U+03A3-03FF; }
@font-face { font-family: "Didot GFS"; src: url("fonts/gfsdidot-greek-ext.woff2") format("woff2"); font-weight: 400; font-display: swap;
  unicode-range: U+1F00-1FFF; }
@font-face { font-family: "Didot GFS"; src: url("fonts/gfsdidot-latin.woff2") format("woff2"); font-weight: 400; font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2212; }
@font-face { font-family: "Commissioner"; src: url("fonts/commissioner-greek.woff2") format("woff2"); font-weight: 300 700; font-display: swap;
  unicode-range: U+0370-0377, U+037A-037F, U+0384-038A, U+038C, U+038E-03A1, U+03A3-03FF; }
@font-face { font-family: "Commissioner"; src: url("fonts/commissioner-latin.woff2") format("woff2"); font-weight: 300 700; font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }

:root {
  --stone: #F3F3F0;      /* φόντο σελίδας */
  --paper: #FFFFFF;      /* επιφάνειες */
  --ink: #1B1E20;        /* κείμενο */
  --ink-2: #555A5D;      /* δευτερεύον κείμενο */
  --ink-3: #6F7477;      /* βοηθητικά (AA πάνω σε λευκό) */
  --rule: #E2E3DF;       /* γραμμές */
  --rule-2: #D2D4CF;
  --green: #22443A;      /* κύριο χρώμα */
  --green-ink: #1A352D;
  --green-wash: #EAF0ED;
  --urgent: #A0301D;
  --urgent-wash: #F7EAE7;
  --high: #85601A;
  --high-wash: #F6F0E2;
  --focus: #2E6B58;

  --serif: "Didot GFS", "Didot", "Bodoni 72", Georgia, serif;
  --sans: "Commissioner", system-ui, -apple-system, "Segoe UI", sans-serif;

  --t-xs: 12.5px; --t-sm: 13.5px; --t-base: 15px; --t-md: 17px; --t-lg: 22px; --t-xl: 30px; --t-display: 42px;
  --r-sm: 6px; --r: 10px; --r-lg: 14px;
  --side: 248px;
  --panel: 540px;
  --ease: cubic-bezier(.2, .7, .2, 1);
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--stone); color: var(--ink);
  font: 400 var(--t-base)/1.55 var(--sans);
  font-feature-settings: "kern", "liga", "tnum" 0;
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
}
h1, h2, h3, p { margin: 0; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; background: none; border: 0; padding: 0; }
:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; border-radius: 4px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.muted { color: var(--ink-2); }
.small { font-size: var(--t-sm); }
.num { font-variant-numeric: tabular-nums; }

.ico { width: 18px; height: 18px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.ico.sm { width: 15px; height: 15px; }
.ico.lg { width: 22px; height: 22px; }

/* ------------------------------------------------------------ κέλυφος */

.shell { min-height: 100dvh; }
.side {
  position: fixed; inset: 0 auto 0 0; width: var(--side); display: none; flex-direction: column;
  padding: 28px 18px 18px; border-right: 1px solid var(--rule); background: var(--stone);
}
.brand { padding: 0 10px 28px; }
.brand b { display: block; font: 400 26px/1.05 var(--serif); letter-spacing: .01em; }
.brand span { display: block; margin-top: 4px; font-size: var(--t-sm); color: var(--ink-2); }
.nav { display: flex; flex-direction: column; gap: 2px; }
.nav a {
  display: flex; align-items: center; gap: 12px; padding: 9px 10px; border-radius: var(--r-sm);
  color: var(--ink-2); font-weight: 450;
}
.nav a:hover { color: var(--ink); background: rgba(27, 30, 32, .04); }
.nav a[aria-current="page"] { color: var(--ink); background: var(--paper); box-shadow: inset 0 0 0 1px var(--rule); }
.nav .count { margin-left: auto; }
.count {
  min-width: 20px; height: 20px; padding: 0 6px; border-radius: 10px; display: inline-grid; place-items: center;
  background: var(--ink); color: #fff; font-size: 11.5px; font-weight: 600; font-variant-numeric: tabular-nums;
}
.count.urgent { background: var(--urgent); }
.side-foot { margin-top: auto; display: flex; flex-direction: column; gap: 14px; }
.elena-now { padding: 12px; border-radius: var(--r); background: var(--paper); box-shadow: inset 0 0 0 1px var(--rule); }
.elena-now .lbl { font-size: var(--t-xs); color: var(--ink-3); }
.elena-now b { display: block; font-weight: 550; margin-top: 2px; }
.elena-now span.why { font-size: var(--t-xs); color: var(--ink-2); }
.pulse { display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: var(--green); margin-right: 7px; vertical-align: 1px; }
.who { display: flex; align-items: center; gap: 10px; padding: 0 4px 0 10px; }
.who .grow { min-width: 0; }
.who b { display: block; font-weight: 500; font-size: var(--t-sm); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.main { min-width: 0; }
.topbar {
  position: sticky; top: 0; z-index: 5; display: flex; align-items: center; gap: 8px;
  padding: max(10px, env(safe-area-inset-top)) 16px 10px; background: rgba(243, 243, 240, .92);
  backdrop-filter: saturate(1.2) blur(8px); border-bottom: 1px solid var(--rule);
}
.topbar h1 { font: 400 22px/1.2 var(--serif); flex: 1; }
.topbar .brandmark { font: 400 20px/1 var(--serif); flex: 1; }
main { padding: 20px 16px calc(96px + env(safe-area-inset-bottom)); max-width: 980px; }

.tabbar {
  position: fixed; inset: auto 0 0 0; z-index: 6; display: grid; grid-template-columns: repeat(4, 1fr);
  background: rgba(255, 255, 255, .96); backdrop-filter: blur(10px); border-top: 1px solid var(--rule);
  padding-bottom: env(safe-area-inset-bottom);
}
.tabbar a { position: relative; display: flex; flex-direction: column; align-items: center; gap: 3px; padding: 9px 4px 8px; color: var(--ink-3); font-size: 11.5px; font-weight: 500; min-height: 56px; }
.tabbar a[aria-current="page"] { color: var(--ink); }
.tabbar a[aria-current="page"]::before { content: ""; position: absolute; top: 0; left: 30%; right: 30%; height: 2px; background: var(--green); border-radius: 0 0 2px 2px; }
.tabbar .count { position: absolute; top: 5px; left: calc(50% + 6px); height: 17px; min-width: 17px; font-size: 10.5px; padding: 0 5px; }

@media (min-width: 900px) {
  .side { display: flex; }
  .main { margin-left: var(--side); }
  .topbar, .tabbar { display: none; }
  main { padding: 44px 48px 80px; }
  .shell.with-panel main { margin-right: min(var(--panel), 46vw); }
}
@media (min-width: 900px) and (max-width: 1180px) {
  .shell.with-panel main { margin-right: 0; }
}

/* ------------------------------------------------------------ τυπογραφία σελίδας */

.page-head { display: flex; align-items: flex-end; gap: 16px; margin-bottom: 24px; }
.page-head .grow { flex: 1; min-width: 0; }
.page-head h1 { font: 400 var(--t-xl)/1.15 var(--serif); letter-spacing: .005em; }
.page-head p { margin-top: 6px; color: var(--ink-2); max-width: 62ch; }
.page-head.hide-narrow { display: none; }
@media (min-width: 900px) { .page-head.hide-narrow { display: flex; } }

.section { margin-top: 36px; }
.section:first-child { margin-top: 0; }
.section-head { display: flex; align-items: baseline; gap: 12px; margin-bottom: 10px; }
.section-head h2 { font: 400 var(--t-lg)/1.2 var(--serif); flex: 1; }
.section-head .side-note { font-size: var(--t-sm); color: var(--ink-3); }

/* Η αρχική: η μέρα, γραμμένη. */
.salute { padding: 6px 0 30px; border-bottom: 1px solid var(--rule); margin-bottom: 30px; }
.salute .date { font-size: var(--t-sm); color: var(--ink-2); font-variant-numeric: tabular-nums; }
.salute h1 { font: 400 var(--t-display)/1.08 var(--serif); margin-top: 10px; letter-spacing: -.003em; max-width: 18ch; text-wrap: balance; }
.salute p.lead { margin-top: 14px; font-size: var(--t-md); color: var(--ink-2); max-width: 56ch; }
.salute p.lead strong { color: var(--ink); font-weight: 550; }
@media (max-width: 560px) { .salute h1 { font-size: 34px; } }

.figures { display: flex; flex-wrap: wrap; gap: 28px 44px; margin-top: 22px; }
.figures div { min-width: 0; }
.figures b { display: block; font: 400 34px/1 var(--serif); font-variant-numeric: lining-nums tabular-nums; }
.figures span { display: block; margin-top: 6px; font-size: var(--t-sm); color: var(--ink-2); }

/* ------------------------------------------------------------ λίστα αιτημάτων */

.ledger { background: var(--paper); border-radius: var(--r-lg); box-shadow: 0 0 0 1px var(--rule); overflow: hidden; }
.ledger ul { list-style: none; margin: 0; padding: 0; }
.ledger li + li { border-top: 1px solid var(--rule); }
.day-label { padding: 18px 2px 8px; font: 400 var(--t-md)/1.2 var(--serif); color: var(--ink); }
.day-label:first-child { padding-top: 0; }

.req {
  position: relative; display: grid; grid-template-columns: 52px 1fr auto; gap: 4px 14px; align-items: start;
  width: 100%; padding: 16px 16px 16px 18px; text-align: left; transition: background .15s var(--ease);
}
.req:hover { background: #FAFAF8; }
.req::before { content: ""; position: absolute; left: 0; top: 14px; bottom: 14px; width: 3px; border-radius: 0 2px 2px 0; background: transparent; }
.req.p-urgent::before { background: var(--urgent); }
.req.p-high::before { background: var(--high); }
.req.closed { color: var(--ink-2); }
.req .t { font-size: var(--t-sm); color: var(--ink-2); font-variant-numeric: tabular-nums; padding-top: 2px; }
.req .t small { display: block; font-size: var(--t-xs); color: var(--ink-3); }
.req .body { min-width: 0; }
.req .line1 { display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 10px; }
.req .name { font-weight: 550; font-size: var(--t-md); line-height: 1.3; }
.req.closed .name { font-weight: 500; }
.req .org { color: var(--ink-2); }
.req .summary { margin-top: 3px; color: var(--ink-2); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; max-width: 70ch; }
.req .meta { margin-top: 8px; display: flex; flex-wrap: wrap; gap: 4px 14px; font-size: var(--t-sm); color: var(--ink-3); }
.req .meta span { display: inline-flex; align-items: center; gap: 5px; }
.req .end { display: flex; align-items: center; gap: 4px; padding-top: 1px; color: var(--ink-3); }
@media (max-width: 560px) {
  .req { grid-template-columns: 1fr auto; padding: 14px 14px 14px 16px; }
  .req .t { grid-column: 1 / -1; order: -1; display: flex; gap: 8px; padding: 0; }
  .req .t small { display: inline; }
}

.tag { display: inline-flex; align-items: center; gap: 5px; font-size: var(--t-sm); font-weight: 550; white-space: nowrap; }
.tag.urgent { color: var(--urgent); }
.tag.high { color: var(--high); }
.tag.normal { color: var(--ink-2); font-weight: 500; }
.tag.low { color: var(--ink-3); font-weight: 500; }
.tag.new-client { color: var(--green); font-weight: 550; }
.tag.done { color: var(--ink-3); font-weight: 500; }
.dot { width: 7px; height: 7px; border-radius: 50%; background: currentColor; display: inline-block; flex: none; }

/* ------------------------------------------------------------ κουμπιά, πεδία */

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 40px; padding: 0 15px;
  border-radius: var(--r-sm); background: var(--paper); box-shadow: inset 0 0 0 1px var(--rule-2);
  font-weight: 500; font-size: var(--t-base); white-space: nowrap; transition: background .15s var(--ease), box-shadow .15s var(--ease);
}
.btn:hover { background: #FAFAF8; box-shadow: inset 0 0 0 1px #BFC2BC; }
.btn.primary { background: var(--green); color: #fff; box-shadow: none; }
.btn.primary:hover { background: var(--green-ink); }
.btn.ghost { background: transparent; box-shadow: none; color: var(--ink-2); }
.btn.ghost:hover { background: rgba(27, 30, 32, .05); color: var(--ink); }
.btn.icon { width: 40px; padding: 0; }
.btn.lg { min-height: 48px; padding: 0 20px; font-size: var(--t-md); }
.btn.block { width: 100%; }
.btn.sm { min-height: 34px; padding: 0 12px; font-size: var(--t-sm); }
.btn[aria-busy="true"] { pointer-events: none; opacity: .75; }
.btn-row { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.linkish { color: var(--green); font-weight: 500; text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; }

.field { display: flex; flex-direction: column; gap: 6px; }
.field label, .field .label { font-size: var(--t-sm); font-weight: 500; color: var(--ink); }
.field .hint { font-size: var(--t-sm); color: var(--ink-3); }
.field .err { display: flex; gap: 6px; align-items: center; font-size: var(--t-sm); color: var(--urgent); }
.input, input.input, select.input, textarea.input {
  width: 100%; min-height: 42px; padding: 9px 12px; border: 0; border-radius: var(--r-sm); background: var(--paper);
  box-shadow: inset 0 0 0 1px var(--rule-2); font-size: 16px; line-height: 1.4; transition: box-shadow .15s var(--ease);
}
.input:hover { box-shadow: inset 0 0 0 1px #BFC2BC; }
.input:focus { outline: none; box-shadow: inset 0 0 0 1.5px var(--green); }
textarea.input { min-height: 92px; resize: vertical; }
select.input { appearance: none; padding-right: 36px; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%23555A5D' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 12px center; }
select.input.time { width: auto; min-width: 104px; font-variant-numeric: tabular-nums; }
.grid2 { display: grid; gap: 14px; grid-template-columns: 1fr; }
@media (min-width: 560px) { .grid2 { grid-template-columns: 1fr 1fr; } }

.search { position: relative; flex: 1; min-width: 180px; }
.search .ico { position: absolute; left: 12px; top: 50%; transform: translateY(-50%); color: var(--ink-3); }
.search input { padding-left: 38px; }

.filters { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin-bottom: 18px; }
.segmented { display: inline-flex; flex-wrap: wrap; gap: 2px; padding: 3px; border-radius: 9px; background: #E9EAE6; }
.segmented button { min-height: 34px; padding: 0 13px; border-radius: 7px; font-size: var(--t-sm); font-weight: 500; color: var(--ink-2); display: inline-flex; align-items: center; gap: 7px; }
.segmented button[aria-pressed="true"], .segmented button[aria-selected="true"] { background: var(--paper); color: var(--ink); box-shadow: 0 1px 2px rgba(27, 30, 32, .08), 0 0 0 1px var(--rule); }
.segmented .count { height: 18px; min-width: 18px; font-size: 10.5px; }
.scroll-x { overflow-x: auto; scrollbar-width: none; max-width: 100%; }
.scroll-x::-webkit-scrollbar { display: none; }
.scroll-x .segmented { flex-wrap: nowrap; }

.switch { position: relative; display: inline-flex; align-items: center; gap: 10px; cursor: pointer; }
.switch input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.switch .track { width: 40px; height: 24px; border-radius: 12px; background: #CDD0CA; position: relative; transition: background .2s var(--ease); flex: none; }
.switch .track::after { content: ""; position: absolute; top: 3px; left: 3px; width: 18px; height: 18px; border-radius: 50%; background: #fff; box-shadow: 0 1px 2px rgba(0,0,0,.2); transition: transform .2s var(--ease); }
.switch input:checked + .track { background: var(--green); }
.switch input:checked + .track::after { transform: translateX(16px); }
.switch input:focus-visible + .track { outline: 2px solid var(--focus); outline-offset: 2px; }

/* ------------------------------------------------------------ κάρτες ρυθμίσεων */

.sheet { background: var(--paper); border-radius: var(--r-lg); box-shadow: 0 0 0 1px var(--rule); padding: 22px; }
.sheet + .sheet { margin-top: 16px; }
.sheet h2 { font: 400 var(--t-lg)/1.2 var(--serif); }
.sheet > p.intro { margin-top: 6px; color: var(--ink-2); max-width: 64ch; }
.sheet .body { margin-top: 20px; display: flex; flex-direction: column; gap: 18px; }
.sheet hr { border: 0; border-top: 1px solid var(--rule); margin: 4px 0; }
@media (max-width: 560px) { .sheet { padding: 18px 16px; } }

.status-line { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 16px; padding: 14px 16px; border-radius: var(--r); background: var(--green-wash); }
.status-line b { font-weight: 550; }
.status-line .grow { flex: 1; min-width: 200px; }

.week { display: flex; flex-direction: column; }
.week .day { display: grid; grid-template-columns: 150px 1fr; align-items: center; gap: 12px; min-height: 52px; padding: 6px 0; }
.week .day + .day { border-top: 1px solid var(--rule); }
.week .day .hours { display: flex; flex-wrap: nowrap; align-items: center; gap: 8px; color: var(--ink-2); }
.week .closed-txt { color: var(--ink-3); font-size: var(--t-sm); }
@media (max-width: 480px) { .week .day { grid-template-columns: 1fr; gap: 6px; padding: 10px 0; } }

.modes { display: grid; gap: 10px; }
@media (min-width: 720px) { .modes { grid-template-columns: repeat(3, 1fr); } }
.mode-card { display: block; position: relative; padding: 14px 14px 14px 40px; border-radius: var(--r); box-shadow: inset 0 0 0 1px var(--rule-2); cursor: pointer; background: var(--paper); }
.mode-card input { position: absolute; left: 14px; top: 17px; accent-color: var(--green); width: 16px; height: 16px; margin: 0; }
.mode-card b { display: block; font-weight: 550; }
.mode-card span { display: block; margin-top: 3px; font-size: var(--t-sm); color: var(--ink-2); }
.mode-card:has(input:checked) { box-shadow: inset 0 0 0 1.5px var(--green); background: #FBFCFB; }

.codes { display: flex; flex-direction: column; border-radius: var(--r); box-shadow: inset 0 0 0 1px var(--rule); }
.code-row { display: grid; grid-template-columns: 1fr auto; gap: 4px 12px; align-items: center; padding: 12px 14px; }
.code-row + .code-row { border-top: 1px solid var(--rule); }
.code-row .what { font-weight: 500; }
.code-row .what small { display: block; font-weight: 400; color: var(--ink-2); font-size: var(--t-sm); }
.code-row code { grid-column: 1; font: 500 var(--t-md)/1.3 var(--sans); font-variant-numeric: tabular-nums; letter-spacing: .02em; color: var(--green-ink); word-break: break-all; }
.code-row .btn { grid-column: 2; grid-row: 1 / span 2; }
.code-row code { white-space: nowrap; }
@media (max-width: 560px) {
  .code-row { grid-template-columns: 1fr; gap: 8px; }
  .code-row .btn { grid-column: 1; grid-row: auto; justify-self: start; }
}

.people { display: flex; flex-direction: column; }
.person { display: grid; grid-template-columns: 1fr auto; gap: 6px 12px; padding: 14px 0; }
.person + .person { border-top: 1px solid var(--rule); }
.person b { font-weight: 550; }
.person .devices { grid-column: 1 / -1; display: flex; flex-direction: column; gap: 4px; font-size: var(--t-sm); color: var(--ink-2); }

/* ------------------------------------------------------------ πλαϊνό πάνελ */

.panel {
  position: fixed; z-index: 20; inset: 0; background: var(--paper); display: flex; flex-direction: column;
  animation: panel-in .28s var(--ease);
}
@media (min-width: 900px) {
  .panel { inset: 0 0 0 auto; width: min(var(--panel), 100vw); box-shadow: -1px 0 0 var(--rule), -24px 0 48px rgba(27, 30, 32, .06); }
}
@keyframes panel-in { from { transform: translateX(24px); opacity: 0; } to { transform: none; opacity: 1; } }
.panel:focus { outline: none; }
.panel-head { display: flex; align-items: center; gap: 8px; padding: max(12px, env(safe-area-inset-top)) 12px 12px 22px; border-bottom: 1px solid var(--rule); }
.panel-head h2 { flex: 1; font-size: var(--t-sm); font-weight: 500; color: var(--ink-2); }
.panel-body { flex: 1; overflow-y: auto; overscroll-behavior: contain; padding-bottom: calc(40px + env(safe-area-inset-bottom)); }
.panel-sec { padding: 22px; }
.panel-sec + .panel-sec { border-top: 1px solid var(--rule); }
.panel-sec h3 { font: 400 var(--t-md)/1.25 var(--serif); margin-bottom: 12px; }
.panel .title { font: 400 30px/1.12 var(--serif); }
.panel .subtitle { margin-top: 6px; color: var(--ink-2); }
.panel .tags { margin-top: 14px; display: flex; flex-wrap: wrap; gap: 6px 16px; }
.panel .call-btn { margin-top: 20px; }
.panel .summary-big { font-size: var(--t-md); line-height: 1.6; }

.facts { display: grid; grid-template-columns: minmax(110px, 34%) 1fr; gap: 0; margin: 0; }
.facts dt, .facts dd { margin: 0; padding: 10px 0; border-top: 1px solid var(--rule); }
.facts dt { color: var(--ink-2); font-size: var(--t-sm); padding-right: 12px; padding-top: 11px; }
.facts dt:first-of-type, .facts dt:first-of-type + dd { border-top: 0; }

.actions-bar { display: flex; flex-wrap: wrap; gap: 8px; }
.snooze-menu { position: relative; }
.menu { position: absolute; z-index: 3; top: calc(100% + 6px); left: 0; min-width: 210px; padding: 6px; border-radius: var(--r); background: var(--paper); box-shadow: 0 0 0 1px var(--rule), 0 12px 32px rgba(27, 30, 32, .12); }
.menu button { display: flex; width: 100%; padding: 9px 10px; border-radius: 6px; text-align: left; }
.menu button:hover, .menu button:focus-visible { background: var(--stone); }

.transcript { display: flex; flex-direction: column; gap: 12px; }
.turn { max-width: 88%; }
.turn small { display: block; font-size: var(--t-xs); color: var(--ink-3); margin-bottom: 3px; }
.turn p { padding: 10px 13px; border-radius: 12px; line-height: 1.5; }
.turn.agent p { background: var(--stone); border-top-left-radius: 4px; }
.turn.user { align-self: flex-end; }
.turn.user small { text-align: right; }
.turn.user p { background: var(--green-wash); border-top-right-radius: 4px; }
details.fold summary { cursor: pointer; list-style: none; display: flex; align-items: center; gap: 8px; font: 400 var(--t-md)/1.25 var(--serif); }
details.fold summary::-webkit-details-marker { display: none; }
details.fold summary .ico { transition: transform .2s var(--ease); color: var(--ink-3); }
details.fold[open] summary .ico { transform: rotate(180deg); }
details.fold[open] summary { margin-bottom: 14px; }

.timeline { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; font-size: var(--t-sm); color: var(--ink-2); }
.timeline li { display: grid; grid-template-columns: 96px 1fr; gap: 10px; }
.timeline time { color: var(--ink-3); font-variant-numeric: tabular-nums; }

.mini-list { list-style: none; margin: 0; padding: 0; }
.mini-list li + li { border-top: 1px solid var(--rule); }
.mini-list a { display: block; padding: 11px 0; }
.mini-list a:hover .s { color: var(--ink); }
.mini-list .s { color: var(--ink-2); font-size: var(--t-sm); display: block; margin-top: 2px; }

/* ------------------------------------------------------------ πελάτες */

.contact { display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 4px 16px; padding: 15px 18px; width: 100%; text-align: left; }
.contact:hover { background: #FAFAF8; }
.contact .name { font-weight: 550; display: flex; align-items: center; gap: 7px; }
.contact .name .ico { color: var(--high); }
.contact .sub { color: var(--ink-2); font-size: var(--t-sm); }
.contact .right { text-align: right; font-size: var(--t-sm); color: var(--ink-3); }

/* ------------------------------------------------------------ κενές καταστάσεις, φόρτωση, ειδοποιήσεις */

.empty { padding: 48px 24px; text-align: center; color: var(--ink-2); }
.empty .ico { width: 26px; height: 26px; color: var(--ink-3); }
.empty h3 { margin-top: 12px; font: 400 var(--t-lg)/1.2 var(--serif); color: var(--ink); }
.empty p { margin: 6px auto 0; max-width: 42ch; }
.empty .btn { margin-top: 18px; }

.skel { display: block; border-radius: 6px; background: linear-gradient(90deg, #EFEFEC, #F7F7F5, #EFEFEC); background-size: 200% 100%; animation: shimmer 1.4s linear infinite; }
.skel-row { display: grid; grid-template-columns: 52px 1fr; gap: 14px; padding: 18px; }
.skel-row + .skel-row { border-top: 1px solid var(--rule); }
@keyframes shimmer { to { background-position: -200% 0; } }
.spinner { display: inline-block; width: 16px; height: 16px; border-radius: 50%; border: 2px solid currentColor; border-right-color: transparent; animation: spin .7s linear infinite; opacity: .7; }
@keyframes spin { to { transform: rotate(360deg); } }

.alert { display: flex; gap: 10px; align-items: flex-start; padding: 12px 14px; border-radius: var(--r); margin-bottom: 16px; }
.alert.error { background: var(--urgent-wash); color: #6E2214; }
.alert.info { background: var(--green-wash); color: var(--green-ink); }

.toasts { position: fixed; z-index: 40; left: 50%; bottom: calc(72px + env(safe-area-inset-bottom)); transform: translateX(-50%); display: flex; flex-direction: column; gap: 8px; width: min(440px, calc(100vw - 32px)); }
@media (min-width: 900px) { .toasts { bottom: 28px; left: calc(50% + var(--side) / 2); } }
.toast { display: flex; align-items: center; gap: 12px; padding: 12px 12px 12px 16px; border-radius: var(--r); background: var(--ink); color: #fff; box-shadow: 0 10px 30px rgba(0,0,0,.18); animation: toast-in .22s var(--ease); }
.toast.error { background: #6E2214; }
.toast .grow { flex: 1; }
.toast button { color: #fff; font-weight: 550; padding: 4px 6px; border-radius: 4px; display: inline-flex; }
@keyframes toast-in { from { transform: translateY(8px); opacity: 0; } }

dialog.confirm { border: 0; padding: 0; border-radius: var(--r-lg); width: min(420px, calc(100vw - 32px)); box-shadow: 0 24px 64px rgba(0,0,0,.2); }
dialog.confirm::backdrop { background: rgba(27, 30, 32, .35); }
dialog.confirm .c-body { padding: 22px 22px 8px; }
dialog.confirm h2 { font: 400 var(--t-lg)/1.25 var(--serif); }
dialog.confirm p { margin-top: 8px; color: var(--ink-2); }
dialog.confirm .c-foot { display: flex; justify-content: flex-end; gap: 8px; padding: 16px 22px 20px; }
.btn.danger { background: var(--urgent); color: #fff; box-shadow: none; }

/* ------------------------------------------------------------ σύνδεση */

.login { min-height: 100dvh; display: grid; place-items: center; padding: 24px 16px; }
.login .card { width: min(420px, 100%); background: var(--paper); border-radius: var(--r-lg); box-shadow: 0 0 0 1px var(--rule), 0 30px 60px rgba(27, 30, 32, .06); padding: 32px 28px; }
.login .mark { font: 400 30px/1.05 var(--serif); }
.login .mark span { display: block; font: 400 var(--t-sm)/1.4 var(--sans); color: var(--ink-2); margin-top: 6px; }
.login h1 { font: 400 var(--t-lg)/1.25 var(--serif); margin-top: 26px; }
.login ol { margin: 14px 0 22px; padding-left: 20px; color: var(--ink-2); display: flex; flex-direction: column; gap: 6px; }
.code-input { font-size: 26px !important; letter-spacing: .3em; text-align: center; font-variant-numeric: tabular-nums; min-height: 56px !important; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}
