/* SiteBox design system: clean, professional, brand blue from the Planbox logo.
   One accent colour, neutral slate greys, 4px spacing grid, soft shadows. */
:root {
  --bg: #f4f6f9; --card: #fff; --ink: #0f172a; --ink-2: #334155; --muted: #64748b; --faint: #94a3b8;
  --line: #e2e8f0; --line-2: #eef2f6; --hover: #f8fafc;
  --brand: #0066cc; --brand-dark: #0052a3; --brand-50: #eef5fc; --brand-100: #dbeafb; --accent: #0066cc;
  --open: #dc2626; --warn: #d97706; --ok: #16a34a;
  --r: 12px; --r-sm: 8px;
  --sh-1: 0 1px 2px rgba(15, 23, 42, .06);
  --sh-2: 0 1px 3px rgba(15, 23, 42, .08), 0 4px 12px rgba(15, 23, 42, .05);
  --sh-3: 0 12px 40px rgba(15, 23, 42, .18), 0 2px 6px rgba(15, 23, 42, .08);
  --ring: 0 0 0 3px rgba(0, 102, 204, .22);
  --font: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", sans-serif;
}
* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; }
body { font: 14.5px/1.5 var(--font); color: var(--ink); background: var(--bg); display: flex; flex-direction: column;
  -webkit-tap-highlight-color: transparent; -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }
a { color: var(--brand); text-decoration: none; }
a:hover { color: var(--brand-dark); }
svg.ic { width: 18px; height: 18px; flex: 0 0 auto; stroke: currentColor; fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
::selection { background: var(--brand-100); }

/* ---------- header ---------- */
header#top { display: flex; align-items: center; gap: 14px; height: 56px; padding: 0 20px; padding-top: env(safe-area-inset-top);
  background: #fff; border-bottom: 1px solid var(--line); flex: 0 0 auto; position: relative; z-index: 20; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--ink); font-weight: 700; font-size: 16px; letter-spacing: -.01em; }
.brand:hover { color: var(--ink); }
.brand img { border-radius: 50%; box-shadow: var(--sh-1); }
#crumb { flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; color: var(--muted); font-weight: 500;
  padding-left: 14px; border-left: 1px solid var(--line); }
#crumb:empty { border: 0; }
#nav { display: flex; gap: 6px; align-items: center; font-size: 14px; }
#nav a { color: var(--ink-2); padding: 7px 10px; border-radius: var(--r-sm); font-weight: 500; display: inline-flex; align-items: center; gap: 6px; }
#nav a:hover { background: var(--hover); color: var(--ink); }
#nav a.me { padding: 4px 10px 4px 4px; }
.avatar { width: 30px; height: 30px; border-radius: 50%; background: var(--brand); color: #fff; font-size: 12px; font-weight: 700;
  display: inline-flex; align-items: center; justify-content: center; letter-spacing: .02em; }

main#view { flex: 1 1 auto; min-height: 0; overflow: auto; }
.wrap { max-width: 1040px; margin: 0 auto; padding: 28px 24px 40px; }
h1 { font-size: 24px; line-height: 1.25; margin: 0 0 18px; font-weight: 700; letter-spacing: -.02em; }
h2 { font-size: 16px; margin: 28px 0 12px; font-weight: 650; letter-spacing: -.01em; }
h3 { letter-spacing: -.01em; }

/* ---------- primitives ---------- */
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--r); padding: 18px; margin-bottom: 12px; box-shadow: var(--sh-1); }
.card.link { display: block; color: inherit; transition: border-color .15s, box-shadow .15s, transform .15s; }
.card.link:hover { border-color: #c9d6e6; box-shadow: var(--sh-2); }
.row { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.grow { flex: 1; }
.muted { color: var(--muted); font-size: 13px; }
.nowrap { white-space: nowrap; }

button, .btn { font: inherit; font-weight: 550; font-size: 14px; border: 1px solid var(--line); background: #fff; color: var(--ink-2);
  border-radius: var(--r-sm); padding: 8px 14px; cursor: pointer; min-height: 38px; display: inline-flex; align-items: center;
  justify-content: center; gap: 7px; box-shadow: var(--sh-1); transition: background .12s, border-color .12s, color .12s, box-shadow .12s; white-space: nowrap; }
button:hover, .btn:hover { background: var(--hover); border-color: #cbd5e1; color: var(--ink); }
button:focus-visible, .btn:focus-visible, a:focus-visible { outline: none; box-shadow: var(--ring); }
button.primary, .btn.primary { background: var(--brand); color: #fff; border-color: var(--brand); box-shadow: 0 1px 2px rgba(0, 82, 163, .3); }
button.primary:hover, .btn.primary:hover { background: var(--brand-dark); border-color: var(--brand-dark); color: #fff; }
button.danger { color: var(--open); }
button.danger:hover { background: #fef2f2; border-color: #fecaca; color: #b91c1c; }
button:disabled { opacity: .5; cursor: default; }
button.on { background: var(--brand-50); color: var(--brand); border-color: #b6d4f5; }
button.primary.on { background: var(--brand-dark); color: #fff; box-shadow: var(--ring); }
button.slim, .slim { min-height: 32px; padding: 4px 10px; font-size: 13px; }
select.slim { width: auto; }
button.x { border: 0; background: none; min-height: 0; padding: 0 4px; color: var(--faint); font-size: 16px; box-shadow: none; }
button.x:hover { color: var(--open); background: none; }

input, select, textarea { font: inherit; font-size: 14.5px; color: var(--ink); width: 100%; padding: 8px 11px; border: 1px solid #d5dde7;
  border-radius: var(--r-sm); background: #fff; min-height: 40px; transition: border-color .12s, box-shadow .12s; }
input:hover, select:hover, textarea:hover { border-color: #b8c4d3; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--brand); box-shadow: var(--ring); }
input:disabled, select:disabled, textarea:disabled { background: #f8fafc; color: var(--muted); }
input[type=checkbox], input[type=radio] { accent-color: var(--brand); width: 17px; height: 17px; min-height: 0; box-shadow: none; }
input[type=color] { padding: 3px; cursor: pointer; }
select { appearance: none; -webkit-appearance: none; padding-right: 32px; cursor: pointer;
  background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%2364748b' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") no-repeat right 11px center; }
textarea { min-height: 76px; resize: vertical; line-height: 1.5; }
label { display: block; font-size: 12.5px; font-weight: 550; color: var(--ink-2); margin: 12px 0 5px; }

.badge { display: inline-flex; align-items: center; font-size: 11.5px; font-weight: 650; padding: 2px 9px; border-radius: 99px;
  color: #fff; white-space: nowrap; letter-spacing: .01em; line-height: 1.6; }
.counts { display: flex; gap: 6px; margin-top: 8px; flex-wrap: wrap; }
.tag { display: inline-flex; align-items: center; gap: 2px; font-size: 12px; font-weight: 500; padding: 1px 9px; border-radius: 99px;
  background: var(--line-2); color: var(--ink-2); white-space: nowrap; border: 1px solid var(--line); }
.dot { display: inline-block; width: 9px; height: 9px; border-radius: 50%; margin-right: 7px; vertical-align: middle; flex: 0 0 auto; }

table { width: 100%; border-collapse: separate; border-spacing: 0; background: #fff; border: 1px solid var(--line);
  border-radius: var(--r); overflow: hidden; box-shadow: var(--sh-1); }
th, td { text-align: left; padding: 11px 14px; border-bottom: 1px solid var(--line-2); font-size: 14px; vertical-align: top; }
tr:last-child td { border-bottom: 0; }
th { background: #f8fafc; font-weight: 600; color: var(--muted); font-size: 11.5px; text-transform: uppercase; letter-spacing: .05em;
  border-bottom: 1px solid var(--line); }
tr.click { cursor: pointer; transition: background .1s; } tr.click:hover { background: #f6f9fd; }
td strong { font-weight: 650; }
.overdue { color: var(--open); font-weight: 600; }

/* ---------- login ---------- */
.login-page { min-height: 100%; display: flex; align-items: center; justify-content: center; padding: 32px 16px;
  background: radial-gradient(1200px 500px at 50% -10%, #dbeafb 0%, rgba(219, 234, 251, 0) 60%), var(--bg); }
.login { width: 100%; max-width: 380px; margin: 0; padding: 32px 30px 28px; box-shadow: var(--sh-2); }
.login .logo { display: flex; flex-direction: column; align-items: center; gap: 12px; margin-bottom: 22px; text-align: center; }
.login .logo img { width: 56px; height: 56px; border-radius: 50%; box-shadow: var(--sh-2); }
.login .logo strong { font-size: 20px; letter-spacing: -.02em; }
.login h1 { font-size: 18px; margin: 0 0 4px; text-align: center; }
.login .sub { text-align: center; color: var(--muted); font-size: 13.5px; margin: 0 0 8px; }
.login button.primary { width: 100%; min-height: 44px; font-size: 15px; }
.login-foot { text-align: center; color: var(--faint); font-size: 12px; margin-top: 18px; }
/* password with the «eye» (show / hide) and «Να με θυμάσαι» */
.login .pwbox { position: relative; }
.login .pwbox input { padding-right: 50px; }
.login .pweye { position: absolute; top: 50%; right: 2px; transform: translateY(-50%); width: 44px; height: 44px; min-height: 0; padding: 0;
  display: grid; place-items: center; border: 0; background: none; box-shadow: none; color: var(--muted, #8e8e93); border-radius: 10px; }
.login .pweye:hover, .login .pweye:focus-visible { background: rgba(120, 120, 128, .12); }
.login .pweye.on { color: var(--brand, #007aff); }
.login .pweye .ic { width: 20px; height: 20px; }
.login label.remember { display: flex; align-items: center; gap: 10px; margin: 14px 0 0; min-height: 44px; font-size: 15px; color: inherit; cursor: pointer; }
.login label.remember input { width: 22px; height: 22px; min-height: 0; margin: 0; accent-color: var(--brand, #007aff); flex: none; }

/* ---------- projects home ---------- */
.page-head { display: flex; align-items: flex-end; gap: 12px; margin-bottom: 20px; flex-wrap: wrap; }
.page-head h1 { margin: 0; }
.page-head .sub { color: var(--muted); font-size: 14px; margin-top: 2px; }
.pgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 16px; }
.pcard { display: flex; flex-direction: column; gap: 14px; background: #fff; border: 1px solid var(--line); border-radius: var(--r);
  padding: 18px; color: inherit; box-shadow: var(--sh-1); transition: border-color .15s, box-shadow .15s, transform .15s; }
.pcard:hover { color: inherit; border-color: #c3d3e6; box-shadow: var(--sh-2); transform: translateY(-1px); }
.pcard.archived { opacity: .6; }
.pcard .pch { display: flex; gap: 12px; align-items: flex-start; }
.pcard .pi { width: 40px; height: 40px; border-radius: 10px; background: var(--brand-50); color: var(--brand); display: flex;
  align-items: center; justify-content: center; font-weight: 700; font-size: 15px; flex: 0 0 auto; }
.pcard .pn { font-weight: 650; font-size: 15.5px; line-height: 1.3; letter-spacing: -.01em; }
.pcard .pa { color: var(--muted); font-size: 13px; margin-top: 2px; }
.pcard .pnum { display: flex; align-items: baseline; gap: 6px; }
.pcard .pnum b { font-size: 26px; font-weight: 700; letter-spacing: -.03em; line-height: 1; }
.pcard .pnum span { color: var(--muted); font-size: 13px; }
.sbar { display: flex; height: 8px; border-radius: 99px; overflow: hidden; background: var(--line-2); gap: 2px; }
.sbar i { display: block; height: 100%; }
.slegend { display: flex; flex-wrap: wrap; gap: 4px 14px; font-size: 12.5px; color: var(--ink-2); }
.slegend span { display: inline-flex; align-items: center; }
.slegend b { font-weight: 650; margin-left: 4px; }
.alert { display: flex; gap: 12px; align-items: center; padding: 14px 16px; border-radius: var(--r); margin-bottom: 18px;
  background: #fffbeb; border: 1px solid #fde68a; color: #78350f; font-size: 14px; }
.alert:hover { color: #78350f; border-color: #fbbf24; }
.empty { text-align: center; padding: 48px 20px; color: var(--muted); background: #fff; border: 1px dashed #cbd5e1; border-radius: var(--r); }

/* ---------- project screen: sidebar + main ---------- */
.proj { display: flex; height: 100%; }
.side { flex: 0 0 232px; background: #fff; border-right: 1px solid var(--line); overflow: auto; padding: 14px 10px; }
.side .tab { display: flex; gap: 10px; align-items: center; padding: 8px 10px; border-radius: var(--r-sm); color: var(--ink-2);
  font-weight: 550; margin-bottom: 2px; transition: background .1s, color .1s; }
.side .tab:hover { background: var(--hover); color: var(--ink); }
.side .tab svg { color: var(--faint); }
.side .tab.on { background: var(--brand-50); color: var(--brand); }
.side .tab.on svg { color: var(--brand); }
.side-h { font-size: 11px; font-weight: 650; text-transform: uppercase; letter-spacing: .07em; color: var(--faint); margin: 22px 10px 6px; }
.scopes, .cats { display: flex; flex-direction: column; gap: 1px; }
.chip, .cat { border: 0; background: none; box-shadow: none; min-height: 34px; padding: 6px 10px; border-radius: var(--r-sm);
  justify-content: space-between; width: 100%; text-align: left; font-weight: 500; color: var(--ink-2); }
.chip:hover, .cat:hover { background: var(--hover); border: 0; }
.chip.on, .cat.on { background: var(--brand-50); color: var(--brand); font-weight: 650; border: 0; }
.cat span:first-child { overflow: hidden; text-overflow: ellipsis; }
.cat .n { color: var(--faint); font-size: 12px; font-weight: 600; background: var(--line-2); border-radius: 99px; padding: 0 7px; min-width: 22px; text-align: center; }
.cat.on .n { background: var(--brand-100); color: var(--brand); }
.main { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.toolbar { display: flex; gap: 8px; padding: 10px 16px; background: #fff; border-bottom: 1px solid var(--line); flex-wrap: wrap; align-items: center; }
.toolbar select { width: auto; max-width: 220px; min-height: 36px; }
.toolbar input { min-height: 36px; }
.toolbar button, .toolbar .btn { min-height: 36px; }
.toolbar #sheet { max-width: 260px; font-weight: 600; }
@media (max-width: 1400px) { .toolbar #fcompany { max-width: 150px; } .toolbar #sheet { max-width: 200px; } }
.seg { display: inline-flex; background: var(--line-2); border-radius: var(--r-sm); padding: 3px; gap: 2px; }
.seg button { border: 0; background: none; box-shadow: none; min-height: 30px; padding: 4px 12px; color: var(--muted); }
.seg button:hover { background: rgba(255, 255, 255, .6); }
.seg button.on { background: #fff; color: var(--ink); box-shadow: var(--sh-1); }
.pane { flex: 1; min-height: 0; position: relative; }
#map { position: absolute; inset: 0; background: #e8edf3; }
.listpane { position: absolute; inset: 0; overflow: auto; padding: 18px; }
.hint { position: absolute; z-index: 500; top: 14px; left: 50%; transform: translateX(-50%); background: var(--ink); color: #fff;
  padding: 8px 16px; border-radius: 99px; font-size: 13.5px; font-weight: 500; box-shadow: var(--sh-3); white-space: nowrap; }
.pin { width: 30px; height: 30px; border-radius: 50% 50% 50% 4px; transform: rotate(-45deg); color: #fff; font-weight: 700; font-size: 12px;
  display: flex; align-items: center; justify-content: center; border: 2px solid #fff; box-shadow: 0 2px 6px rgba(15, 23, 42, .35); }
.pin span { transform: rotate(45deg); line-height: 1; }
.pin.sel { box-shadow: 0 0 0 3px var(--brand), 0 4px 12px rgba(15, 23, 42, .4); }
.pin.overdue { box-shadow: 0 0 0 3px rgba(220, 38, 38, .35), 0 2px 6px rgba(15, 23, 42, .35); }
.pin.pending { border-style: dashed; }
.leaflet-container { font: inherit; }
.leaflet-bar a { color: var(--ink-2); }

/* kanban */
/* every column as tall as the longest one, so a card from far down can be dropped on any column at that height;
   the status headings stay in sight at the top while the board scrolls */
.board { display: flex; gap: 14px; align-items: stretch; min-height: 100%; }
.col { flex: 0 0 286px; background: #eef2f6; border-radius: var(--r); padding: 0 10px 10px; display: flex; flex-direction: column; border: 1px solid transparent; }
.listpane:has(> .board) { padding-top: 0; }
.col > .col-h { position: sticky; top: 0; z-index: 3; background: #eef2f6; margin: 0 -10px; padding: 14px 14px 10px; border-radius: var(--r) var(--r) 0 0; }
.col.over > .col-h { background: var(--brand-50); }
.col.over { border-color: var(--brand); background: var(--brand-50); }
.col-h { display: flex; align-items: center; font-weight: 650; font-size: 13.5px; padding: 4px 4px 10px; }
.col-h .n { margin-left: auto; color: var(--muted); font-weight: 600; font-size: 12px; background: #fff; border-radius: 99px; padding: 0 8px; }
.col-b { display: flex; flex-direction: column; gap: 8px; min-height: 40px; flex: 1; }
.kcard { background: #fff; border-radius: 10px; padding: 10px 12px; border: 1px solid var(--line); border-left: 3px solid #888; box-shadow: var(--sh-1);
  cursor: pointer; user-select: none; -webkit-user-select: none; transition: box-shadow .12s, border-color .12s; }
.kcard:hover { box-shadow: var(--sh-2); }
.kcard .kt { font-weight: 600; margin: 3px 0; line-height: 1.35; }
.kcard .km { font-size: 12px; gap: 10px; margin-top: 6px; color: var(--muted); }
.kcard.lift { transform: scale(1.03); box-shadow: var(--sh-3); }
.kcard.dragging { opacity: .35; }
.kcard.ghost { position: fixed; z-index: 4000; pointer-events: none; transform: rotate(2deg); box-shadow: var(--sh-3); }

/* ---------- drawer & modal ---------- */
.drawer { position: fixed; z-index: 1000; top: var(--drawer-top, 0px); right: 0; bottom: 0; width: min(440px, 100%); background: #fff;
  box-shadow: var(--sh-3); overflow: auto; padding: 22px; padding-top: max(22px, env(safe-area-inset-top)); border-left: 1px solid var(--line);
  animation: slidein .18s ease-out; }
@keyframes slidein { from { transform: translateX(24px); opacity: 0; } to { transform: none; opacity: 1; } }
.drawer.hidden { display: none; }
.drawer h3 { margin: 0 0 6px; font-size: 18px; }
.drawer .close, .m-head .close { position: sticky; top: 0; float: right; width: 34px; height: 34px; min-height: 0; padding: 0; border-radius: 50%;
  box-shadow: none; border-color: transparent; color: var(--muted); font-size: 15px; }
.drawer .close:hover, .m-head .close:hover { background: var(--line-2); }
.timeline { list-style: none; padding: 0; margin: 14px 0; }
.timeline li { padding: 12px 0 12px 18px; border-top: 1px solid var(--line-2); font-size: 14px; position: relative; }
.timeline li::before { content: ""; position: absolute; left: 2px; top: 19px; width: 7px; height: 7px; border-radius: 50%; background: #cbd5e1; }
.timeline .who { font-weight: 650; }
.timeline img { width: 128px; height: 96px; object-fit: cover; border-radius: var(--r-sm); margin-top: 8px; cursor: zoom-in; border: 1px solid var(--line); }
.timeline li.pending { opacity: .75; }
.statusbtns { display: flex; gap: 8px; flex-wrap: wrap; margin: 12px 0; }
.lightbox { position: fixed; inset: 0; z-index: 2000; background: rgba(15, 23, 42, .92); display: flex; align-items: center; justify-content: center; padding: 20px; }
.lightbox img { max-width: 100%; max-height: 100%; border-radius: 6px; }
.toast { position: fixed; z-index: 3000; bottom: 24px; left: 50%; transform: translateX(-50%); background: var(--ink); color: #fff;
  padding: 11px 18px; border-radius: 10px; max-width: 90%; box-shadow: var(--sh-3); font-weight: 500; font-size: 14px; animation: rise .18s ease-out; }
@keyframes rise { from { transform: translate(-50%, 8px); opacity: 0; } to { transform: translate(-50%, 0); opacity: 1; } }
.toast.hidden { display: none; }
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 0 14px; }
@media (max-width: 767px) { .grid2 { grid-template-columns: 1fr; } .hide-sm { display: none; } .wrap { padding: 18px 14px 28px; } }

.modal { position: fixed; inset: 0; z-index: 1500; background: rgba(15, 23, 42, .45); backdrop-filter: blur(2px); display: flex;
  align-items: center; justify-content: center; padding: 20px; animation: fade .15s ease-out; }
@keyframes fade { from { opacity: 0; } to { opacity: 1; } }
.modal.hidden { display: none; }
.m-box { background: #fff; border-radius: 16px; width: min(1080px, 100%); height: min(780px, 100%); display: flex; flex-direction: column;
  overflow: hidden; box-shadow: var(--sh-3); }
.m-head { display: flex; align-items: center; gap: 12px; padding: 14px 18px; border-bottom: 1px solid var(--line); }
.m-head .close { position: static; float: none; }
.m-num { font-weight: 700; color: var(--brand); background: var(--brand-50); border-radius: 6px; padding: 2px 8px; font-size: 13px; }
.m-title { flex: 1; font-size: 19px; font-weight: 700; margin: 0; border: 1px solid transparent; padding: 4px 8px; min-height: 0; letter-spacing: -.01em; box-shadow: none; }
input.m-title:hover { border-color: var(--line); }
input.m-title:focus { border-color: var(--brand); }
.m-pending { background: #fffbeb; color: #92400e; padding: 7px 18px; font-size: 13px; border-bottom: 1px solid #fde68a; }
.m-body { flex: 1; min-height: 0; display: flex; }
.m-left { flex: 1; min-width: 0; overflow: auto; padding: 6px 22px 22px; }
.m-right { flex: 0 0 310px; overflow: auto; padding: 16px 18px; background: #f8fafc; border-left: 1px solid var(--line); }
.m-left h4 { margin: 22px 0 9px; font-size: 11.5px; font-weight: 650; text-transform: uppercase; letter-spacing: .07em; color: var(--muted); }
.m-left .desc { white-space: pre-wrap; margin: 0; }
.attr { margin-bottom: 12px; }
.attr label { margin: 0 0 4px; font-size: 12px; color: var(--muted); font-weight: 550; }
.attr .v { min-height: 24px; font-weight: 500; }
.attr select, .attr input { min-height: 36px; background-color: #fff; }
.links { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.link-chip { display: inline-flex; align-items: center; background: #fff; border: 1px solid var(--line); border-radius: 99px; padding: 3px 4px 3px 10px; font-size: 13px; }
.link-chip a { cursor: pointer; color: var(--ink); }
.progress { height: 6px; background: var(--line-2); border-radius: 99px; overflow: hidden; margin-bottom: 8px; }
.progress div { height: 100%; background: var(--ok); border-radius: 99px; transition: width .3s; }
.checklist { list-style: none; padding: 0; margin: 0 0 10px; border: 1px solid var(--line); border-radius: var(--r-sm); }
.checklist:empty { display: none; }
.checklist li { display: flex; align-items: center; gap: 8px; padding: 7px 10px; border-bottom: 1px solid var(--line-2); }
.checklist li:last-child { border-bottom: 0; }
.checklist label { display: flex; align-items: center; gap: 10px; margin: 0; color: var(--ink); font-size: 14px; font-weight: 500; flex: 1; cursor: pointer; }
.checklist input { width: 19px; height: 19px; min-height: 0; flex: 0 0 auto; }
.checklist li.done span { text-decoration: line-through; color: var(--faint); }
.composer { border: 1px solid #d5dde7; border-radius: 10px; padding: 8px; transition: border-color .12s, box-shadow .12s; }
.composer:focus-within { border-color: var(--brand); box-shadow: var(--ring); }
.composer textarea { border: 0; min-height: 52px; padding: 4px 6px; box-shadow: none; }
@media (max-width: 760px) {
  .modal { padding: 0; }
  .m-box { border-radius: 0; height: 100%; }
  .m-body { flex-direction: column; overflow: auto; }
  .m-left, .m-right { overflow: visible; flex: 0 0 auto; }
  .m-right { order: -1; border-left: 0; border-bottom: 1px solid var(--line); display: grid; grid-template-columns: 1fr 1fr; gap: 0 12px; }
}
.sttable td { padding: 8px 10px; vertical-align: middle; }
.stwrap { overflow-x: auto; -webkit-overflow-scrolling: touch; margin: 0 -4px; padding: 0 4px; }

/* offline / sync pill */
.net { font-size: 12px; font-weight: 600; padding: 4px 10px; border-radius: 99px; background: var(--line-2); color: var(--ink-2); white-space: nowrap; }
.net::before { content: ""; display: inline-block; width: 7px; height: 7px; border-radius: 50%; margin-right: 6px; vertical-align: 1px; background: var(--faint); }
.net.on { background: #ecfdf3; color: #166534; } .net.on::before { background: #22c55e; }
.net.sync { background: #fffbeb; color: #92400e; } .net.sync::before { background: #f59e0b; }
.net.off { background: #fef2f2; color: #991b1b; } .net.off::before { background: #ef4444; }

/* ---------- plans list ---------- */
.fold-h { display: flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 650; margin: 8px 2px 12px; color: var(--ink-2); }
.fold-h svg { color: var(--faint); }
.sheets { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 14px; margin-bottom: 26px; }
.sheet-card { background: #fff; border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; color: var(--ink); display: flex;
  flex-direction: column; box-shadow: var(--sh-1); transition: border-color .15s, box-shadow .15s, transform .15s; }
.sheet-card:hover { border-color: #b6cde6; box-shadow: var(--sh-2); transform: translateY(-1px); color: var(--ink); }
.sheet-card img { width: 100%; aspect-ratio: 4 / 3; object-fit: contain; background: #f8fafc; border-bottom: 1px solid var(--line-2); padding: 6px; }
.sc-b { padding: 10px 12px 12px; }
.sc-code { font-weight: 700; font-size: 13px; font-variant-numeric: tabular-nums; }
.sc-t { font-size: 13px; line-height: 1.35; color: var(--ink-2); margin-top: 1px; }
.ver { font-size: 11px; background: var(--brand-50); color: var(--brand); border-radius: 99px; padding: 0 7px; font-weight: 650; }

/* ---------- drawing ---------- */
.drawbar { position: absolute; z-index: 800; left: 12px; top: 12px; max-height: calc(100% - 24px); overflow-y: auto; scrollbar-width: none; display: flex; flex-direction: column; gap: 2px; background: #fff;
  border-radius: 12px; padding: 5px; box-shadow: var(--sh-2); border: 1px solid var(--line); }
.drawbar button { min-height: 0; width: 38px; height: 38px; padding: 0; justify-content: center; font-size: 16px; border: 0; box-shadow: none; color: var(--ink-2); border-radius: 8px; }
.drawbar button:hover { background: var(--hover); }
.drawbar button.on { background: var(--brand-50); color: var(--brand); }
.drawbar .sep { height: 1px; background: var(--line); margin: 3px 4px; }
.drawbar .ro { font-size: 12px; font-weight: 700; text-align: center; padding: 6px 0; color: var(--muted); }
.swatch { width: 20px; height: 20px; border-radius: 50%; border: 2px solid #fff; box-shadow: 0 0 0 1px #94a3b8; }
.colors { position: absolute; z-index: 810; display: flex; gap: 6px; background: #fff; padding: 7px; border-radius: 12px; box-shadow: var(--sh-2); border: 1px solid var(--line); }
.colors button { width: 28px; height: 28px; min-height: 0; padding: 0; border-radius: 50%; border: 2px solid #fff; box-shadow: 0 0 0 1px #cbd5e1; }
/* πάχος γραμμής και αναίρεση (22r) */
.wline { display: block; width: 22px; min-height: 2px; max-height: 12px; border-radius: 99px; background: currentColor; }
.colors.widths { flex-direction: column; gap: 4px; padding: 6px; }
.colors.widths button { width: 56px; height: 34px; border-radius: 9px; border: 0; box-shadow: none; display: flex; align-items: center; justify-content: center; background: #fff; }
.colors.widths button .wline { width: 36px; max-height: none; }
.colors.widths button.on { background: var(--brand-50); box-shadow: inset 0 0 0 1.5px var(--brand); }
.drawbar #undobtn:disabled { opacity: .35; cursor: default; background: none; }
#map.drawing.erasing, #map.erasing .leaflet-interactive { cursor: cell; }
#map.drawing { cursor: crosshair; touch-action: none; }
#map.drawing .leaflet-marker-icon, #map.drawing path.leaflet-interactive { pointer-events: none; }
.mtext { white-space: pre; font-weight: 700; line-height: 1.1; text-shadow: 0 0 3px #fff, 0 0 3px #fff; }
.mlabel { font-weight: 700; font-size: 12.5px; padding: 2px 7px; border-radius: 6px; }
.mkpop { font-size: 13px; }
.leaflet-popup-content-wrapper { border-radius: 10px; box-shadow: var(--sh-2); }

/* ---------- forms ---------- */
.formpane { flex: 1; min-height: 0; overflow: auto; }
.form-page h2 { margin-top: 26px; }
.form-head { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 16px; }
.form-head h1 { margin: 0; font-size: 22px; }
.ff + .ff { margin-top: 14px; }
.ff > label:first-child { margin-top: 0; }
.req { color: var(--open); }
.yn button { min-width: 64px; }
.yn button.on { background: var(--brand); color: #fff; border-color: var(--brand); }
.chips { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.chip2 { min-height: 34px; padding: 4px 14px; border-radius: 99px; }
.chip2.on { background: var(--brand); color: #fff; border-color: var(--brand); }
.ftable { overflow-x: auto; margin-bottom: 8px; }
.ftable table { box-shadow: none; }
.ftable td { padding: 6px; vertical-align: middle; }
.ftable input, .ftable select { min-height: 36px; padding: 6px 9px; min-width: 110px; }
.ftable td:first-child { width: 34px; color: var(--muted); text-align: center; }
.fphotos { display: flex; flex-wrap: wrap; gap: 10px; }
.fph { position: relative; }
.fph img { width: 132px; height: 99px; object-fit: cover; border-radius: var(--r-sm); cursor: zoom-in; display: block; border: 1px solid var(--line); }
.fph .x { position: absolute; top: 4px; right: 4px; background: rgba(255, 255, 255, .92); border-radius: 50%; width: 24px; height: 24px; }
.sigs { display: flex; flex-direction: column; gap: 10px; margin-bottom: 10px; }
.sig { display: flex; gap: 16px; align-items: center; }
.sig img { width: 220px; height: 74px; object-fit: contain; border-bottom: 1px solid #94a3b8; background: #fff; }
.sigbox { height: auto; max-width: 720px; }
#sigc { width: 100%; height: auto; aspect-ratio: 3 / 1; border: 1.5px dashed #94a3b8; border-radius: 10px; background: #fff; touch-action: none; display: block;
  background-image: linear-gradient(to right, transparent 8%, #e2e8f0 8%, #e2e8f0 92%, transparent 92%); background-size: 100% 1.5px; background-repeat: no-repeat; background-position: 0 75%; }
table.wx td, table.wx th { padding: 7px 10px; }
.tsec .tfield { border-top: 1px solid var(--line-2); padding: 10px 0; margin-top: 10px; }
.tsrow + .tsrow { margin-top: 6px; }
.lock-note { display: flex; gap: 10px; align-items: center; background: #f1f5f9; border: 1px solid var(--line); border-radius: var(--r); padding: 12px 16px; margin-bottom: 14px; color: var(--ink-2); }

/* settings & admin */
.catrow + .catrow { margin-top: 6px; }
.section-note { color: var(--muted); font-size: 13.5px; margin: -4px 0 12px; }

/* headings inside action rows */
.row > h1, .row > h2 { margin: 0; }
.wrap > .row:first-child { margin-bottom: 18px; }
.wrap > .row:has(> h2), div > .row:has(> h2.grow) { margin: 28px 0 12px; }

/* ---------- ⋮ menus (projects, folders, sheets) ---------- */
.kebab { flex: 0 0 auto; width: 32px; height: 32px; min-height: 0; padding: 0; margin: -6px -8px 0 auto; border: 0; background: transparent;
  color: var(--muted); border-radius: 8px; display: inline-flex; align-items: center; justify-content: center; box-shadow: none; }
.kebab:hover, .kebab:focus-visible { background: var(--hover); color: var(--ink); }
.kebab .ic { width: 20px; height: 20px; }
.sheet-card { position: relative; }
.sheet-card .kebab { position: absolute; bottom: 8px; right: 6px; margin: 0; background: #fff; border: 1px solid var(--line); }
.sheet-card .sc-b.has-k { padding-right: 44px; }
.fold-h .kebab { margin: 0 0 0 4px; width: 28px; height: 28px; }
.kmenu { position: fixed; z-index: 2500; min-width: 190px; background: #fff; border: 1px solid var(--line); border-radius: 10px;
  box-shadow: var(--sh-3); padding: 6px; display: flex; flex-direction: column; }
.kmenu button { display: flex; align-items: center; gap: 10px; width: 100%; justify-content: flex-start; border: 0; background: none;
  box-shadow: none; padding: 9px 10px; min-height: 40px; border-radius: 6px; font-size: 14px; color: var(--ink); text-align: left; }
.kmenu button:hover { background: var(--hover); }
.kmenu button .ic { width: 18px; height: 18px; color: var(--muted); }
.kmenu button.danger, .kmenu button.danger .ic { color: var(--open); }
.kmenu button.danger:hover { background: #fef2f2; }
.linkbtn { margin: 22px 0 12px; border: 0; background: none; box-shadow: none; color: var(--muted); padding: 6px 0; min-height: 0; gap: 8px; }
.linkbtn:hover { color: var(--brand); background: none; }
.sheet-card.archived img { opacity: .55; }
.archzone { border-top: 1px dashed #cbd5e1; padding-top: 14px; }
.archbar { display: flex; gap: 10px; align-items: center; padding: 9px 14px; background: #f1f5f9; color: var(--ink-2); font-size: 13.5px;
  border-bottom: 1px solid var(--line); }
.archbar .ic { color: var(--muted); flex: 0 0 auto; }
.warnbox { background: #fef2f2; border: 1px solid #fecaca; color: #991b1b; border-radius: var(--r-sm); padding: 10px 12px; font-size: 13.5px; }
button.primary.danger { background: var(--open); border-color: var(--open); color: #fff; }
button.primary.danger:hover { background: #b91c1c; border-color: #b91c1c; color: #fff; }

/* letterhead settings */
.lhead { display: flex; gap: 18px; align-items: flex-start; }
.lhead img { width: 150px; flex: 0 0 auto; border: 1px solid var(--line); border-radius: 4px; box-shadow: var(--sh-1); background: #fff; }
@media (max-width: 600px) { .lhead { flex-direction: column; } }

/* small dialog (e.g. link to pass on when an e-mail failed) */
.modal-card { background: #fff; border-radius: var(--r); box-shadow: var(--sh-3); padding: 22px; margin: auto; width: calc(100% - 32px); }
.modal-card h3 { margin-top: 0; }
#drawer .row .danger .ic { width: 16px; height: 16px; }

/* plan folders that open and close */
.listpane > .fold-h[data-fold] { cursor: pointer; user-select: none; border-radius: 8px; padding: 4px 6px; margin-left: -6px; }
.listpane > .fold-h[data-fold]:hover { background: var(--hover); }
.fold-h .chev { display: inline-flex; width: 16px; height: 16px; flex: 0 0 16px; color: var(--muted); transition: transform .15s; }
.fold-h .chev .ic { width: 16px; height: 16px; }
.fold-h:not(.shut) .chev { transform: rotate(90deg); }
.listpane > .fold-h.shut { margin-bottom: 14px; }
/* photo menu */
.ppick { display: inline-flex; }
/* "new task" pin, first tool of the drawing bar */
.drawbar .pintool { height: 44px; }
.drawbar .pintool .pin-ic { width: 24px; height: 24px; border-radius: 50% 50% 50% 4px; transform: rotate(-45deg); background: #e53935;
  color: #fff; font-weight: 700; font-size: 15px; display: flex; align-items: center; justify-content: center; margin-top: -4px;
  border: 2px solid #fff; box-shadow: 0 2px 6px rgba(15, 23, 42, .35); }
.drawbar .pintool .pin-ic span { transform: rotate(45deg); line-height: 1; }
.sheets[hidden] { display: none; }
.drawbar .pintool.on { background: #fdecea; box-shadow: inset 0 0 0 2px #e53935; }
.kmenu button[disabled] { opacity: .55; cursor: not-allowed; }
.kmenu button span small { display: block; font-size: 12px; color: var(--muted); }
td.kcell { width: 40px; text-align: right; padding-right: 6px; }
td.kcell .kebab { margin: 0; }

/* photo button dropdown */
.ppick { position: relative; display: inline-block; }
.ppdrop { position: absolute; z-index: 10; left: 0; top: calc(100% + 4px); min-width: 230px; background: #fff; border: 1px solid var(--line);
  border-radius: 10px; box-shadow: var(--sh-3); padding: 4px; }
.ppdrop button { display: flex; align-items: center; gap: 10px; width: 100%; justify-content: flex-start; border: 0; background: none;
  padding: 11px 12px; border-radius: 8px; font: inherit; color: var(--ink); cursor: pointer; text-align: left; }
.ppdrop button:hover { background: var(--hover); }
.ppdrop button .ic { width: 18px; height: 18px; color: var(--muted); }

/* ---------- Φωτογραφίες ---------- */
.photopane { flex: 1; overflow: auto; }
.phwrap { max-width: 1500px; }
.phfilters { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; margin: 4px 0 8px; }
.phfilters .chip { width: auto; background: var(--line-2); border-radius: 99px; min-height: 32px; padding: 4px 12px; gap: 6px; }
.phfilters .chip.on { background: var(--brand-50); color: var(--brand); }
.phfilters .chip .n { font-size: 12px; color: var(--muted); }
.phday { font-size: 14px; font-weight: 650; color: var(--ink-2); margin: 18px 2px 8px; text-transform: none; }
.phgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 8px; }
.ph { position: relative; padding: 0; border: 1px solid var(--line); border-radius: 10px; overflow: hidden; background: #f1f5f9; aspect-ratio: 1; min-height: 0; cursor: zoom-in; }
.ph img, .ph video { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .15s; pointer-events: none; }
/* 22o: βίντεο και ό,τι ήρθε από το Chat */
.phplay { position: absolute; left: 50%; top: 50%; width: 40px; height: 40px; margin: -20px 0 0 -20px; border-radius: 50%; background: rgba(0,0,0,.55);
  color: #fff; font-size: 16px; display: flex; align-items: center; justify-content: center; padding-left: 3px; pointer-events: none; }
.phchat { position: absolute; right: 6px; top: 6px; width: 24px; height: 24px; border-radius: 50%; background: #fff; display: flex; align-items: center;
  justify-content: center; box-shadow: 0 1px 3px rgba(0,0,0,.18); pointer-events: none; }
.phchat .ic { width: 14px; height: 14px; }
.pv-vid { max-width: 100%; max-height: 100%; background: #000; border-radius: 8px; }
.tlvid { display: block; margin-top: 6px; width: min(360px, 100%); max-height: 300px; border-radius: 10px; background: #000; }
.fold-h.chatfold > .ic { color: var(--accent, #007aff); }
/* 22o: ⋮ κάτω δεξιά σε κάθε φωτογραφία */
.phcell { position: relative; min-width: 0; }
.phcell > .ph { width: 100%; }
.phmore { position: absolute; right: 6px; bottom: 6px; width: 30px; height: 30px; min-height: 0; padding: 0; border: 0; border-radius: 50%;
  background: rgba(255,255,255,.92); color: var(--ink); box-shadow: 0 1px 4px rgba(0,0,0,.22); display: flex; align-items: center; justify-content: center; }
.phmore:hover { background: #fff; }
.phmore .ic { width: 18px; height: 18px; }
@media (max-width: 600px) { .phmore { width: 28px; height: 28px; right: 4px; bottom: 4px; } }
.ph:hover img { transform: scale(1.04); }
.phtag { position: absolute; left: 6px; bottom: 6px; background: #fff; color: var(--ink); font-size: 12px; font-weight: 700; padding: 2px 7px 2px 18px;
  border-radius: 99px; box-shadow: 0 1px 3px rgba(0,0,0,.25); }
.phtag::before { content: ""; position: absolute; left: 6px; top: 50%; width: 8px; height: 8px; margin-top: -4px; border-radius: 50%; background: var(--c, #888); }
.phtag.form { padding: 3px 6px; } .phtag.form::before { display: none; } .phtag .ic { width: 14px; height: 14px; }
.ppick.right .ppdrop { left: auto; right: 0; }
@media (max-width: 600px) { .phgrid { grid-template-columns: repeat(3, 1fr); gap: 4px; } }

.pv { position: fixed; inset: 0; z-index: 1600; background: rgba(15, 23, 42, .6); display: flex; align-items: center; justify-content: center; padding: 24px; }
.pv-box { background: #fff; border-radius: 10px; width: min(1200px, 100%); height: min(860px, 100%); display: flex; flex-direction: column; overflow: hidden; box-shadow: var(--sh-3); }
.pv-head { display: flex; align-items: center; justify-content: space-between; padding: 8px 12px 8px 16px; border-bottom: 1px solid var(--line); font-weight: 600; }
.pv-head .close { width: 34px; height: 34px; min-height: 0; padding: 0; border-radius: 50%; font-size: 22px; }
.pv-body { flex: 1; display: flex; min-height: 0; }
.pv-stage { flex: 1; position: relative; background: #0f172a; overflow: hidden; display: flex; align-items: center; justify-content: center; touch-action: none; user-select: none; }
.pv-stage img { max-width: 100%; max-height: 100%; transform-origin: center; transition: transform .08s; }
.pv-stage.zoomed { cursor: grab; }
.pv-zoom { position: absolute; left: 10px; top: 10px; display: flex; flex-direction: column; gap: 4px; }
.pv-zoom button { width: 34px; height: 34px; min-height: 0; padding: 0; font-size: 20px; background: rgba(255,255,255,.92); }
.pv-nav { position: absolute; top: 50%; transform: translateY(-50%); width: 44px; height: 64px; min-height: 0; padding: 0; font-size: 36px; line-height: 1;
  background: rgba(15, 23, 42, .45); color: #fff; border: 0; border-radius: 8px; }
.pv-nav.prev { left: 8px; } .pv-nav.next { right: 8px; }
.pv-nav:hover { background: rgba(15, 23, 42, .7); color: #fff; }
.pv-side { width: 320px; flex: 0 0 auto; overflow: auto; padding: 14px 18px 18px; border-left: 1px solid var(--line); }
.pv-side h3 { font-size: 13px; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); margin: 14px 0 6px; }
.pv-side h3:first-child { margin-top: 0; }
.pv-dl { display: grid; grid-template-columns: auto 1fr; gap: 4px 12px; margin: 0; font-size: 14px; }
.pv-dl dt { color: var(--muted); } .pv-dl dd { margin: 0; }
.pv-link { display: flex; gap: 10px; align-items: flex-start; width: 100%; text-align: left; justify-content: flex-start; padding: 10px; border: 1px solid var(--line);
  border-radius: 8px; background: #fff; color: var(--ink); font: inherit; line-height: 1.35; min-height: 0; }
.pv-link:hover { border-color: #b6cde6; }
.pin-dot { flex: 0 0 auto; width: 14px; height: 14px; border-radius: 50% 50% 50% 2px; transform: rotate(-45deg); margin-top: 3px; }
.pv-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 6px; }
.tagchip { display: inline-flex; align-items: center; gap: 2px; background: var(--brand-50); color: var(--brand); border-radius: 99px; padding: 2px 4px 2px 10px; font-size: 13px; }
.tagchip button { width: 20px; height: 20px; min-height: 0; padding: 0; border: 0; background: none; color: inherit; font-size: 15px; }
.pv-acts { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; padding-top: 14px; border-top: 1px solid var(--line); }
.pv-acts .danger { color: var(--open); }
.small { font-size: 12px; margin-top: 6px; }
.tpick { display: flex; flex-direction: column; gap: 4px; margin-top: 10px; }
.tpick button { display: flex; gap: 8px; align-items: center; justify-content: flex-start; text-align: left; border: 1px solid var(--line); background: #fff; min-height: 40px; }
.tpick button.on { border-color: var(--brand); background: var(--brand-50); }
@media (max-width: 760px) {
  .pv { padding: 0; }
  .pv-box { border-radius: 0; height: 100%; }
  .pv-body { flex-direction: column; }
  .pv-stage { flex: 0 0 55%; }
  .pv-side { width: auto; border-left: 0; border-top: 1px solid var(--line); }
}
.pv-nav[hidden] { display: none; }

/* task list: delete (admin) */
td.delcell { width: 1%; text-align: right; padding-right: 12px; }
.delbtn { width: 34px; height: 34px; min-height: 0; padding: 0; border: 0; background: none; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; }
.delbtn:hover { background: #fdecea; transform: scale(1.08); }
.delbtn svg { display: block; filter: drop-shadow(0 1px 1.5px rgba(0,0,0,.18)); }

/* project settings: position map */
.pmapcard { padding: 8px; }
.pmap { height: 380px; border-radius: 8px; overflow: hidden; margin-bottom: 6px; }
.geo-pin { background: none; border: 0; }
.geo-pin .pin-ic { display: block; width: 26px; height: 26px; border-radius: 50% 50% 50% 4px; transform: rotate(-45deg); background: #e53935;
  border: 2px solid #fff; box-shadow: 0 2px 5px rgba(0,0,0,.35); margin: 0 1px; }
.geo-pin .pin-ic span { display: block; width: 8px; height: 8px; margin: 7px; border-radius: 50%; background: #fff; }
.pmap .leaflet-control-layers label { font-size: 13px; display: flex; gap: 6px; align-items: center; }
.pmap .leaflet-control-layers input { width: auto; min-height: 0; }
@media (max-width: 600px) { .pmap { height: 300px; } }

/* Google Drive / Dropbox */
.cloudbtn { white-space: nowrap; }
.picker-dialog-bg { z-index: 4000 !important; }
.picker-dialog { z-index: 4001 !important; }

/* ---------- users: deactivated login, filters, rights, bulk actions ---------- */
.login-msg { margin: 8px 0 4px; padding: 10px 12px; border-radius: var(--r-sm); background: #fef2f2; color: #991b1b; font-size: 13.5px; font-weight: 550; }
.login-msg.hidden { display: none; }
.ufilter { display: flex; flex-direction: row; gap: 4px; margin: 4px 0 10px; }
.ufilter .chip { flex: 0 0 auto; width: auto; }
td.uacts { white-space: nowrap; text-align: right; }
td.uacts button { margin-left: 6px; }
td.uacts .danger .ic, td.uacts .primary .ic { width: 16px; height: 16px; }
.panel h4 { margin: 16px 0 6px; font-size: 13px; color: var(--muted); text-transform: uppercase; letter-spacing: .04em; }
.rights { margin-top: 12px; padding: 10px 12px; background: var(--brand-50); border-radius: var(--r-sm); }
.rights ul { margin: 6px 0 0; padding-left: 18px; color: var(--ink-2); font-size: 13.5px; }
.badge-off { color: var(--open); font-weight: 650; }
table.acc td, table.acc th { padding: 6px 8px; }
.warnbox { margin: 10px 0 6px; padding: 10px 12px; border-radius: var(--r-sm); background: #fff7ed; color: #9a3412; font-weight: 550; }
.ckrow { display: flex; align-items: center; gap: 10px; padding: 7px 2px; margin: 0; font-weight: 500; color: var(--ink); cursor: pointer; }
.ckrow input { width: 18px; height: 18px; flex: 0 0 auto; margin: 0; }
.bulkbar { position: sticky; top: 0; z-index: 5; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; padding: 8px 12px; margin-bottom: 8px;
  background: var(--brand); color: #fff; border-radius: var(--r-sm); box-shadow: var(--sh-2); font-weight: 600; }
.bulkbar.hidden { display: none; }
.bulkbar button { background: #fff; color: var(--brand); border: 0; }
.bulkbar button.primary { background: #fff; color: var(--brand); }
.bulkbar .ic { width: 16px; height: 16px; }
th.selcell, td.selcell { width: 1%; padding-right: 0; }
td.selcell input, th.selcell input { width: 20px; height: 20px; margin: 0; cursor: pointer; vertical-align: middle; }
tr.picked td { background: var(--brand-50); }
@media (max-width: 767px) { .bulkbar .grow { display: none; } }

/* ================= screen sizes: desktop ≥ 1200 · tablet 768–1199 · phone < 768 ================= */
.wrap.wide { max-width: 1440px; }
.fbtn, .tbmore, .navmore, .fab, .drawbar .dbfold { display: none; }
.fcount { background: var(--brand); color: #fff; border-radius: 99px; font-size: 11px; font-weight: 700; line-height: 18px; min-width: 18px; padding: 0 5px; text-align: center; }
.fcount[hidden] { display: none; }
.tbmore { width: 38px; padding: 0; }
.fpanel .fchips { display: flex; flex-direction: row; flex-wrap: wrap; gap: 6px; }
.fpanel .fchips .chip, .fpanel .fchips .cat { width: auto; background: var(--line-2); border-radius: 99px; min-height: 36px; padding: 4px 14px; gap: 8px; justify-content: center; }
.fpanel .fchips .chip.on, .fpanel .fchips .cat.on { background: var(--brand-50); color: var(--brand); }
.fpanel .linkbtn { margin: 16px 0 0; }
@media (min-width: 1200px) and (max-width: 1499px) {
  .toolbar select { max-width: 170px; }
  .toolbar .dtool span { display: none; }
  .toolbar .dtool { padding: 8px 10px; }
}

/* tablet and phone: filters in a panel, PDF / Offline under ⋮ */
@media (max-width: 1199px) {
  .toolbar .dfl, .toolbar .dtool { display: none; }
  .fbtn, .tbmore { display: inline-flex; }
  .side .side-h, .side .scopes, .side .cats { display: none; }
}

/* tablet: icon rail */
@media (min-width: 768px) and (max-width: 1199px) {
  .side { flex: 0 0 78px; padding: 10px 6px; }
  .side .tab { flex-direction: column; gap: 4px; padding: 9px 2px; font-size: 10.5px; font-weight: 600; text-align: center; line-height: 1.15; }
  .side .tab span { max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .side .tab .ic { width: 22px; height: 22px; }
}

/* phone: bottom bar, one-row toolbar, cards, round + button */
@media (max-width: 767px) {
  .proj { flex-direction: column; }
  .proj > .main { padding-bottom: calc(62px + env(safe-area-inset-bottom)); }
  .side { position: fixed; z-index: 900; left: 0; right: 0; bottom: 0; display: flex; flex-direction: row; align-items: stretch; gap: 0;
    height: calc(62px + env(safe-area-inset-bottom)); padding: 4px 4px env(safe-area-inset-bottom); overflow: visible;
    border-right: 0; border-top: 1px solid var(--line); box-shadow: 0 -2px 12px rgba(15, 23, 42, .06); }
  .side .tab, .side .navmore { flex: 1 1 0; min-width: 0; flex-direction: column; justify-content: center; gap: 3px; margin: 0; padding: 4px 2px;
    font-size: 10.5px; font-weight: 600; line-height: 1.1; text-align: center; border-radius: 10px; }
  .side .tab span, .side .navmore span { max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .side .tab .ic, .side .navmore .ic { width: 22px; height: 22px; }
  .side .tab.xtra { display: none; }
  .navmore { display: flex; align-items: center; border: 0; background: none; box-shadow: none; color: var(--ink-2); min-height: 0; }
  .navmore .ic { color: var(--faint); }
  .navmore.on { background: var(--brand-50); color: var(--brand); }
  .toolbar { padding: 8px 10px; gap: 6px; flex-wrap: nowrap; }
  .toolbar .seg, .toolbar #add, .toolbar #addfold, .toolbar > .grow { display: none; }
  .toolbar input[type=search] { flex: 1 1 auto; min-width: 0; max-width: none !important; }
  .toolbar #folder { max-width: 42%; }
  .toolbar #sheet { flex: 1 1 auto; min-width: 0; max-width: none; }
  .fbtn .lbl { display: none; }
  .fbtn { padding: 8px 10px; position: relative; }
  .fbtn .fcount { position: absolute; top: -5px; right: -5px; }
  .fab { display: flex; position: fixed; z-index: 850; right: 16px; bottom: calc(76px + env(safe-area-inset-bottom)); width: 56px; height: 56px;
    border-radius: 50%; padding: 0; background: var(--brand); color: #fff; border: 0; box-shadow: 0 6px 18px rgba(0, 82, 163, .4); }
  .fab .ic { width: 26px; height: 26px; }
  .listpane { padding: 12px 12px 90px; }
  .toast { bottom: calc(80px + env(safe-area-inset-bottom)); }
  /* drawer = sheet from the bottom */
  .drawer { top: auto; left: 0; right: 0; bottom: 0; width: 100%; max-height: 88vh; border-left: 0; border-radius: 16px 16px 0 0;
    padding: 18px 16px calc(18px + env(safe-area-inset-bottom)); animation: sheetup .2s ease-out; }
  /* task cards */
  .tcards { display: flex; flex-direction: column; gap: 8px; }
  .tcard { display: flex; gap: 10px; align-items: flex-start; background: #fff; border: 1px solid var(--line); border-left: 4px solid #888;
    border-radius: 12px; padding: 11px 12px; box-shadow: var(--sh-1); user-select: none; -webkit-user-select: none; }
  .tcard.picked { background: var(--brand-50); border-color: #b6d4f5; }
  .tc-main { flex: 1; min-width: 0; }
  .tc-top { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
  .tc-n { font-weight: 700; color: var(--muted); font-size: 13px; }
  .tc-t { font-weight: 600; margin: 4px 0 2px; line-height: 1.35; }
  .tc-m { font-size: 13px; color: var(--muted); }
  .tcard .selcell { padding-top: 2px; }
  .selall-row { display: flex; align-items: center; gap: 10px; margin: 0 2px 10px; font-size: 14px; color: var(--ink); }
  .bulkbar { position: sticky; top: 0; }
  /* item card: message box fixed at the bottom */
  .m-box > .composer { flex: 0 0 auto; border: 0; border-top: 1px solid var(--line); border-radius: 0; padding: 8px 10px calc(8px + env(safe-area-inset-bottom)); box-shadow: 0 -2px 10px rgba(15,23,42,.06); }
  .m-box > .composer textarea { min-height: 42px; max-height: 120px; }
  .m-box > .composer .ppdrop { top: auto; bottom: calc(100% + 4px); }
  .m-head { padding: 10px 12px; position: sticky; top: 0; }
  .m-title { font-size: 17px; }
  /* plan: 22w: εργαλεία σε στήλη κάτω αριστερά· το κουμπί ανοίγματος/κλεισίματος στο κάτω μέρος, η στήλη ανοίγει προς τα πάνω */
  .drawbar { top: auto; left: 8px; right: auto; bottom: 8px; flex-direction: column-reverse; align-items: center; overflow-x: hidden; overflow-y: auto; scrollbar-width: none; padding: 4px; max-height: calc(100% - 16px); max-width: none; }
  .drawbar::-webkit-scrollbar { display: none; }
  .drawbar button { flex: 0 0 auto; width: 42px; height: 42px; }
  .drawbar .sep { width: 28px; height: 1px; margin: 3px 0; flex: 0 0 auto; }
  .drawbar .pintool { height: 42px; }
  .drawbar .dbfold { display: inline-flex; flex-direction: column; gap: 0; width: 42px; height: 52px; color: var(--brand); }
  .drawbar > button#dbfold { position: sticky; bottom: -4px; z-index: 2; background-color: #fff; opacity: 1; box-shadow: 0 -6px 8px -6px rgba(0, 0, 0, .25); border-radius: 8px; }
  .drawbar > button#dbfold:hover, .drawbar > button#dbfold:active { background-color: #eef4ff; }
  .drawbar.folded > button#dbfold { box-shadow: none; }
  .drawbar .dbfold .chev { display: inline-flex; transform: rotate(90deg); transition: transform .15s; }
  .drawbar .dbfold .chev .ic { width: 14px; height: 14px; }
  .drawbar.folded > :not(.pintool):not(.dbfold) { display: none; }
  .drawbar.folded .dbfold .chev { transform: rotate(-90deg); }
  #map .leaflet-control-zoom { display: none; }
  /* projects: compact cards */
  .pgrid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
  /* tables that become cards */
  table.rtable, table.rtable tbody, table.rtable tr, table.rtable td { display: block; }
  table.rtable { border: 0; background: none; box-shadow: none; }
  table.rtable thead { display: none; }
  table.rtable tr { display: flex; flex-wrap: wrap; align-items: center; gap: 2px 10px; background: #fff; border: 1px solid var(--line);
    border-radius: 12px; padding: 10px 12px; margin-bottom: 8px; box-shadow: var(--sh-1); }
  table.rtable td { border: 0; padding: 2px 0; }
  table.rtable td:first-child { flex: 1 1 60%; font-weight: 600; }
  table.rtable td:last-child { margin-left: auto; }
  table.rtable td.uacts { white-space: nowrap; width: auto; }
  table.rtable td.uacts button { display: inline-flex; width: auto; margin: 0 0 0 6px; }
}
@keyframes sheetup { from { transform: translateY(30px); opacity: 0; } to { transform: none; opacity: 1; } }

/* touch screens: bigger targets */
@media (pointer: coarse) {
  button, .btn, select, input:not([type=checkbox]):not([type=radio]) { min-height: 44px; }
  .toolbar select, .toolbar input, .toolbar button { min-height: 42px; }
  .kebab { width: 40px; height: 40px; }
  .pcard .kebab { width: 36px; height: 36px; }
  .chip, .cat { min-height: 40px; }
  input[type=checkbox], input[type=radio] { width: 20px; height: 20px; }
  .side .tab { min-height: 44px; }
  .seg button { min-height: 36px; }
  .m-head .close, .drawer .close { width: 40px; height: 40px; }
}

/* short screens (tablet held sideways, small laptop): smaller tool buttons so the whole column fits */
@media (min-width: 768px) and (max-height: 760px) {
  .drawbar button { width: 36px; height: 36px; min-height: 0; }
  .drawbar .pintool { height: 40px; }
  .drawbar .sep { margin: 2px 4px; }
}

/* ---------- plan folders as a tree, several sheets selected ---------- */
.listpane > .sheets { margin-left: calc(var(--d, 0) * 22px); }
.listpane > .fold-h[data-fold] { margin-left: calc(var(--d, 0) * 22px - 6px); }
@media (max-width: 767px) {
  .listpane > .sheets { margin-left: calc(var(--d, 0) * 12px); }
  .listpane > .fold-h[data-fold] { margin-left: calc(var(--d, 0) * 12px - 6px); }
}
.fold-h .fsel { display: inline-flex; align-items: center; gap: 6px; margin: 0 0 0 10px; font-size: 12.5px; font-weight: 550; color: var(--brand); cursor: pointer; }
.fold-h .fsel input { width: 17px; height: 17px; }
.sheet-card .sc-ck { position: absolute; top: 8px; left: 8px; width: 22px; height: 22px; margin: 0; z-index: 2; pointer-events: none; }
.sheet-card.picked { border-color: var(--brand); box-shadow: 0 0 0 2px var(--brand); }
.sheet-card.picked img { opacity: .85; }
.fpick { display: flex; flex-direction: column; gap: 2px; margin-top: 8px; max-height: 60vh; overflow: auto; }
.fpick .ckrow span { display: inline-flex; align-items: center; gap: 8px; }
.fpick .ckrow .ic { width: 18px; height: 18px; color: var(--faint); }

/* ---------- projects: smaller cards, more on the screen ---------- */
.pgrid { grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 10px; }
.pcard { padding: 11px 12px; gap: 8px; border-radius: 10px; }
.pcard .pch { gap: 8px; }
.pcard .pi { width: 28px; height: 28px; border-radius: 7px; font-size: 11px; }
.pcard .pn { font-size: 13px; }
.pcard .pa { font-size: 11.5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pcard .pnum b { font-size: 18px; }
.pcard .pnum span, .pcard .muted { font-size: 11.5px; }
.pcard .sbar { height: 5px; }
.pcard .slegend { font-size: 11px; gap: 2px 8px; }
.pcard .slegend .dot { width: 7px; height: 7px; margin-right: 4px; }
.pcard .kebab { width: 28px; height: 28px; margin: -4px -6px 0 auto; }
@media (max-width: 767px) { .bulkbar [data-sb] .lbl, .bulkbar [data-fb] .lbl { display: none; } .bulkbar [data-sb], .bulkbar [data-fb] { padding: 8px 11px; } .bulkbar { flex-wrap: nowrap; } }

/* ---------- «Αρχεία»: rows, no thumbnails ---------- */
.frows { background: #fff; border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; margin: 0 0 18px calc(var(--d, 0) * 22px); box-shadow: var(--sh-1); }
.listpane > .fold-h[data-ffold] { margin-left: calc(var(--d, 0) * 22px - 6px); cursor: pointer; user-select: none; border-radius: 8px; padding: 4px 6px; }
.listpane > .fold-h[data-ffold]:hover { background: var(--hover); }
.listpane > .fold-h[data-ffold].shut { margin-bottom: 14px; }
.frow { display: flex; align-items: center; gap: 12px; padding: 9px 12px; border-bottom: 1px solid var(--line-2); cursor: pointer; min-height: 54px; }
.frow:last-child { border-bottom: 0; }
.frow:hover { background: #f6f9fd; }
.frow.picked { background: var(--brand-50); }
.frow.archived { opacity: .7; }
.frow .fr-ck { width: 20px; height: 20px; margin: 0; flex: 0 0 auto; pointer-events: none; }
.ftype { flex: 0 0 auto; width: 40px; height: 34px; border-radius: 7px; display: inline-flex; align-items: center; justify-content: center;
  font-size: 10.5px; font-weight: 800; letter-spacing: .03em; color: #fff; background: var(--c, #64748b); }
.fr-n { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.fr-t { font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.fr-m { font-size: 12.5px; color: var(--muted); display: none; }
.fr-s, .fr-d { flex: 0 0 90px; color: var(--muted); font-size: 13px; text-align: right; }
.fr-b { flex: 0 0 160px; color: var(--muted); font-size: 13px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.frow .kebab { margin: 0; }
@media (max-width: 1199px) { .fr-b { display: none; } }
@media (max-width: 767px) {
  .fr-m { display: block; }
  .frows { margin-left: calc(var(--d, 0) * 12px); }
  .listpane > .fold-h[data-ffold] { margin-left: calc(var(--d, 0) * 12px - 6px); }
}
.tbmore.always { display: inline-flex; }
.lhead img { aspect-ratio: 210 / 297; }

/* new task: the pin waits for «✓» */
.pin.newpin { background: #e53935; animation: pinpop .25s ease-out; box-shadow: 0 0 0 4px rgba(229, 57, 53, .25), 0 3px 8px rgba(15, 23, 42, .4); font-size: 16px; }
@keyframes pinpop { from { transform: rotate(-45deg) translate(0, -14px) scale(.6); opacity: 0; } to { transform: rotate(-45deg); opacity: 1; } }
.pinbar { position: absolute; z-index: 900; top: 12px; left: 50%; transform: translateX(-50%); display: flex; align-items: center; gap: 8px;
  background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 8px 8px 8px 14px; box-shadow: var(--sh-3); max-width: calc(100% - 24px); }
.pinbar .pb-t { display: flex; flex-direction: column; font-weight: 650; line-height: 1.25; margin-right: 4px; }
.pinbar .pb-t small { font-weight: 500; color: var(--muted); font-size: 12px; }
@media (max-width: 767px) { .pinbar { top: 8px; left: 8px; right: 8px; transform: none; max-width: none; } .pinbar .pb-t small { display: none; } .pinbar .pb-t { flex: 1; } }
.toolbar .selbtn { display: inline-flex; }
@media (max-width: 767px) { .toolbar .selbtn .lbl { display: none; } .toolbar .selbtn { padding: 8px 10px; } }

/* saved pins: selected / being moved */
.pin.picked { box-shadow: 0 0 0 4px var(--brand), 0 4px 12px rgba(15, 23, 42, .4); }
.pin.moving { box-shadow: 0 0 0 4px #f59e0b, 0 6px 16px rgba(15, 23, 42, .45); cursor: grab; }
.leaflet-tooltip.pintip { font: inherit; font-size: 13px; border-radius: 8px; padding: 6px 10px; box-shadow: var(--sh-2); max-width: 260px; white-space: normal; line-height: 1.35; }

/* in-app viewer («Αρχεία», PDF φορμών, αναφορές) */
.viewer { position: fixed; inset: 0; z-index: 2500; background: #1e293b; display: flex; flex-direction: column; }
.viewer.hidden { display: none; }
html.vw-open, html.vw-open body { overflow: hidden; }
.vw-bar { display: flex; align-items: center; gap: 6px; padding: 8px 10px; padding-top: max(8px, env(safe-area-inset-top));
  background: #0f172a; color: #fff; flex: 0 0 auto; }
.vw-bar button { background: transparent; color: #fff; border-color: rgba(255,255,255,.22); min-height: 38px; padding: 6px 10px; }
.vw-bar button:hover { background: rgba(255,255,255,.1); }
.vw-bar .ic { stroke: currentColor; }
.vw-title { flex: 1 1 auto; min-width: 0; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.vw-page { color: #cbd5e1; white-space: nowrap; font-variant-numeric: tabular-nums; }
.vw-zoom { display: inline-flex; }
.vw-zoom button { border-radius: 0; min-width: 38px; padding: 6px 8px; }
.vw-zoom button:first-child { border-radius: 8px 0 0 8px; }
.vw-zoom button:last-child { border-radius: 0 8px 8px 0; }
.vw-zoom .vw-pct { min-width: 58px; border-left: 0; border-right: 0; font-variant-numeric: tabular-nums; }
.vw-x { font-size: 18px; width: 40px; }
.vw-body { flex: 1 1 auto; overflow: auto; -webkit-overflow-scrolling: touch; touch-action: pan-x pan-y; overscroll-behavior: contain; }
.vw-pages { display: flex; flex-direction: column; align-items: center; gap: 12px; padding: 12px; min-height: 100%; box-sizing: border-box; width: max-content; min-width: 100%; }
.vw-pg { background: #fff; box-shadow: 0 2px 10px rgba(0,0,0,.35); position: relative; flex: 0 0 auto; }
.vw-pg canvas { width: 100%; height: 100%; display: block; }
.vw-pg.loading::after { content: ""; position: absolute; left: 50%; top: 50%; width: 28px; height: 28px; margin: -14px; border-radius: 50%;
  border: 3px solid #cbd5e1; border-top-color: var(--brand); animation: vwspin .8s linear infinite; }
.vw-pg.err::after { content: "Η σελίδα δεν εμφανίστηκε"; position: absolute; inset: 0; display: grid; place-items: center; color: #64748b; }
@keyframes vwspin { to { transform: rotate(360deg); } }
.viewer:not([data-kind=pdf]) .vw-pages { justify-content: center; height: 100%; }
.viewer[data-kind=img] .vw-pages { height: auto; min-height: 100%; }
.vw-media { max-width: 100%; max-height: 100%; display: block; background: #000; }
.vw-text { background: #fff; color: var(--ink); padding: 16px; margin: 0; white-space: pre-wrap; word-break: break-word; width: min(900px, 100%);
  box-sizing: border-box; font: 13px/1.5 ui-monospace, Menlo, Consolas, monospace; }
.vw-msg { color: #e2e8f0; padding: 40px 16px; text-align: center; }
@media (max-width: 700px) {
  .vw-bar { gap: 4px; padding-left: 6px; padding-right: 6px; }
  .vw-bar .lbl { display: none; }
  .vw-bar button { padding: 6px 8px; }
  .vw-zoom .vw-pct { min-width: 50px; }
  .vw-page { font-size: 12px; }
}
@media (max-width: 460px) { .vw-zoom { display: none !important; } .vw-x { display: none; } }
html.vw-open .drawer { z-index: 2600; }

/* ---------- Chat ---------- */
.chatpane { flex: 1; min-height: 0; display: flex; flex-direction: column; background: var(--bg); }
.chat-head { display: flex; align-items: center; gap: 12px; padding: 14px 20px 10px; flex: 0 0 auto; }
.chat-head h1 { margin: 0; }
.chat-people { min-height: 32px; padding: 4px 12px; font-size: 13.5px; gap: 6px; }
.chat-people .ic { width: 16px; height: 16px; }
.chat-state { font-size: 12.5px; color: var(--muted); margin-left: auto; }
.chat-state.off { color: var(--warn); }
.chat-list { flex: 1 1 auto; min-height: 0; overflow-y: auto; padding: 6px 20px 16px; overscroll-behavior: contain; -webkit-overflow-scrolling: touch; }
.chat-empty { text-align: center; padding: 40px 16px; }
.chat-older { margin: 4px auto 10px; display: flex; }
.chat-day { display: flex; justify-content: center; margin: 14px 0 10px; }
.chat-day span { font-size: 12px; font-weight: 600; color: var(--muted); background: rgba(120, 120, 128, .12); border-radius: 99px; padding: 3px 12px; }
.cmsg { display: flex; align-items: flex-start; gap: 10px; margin: 0 0 10px; max-width: 760px; }
.cmsg.pending { opacity: .65; }
.chat-av { flex: 0 0 auto; width: 32px; height: 32px; border-radius: 50%; background: var(--c, #8e8e93); color: #fff; font-size: 12px; font-weight: 700;
  display: inline-flex; align-items: center; justify-content: center; margin-top: 2px; }
.cbub { min-width: 0; max-width: min(620px, 100%); background: #e5f1ff; border-radius: 4px 18px 18px 18px; padding: 8px 12px 10px; }
.cmsg.tome .cbub { background: #fff4e0; box-shadow: inset 3px 0 0 var(--warn); }
.cmeta { display: flex; align-items: baseline; flex-wrap: wrap; gap: 4px 8px; font-size: 13px; margin-bottom: 2px; }
.cmeta b { font-weight: 650; color: var(--ink); }
.cmeta time { color: var(--muted); font-size: 12px; font-variant-numeric: tabular-nums; }
.cto { font-size: 11.5px; font-weight: 650; color: #c93400; }
.cto.pend { color: var(--muted); font-weight: 500; }
.ctext { font-size: 15px; line-height: 1.4; white-space: normal; overflow-wrap: anywhere; color: var(--ink); }
.ctext a { text-decoration: underline; }
.cment { color: var(--brand); font-weight: 600; }
.cment.me { background: rgba(255, 149, 0, .2); color: #a14800; border-radius: 4px; padding: 0 2px; }
.chat-img { display: block; padding: 0; border: 0; background: none; min-height: 0; margin-top: 6px; border-radius: 12px; overflow: hidden; box-shadow: none; max-width: 100%; }
.chat-img img { display: block; max-width: min(320px, 100%); max-height: 320px; border-radius: 12px; }
.chat-vid { display: block; margin-top: 6px; width: min(360px, 100%); max-height: 320px; border-radius: 12px; background: #000; }
.chat-fname { font-size: 12px; margin-top: 4px; }
.chat-pdf { display: flex; align-items: center; gap: 10px; margin-top: 6px; background: #fff; border-radius: 12px; padding: 8px 8px 8px 10px; max-width: 420px;
  box-shadow: 0 0 0 .5px rgba(0, 0, 0, .06), 0 1px 3px rgba(0, 0, 0, .06); }
.chat-pdf-open { flex: 1; min-width: 0; display: flex; align-items: center; gap: 10px; padding: 0; border: 0; background: none; box-shadow: none; min-height: 0; text-align: left; color: var(--ink); }
.chat-pdf-open:hover { background: none; }
.chat-pdf .fr-n { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.chat-pdf .fr-t { font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.chat-pdf .fr-m { font-size: 12.5px; color: var(--muted); }
.chat-comp { position: relative; flex: 0 0 auto; padding: 8px 16px calc(10px + env(safe-area-inset-bottom)); background: rgba(249, 249, 249, .92);
  -webkit-backdrop-filter: saturate(180%) blur(20px); backdrop-filter: saturate(180%) blur(20px); border-top: .5px solid var(--line); }
.chat-row { display: flex; align-items: flex-end; gap: 8px; }
.chat-row textarea { flex: 1; min-height: 40px; max-height: 160px; resize: none; border-radius: 20px; padding: 9px 14px; line-height: 1.35; }
.chat-ic { flex: 0 0 auto; width: 40px; height: 40px; min-height: 0; padding: 0; border-radius: 50%; background: none; color: var(--brand); box-shadow: none; }
.chat-ic .ic { width: 24px; height: 24px; }
.chat-send { flex: 0 0 auto; width: 40px; height: 40px; min-height: 0; padding: 0; border-radius: 50%; }
.chat-send .ic { width: 22px; height: 22px; stroke-width: 2.4; }
.chat-att { display: flex; align-items: center; gap: 10px; margin: 0 0 8px; background: #fff; border-radius: 12px; padding: 8px 10px; max-width: 520px;
  box-shadow: 0 0 0 .5px rgba(0, 0, 0, .06); }
.chat-att[hidden] { display: none; }
.chat-att .fr-n { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.chat-att .fr-t { font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.chat-att .fr-m { font-size: 12.5px; color: var(--muted); }
.chat-prog { display: block; height: 4px; border-radius: 99px; background: rgba(120, 120, 128, .16); overflow: hidden; margin-top: 4px; }
.chat-prog i { display: block; height: 100%; background: var(--brand); transition: width .2s; }
.chat-emo, .chat-at { position: absolute; z-index: 30; left: 12px; bottom: calc(100% + 6px); background: rgba(252, 252, 252, .98);
  -webkit-backdrop-filter: saturate(180%) blur(30px); backdrop-filter: saturate(180%) blur(30px); border-radius: 14px;
  box-shadow: 0 0 0 .5px rgba(0, 0, 0, .08), 0 16px 48px rgba(0, 0, 0, .2); animation: fade .15s ease-out; }
.chat-emo { width: min(360px, calc(100vw - 24px)); max-height: 300px; overflow-y: auto; padding: 6px 8px 10px; }
.ce-h { font-size: 12px; font-weight: 600; color: var(--muted); margin: 8px 4px 4px; }
.ce-g { display: grid; grid-template-columns: repeat(8, 1fr); gap: 2px; }
.ce-g button { min-height: 0; height: 40px; padding: 0; border: 0; background: none; box-shadow: none; font-size: 24px; border-radius: 8px; }
.ce-g button:hover { background: rgba(120, 120, 128, .12); }
.chat-at { width: min(340px, calc(100vw - 24px)); max-height: 280px; overflow-y: auto; padding: 4px 0; left: 60px; }
.chat-at button { display: flex; align-items: center; gap: 10px; width: 100%; justify-content: flex-start; text-align: left; border: 0; border-radius: 0;
  background: none; box-shadow: none; min-height: 48px; padding: 6px 14px; color: var(--ink); }
.chat-at button span:last-child { display: flex; flex-direction: column; min-width: 0; }
.chat-at button b { font-weight: 600; }
.chat-at button small { font-size: 12px; color: var(--muted); }
.chat-at button.on, .chat-at button:hover { background: rgba(0, 122, 255, .1); }
/* chat: reply, reactions, actions, edit/delete, task, search, saved (2026-10-21) */
.chat-hb { width: 36px; height: 36px; }
.chat-hb .ic { width: 21px; height: 21px; }
.cbody { position: relative; min-width: 0; max-width: min(620px, 100%); display: flex; flex-direction: column; align-items: flex-start; }
.cbody .cbub { max-width: 100%; }
.cedited { font-size: 11.5px; color: var(--muted); }
.csaved { display: inline-flex; color: #ff9500; }
.csaved .ic { width: 14px; height: 14px; fill: currentColor; }
.creply { display: flex; flex-direction: column; align-items: flex-start; gap: 1px; width: 100%; min-height: 0; margin: 4px 0 6px; padding: 5px 10px;
  border: 0; border-left: 3px solid var(--brand); border-radius: 6px; background: rgba(255, 255, 255, .65); box-shadow: none; text-align: left; color: var(--ink); font-size: 13px; }
.creply:hover { background: rgba(255, 255, 255, .9); }
.creply b { font-weight: 650; color: var(--brand); font-size: 12.5px; }
.creply span { color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 100%; }
.ctext.cdel { font-style: italic; color: var(--muted); font-size: 14px; }
.cmsg.gone .cbub { background: rgba(120, 120, 128, .1); }
.citem { display: inline-flex; align-items: center; gap: 6px; margin-top: 8px; padding: 5px 10px; border-radius: 99px; background: #fff; color: var(--brand);
  font-size: 13px; font-weight: 600; text-decoration: none; max-width: 100%; box-shadow: 0 1px 2px rgba(0, 0, 0, .06); }
.citem span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.citem .ic { width: 16px; height: 16px; flex: 0 0 auto; }
.creact { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 4px; }
.creact button { min-height: 28px; padding: 2px 9px; gap: 4px; border-radius: 99px; font-size: 14px; background: #fff; border: 1px solid rgba(60, 60, 67, .14); box-shadow: none; color: var(--ink); }
.creact button span { font-size: 12.5px; font-weight: 600; color: var(--muted); font-variant-numeric: tabular-nums; }
.creact button.mine { background: rgba(0, 122, 255, .1); border-color: rgba(0, 122, 255, .45); }
.creact button.mine span { color: var(--brand); }
.cbar { display: none; position: absolute; top: -18px; right: -6px; z-index: 5; gap: 2px; padding: 3px; background: #fff; border-radius: 12px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, .12), 0 0 0 .5px rgba(0, 0, 0, .06); }
.cbar button { width: 34px; height: 34px; min-height: 0; padding: 0; border: 0; border-radius: 8px; background: none; box-shadow: none; font-size: 17px; color: var(--brand); }
.cbar button:hover { background: rgba(120, 120, 128, .12); }
.cbar .ic { width: 20px; height: 20px; }
@media (hover: hover) and (pointer: fine) { .cmsg:not(.pending):not(.gone):hover .cbar { display: flex; } }
.cmsg.sel .cbar { display: flex; position: static; margin-top: 6px; }
.cmsg.sel .cbar button { width: 42px; height: 42px; font-size: 20px; }
.cmsg.sel .cbub { box-shadow: 0 0 0 2px rgba(0, 122, 255, .35); }
.cmsg.flash .cbub { animation: cflash 1.6s ease-out; }
@keyframes cflash { 0%, 30% { box-shadow: 0 0 0 3px rgba(255, 149, 0, .7); } 100% { box-shadow: 0 0 0 3px rgba(255, 149, 0, 0); } }
.chat-ctx { display: flex; align-items: center; gap: 10px; margin: 0 0 8px; background: #fff; border-radius: 12px; padding: 7px 10px; max-width: 620px;
  border-left: 3px solid var(--brand); box-shadow: 0 1px 2px rgba(0, 0, 0, .06); }
.chat-ctx[hidden] { display: none; }
.chat-ctx .cc-ic { color: var(--brand); display: inline-flex; }
.chat-ctx .cc-ic .ic { width: 20px; height: 20px; }
.chat-ctx .fr-n { flex: 1; min-width: 0; display: flex; flex-direction: column; font-size: 13px; }
.chat-ctx .fr-n b { color: var(--brand); font-weight: 650; }
.chat-ctx .fr-n span { color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.chat-ctx .x, .chat-att .x { flex: 0 0 auto; }
.chat-rpick { position: fixed; bottom: auto; left: auto; z-index: 3000; }
.chat-results { margin-top: 10px; }
.chat-res { width: 100%; text-align: left; align-items: flex-start; }
.chat-res .fr-m { white-space: normal; overflow-wrap: anywhere; }
.chat-res mark { background: rgba(255, 204, 0, .45); color: inherit; border-radius: 3px; padding: 0 1px; }
.cbadge { min-width: 18px; height: 18px; padding: 0 5px; border-radius: 99px; background: #8e8e93; color: #fff; font-size: 11px; font-weight: 700;
  display: inline-flex; align-items: center; justify-content: center; margin-left: auto; line-height: 1; }
.cbadge.men { background: #ff3b30; }
.cbadge[hidden] { display: none; }
.side .tab { position: relative; }
@media (max-width: 1199px) { .side .tab .cbadge { position: absolute; top: 4px; right: 8px; margin: 0; } }
@media (max-width: 767px) {
  .chatpane { padding-bottom: 0; }
  .proj > .main:has(> .chatpane) { min-height: 0; flex: 1 1 0; }
  .chat-head { padding: 10px 12px 6px; }
  .chat-head h1 { font-size: 22px; }
  .chat-list { padding: 4px 10px 12px; }
  .chat-comp { padding: 6px 8px 8px; }
  .chat-av { width: 28px; height: 28px; font-size: 11px; }
  .chat-at { left: 8px; }
}

/* ---------- phone notifications (push.js) ---------- */
.pushask { position: fixed; z-index: 2900; left: 50%; bottom: calc(20px + env(safe-area-inset-bottom)); width: min(520px, calc(100vw - 24px));
  display: grid; grid-template-columns: auto 1fr; gap: 4px 12px; align-items: start; padding: 14px 16px;
  background: rgba(255, 255, 255, .94); -webkit-backdrop-filter: blur(20px) saturate(180%); backdrop-filter: blur(20px) saturate(180%);
  border-radius: 16px; box-shadow: 0 8px 32px rgba(0, 0, 0, .16), 0 0 0 .5px rgba(0, 0, 0, .08);
  opacity: 0; transform: translate(-50%, 16px); transition: opacity .25s ease, transform .3s cubic-bezier(.2, .8, .2, 1); }
.pushask.in { opacity: 1; transform: translate(-50%, 0); }
.pushask > .ic { width: 28px; height: 28px; color: #fff; background: #ff3b30; border-radius: 8px; padding: 5px; box-sizing: border-box; margin-top: 2px; }
.pushask b { display: block; font-size: 16px; font-weight: 600; }
.pushask span { font-size: 14px; color: #3c3c43; line-height: 1.35; }
.pushask .pa-b { grid-column: 1 / -1; display: flex; justify-content: flex-end; gap: 8px; margin-top: 8px; }
.pushask .pa-b button { min-height: 44px; padding: 0 18px; border-radius: 12px; }
.pushask .pa-share { width: 17px; height: 17px; vertical-align: -3px; fill: none; stroke: #007aff; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
@media (max-width: 767px) { .pushask { bottom: calc(76px + env(safe-area-inset-bottom)); } }
.pushdevs { list-style: none; margin: 6px 0 0; padding: 0; }
.pushdevs li { display: flex; align-items: center; gap: 10px; min-height: 44px; border-top: .5px solid rgba(60, 60, 67, .18); }
.pushdevs li:first-child { border-top: 0; }
.pushdevs li > span:first-child { flex: 1; }
.pushdevs .muted { font-size: 13px; }
.pushdevs button.x { width: 44px; height: 44px; font-size: 22px; }

/* 22d: προβολή φωτογραφίας στο κινητό: τα στοιχεία κυλάνε και τα κουμπιά (Λήψη, Περιστροφή, Διαγραφή) μένουν πάντα ορατά κάτω */
@media (max-width: 760px) {
  .pv-box { height: 100%; height: 100dvh; }
  .pv-stage { flex: 0 0 44%; }
  .pv-side { flex: 1 1 auto; min-height: 0; overflow-y: auto; -webkit-overflow-scrolling: touch; padding-bottom: 0; }
  .pv-acts { position: sticky; bottom: 0; z-index: 2; background: #fff; margin: 14px -18px 0; padding: 10px 18px calc(10px + env(safe-area-inset-bottom)); }
  .pv-acts > * { flex: 1 1 0; justify-content: center; }
}

/* ---------- «Home» (2026-10-22l): τέσσερις κάρτες σε πλέγμα 2×2, μία στήλη στο κινητό ---------- */
.homepane { flex: 1; min-height: 0; overflow: auto; padding: 18px; }
.homepane.solo { max-width: 1400px; margin: 0 auto; height: 100%; }
.hgrid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.hcard { background: #fff; border-radius: 14px; box-shadow: var(--sh-1); display: flex; flex-direction: column; min-height: 320px; max-height: 46vh; min-width: 0; }
.hcard > header { display: flex; align-items: center; gap: 6px; padding: 12px 14px 8px; }
.hcard > header h2 { display: flex; align-items: center; gap: 8px; font-size: 15px; font-weight: 600; margin: 0; }
.hcard > header h2 .ic { width: 18px; height: 18px; color: var(--muted); }
.hcount { margin-left: auto; color: var(--muted); font-size: 13px; }
.hbtn { display: inline-flex; align-items: center; justify-content: center; width: 32px; height: 32px; min-height: 0; padding: 0; border: 0; border-radius: 8px; background: none; box-shadow: none; color: var(--muted); }
.hbtn:hover { background: var(--hover, #f2f2f7); color: var(--ink); }
.hbtn .ic { width: 18px; height: 18px; }
.hbody { flex: 1; overflow: auto; padding: 4px 14px 14px; min-height: 0; }
.hp-empty { color: var(--muted); padding: 24px 4px; text-align: center; }
.hchips { display: flex; flex-wrap: wrap; gap: 10px; }
.hchip { display: inline-flex; align-items: center; gap: 8px; min-width: 200px; max-width: 100%; padding: 12px 14px; border-radius: 10px; background: #f2f2f7; color: var(--ink); text-decoration: none; font-weight: 500; }
.hchip:hover { background: #e8e8ed; }
.hchip .ic { width: 18px; height: 18px; color: #d4a017; flex: none; }
.hchip span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.hlist { list-style: none; margin: 0; padding: 0; }
.hlist li > a, .hlist li > button { display: flex; align-items: center; gap: 10px; width: 100%; padding: 9px 6px; border: 0; border-radius: 8px; background: none; box-shadow: none;
  color: var(--ink); text-decoration: none; text-align: left; font: inherit; min-height: 44px; cursor: pointer; }
.hlist li > a:hover, .hlist li > button:hover { background: #f2f2f7; }
.hlist .dot { width: 10px; height: 10px; border-radius: 50%; flex: none; margin: 0 4px; }
.hlist .hic { display: inline-flex; flex: none; color: var(--muted); }
.hlist .hic .ic { width: 18px; height: 18px; }
.hlist .ht { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.hlist .ht b { font-weight: 500; }
.hin { color: var(--muted); }
.hdue { flex: none; color: var(--muted); font-size: 12.5px; margin-left: 8px; }
.hdue.overdue { color: #ff3b30; font-weight: 600; }
.hsearch { padding: 0 14px 6px; }
.hsearch input { width: 100%; }
.hsub { color: var(--muted); font-size: 12.5px; padding: 6px 6px 2px; }
.hp-chart { display: flex; align-items: center; justify-content: center; }
.hp-pie { width: 100%; max-width: 520px; height: auto; }
.hp-pie text { font-size: 11px; fill: #3a3a3c; }
.hp-pie .hp-pl { font-weight: 600; }
.hp-pie .hp-pn { fill: #8a8a8e; }
.homepane > .alert { margin-bottom: 14px; }
@media (max-width: 1023px) {
  .hgrid { grid-template-columns: minmax(0, 1fr); }
  .hcard { max-height: none; min-height: 0; }
  .hcard[data-card=assigned] .hbody, .hcard[data-card=search] .hbody { max-height: 60vh; }
}
@media (max-width: 767px) {
  .homepane { padding: 12px 12px 90px; }
  .hchip { min-width: 0; flex: 1 1 100%; }
}

/* ---------- Φωτογραφίες: μαζική επιλογή (2026-10-22l) ---------- */
.phsel { position: relative; }
.phgrid.selmode .ph { cursor: pointer; }
.ph .phcheck { position: absolute; top: 6px; left: 6px; width: 24px; height: 24px; border-radius: 50%; border: 2px solid #fff; background: rgba(0,0,0,.25);
  box-shadow: 0 1px 3px rgba(0,0,0,.35); display: none; align-items: center; justify-content: center; color: #fff; font-size: 14px; font-weight: 700; }
.phgrid.selmode .ph .phcheck { display: flex; }
.ph.picked .phcheck { background: var(--sys-blue, #007aff); }
.ph.picked img { opacity: .78; }
.ph.picked { box-shadow: 0 0 0 3px var(--sys-blue, #007aff); }
.phbar { position: sticky; bottom: 12px; z-index: 20; display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 14px; padding: 10px 12px;
  background: rgba(255,255,255,.92); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); border-radius: 14px; box-shadow: var(--sh-3, 0 10px 30px rgba(0,0,0,.18)); }
.phbar .n { font-weight: 600; margin-right: auto; }
.phbar button .ic { width: 18px; height: 18px; }
.phday .linkbtn { font-size: 13px; font-weight: 500; margin-left: 10px; }
@media (max-width: 767px) { .phbar { bottom: calc(76px + env(safe-area-inset-bottom)); } .phbar .lbl { display: none; } }
#nav a.on { color: var(--brand, #007aff); font-weight: 600; }

/* ---------- «Home» 22m: Stretch καρτών, έργα σε γραμμές ---------- */
.hcard { position: relative; }
.hcard.wide { grid-column: 1 / -1; }
.hcard.resizing { user-select: none; box-shadow: 0 0 0 2px var(--sys-blue, #007aff), var(--sh-2); }
.hstretch.on { color: var(--sys-blue, #007aff); background: rgba(0, 122, 255, .1); }
.hresize { position: absolute; right: 2px; bottom: 2px; width: 22px; height: 22px; cursor: nwse-resize; touch-action: none; border-radius: 0 0 12px 0;
  background: linear-gradient(135deg, transparent 0 55%, #c7c7cc 55% 62%, transparent 62% 72%, #c7c7cc 72% 79%, transparent 79%); opacity: .8; }
.hresize:hover { opacity: 1; }
.hprows { list-style: none; margin: 0; padding: 0; }
.hprows li + li { border-top: 1px solid rgba(60, 60, 67, .12); }
.hprows a { display: grid; grid-template-columns: minmax(160px, 34%) minmax(0, 1fr); align-items: center; gap: 14px; padding: 10px 6px;
  color: var(--ink); text-decoration: none; border-radius: 8px; min-height: 44px; }
.hprows a:hover { background: #f2f2f7; }
.hpname { display: flex; align-items: center; gap: 8px; min-width: 0; font-weight: 500; }
.hpname .ic { width: 18px; height: 18px; color: #d4a017; flex: none; }
.hpname span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.hpstat { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 12px; min-width: 0; }
.hpnum { font-size: 13px; color: var(--muted); white-space: nowrap; }
.hpnum b { color: var(--ink); font-size: 16px; margin-right: 2px; }
.hpstat .sbar { display: flex; flex: 1 1 140px; min-width: 100px; max-width: 260px; height: 6px; border-radius: 3px; overflow: hidden; gap: 2px; margin: 0; }
.hpstat .slegend { flex: 1 1 100%; display: flex; flex-wrap: wrap; gap: 2px 12px; font-size: 12.5px; color: var(--ink-2); margin: 0; }
.hpstat .slegend .dot { width: 8px; height: 8px; border-radius: 50%; display: inline-block; margin-right: 5px; }
.hpstat .slegend b { margin-left: 4px; }
@media (max-width: 767px) {
  .hprows a { grid-template-columns: minmax(0, 1fr); gap: 6px; }
  .hresize { width: 28px; height: 28px; }
}
.hgrid { grid-auto-flow: row dense; }
.hpstat .slegend > span { display: inline; }
@media (max-width: 1023px) { .hstretch { display: none; } }

/* 22v: «Επισύναψη από SiteBox» στις φόρμες */
.sbpick { width: min(920px, 100%); height: min(760px, 100%); display: flex; flex-direction: column; }
.sbpick .sbp-filt { display: flex; gap: 6px; flex-wrap: wrap; padding: 10px 16px 0; }
.sbpick .sbp-filt .chip { width: auto; flex: 0 0 auto; display: inline-flex; }
.sbpick .sbp-body { flex: 1; min-height: 0; overflow: auto; padding: 4px 16px 12px; }
.sbpick .sbp-body .phday { margin: 14px 0 8px; font-size: 14px; }
.sbpick .sbp-foot { display: flex; gap: 8px; align-items: center; padding: 12px 16px; border-top: 1px solid var(--line-2); }

/* 22x: «Αρχεία» αποθηκευμένα στη συσκευή */
.fr-off { display: inline-flex; vertical-align: -2px; margin-left: 6px; color: #188038; }
.fr-off .ic { width: 15px; height: 15px; }
.offpick { border: 1px solid var(--line); border-radius: 12px; padding: 2px 12px; max-height: 50vh; overflow-y: auto; }
.offpick .ckrow { border-bottom: 1px solid var(--line-2); padding: 10px 2px; }
.offpick .ckrow:last-child { border-bottom: 0; }
.offpick .ckrow .grow { display: inline-flex; align-items: center; gap: 8px; min-width: 0; }
.offpick .ckrow .muted { font-size: 13px; white-space: nowrap; }
.offsum { margin: 12px 2px 0; font-size: 14px; }

/* ---------- 22y: Χρήστες & Δικαιώματα ---------- */
.accpage { max-width: 1180px; }
.accpage > .row h1 { margin: 0; }
.accseg { margin: 6px 0 16px; }
.acchint { margin: 0 2px 14px; }
.acc2 { display: grid; grid-template-columns: 300px 1fr; gap: 16px; align-items: start; }
.acc-users { background: var(--card); border-radius: var(--r-lg); box-shadow: var(--sh-1); padding: 10px; position: sticky; top: 12px; max-height: calc(100vh - 150px); display: flex; flex-direction: column; }
.acc-users input { margin-bottom: 8px; }
.acc-list { overflow-y: auto; }
.acc-u { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-radius: var(--r-sm); color: var(--ink); text-decoration: none; }
.acc-u:hover { background: var(--hover); color: var(--ink); }
.acc-u.on { background: var(--brand-50); }
.acc-u .avatar, .acc-head .avatar { flex: 0 0 auto; }
.acc-un { display: flex; flex-direction: column; min-width: 0; }
.acc-un b, .acc-un span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.acc-un .muted { font-size: 12.5px; }
.acc-detail { min-width: 0; }
.acc-empty { background: var(--card); border-radius: var(--r-lg); padding: 40px 24px; text-align: center; box-shadow: var(--sh-1); }
.acc-head { display: flex; align-items: center; gap: 12px; margin-bottom: 12px; }
.acc-head h2 { margin: 0; font-size: 20px; }
.acc-head .avatar { width: 44px; height: 44px; font-size: 15px; }
.acc-back { display: none; }
.acc-projs { background: var(--card); border-radius: var(--r-lg); box-shadow: var(--sh-1); overflow: hidden; }
.acc-p { display: flex; align-items: center; gap: 12px; padding: 10px 14px; border-bottom: 1px solid var(--line-2); min-height: 56px; }
.acc-p:last-child { border-bottom: 0; }
.acc-p:not(.in) .acc-pn { color: var(--muted); }
.acc-pn { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; }
.acc-p select { width: 260px; max-width: 45%; }
.acc-no { font-size: 13px; }
.acc-exc { gap: 6px; white-space: nowrap; }
.acc-exc.on { background: #fff4e5; color: #b45309; }
.acc-exc .ic { width: 16px; height: 16px; }
/* διακόπτης τύπου iOS */
.acc-sw { position: relative; width: 51px; height: 31px; flex: 0 0 auto; margin: 0; cursor: pointer; }
.acc-sw input { position: absolute; opacity: 0; width: 100%; height: 100%; margin: 0; cursor: pointer; z-index: 1; }
.acc-sw span { position: absolute; inset: 0; background: var(--fill-3); border-radius: 99px; transition: background .2s var(--ease); }
.acc-sw span::after { content: ""; position: absolute; top: 2px; left: 2px; width: 27px; height: 27px; border-radius: 50%; background: #fff;
  box-shadow: 0 3px 8px rgba(0, 0, 0, .15), 0 1px 1px rgba(0, 0, 0, .16); transition: transform .2s var(--ease); }
.acc-sw input:checked + span { background: var(--sys-green); }
.acc-sw input:checked + span::after { transform: translateX(20px); }
.acc-sw input:focus-visible + span { box-shadow: var(--ring); }
/* πίνακας ρόλων */
.pm-card { background: var(--card); border-radius: var(--r-lg); box-shadow: var(--sh-1); margin-bottom: 14px; overflow-x: auto; }
.pmx { width: 100%; border-collapse: collapse; border: 0; box-shadow: none; background: none; }
.pmx th { text-align: left; font-size: 15px; font-weight: 700; padding: 12px 14px; background: none; border-bottom: 1px solid var(--line); color: var(--ink); }
.pmx th.pm-c { font-size: 12.5px; font-weight: 600; color: var(--muted); text-align: center; white-space: nowrap; }
.pmx td { padding: 9px 14px; border-bottom: 1px solid var(--line-2); }
.pmx tr:last-child td { border-bottom: 0; }
.pmx td.pm-c { text-align: center; width: 112px; }
.pm-t { width: 34px; height: 34px; min-height: 0; padding: 0; border-radius: 50%; border: 0; box-shadow: none; background: var(--fill); color: var(--faint); font-size: 15px; justify-content: center; position: relative; }
.pm-t.on { background: var(--brand-50); color: var(--brand); font-weight: 700; }
.pm-t.chg::after { content: ""; position: absolute; top: 1px; right: 1px; width: 8px; height: 8px; border-radius: 50%; background: var(--sys-blue); border: 2px solid #fff; }
.pm-fix { color: var(--muted); font-weight: 700; }
.pm-short { display: none; }
@media (max-width: 767px) { .pm-short { display: inline; } }
.pm-na { color: var(--faint); }
.pm-off { font-size: 11px; font-weight: 600; color: #8a6d3b; background: #fbf3e2; border-radius: 99px; padding: 1px 7px; margin-left: 4px; white-space: nowrap; }
/* εξαιρέσεις */
.excpanel h4 { margin: 18px 0 6px; }
.exc-row { display: flex; align-items: center; gap: 12px; padding: 8px 0; border-bottom: 1px solid var(--line-2); }
.exc-row.lock { opacity: .55; }
.exc-l { flex: 1; min-width: 0; font-size: 14px; }
.exc-l .muted { font-size: 12.5px; }
.exc-l b.ok { color: #188038; } .exc-l b.no { color: var(--sys-red); }
.exc-seg { flex: 0 0 auto; }
.exc-seg button { padding: 4px 10px; font-size: 13px; }
@media (max-width: 767px) {
  .acc2 { grid-template-columns: 1fr; }
  .acc2.has-sel .acc-users { display: none; }
  .acc2:not(.has-sel) .acc-detail { display: none; }
  .acc-users { position: static; max-height: none; }
  .acc-back { display: inline-flex; }
  .acc-p { flex-wrap: wrap; }
  .acc-pn { flex-basis: calc(100% - 70px); }
  .acc-p select { flex: 1; max-width: none; }
  .pmx td.pm-c { width: 52px; padding: 8px 2px; }
  .pm-adm, .pm-full { display: none; }
  .pm-t { width: 32px; height: 32px; }
  .pmx th.pm-c { white-space: normal; font-size: 11.5px; padding: 10px 4px; }
  .pmx td, .pmx th { padding-left: 10px; }
  .exc-row { flex-wrap: wrap; }
}

/* ---------- 22z: Ιστορικό έργου ---------- */
.logbar { flex-wrap: wrap; }
.logbar select, .logbar #lgq { max-width: 190px; }
.lgd { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; color: var(--muted); margin: 0; }
.lgd input { width: 150px; }
.logpane { padding: 4px 16px 24px; }
.lg-day { font-size: 13px; font-weight: 600; color: var(--muted); text-transform: none; margin: 18px 4px 8px; }
.lg-list { background: var(--card); border-radius: var(--r-lg); box-shadow: var(--sh-1); overflow: hidden; }
.lg-row { display: flex; align-items: flex-start; gap: 12px; padding: 10px 14px; border-bottom: 1px solid var(--line-2); }
.lg-row:last-child { border-bottom: 0; }
.lg-t { flex: 0 0 42px; font-variant-numeric: tabular-nums; color: var(--muted); font-size: 13px; padding-top: 4px; }
.lg-av { width: 28px; height: 28px; font-size: 11px; flex: 0 0 auto; background: #8e8e93; }
.lg-b { flex: 1; min-width: 0; }
.lg-h { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 8px; line-height: 1.45; }
.lg-a { font-size: 12px; font-weight: 600; border-radius: 99px; padding: 1px 8px; }
.lg-c { background: #e6f4ea; color: #137333; } .lg-u { background: var(--brand-50); color: var(--brand); }
.lg-d { color: var(--ink-2); font-size: 13.5px; margin-top: 2px; overflow-wrap: anywhere; }
.lg-del { background: #fdecea; color: #c5221f; }
.lg-x { background: #f1f3f4; color: #5f6368; }
.lg-ar { font-size: 12.5px; color: var(--muted); }
.lg-o { font-weight: 500; overflow-wrap: anywhere; }
.lg-more { text-align: center; margin: 16px 0; }
.lgfil { display: none; }
@media (max-width: 767px) {
  .lgfil { display: inline-flex; }
  .logbar:not(.open) select, .logbar:not(.open) .lgd { display: none; }
  .logbar #lgq { flex: 1 1 0; min-width: 0; max-width: none; order: -1; }
  .logbar .grow { display: none; }
  .logbar select { max-width: none; flex: 1 1 45%; }
  .lgd { flex: 1 1 45%; } .lgd input { width: 100%; }
  .logpane { padding: 0 10px 20px; }
  .lg-row { gap: 10px; padding: 10px 12px; }
  .lg-av { display: none; }
}

/* 22zb: Κάδος αρχείων */
.binrows .frow { cursor: default; align-items: center; }
.binrows .fr-m + .fr-m { margin-top: 1px; }
.binact { display: flex; gap: 6px; flex-shrink: 0; }
@media (max-width: 600px) { .binact .lbl { display: none; } }
.binthumb { width: 56px; height: 42px; border-radius: 8px; background: var(--fill, #f2f2f7); overflow: hidden; flex-shrink: 0; position: relative; display: grid; place-items: center; color: #8e8e93; }
.binthumb img { width: 100%; height: 100%; object-fit: cover; }
.binthumb.sheets img { object-fit: contain; background: #fff; }
.binthumb .phplay { position: absolute; font-size: 12px; color: #fff; text-shadow: 0 1px 2px rgba(0,0,0,.5); }
