/* Coffee with a Professor
   Paleta vine din imaginea primită (7 oct 2026): Light Cream #E9CEAF, Orange Lime #ED802A,
   Lime Yellow #EDC45A, Bubble Blue #65BCB5. Portocaliul e singura culoare de acțiune;
   galbenul și turcoazul sunt doar obiecte (cărți poștale, timbru, monograme).
   Colțuri: containere 22px, opțiuni 14px, câmpuri 12px, butoane pastilă. */

:root {
  --bg: #F5E9D8;
  --surface: #FCF6EE;
  --paper: #FBF1E3;
  --cream: #E9CEAF;
  --orange: #ED802A;
  --orange-soft: #FBE1C8;
  --orange-ink: #A14A0C;
  --yellow: #EDC45A;
  --teal: #65BCB5;
  --teal-soft: #D5EEEB;
  --teal-ink: #23625D;
  --ink: #2A1B10;
  --ink-2: #634A37;
  --ink-3: #8A715C;
  --line: #E6D2B8;
  --danger: #B0361A;
  --on-orange: #2A1B10;
  --shadow: 0 1px 0 rgb(120 70 30 / .06), 0 18px 40px -22px rgb(120 70 30 / .45);
  --ease: cubic-bezier(.16, 1, .3, 1);
  --display: 'Bricolage Grotesque', system-ui, sans-serif;
  --body: 'Figtree', system-ui, sans-serif;
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #1C140E;
    --surface: #261C14;
    --cream: #3B2C20;
    --orange-soft: #4A2B15;
    --orange-ink: #F6A56A;
    --teal-soft: #1D3A37;
    --teal-ink: #8ED6D0;
    --ink: #F4E7D6;
    --ink-2: #D2BCA3;
    --ink-3: #A88F77;
    --line: #3E2E22;
    --danger: #FF8F6E;
    --shadow: 0 1px 0 rgb(0 0 0 / .2), 0 18px 40px -22px rgb(0 0 0 / .8);
    color-scheme: dark;
  }
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 400 16px/1.55 var(--body);
  -webkit-font-smoothing: antialiased;
  min-height: 100dvh;
}
button, input { font: inherit; color: inherit; }
[hidden] { display: none !important; }

.shell { width: 100%; max-width: 1160px; margin: 0 auto; padding: 0 16px; }
@media (min-width: 640px) { .shell { padding: 0 28px; } }

/* ---------- antet ---------- */
.topbar { position: sticky; top: 0; z-index: 10; background: color-mix(in srgb, var(--bg) 92%, transparent); border-bottom: 1px solid transparent; }
.topbar__in { height: 64px; display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); min-width: 0; }
.brand__mark { width: 36px; height: 36px; border-radius: 50%; background: var(--orange); color: var(--on-orange); display: grid; place-items: center; font-size: 19px; flex: none; }
.brand__name { font: 700 17px/1 var(--display); letter-spacing: -.01em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.topbar__right { display: flex; align-items: center; gap: 8px; flex: none; }
/* comutatorul de limbă: două pastile, cea aleasă în portocaliul de acțiune */
.lang { display: inline-flex; padding: 3px; gap: 2px; border-radius: 999px; background: var(--surface); border: 1px solid var(--line); }
.lang button { height: 32px; min-width: 38px; padding: 0 10px; border: 0; border-radius: 999px; background: transparent; color: var(--ink-2); font: 700 13px/1 var(--body); letter-spacing: .04em; cursor: pointer; transition: background-color .2s, color .2s; }
.lang button:hover { color: var(--ink); }
.lang button[aria-pressed="true"] { background: var(--orange); color: var(--on-orange); }
.lang button:focus-visible { outline: 2px solid var(--orange); outline-offset: 2px; }
.topbar__link { display: inline-flex; align-items: center; gap: 6px; padding: 8px 14px; border-radius: 999px; background: var(--surface); color: var(--ink); text-decoration: none; font-weight: 600; font-size: 14px; border: 1px solid var(--line); flex: none; }
.topbar__link:hover { border-color: var(--orange); }
@media (max-width: 420px) { .topbar__link span { display: none; } .topbar__link { padding: 9px; } }
/* pe telefon îngust, numele trece pe două rânduri în loc să fie tăiat de comutatorul RO/EN */
@media (max-width: 480px) { .brand__name { white-space: normal; font-size: 15px; line-height: 1.1; max-width: 9.5em; } }

/* ---------- așezare ---------- */
.layout { display: grid; grid-template-columns: minmax(0, 1fr); gap: 28px; padding-top: 20px; padding-bottom: 40px; }
@media (min-width: 960px) {
  .layout { grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: 56px; align-items: start; padding-top: 48px; }
  .hero { position: sticky; top: 96px; }
}

/* ---------- erou ---------- */
.eyebrow { margin: 0 0 14px; font: 700 13px/1 var(--body); letter-spacing: .12em; text-transform: uppercase; color: var(--orange-ink); }
.hero__title { margin: 0; font: 800 clamp(34px, 6.4vw, 56px)/1.02 var(--display); letter-spacing: -.035em; text-wrap: balance; }
.hero__sub { margin: 16px 0 0; max-width: 40ch; color: var(--ink-2); font-size: 17px; text-wrap: pretty; }

/* cărțile poștale: un teanc în culorile paletei, cea de sus „par avion” */
.postcards { position: relative; height: 230px; margin-top: 32px; max-width: 460px; }
@media (min-width: 960px) { .postcards { height: 300px; margin-top: 44px; } }
.pc { position: absolute; left: 4%; top: 6%; width: 84%; aspect-ratio: 3 / 1.9; border-radius: 18px; box-shadow: var(--shadow); transform-origin: 30% 80%; }
.pc--teal { background: var(--teal); transform: rotate(-9deg) translate(-2%, 6%); }
.pc--yellow { background: var(--yellow); transform: rotate(5deg) translate(8%, -2%); }
.pc--front {
  padding: 9px;
  transform: rotate(-2deg) translate(4%, 4%);
  background: repeating-linear-gradient(-45deg,
    var(--orange) 0 12px, var(--paper) 12px 20px, var(--teal) 20px 32px, var(--paper) 32px 40px);
}
.pc__inner { height: 100%; border-radius: 11px; background: var(--paper); color: #2A1B10; display: grid; grid-template-columns: 1fr 1fr; padding: 16px 18px; gap: 14px; }
.pc__note { display: flex; flex-direction: column; justify-content: flex-end; border-right: 1.5px solid #E2CDB1; padding-right: 12px; }
.pc__hi { font: 800 clamp(22px, 4.4vw, 30px)/1 var(--display); letter-spacing: -.03em; color: #C25E12; }
.pc__msg { font: 600 clamp(13px, 2.4vw, 15px)/1.3 var(--display); margin-top: 6px; }
.pc__addr { display: flex; flex-direction: column; justify-content: flex-end; gap: 8px; position: relative; }
.pc__line { font: 600 clamp(11px, 2.1vw, 13px)/1.2 var(--body); padding-bottom: 5px; border-bottom: 1.5px solid #E2CDB1; white-space: nowrap; }
.stamp {
  position: absolute; top: 0; right: 0; width: 58px; height: 68px; padding: 5px; transform: rotate(4deg);
  background: radial-gradient(circle, var(--paper) 2.4px, transparent 2.9px) -4px -4px / 8px 8px, var(--yellow);
}
.stamp__in { height: 100%; background: var(--yellow); outline: 1.5px solid rgb(42 27 16 / .35); outline-offset: -4px; display: grid; place-items: center; align-content: center; gap: 2px; color: #2A1B10; }
.stamp__in i { font-size: 22px; }
.stamp__in span { font: 800 10px/1 var(--display); letter-spacing: .08em; }
.leaf { position: absolute; font-size: 30px; pointer-events: none; }
.leaf--a { color: var(--orange); right: 2%; top: -4%; transform: rotate(32deg); }
.leaf--b { color: var(--yellow); left: -2%; bottom: 0; font-size: 24px; transform: rotate(-120deg); }
@media (max-width: 959px) { .postcards { height: 200px; margin-bottom: 18px; } .stamp { width: 50px; height: 58px; } .stamp__in i { font-size: 18px; } }

/* ---------- formular ---------- */
.panel { background: var(--surface); border-radius: 22px; padding: 6px 18px 22px; box-shadow: var(--shadow); border: 1px solid var(--line); }
@media (min-width: 640px) { .panel { padding: 10px 32px 30px; } }

.q { border: 0; margin: 0; padding: 22px 0 4px; min-width: 0; }
.q + .q { border-top: 1px solid var(--line); margin-top: 16px; }
.q__title { float: left; width: 100%; padding: 0; margin-bottom: 14px; font: 700 21px/1.2 var(--display); letter-spacing: -.02em; }
.q > :not(legend) { clear: both; }
.q__hint { margin: -6px 0 14px; color: var(--ink-2); font-size: 15px; }

.names { display: grid; gap: 14px; }
@media (min-width: 520px) { .names { grid-template-columns: 1fr 1fr; } }
.field { display: grid; gap: 6px; }
.field label { font-weight: 600; font-size: 14px; color: var(--ink-2); }
.field input {
  width: 100%; height: 50px; padding: 0 14px; border-radius: 12px; border: 1.5px solid var(--line);
  background: var(--bg); font-size: 17px; transition: border-color .2s, box-shadow .2s;
}
.field input:focus { outline: 2px solid var(--orange); outline-offset: 2px; border-color: var(--orange); }
.field input[aria-invalid="true"] { border-color: var(--danger); }
.field__err, .form__err { margin: 6px 0 0; min-height: 0; color: var(--danger); font-size: 14px; font-weight: 600; }
.field__err:empty, .form__err:empty { display: none; }

/* zilele */
.days { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); gap: 8px; }
.day {
  position: relative; display: grid; justify-items: center; gap: 2px; padding: 10px 2px 9px; border-radius: 14px;
  border: 1.5px solid var(--line); background: var(--bg); cursor: pointer; text-align: center;
  transition: transform .2s var(--ease), border-color .2s, background-color .2s;
}
.day input { position: absolute; opacity: 0; pointer-events: none; }
.day__wd { font-size: 12px; font-weight: 700; color: var(--ink-2); text-transform: uppercase; letter-spacing: .06em; }
.day__num { font: 800 26px/1.05 var(--display); letter-spacing: -.03em; }
.day__free { font-size: 11.5px; font-weight: 600; color: var(--teal-ink); white-space: nowrap; }
.day:hover { border-color: color-mix(in srgb, var(--orange) 55%, var(--line)); }
.day:active { transform: scale(.97); }
.day:has(input:checked) { border-color: var(--orange); background: var(--orange-soft); }
.day:has(input:focus-visible) { outline: 2px solid var(--orange); outline-offset: 2px; }
.day.is-off { cursor: not-allowed; opacity: .5; }
.day.is-off .day__free { color: var(--ink-3); }
.day.is-off:hover { border-color: var(--line); }
.day.is-off:active { transform: none; }

/* opțiuni: profesori, cafenele, oră */
.opts { display: grid; gap: 10px; }
@media (min-width: 560px) { .opts--profs, .opts--cafes { grid-template-columns: 1fr 1fr; } }
.opt {
  position: relative; display: flex; align-items: center; gap: 12px; padding: 12px 14px; min-height: 68px;
  border-radius: 14px; border: 1.5px solid var(--line); background: var(--bg); cursor: pointer;
  transition: transform .2s var(--ease), border-color .2s, background-color .2s;
}
.opt input { position: absolute; opacity: 0; pointer-events: none; }
.opt:hover { border-color: color-mix(in srgb, var(--orange) 55%, var(--line)); }
.opt:active { transform: scale(.985); }
.opt:has(input:checked) { border-color: var(--orange); background: var(--orange-soft); }
.opt:has(input:focus-visible) { outline: 2px solid var(--orange); outline-offset: 2px; }
.opt__text { display: grid; gap: 1px; min-width: 0; flex: 1; }
.opt__name { font-weight: 700; font-size: 16px; line-height: 1.25; }
.opt__sub { font-size: 13.5px; color: var(--ink-2); line-height: 1.35; }
.opt__check { margin-left: auto; font-size: 22px; color: var(--orange); opacity: 0; transform: scale(.6); transition: opacity .2s, transform .25s var(--ease); flex: none; }
.opt:has(input:checked) .opt__check { opacity: 1; transform: none; }

.mono { width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; flex: none; font: 800 15px/1 var(--display); letter-spacing: -.02em; color: #2A1B10; }
.mono--0 { background: var(--yellow); }
.mono--1 { background: var(--teal); }
.mono--2 { background: var(--cream); color: var(--ink); }
.pin { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; flex: none; background: var(--teal-soft); color: var(--teal-ink); font-size: 22px; }

.opt.is-taken { cursor: not-allowed; }
.opt.is-taken .mono, .opt.is-taken .opt__text { opacity: .45; }
.opt.is-taken:hover { border-color: var(--line); }
.opt.is-taken:active { transform: none; }
.taken-stamp {
  margin-left: auto; flex: none; padding: 4px 9px; border: 2px solid var(--orange-ink); border-radius: 6px;
  color: var(--orange-ink); font: 800 12px/1 var(--display); letter-spacing: .1em; text-transform: uppercase; transform: rotate(-7deg);
}
.opts--profs.is-waiting .opt { opacity: .55; }

.opt--fixed { cursor: default; border-style: dashed; }
.opt--fixed:hover { border-color: var(--line); }
.opt--fixed:active { transform: none; }
.clock { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; flex: none; background: var(--orange-soft); color: var(--orange-ink); font-size: 22px; }

/* skeleton cât se încarcă */
.sk { display: block; border-radius: 14px; background: linear-gradient(90deg, var(--line) 0 40%, color-mix(in srgb, var(--line) 50%, var(--bg)) 50%, var(--line) 60% 100%) 0 0 / 300% 100%; animation: sk 1.4s linear infinite; }
.sk--day { height: 84px; }
.sk--opt { height: 68px; }
@keyframes sk { to { background-position: -150% 0; } }

/* trimitere */
.submit { margin-top: 26px; display: grid; gap: 12px; }
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px; height: 54px; padding: 0 26px;
  border-radius: 999px; border: 0; cursor: pointer; font-weight: 700; font-size: 17px; white-space: nowrap;
  transition: transform .2s var(--ease), background-color .2s, box-shadow .2s;
}
.btn:active { transform: translateY(1px) scale(.985); }
.btn--primary { width: 100%; background: var(--orange); color: var(--on-orange); box-shadow: 0 1px 0 rgb(120 70 30 / .12), 0 8px 18px -12px rgb(90 50 20 / .55); }
.btn--primary:hover { background: #F28D3B; }
.btn--primary i { font-size: 20px; transition: transform .25s var(--ease); }
.btn--primary:hover i { transform: translateX(3px); }
.btn--primary:disabled { opacity: .6; cursor: progress; }
.btn--ghost { background: transparent; color: var(--ink); border: 1.5px solid var(--line); }
.btn--ghost:hover { border-color: var(--orange); }
.btn--small { height: 40px; padding: 0 16px; font-size: 14.5px; }
.btn:focus-visible { outline: 3px solid color-mix(in srgb, var(--orange) 55%, transparent); outline-offset: 3px; }

/* ---------- confirmarea: un bon de cafenea ---------- */
.done { padding-top: 22px; outline: none; }
.ticket {
  position: relative; background: #F6E6D0; color: #2A1B10; border-radius: 16px; padding: 26px 22px 22px;
  box-shadow: var(--shadow);
  -webkit-mask: radial-gradient(circle 11px at 0 97px, transparent 10.5px, #000 11px) left / 51% 100% no-repeat,
                radial-gradient(circle 11px at 100% 97px, transparent 10.5px, #000 11px) right / 51% 100% no-repeat;
          mask: radial-gradient(circle 11px at 0 97px, transparent 10.5px, #000 11px) left / 51% 100% no-repeat,
                radial-gradient(circle 11px at 100% 97px, transparent 10.5px, #000 11px) right / 51% 100% no-repeat;
}
.ticket__head { display: flex; align-items: center; gap: 12px; height: 56px; }
.ticket__icon { width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center; background: var(--teal); font-size: 24px; flex: none; }
.ticket__title { margin: 0; font: 800 25px/1.1 var(--display); letter-spacing: -.03em; }
.ticket__cut { margin: 14px -6px 16px; border: 0; border-top: 2px dashed #DCC6A9; }
.ticket__rows { display: grid; gap: 12px; margin: 0; }
.ticket__row { display: grid; grid-template-columns: 92px minmax(0, 1fr); gap: 10px; }
.ticket__row dt { font-size: 13px; font-weight: 700; color: #7A5F49; text-transform: uppercase; letter-spacing: .06em; padding-top: 2px; }
.ticket__row dd { min-width: 0; margin: 0; font-weight: 700; font-size: 16.5px; line-height: 1.35; }
.ticket__row dd small { display: block; font-weight: 500; font-size: 14px; color: #634A37; }
.ticket__note { margin: 18px 0 0; font-size: 14px; color: #634A37; }
.done__actions { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 18px; }

/* ---------- rezervările mele ---------- */
.mine { margin-top: 30px; padding-top: 24px; border-top: 1px solid var(--line); }
.mine__title { margin: 0 0 12px; font: 700 21px/1.2 var(--display); letter-spacing: -.02em; }
.mine__list { display: grid; gap: 10px; }
.mine__item { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: 14px; background: var(--bg); border: 1.5px solid var(--line); }
.mine__date { flex: none; width: 52px; text-align: center; border-right: 1.5px dashed var(--line); padding-right: 10px; }
.mine__date b { display: block; font: 800 24px/1 var(--display); }
.mine__date span { font-size: 12px; font-weight: 700; color: var(--ink-2); text-transform: uppercase; letter-spacing: .06em; }
.mine__text { flex: 1; min-width: 0; display: grid; grid-template-columns: minmax(0, 1fr); gap: 1px; }
.mine__text b { font-size: 15.5px; }
.mine__text span { font-size: 13.5px; color: var(--ink-2); }
/* locația cafenelei: link spre Google Maps, sau „vine în curând” cât n-are adresă */
.maplink { display: inline-flex; align-items: center; gap: 6px; justify-self: start; margin-top: 6px; padding: 6px 12px 6px 10px; border-radius: 999px; background: var(--teal-soft); color: var(--teal-ink); font-size: 13.5px; font-weight: 700; line-height: 1.25; text-decoration: none; max-width: 100%; transition: transform .2s var(--ease), background-color .2s; }
.maplink span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; }
.maplink i { font-size: 16px; flex: none; }
a.maplink:hover { background: color-mix(in srgb, var(--teal) 35%, var(--teal-soft)); }
a.maplink:active { transform: scale(.97); }
a.maplink:focus-visible { outline: 2px solid var(--orange); outline-offset: 2px; }
.maplink.is-pending { background: transparent; border: 1.5px dashed var(--line); color: var(--ink-3); font-weight: 600; }
.ticket .maplink { background: #D5EEEB; color: #23625D; }
.ticket .maplink.is-pending { background: transparent; border-color: #DCC6A9; color: #7A5F49; }
/* adresa lungă se taie cu „…” în loc să lărgească pagina (a ieșit din ecran la 390px, Bob Republic) */
.ticket__row dd .maplink { display: flex; width: fit-content; max-width: 100%; }
.linkbtn { border: 0; background: none; padding: 8px 4px; color: var(--danger); font-weight: 700; font-size: 14px; cursor: pointer; flex: none; }
.linkbtn:hover { text-decoration: underline; }

.foot { padding-bottom: 32px; color: var(--ink-3); font-size: 14px; }
.foot p { margin: 0; }

/* mesaje scurte */
.toast {
  position: fixed; left: 50%; bottom: max(20px, env(safe-area-inset-bottom)); z-index: 30; transform: translate(-50%, 20px);
  max-width: min(92vw, 440px); padding: 12px 18px; border-radius: 14px; background: var(--ink); color: var(--bg);
  font-weight: 600; font-size: 15px; opacity: 0; pointer-events: none; transition: opacity .25s, transform .35s var(--ease);
}
.toast.is-on { opacity: 1; transform: translate(-50%, 0); }

/* ---------- mișcare ---------- */
@media (prefers-reduced-motion: no-preference) {
  .reveal { animation: rise .7s var(--ease) both; animation-delay: calc(var(--i, 0) * 90ms + 60ms); }
  .pc { animation: deal .9s var(--ease) both; }
  .pc--teal { animation-delay: .25s; --to: rotate(-9deg) translate(-2%, 6%); }
  .pc--yellow { animation-delay: .35s; --to: rotate(5deg) translate(8%, -2%); }
  .pc--front { animation-delay: .45s; --to: rotate(-2deg) translate(4%, 4%); }
  .leaf { animation: fade .8s ease both .9s; }
  .opt, .day { animation: pop .45s var(--ease) both; animation-delay: calc(var(--i, 0) * 35ms); }
  .taken-stamp { animation: thud .35s var(--ease) both; }
  .ticket { animation: print .6s var(--ease) both; }
}
@keyframes rise { from { opacity: 0; transform: translateY(16px); } }
@keyframes deal { from { opacity: 0; transform: rotate(0) translate(4%, 14%); } to { opacity: 1; transform: var(--to); } }
@keyframes fade { from { opacity: 0; } }
@keyframes pop { from { opacity: 0; transform: translateY(6px); } }
@keyframes thud { from { opacity: 0; transform: rotate(-7deg) scale(1.5); } }
@keyframes print { from { opacity: 0; transform: translateY(-14px) scale(.98); } }
@media (prefers-reduced-motion: reduce) {
  .sk { animation: none; }
  *, *::before, *::after { transition-duration: .01ms !important; }
}

/* ---------- organizatori (/admin) ---------- */
/* Fiecare zi are culoarea ei din paletă (teal, galben, portocaliu, crem), pe rând.
   Culorile dalelor și ale benzilor sunt fixe, ca obiectele de pe pagina studenților. */
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.print-only { display: none; }
.admin { padding-top: 28px; padding-bottom: 56px; }
.admin__title { margin: 0; font: 800 clamp(30px, 5vw, 42px)/1.05 var(--display); letter-spacing: -.035em; }
.admin__sub { margin: 8px 0 0; color: var(--ink-2); font-size: 16px; }
.login { max-width: 400px; display: grid; gap: 16px; padding-top: 12px; }
.admin__head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 16px 24px; }
.admin__actions { display: flex; gap: 10px; flex-wrap: wrap; }
.admin__actions .btn--primary { width: auto; }
.admin__actions .btn i { font-size: 19px; }

.tiles { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); gap: 10px; margin: 26px 0 22px; }
.tile { display: grid; gap: 2px; padding: 14px 16px; border-radius: 16px; color: #2A1B10; text-decoration: none; transition: transform .2s var(--ease); }
.tile:hover { transform: translateY(-2px); }
.tile:active { transform: scale(.98); }
.tile__wd { font-size: 12.5px; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; opacity: .8; }
.tile__num { font: 800 clamp(26px, 4vw, 34px)/1 var(--display); letter-spacing: -.03em; }
.tile__count { font-size: 14px; font-weight: 700; }
.tile--teal, .aday--teal .aday__head { background: #65BCB5; }
.tile--yellow, .aday--yellow .aday__head { background: #EDC45A; }
.tile--orange, .aday--orange .aday__head { background: #ED802A; }
.tile--cream, .aday--cream .aday__head { background: #E9CEAF; }
@media (max-width: 520px) { .tiles { gap: 6px; } .tile { padding: 10px 10px; border-radius: 14px; } .tile__count { font-size: 12.5px; } }

.admin__tools { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; margin-bottom: 22px; }
.search { flex: 1 1 260px; max-width: 440px; display: flex; align-items: center; gap: 10px; height: 46px; padding: 0 14px; border-radius: 12px; border: 1.5px solid var(--line); background: var(--surface); color: var(--ink-2); }
.search:focus-within { outline: 2px solid var(--orange); outline-offset: 2px; border-color: var(--orange); }
.search input { flex: 1; min-width: 0; border: 0; background: transparent; outline: none; font-size: 16px; color: var(--ink); }
.search input::placeholder { color: var(--ink-3); }
.toggle { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; font-size: 15px; cursor: pointer; }
.toggle input { width: 18px; height: 18px; accent-color: var(--orange); }

.aday { margin-bottom: 22px; border-radius: 18px; overflow: hidden; background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow); scroll-margin-top: 80px; }
.aday__head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; padding: 14px 18px; color: #2A1B10; }
.aday__head h2 { margin: 0; font: 800 21px/1.15 var(--display); letter-spacing: -.02em; }
.aday__head span { font-weight: 700; font-size: 14.5px; white-space: nowrap; }
.aday .aempty { padding: 16px 18px; }
.aempty { margin: 0; color: var(--ink-3); font-size: 15px; }

.atable { width: 100%; border-collapse: collapse; table-layout: fixed; }
.atable th:nth-child(1) { width: 30%; } .atable th:nth-child(2) { width: 27%; } .atable th:nth-child(3) { width: 25%; } .atable th:nth-child(4) { width: 18%; } .atable th:nth-child(5) { width: 56px; }
.atable th { text-align: left; padding: 12px 18px 8px; font-size: 12.5px; font-weight: 700; color: var(--ink-3); text-transform: uppercase; letter-spacing: .07em; }
.atable td { padding: 12px 18px; border-top: 1px solid var(--line); vertical-align: middle; font-size: 15.5px; }
.atable td small { display: block; color: var(--ink-2); font-size: 13.5px; }
.c-prof { font-weight: 700; }
.c-prof__in { display: flex; align-items: center; gap: 12px; }
.c-prof .mono { width: 36px; height: 36px; font-size: 13px; }
.c-time { white-space: nowrap; }
.c-act { text-align: right; }
.is-free td { color: var(--ink-3); }
.is-free .mono { opacity: .5; }
.free-tag { display: inline-block; padding: 3px 10px; border-radius: 999px; border: 1.5px dashed var(--line); font-size: 13px; font-weight: 700; color: var(--teal-ink); }
.iconbtn { width: 38px; height: 38px; border-radius: 999px; border: 0; background: transparent; color: var(--ink-3); font-size: 19px; display: grid; place-items: center; cursor: pointer; transition: background-color .2s, color .2s; }
.iconbtn:hover { background: color-mix(in srgb, var(--danger) 12%, transparent); color: var(--danger); }
.iconbtn:focus-visible { outline: 2px solid var(--orange); outline-offset: 2px; }

/* pe telefon, fiecare rând devine o fișă: profesorul sus, dedesubt studentul, cafeneaua, ora */
@media screen and (max-width: 700px) {
  .atable thead { display: none; }
  .atable, .atable tbody { display: block; }
  .atable tr { display: grid; grid-template-columns: 1fr auto; column-gap: 8px; padding: 12px 16px; border-top: 1px solid var(--line); }
  .atable td { display: block; padding: 0; border: 0; }
  .atable .c-prof { grid-column: 1; margin-bottom: 6px; }
  .atable .c-student, .atable .c-cafe, .atable .c-time { grid-column: 1; padding-left: 48px; font-size: 15px; }
  .atable .c-act { grid-column: 2; grid-row: 1 / span 4; align-self: center; }
  .atable .is-free .c-cafe, .atable .is-free .c-time { display: none; }
}

/* ---------- PDF (tipărire) ----------
   „Descarcă PDF” deschide tipărirea; culorile paletei rămân (print-color-adjust), tema e mereu deschisă. */
@media print {
  :root {
    --bg: #FFFFFF; --surface: #FFFFFF; --cream: #E9CEAF; --line: #E6D2B8;
    --ink: #2A1B10; --ink-2: #634A37; --ink-3: #8A715C; --teal-ink: #23625D; --shadow: none;
    color-scheme: light;
  }
  @page { size: A4; margin: 14mm 12mm; }
  * { -webkit-print-color-adjust: exact; print-color-adjust: exact; animation: none !important; transition: none !important; }
  body { background: #fff; font-size: 12pt; }
  .no-print, .topbar, .toast, .login, #noMatch { display: none !important; }
  .print-only { display: block; }
  .shell { max-width: none; padding: 0; }
  .admin { padding: 0; }
  .print-brand { margin: 0 0 4px; font: 800 13pt/1 var(--display); color: #C25E12; }
  .admin__title { font-size: 24pt; }
  #summary[data-printed]::after { content: " " attr(data-printed) "."; }
  .tiles { margin: 14px 0 16px; }
  .tile { padding: 10px 12px; border-radius: 12px; }
  .tile__num { font-size: 20pt; }
  .aday { break-inside: avoid; margin-bottom: 14px; border-radius: 12px; }
  .aday__head { padding: 9px 14px; }
  .aday__head h2 { font-size: 14pt; }
  .atable th { padding: 8px 14px 4px; font-size: 8pt; }
  .atable th:nth-child(1) { width: 30%; } .atable th:nth-child(2) { width: 28%; } .atable th:nth-child(3) { width: 26%; } .atable th:nth-child(4) { width: 16%; }
  .atable td { padding: 7px 14px; font-size: 10.5pt; }
  .atable td small { font-size: 9pt; }
  .c-prof .mono { width: 26px; height: 26px; font-size: 9pt; }
}
