/* Χρώματα από το λογότυπο nutrimed. Για κείμενο/κουμπιά οι σκουρότερες αποχρώσεις (αντίθεση AA). */
:root {
  --lime: #C0D824;
  --orange: #F06C18;
  --olive: #566B0C;
  --olive-dark: #435409;
  --orange-dark: #B4500F;
  --ink: #1f2410;
  --muted: #5d6450;
  --line: #e3e7d6;
  --bg: #f6f8ef;
  --card: #ffffff;
  --mine: #eef5cc;
  --theirs: #ffffff;
  --radius: 14px;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Noto Sans", sans-serif;
  color: var(--ink);
  background: var(--bg);
  -webkit-text-size-adjust: 100%;
}
* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; }
body { min-height: 100dvh; }
#app { min-height: 100dvh; }
[hidden] { display: none !important; }

h1 { font-size: 1.6rem; margin: .4rem 0 .2rem; color: var(--olive); letter-spacing: .02em; }
h2 { font-size: 1.15rem; margin: 0; }
.muted { color: var(--muted); }
.small { font-size: .82rem; }
.error { color: #a1260d; min-height: 1em; margin: 0; }
.notice { background: #fff4ea; border-left: 4px solid var(--orange); padding: .6rem .8rem; border-radius: 8px; margin: 0; }
.loading { text-align: center; margin-top: 40vh; color: var(--olive); font-weight: 600; }
.center { text-align: center; }
.row { display: flex; align-items: center; gap: .5rem; }
.row.between { justify-content: space-between; }
.row.wrap { flex-wrap: wrap; justify-content: flex-end; }
.stack { display: flex; flex-direction: column; gap: .6rem; }

label { font-weight: 600; font-size: .9rem; }
input, textarea, select {
  font: inherit; font-size: 16px; /* χωρίς zoom στο iPhone */
  width: 100%; padding: .7rem .8rem; border: 1px solid #cfd5bd; border-radius: 10px; background: #fff; color: var(--ink);
}
input:focus, textarea:focus, select:focus { outline: 3px solid color-mix(in srgb, var(--lime) 70%, transparent); border-color: var(--olive); }
textarea { resize: none; }
fieldset { border: 1px solid var(--line); border-radius: 10px; padding: .6rem .8rem; }
legend { font-weight: 600; font-size: .9rem; padding: 0 .3rem; }
.check { display: flex; align-items: center; gap: .5rem; font-weight: 400; padding: .25rem 0; }
.check input { width: auto; }

button, .button {
  font: inherit; border: 0; border-radius: 10px; padding: .7rem 1rem; cursor: pointer; text-decoration: none;
  display: inline-flex; align-items: center; justify-content: center; gap: .3rem;
}
button:disabled { opacity: .55; cursor: default; }
.primary { background: var(--olive); color: #fff; font-weight: 600; }
.primary:hover:not(:disabled) { background: var(--olive-dark); }
.secondary { background: #fff; color: var(--olive); border: 1px solid var(--olive); font-weight: 600; }
.secondary.small, button.small { padding: .4rem .7rem; font-size: .88rem; }
.link { background: none; color: var(--orange-dark); padding: .35rem .4rem; font-weight: 600; }
.icon { background: none; font-size: 1.3rem; padding: .4rem; }
:focus-visible { outline: 3px solid var(--orange); outline-offset: 2px; }

/* Σύνδεση */
.auth { max-width: 420px; margin: 0 auto; padding: max(8vh, 2rem) 1rem 2rem; }
.brand { text-align: center; margin-bottom: 1.2rem; }
.brand p { margin: 0; }
.card { background: var(--card); border-radius: var(--radius); padding: 1.2rem; box-shadow: 0 1px 3px rgba(0,0,0,.06); }

/* Επάνω μπάρα */
.topbar {
  display: flex; align-items: center; justify-content: space-between; gap: .6rem;
  padding: calc(.6rem + env(safe-area-inset-top)) .9rem .6rem; background: #fff; border-bottom: 3px solid var(--lime);
  position: sticky; top: 0; z-index: 2;
}
.topbar .title { display: flex; align-items: center; gap: .6rem; min-width: 0; }
.topbar .title > div { min-width: 0; }
.topbar strong { display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* Συνομιλία */
.chat-screen { display: flex; flex-direction: column; height: 100dvh; max-width: 760px; margin: 0 auto; background: var(--bg); }
.hint { margin: 0; padding: .45rem .9rem; font-size: .82rem; color: var(--muted); background: #fbfcf6; border-bottom: 1px solid var(--line); }
.thread { flex: 1; overflow-y: auto; padding: .8rem; display: flex; flex-direction: column; gap: .35rem; overscroll-behavior: contain; }
.day { align-self: center; font-size: .75rem; color: var(--muted); background: #eceee3; padding: .15rem .6rem; border-radius: 99px; margin: .6rem 0 .2rem; }
.msg { max-width: min(80%, 520px); padding: .5rem .7rem .35rem; border-radius: 14px; box-shadow: 0 1px 1px rgba(0,0,0,.06); overflow-wrap: anywhere; }
.msg.mine { align-self: flex-end; background: var(--mine); border-bottom-right-radius: 4px; }
.msg.theirs { align-self: flex-start; background: var(--theirs); border-bottom-left-radius: 4px; }
.msg .body { white-space: pre-wrap; line-height: 1.4; }
.msg .meta { font-size: .7rem; color: var(--muted); text-align: right; margin-top: .15rem; }
.msg .tag { font-size: .7rem; font-weight: 700; color: var(--orange-dark); margin-bottom: .15rem; }
.att-img img { display: block; max-width: 100%; max-height: 320px; border-radius: 10px; margin-bottom: .25rem; }
.att-file { display: inline-block; padding: .4rem .6rem; background: rgba(0,0,0,.04); border-radius: 8px; color: var(--olive); font-weight: 600; text-decoration: none; margin-bottom: .25rem; }
.empty { color: var(--muted); text-align: center; margin: auto; padding: 2rem 1rem; }

.composer { border-top: 1px solid var(--line); background: #fff; padding: .5rem .6rem calc(.5rem + env(safe-area-inset-bottom)); }
.composer .row { align-items: flex-end; }
.composer textarea { border-radius: 20px; padding: .6rem .9rem; max-height: 160px; }
.composer .send { border-radius: 50%; width: 44px; height: 44px; padding: 0; flex: 0 0 auto; font-size: 1.1rem; }
.chip { display: flex; align-items: center; gap: .3rem; font-size: .85rem; background: var(--mine); border-radius: 99px; padding: .2rem .4rem .2rem .8rem; margin-bottom: .4rem; width: fit-content; max-width: 100%; overflow: hidden; }

/* Εισερχόμενα γραφείου */
.staff-screen { display: flex; flex-direction: column; height: 100dvh; }
.inbox { flex: 1; display: grid; grid-template-columns: minmax(260px, 340px) 1fr; min-height: 0; }
.sidebar { border-right: 1px solid var(--line); background: #fff; display: flex; flex-direction: column; min-height: 0; }
.searchbox { padding: .6rem; border-bottom: 1px solid var(--line); }
.clients { list-style: none; margin: 0; padding: 0; overflow-y: auto; flex: 1; }
.client { width: 100%; text-align: left; background: none; border-radius: 0; border-bottom: 1px solid var(--line); padding: .7rem .8rem; display: block; color: var(--ink); }
.client:hover { background: #fafbf4; }
.client.active { background: var(--mine); }
.client.inactive strong { color: var(--muted); text-decoration: line-through; }
.client .row { gap: .4rem; }
.client .preview { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; flex: 1; min-width: 0; }
.badge { white-space: nowrap; background: var(--orange-dark); color: #fff; border-radius: 99px; font-size: .75rem; font-weight: 700; padding: .05rem .5rem; }
.pane { display: flex; flex-direction: column; min-height: 0; background: var(--bg); }
.pane-head { display: flex; align-items: center; gap: .6rem; padding: .6rem .9rem; background: #fff; border-bottom: 1px solid var(--line); }
.pane-head > div { flex: 1; min-width: 0; }
.only-mobile { display: none; }

@media (max-width: 760px) {
  .inbox { grid-template-columns: 1fr; }
  .inbox .pane { display: none; }
  .inbox.has-selection .sidebar { display: none; }
  .inbox.has-selection .pane { display: flex; }
  .only-mobile { display: inline-flex; }
  .staff-screen .topbar { flex-wrap: wrap; row-gap: .4rem; }
  .staff-screen .topbar .title { flex: 1 1 100%; }
  .staff-screen .topbar .row.wrap { flex: 1 1 100%; flex-wrap: wrap; justify-content: flex-start; gap: .3rem .5rem; }
  .topbar .row.wrap .secondary { font-size: .8rem; padding: .35rem .55rem; white-space: nowrap; }
  .topbar .row.wrap .link { white-space: nowrap; }
}

/* Παράθυρα */
dialog { border: 0; border-radius: var(--radius); padding: 1.2rem; width: min(440px, calc(100vw - 2rem)); box-shadow: 0 10px 40px rgba(0,0,0,.25); }
dialog.wide { width: min(560px, calc(100vw - 2rem)); }
dialog::backdrop { background: rgba(20,25,10,.45); }
dialog h2 { margin-bottom: .6rem; }
.picker { max-height: 220px; overflow-y: auto; border-top: 1px solid var(--line); margin-top: .3rem; padding-top: .3rem; }

.toast { position: fixed; left: 50%; bottom: calc(1.2rem + env(safe-area-inset-bottom)); transform: translateX(-50%); background: var(--ink); color: #fff; padding: .7rem 1rem; border-radius: 10px; z-index: 100; max-width: calc(100vw - 2rem); box-shadow: 0 4px 16px rgba(0,0,0,.25); }
.toast.error { background: #8f1f0a; }
.toast.ok { background: var(--olive); }

/* Καρτέλες */
.tabs { display: flex; gap: .2rem; background: #fff; border-bottom: 1px solid var(--line); padding: 0 .5rem; overflow-x: auto; flex: 0 0 auto; }
.tab { background: none; border-radius: 0; color: var(--muted); font-weight: 600; padding: .65rem .8rem .55rem; border-bottom: 3px solid transparent; white-space: nowrap; }
.tab[aria-selected="true"] { color: var(--olive); border-bottom-color: var(--olive); }
.tab .badge { margin-left: .2rem; }
.tab-body { flex: 1; display: flex; flex-direction: column; min-height: 0; position: relative; }
.badges { gap: .25rem; flex: 0 0 auto; }
.badge.diary-badge { background: var(--olive); }
.status { color: var(--orange-dark); }
.status.ok { color: var(--olive); }

/* Ημερολόγιο */
.diary, .files-view { flex: 1; overflow-y: auto; padding: .7rem .8rem 5.5rem; overscroll-behavior: contain; }
.files-view { padding-bottom: 1rem; }
.week-nav { display: flex; align-items: center; justify-content: center; gap: .4rem; flex-wrap: wrap; background: #fff; border-radius: var(--radius); padding: .4rem .5rem; margin-bottom: .7rem; box-shadow: 0 1px 2px rgba(0,0,0,.05); }
.week-nav .icon { font-size: 1.6rem; line-height: 1; padding: .1rem .7rem; color: var(--olive); }
.week-label { text-align: center; min-width: 9.5rem; }
.only-new { margin-left: auto; font-size: .88rem; }
.diary-day { margin-bottom: .9rem; }
.diary-day h3 { font-size: .9rem; margin: 0 0 .4rem; color: var(--olive); text-transform: capitalize; }
.diary-day.empty-day h3 { color: var(--muted); font-weight: 600; }
.diary-day.empty-day p { margin: 0 0 0 .2rem; }
.entry { background: #fff; border-radius: 12px; padding: .55rem .7rem; margin-bottom: .45rem; box-shadow: 0 1px 2px rgba(0,0,0,.06); border-left: 4px solid var(--lime); }
.entry.is-new { border-left-color: var(--orange); background: #fffaf5; }
.entry-head { display: flex; align-items: baseline; gap: .55rem; flex-wrap: wrap; }
.entry-time { font-variant-numeric: tabular-nums; color: var(--muted); font-size: .85rem; }
.new-tag { background: var(--orange-dark); color: #fff; font-size: .7rem; font-weight: 700; border-radius: 99px; padding: .05rem .5rem; margin-left: auto; }
.entry-photo { display: block; padding: 0; margin-top: .45rem; background: none; border-radius: 10px; overflow: hidden; }
.entry-photo img { display: block; max-width: 100%; max-height: 260px; border-radius: 10px; }
.entry-note { margin: .4rem 0 0; white-space: pre-wrap; overflow-wrap: anywhere; line-height: 1.4; }
.diary-actions { position: absolute; left: 0; right: 0; bottom: 0; padding: .6rem .8rem calc(.6rem + env(safe-area-inset-bottom)); background: linear-gradient(transparent, var(--bg) 35%); display: flex; justify-content: center; }
.fab { width: min(100%, 420px); box-shadow: 0 3px 10px rgba(0,0,0,.18); }
.row.two > .stack { flex: 1; min-width: 0; }
.md-preview { display: flex; align-items: center; gap: .5rem; }
.md-preview img { max-height: 120px; max-width: 70%; border-radius: 10px; }
img.viewer { display: block; max-width: 100%; max-height: 75vh; margin: 0 auto; border-radius: 10px; }

/* Αρχεία */
.files { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: .45rem; }
.file { display: flex; align-items: center; gap: .7rem; background: #fff; border-radius: 12px; padding: .5rem .6rem; box-shadow: 0 1px 2px rgba(0,0,0,.06); }
.file.is-new { background: #fffaf5; }
.file-thumb { width: 64px; height: 64px; flex: 0 0 64px; padding: 0; border-radius: 8px; overflow: hidden; background: #eef1e4; display: flex; align-items: center; justify-content: center; color: var(--olive); font-weight: 700; text-decoration: none; }
.file-thumb img { width: 100%; height: 100%; object-fit: cover; }
.file-meta { flex: 1; min-width: 0; }
.file-meta .new-tag { margin-left: 0; display: inline-block; margin-top: .15rem; }
.file-caption { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; color: var(--muted); }

/* Αρχεία γραφείου */
.section-head { display: flex; align-items: center; justify-content: space-between; gap: .6rem; margin: .4rem 0 .5rem; }
.section-head h3, .file-group h3 { font-size: .95rem; margin: 0; color: var(--olive); }
.section-head + .files, .section-head + p { margin-bottom: 1.2rem; }
.file-group { margin-bottom: 1rem; }
.file-group h3 { margin-bottom: .45rem; }
.file-title { display: block; overflow-wrap: anywhere; }
.file-actions { display: flex; flex-direction: column; align-items: flex-end; gap: .1rem; }
.link.danger { color: #a1260d; font-weight: 500; font-size: .85rem; }
.primary.danger-bg { background: #a1260d; }
.primary.small { padding: .4rem .7rem; font-size: .88rem; }

/* Μετρήσεις, διαγράμματα, ιστορικό */
.tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: .5rem; margin-bottom: .6rem; }
.tile { background: #fff; border-radius: 12px; padding: .6rem .8rem; box-shadow: 0 1px 2px rgba(0,0,0,.06); }
.tile-value { font-size: 1.35rem; font-weight: 700; color: var(--ink); font-variant-numeric: tabular-nums; }
.charts { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: .7rem; margin: .4rem 0 1rem; }
.chart { margin: 0; background: #fff; border-radius: 12px; padding: .6rem .7rem .4rem; box-shadow: 0 1px 2px rgba(0,0,0,.06); }
.chart figcaption { font-weight: 700; font-size: .9rem; margin-bottom: .2rem; }
.chart-box { position: relative; }
.chart-svg { width: 100%; height: auto; display: block; touch-action: pan-y; }
.chart-svg .grid { stroke: #ecefe3; stroke-width: 1; }
.chart-svg .tick { fill: var(--muted); font-size: 11px; font-variant-numeric: tabular-nums; }
.chart-svg .end-label { fill: var(--ink); font-size: 12px; font-weight: 600; font-variant-numeric: tabular-nums; }
.chart-svg .cross { stroke: #9aa087; stroke-width: 1; stroke-dasharray: 3 3; }
.legend { display: flex; flex-wrap: wrap; gap: .3rem .9rem; font-size: .8rem; color: var(--muted); margin-bottom: .2rem; }
.legend > span, .tip-row { display: inline-flex; align-items: center; gap: .35rem; }
.swatch { width: 10px; height: 10px; border-radius: 3px; display: inline-block; flex: 0 0 auto; }
.chart-tip { position: absolute; top: 0; transform: translateX(-50%); background: #fff; border: 1px solid var(--line); border-radius: 8px; padding: .35rem .55rem; font-size: .78rem; box-shadow: 0 3px 10px rgba(0,0,0,.12); pointer-events: none; white-space: nowrap; }
.chart-tip strong { display: block; margin-bottom: .1rem; }
.table-title { font-size: .95rem; color: var(--olive); margin: .4rem 0; }
.table-wrap { overflow-x: auto; background: #fff; border-radius: 12px; box-shadow: 0 1px 2px rgba(0,0,0,.06); }
.mtable { border-collapse: collapse; width: 100%; font-size: .85rem; }
.mtable th, .mtable td { padding: .45rem .6rem; border-bottom: 1px solid var(--line); text-align: left; white-space: nowrap; }
.mtable th { font-size: .75rem; color: var(--muted); font-weight: 600; background: #fafbf5; }
.mtable td.num { text-align: right; font-variant-numeric: tabular-nums; }
.mtable .delta { color: var(--muted); font-size: .75rem; }
.mgrid { display: grid; grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)); gap: .5rem; }
.mfield { display: flex; flex-direction: column; gap: .25rem; }
.mfield label { font-size: .82rem; }
fieldset p.small { margin: .4rem 0 0; }
textarea.history { width: 100%; min-height: 55vh; resize: vertical; line-height: 1.5; }
.mgrid.two { grid-template-columns: 1fr 1fr; }
.metric-chart { margin: .4rem 0 1rem; }
.chips { display: flex; flex-wrap: wrap; gap: .35rem; margin-bottom: .5rem; }
.chip-btn { background: #fff; border: 1px solid #cfd5bd; color: var(--ink); border-radius: 99px; padding: .3rem .75rem; font-size: .85rem; font-weight: 500; }
.chip-btn[aria-selected="true"] { background: var(--olive); border-color: var(--olive); color: #fff; }
.metric-chart .chart { max-width: 560px; }
.warnbox { background: #fff4ea; border-left: 4px solid var(--orange-dark); border-radius: 8px; padding: .6rem .8rem; font-size: .9rem; }
.warnbox ul { margin: .3rem 0 .3rem 1.1rem; padding: 0; }

/* Στοιχεία πελάτη */
.card-sec { background: #fff; border-radius: 12px; padding: .7rem .9rem .9rem; box-shadow: 0 1px 2px rgba(0,0,0,.06); margin-bottom: .8rem; }
.card-sec h3 { font-size: .95rem; color: var(--olive); margin: 0 0 .6rem; }
.card-sec.summary .tiles .tile { box-shadow: none; background: #f6f8ef; }
.profile-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 0 .8rem; align-items: start; }
.profile-grid .mgrid { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); }
.mfield.wide { grid-column: 1 / -1; }
.tile select.pal { margin-top: .3rem; padding: .35rem .5rem; width: auto; min-width: 5rem; }
.mfield output.age { padding: .7rem .2rem; font-weight: 600; }
.profile-actions { grid-column: 1 / -1; display: flex; align-items: center; justify-content: flex-end; gap: .8rem; position: sticky; bottom: 0; background: linear-gradient(transparent, var(--bg) 30%); padding: .6rem 0; }
.row.wrap-start { flex-wrap: wrap; align-items: baseline; }
.bmi-bar { width: 100%; height: auto; display: block; }
.bmi-bar .zone-label { font-size: 11px; fill: var(--muted); }
.bmi-bar .tick { font-size: 11px; fill: var(--muted); font-variant-numeric: tabular-nums; }
.bmi-bar .mark { stroke-width: 3; }
.bmi-bar .mark.first { stroke: #2a78d6; }
.bmi-bar .mark.last { stroke: #1f2410; }
.bmi-bar .mark-label { font-size: 12px; font-weight: 700; fill: var(--ink); font-variant-numeric: tabular-nums; }
.bmi-bar .mark-label.lbl-first { fill: #1c5cab; }
.chart.bmi { max-width: 640px; box-shadow: none; padding: .4rem 0 0; }

/* Στόχοι */
.goal { background: #fff; border-radius: 12px; padding: .65rem .8rem; margin-bottom: .55rem; box-shadow: 0 1px 2px rgba(0,0,0,.06); display: flex; flex-direction: column; gap: .35rem; }
.goal-head { display: flex; justify-content: space-between; align-items: baseline; gap: .6rem; }
.goal-text { font-size: 1.02rem; }
.day-strip { display: flex; gap: .3rem; flex-wrap: wrap; }
.day-cell { display: inline-flex; flex-direction: column; align-items: center; min-width: 2.4rem; padding: .2rem .3rem; border-radius: 8px; border: 1px solid var(--line); background: #fafbf5; font-size: .72rem; color: var(--muted); }
button.day-cell { cursor: pointer; }
.day-cell .mark { font-size: 1rem; font-weight: 700; line-height: 1.2; }
.day-cell.done { background: #e6f2d3; border-color: #9cc46b; color: #3d5a10; }
.day-cell.not { background: #fbe7e2; border-color: #e3a497; color: #8f2f1c; }
.today-row { display: flex; align-items: center; gap: .5rem; flex-wrap: wrap; }
.chk { border: 1px solid var(--line); background: #fff; color: var(--ink); font-weight: 600; padding: .5rem .9rem; }
.chk.yes.on { background: var(--olive); border-color: var(--olive); color: #fff; }
.chk.no.on { background: #8f2f1c; border-color: #8f2f1c; color: #fff; }
.goal-group { margin-bottom: .6rem; }
.past-goals { list-style: none; margin: .3rem 0 0; padding: 0; display: flex; flex-direction: column; gap: .3rem; }
.past-goals li { background: #fff; border-radius: 10px; padding: .45rem .6rem; display: flex; gap: .5rem; align-items: baseline; flex-wrap: wrap; }
.outcome { font-size: .72rem; font-weight: 700; border-radius: 99px; padding: .05rem .5rem; background: #eceee3; color: var(--muted); }
.outcome.achieved { background: #e6f2d3; color: #3d5a10; }
.outcome.partial { background: #fff1d6; color: #7a5200; }
.outcome.not { background: #fbe7e2; color: #8f2f1c; }
.day-cell.na { background: #eef1f6; border-color: #b9c3d3; color: #46536a; }
.chk.not.on { background: #8f2f1c; border-color: #8f2f1c; color: #fff; }
.chk.done.on { background: var(--olive); border-color: var(--olive); color: #fff; }
.chk.na.on { background: #46536a; border-color: #46536a; color: #fff; }
.goal-stat { color: var(--ink); }
.tpl-list { max-height: 260px; overflow-y: auto; display: flex; flex-direction: column; gap: .2rem; margin-top: .4rem; }
.tpl-list.tall { max-height: 60vh; }
.tpl-cat { font-size: .75rem; font-weight: 700; color: var(--olive); text-transform: uppercase; margin: .4rem 0 .15rem; }
.tpl { display: block; width: 100%; text-align: left; background: #fafbf5; border: 1px solid var(--line); border-radius: 8px; padding: .4rem .6rem; color: var(--ink); font-weight: 400; margin-bottom: .2rem; }
.tpl:hover { background: var(--mine); }
.chosen { display: flex; flex-direction: column; gap: .4rem; }
.chosen-row { display: grid; grid-template-columns: 1fr auto auto; gap: .4rem; align-items: start; background: #f6f8ef; border-radius: 8px; padding: .4rem; }
.chosen-row textarea, .lib-row textarea { min-height: 2.6rem; }
.kind-picker { display: inline-flex; gap: .3rem; flex-wrap: wrap; }
.kind-picker select { width: auto; padding: .45rem .5rem; font-size: 14px; }
.lib-row { border-bottom: 1px solid var(--line); padding: .5rem 0; display: flex; flex-direction: column; gap: .35rem; }
.lib-row input { width: 12rem; padding: .45rem .5rem; font-size: 14px; }
@media (max-width: 760px) { .chosen-row { grid-template-columns: 1fr auto; } .chosen-row .kind-picker { grid-column: 1 / 2; } }
.day-cell.hi { background: #e6f2d3; border-color: #9cc46b; color: #3d5a10; }
.day-cell.mid { background: #fff1d6; border-color: #e3c06b; color: #7a5200; }
.day-cell.lo { background: #fbe7e2; border-color: #e3a497; color: #8f2f1c; }
.day-cell.sel { outline: 3px solid var(--orange); outline-offset: 1px; }
.day-cell .mark { font-size: .85rem; }
.q { font-weight: 600; }
.scores { display: flex; flex-wrap: wrap; gap: .3rem; }
.score { border: 1px solid var(--line); background: #fff; color: var(--ink); font-weight: 700; padding: .5rem .6rem; min-width: 3.4rem; font-variant-numeric: tabular-nums; }
.score.on.lo { background: #8f2f1c; border-color: #8f2f1c; color: #fff; }
.score.on.mid { background: #b07a00; border-color: #b07a00; color: #fff; }
.score.on.hi { background: var(--olive); border-color: var(--olive); color: #fff; }
.score.na { font-weight: 500; }
.score.on.na { background: #46536a; border-color: #46536a; color: #fff; }
.chosen-row { grid-template-columns: 1fr auto auto; }

/* Ειδοποιήσεις */
.bell { font-size: 1.15rem; padding: .3rem .4rem; }
.push-strip, .news-bar {
  display: flex; align-items: center; justify-content: space-between; gap: .6rem; flex-wrap: wrap;
  margin: .5rem .9rem 0; padding: .55rem .8rem; border-radius: 10px; font-size: .9rem;
}
.push-strip { background: #fff4ea; border-left: 4px solid var(--orange); }
.news-bar { display: block; background: var(--mine); border-left: 4px solid var(--olive); }
.news-bar .link { padding: .1rem .2rem; text-decoration: underline; }
.ok-text { color: var(--olive); font-weight: 600; }
.notif-line { margin-top: .15rem; }
.notif-line .link { padding: 0 .2rem; }

/* Ραντεβού */
.appt-card { background: #fff; border-radius: 14px; padding: .9rem 1rem; margin-bottom: .6rem; box-shadow: 0 1px 3px rgba(0,0,0,.07); display: flex; flex-direction: column; gap: .6rem; border-left: 5px solid var(--lime); }
.appt-when { display: flex; align-items: center; gap: .75rem; }
.appt-when strong { font-size: 1.08rem; }
.appt-icon { font-size: 1.6rem; }
.appt-rule { margin-top: .8rem; }
.past-appts { margin: .2rem 0 0; padding-left: 1.1rem; color: var(--muted); font-size: .9rem; }
.pending-note { margin-bottom: .6rem; }
.day-chips { display: flex; gap: .4rem; overflow-x: auto; padding-bottom: .3rem; }
.day-chip { display: flex; flex-direction: column; align-items: center; min-width: 3.6rem; border-radius: 12px; padding: .35rem .5rem; line-height: 1.15; }
.day-chip strong { font-size: 1.1rem; }
.slot-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(4.6rem, 1fr)); gap: .4rem; }
.slot { background: #fff; border: 1px solid #cfd5bd; color: var(--ink); font-weight: 600; padding: .55rem .3rem; font-variant-numeric: tabular-nums; }
.slot.on { background: var(--olive); border-color: var(--olive); color: #fff; }
.appt-pick { min-height: 1.2em; font-weight: 600; color: var(--olive); margin: 0; }
.danger-btn { background: #8f2f1c; }
.danger-btn:hover:not(:disabled) { background: #6f2416; }
.appt-line { margin-top: .1rem; }
.match-list { display: flex; flex-direction: column; gap: .35rem; max-height: 55vh; overflow-y: auto; }
.match-row { display: flex; justify-content: space-between; align-items: center; gap: .6rem; flex-wrap: wrap; background: #fff; border: 1px solid var(--line); border-radius: 10px; padding: .5rem .7rem; }
.match-row select { width: auto; min-width: 12rem; padding: .4rem .5rem; }
.match-badge { font-size: .78rem; white-space: nowrap; color: var(--olive); font-weight: 600; }
.match-badge.ambiguous { color: var(--orange-dark); }
.match-badge.none { color: var(--muted); }
.actions-list { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: .4rem; }
.actions-list li { background: #fff; border: 1px solid var(--line); border-radius: 10px; padding: .5rem .7rem; font-size: .92rem; }
.actions-list li.is-new { border-left: 4px solid var(--orange); }
.act-status.failed { color: #8f2f1c; }
.act-status.done { color: var(--olive); }
.hours { display: flex; flex-direction: column; gap: .35rem; }
.hours-day { display: grid; grid-template-columns: 7.5rem 1fr; gap: .5rem; align-items: start; border-bottom: 1px solid var(--line); padding: .35rem 0; }
.hours-ranges { display: flex; flex-direction: column; gap: .3rem; align-items: flex-start; }
.hours-ranges input[type=time] { width: auto; padding: .35rem .5rem; }
.g-steps { padding-left: 1.2rem; margin: .2rem 0; display: flex; flex-direction: column; gap: .35rem; }
.entry-edit { margin-left: auto; padding: .1rem .3rem; }
.add-photo-later { align-self: flex-start; margin-top: .3rem; }
.entry-photos.multi { display: grid; grid-template-columns: repeat(auto-fill, minmax(7.5rem, 1fr)); gap: .4rem; margin-top: .45rem; }
.entry-photos.multi .entry-photo { margin-top: 0; aspect-ratio: 1; }
.entry-photos.multi .entry-photo img { width: 100%; height: 100%; max-height: none; object-fit: cover; }
.md-photos { display: grid; grid-template-columns: repeat(auto-fill, minmax(5.5rem, 1fr)); gap: .4rem; }
.md-thumb { position: relative; aspect-ratio: 1; border-radius: 10px; overflow: hidden; background: #eceee3; display: flex; align-items: center; justify-content: center; }
.md-thumb img { width: 100%; height: 100%; object-fit: cover; }
.md-remove { position: absolute; top: .2rem; right: .2rem; background: rgba(0,0,0,.6); color: #fff; border-radius: 99px; width: 1.7rem; height: 1.7rem; padding: 0; font-size: .85rem; }
