/* Παρουσία — team.blue office presence */
:root {
  --navy: #0a1c51;
  --blue: #1447dc;
  --blue-deep: #1038ac;
  --blue-press: #0f37b0;
  --tint: #e8edfc;
  --tint-2: #f2f5fd;
  --purple: #7500eb;
  --purple-tint: #f1e6fd;
  --ink: #1d1836;
  --ink-2: #4c4660;
  --ink-3: #6e6a80;
  --line: #e2e5ee;
  --line-2: #eef0f5;
  --bg: #f6f7fb;
  --surface: #ffffff;
  --green: #0f7a4a;
  --green-tint: #e3f4ea;
  --amber: #8a5a00;
  --amber-tint: #fdf1d8;
  --danger: #b42318;

  --r-sm: 8px;
  --r: 12px;
  --r-lg: 18px;
  --shadow-1: 0 1px 2px rgba(10, 28, 81, .06), 0 1px 1px rgba(10, 28, 81, .04);
  --shadow-2: 0 8px 24px -8px rgba(10, 28, 81, .18), 0 2px 6px rgba(10, 28, 81, .06);
  --ease-out: cubic-bezier(0.23, 1, 0.32, 1);
  --font: "Commissioner", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  color-scheme: light;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font: 400 15px/1.5 var(--font);
  font-feature-settings: "ss01", "tnum" 0;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}
::selection { background: rgba(20, 71, 220, .18); color: var(--ink); }
:focus-visible { outline: 2px solid var(--blue); outline-offset: 2px; border-radius: 6px; }
a { color: var(--blue); text-underline-offset: 3px; }
.num { font-variant-numeric: tabular-nums; }
.muted { color: var(--ink-3); }
.small { font-size: 13px; }
.icon { width: 18px; height: 18px; flex: none; }
.icon--sm { width: 14px; height: 14px; vertical-align: -2px; }
* { scrollbar-color: #c9cede transparent; scrollbar-width: thin; }

.h1 { font-size: 26px; line-height: 1.2; font-weight: 700; letter-spacing: -0.02em; margin: 0 0 4px; text-wrap: balance; }
.h2 { font-size: 18px; line-height: 1.3; font-weight: 650; letter-spacing: -0.01em; margin: 0; }
.lead { color: var(--ink-2); margin: 0 0 20px; max-width: 62ch; }
.label { display: block; font-size: 13px; font-weight: 600; color: var(--ink-2); margin-bottom: 6px; }

/* ---------- header */
.top { position: sticky; top: 0; z-index: 10; background: var(--navy); color: #fff; }
.top__row {
  display: flex; align-items: center; gap: 16px;
  max-width: 1240px; margin: 0 auto; padding: 10px 16px;
  padding-left: max(16px, env(safe-area-inset-left)); padding-right: max(16px, env(safe-area-inset-right));
}
.brand { display: inline-flex; align-items: baseline; gap: 8px; color: inherit; text-decoration: none; white-space: nowrap; }
.brand__mark { font-weight: 700; letter-spacing: -0.02em; font-size: 16px; }
.brand__app { font-weight: 500; opacity: .72; font-size: 15px; }
.brand--lg .brand__mark { font-size: 20px; color: var(--navy); }
.brand--lg .brand__app { color: var(--ink-2); font-size: 18px; opacity: 1; }

.nav { display: flex; gap: 2px; margin-left: 8px; }
.nav a {
  color: rgba(255, 255, 255, .72); text-decoration: none; font-weight: 550; font-size: 14px;
  padding: 7px 12px; border-radius: 999px; transition: background-color 160ms ease, color 160ms ease;
}
.nav a[aria-current="page"] { color: #fff; background: rgba(255, 255, 255, .14); }
@media (hover: hover) and (pointer: fine) { .nav a:hover { color: #fff; background: rgba(255, 255, 255, .08); } }

.me { margin-left: auto; display: flex; align-items: center; gap: 8px; }
.me__who { display: inline-flex; align-items: center; gap: 8px; color: #fff; text-decoration: none; font-weight: 550; font-size: 14px; padding: 3px 10px 3px 3px; border-radius: 999px; transition: background-color 160ms ease; }
.me__who .avatar { background: rgba(255, 255, 255, .16); color: #fff; }
@media (hover: hover) and (pointer: fine) { .me__who:hover { background: rgba(255, 255, 255, .1); } }
.me form { margin: 0; }
.top .iconbtn { color: rgba(255, 255, 255, .8); background: transparent; border-color: transparent; }
@media (hover: hover) and (pointer: fine) { .top .iconbtn:hover { background: rgba(255, 255, 255, .1); color: #fff; } }

.banner {
  display: flex; align-items: center; justify-content: center; gap: 8px; flex-wrap: wrap;
  font-size: 13.5px; padding: 8px 16px; text-align: center;
}
.banner strong { font-weight: 650; }
.banner--open { background: var(--green-tint); color: #0b5c38; }
.banner--closed { background: var(--amber-tint); color: var(--amber); }
.banner--admin { background: var(--purple-tint); color: #5a00b5; }
.banner__count { font-variant-numeric: tabular-nums; opacity: .8; }
.pulse { width: 8px; height: 8px; border-radius: 50%; background: var(--green); box-shadow: 0 0 0 0 rgba(15, 122, 74, .5); animation: pulse 2.4s var(--ease-out) infinite; }
@keyframes pulse { 70% { box-shadow: 0 0 0 7px rgba(15, 122, 74, 0); } 100% { box-shadow: 0 0 0 0 rgba(15, 122, 74, 0); } }

.main { max-width: 1240px; margin: 0 auto; padding: 28px 16px 64px; }

/* ---------- controls */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font: 600 14px/1 var(--font); padding: 11px 16px; border-radius: 10px; border: 1px solid transparent;
  cursor: pointer; text-decoration: none; white-space: nowrap;
  transition: transform 160ms var(--ease-out), background-color 160ms ease, border-color 160ms ease;
}
.btn:active { transform: scale(0.97); }
.btn--primary { background: var(--blue); color: #fff; }
@media (hover: hover) and (pointer: fine) { .btn--primary:hover { background: var(--blue-deep); } }
.btn--ghost { background: var(--surface); color: var(--ink); border-color: var(--line); }
@media (hover: hover) and (pointer: fine) { .btn--ghost:hover { border-color: #c9cede; } }
.btn--block { width: 100%; padding: 13px 16px; font-size: 15px; }
.btn--sm { padding: 8px 12px; font-size: 13px; }

.iconbtn {
  display: inline-grid; place-items: center; width: 36px; height: 36px; border-radius: 10px;
  border: 1px solid var(--line); background: var(--surface); color: var(--ink-2); cursor: pointer;
  transition: transform 160ms var(--ease-out), background-color 160ms ease, color 160ms ease;
}
.iconbtn:active { transform: scale(0.95); }

.input {
  width: 100%; font: 400 15px/1.3 var(--font); color: var(--ink);
  padding: 10px 12px; border-radius: 10px; border: 1px solid var(--line); background: var(--surface);
  transition: border-color 160ms ease, box-shadow 160ms ease;
}
.input::placeholder { color: #8b879a; }
.input:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 3px rgba(20, 71, 220, .15); }
.input[aria-invalid="true"] { border-color: var(--danger); }
.input--select { appearance: none; padding-right: 36px; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='none' stroke='%234c4660' stroke-width='1.75' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m4 6 4 4 4-4'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 12px center; }
.field-error { color: var(--danger); font-size: 13px; margin: 6px 0 0; }

.search { position: relative; max-width: 420px; }
.search .icon { position: absolute; left: 12px; top: 50%; transform: translateY(-50%); color: var(--ink-3); }
.input--search { padding-left: 38px; }
.search--sm { width: 220px; }
.search--sm .input { padding-top: 8px; padding-bottom: 8px; font-size: 14px; }

.avatar {
  display: inline-grid; place-items: center; width: 30px; height: 30px; border-radius: 50%;
  background: var(--tint); color: var(--blue-deep); font-size: 12px; font-weight: 700; letter-spacing: .02em; flex: none;
}
.avatar--sm { width: 26px; height: 26px; font-size: 11px; }

.tag { font-size: 12px; font-weight: 650; color: var(--blue-deep); background: var(--tint); padding: 3px 8px; border-radius: 999px; }
.hint { display: inline-flex; align-items: center; gap: 5px; font-size: 12.5px; color: var(--ink-3); }
.hint .icon { width: 13px; height: 13px; }

.pill { display: inline-block; min-width: 30px; text-align: center; font-size: 12px; font-weight: 700; padding: 2px 7px; border-radius: 6px; letter-spacing: .02em; }
.pill--office { background: var(--blue); color: #fff; }
.pill--remote { background: var(--line-2); color: var(--ink-2); box-shadow: inset 0 0 0 1px var(--line); }

/* ---------- auth */
.page-auth { background: var(--navy); min-height: 100vh; }
.auth { min-height: 100vh; display: grid; place-items: center; padding: 24px 16px; background:
  radial-gradient(1200px 600px at 85% -10%, rgba(117, 0, 235, .35), transparent 60%),
  radial-gradient(900px 500px at -10% 110%, rgba(20, 71, 220, .45), transparent 60%), var(--navy); }
.auth__panel { width: 100%; max-width: 400px; background: var(--surface); border-radius: var(--r-lg); padding: 32px 28px 28px; box-shadow: 0 30px 60px -20px rgba(0, 0, 0, .45); }
.auth__title { font-size: 24px; line-height: 1.2; letter-spacing: -0.02em; margin: 22px 0 8px; text-wrap: balance; }
.auth__lead { color: var(--ink-2); margin: 0 0 24px; font-size: 14.5px; }
.auth__form .btn { margin-top: 16px; }

/* ---------- who */
.who__list { margin-top: 20px; }
.who__group { border: 0; padding: 0; margin: 0 0 24px; }
.who__base { font-size: 13px; font-weight: 650; color: var(--ink-2); padding: 0; margin-bottom: 10px; }
.who__grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 8px; }
.person {
  display: flex; align-items: center; gap: 10px; text-align: left;
  font: 550 14.5px/1.25 var(--font); color: var(--ink); background: var(--surface);
  border: 1px solid var(--line); border-radius: var(--r); padding: 9px 12px 9px 9px; cursor: pointer;
  transition: transform 160ms var(--ease-out), border-color 160ms ease, box-shadow 160ms ease;
}
.person:active { transform: scale(0.98); }
@media (hover: hover) and (pointer: fine) { .person:hover { border-color: #b9c6f3; box-shadow: var(--shadow-1); } }
.person.is-current { border-color: var(--blue); box-shadow: 0 0 0 1px var(--blue) inset; }
.empty { color: var(--ink-3); padding: 16px 0; }

/* ---------- my days */
.days { max-width: 760px; }
.days__head { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; flex-wrap: wrap; margin-bottom: 8px; }
.days__head .lead { margin-bottom: 0; }
.picker { min-width: 240px; }
.week { margin-top: 28px; }
.week__title { font-size: 13px; font-weight: 650; color: var(--ink-2); margin: 0 0 8px; }
.daylist { list-style: none; margin: 0; padding: 0; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; }
.day { display: grid; grid-template-columns: 112px 1fr auto; align-items: center; gap: 12px; padding: 10px 12px 10px 16px; }
.day + .day { border-top: 1px solid var(--line-2); }
.day--today { background: var(--tint-2); }
.day__date { display: flex; align-items: baseline; gap: 6px; }
.day__wd { font-weight: 600; color: var(--ink-2); width: 30px; }
.day__num { font-size: 20px; font-weight: 700; letter-spacing: -0.02em; }
.day__mon { color: var(--ink-3); font-size: 13px; }
.day__meta { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.more { margin-top: 20px; }

.seg { display: inline-flex; padding: 3px; gap: 3px; background: var(--line-2); border-radius: 12px; box-shadow: inset 0 0 0 1px var(--line); }
.seg__opt {
  display: inline-flex; align-items: center; gap: 7px; border: 0; background: transparent; color: var(--ink-2);
  font: 600 14px/1 var(--font); padding: 9px 13px; border-radius: 9px; cursor: pointer;
  transition: transform 140ms var(--ease-out), background-color 180ms ease, color 180ms ease, box-shadow 180ms ease;
}
.seg__opt:active:not(:disabled) { transform: scale(0.96); }
.seg__opt--office[aria-pressed="true"] { background: var(--blue); color: #fff; box-shadow: 0 2px 6px -1px rgba(20, 71, 220, .45); }
.seg__opt--remote[aria-pressed="true"] { background: var(--surface); color: var(--ink); box-shadow: var(--shadow-1); }
@media (hover: hover) and (pointer: fine) { .seg__opt[aria-pressed="false"]:not(:disabled):hover { color: var(--ink); background: rgba(255, 255, 255, .6); } }
.seg__opt:disabled { cursor: not-allowed; }
.seg.is-disabled { opacity: .62; }
.seg.is-saving .seg__opt[aria-pressed="true"] { filter: saturate(.7); }

/* ---------- dashboard */
.dash__head { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; margin-bottom: 20px; }
.chips { display: flex; gap: 6px; flex-wrap: wrap; }
.chip {
  font-size: 13.5px; font-weight: 550; color: var(--ink-2); text-decoration: none;
  padding: 6px 12px; border-radius: 999px; background: var(--surface); border: 1px solid var(--line);
  transition: transform 160ms var(--ease-out), border-color 160ms ease, background-color 160ms ease;
}
.chip:active { transform: scale(0.97); }
.chip[aria-current="true"] { background: var(--ink); border-color: var(--ink); color: #fff; }
@media (hover: hover) and (pointer: fine) { .chip:not([aria-current]):hover { border-color: #c9cede; } }

.dash__top { display: grid; grid-template-columns: 1fr 1fr 1.25fr; gap: 16px; align-items: start; }
.panel { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 18px 18px 16px; min-width: 0; }
.panel--lead { background: var(--navy); border-color: var(--navy); color: #fff; }
.panel--lead .muted { color: rgba(255, 255, 255, .66); }
.panel--lead .faces li { color: #fff; }
.panel--lead .avatar { background: rgba(255, 255, 255, .14); color: #fff; }
.panel--lead .empty-inline { color: rgba(255, 255, 255, .7); }
.panel__title { display: flex; align-items: baseline; gap: 10px; font-size: 16px; font-weight: 650; margin: 0; letter-spacing: -0.01em; }
.count { margin-left: auto; font-size: 30px; font-weight: 700; letter-spacing: -0.03em; line-height: 1; }
.panel .muted.small { margin: 4px 0 14px; }
.faces { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; max-height: 300px; overflow: auto; }
.faces li { display: flex; align-items: center; gap: 10px; font-weight: 550; font-size: 14px; }
.empty-inline { color: var(--ink-3); margin: 0; font-size: 14px; }

.panel--changes { max-height: 460px; display: flex; flex-direction: column; }
.panel--changes [data-changes] { overflow: auto; margin-top: 6px; }
.panel--changes .muted.small { margin: 0 0 8px; }
.changes__date { font-size: 12.5px; font-weight: 650; color: var(--ink-2); margin: 14px 0 6px; }
.changes { list-style: none; margin: 0; padding: 0; }
.change { display: grid; grid-template-columns: auto 1fr auto; grid-template-areas: "av who flow" "av by by"; column-gap: 10px; row-gap: 1px; padding: 8px 0; align-items: center; }
.change + .change { border-top: 1px solid var(--line-2); }
.change .avatar { grid-area: av; align-self: start; margin-top: 2px; }
.change__who { grid-area: who; display: flex; flex-direction: column; min-width: 0; line-height: 1.3; }
.change__who strong { font-weight: 600; font-size: 14px; }
.change__who .muted { font-size: 12.5px; }
.change__flow { grid-area: flow; display: inline-flex; align-items: center; gap: 5px; color: var(--ink-3); }
.change__by { grid-area: by; }
.change { animation: rise 260ms var(--ease-out) both; }
@keyframes rise { from { opacity: 0; transform: translateY(4px); } }
.empty-state { display: flex; gap: 12px; align-items: flex-start; color: var(--ink-2); font-size: 14px; padding: 12px 0; }
.empty-state .icon { width: 22px; height: 22px; color: var(--blue); margin-top: 2px; }
.empty-state p { margin: 0; }

/* ---------- week grid */
.sheet { margin-top: 28px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; }
.sheet__head { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; padding: 14px 16px; border-bottom: 1px solid var(--line); }
.sheet__tools { display: flex; align-items: center; gap: 6px; }
.sheet__scroll { overflow: auto; max-height: 70vh; }
.grid { border-collapse: separate; border-spacing: 0; width: 100%; font-size: 14px; }
.grid th, .grid td { padding: 0; border-bottom: 1px solid var(--line-2); }
.grid thead th { position: sticky; top: 0; z-index: 2; background: var(--surface); padding: 10px 4px 8px; font-weight: 600; text-align: center; border-bottom: 1px solid var(--line); vertical-align: bottom; }
.grid__wd { display: block; font-size: 12px; color: var(--ink-3); font-weight: 600; }
.grid__dn { display: block; font-size: 17px; font-weight: 700; letter-spacing: -0.02em; }
.grid__cnt { display: inline-block; margin-top: 4px; font-size: 11.5px; font-weight: 700; color: var(--blue-deep); background: var(--tint); border-radius: 999px; padding: 1px 7px; }
.grid thead th.is-today .grid__dn { color: var(--blue); }
.grid thead th.is-today { box-shadow: inset 0 -2px 0 var(--blue); }
.grid .grid__name { position: sticky; left: 0; z-index: 1; background: var(--surface); text-align: left; padding: 6px 12px 6px 16px; min-width: 200px; white-space: nowrap; border-right: 1px solid var(--line-2); }
.grid thead .grid__name { z-index: 3; vertical-align: bottom; font-size: 12px; color: var(--ink-3); }
.grid tbody .grid__name { display: table-cell; }
.grid tbody .grid__name span:first-child { display: block; font-weight: 600; }
.grid tbody .grid__name .small { display: block; font-size: 12px; line-height: 1.2; }
.grid td { text-align: center; padding: 5px 4px; }
.grid td.is-weekend, .grid th.is-weekend { background: repeating-linear-gradient(-45deg, #fafbfd, #fafbfd 6px, #f3f4f8 6px, #f3f4f8 12px); width: 40px; }
.grid th.is-weekend .grid__dn, .grid th.is-weekend .grid__wd { color: #a7a4b4; }
.grid td.is-today { background: var(--tint-2); }
.grid tbody tr:last-child > * { border-bottom: 0; }
@media (hover: hover) and (pointer: fine) { .grid tbody tr:hover > * { background-color: #fafbff; } .grid tbody tr:hover > td.is-weekend { background-color: transparent; } }

.cell {
  width: 100%; min-width: 52px; max-width: 96px; height: 34px; border-radius: 8px; border: 0; cursor: pointer;
  font: 700 12.5px/1 var(--font); letter-spacing: .03em;
  transition: transform 140ms var(--ease-out), background-color 180ms ease, color 180ms ease, box-shadow 180ms ease;
}
.cell:active:not(:disabled) { transform: scale(0.94); }
.cell--office { background: var(--blue); color: #fff; box-shadow: 0 1px 3px rgba(20, 71, 220, .35); }
.cell--remote { background: transparent; color: #8f8ba0; box-shadow: inset 0 0 0 1px var(--line); }
@media (hover: hover) and (pointer: fine) {
  .cell--remote:not(:disabled):hover { background: var(--tint); color: var(--blue-deep); box-shadow: inset 0 0 0 1px #c5d1f6; }
  .cell--office:not(:disabled):hover { background: var(--blue-deep); }
}
.cell:disabled { cursor: default; }
.cell--office:disabled { background: #5b7fe6; box-shadow: none; }
.cell.is-saving { filter: saturate(.6); }
.legend { margin: 0; padding: 12px 16px; border-top: 1px solid var(--line); font-size: 13px; color: var(--ink-3); display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.legend .pill + * { margin-right: 4px; }

/* ---------- history */
.hist .h1 { margin-bottom: 16px; }
.filters { display: flex; gap: 12px; align-items: flex-end; flex-wrap: wrap; margin-bottom: 20px; }
.filters > div { min-width: 220px; }
.filters__actions { display: flex; gap: 8px; min-width: 0 !important; }
.table { width: 100%; border-collapse: collapse; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; font-size: 14px; }
.table th { text-align: left; font-size: 12.5px; color: var(--ink-3); font-weight: 600; padding: 10px 14px; background: #fbfbfd; border-bottom: 1px solid var(--line); }
.table td { padding: 10px 14px; border-bottom: 1px solid var(--line-2); white-space: nowrap; }
.table tr:last-child td { border-bottom: 0; }
.hist .sheet__scroll { max-height: none; border-radius: var(--r-lg); }


/* ---------- people (admin) */
.ppl { max-width: 900px; }
.ppl .sheet { margin-top: 20px; }
.ppl__add { display: grid; grid-template-columns: 2fr 1fr auto; gap: 12px; align-items: end; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 16px; }
.ppl__list { list-style: none; margin: 0; padding: 0; }
.ppl__row { display: flex; align-items: center; gap: 10px; padding: 8px 16px; border-bottom: 1px solid var(--line-2); }
.ppl__row:last-child { border-bottom: 0; }
.ppl__row form { margin: 0; }
.ppl__edit { display: flex; align-items: center; gap: 8px; flex: 1; min-width: 0; }
.ppl__edit .input { padding: 8px 10px; font-size: 14px; }
.ppl__name { flex: 2 1 0; min-width: 0; }
.ppl__base { flex: 1 1 0; min-width: 0; }
.ppl__row--off .ppl__off-name { flex: 1; color: var(--ink-2); }
.ppl__row--off .avatar { background: var(--line-2); color: var(--ink-3); }
.btn--danger { background: var(--surface); color: var(--danger); border-color: #f1c9c5; }
@media (hover: hover) and (pointer: fine) { .btn--danger:hover { background: #fdf0ee; border-color: #e7a9a2; } }
.notice { background: var(--green-tint); color: #0b5c38; padding: 10px 14px; border-radius: 10px; font-size: 14px; margin: 0 0 16px; }
.notice--error { background: #fdecea; color: var(--danger); }
@media (max-width: 720px) {
  .ppl__add { grid-template-columns: 1fr; }
  .ppl__row { flex-wrap: wrap; padding: 10px 12px; }
  .ppl__edit { flex-wrap: wrap; flex-basis: 100%; }
  .ppl__edit .avatar { display: none; }
  .ppl__name { flex-basis: 100%; }
}

/* ---------- toast */
.toast {
  position: fixed; left: 50%; bottom: max(20px, env(safe-area-inset-bottom)); z-index: 50;
  transform: translateX(-50%); max-width: calc(100vw - 32px);
  background: var(--ink); color: #fff; font-size: 14px; font-weight: 500; padding: 12px 16px; border-radius: 12px; box-shadow: var(--shadow-2);
  transition: opacity 200ms ease, transform 260ms var(--ease-out);
}
.toast[hidden] { display: block; opacity: 0; transform: translate(-50%, 12px); pointer-events: none; }
.toast.is-ok { background: #0b5c38; }

/* ---------- responsive */
@media (max-width: 980px) {
  .dash__top { grid-template-columns: 1fr 1fr; }
  .panel--changes { grid-column: 1 / -1; max-height: none; }
}
@media (max-width: 720px) {
  body { font-size: 15px; }
  .top__row { flex-wrap: wrap; row-gap: 6px; padding-top: 8px; padding-bottom: 6px; }
  .nav { order: 3; width: 100%; margin: 0 -4px; overflow-x: auto; }
  .nav a { padding: 7px 10px; }
  .me__name { display: none; }
  .me__who { padding: 3px; }
  .main { padding-top: 20px; }
  .h1 { font-size: 23px; }
  .dash__top { grid-template-columns: 1fr; }
  .day { grid-template-columns: 1fr auto; row-gap: 6px; padding: 10px 10px 10px 14px; }
  .day__meta { grid-column: 1; grid-row: 2; }
  .day__meta:empty { display: none; }
  .seg { grid-column: 2; grid-row: 1 / span 2; }
  .seg__opt { padding: 10px 11px; }
  .seg__opt span { font-size: 13.5px; }
  .day__meta .hint span, .day__meta .hint { font-size: 0; gap: 0; }
  .day__meta .hint .icon { width: 14px; height: 14px; }
  .day__date { flex-wrap: wrap; }
  .picker { width: 100%; }
  .table, .table tbody, .table tr, .table td { display: block; width: 100%; }
  .table thead { display: none; }
  .table tr { padding: 10px 14px; border-bottom: 1px solid var(--line-2); display: grid; grid-template-columns: 1fr auto; gap: 2px 12px; }
  .table tr:last-child { border-bottom: 0; }
  .table td { padding: 0; border: 0; white-space: normal; }
  .table td:nth-child(1) { grid-column: 2; grid-row: 1; color: var(--ink-3); font-size: 12.5px; text-align: right; }
  .table td:nth-child(2) { grid-column: 1; grid-row: 1; }
  .table td:nth-child(3) { grid-column: 1; grid-row: 2; font-size: 13px; color: var(--ink-2); }
  .table td:nth-child(4) { grid-column: 2; grid-row: 2; text-align: right; }
  .table td:nth-child(5) { grid-column: 1 / -1; font-size: 12.5px; color: var(--ink-3); }
  .table td:nth-child(5)::before { content: "από "; }
  .search--sm { width: 100%; }
  .sheet__tools { width: 100%; }
  .grid .grid__name { min-width: 140px; max-width: 150px; white-space: normal; padding-left: 12px; }
  .cell { min-width: 40px; height: 36px; }
  .grid td.is-weekend, .grid th.is-weekend { width: 22px; min-width: 22px; }
  .grid th.is-weekend .grid__wd, .grid th.is-weekend .grid__dn { font-size: 10px; }
}
@media (max-width: 380px) {
  .seg__opt span { display: none; }
  .seg__opt { padding: 10px 12px; }
}

/* ---------- ΕΡΓΑΝΗ */
.erg { max-width: 760px; margin: 0 auto; display: grid; gap: 16px; }
.erg__head { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.erg__head .h1 { margin: 0; }
.erg__tools { display: flex; gap: 8px; flex-wrap: wrap; }
.erg__summary { padding: 22px 22px 18px; }
.erg__kicker { margin: 0 0 6px; font-size: 13px; font-weight: 600; letter-spacing: .02em; color: rgba(255, 255, 255, .72); }
.erg__big { margin: 0; font-size: 30px; line-height: 1.15; font-weight: 700; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }
.erg__split { display: flex; flex-wrap: wrap; gap: 8px 18px; margin: 10px 0 12px; font-size: 15px; font-weight: 550; }
.erg__split span { display: inline-flex; align-items: center; gap: 6px; }
.erg__summary .muted.small { margin: 0; }
.erg__pending { background: var(--amber-tint); color: var(--amber); display: flex; align-items: flex-start; gap: 8px; margin: 0; }
.erg__late { border-color: #dcc6f8; box-shadow: inset 4px 0 0 var(--purple); }
.erg__late .panel__title { color: var(--purple); }
.erg__late .muted.small { margin: 4px 0 4px; }
.erg__date { display: flex; align-items: baseline; gap: 8px; margin: 14px 0 6px; font-size: 14px; font-weight: 650; color: var(--ink-2); }
.erg__date:first-child { margin-top: 0; }
.erg__date .muted { font-weight: 500; font-variant-numeric: tabular-nums; }
.erg__list { list-style: none; margin: 0; padding: 0; }
.erg__row { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 12px 0; border-top: 1px solid var(--line-2); }
.erg__who { display: flex; flex-direction: column; min-width: 0; }
.erg__who strong { font-size: 17px; font-weight: 650; overflow-wrap: anywhere; }
.erg__who .muted { font-size: 13px; }
.erg__to { display: inline-flex; align-items: center; gap: 10px; flex: none; padding: 7px 12px 7px 10px; border-radius: 10px; }
.erg__to > span { display: flex; flex-direction: column; line-height: 1.25; }
.erg__to strong { font-size: 15px; }
.erg__was { font-size: 12px; opacity: .78; }
.erg__to--remote { background: var(--purple-tint); color: var(--purple); }
.erg__to--office { background: var(--tint); color: var(--blue-deep); }
@media (max-width: 720px) {
  .erg__big { font-size: 25px; }
  .erg__summary { padding: 18px 16px 16px; }
  .erg__row { align-items: flex-start; }
  .erg__to { padding: 6px 10px 6px 8px; gap: 8px; }
}
@media print {
  .top, .erg__tools, .toast { display: none !important; }
  body { background: #fff; }
  .main { padding: 0; }
  .panel { border: 1px solid #ccc; break-inside: avoid; }
  .panel--lead { background: #fff; color: #000; }
  .panel--lead .muted, .erg__kicker { color: #444; }
  .erg__to { border: 1px solid currentColor; }
  .erg__row { break-inside: avoid; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 1ms !important; animation-iteration-count: 1 !important; }
  .btn:active, .seg__opt:active, .cell:active, .chip:active, .person:active { transform: none; }
}
