/*
 * Dashboard personal, în stilul Liquid Glass din macOS 26, pe un fundal neutru, curat (fără wallpaper):
 * carduri de sticlă cu reflexii pe margini, colțuri mari și concentrice, butoane-capsulă care plutesc.
 * Tema urmează sistemul (deschisă sau închisă); butonul din antet o poate fixa.
 */
@font-face { font-family: Inter; font-style: normal; font-weight: 400; font-display: swap; src: url(/fonts/inter-400-latin.woff2) format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: Inter; font-style: normal; font-weight: 400; font-display: swap; src: url(/fonts/inter-400-latin-ext.woff2) format('woff2'); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: Inter; font-style: normal; font-weight: 500; font-display: swap; src: url(/fonts/inter-500-latin.woff2) format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: Inter; font-style: normal; font-weight: 500; font-display: swap; src: url(/fonts/inter-500-latin-ext.woff2) format('woff2'); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: Inter; font-style: normal; font-weight: 600; font-display: swap; src: url(/fonts/inter-600-latin.woff2) format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: Inter; font-style: normal; font-weight: 600; font-display: swap; src: url(/fonts/inter-600-latin-ext.woff2) format('woff2'); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: Inter; font-style: normal; font-weight: 700; font-display: swap; src: url(/fonts/inter-700-latin.woff2) format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: Inter; font-style: normal; font-weight: 700; font-display: swap; src: url(/fonts/inter-700-latin-ext.woff2) format('woff2'); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }

/* ---------- Culori și materiale ---------- */
:root {
  color-scheme: light;
  /* fundal neutru */
  --bg-top: #f9f9fb;
  --bg: #ececf1;
  /* sticla */
  --glass: linear-gradient(140deg, rgba(255, 255, 255, 0.86), rgba(255, 255, 255, 0.66));
  --glass-strong: linear-gradient(140deg, rgba(255, 255, 255, 0.98), rgba(250, 250, 252, 0.95));
  --glass-blur: 30px;
  --rim-top: rgba(255, 255, 255, 0.95);
  --rim: rgba(255, 255, 255, 0.5);
  --rim-a: 1;
  --rim-b: 0.55;
  --spec: 0.55;
  --glass-shadow: 0 14px 40px rgba(0, 0, 0, 0.07), 0 2px 6px rgba(0, 0, 0, 0.04);
  --block-base: #ffffff;
  --surface-solid: #fbfbfd;
  /* text și umpluturi */
  --ink: #1d1d1f;
  --ink-2: #48484f;
  --ink-3: #6e6e78;
  --hero-ink: #1d1d1f;
  --hero-shadow: none;
  --hairline: rgba(60, 60, 67, 0.13);
  --fill: rgba(120, 120, 128, 0.14);
  --fill-2: rgba(120, 120, 128, 0.24);
  --thumb: rgba(255, 255, 255, 0.96);
  --thumb-shadow: 0 3px 10px rgba(0, 0, 0, 0.12), 0 1px 2px rgba(0, 0, 0, 0.06);
  --accent: #007aff;
  --accent-2: #3a99ff;
  --accent-soft: rgba(0, 122, 255, 0.13);
  --red: #e5463d;
  --red-soft: rgba(229, 70, 61, 0.13);
  --green: #1f9d48;
  --green-soft: rgba(31, 157, 72, 0.14);
  --orange: #f08a00;
  --warn: #9a4b00;
  --warn-soft: rgba(255, 159, 10, 0.16);
  --now: #ff3b30;
  /* colțuri concentrice */
  --r-xl: 34px;
  --r-lg: 30px;
  --r-md: 20px;
  --r-sm: 14px;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    color-scheme: dark;
    --bg-top: #0c0c0f;
    --bg: #000000;
    --glass: linear-gradient(140deg, rgba(52, 52, 60, 0.72), rgba(30, 30, 36, 0.62));
    --glass-strong: linear-gradient(140deg, rgba(50, 50, 58, 0.98), rgba(30, 30, 36, 0.97));
    --rim-top: rgba(255, 255, 255, 0.28);
    --rim: rgba(255, 255, 255, 0.1);
    --rim-a: 0.5;
    --rim-b: 0.2;
    --spec: 0.12;
    --glass-shadow: 0 18px 48px rgba(0, 0, 0, 0.5), 0 2px 8px rgba(0, 0, 0, 0.3);
    --block-base: #1c1c22;
  --surface-solid: #222228;
    --surface-solid: #222228;
    --ink: #f5f5f7;
    --ink-2: #c9c9d0;
    --ink-3: #9a9aa3;
    --hero-ink: #f5f5f7;
    --hero-shadow: none;
    --hairline: rgba(255, 255, 255, 0.11);
    --fill: rgba(118, 118, 128, 0.26);
    --fill-2: rgba(118, 118, 128, 0.38);
    --thumb: rgba(255, 255, 255, 0.2);
    --thumb-shadow: 0 3px 10px rgba(0, 0, 0, 0.35);
    --accent: #0a84ff;
    --accent-2: #409cff;
    --accent-soft: rgba(10, 132, 255, 0.22);
    --red: #ff6961;
    --red-soft: rgba(255, 105, 97, 0.18);
    --green: #30d158;
    --green-soft: rgba(48, 209, 88, 0.16);
    --orange: #ff9f0a;
    --warn: #ffb340;
    --warn-soft: rgba(255, 159, 10, 0.16);
    --now: #ff453a;
  }
}
:root[data-theme="dark"] {
  color-scheme: dark;
  --bg-top: #0c0c0f;
  --bg: #000000;
  --glass: linear-gradient(140deg, rgba(52, 52, 60, 0.72), rgba(30, 30, 36, 0.62));
  --glass-strong: linear-gradient(140deg, rgba(50, 50, 58, 0.98), rgba(30, 30, 36, 0.97));
  --rim-top: rgba(255, 255, 255, 0.28);
  --rim: rgba(255, 255, 255, 0.1);
  --rim-a: 0.5;
  --rim-b: 0.2;
  --spec: 0.12;
  --glass-shadow: 0 18px 48px rgba(0, 0, 0, 0.5), 0 2px 8px rgba(0, 0, 0, 0.3);
  --block-base: #1c1c22;
  --ink: #f5f5f7;
  --ink-2: #c9c9d0;
  --ink-3: #9a9aa3;
  --hero-ink: #f5f5f7;
  --hero-shadow: none;
  --hairline: rgba(255, 255, 255, 0.11);
  --fill: rgba(118, 118, 128, 0.26);
  --fill-2: rgba(118, 118, 128, 0.38);
  --thumb: rgba(255, 255, 255, 0.2);
  --thumb-shadow: 0 3px 10px rgba(0, 0, 0, 0.35);
  --accent: #0a84ff;
  --accent-2: #409cff;
  --accent-soft: rgba(10, 132, 255, 0.22);
  --red: #ff6961;
  --red-soft: rgba(255, 105, 97, 0.18);
  --green: #30d158;
  --green-soft: rgba(48, 209, 88, 0.16);
  --orange: #ff9f0a;
  --warn: #ffb340;
  --warn-soft: rgba(255, 159, 10, 0.16);
  --now: #ff453a;
}

/* ---------- Bază ---------- */
* { box-sizing: border-box; }
html, body { margin: 0; }
html { -webkit-text-size-adjust: 100%; padding-left: env(safe-area-inset-left); padding-right: env(safe-area-inset-right); }
body {
  color: var(--ink);
  background: linear-gradient(180deg, var(--bg-top) 0%, var(--bg) 70%) fixed;
  background-color: var(--bg);
  font-family: -apple-system, BlinkMacSystemFont, 'SF Pro Text', 'SF Pro Display', Inter, 'Helvetica Neue', Helvetica, Arial, sans-serif;
  font-size: 15px;
  line-height: 1.47;
  letter-spacing: -0.01em;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  min-height: 100vh;
  overflow-x: hidden;
  overscroll-behavior-y: none;
  padding-bottom: env(safe-area-inset-bottom);
}
button, input, select, textarea { font: inherit; color: inherit; letter-spacing: inherit; }
button { cursor: pointer; -webkit-tap-highlight-color: transparent; touch-action: manipulation; }
a { color: inherit; }
svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; flex: none; }
::selection { background: color-mix(in srgb, var(--accent) 30%, transparent); }
.tabular { font-variant-numeric: tabular-nums; font-feature-settings: 'tnum' 1; }
.display { font-weight: 600; letter-spacing: -0.035em; line-height: 1.02; }
.headline { font-weight: 600; letter-spacing: -0.022em; line-height: 1.14; }
.muted { color: var(--ink-3); }
.empty { color: var(--ink-3); font-size: 14px; padding: 12px 2px; line-height: 1.5; list-style: none; }
.loading { color: var(--hero-ink); text-shadow: var(--hero-shadow); padding: 140px 0; text-align: center; font-size: 17px; }

/* ---------- Sticla (Liquid Glass) ---------- */
.sheet, .tb-inner, .pop, .dialog, .menu, .toast, .hero-line {
  position: relative;
  isolation: isolate;
  background: var(--glass);
  -webkit-backdrop-filter: blur(var(--glass-blur)) saturate(190%);
  backdrop-filter: blur(var(--glass-blur)) saturate(190%);
  box-shadow: inset 0 1px 0 var(--rim-top), inset 0 0 0 1px var(--rim), var(--glass-shadow);
}
/* luciul din colțul de sus și marginea care prinde lumina */
.sheet::before, .tb-inner::before, .pop::before, .dialog::before, .hero-line::before {
  content: ''; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; z-index: -1;
  background:
    radial-gradient(130% 70% at 0% 0%, rgba(255, 255, 255, var(--spec)), transparent 46%),
    radial-gradient(90% 50% at 100% 100%, rgba(255, 255, 255, calc(var(--spec) * 0.35)), transparent 55%);
}
.sheet::after, .tb-inner::after, .pop::after, .dialog::after, .hero-line::after {
  content: ''; position: absolute; inset: 0; border-radius: inherit; padding: 1px; pointer-events: none;
  background: linear-gradient(150deg, rgba(255, 255, 255, var(--rim-a)) 0%, rgba(255, 255, 255, 0) 34%, rgba(255, 255, 255, 0) 64%, rgba(255, 255, 255, var(--rim-b)) 100%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
}
@media (prefers-reduced-transparency: reduce) {
  .sheet, .tb-inner, .pop, .dialog, .menu, .toast, .hero-line { background: var(--glass-strong); }
}
@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  .sheet, .tb-inner, .pop, .dialog, .menu, .toast, .hero-line { background: var(--glass-strong); }
}

/* ---------- Bara de sus, care plutește ---------- */
.top-bar { position: sticky; top: 0; z-index: 40; padding: 14px 24px 0; pointer-events: none; padding-top: calc(14px + env(safe-area-inset-top)); }
.tb-inner {
  pointer-events: auto; max-width: 1240px; margin: 0 auto; height: 60px; border-radius: 999px;
  padding: 0 10px 0 20px; display: flex; align-items: center; gap: 16px;
}
.tb-title { display: inline-flex; align-items: center; gap: 10px; font-size: 16px; font-weight: 600; letter-spacing: -0.015em; text-decoration: none; white-space: nowrap; }
.tb-title img { border-radius: 7px; box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15); }
.tb-nav { margin: 0 auto; }
.tb-right { display: flex; align-items: center; gap: 8px; }
.tb-meta { font-size: 12px; color: var(--ink-3); white-space: nowrap; margin-right: 4px; }
.round {
  width: 40px; height: 40px; border-radius: 999px; display: grid; place-items: center; padding: 0; border: 0;
  background: var(--fill); color: var(--ink-2); box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.35);
  transition: background .2s, transform .2s;
}
.round:hover { background: var(--fill-2); color: var(--ink); }
.round:active { transform: scale(0.94); }
.round svg { width: 18px; height: 18px; }
.round.on { background: var(--accent); color: #fff; box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.45), 0 4px 14px rgba(0, 122, 255, 0.35); }

/* Comutator segmentat: șină translucidă, „lentila” albă pe varianta aleasă */
.seg { display: inline-flex; align-items: center; gap: 2px; padding: 4px; border-radius: 999px; background: var(--fill); }
.seg a, .seg button {
  min-height: 36px; padding: 0 18px; border-radius: 999px; border: 0; background: transparent;
  color: var(--ink-2); font-size: 14px; font-weight: 500; text-decoration: none; display: inline-flex; align-items: center; gap: 7px; white-space: nowrap;
  transition: background .25s, color .25s, box-shadow .25s;
}
.seg a:hover, .seg button:hover { color: var(--ink); }
.seg a.on, .seg button.on { background: var(--thumb); color: var(--ink); font-weight: 600; box-shadow: var(--thumb-shadow), inset 0 1px 0 rgba(255, 255, 255, 0.6); }
.seg .n { font-size: 12px; color: var(--ink-3); font-variant-numeric: tabular-nums; font-weight: 500; }

/* Butoane-capsulă */
.pill-btn {
  display: inline-flex; align-items: center; gap: 7px; min-height: 38px; padding: 0 16px; border-radius: 999px; border: 0;
  background: var(--fill); color: var(--ink); font-size: 14px; font-weight: 500; white-space: nowrap; text-decoration: none;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.3); transition: background .2s, transform .15s, filter .2s;
}
.pill-btn:hover { background: var(--fill-2); }
.pill-btn:active { transform: scale(0.97); }
.pill-btn svg { width: 16px; height: 16px; }
.pill-btn.on { background: var(--accent-soft); color: var(--accent); }
.pill-btn.primary {
  background: linear-gradient(180deg, var(--accent-2), var(--accent)); color: #fff;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.45), 0 6px 18px rgba(0, 122, 255, 0.32);
}
.pill-btn.primary:hover { filter: brightness(1.07); }
.pill-btn.small { min-height: 32px; padding: 0 13px; font-size: 13px; }
.link { background: none; border: 0; padding: 0; color: var(--accent); font-weight: 500; font-size: inherit; text-decoration: none; }
.link:hover { text-decoration: underline; }
.icon-btn {
  width: 34px; height: 34px; border-radius: 999px; display: inline-grid; place-items: center; border: 0;
  background: var(--fill); color: var(--ink-2); text-decoration: none; box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.3);
}
.icon-btn:hover { background: var(--fill-2); color: var(--ink); }
.icon-btn svg { width: 16px; height: 16px; }

main { max-width: 1240px; margin: 0 auto; padding: 0 24px 80px; }

/* ---------- Acasă: citatul mare, în locul ceasului ---------- */
.hero { text-align: center; padding: 58px 0 44px; color: var(--hero-ink); }
.hero-kicker { font-size: 17px; font-weight: 500; margin: 0; color: var(--ink-3); }
.hero-quote { margin: 20px auto 0; max-width: 1020px; animation: quoteIn 0.6s ease both; }
.hero-quote .q {
  margin: 0; font-size: clamp(2.3rem, 5.2vw, 4.2rem); font-weight: 700; letter-spacing: -0.04em; line-height: 1.06; text-wrap: balance;
  background: linear-gradient(180deg, var(--ink) 35%, color-mix(in srgb, var(--ink) 58%, transparent) 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hero-quote .q.l { font-size: clamp(2rem, 4.3vw, 3.4rem); }
.hero-quote .q.xl { font-size: clamp(1.75rem, 3.4vw, 2.7rem); line-height: 1.12; }
.hero-quote .o { margin: 18px auto 0; max-width: 780px; font-size: 17px; font-style: italic; color: var(--ink-3); text-wrap: balance; }
.hero-quote .a { margin: 14px 0 0; display: inline-flex; align-items: center; gap: 8px; font-size: 15px; font-weight: 600; color: var(--ink-2); }
.hero-quote .a span { font-weight: 400; color: var(--ink-3); }
.hero-quote .a .icon-btn { margin-left: 6px; }
@keyframes quoteIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
.hero-line {
  margin: 22px auto 0; display: inline-flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 6px 12px;
  padding: 11px 22px; border-radius: 999px; font-size: 15px; color: var(--ink); font-weight: 500;
}
.hero-line:empty { display: none; }
.hero-line span { white-space: nowrap; }
.hero-line .sep { color: var(--ink-3); }
.hero-line a { color: var(--accent); text-decoration: none; }
.hero-line a:hover { text-decoration: underline; }

/* ---------- Cardurile ---------- */
.sheet { border-radius: var(--r-lg); padding: 26px; min-width: 0; }
.sheet-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 16px; min-height: 34px; }
.sheet-head h2 { margin: 0; font-size: 22px; }
.sheet-head .meta { color: var(--ink-3); font-size: 13px; font-weight: 500; }
.grid-a { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr) minmax(0, 1.25fr); gap: 22px; margin-bottom: 22px; align-items: stretch; }
.grid-b { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.5fr); gap: 22px; align-items: stretch; }

/* Câmpuri de scris */
.field-input, .add-input {
  width: 100%; border: 0; border-radius: var(--r-md); background: var(--fill); outline: none; padding: 13px 16px;
  transition: box-shadow .2s, background .2s;
}
.field-input::placeholder, .add-input::placeholder { color: var(--ink-3); }
.field-input:focus, .add-input:focus { background: var(--thumb); box-shadow: 0 0 0 1.5px var(--accent), 0 0 0 5px var(--accent-soft); }

/* Priorități: bifă rotundă; la bifare cercul se umple cu verde, bifa se desenează, textul se taie */
.head-actions { display: flex; align-items: center; gap: 8px; }
.sheet-head .meta.all { color: var(--green); font-weight: 600; }
.prio-progress { height: 6px; border-radius: 999px; background: var(--fill); overflow: hidden; margin: -4px 0 16px; }
.prio-progress i { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, #5fd17a, var(--green)); transition: width 0.6s cubic-bezier(0.2, 0.8, 0.2, 1); }
.prio-list { display: flex; flex-direction: column; gap: 8px; }
.prio { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: var(--r-md); background: var(--fill); transition: background 0.3s; }
.chk-p {
  width: 26px; height: 26px; flex: none; border-radius: 50%; padding: 0; display: grid; place-items: center; color: #fff;
  border: 2px solid color-mix(in srgb, var(--ink-3) 75%, transparent); background: transparent;
  transition: background 0.25s, border-color 0.25s, box-shadow 0.25s;
}
.chk-p:hover { border-color: var(--green); box-shadow: 0 0 0 4px var(--green-soft); }
.chk-p svg { width: 14px; height: 14px; stroke-width: 3.2; }
.chk-p svg path { stroke-dasharray: 22; stroke-dashoffset: 22; transition: stroke-dashoffset 0.35s 0.08s ease; }
.prio.done .chk-p { background: var(--green); border-color: var(--green); box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.4); }
.prio.done .chk-p svg path { stroke-dashoffset: 0; }
.prio.just-done .chk-p { animation: chkPop 0.45s cubic-bezier(0.2, 1.6, 0.4, 1); }
@keyframes chkPop { 0% { transform: scale(0.7); } 60% { transform: scale(1.18); } 100% { transform: scale(1); } }
.prio .txt {
  flex: 1; min-width: 0; outline: none; word-break: break-word; line-height: 1.4; font-weight: 500;
  text-decoration: line-through; text-decoration-color: transparent; text-decoration-thickness: 2px;
  transition: text-decoration-color 0.35s, color 0.35s;
}
.prio.done { background: color-mix(in srgb, var(--fill) 45%, transparent); }
.prio.done .txt { color: var(--ink-3); text-decoration-color: currentColor; font-weight: 400; }
.prio-done-label { margin: 8px 4px 0; font-size: 12px; font-weight: 700; color: var(--green); text-transform: uppercase; letter-spacing: 0.05em; }
.prio .x { opacity: 0; }
.prio:hover .x { opacity: 1; }
.prio-list .add-input { margin-top: 4px; }

/* Istoricul pe zile */
.hist { display: flex; flex-direction: column; gap: 12px; margin-bottom: 10px; }
.hist p { margin: 0; }
.hist-day { padding: 14px 16px; border-radius: var(--r-md); background: var(--fill); }
.hist-day.perfect { box-shadow: inset 0 0 0 1.5px color-mix(in srgb, var(--green) 55%, transparent); }
.hist-h { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; margin-bottom: 8px; }
.hist-h b { font-size: 15px; font-weight: 600; }
.hist-h span { font-size: 12.5px; color: var(--ink-3); font-weight: 500; text-align: right; }
.hist ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 7px; }
.hist li { display: flex; align-items: flex-start; gap: 10px; font-size: 14px; line-height: 1.4; }
.hist li i { width: 18px; height: 18px; flex: none; border-radius: 50%; display: grid; place-items: center; margin-top: 1px; font-style: normal; font-size: 11px; color: #fff; }
.hist li i svg { width: 11px; height: 11px; stroke-width: 3.4; }
.hist li.ok i { background: var(--green); }
.hist li.ok span { color: var(--ink-2); text-decoration: line-through; text-decoration-color: color-mix(in srgb, currentColor 55%, transparent); }
.hist li.miss i { border: 1.6px solid var(--ink-3); }
.hist li.moved i { background: var(--fill-2); color: var(--ink-2); }
.hist li em { margin-left: auto; padding-left: 8px; font-style: normal; font-size: 12px; color: var(--ink-3); white-space: nowrap; }
.carry { margin-top: 12px; font-size: 13px; color: var(--ink-3); }
.x { width: 28px; height: 28px; border-radius: 999px; background: none; border: 0; color: var(--ink-3); display: grid; place-items: center; padding: 0; flex: none; }
.x:hover { color: var(--red); background: var(--red-soft); }
.x svg { width: 14px; height: 14px; }

/* Programul zilei */
.sched { display: flex; flex-direction: column; gap: 8px; max-height: 372px; overflow-y: auto; margin: 0 -6px; padding: 0 6px; }
.allday { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 10px; }
.allday span { font-size: 12.5px; padding: 5px 12px; border-radius: 999px; background: var(--fill); color: var(--ink-2); font-weight: 500; }
.ev { display: grid; grid-template-columns: 46px 4px minmax(0, 1fr) auto; gap: 12px; padding: 11px 12px; border-radius: var(--r-md); background: var(--fill); align-items: stretch; }
.ev.now { background: var(--accent-soft); box-shadow: inset 0 0 0 1.5px color-mix(in srgb, var(--accent) 45%, transparent); }
.ev-time { font-size: 14px; line-height: 1.4; font-variant-numeric: tabular-nums; font-weight: 600; }
.ev-time span { color: var(--ink-3); display: block; font-weight: 400; }
.ev-bar { border-radius: 4px; background: var(--c, var(--accent)); }
.ev-title { font-weight: 600; line-height: 1.35; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; letter-spacing: -0.015em; }
.ev-sub { font-size: 13px; color: var(--ink-3); margin-top: 2px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ev.past { opacity: 0.5; }
.join {
  align-self: center; display: inline-flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 600; padding: 7px 13px; border-radius: 999px;
  background: var(--join-bg, var(--thumb)); color: var(--join-ink, var(--accent)); text-decoration: none; box-shadow: var(--thumb-shadow);
}
:root[data-theme="dark"] .join { --join-bg: rgba(10, 132, 255, 0.24); --join-ink: #7cc0ff; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .join { --join-bg: rgba(10, 132, 255, 0.24); --join-ink: #7cc0ff; } }
.join:hover { background: var(--accent); color: #fff; }
.join svg { width: 14px; height: 14px; }
.pill { font-size: 12px; padding: 3px 9px; border-radius: 999px; background: var(--accent-soft); color: var(--accent); font-weight: 600; white-space: nowrap; letter-spacing: 0; }
.pill.live { background: linear-gradient(180deg, var(--accent-2), var(--accent)); color: #fff; }
.sync-line { margin-top: 14px; font-size: 13px; color: var(--ink-3); display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.sync-line .err { color: var(--red); }
.connect { display: flex; flex-direction: column; gap: 14px; align-items: flex-start; padding: 4px 0; color: var(--ink-2); line-height: 1.5; }

/* Calendarul lunii */
.mcal-head { display: flex; align-items: center; gap: 6px; }
.mcal-head .ml { font-weight: 600; font-size: 15px; min-width: 120px; text-align: center; }
.mcal { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 3px; text-align: center; }
.mcal .dow { font-size: 12px; color: var(--ink-3); font-weight: 600; padding-bottom: 6px; }
.mcal .day {
  position: relative; width: 100%; max-width: 40px; aspect-ratio: 1; margin: 0 auto; border-radius: 50%;
  background: none; border: 0; padding: 0; font-size: 15px; font-weight: 500; font-variant-numeric: tabular-nums; transition: background .15s;
}
.mcal .day:hover { background: var(--fill); }
.mcal .day.out { color: var(--ink-3); opacity: 0.55; font-weight: 400; }
.mcal .day.sel { background: var(--fill-2); }
.mcal .day.today { background: linear-gradient(180deg, var(--accent-2), var(--accent)); color: #fff; font-weight: 700; box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.45), 0 5px 14px rgba(0, 122, 255, 0.35); }
.mcal .day .dot { position: absolute; left: 50%; bottom: 4px; width: 4px; height: 4px; margin-left: -2px; border-radius: 50%; background: var(--accent); }
.mcal .day.today .dot { background: #fff; }
.mcal-foot { margin-top: 16px; padding: 12px 14px; border-radius: var(--r-md); background: var(--fill); font-size: 13px; color: var(--ink-2); display: flex; justify-content: space-between; gap: 8px; font-weight: 500; }

/* Sarcini (ca în Reminders) */
.tasks-tabs { margin-bottom: 10px; display: flex; width: 100%; }
.tasks-tabs button { flex: 1 1 auto; min-width: 0; padding: 0 8px; gap: 5px; justify-content: center; font-size: 13px; }
.tasks { list-style: none; margin: 0; padding: 0; max-height: 372px; overflow-y: auto; }
.task { display: grid; grid-template-columns: 24px minmax(0, 1fr) 28px 28px; gap: 10px; align-items: start; padding: 11px 8px; border-bottom: 1px solid var(--hairline); transition: background .15s; }
.task.open { background: var(--fill); border-radius: 14px; border-bottom-color: transparent; }
@media (hover: hover) { .task:hover { background: var(--fill); border-radius: 14px; border-bottom-color: transparent; } }
.task .chk { margin-top: 1px; }
.task .star { height: 24px; }
.task .x { margin-top: -2px; }
.task:last-child { border-bottom: 0; }
.chk { width: 22px; height: 22px; border-radius: 50%; border: 1.6px solid var(--ink-3); background: none; display: grid; place-items: center; padding: 0; color: transparent; transition: background .15s, border-color .15s; }
.chk:hover { border-color: var(--accent); }
.chk svg { width: 12px; height: 12px; stroke-width: 3; }
.task.done .chk { background: linear-gradient(180deg, var(--accent-2), var(--accent)); border-color: transparent; color: #fff; }
.task .tt { outline: none; line-height: 1.4; word-break: break-word; cursor: text; font-weight: 500; }
.task.done .tt { color: var(--ink-3); text-decoration: line-through; font-weight: 400; }
/* Rândul unei sarcini: titlul, iar dedesubt termenul, proiectul, subsarcinile și semnul că are detalii */
.task-main { display: flex; flex-direction: column; align-items: flex-start; gap: 3px; min-width: 0; cursor: pointer; border-radius: 10px; outline: none; }
.task-main .tt { cursor: pointer; align-self: stretch; }
.task-main:focus-visible { box-shadow: 0 0 0 2px var(--accent); }
.tmeta { display: flex; align-items: center; gap: 10px; min-width: 0; max-width: 100%; align-self: stretch; font-size: 12.5px; color: var(--ink-3); }
.tmeta > * { flex: none; }
.tmeta .due { font-size: 12.5px; padding: 2px 8px; margin-left: -8px; margin-right: -4px; }
.tm { display: inline-flex; align-items: center; gap: 4px; min-width: 0; font-weight: 500; font-variant-numeric: tabular-nums; }
.tm svg { width: 14px; height: 14px; }
.tmeta > .tm.client { flex: 0 1 auto; overflow: hidden; color: var(--ink-2); }
.tm.client .s { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tm.client i { width: 8px; height: 8px; border-radius: 50%; flex: none; }
.tm.all { color: var(--green); }
.due { font-size: 13px; color: var(--ink-3); background: none; border: 0; padding: 4px 10px; border-radius: 999px; white-space: nowrap; position: relative; font-weight: 500; }
.due:hover { background: var(--fill); color: var(--ink-2); }
.due.late { color: var(--red); background: var(--red-soft); }
.due.today { color: var(--accent); background: var(--accent-soft); }
.due input { position: absolute; inset: 0; opacity: 0; pointer-events: none; width: 100%; }
.star { background: none; border: 0; padding: 0; color: var(--ink-3); display: grid; place-items: center; }
.star svg { width: 18px; height: 18px; }
.star.on { color: var(--orange); }
.star.on svg { fill: currentColor; }
.task .x { opacity: 0; }
.task:hover .x { opacity: 1; }
.task-add { display: flex; gap: 8px; margin-top: 14px; align-items: center; }
.task-add .add-input { flex: 1; }
.due-chip { position: relative; flex: none; display: inline-flex; align-items: center; min-height: 46px; padding: 0 16px; border-radius: var(--r-md); background: var(--fill); color: var(--ink-2); font-size: 13px; font-weight: 600; white-space: nowrap; }
.due-chip input { position: absolute; inset: 0; opacity: 0; width: 100%; cursor: pointer; }

/* Notițe */
.note-input { resize: none; min-height: 52px; max-height: 160px; display: block; }
.notes { list-style: none; margin: 12px 0 0; padding: 0; max-height: 352px; overflow-y: auto; display: flex; flex-direction: column; gap: 8px; }
.note { display: flex; gap: 10px; align-items: flex-start; padding: 12px 14px; border-radius: var(--r-md); background: var(--fill); }
.note .b { width: 7px; height: 7px; border-radius: 50%; background: var(--orange); margin-top: 7px; flex: none; }
.note .t { flex: 1; min-width: 0; white-space: pre-wrap; word-break: break-word; line-height: 1.5; outline: none; cursor: text; }
.note .x { opacity: 0; margin: -3px -4px 0 0; }
.note:hover .x { opacity: 1; }
.notes .empty { background: none; }

/* ---------- Board ---------- */
.page-top { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; padding: 38px 4px 24px; color: var(--hero-ink); }
.page-top h1 { margin: 0 6px 0 0; font-size: clamp(2.2rem, 4vw, 3rem); font-weight: 700; letter-spacing: -0.035em; text-shadow: var(--hero-shadow); }
.page-top .range { text-shadow: var(--hero-shadow); }
.page-top .spacer { flex: 1; }
.page-top .icon-btn, .page-top .pill-btn:not(.primary):not(.on) { background: var(--glass); -webkit-backdrop-filter: blur(20px) saturate(180%); backdrop-filter: blur(20px) saturate(180%); box-shadow: inset 0 1px 0 var(--rim-top), inset 0 0 0 1px var(--rim), var(--glass-shadow); color: var(--ink); }
.page-top .pill-btn.on { background: var(--thumb); color: var(--accent); box-shadow: var(--thumb-shadow); }
.wk-nav { display: inline-flex; align-items: center; gap: 6px; }
.range { font-weight: 600; font-size: 19px; letter-spacing: -0.02em; }

.stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 22px; margin-bottom: 22px; }
.stat { padding: 22px 26px; }
.stat .v { font-size: 40px; }
.stat .l { color: var(--ink-2); font-size: 14px; margin-top: 6px; font-weight: 500; }

.week { padding: 0; overflow: hidden; }
.week-head { display: grid; grid-template-columns: 58px repeat(7, minmax(0, 1fr)); border-bottom: 1px solid var(--hairline); }
.wh { text-align: center; padding: 16px 4px 14px; }
.wh .dn { font-size: 12px; font-weight: 700; color: var(--ink-3); text-transform: uppercase; letter-spacing: 0.05em; }
.wh .dd { display: inline-grid; place-items: center; min-width: 38px; height: 38px; margin-top: 4px; border-radius: 999px; font-size: 22px; font-weight: 600; font-variant-numeric: tabular-nums; letter-spacing: -0.02em; }
.wh.today .dn { color: var(--accent); }
.wh.today .dd { background: linear-gradient(180deg, var(--accent-2), var(--accent)); color: #fff; box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.45), 0 5px 14px rgba(0, 122, 255, 0.35); }
.wh .hrs { display: inline-block; margin-top: 8px; font-size: 12.5px; color: var(--ink-2); font-variant-numeric: tabular-nums; font-weight: 600; padding: 2px 10px; border-radius: 999px; background: var(--fill); }
.week-body { display: grid; grid-template-columns: 58px repeat(7, minmax(0, 1fr)); position: relative; max-height: calc(100vh - 320px); min-height: 460px; overflow-y: auto; }
.hours { position: relative; }
.hours .h { position: absolute; right: 10px; font-size: 11px; color: var(--ink-3); transform: translateY(-50%); font-variant-numeric: tabular-nums; font-weight: 500; }
.col { position: relative; border-left: 1px solid var(--hairline); }
.col.today { background: color-mix(in srgb, var(--accent) 5%, transparent); }
.hline { position: absolute; left: 0; right: 0; height: 0; border-top: 1px solid var(--hairline); }
.nowline { position: absolute; left: -1px; right: 0; height: 0; border-top: 2px solid var(--now); z-index: 4; }
.nowline::before { content: ''; position: absolute; left: -5px; top: -6px; width: 10px; height: 10px; border-radius: 50%; background: var(--now); box-shadow: 0 0 0 3px color-mix(in srgb, var(--now) 25%, transparent); }
/* Blocurile, ca evenimentele din Calendar: nuanța culorii, bară în stânga, text colorat */
.blk {
  position: absolute; z-index: 2; overflow: hidden; cursor: pointer;
  padding: 4px 7px 4px 10px; border-radius: 10px; font-size: 11.5px; line-height: 1.3;
  background: color-mix(in srgb, var(--c) 20%, var(--block-base));
  color: color-mix(in srgb, var(--c) 60%, var(--ink));
  box-shadow: inset 4px 0 0 var(--c), inset 0 1px 0 rgba(255, 255, 255, 0.35);
  transition: transform .15s, background .15s;
}
.blk:hover { background: color-mix(in srgb, var(--c) 30%, var(--block-base)); z-index: 3; transform: scale(1.015); }
.blk .bt { font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; padding-right: 12px; letter-spacing: -0.01em; }
.blk .bm { opacity: 0.85; font-size: 10.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-variant-numeric: tabular-nums; font-weight: 500; }
.blk .ic { position: absolute; right: 5px; top: 5px; width: 13px; height: 13px; display: grid; place-items: center; color: var(--c); }
.blk .ic svg { width: 12px; height: 12px; stroke-width: 3; }
.blk .ic.wip { display: none; }
.blk.tiny { padding-top: 1px; padding-bottom: 1px; border-radius: 7px; }
.blk.tiny .bm { display: none; }
.blk.narrow { padding-left: 7px; padding-right: 3px; font-size: 10.5px; }
.blk.narrow .bt { padding-right: 0; text-overflow: clip; }
.blk.narrow .ic { display: none; }
.blk.mini { padding: 0; border-radius: 4px; background: color-mix(in srgb, var(--c) 55%, var(--block-base)); box-shadow: none; }
.blk.mini > * { display: none; }
.blk.manual { background: repeating-linear-gradient(135deg, color-mix(in srgb, var(--c) 22%, var(--block-base)) 0 6px, color-mix(in srgb, var(--c) 10%, var(--block-base)) 6px 12px); }
.blk.event { background: color-mix(in srgb, var(--block-base) 72%, transparent); color: var(--ink-2); box-shadow: inset 0 0 0 1px var(--hairline), inset 4px 0 0 var(--ink-3); }
.blk.event:hover { background: var(--block-base); }
.week-foot { display: flex; gap: 18px; flex-wrap: wrap; padding: 14px 20px; border-top: 1px solid var(--hairline); font-size: 12.5px; color: var(--ink-3); font-weight: 500; }
.week-foot span { display: inline-flex; align-items: center; gap: 7px; }
.week-foot i { display: inline-block; width: 14px; height: 14px; border-radius: 4px; }
.week-foot svg { width: 13px; height: 13px; stroke-width: 3; }

/* ---------- Proiecte ---------- */
.proj-tools { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 22px; }
.search { position: relative; }
.search input {
  width: 280px; padding: 11px 14px 11px 38px; border-radius: 999px; border: 0; outline: none;
  background: var(--glass); -webkit-backdrop-filter: blur(20px) saturate(180%); backdrop-filter: blur(20px) saturate(180%);
  box-shadow: inset 0 1px 0 var(--rim-top), inset 0 0 0 1px var(--rim), var(--glass-shadow);
}
.search input::placeholder { color: var(--ink-3); }
.search input:focus { box-shadow: inset 0 0 0 1.5px var(--accent), 0 0 0 5px var(--accent-soft); }
.search svg { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); width: 16px; height: 16px; color: var(--ink-3); }
.chips { display: flex; gap: 7px; flex-wrap: wrap; flex: 1; }
.chip-f {
  min-height: 34px; padding: 0 14px; border-radius: 999px; font-size: 13px; font-weight: 600; border: 0; color: var(--ink);
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--glass); -webkit-backdrop-filter: blur(20px) saturate(180%); backdrop-filter: blur(20px) saturate(180%);
  box-shadow: inset 0 1px 0 var(--rim-top), inset 0 0 0 1px var(--rim);
}
.chip-f i { width: 8px; height: 8px; border-radius: 50%; display: inline-block; }
.chip-f.on { background: linear-gradient(180deg, var(--accent-2), var(--accent)); color: #fff; box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.45), 0 5px 14px rgba(0, 122, 255, 0.3); }
.chip-f.on i { box-shadow: 0 0 0 1.5px #fff; }
.group { margin-bottom: 22px; padding: 8px 10px 10px; overflow: hidden; }
.group-h { display: flex; align-items: center; gap: 10px; padding: 14px 14px 12px; cursor: pointer; user-select: none; }
.group-h .gt { font-weight: 700; font-size: 22px; letter-spacing: -0.025em; }
.group-h .gc { color: var(--ink-3); font-size: 14px; font-weight: 500; }
.group-h .gdot { width: 10px; height: 10px; border-radius: 50%; background: var(--ink-3); }
.g-in-lucru .gdot { background: var(--accent); }
.g-finalizat .gdot { background: var(--green); }
.g-oprit .gdot { background: var(--red); }
.group-h svg { width: 16px; height: 16px; color: var(--ink-3); transition: transform .2s; margin-left: auto; }
.group.closed .group-h svg { transform: rotate(-90deg); }
.group.closed .ptable { display: none; }
.ptable { width: 100%; border-collapse: separate; border-spacing: 0; table-layout: fixed; }
.ptable th { text-align: left; font-size: 12.5px; color: var(--ink-3); font-weight: 500; padding: 4px 14px 10px; white-space: nowrap; }
.ptable td { padding: 13px 14px; vertical-align: middle; font-size: 14px; border-top: 1px solid var(--hairline); }
.ptable tr:hover td { background: var(--fill); }
.ptable tr:hover td:first-child { border-top-left-radius: var(--r-sm); border-bottom-left-radius: var(--r-sm); }
.ptable tr:hover td:last-child { border-top-right-radius: var(--r-sm); border-bottom-right-radius: var(--r-sm); }
.ptable .pname { display: flex; align-items: center; gap: 10px; font-weight: 600; letter-spacing: -0.012em; }
.ptable .pname i { width: 10px; height: 10px; border-radius: 50%; flex: none; }
.ptable .pname span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ptable .pkind { font-size: 12px; color: var(--ink-3); margin-top: 2px; padding-left: 20px; }
.ptable .zone { color: var(--ink-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ptable .hrs { font-variant-numeric: tabular-nums; font-weight: 600; }
.ptable .last { color: var(--ink-2); white-space: nowrap; font-variant-numeric: tabular-nums; }
.ptable .next { color: var(--ink-2); }
.ptable .next .nt { display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; cursor: text; border-radius: 8px; padding: 3px 6px; margin: -3px -6px; }
.ptable .next .nt:hover { background: var(--fill); }
.ptable .next input { width: 100%; padding: 8px 12px; border-radius: 12px; border: 0; background: var(--thumb); box-shadow: 0 0 0 1.5px var(--accent), 0 0 0 5px var(--accent-soft); outline: none; }
.ptable .rowx { opacity: 0; }
.ptable tr:hover .rowx { opacity: 1; }
.status { display: inline-flex; align-items: center; gap: 7px; min-height: 30px; padding: 0 13px; border-radius: 999px; font-weight: 600; font-size: 12.5px; border: 0; white-space: nowrap; }
.status::before { content: ''; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.status.in-lucru { background: var(--accent-soft); color: var(--accent); }
.status.pauza { background: var(--fill); color: var(--ink-2); }
.status.finalizat { background: var(--green-soft); color: var(--green); }
.status.oprit { background: var(--red-soft); color: var(--red); }

/* ---------- Meniu, detalii, ferestre, mesaje ---------- */
.menu { position: fixed; z-index: 60; min-width: 190px; padding: 7px; border-radius: 20px; background: var(--glass-strong); }
.menu button { display: flex; width: 100%; align-items: center; gap: 10px; padding: 9px 12px; border-radius: 13px; background: none; border: 0; text-align: left; font-size: 14px; font-weight: 500; }
.menu button:hover { background: var(--accent); color: #fff; }
.menu i { width: 9px; height: 9px; border-radius: 50%; }
.pop { position: fixed; z-index: 50; width: 350px; max-width: calc(100vw - 24px); max-height: 70vh; overflow-y: auto; padding: 20px; border-radius: 26px; background: var(--glass-strong); }
.pop .pz { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--ink-2); font-weight: 600; }
.pop .pz i { width: 10px; height: 10px; border-radius: 50%; }
.pop h3 { margin: 8px 0 4px; font-size: 20px; font-weight: 700; letter-spacing: -0.025em; line-height: 1.25; }
.pop .pt { color: var(--ink-2); font-size: 14px; }
.pop h4 { margin: 16px 0 6px; font-size: 12px; color: var(--ink-3); font-weight: 700; text-transform: uppercase; letter-spacing: 0.05em; }
.pop ul { margin: 0; padding-left: 18px; color: var(--ink-2); font-size: 14px; line-height: 1.5; }
.pop .pfoot { margin-top: 18px; display: flex; justify-content: space-between; gap: 8px; }
.modal { position: fixed; inset: 0; z-index: 70; display: grid; place-items: center; background: rgba(0, 0, 0, 0.3); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); padding: 16px; }
.modal[hidden] { display: none; }
.dialog { width: 500px; max-width: 100%; max-height: calc(100vh - 32px); overflow-y: auto; padding: 30px; border-radius: var(--r-xl); background: var(--glass-strong); }
.dialog h3 { margin: 0 0 14px; font-size: 26px; font-weight: 700; letter-spacing: -0.03em; }
.dialog p { color: var(--ink-2); line-height: 1.55; margin: 0 0 12px; }
.dialog ol { color: var(--ink-2); line-height: 1.6; padding-left: 20px; margin: 0 0 18px; }
.dialog ol b { color: var(--ink); font-weight: 600; }
.dialog .note-warn { font-size: 13px; color: var(--warn); background: var(--warn-soft); border-radius: var(--r-md); padding: 12px 14px; margin-bottom: 18px; line-height: 1.5; }
.field { display: flex; flex-direction: column; gap: 7px; margin-bottom: 14px; }
.field label { font-size: 13px; color: var(--ink-2); font-weight: 600; padding-left: 4px; }
.field input, .field select, .field textarea { padding: 12px 16px; border-radius: var(--r-md); border: 0; background: var(--fill); outline: none; }
.field input:focus, .field select:focus, .field textarea:focus { background: var(--thumb); box-shadow: 0 0 0 1.5px var(--accent), 0 0 0 5px var(--accent-soft); }
.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.dialog .actions { display: flex; justify-content: flex-end; gap: 10px; margin-top: 10px; }
.toast { position: fixed; left: 50%; bottom: 30px; transform: translateX(-50%); z-index: 80; padding: 13px 22px; border-radius: 999px; background: var(--glass-strong); color: var(--ink); font-weight: 600; font-size: 14px; display: flex; gap: 14px; align-items: center; }
.toast button { background: none; border: 0; color: var(--accent); font-weight: 700; padding: 0; }
.toast[hidden] { display: none; }

/* Ferestrele și meniurile au fond plin sub sticlă, ca textul să se citească peste orice */
.dialog, .pop, .menu { background-color: var(--surface-solid); }

/* Mod discret: textele se estompează, cifrele rămân (pentru capturi de ecran) */
body.discret .s { filter: blur(5px); }
body.discret .s:hover { filter: none; }

/* ---------- Ecrane mai mici ---------- */
@media (max-width: 1100px) {
  .grid-a { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .grid-a .tasks-card { grid-column: span 2; }
  .mcal .day { max-width: 46px; }
  .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 900px) {
  .grid-b { grid-template-columns: minmax(0, 1fr); }
  .ptable .c-zone, .ptable .c-last { display: none; }
  .tb-meta { display: none; }
}
@media (max-width: 720px) {
  .top-bar { padding-left: 10px; padding-right: 10px; }
  .tb-inner { height: 56px; padding: 0 8px; gap: 8px; }
  .tb-title { display: none; }
  .tb-nav { margin: 0; }
  .seg a { padding: 0 13px; }
  .tb-right { margin-left: auto; }
  .round { width: 38px; height: 38px; }
  main { padding: 0 14px 60px; }
  .hero { padding: 34px 0 28px; }
  .hero-kicker { font-size: 18px; }
  .hero-date { font-size: 17px; }
  .hero-line { border-radius: 24px; padding: 10px 16px; }
  .grid-a { grid-template-columns: minmax(0, 1fr); gap: 16px; margin-bottom: 16px; }
  .grid-b { gap: 16px; }
  .grid-a .tasks-card { grid-column: auto; }
  .sheet { border-radius: 26px; padding: 20px; }
  .week { overflow-x: auto; }
  .week-head, .week-body { grid-template-columns: 40px repeat(7, minmax(86px, 1fr)); width: max-content; min-width: 100%; }
  .search { flex: 1; }
  .search input { width: 100%; }
  .stats { gap: 14px; }
  .stat .v { font-size: 30px; }
  .tasks-tabs button { padding: 0 5px; gap: 4px; font-size: 12.5px; }
  .task .x { opacity: 1; }
}

/* Fereastra „Remote access”: dispozitive conectate, încercări greșite, butoanele de siguranță */
.access-stats { display: flex; gap: 10px; margin: 2px 0 14px; }
.access-stats > div { flex: 1; min-width: 0; padding: 11px 14px; border-radius: var(--r-md); background: var(--fill); font-size: 13px; color: var(--ink-2); line-height: 1.35; }
.access-stats b { display: block; font-size: 22px; font-weight: 700; color: var(--ink); letter-spacing: -0.02em; margin-bottom: 2px; }
.access-btns { display: flex; gap: 8px; flex-wrap: wrap; margin: 0 0 18px; }

/* ---------- Panoul unei sarcini: ca în Superlist, lista rămâne în spate și detaliile se deschid în dreapta ---------- */
body.dr-open { overflow: hidden; }
.drawer { position: fixed; inset: 0; z-index: 65; }
.drawer[hidden] { display: none; }
.dr-scrim { position: absolute; inset: 0; background: rgba(0, 0, 0, 0.16); opacity: 0; transition: opacity .2s ease; }
.drawer.in .dr-scrim { opacity: 1; }
.dr-panel {
  position: absolute; top: 12px; right: 12px; bottom: 12px; width: 480px; max-width: calc(100vw - 24px);
  display: flex; flex-direction: column; overflow: hidden; border-radius: var(--r-xl);
  background-color: var(--surface-solid); background-image: var(--glass-strong);
  box-shadow: inset 0 1px 0 var(--rim-top), inset 0 0 0 1px var(--rim), var(--glass-shadow);
  transform: translateX(28px); opacity: 0; transition: transform .24s cubic-bezier(.2, .8, .2, 1), opacity .2s ease;
}
.drawer.in .dr-panel { transform: none; opacity: 1; }
.dr-top { display: flex; align-items: center; gap: 8px; padding: 14px 14px 12px 22px; border-bottom: 1px solid var(--hairline); }
.dr-state { font-size: 13px; font-weight: 600; color: var(--ink-2); }
.dr-panel.done .dr-state { color: var(--green); }
.dr-saved { margin-left: auto; margin-right: 4px; font-size: 12px; color: var(--ink-3); }
.dr-top .star { width: 34px; height: 34px; border-radius: 999px; }
.dr-top .star:hover { background: var(--fill); }
.dr-panel.done .dr-chk { background: linear-gradient(180deg, var(--accent-2), var(--accent)); border-color: transparent; color: #fff; }
.dr-body { flex: 1; overflow-y: auto; padding: 18px 24px 28px; -webkit-overflow-scrolling: touch; overscroll-behavior: contain; }
.dr-title { display: block; width: 100%; border: 0; background: none; resize: none; outline: none; overflow: hidden; padding: 2px 0; margin: 0; font: inherit; font-size: 24px; font-weight: 700; letter-spacing: -0.02em; line-height: 1.25; color: var(--ink); }
.dr-title::placeholder { color: var(--ink-3); }
.dr-panel.done .dr-title { color: var(--ink-3); text-decoration: line-through; }
.dr-props { margin: 14px 0 4px; display: grid; gap: 2px; }
.dr-row { display: grid; grid-template-columns: 92px minmax(0, 1fr); align-items: center; gap: 10px; min-height: 44px; }
.dr-k { display: inline-flex; align-items: center; gap: 8px; color: var(--ink-3); font-size: 13px; font-weight: 600; }
.dr-k svg { width: 16px; height: 16px; }
.dr-v { display: flex; flex-wrap: wrap; align-items: center; gap: 4px; min-width: 0; }
.dr-chip { position: relative; display: inline-flex; align-items: center; gap: 7px; height: 32px; max-width: 100%; padding: 0 10px 0 12px; border: 0; border-radius: 999px; background: var(--fill); color: var(--ink); font-family: inherit; font-size: 13px; font-weight: 600; white-space: nowrap; cursor: pointer; }
.dr-chip svg { width: 14px; height: 14px; opacity: .55; transition: transform .2s; }
.dr-chip.open svg { transform: rotate(180deg); }
.dr-chip i { width: 9px; height: 9px; border-radius: 50%; flex: none; }
.dr-chip .s { overflow: hidden; text-overflow: ellipsis; }
.dr-chip:hover { background: var(--fill-2); }
.dr-chip.late { color: var(--red); background: var(--red-soft); }
.dr-chip.today { color: var(--accent); background: var(--accent-soft); }
.dr-q { height: 32px; padding: 0 10px; border: 0; border-radius: 999px; background: none; color: var(--ink-2); font-size: 13px; font-weight: 500; white-space: nowrap; }
.dr-q:hover { background: var(--fill); color: var(--ink); }
/* Alegerile care se deschid în panou: calendarul de la „Due” și clienții */
.dr-pick { margin: 6px 0 10px; padding: 14px; border-radius: var(--r-md); background: var(--fill); }
.dr-cal-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 8px; }
.dr-cal-head .ml { font-weight: 600; font-size: 14px; }
.dr-cal-head .icon-btn { width: 30px; height: 30px; background: var(--thumb); }
.dr-cal .mcal .day { max-width: 36px; font-size: 14px; }
.dr-cal .mcal .day:hover { background: var(--thumb); }
.dr-cal .mcal .day.today { background: none; color: var(--accent); font-weight: 700; box-shadow: inset 0 0 0 1.5px var(--accent); }
.dr-cal .mcal .day.sel { background: linear-gradient(180deg, var(--accent-2), var(--accent)); color: #fff; font-weight: 700; box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.45), 0 4px 12px rgba(0, 122, 255, 0.3); }
.dr-clients { display: flex; flex-wrap: wrap; gap: 6px; }
.cl-chip { display: inline-flex; align-items: center; gap: 7px; height: 32px; padding: 0 12px; border: 0; border-radius: 999px; background: var(--thumb); color: var(--ink); font-family: inherit; font-size: 13px; font-weight: 500; white-space: nowrap; cursor: pointer; box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05); }
.cl-chip:hover { box-shadow: 0 0 0 1.5px var(--accent); }
.cl-chip.on { background: linear-gradient(180deg, var(--accent-2), var(--accent)); color: #fff; font-weight: 600; }
.cl-chip i { width: 9px; height: 9px; border-radius: 50%; flex: none; }
.cl-chip.on i { box-shadow: 0 0 0 1.5px #fff; }
.dr-h { display: flex; align-items: center; justify-content: space-between; margin: 22px 0 8px; font-size: 12px; font-weight: 700; letter-spacing: 0.05em; text-transform: uppercase; color: var(--ink-3); }
.dr-h .n { letter-spacing: 0; font-variant-numeric: tabular-nums; }
.dr-notes { display: block; width: 100%; min-height: 112px; border: 0; border-radius: var(--r-md); background: var(--fill); padding: 14px 16px; resize: none; outline: none; overflow: hidden; font: inherit; font-size: 15px; line-height: 1.5; color: var(--ink); transition: box-shadow .2s, background .2s; }
.dr-notes::placeholder { color: var(--ink-3); }
.dr-notes:focus { background: var(--thumb); box-shadow: 0 0 0 1.5px var(--accent), 0 0 0 5px var(--accent-soft); }
.dr-subs { list-style: none; margin: 0 0 6px; padding: 0; }
.dr-subs li { display: grid; grid-template-columns: 22px minmax(0, 1fr) 28px; gap: 10px; align-items: center; padding: 4px 2px; border-bottom: 1px solid var(--hairline); }
.dr-subs li.done .chk { background: linear-gradient(180deg, var(--accent-2), var(--accent)); border-color: transparent; color: #fff; }
.sub-t { width: 100%; min-width: 0; border: 0; background: none; outline: none; padding: 8px 0; font: inherit; font-size: 15px; color: var(--ink); }
.dr-subs li.done .sub-t { color: var(--ink-3); text-decoration: line-through; }
.dr-subs .x { opacity: 0; }
.dr-subs li:hover .x, .dr-subs li:focus-within .x { opacity: 1; }
.sub-new { margin-top: 8px; }
.dr-foot { margin: 24px 0 0; font-size: 12.5px; color: var(--ink-3); }
@media (max-width: 720px) {
  .dr-panel { inset: 0; width: auto; max-width: none; border-radius: 0; transform: translateY(28px); padding-top: env(safe-area-inset-top); padding-bottom: env(safe-area-inset-bottom); }
  .dr-top { padding-left: 18px; }
  .dr-body { padding: 16px 18px 28px; }
  .dr-row { grid-template-columns: 82px minmax(0, 1fr); }
  /* pe iPhone, sub 16 px pagina se mărește singură când începi să scrii */
  .dr-title, .dr-notes, .sub-t, .sub-new { font-size: 16px; }
  .dr-subs .x { opacity: 1; }
}
