/* ════════════════════════════════════════════════════════════
   החמ"ל v2 — Apple-style. Typography-first, glass, springs.
   ════════════════════════════════════════════════════════════ */

:root {
  --font: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Assistant", sans-serif;
  --spring: cubic-bezier(.34, 1.4, .64, 1);
  --ease: cubic-bezier(.25, .1, .25, 1);

  /* light */
  --bg: #F5F5F7;
  --bg-tint: #F5F5F7;
  --surface: #FFFFFF;
  --surface-2: rgba(255,255,255,.72);
  --glass: rgba(250,250,252,.78);
  --hairline: rgba(60,60,67,.12);
  --text: #1D1D1F;
  --text-2: #6E6E73;
  --text-3: #AEAEB2;
  --accent: #0A84FF;
  --accent-soft: rgba(10,132,255,.10);
  --red: #FF453A;  --red-soft: rgba(255,69,58,.10);
  --green: #30D158; --green-soft: rgba(48,209,88,.12);
  --amber: #FF9F0A; --amber-soft: rgba(255,159,10,.12);
  --purple: #BF5AF2;
  --shadow-1: 0 1px 1px rgba(0,0,0,.03), 0 4px 14px rgba(0,0,0,.05);
  --shadow-2: 0 2px 6px rgba(0,0,0,.06), 0 14px 40px rgba(0,0,0,.10);
  --shadow-island: 0 8px 32px rgba(0,0,0,.18), 0 2px 8px rgba(0,0,0,.08);
  --r-lg: 18px; --r-md: 13px; --r-sm: 9px;
}

[data-theme="dark"] {
  --bg: #000000;
  --bg-tint: #000000;
  --surface: #1C1C1E;
  --surface-2: rgba(28,28,30,.72);
  --glass: rgba(22,22,24,.78);
  --hairline: rgba(84,84,88,.42);
  --text: #F5F5F7;
  --text-2: #98989E;
  --text-3: #636368;
  --accent: #0A84FF;
  --accent-soft: rgba(10,132,255,.16);
  --red-soft: rgba(255,69,58,.16);
  --green-soft: rgba(48,209,88,.16);
  --amber-soft: rgba(255,159,10,.16);
  --shadow-1: 0 1px 1px rgba(0,0,0,.3), 0 4px 14px rgba(0,0,0,.35);
  --shadow-2: 0 2px 6px rgba(0,0,0,.4), 0 14px 40px rgba(0,0,0,.5);
  --shadow-island: 0 8px 32px rgba(0,0,0,.6), 0 2px 8px rgba(0,0,0,.4);
}

/* גוון לפי שעת היום — עדין מאוד */
[data-daypart="morning"] { --bg-tint: #F4F6F8; }
[data-daypart="evening"] { --bg-tint: #F7F5F2; }
[data-theme="dark"][data-daypart="morning"],
[data-theme="dark"][data-daypart="evening"] { --bg-tint: #000; }

* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; }
body {
  font-family: var(--font);
  background: var(--bg-tint);
  color: var(--text);
  font-size: 15px;
  letter-spacing: -.01em;
  -webkit-font-smoothing: antialiased;
  transition: background .6s var(--ease), color .3s;
}
#app { display: flex; height: 100vh; height: 100dvh; }

::selection { background: var(--accent-soft); }
svg.icon { width: 17px; height: 17px; stroke: currentColor; fill: none;
  stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; flex-shrink: 0; }

/* ── sidebar — ClickUp-style: רייל גרדיאנט צף ומנותק מהקצה (request #7) ── */
#sidebar {
  /* צבע הגרדיאנט נשלט מההגדרות — JS מזין --side-1/--side-2 (applySidebarColor) */
  --side-1: #7C5CFF; --side-2: #3B1E8F;
  --side-text:   rgba(255,255,255,.96);
  --side-text-2: rgba(255,255,255,.68);
  --side-text-3: rgba(255,255,255,.44);
  --side-hover:  rgba(255,255,255,.13);
  --side-active: rgba(255,255,255,.22);
  width: 232px; flex-shrink: 0; display: flex; flex-direction: column;
  background: linear-gradient(165deg, var(--side-1), var(--side-2));
  color: var(--side-text);
  border-radius: 22px;
  margin: 14px;                              /* צף — מנותק מכל הקצוות */
  padding: 18px 12px 12px;
  box-shadow: 0 18px 50px rgba(30,12,70,.30), 0 2px 10px rgba(0,0,0,.14);
  z-index: 5;
  transition: width .28s var(--spring), margin .28s var(--spring), background .45s var(--ease);
}
.logo { font-size: 19px; font-weight: 800; padding: 0 10px 18px; letter-spacing: -.02em;
  display: flex; align-items: center; gap: 8px; color: var(--side-text); }
.logo-mark { font-size: 17px; }
#nav { display: flex; flex-direction: column; gap: 1px; }
#nav a {
  display: flex; align-items: center; gap: 11px;
  padding: 8px 11px; border-radius: var(--r-sm);
  color: var(--side-text-2); text-decoration: none; font-weight: 600; font-size: 14px;
  transition: background .15s, color .15s;
  -webkit-user-select: none; user-select: none;
}
#nav a:hover { background: var(--side-hover); color: #fff; }
#nav a.active { background: var(--side-active); color: #fff; }
#nav a.nav-dragging { opacity: .4; }
#nav a.nav-drop-before { box-shadow: inset 0 2px 0 rgba(255,255,255,.85); }
#nav a.nav-drop-after  { box-shadow: inset 0 -2px 0 rgba(255,255,255,.85); }
.nav-grip { margin-inline-start: auto; opacity: 0; cursor: grab; color: var(--side-text-3);
  font-size: 13px; line-height: 1; transition: opacity .15s; }
#nav a:hover .nav-grip { opacity: .6; }
.nav-grip:active { cursor: grabbing; }
.nav-emoji { font-size: 15px; line-height: 1; width: 17px; text-align: center; flex-shrink: 0; }
#nav a > svg.icon { flex-shrink: 0; }
.side-scroll { flex: 1; min-height: 0; overflow-y: auto; overflow-x: hidden; }
.side-scroll::-webkit-scrollbar { width: 6px; }
.side-scroll::-webkit-scrollbar-thumb { background: rgba(255,255,255,.18); border-radius: 3px; }
#favorites-box { margin-top: 20px; }
.side-title { font-size: 11px; font-weight: 700; color: var(--side-text-3);
  text-transform: uppercase; letter-spacing: .06em; padding: 0 11px 7px;
  display: flex; align-items: center; gap: 6px; }
#favorites-list a {
  display: block; padding: 5px 11px; border-radius: 7px;
  color: var(--side-text-2); text-decoration: none; font-size: 13.5px; font-weight: 500;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
#favorites-list a:hover { background: var(--side-hover); color: #fff; }
.side-foot { display: flex; align-items: center; gap: 6px; padding: 10px 6px 0;
  border-top: 1px solid rgba(255,255,255,.18); }
.foot-motto { font-size: 10.5px; color: var(--side-text-3); margin-right: auto; }
.icon-btn {
  background: none; border: none; color: var(--text-2); cursor: pointer;
  padding: 6px; border-radius: 7px; font-size: 11px; font-weight: 700;
  display: grid; place-items: center; font-family: var(--font);
}
.icon-btn:hover { background: rgba(120,120,128,.1); color: var(--text); }
/* כפתורים בתוך הרייל הצבעוני — לבנים */
#sidebar .icon-btn { color: var(--side-text-2); }
#sidebar .icon-btn:hover { background: var(--side-hover); color: #fff; }
#sidebar .side-title .icon-btn { color: var(--side-text-3); }
/* עץ התיקיות/רשימות + תגיות + קוביות על הרקע הצבעוני */
#sidebar .flist-row { color: var(--side-text-2); }
#sidebar .flist-row:hover { background: var(--side-hover); color: #fff; }
#sidebar .flist-row.active { background: var(--side-active); color: #fff; }
#sidebar .folder-row { color: var(--side-text); }
#sidebar .flist-count, #sidebar .folder-empty { color: var(--side-text-3); }
#sidebar .flist-row.drop-hint, #sidebar .folder-row.drop-hint {
  background: var(--side-hover); outline: 1.5px dashed rgba(255,255,255,.6); }
#sidebar .tagchip { color: #fff !important; background: rgba(255,255,255,.15) !important; }
#sidebar .tagchip:hover { background: rgba(255,255,255,.24) !important; }
.tag-dot { width: 8px; height: 8px; border-radius: 50%; display: inline-block;
  margin-inline-end: 5px; vertical-align: middle; }
#sidebar .tile.tile-edit { background: rgba(255,255,255,.13); color: rgba(255,255,255,.8); }
#sidebar .tile.tile-edit:hover { background: rgba(255,255,255,.22); }
#sidebar .nav-badge { background: rgba(255,255,255,.28); color: #fff; }
#sidebar.hidden { margin: 0; }

/* ── main ── */
#main { flex: 1; display: flex; flex-direction: column; overflow: hidden; }
#topbar {
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 30px 10px;
}
#topbar h1 { margin: 0; font-size: 16px; font-weight: 700; color: var(--text-2); }
.topbar-actions { display: flex; gap: 8px; }
#view { flex: 1; overflow: auto; padding: 10px 30px 110px; }

/* hero של היום */
.day-hero { margin: 6px 0 20px; }
.day-hero .dh-date { font-size: 13px; font-weight: 700; color: var(--accent);
  text-transform: uppercase; letter-spacing: .05em; }
.day-hero h1 { margin: 2px 0 4px; font-size: 34px; font-weight: 800; letter-spacing: -.03em; }
.day-hero .dh-sub { font-size: 15px; color: var(--text-2); font-weight: 500; }
.day-hero-row { display: flex; align-items: flex-end; justify-content: space-between;
  gap: 16px; flex-wrap: wrap; }

/* segmented — מצבי יום */
.segmented {
  display: inline-flex; background: rgba(120,120,128,.12);
  border-radius: 10px; padding: 2px; gap: 2px;
}
.segmented button {
  border: none; background: transparent; color: var(--text-2);
  font-family: var(--font); font-size: 12.5px; font-weight: 600;
  padding: 5px 13px; border-radius: 8px; cursor: pointer;
  transition: all .2s var(--ease);
}
.segmented button.on { background: var(--surface); color: var(--text); box-shadow: var(--shadow-1); }

/* ── buttons & inputs ── */
button {
  font-family: var(--font); font-size: 13.5px; font-weight: 600;
  border: none; border-radius: var(--r-sm); padding: 7px 14px; cursor: pointer;
  display: inline-flex; align-items: center; gap: 6px;
  transition: transform .15s var(--spring), background .15s, opacity .15s;
}
button:active { transform: scale(.96); }
button.primary { background: var(--accent); color: #fff; }
button.primary:hover { background: #0974DE; }
button.ghost { background: rgba(120,120,128,.1); color: var(--text); }
button.ghost:hover { background: rgba(120,120,128,.16); }
button.ghost.on { background: var(--text); color: var(--bg); }
button.tiny { padding: 3px 10px; font-size: 12px; border-radius: 7px; }
button.danger { background: var(--red-soft); color: var(--red); }
input, select, textarea {
  font-family: var(--font); font-size: 14px; color: var(--text);
  background: var(--surface); border: 1px solid var(--hairline);
  border-radius: var(--r-sm); padding: 8px 11px; outline: none;
  transition: border-color .15s, box-shadow .15s;
}
input:focus, select:focus, textarea:focus {
  border-color: var(--accent); box-shadow: 0 0 0 3.5px var(--accent-soft);
}

/* ── cards & sections ── */
.section { margin-bottom: 26px; }
.section > h2 {
  font-size: 13px; font-weight: 700; color: var(--text-2);
  margin: 0 0 9px; display: flex; align-items: center; gap: 8px;
  letter-spacing: -.005em;
}
.count-badge { background: rgba(120,120,128,.13); border-radius: 20px;
  font-size: 11px; padding: 1px 8px; font-weight: 700; color: var(--text-2); }
.card {
  background: var(--surface); border-radius: var(--r-lg);
  box-shadow: var(--shadow-1); border: .5px solid var(--hairline);
}

/* ── pills & badges ── */
.pill {
  display: inline-flex; align-items: center; gap: 5px;
  border-radius: 7px; padding: 2.5px 10px;
  color: #fff; font-size: 12px; font-weight: 700; white-space: nowrap;
}
.badge {
  display: inline-flex; align-items: center; gap: 4px;
  font-size: 11px; font-weight: 700; border-radius: 6px; padding: 1.5px 7px;
}
.badge.stuck { background: var(--red-soft); color: var(--red); }
.badge.overdue { background: var(--red); color: #fff; }
.badge.soon { background: var(--amber-soft); color: var(--amber); }
.badge.must { background: var(--text); color: var(--bg); }
.badge.imm { background: var(--accent-soft); color: var(--accent); }
.badge.dim { background: rgba(120,120,128,.1); color: var(--text-2); }
.badge.est { background: var(--amber-soft); color: var(--amber); }
.x3-badge { background: var(--amber-soft); color: var(--amber); font-weight: 700;
  border-radius: 7px; padding: 3px 9px; font-size: 12.5px; }

/* ── today layout ── */
.today-grid { display: grid; grid-template-columns: 1fr 308px; gap: 22px; align-items: start; }
.anchors-row { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 22px; }
.anchor-chip {
  display: flex; align-items: center; gap: 7px;
  background: var(--surface); border: .5px solid var(--hairline);
  border-radius: 20px; padding: 6px 14px; cursor: pointer;
  font-weight: 600; font-size: 13px; user-select: none;
  box-shadow: var(--shadow-1);
  transition: all .25s var(--spring);
}
.anchor-chip:hover { transform: translateY(-1px); }
.anchor-chip.done { background: var(--green-soft); border-color: transparent;
  color: var(--green); box-shadow: none; }
.anchor-chip.done .a-name { text-decoration: line-through; opacity: .75; }

/* task rows */
.task-row {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 16px; border-bottom: .5px solid var(--hairline);
  transition: background .15s;
}
.task-row:last-child { border-bottom: none; }
.task-row:hover { background: rgba(120,120,128,.04); }
.task-row .t-title { flex: 1; font-weight: 600; cursor: pointer; font-size: 14px; }
.task-row.done-row .t-title { text-decoration: line-through; color: var(--text-3); }
.task-row .t-proj { font-size: 12px; color: var(--text-3); white-space: nowrap; font-weight: 500; }
.play-btn {
  width: 26px; height: 26px; border-radius: 50%; padding: 0;
  background: var(--accent-soft); color: var(--accent);
  display: grid; place-items: center; flex-shrink: 0;
}
.play-btn:hover { background: var(--accent); color: #fff; }
.play-btn svg.icon { width: 12px; height: 12px; fill: currentColor; stroke: none; }
.play-btn.playing { background: var(--accent); color: #fff; animation: pulse 2s infinite; }
@keyframes pulse { 50% { box-shadow: 0 0 0 6px var(--accent-soft); } }

.chk-circle {
  width: 21px; height: 21px; border-radius: 50%; border: 1.6px solid var(--text-3);
  cursor: pointer; flex-shrink: 0; display: grid; place-items: center;
  color: transparent; transition: all .25s var(--spring); position: relative;
}
.chk-circle svg.icon { width: 11px; height: 11px; stroke-width: 3; }
.chk-circle:hover { border-color: var(--green); transform: scale(1.1); }
.chk-circle.on { background: var(--green); border-color: var(--green); color: #fff; }
.chk-circle.pop { animation: chkpop .45s var(--spring); }
@keyframes chkpop { 0% { transform: scale(.6); } 60% { transform: scale(1.25); } 100% { transform: scale(1); } }

/* קונפטי על MUST */
.burst { position: absolute; width: 5px; height: 5px; border-radius: 2px;
  pointer-events: none; animation: burst .65s var(--ease) forwards; }
@keyframes burst {
  0% { transform: translate(0,0) scale(1); opacity: 1; }
  100% { transform: translate(var(--dx), var(--dy)) scale(.3); opacity: 0; }
}

.empty { color: var(--text-3); padding: 18px; text-align: center; font-size: 13.5px; font-weight: 500; }

/* MUST slots */
.must-slots { display: flex; gap: 5px; margin-right: auto; }
.must-slot { width: 7px; height: 7px; border-radius: 50%;
  background: rgba(120,120,128,.22); }
.must-slot.filled { background: var(--red); }
.must-slot.done { background: var(--green); }

/* widgets */
.widget { padding: 18px; margin-bottom: 16px; }
.widget h3 { margin: 0 0 12px; font-size: 12.5px; color: var(--text-2); font-weight: 700; }

/* ── rings ── */
.rings-box { display: flex; align-items: center; gap: 18px; }
.rings-svg { flex-shrink: 0; }
.rings-svg circle.track { opacity: .14; }
.rings-svg circle.prog { transition: stroke-dashoffset 1s var(--ease); }
.ring-legend { display: grid; gap: 7px; font-size: 12.5px; font-weight: 600; }
.ring-legend .rl { display: flex; align-items: center; gap: 7px; color: var(--text-2); }
.ring-legend .dot { width: 8px; height: 8px; border-radius: 50%; }
.ring-legend b { color: var(--text); font-weight: 700; }

.quad-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 7px; }
.quad-cell { border-radius: 11px; padding: 9px 11px; font-size: 12px; font-weight: 600; }
.quad-cell b { display: block; font-size: 18px; letter-spacing: -.02em; }
.q1 { background: var(--red-soft); color: var(--red); }
.q2 { background: var(--green-soft); color: var(--green); }
.q3 { background: var(--amber-soft); color: var(--amber); }
.q4 { background: rgba(120,120,128,.08); color: var(--text-2); }
.done-item { font-size: 13px; padding: 4px 0; color: var(--text-2); }
.done-item b { color: var(--text); font-weight: 600; }

/* ── board ── */
.board { display: flex; gap: 13px; align-items: flex-start; min-height: 70vh; }
.col { width: 256px; flex-shrink: 0; background: rgba(120,120,128,.07);
  border-radius: var(--r-lg); padding: 9px; transition: outline .15s; }
.col.drag-over { outline: 2px dashed var(--accent); outline-offset: -2px; }
.col-head { display: flex; align-items: center; gap: 8px; padding: 3px 5px 10px; }
.col-count { font-size: 11.5px; color: var(--text-3); font-weight: 700; }
.pcard {
  background: var(--surface); border-radius: var(--r-md); box-shadow: var(--shadow-1);
  border: .5px solid var(--hairline);
  padding: 12px 13px; margin-bottom: 8px; cursor: pointer;
  border-right: 3.5px solid transparent; position: relative;
  transition: transform .2s var(--spring), box-shadow .2s;
}
.pcard:hover { transform: translateY(-2px); box-shadow: var(--shadow-2); }
.pcard .p-name { font-weight: 700; font-size: 13.5px; margin-bottom: 5px; letter-spacing: -.01em; }
.pcard .p-meta { display: flex; flex-wrap: wrap; gap: 6px; align-items: center;
  font-size: 11.5px; color: var(--text-3); font-weight: 500; }
.pcard .p-foot { display: flex; justify-content: space-between; align-items: center; margin-top: 9px; }
.progress { height: 3.5px; background: rgba(120,120,128,.16); border-radius: 4px;
  flex: 1; margin-left: 8px; overflow: hidden; }
.progress i { display: block; height: 100%; background: var(--green); border-radius: 4px;
  transition: width .5s var(--ease); }
.fav-star { cursor: pointer; opacity: .3; font-size: 13px; transition: all .2s var(--spring); }
.fav-star:hover { transform: scale(1.25); }
.fav-star.on { opacity: 1; }

/* ── list ── */
.filters { display: flex; gap: 8px; margin-bottom: 14px; flex-wrap: wrap; align-items: center; }
table.plist { width: 100%; border-collapse: collapse; background: var(--surface);
  border-radius: var(--r-lg); overflow: hidden; box-shadow: var(--shadow-1);
  border: .5px solid var(--hairline); }
.plist th { text-align: right; font-size: 11px; color: var(--text-3); font-weight: 700;
  text-transform: uppercase; letter-spacing: .05em;
  padding: 11px 16px; border-bottom: .5px solid var(--hairline); }
.plist td { padding: 11px 16px; border-bottom: .5px solid var(--hairline); font-size: 13.5px; }
.plist tr:last-child td { border-bottom: none; }
.plist tr:hover td { background: rgba(120,120,128,.04); cursor: pointer; }

/* ── clients / suppliers ── */
.cards-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(265px, 1fr)); gap: 13px; }
.ent-card { padding: 18px; cursor: pointer; transition: transform .2s var(--spring), box-shadow .2s; }
.ent-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-2); }
.ent-card h3 { margin: 0 0 7px; font-size: 15px; letter-spacing: -.01em;
  display: flex; align-items: center; gap: 8px; }
.ent-card .meta { font-size: 13px; color: var(--text-2); line-height: 1.7; }

/* ── review ── */
.review-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; align-items: start; }
.ratio-good { color: var(--green); font-weight: 700; }
.ratio-bad { color: var(--red); font-weight: 700; }

/* ── modals ── */
.modal-back {
  position: fixed; inset: 0; background: rgba(0,0,0,.35);
  display: grid; place-items: center; z-index: 50;
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
  animation: fadein .2s var(--ease);
}
.modal-back[hidden] { display: none; }
@keyframes fadein { from { opacity: 0; } }
.modal {
  background: var(--surface); border-radius: 20px; padding: 26px;
  width: 540px; max-width: 94vw; max-height: 88vh; overflow-y: auto;
  box-shadow: var(--shadow-2); border: .5px solid var(--hairline);
  display: flex; flex-direction: column; gap: 12px;
  animation: modalpop .4s var(--spring);
}
@keyframes modalpop { from { transform: scale(.92) translateY(14px); opacity: 0; } }
.modal.small { width: 440px; }
.modal.wide { width: 800px; }
.modal h2 { margin: 0; font-size: 19px; letter-spacing: -.02em;
  display: flex; align-items: center; gap: 9px; }
.modal .hint { margin: -6px 0 0; font-size: 12.5px; color: var(--text-2); }
.modal input, .modal select { width: 100%; }
.modal .row { display: flex; gap: 9px; align-items: center; }
.modal .row > * { flex: 1; }
.modal .row .chk { flex: 0 0 auto; }
.rpm-fields { display: flex; flex-direction: column; gap: 9px; }
.rpm-fields label, .inline-lbl { font-size: 12px; font-weight: 700; color: var(--text-2);
  display: flex; flex-direction: column; gap: 4px; }
.chk { display: flex; align-items: center; gap: 6px; font-weight: 700; font-size: 13px; }
.modal-actions { display: flex; justify-content: flex-start; gap: 8px; margin-top: 6px; }

/* ── project detail ── */
.pj-head { display: flex; align-items: flex-start; gap: 12px; }
.pj-head h2 { flex: 1; font-size: 23px; }
.rpm-box {
  background: linear-gradient(135deg, var(--accent-soft), rgba(191,90,242,.07));
  border-radius: var(--r-md); padding: 15px 17px;
  display: grid; gap: 8px;
}
.rpm-box .rpm-line { display: flex; gap: 8px; font-size: 14px; align-items: baseline; }
.rpm-box .rpm-line b { flex-shrink: 0; font-size: 11px; text-transform: uppercase;
  letter-spacing: .05em; color: var(--text-2); padding-top: 2px; }
.rpm-box [contenteditable] { flex: 1; border-radius: 6px; padding: 0 4px;
  min-width: 60px; font-weight: 600; }
.rpm-box [contenteditable]:focus { background: var(--surface); outline: 2px solid var(--accent); }
.rpm-box [contenteditable]:empty::before { content: attr(data-ph); color: var(--text-3); font-weight: 400; }
.pj-props { display: flex; flex-wrap: wrap; gap: 8px; align-items: flex-end; }
.pj-props select, .pj-props input { width: auto; padding: 5px 9px; font-size: 13px; }
.task-add { display: flex; gap: 8px; }
.task-add input[type=text] { flex: 1; }
.t-ctrl { display: flex; gap: 4px; align-items: center; }
.t-ctrl select, .t-ctrl input {
  border: none; background: rgba(120,120,128,.09); font-size: 11px; font-weight: 600;
  border-radius: 6px; padding: 3px 7px; color: var(--text-2); cursor: pointer;
}
.checklist-row { display: flex; align-items: center; gap: 9px; padding: 6px 0; font-size: 14px; }
.checklist-row.done { text-decoration: line-through; color: var(--text-3); }
.comment { background: rgba(120,120,128,.07); border-radius: 11px;
  padding: 9px 13px; font-size: 13.5px; margin-bottom: 7px; }
.comment .when { font-size: 11px; color: var(--text-3); margin-top: 2px; }
.subhead { font-size: 12px; font-weight: 700; color: var(--text-2); margin: 12px 0 6px;
  text-transform: uppercase; letter-spacing: .05em; }

/* ════════ שורת "עכשיו" — Dynamic Island ════════ */
#now-bar {
  position: fixed; bottom: 22px; left: 50%; transform: translateX(-50%);
  z-index: 40; display: flex; align-items: center; gap: 13px;
  background: rgba(20,20,22,.92); color: #F5F5F7;
  backdrop-filter: blur(24px) saturate(1.5); -webkit-backdrop-filter: blur(24px) saturate(1.5);
  border-radius: 28px; padding: 10px 12px 10px 18px;
  box-shadow: var(--shadow-island);
  max-width: min(620px, 92vw);
  animation: island-in .5s var(--spring);
  border: .5px solid rgba(255,255,255,.1);
}
#now-bar[hidden] { display: none; }
@keyframes island-in { from { transform: translate(-50%, 80px) scale(.85); opacity: 0; } }
[data-theme="dark"] #now-bar { background: rgba(44,44,46,.92); }
.nb-dot { width: 9px; height: 9px; border-radius: 50%; background: var(--green);
  animation: nbpulse 1.6s infinite; flex-shrink: 0; }
@keyframes nbpulse { 50% { opacity: .35; } }
.nb-title { font-weight: 700; font-size: 14px; white-space: nowrap;
  overflow: hidden; text-overflow: ellipsis; max-width: 250px; }
.nb-proj { font-size: 11.5px; color: rgba(245,245,247,.55); white-space: nowrap; }
.nb-time { font-size: 13px; font-weight: 700; font-variant-numeric: tabular-nums;
  white-space: nowrap; }
.nb-time.over { color: var(--amber); }
.nb-track { width: 64px; height: 4px; border-radius: 4px; background: rgba(255,255,255,.18);
  overflow: hidden; flex-shrink: 0; }
.nb-track i { display: block; height: 100%; background: var(--green); border-radius: 4px;
  transition: width 1s linear; }
.nb-track i.over { background: var(--amber); }
#now-bar button { padding: 6px 13px; border-radius: 18px; font-size: 12.5px; }
#now-bar .nb-done { background: var(--green); color: #fff; }
#now-bar .nb-stop { background: rgba(255,255,255,.14); color: #F5F5F7; }

/* ════════ ⌘K ════════ */
#cmdk { position: fixed; inset: 0; z-index: 60; background: rgba(0,0,0,.3);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  display: flex; justify-content: center; padding-top: 14vh;
  animation: fadein .15s var(--ease); }
#cmdk[hidden] { display: none; }
.cmdk-panel {
  width: 580px; max-width: 92vw; height: fit-content; max-height: 60vh;
  background: var(--surface-2);
  backdrop-filter: blur(30px) saturate(1.6); -webkit-backdrop-filter: blur(30px) saturate(1.6);
  border-radius: 16px; box-shadow: var(--shadow-2); border: .5px solid var(--hairline);
  display: flex; flex-direction: column; overflow: hidden;
  animation: modalpop .35s var(--spring);
}
.cmdk-input-row { display: flex; align-items: center; gap: 10px; padding: 15px 17px;
  border-bottom: .5px solid var(--hairline); color: var(--text-3); }
#cmdk-input { flex: 1; border: none; background: none; font-size: 16.5px; font-weight: 500;
  padding: 0; box-shadow: none; }
#cmdk-results { overflow-y: auto; padding: 7px; }
.cmdk-item { display: flex; align-items: center; gap: 11px; padding: 9px 12px;
  border-radius: 10px; cursor: pointer; font-size: 14px; font-weight: 600; }
.cmdk-item .ci-hint { margin-right: auto; font-size: 11.5px; color: var(--text-3); font-weight: 500; }
.cmdk-item.sel { background: var(--accent); color: #fff; }
.cmdk-item.sel .ci-hint { color: rgba(255,255,255,.7); }
.cmdk-item .ci-chips { display: flex; gap: 5px; }
.cmdk-sect { font-size: 10.5px; font-weight: 700; color: var(--text-3);
  text-transform: uppercase; letter-spacing: .07em; padding: 9px 12px 3px; }
.cmdk-foot { padding: 8px 16px; border-top: .5px solid var(--hairline);
  font-size: 11px; color: var(--text-3); }
.cmdk-foot kbd { background: rgba(120,120,128,.12); border-radius: 4px; padding: 1px 5px;
  font-family: var(--font); font-size: 10.5px; }

/* ════════ פולחן ערב ════════ */
#ritual { position: fixed; inset: 0; z-index: 70;
  background: linear-gradient(170deg, #11131C 0%, #1C1A2E 55%, #2A1F33 100%);
  color: #F5F5F7; overflow-y: auto;
  animation: fadein .5s var(--ease); }
#ritual[hidden] { display: none; }
.ritual-inner { max-width: 620px; margin: 0 auto; padding: 7vh 26px 60px;
  display: flex; flex-direction: column; gap: 22px; min-height: 100%; }
.ritual-head { text-align: center; }
.ritual-head .r-moon { font-size: 38px; }
.ritual-head h1 { margin: 8px 0 4px; font-size: 30px; font-weight: 800; letter-spacing: -.02em; }
.ritual-head p { margin: 0; color: rgba(245,245,247,.55); font-size: 14.5px; }
.ritual-dots { display: flex; justify-content: center; gap: 8px; margin-top: 14px; }
.ritual-dots i { width: 7px; height: 7px; border-radius: 50%;
  background: rgba(255,255,255,.22); transition: all .3s; }
.ritual-dots i.on { background: #fff; width: 22px; border-radius: 4px; }
.ritual-card { background: rgba(255,255,255,.07); border: .5px solid rgba(255,255,255,.1);
  border-radius: var(--r-lg); padding: 18px; backdrop-filter: blur(10px); }
.ritual-card h3 { margin: 0 0 12px; font-size: 14px; color: rgba(245,245,247,.65); font-weight: 700; }
.ritual-card .task-row { border-color: rgba(255,255,255,.08); padding: 9px 4px; }
.ritual-card .task-row:hover { background: rgba(255,255,255,.05); }
.ritual-card .t-proj { color: rgba(245,245,247,.4); }
.r-decide { display: flex; gap: 5px; }
.r-decide button { padding: 4px 11px; font-size: 11.5px; border-radius: 7px;
  background: rgba(255,255,255,.1); color: #F5F5F7; }
.r-decide button.picked { background: var(--accent); }
.r-pick { display: flex; align-items: center; gap: 10px; padding: 9px 6px;
  border-radius: 10px; cursor: pointer; border-bottom: .5px solid rgba(255,255,255,.07); }
.r-pick:hover { background: rgba(255,255,255,.05); }
.r-pick .rp-circle { width: 20px; height: 20px; border-radius: 50%;
  border: 1.6px solid rgba(255,255,255,.35); display: grid; place-items: center;
  color: transparent; flex-shrink: 0; transition: all .25s var(--spring); }
.r-pick.sel .rp-circle { background: var(--red); border-color: var(--red); color: #fff; }
.r-pick .rp-title { flex: 1; font-weight: 600; font-size: 14px; }
.r-pick .rp-proj { font-size: 11.5px; color: rgba(245,245,247,.4); }
.ritual-actions { display: flex; justify-content: center; gap: 10px; margin-top: 6px; }
.ritual-actions button { padding: 11px 26px; border-radius: 22px; font-size: 15px; }
.ritual-actions .r-next { background: #fff; color: #111; }
.ritual-actions .r-skip { background: rgba(255,255,255,.12); color: #F5F5F7; }
.r-cele { text-align: center; padding: 10px 0 4px; }
.r-cele .rc-num { font-size: 52px; font-weight: 800; letter-spacing: -.04em;
  background: linear-gradient(135deg, #6EE7B7, #0A84FF); -webkit-background-clip: text;
  background-clip: text; color: transparent; }
.r-cele .rc-lbl { color: rgba(245,245,247,.55); font-size: 13.5px; }

/* responsive */
@media (max-width: 980px) {
  .today-grid, .review-grid { grid-template-columns: 1fr; }
  #sidebar { width: 62px; padding: 16px 8px 10px; }
  #sidebar .logo span:not(.logo-mark), #nav a span, #favorites-box, .foot-motto { display: none; }
  #nav a { justify-content: center; }
  .day-hero h1 { font-size: 26px; }
}

/* ════════════════════════════════════════════════════════════
   v3 — Apple Reminders language + TickTick week
   ════════════════════════════════════════════════════════════ */

/* ── sidebar tags ── */
#tags-box { margin-top: 22px; }
#tags-list { display: flex; flex-wrap: wrap; gap: 6px; padding: 2px 8px; }
.tagchip {
  display: inline-flex; align-items: center; gap: 4px;
  font-size: 12px; font-weight: 700; padding: 3px 10px; border-radius: 14px;
  cursor: grab; user-select: none; border: none; font-family: var(--font);
  transition: transform .15s var(--spring), opacity .15s;
}
.tagchip:hover { transform: scale(1.06); }
.tagchip.on { outline: 2px solid currentColor; outline-offset: 1px; }
.tagchip.mini { font-size: 10.5px; padding: 1px 7px; cursor: pointer; }

/* ── Reminders task row ── */
.rem-row {
  display: flex; align-items: flex-start; gap: 11px;
  padding: 9px 16px; border-bottom: .5px solid var(--hairline);
  position: relative; background: var(--surface);
  transition: background .15s, transform .25s var(--ease);
  touch-action: pan-y;
}
.rem-row:last-child { border-bottom: none; }
.rem-row:hover { background: rgba(120,120,128,.04); }
.rem-row.done-row .rem-title { color: var(--text-3); }
.rem-row.dragging { opacity: .4; }
.radio {
  width: 22px; height: 22px; border-radius: 50%;
  border: 1.7px solid var(--text-3); flex-shrink: 0; margin-top: 1px;
  cursor: pointer; display: grid; place-items: center;
  transition: all .2s var(--spring); position: relative;
}
.radio:hover { border-color: var(--ring-c, var(--accent)); }
.radio i {
  width: 12px; height: 12px; border-radius: 50%;
  background: var(--ring-c, var(--accent)); transform: scale(0);
  transition: transform .25s var(--spring);
}
.radio.on { border-color: var(--ring-c, var(--accent)); }
.radio.on i { transform: scale(1); }
.rem-main { flex: 1; min-width: 0; cursor: pointer; }
.rem-title { font-size: 14.5px; font-weight: 500; letter-spacing: -.01em; }
.rem-sub {
  display: flex; flex-wrap: wrap; gap: 8px; align-items: center;
  font-size: 12px; color: var(--text-3); margin-top: 2px; font-weight: 500;
}
.rem-sub .overdue-txt { color: var(--red); }
.rem-side { display: flex; align-items: center; gap: 4px; flex-shrink: 0; }
.flag-btn, .link-ico, .more-btn {
  background: none; border: none; padding: 4px; border-radius: 6px;
  color: var(--text-3); cursor: pointer; display: grid; place-items: center;
}
.flag-btn:hover, .more-btn:hover, .link-ico:hover { background: rgba(120,120,128,.1); color: var(--text); }
.flag-btn.on { color: var(--amber); }
.flag-btn.on svg { fill: var(--amber); }
.link-ico.has { color: var(--accent); }

/* swipe layers — בסגנון אפל: שכבת פעולה אחת, בצד שנחשף, בלי חפיפה */
.swipe-wrap { position: relative; overflow: hidden; }
.swipe-under { position: absolute; inset: 0; z-index: 0; }
.swipe-under .su-done, .swipe-under .su-arch {
  position: absolute; inset: 0; display: none; align-items: center;
  color: #fff; font-weight: 700; font-size: 13px;
}
.swipe-under .su-done { background: var(--green); }
.swipe-under .su-arch { background: var(--text-3); }
.swipe-under .su-done span, .swipe-under .su-arch span {
  display: inline-flex; align-items: center; gap: 6px;
  opacity: var(--reveal, 1); transform: scale(calc(.8 + .2 * var(--reveal, 1)));
  position: absolute;
}
/* dx>0 — השורה זזה ימינה, נחשף הצד השמאלי ⇒ התווית בשמאל */
.swipe-under[data-dir="done"] .su-done { display: flex; }
.swipe-under[data-dir="done"] .su-done span { left: 18px; }
/* dx<0 — השורה זזה שמאלה, נחשף הצד הימני ⇒ התווית בימין */
.swipe-under[data-dir="arch"] .su-arch { display: flex; }
.swipe-under[data-dir="arch"] .su-arch span { right: 18px; }
.swipe-wrap .rem-row { position: relative; z-index: 1; }

/* row menu popover */
.row-menu {
  position: fixed; z-index: 80; min-width: 210px;
  background: var(--surface-2); backdrop-filter: blur(26px) saturate(1.6);
  -webkit-backdrop-filter: blur(26px) saturate(1.6);
  border-radius: 13px; border: .5px solid var(--hairline);
  box-shadow: var(--shadow-2); padding: 5px;
  animation: modalpop .25s var(--spring);
}
.row-menu .rm-item {
  display: flex; align-items: center; gap: 9px; width: 100%;
  padding: 8px 11px; border-radius: 8px; cursor: pointer;
  font-size: 13.5px; font-weight: 600; color: var(--text);
  background: none; border: none; font-family: var(--font); text-align: right;
}
.row-menu .rm-item:hover { background: var(--accent); color: #fff; }
.row-menu .rm-sep { height: .5px; background: var(--hairline); margin: 4px 8px; }
.row-menu input { width: 100%; margin: 4px 0; font-size: 13px; }

/* ── projects view (Reminders home) ── */
.smart-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 11px; margin-bottom: 24px; }
.smart-card {
  background: var(--surface); border-radius: 14px; padding: 13px 15px;
  border: .5px solid var(--hairline); box-shadow: var(--shadow-1);
  cursor: pointer; transition: transform .2s var(--spring), box-shadow .2s;
  display: flex; flex-direction: column; gap: 9px;
}
.smart-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-2); }
.smart-card.on { outline: 2px solid var(--accent); }
.smart-card .sc-top { display: flex; justify-content: space-between; align-items: center; }
.smart-card .sc-ico {
  width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; color: #fff;
}
.smart-card .sc-ico svg { width: 15px; height: 15px; }
.smart-card .sc-count { font-size: 24px; font-weight: 800; letter-spacing: -.03em; }
.smart-card .sc-label { font-size: 13px; font-weight: 700; color: var(--text-2); }

.proj-toolbar { display: flex; align-items: center; justify-content: space-between; margin: 4px 0 11px; }
.proj-toolbar h2 { margin: 0; font-size: 21px; font-weight: 800; letter-spacing: -.02em; }

/* list mode — "הרשימות שלי" */
.rlist { background: var(--surface); border-radius: var(--r-lg);
  border: .5px solid var(--hairline); box-shadow: var(--shadow-1); overflow: hidden; }
.rlist-row {
  display: flex; align-items: center; gap: 12px; padding: 11px 16px;
  border-bottom: .5px solid var(--hairline); cursor: pointer;
}
.rlist-row:last-child { border-bottom: none; }
.rlist-row:hover { background: rgba(120,120,128,.05); }
.rlist-row.drop-hint { background: var(--accent-soft); }
.rlist-ico {
  width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center;
  color: #fff; font-size: 15px; flex-shrink: 0;
}
.rlist-name { flex: 1; font-weight: 600; font-size: 14.5px; min-width: 0;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rlist-prm { font-size: 11.5px; color: var(--text-3); font-weight: 500;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 340px; }
.rlist-count { font-size: 15px; font-weight: 600; color: var(--text-3); }
.rlist-chev { color: var(--text-3); transform: rotate(180deg); }

/* grid mode — קוביות */
.proj-tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 12px; }
.proj-tile {
  background: var(--surface); border-radius: 16px; padding: 15px;
  border: .5px solid var(--hairline); box-shadow: var(--shadow-1); cursor: pointer;
  transition: transform .2s var(--spring), box-shadow .2s;
  display: flex; flex-direction: column; gap: 8px; min-height: 118px;
}
.proj-tile:hover { transform: translateY(-2px); box-shadow: var(--shadow-2); }
.proj-tile.drop-hint { outline: 2px dashed var(--accent); }
.proj-tile .pt-top { display: flex; justify-content: space-between; align-items: center; }
.proj-tile .pt-count { font-size: 22px; font-weight: 800; letter-spacing: -.03em; }
.proj-tile .pt-name { font-weight: 700; font-size: 14.5px; }
.proj-tile .pt-prm { font-size: 11.5px; color: var(--text-3); line-height: 1.5;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }

/* task panel (smart list / tag filter) */
.tasks-panel-head { display: flex; align-items: center; gap: 10px; margin: 18px 0 10px; }
.tasks-panel-head h2 { margin: 0; font-size: 19px; font-weight: 800; }
.tasks-panel-head .back { cursor: pointer; color: var(--accent); font-weight: 700; font-size: 13.5px;
  display: flex; align-items: center; gap: 4px; background: none; border: none; padding: 4px 8px; }

/* P/R/M header בעמוד פרויקט */
.prm-box { display: grid; gap: 0; border-radius: var(--r-md); overflow: hidden;
  border: .5px solid var(--hairline); flex-shrink: 0; }
.prm-line { display: flex; gap: 12px; padding: 11px 14px; align-items: baseline; }
.prm-line + .prm-line { border-top: .5px solid var(--hairline); }
.prm-key {
  width: 26px; height: 26px; border-radius: 8px; flex-shrink: 0;
  display: grid; place-items: center; font-weight: 800; font-size: 13px; color: #fff;
  align-self: center;
}
.prm-line .prm-lbl { font-size: 10.5px; font-weight: 700; color: var(--text-3);
  text-transform: uppercase; letter-spacing: .06em; width: 52px; flex-shrink: 0; align-self: center; }
.prm-line [contenteditable] { flex: 1; font-weight: 600; font-size: 14px; border-radius: 6px; padding: 2px 4px; }
.prm-line [contenteditable]:focus { background: var(--accent-soft); outline: 1.5px solid var(--accent); }
.prm-line [contenteditable]:empty::before { content: attr(data-ph); color: var(--text-3); font-weight: 400; }
.prm-line.m-line { background: rgba(120,120,128,.05); }

/* inline new task (Reminders style) */
.new-rem {
  display: flex; align-items: center; gap: 11px; padding: 10px 16px;
  color: var(--text-3); cursor: text;
}
.new-rem .radio { border-style: dashed; }
.new-rem input { border: none; background: none; flex: 1; font-size: 14.5px; padding: 0; box-shadow: none; }

/* ── week view (TickTick) ── */
.week-wrap { display: grid; grid-template-columns: 1fr var(--drawer-w, 250px); gap: 16px; align-items: start; }
.week-head { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; }
.week-head h2 { margin: 0; font-size: 19px; font-weight: 800; flex: 1; }
.week-card { background: var(--surface); border-radius: var(--r-lg);
  border: .5px solid var(--hairline); box-shadow: var(--shadow-1); overflow: hidden; }
.wk-days { display: grid; grid-template-columns: 46px repeat(7, 1fr); border-bottom: .5px solid var(--hairline); }
.wk-day-h { padding: 9px 4px 7px; text-align: center; font-size: 11.5px; font-weight: 700; color: var(--text-2); }
.wk-day-h .d-num {
  display: inline-grid; place-items: center; width: 24px; height: 24px;
  border-radius: 50%; font-size: 13px; margin-top: 2px;
}
.wk-day-h.today-col .d-num { background: var(--red); color: #fff; }
.wk-allday { display: grid; grid-template-columns: 46px repeat(7, 1fr);
  border-bottom: .5px solid var(--hairline); min-height: 34px; }
.wk-allday .ad-cell { border-right: .5px solid var(--hairline); padding: 4px; display: flex;
  flex-direction: column; gap: 3px; }
.wk-allday .ad-lbl { font-size: 10px; color: var(--text-3); display: grid; place-items: center; font-weight: 700; }
.ad-chip { font-size: 11px; font-weight: 600; border-radius: 6px; padding: 2px 7px;
  color: #fff; cursor: grab; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.wk-scroll { max-height: 62vh; overflow-y: auto; position: relative; }
.wk-grid { display: grid; grid-template-columns: 46px repeat(7, 1fr); position: relative; }
.wk-hours { position: relative; }
.wk-hour { height: 48px; font-size: 10px; color: var(--text-3); text-align: center;
  transform: translateY(-6px); font-weight: 600; }
.wk-col { position: relative; border-right: .5px solid var(--hairline); }
.wk-col .h-line { height: 48px; border-bottom: .5px solid var(--hairline); box-sizing: border-box; }
.wk-col.drop-hint { background: var(--accent-soft); }
.wk-col.today-col { background: rgba(255,69,58,.03); }
.wk-block {
  position: absolute; left: 3px; right: 3px; border-radius: 8px;
  color: #fff; font-size: 11.5px; font-weight: 600; padding: 4px 8px;
  cursor: grab; overflow: hidden; box-shadow: var(--shadow-1);
  border-right: 3px solid rgba(255,255,255,.5);
  user-select: none; z-index: 2;
}
.wk-block .wb-time { font-size: 10px; opacity: .8; font-weight: 700; }
.wk-block .resize-h {
  position: absolute; bottom: 0; left: 0; right: 0; height: 8px; cursor: ns-resize;
}
.wk-block.moving { opacity: .75; z-index: 5; box-shadow: var(--shadow-2); }
.wk-now-line { position: absolute; left: 0; right: 0; height: 2px; background: var(--red);
  z-index: 3; pointer-events: none; }
.wk-now-line::before { content: ''; position: absolute; right: -4px; top: -3px;
  width: 8px; height: 8px; border-radius: 50%; background: var(--red); }
.wk-drawer { background: var(--surface); border-radius: var(--r-lg);
  border: .5px solid var(--hairline); box-shadow: var(--shadow-1);
  overflow: hidden; position: relative; }
.wk-drawer h3 { margin: 0; font-size: 12.5px; color: var(--text-2); font-weight: 700; }
.wk-drawer .hint-drag { font-size: 11px; color: var(--text-3); padding: 0 16px 8px; }
.wk-drawer-head { display: flex; align-items: center; justify-content: space-between; padding: 12px 16px 8px; }
.wk-drawer-list { max-height: 64vh; overflow-y: auto; }
.wk-drawer-resize { position: absolute; right: -5px; top: 0; bottom: 0; width: 11px; cursor: ew-resize; z-index: 4; }
.wk-drawer-resize::before { content: ''; position: absolute; right: 5px; top: 50%; transform: translateY(-50%);
  width: 3px; height: 38px; border-radius: 3px; background: var(--hairline); transition: background .15s; }
.wk-drawer-resize:hover::before { background: var(--accent); height: 60px; }
.wk-grp { font-size: 11px; font-weight: 800; color: var(--text-3); text-transform: uppercase; letter-spacing: .04em;
  padding: 9px 16px 4px; display: flex; gap: 6px; align-items: center; position: sticky; top: 0; background: var(--surface); }
.wk-grp span { background: rgba(120,120,128,.14); border-radius: 10px; padding: 0 6px; font-size: 10.5px; }

/* ── sidebar מצומצם (toggle ידני) ── */
#sidebar { transition: width .3s var(--ease); }
.logo .logo-name { flex: 1; }
#sidebar.collapsed { width: 64px; padding: 16px 8px 10px; }
#sidebar.collapsed .logo { padding: 0 0 16px; justify-content: center; }
#sidebar.collapsed .logo-name, #sidebar.collapsed .foot-motto,
#sidebar.collapsed #nav a span, #sidebar.collapsed #tags-box,
#sidebar.collapsed #favorites-box { display: none; }
#sidebar.collapsed #nav a { justify-content: center; padding: 9px 0; }
#sidebar.collapsed .side-foot { flex-direction: column; gap: 2px; }
#sidebar.collapsed .logo .icon-btn { display: none; }
#sidebar.collapsed .logo-mark { cursor: pointer; }

@media (max-width: 980px) {
  .smart-grid { grid-template-columns: repeat(2, 1fr); }
  .week-wrap { grid-template-columns: 1fr; }
  #tags-box { display: none; }
}

/* ── מובייל ── */
@media (max-width: 700px) {
  #sidebar, #sidebar.collapsed { width: 58px; padding: 14px 6px 8px; }
  #sidebar .logo { padding: 0 0 14px; justify-content: center; }
  #sidebar .logo-name, #sidebar .foot-motto, #sidebar #nav a span,
  #sidebar #tags-box, #sidebar #favorites-box, #sidebar .logo .icon-btn { display: none; }
  #sidebar #nav a { justify-content: center; padding: 10px 0; }
  #sidebar .side-foot { flex-direction: column; gap: 2px; }

  #topbar { padding: 10px 12px 6px; }
  #topbar h1 { font-size: 14px; }
  .topbar-actions button { padding: 8px 10px; font-size: 0; gap: 0; }
  .topbar-actions button svg.icon { width: 16px; height: 16px; }
  #view { padding: 8px 12px 130px; }

  .day-hero h1 { font-size: 26px; }
  .day-hero-row { align-items: flex-start; }
  .smart-grid { gap: 8px; }
  .proj-tiles { grid-template-columns: repeat(2, 1fr); gap: 9px; }
  .rem-row { padding: 11px 12px; }
  .rem-side .more-btn, .rem-side .play-btn { display: none; } /* במובייל — swipe ותפריט דרך לחיצה */
  .board .col { width: 230px; }

  /* מודלים = bottom-sheet שמחליק מלמטה (סטנדרט מובייל מודרני) */
  .modal-back { place-items: end stretch; }
  .modal, .modal.wide, .modal.small {
    width: 100%; max-width: 100%; height: auto; max-height: 92dvh;
    border-radius: 24px 24px 0 0; padding: 14px 16px calc(18px + env(safe-area-inset-bottom));
    animation: sheetup .34s var(--spring);
  }
  .modal::before { content: ''; display: block; width: 40px; height: 4px; border-radius: 3px;
    background: var(--text-3); opacity: .45; margin: 0 auto 10px; flex-shrink: 0; }

  #now-bar { bottom: calc(12px + env(safe-area-inset-bottom)); max-width: 96vw; padding: 8px 10px 8px 14px; gap: 8px; }
  .nb-title { max-width: 130px; font-size: 13px; }
  .nb-track { display: none; }

  .cmdk-panel { width: 96vw; }
  #cmdk { padding-top: 6vh; }
  .wk-drawer { order: -1; }
  .ritual-inner { padding: 5vh 16px 40px; }
}

/* ── Google Calendar events (filled, colored) ── */
.wk-block.gcal {
  color: #fff; border-right: 3px solid var(--cal-c, rgba(255,255,255,.6));
  box-shadow: 0 1px 4px rgba(0,0,0,.18);
}
.wk-block.gcal .wb-time { color: rgba(255,255,255,.9); opacity: 1; }
.wk-block.gcal.declined { opacity: .5;
  background-image: repeating-linear-gradient(45deg, rgba(255,255,255,.25) 0 4px, transparent 4px 9px); }
.wk-block.gcal.declined .wb-title { text-decoration: line-through; }
.wk-block.readonly { cursor: default; }
.wb-title { white-space: normal; overflow: hidden; }
.wb-rsvp { display: inline-block; margin-right: 3px; font-weight: 800; opacity: .9; }
.wb-doc { font-size: 10px; }
.ad-chip.gcal {
  background: var(--surface) !important; color: var(--text);
  border: 1px solid var(--hairline); cursor: pointer; display: flex; align-items: center; gap: 5px;
}
.ad-chip.gcal .ad-c { width: 9px; height: 9px; border-radius: 50%; flex-shrink: 0; }

/* top + bottom resize handles */
.wk-block .resize-h.top { top: 0; bottom: auto; cursor: ns-resize; }
.wk-block:hover .resize-h { background: rgba(255,255,255,.25); }

/* event color swatches (in editor + context menu) */
.ev-colors { display: flex; flex-wrap: wrap; gap: 7px; padding: 4px 0; }
.ev-color { width: 24px; height: 24px; border-radius: 50%; padding: 0; cursor: pointer;
  border: 2px solid transparent; transition: transform .15s var(--spring); }
.ev-color:hover { transform: scale(1.15); }
.ev-color.on { border-color: var(--text); box-shadow: 0 0 0 2px var(--surface), 0 0 0 4px var(--text); }
.row-menu .ev-colors { padding: 4px 9px 7px; max-width: 220px; }

/* filter popover check/radio rows */
.rm-check { display: flex; align-items: center; gap: 9px; padding: 7px 11px; border-radius: 8px;
  cursor: pointer; font-size: 13.5px; font-weight: 600; }
.rm-check:hover { background: rgba(120,120,128,.1); }
.rm-check input { width: auto; margin: 0; }

.ev-doc-link { display: inline-flex; align-items: center; gap: 6px; color: var(--accent);
  font-weight: 700; font-size: 13px; text-decoration: none; padding: 4px 0; }
.ev-doc-link:hover { text-decoration: underline; }
textarea { resize: vertical; font-family: var(--font); }

/* ════════════════════════════════════════════════════════════
   v4 — דואר נכנס, רשימות, עריכת סטטוסים, שורות מורחבות, פרופיל
   ════════════════════════════════════════════════════════════ */

/* nav badge (דואר נכנס) */
.nav-badge {
  margin-right: auto; background: var(--accent); color: #fff;
  font-size: 11px; font-weight: 700; border-radius: 20px;
  min-width: 18px; height: 18px; padding: 0 5px;
  display: inline-flex; align-items: center; justify-content: center;
}
#nav a.active .nav-badge { background: var(--accent); }

/* sidebar lists */
#lists-box { margin-top: 22px; }
#lists-list { display: flex; flex-direction: column; gap: 1px; padding: 0 4px; }
.list-link {
  display: flex; align-items: center; gap: 9px; padding: 6px 8px;
  border-radius: 8px; text-decoration: none; color: var(--text-2);
  font-size: 13.5px; font-weight: 500;
}
.list-link:hover { background: rgba(120,120,128,.08); color: var(--text); }
.list-link.drop-hint { background: var(--accent-soft); }
.list-dot {
  width: 20px; height: 20px; border-radius: 50%; flex-shrink: 0;
  display: grid; place-items: center; font-size: 11px; color: #fff;
}
.list-name { flex: 1; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.list-count { font-size: 12px; color: var(--text-3); font-weight: 600; }
#sidebar.collapsed #lists-box, #sidebar.collapsed #lists-list { display: none; }
@media (max-width: 700px) { #sidebar #lists-box { display: none; } }

/* expandable project list rows */
.rlist-item { border-bottom: .5px solid var(--hairline); }
.rlist-item:last-child { border-bottom: none; }
.rlist-row .expander { transition: transform .2s var(--ease); transform: rotate(0); margin-left: 2px; }
.rlist-row .rlist-name[data-openproj] { cursor: pointer; }
.rlist-row .rlist-name[data-openproj]:hover { color: var(--accent); }
.rlist-sub {
  background: rgba(120,120,128,.04); padding: 2px 0 4px 0;
  border-top: .5px solid var(--hairline);
}
.rlist-sub .rem-row { background: transparent; padding-right: 30px; }
.rlist-sub .swipe-wrap:last-of-type .rem-row { border-bottom: none; }
.new-rem.mini { padding: 7px 30px; }
.new-rem.mini .radio { width: 18px; height: 18px; }
.new-rem.mini input { font-size: 13.5px; }
.cmt-dot {
  position: absolute; top: -2px; left: -2px; background: var(--accent); color: #fff;
  font-size: 9px; font-weight: 700; border-radius: 10px; min-width: 14px; height: 14px;
  display: grid; place-items: center; padding: 0 3px;
}
.more-btn { position: relative; }

/* board — add status column + color dots */
.col-add { background: transparent; display: flex; align-items: flex-start; padding-top: 4px; }
.col-add button { width: 100%; justify-content: center; }
.color-dot {
  width: 22px; height: 22px; border-radius: 50%; cursor: pointer;
  transition: transform .15s var(--spring); border: 2px solid transparent;
}
.color-dot:hover { transform: scale(1.15); }
.color-dot.on { border-color: var(--text); transform: scale(1.12); }

/* row-menu inputs spacing */
.row-menu input { margin: 4px 6px; width: calc(100% - 12px); }

/* רענון יומן — אנימציית סיבוב */
#wk-refresh.spinning svg { animation: spin .6s var(--ease); }
@keyframes spin { from { transform: rotate(0); } to { transform: rotate(-360deg); } }

/* ════════════════════════════════════════════════════════════
   פתקים (Notes) — Keep masonry × Apple Notes folders
   ════════════════════════════════════════════════════════════ */
.notes-toolbar { display: flex; align-items: center; gap: 10px; margin: 2px 0 16px; flex-wrap: wrap; }
.nfolders { display: flex; gap: 7px; flex-wrap: wrap; flex: 1; }
.nfolder {
  display: inline-flex; align-items: center; gap: 7px; background: var(--surface);
  border: .5px solid var(--hairline); border-radius: 20px; padding: 5px 13px;
  font-size: 13px; font-weight: 600; color: var(--text-2); cursor: pointer;
  box-shadow: var(--shadow-1); transition: transform .15s var(--spring), background .15s;
}
.nfolder:hover { transform: translateY(-1px); color: var(--text); }
.nfolder.on { background: var(--text); color: var(--bg); border-color: transparent; }
.nfolder.on .nf-count { color: var(--bg); opacity: .7; }
.nfolder.drop-hint { outline: 2px dashed var(--accent); background: var(--accent-soft); }
.nf-dot { width: 15px; height: 15px; border-radius: 50%; flex-shrink: 0; display: grid;
  place-items: center; font-size: 9px; }
.nf-count { font-size: 11.5px; color: var(--text-3); font-weight: 700; }
.nf-edit { display: grid; place-items: center; opacity: 0; margin-right: -3px; }
.nfolder:hover .nf-edit { opacity: .6; }
.nf-edit:hover { opacity: 1; }
.nf-edit svg.icon { width: 14px; height: 14px; }

/* composer */
.note-composer {
  max-width: 600px; margin: 0 auto 22px; background: var(--surface);
  border-radius: 13px; border: .5px solid var(--hairline); box-shadow: var(--shadow-2);
  padding: 4px; transition: background .25s;
}
.note-composer > input {
  width: 100%; border: none; background: none; box-shadow: none;
  font-size: 15px; font-weight: 600; padding: 11px 14px;
}
.note-composer .nc-expand { display: none; padding: 0 12px 10px; }
.note-composer.open .nc-expand { display: block; }
.note-composer.open > input { font-weight: 700; }
.note-composer textarea {
  width: 100%; border: none; background: none; box-shadow: none; resize: vertical;
  font-size: 14px; line-height: 1.6; padding: 4px 2px 8px;
}
.nc-new-actions { display: flex; align-items: center; gap: 8px; margin-top: 6px; }

/* color swatches */
.note-swatches { display: flex; flex-wrap: wrap; gap: 6px; padding: 4px 0; }
.nsw {
  width: 26px; height: 26px; border-radius: 50%; padding: 0; cursor: pointer;
  border: 1.5px solid var(--hairline); display: grid; place-items: center;
  transition: transform .15s var(--spring);
}
.nsw:hover { transform: scale(1.15); }
.nsw.on { border-color: var(--text); }
.nsw svg.icon { width: 13px; height: 13px; stroke-width: 3; color: var(--text); }

/* masonry */
.notes-sect { font-size: 11px; font-weight: 700; color: var(--text-3); text-transform: uppercase;
  letter-spacing: .06em; margin: 10px 2px 9px; display: flex; align-items: center; gap: 6px; }
.notes-sect svg.icon { width: 13px; height: 13px; }
.notes-masonry { columns: 240px; column-gap: 13px; }
.note-card {
  break-inside: avoid; margin: 0 0 13px; border-radius: 14px; padding: 14px 15px 8px;
  border: 1px solid var(--hairline); box-shadow: var(--shadow-1); cursor: pointer;
  position: relative; transition: transform .18s var(--spring), box-shadow .18s;
  display: inline-block; width: 100%;
}
.note-card:hover { box-shadow: var(--shadow-2); transform: translateY(-2px); }
.note-card.dragging { opacity: .4; }
.nc-pin {
  position: absolute; top: 8px; left: 8px; background: rgba(255,255,255,.5);
  border: none; width: 28px; height: 28px; border-radius: 50%; padding: 0; cursor: pointer;
  display: grid; place-items: center; color: var(--text-2); opacity: 0; transition: opacity .15s;
}
[data-theme="dark"] .nc-pin { background: rgba(0,0,0,.3); }
.note-card:hover .nc-pin, .nc-pin.on { opacity: 1; }
.nc-pin.on { color: var(--amber); }
.nc-pin.on svg { fill: var(--amber); }
.nc-pin svg.icon { width: 16px; height: 16px; }
.nc-title { font-weight: 800; font-size: 15.5px; margin-bottom: 6px; letter-spacing: -.01em;
  color: #1d1d1f; padding-left: 26px; }
[data-theme="dark"] .nc-title, [data-theme="dark"] .nc-body { color: #1d1d1f; }
.nc-body { font-size: 13.5px; line-height: 1.5; color: #1d1d1f; word-break: break-word; }
.nc-line { white-space: pre-wrap; }
.nc-line.empty-line { min-height: 6px; }
.nc-check { display: flex; align-items: flex-start; gap: 7px; padding: 2px 0; cursor: pointer; }
.nc-check .nc-box { width: 16px; height: 16px; border-radius: 5px; border: 1.6px solid rgba(0,0,0,.35);
  flex-shrink: 0; display: grid; place-items: center; margin-top: 1px; color: #fff; }
.nc-check.on .nc-box { background: #1d1d1f; border-color: #1d1d1f; }
.nc-check.on { text-decoration: line-through; opacity: .55; }
.nc-check svg.icon { width: 11px; height: 11px; stroke-width: 3.5; }
.nc-foot { display: flex; align-items: center; justify-content: space-between; gap: 8px;
  margin-top: 9px; min-height: 26px; }
.nc-folder { display: inline-flex; align-items: center; gap: 5px; font-size: 11px; font-weight: 700;
  color: rgba(0,0,0,.5); }
.nc-actions { display: flex; gap: 1px; opacity: 0; transition: opacity .15s; }
.note-card:hover .nc-actions { opacity: 1; }
.nc-actions button { background: none; border: none; padding: 5px; border-radius: 7px; cursor: pointer;
  color: rgba(0,0,0,.45); display: grid; place-items: center; }
.nc-actions button:hover { background: rgba(0,0,0,.08); color: rgba(0,0,0,.8); }
.nc-actions svg.icon { width: 16px; height: 16px; }

/* note editor modal */
.note-ed-bar { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-top: 4px; }
.note-ed-bar select { width: auto; }
.row-menu .note-swatches { padding: 4px 6px; max-width: 200px; }

@media (max-width: 700px) {
  .notes-masonry { columns: 160px; column-gap: 10px; }
  .note-composer { margin-bottom: 16px; }
}

/* ════════════════════════════════════════════════════════════
   Sidebar v5 — pinnable tiles, Folders→Lists tree, 3-state collapse
   ════════════════════════════════════════════════════════════ */
#tiles-box { margin-bottom: 8px; }
#tiles-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 7px; }
.tile {
  position: relative; background: var(--tc, var(--accent)); color: #fff;
  border: none; border-radius: 12px; padding: 9px 11px 8px; cursor: pointer;
  text-align: right; display: flex; flex-direction: column; gap: 1px; min-height: 58px;
  box-shadow: var(--shadow-1); transition: transform .15s var(--spring), filter .15s; overflow: hidden;
}
.tile:hover { transform: translateY(-1px); filter: brightness(1.06); }
.tile.active { outline: 2.5px solid var(--tc); outline-offset: 1.5px; }
.tile-ico { position: absolute; top: 8px; left: 9px; opacity: .9; }
.tile-ico svg.icon { width: 17px; height: 17px; color: #fff; }
.tile-num { font-size: 21px; font-weight: 800; letter-spacing: -.03em; line-height: 1.1; }
.tile-label { font-size: 12px; font-weight: 700; opacity: .95; }
.tile.tile-edit { background: rgba(120,120,128,.12); color: var(--text-3); align-items: center;
  justify-content: center; min-height: 0; padding: 7px; box-shadow: none; grid-column: span 2; }
.tile.tile-edit svg.icon { width: 15px; height: 15px; }
.tile.tile-edit:hover { background: rgba(120,120,128,.2); }
.tile-ico.mini svg.icon { width: 15px; height: 15px; }

/* tile customizer */
.tile-cust { display: flex; flex-direction: column; gap: 2px; }
.tile-cust-row { display: flex; align-items: center; justify-content: space-between; gap: 8px;
  padding: 6px 4px; border-bottom: .5px solid var(--hairline); }
.tile-cust-row .chk { gap: 8px; }
.tile-cust-row input[type=color] { width: 34px; height: 26px; padding: 0; border-radius: 7px; border: 1px solid var(--hairline); cursor: pointer; }
.tile-cust .tile-ico { position: static; }

/* folders tree */
#folders-box { margin-top: 22px; }
#folders-list { display: flex; flex-direction: column; gap: 1px; }
.flist-row { display: flex; align-items: center; gap: 8px; padding: 6px 8px; border-radius: 8px;
  text-decoration: none; color: var(--text-2); font-size: 13.5px; font-weight: 500; cursor: pointer; }
.flist-row:hover { background: rgba(120,120,128,.08); color: var(--text); }
.flist-row.active { background: var(--accent-soft); color: var(--accent); }
.flist-row.drop-hint { background: var(--accent-soft); outline: 1.5px dashed var(--accent); }
.flist-name { flex: 1; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.flist-count { font-size: 11.5px; color: var(--text-3); font-weight: 700; }
.flist-act { opacity: 0; display: grid; place-items: center; }
.flist-row:hover .flist-act { opacity: .55; }
.flist-act:hover { opacity: 1; }
.flist-act svg.icon { width: 15px; height: 15px; }
.folder-row { font-weight: 700; color: var(--text); }
.fold-chev { display: grid; place-items: center; transition: transform .18s var(--ease); }
.fold-chev svg.icon { width: 14px; height: 14px; transform: rotate(90deg); }
.folder-row.collapsed .fold-chev svg.icon { transform: rotate(0deg); }
.fold-ico { width: 20px; height: 20px; border-radius: 6px; flex-shrink: 0; display: grid;
  place-items: center; font-size: 11px; color: #fff; }
.fold-ico.big { width: 34px; height: 34px; border-radius: 9px; font-size: 17px; }
.folder-children { display: flex; flex-direction: column; gap: 1px; margin: 1px 0 3px; }
.folder-children[hidden] { display: none !important; }
.list-row { padding-right: 26px; }
.list-row.dragging { opacity: .4; }
.list-dot { width: 18px; height: 18px; border-radius: 50%; flex-shrink: 0; display: grid;
  place-items: center; font-size: 10px; color: #fff; }
.folder-empty { font-size: 11px; color: var(--text-3); padding: 3px 26px; }

/* scope head + view tabs */
.scope-head { display: flex; align-items: center; gap: 12px; margin: 4px 0 14px; }
.scope-head h1 { margin: 0; font-size: 26px; font-weight: 800; letter-spacing: -.02em; }
.view-tabs { display: flex; gap: 4px; border-bottom: 1.5px solid var(--hairline); margin-bottom: 18px; }
.vtab { background: none; border: none; border-bottom: 2.5px solid transparent; margin-bottom: -1.5px;
  color: var(--text-2); font-weight: 700; font-size: 14px; padding: 8px 14px; cursor: pointer;
  display: inline-flex; align-items: center; gap: 7px; border-radius: 0; }
.vtab svg.icon { width: 16px; height: 16px; }
.vtab:hover { color: var(--text); }
.vtab.on { color: var(--accent); border-bottom-color: var(--accent); }

/* 3-state collapse: hidden */
#sidebar.hidden { width: 0; padding: 0; border: none; overflow: hidden; opacity: 0; pointer-events: none; }
#btn-side-reopen { position: fixed; top: 14px; right: 14px; z-index: 30; width: 38px; height: 38px;
  border-radius: 11px; background: var(--surface); border: .5px solid var(--hairline); box-shadow: var(--shadow-2);
  display: none; place-items: center; color: var(--text-2); cursor: pointer; padding: 0; }
#btn-side-reopen.show { display: grid; }
#btn-side-reopen:hover { color: var(--accent); }
#sidebar.collapsed #tiles-grid { grid-template-columns: 1fr; }
#sidebar.collapsed .tile-label, #sidebar.collapsed .tile-num,
#sidebar.collapsed #folders-box, #sidebar.collapsed .side-title { display: none; }
#sidebar.collapsed .tile { min-height: 40px; align-items: center; padding: 9px; }
#sidebar.collapsed .tile-ico { position: static; }

/* settings: nav-visibility grid + toggle rows */
.navvis-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 6px 14px; margin-top: 4px; }
.navvis-grid .chk { font-weight: 600; }
.toggle-row { background: rgba(120,120,128,.07); border-radius: 10px; padding: 10px 12px; font-weight: 600; }

/* ── declutter / focus mode — מסתיר רעשים ── */
[data-declutter="1"] .foot-motto,
[data-declutter="1"] .hint,
[data-declutter="1"] .hint-drag,
[data-declutter="1"] .nav-badge,
[data-declutter="1"] .dh-sub,
[data-declutter="1"] .pt-prm,
[data-declutter="1"] #view > p,
[data-declutter="1"] .count-badge { display: none !important; }
[data-declutter="1"] .section { margin-bottom: 18px; }

/* ── task type + custom fields ── */
.t-type-ico { margin-left: 5px; font-size: 13px; }
.cf-chip { display: inline-flex; align-items: center; font-size: 11px; font-weight: 700;
  border-radius: 6px; padding: 1px 7px; background: rgba(120,120,128,.12); color: var(--text-2); }
.type-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 3px; padding: 5px; max-width: 240px; }
.type-opt { font-size: 17px; padding: 6px 0; border-radius: 8px; background: none; border: none; cursor: pointer; line-height: 1; }
.type-opt:hover { background: rgba(120,120,128,.14); }
.type-opt.on { background: var(--accent-soft); outline: 1.5px solid var(--accent); }
.cf-row { display: flex; align-items: center; gap: 8px; padding: 4px 10px; }
.cf-row .cf-name { flex: 1; font-size: 12.5px; font-weight: 700; color: var(--text-2); }
.cf-row input[type=text], .cf-row input[type=number], .cf-row input[type=date], .cf-row select {
  width: 130px; font-size: 12.5px; padding: 4px 8px; }
.cf-row input[type=checkbox] { width: auto; }

/* ── ClickUp-style task table ── */
.task-table-wrap { overflow-x: auto; border-radius: var(--r-lg); border: .5px solid var(--hairline); box-shadow: var(--shadow-1); }
table.ttable { width: 100%; border-collapse: collapse; background: var(--surface); font-size: 13px; }
table.ttable th { text-align: right; font-size: 11px; font-weight: 700; color: var(--text-3);
  padding: 9px 12px; border-bottom: 1.5px solid var(--hairline); white-space: nowrap; text-transform: uppercase; letter-spacing: .04em; }
table.ttable td { padding: 7px 12px; border-bottom: .5px solid var(--hairline); }
table.ttable tr:hover td { background: rgba(120,120,128,.04); }
table.ttable .tt-name { font-weight: 600; min-width: 220px; }
table.ttable .tt-type { width: 44px; text-align: center; font-size: 16px; cursor: pointer; }
table.ttable input, table.ttable select { border: none; background: transparent; box-shadow: none;
  padding: 3px 5px; font-size: 12.5px; width: 100%; }
table.ttable input:focus, table.ttable select:focus { background: var(--surface); box-shadow: 0 0 0 2px var(--accent-soft); }
.tt-addcol { color: var(--accent); cursor: pointer; font-weight: 700; }

/* ════════════════════════════════════════════════════════════
   יועץ המשימות — צ'אט (FAB + panel)
   ════════════════════════════════════════════════════════════ */
#agent-fab {
  position: fixed; bottom: 22px; left: 22px; z-index: 45;
  width: 54px; height: 54px; border-radius: 50%; padding: 0;
  background: linear-gradient(140deg, #0A84FF, #BF5AF2); color: #fff;
  display: grid; place-items: center; cursor: pointer;
  box-shadow: 0 6px 22px rgba(10,132,255,.4); border: none;
  transition: transform .2s var(--spring), box-shadow .2s;
}
#agent-fab:hover { transform: scale(1.08) rotate(-6deg); box-shadow: 0 8px 28px rgba(10,132,255,.55); }
#agent-fab svg.icon { width: 26px; height: 26px; }
#agent-panel {
  position: fixed; bottom: 22px; left: 22px; z-index: 46;
  width: 400px; max-width: calc(100vw - 28px); height: 600px; max-height: calc(100vh - 44px);
  background: var(--surface); border-radius: 20px; border: .5px solid var(--hairline);
  box-shadow: var(--shadow-2); display: flex; flex-direction: column; overflow: hidden;
  animation: modalpop .3s var(--spring);
}
#agent-panel[hidden] { display: none; }
.ap-head { display: flex; align-items: center; justify-content: space-between;
  padding: 13px 16px; border-bottom: .5px solid var(--hairline);
  background: linear-gradient(140deg, rgba(10,132,255,.08), rgba(191,90,242,.06)); }
.ap-title { display: flex; align-items: center; gap: 10px; }
.ap-title b { font-size: 15px; font-weight: 800; display: block; }
.ap-title small { font-size: 11px; color: var(--text-3); }
.ap-dot { width: 9px; height: 9px; border-radius: 50%; background: var(--green);
  box-shadow: 0 0 0 3px var(--green-soft); flex-shrink: 0; }
.ap-head-btns { display: flex; gap: 2px; }
.ap-head-btns .icon-btn { font-size: 14px; }
#ap-sessions { border-bottom: .5px solid var(--hairline); max-height: 220px; overflow-y: auto;
  background: var(--bg); padding: 5px; }
#ap-sessions[hidden] { display: none; }
.ap-sess { display: flex; flex-direction: column; align-items: flex-start; width: 100%;
  background: none; border: none; padding: 8px 11px; border-radius: 9px; cursor: pointer;
  text-align: right; font-size: 13.5px; font-weight: 600; color: var(--text); gap: 2px; }
.ap-sess:hover { background: rgba(120,120,128,.1); }
.ap-sess small { font-size: 10.5px; color: var(--text-3); font-weight: 500; }
#ap-messages { flex: 1; overflow-y: auto; padding: 16px; display: flex; flex-direction: column; gap: 11px; }
.ap-msg { max-width: 85%; padding: 10px 13px; border-radius: 15px; font-size: 14px; line-height: 1.55;
  word-break: break-word; animation: fadein .2s var(--ease); }
.ap-msg.user { align-self: flex-start; background: var(--accent); color: #fff; border-bottom-right-radius: 5px; }
.ap-msg.assistant { align-self: flex-end; background: rgba(120,120,128,.12); color: var(--text); border-bottom-left-radius: 5px; }
.ap-msg a { color: inherit; text-decoration: underline; }
.ap-msg code { background: rgba(120,120,128,.2); border-radius: 5px; padding: 1px 5px; font-size: 12.5px; }
.ap-msg .ap-li { padding: 1px 0; }
.ap-typing { display: inline-flex; gap: 4px; }
.ap-typing i { width: 7px; height: 7px; border-radius: 50%; background: var(--text-3); animation: aptype 1.2s infinite; }
.ap-typing i:nth-child(2) { animation-delay: .2s; } .ap-typing i:nth-child(3) { animation-delay: .4s; }
@keyframes aptype { 0%,60%,100% { opacity: .3; transform: translateY(0); } 30% { opacity: 1; transform: translateY(-3px); } }
#ap-thumb { padding: 6px 14px 0; }
#ap-thumb[hidden] { display: none; }
#ap-thumb img { height: 54px; border-radius: 9px; border: 1px solid var(--hairline); }
#ap-thumb button { background: var(--text); color: var(--bg); border: none; border-radius: 50%;
  width: 20px; height: 20px; cursor: pointer; vertical-align: top; margin-right: -8px; }
.ap-input { display: flex; align-items: flex-end; gap: 6px; padding: 11px 13px;
  border-top: .5px solid var(--hairline); }
.ap-input textarea { flex: 1; resize: none; border-radius: 14px; padding: 9px 13px; font-size: 14px;
  max-height: 120px; line-height: 1.4; }
.ap-input .icon-btn { font-size: 17px; flex-shrink: 0; padding: 8px; }
.ap-input #ap-mic.rec { color: var(--red); animation: nbpulse 1s infinite; }
.ap-input #ap-send { border-radius: 50%; width: 38px; height: 38px; padding: 0; flex-shrink: 0;
  font-size: 15px; display: grid; place-items: center; }
@media (max-width: 700px) {
  #agent-panel { width: 100vw; height: 100dvh; max-height: 100dvh; bottom: 0; left: 0; border-radius: 0; }
  #agent-fab { bottom: 80px; left: 14px; width: 48px; height: 48px; }
}


/* ═══════════ תוכן (Content) — הוגר מ-CoS 2026-06-18 ═══════════ */
.content-toolbar { display:flex; justify-content:space-between; align-items:center; gap:12px;
  flex-wrap:wrap; margin-bottom:16px; }
.cfilters { display:flex; gap:7px; flex-wrap:wrap; }
.cfilter { display:inline-flex; align-items:center; gap:6px; padding:6px 13px; border-radius:20px;
  border:1px solid var(--hairline); background:var(--surface); color:var(--text-2); font-family:var(--font);
  font-size:13px; font-weight:600; cursor:pointer; transition:.15s; }
.cfilter:hover { background:var(--bg-tint); }
.cfilter.on { background:var(--accent); color:#fff; border-color:var(--accent); }
.cfilter.on.tag { background:var(--accent-soft); color:var(--accent); }
.cfn { font-size:11px; opacity:.8; background:rgba(120,120,128,.18); border-radius:9px; padding:0 6px; }
.cfilter.on .cfn { background:rgba(255,255,255,.25); }
.content-tools { display:flex; gap:8px; align-items:center; flex-wrap:wrap; }
.csearch { padding:7px 13px; border-radius:18px; border:1px solid var(--hairline); background:var(--surface);
  color:var(--text); font-family:var(--font); font-size:13px; width:150px; }
.csearch:focus { outline:none; border-color:var(--accent); width:200px; }

/* grid (קוביות) — masonry */
.content-grid { column-width:290px; column-gap:16px; }
.content-list { display:flex; flex-direction:column; gap:8px; }

.content-card { position:relative; break-inside:avoid; margin-bottom:16px; padding:15px 16px 12px;
  border-radius:var(--r-lg); border:1px solid var(--hairline); box-shadow:var(--shadow-1);
  cursor:default; transition:box-shadow .15s, transform .15s; }
.content-card:hover { box-shadow:var(--shadow-2); }
.content-card.dragging { opacity:.5; transform:scale(.98); }
.cc-star { position:absolute; top:9px; left:9px; background:transparent; border:none; cursor:pointer;
  color:var(--text-3); padding:3px; border-radius:8px; line-height:0; }
.cc-star .icon { width:18px; height:18px; }
.cc-star.on { color:#FFB400; }
.cc-star.on .icon { fill:#FFB400; }
.cc-cover { margin:-4px -4px 10px; border-radius:var(--r-md); overflow:hidden; cursor:pointer; }
.cc-cover img { width:100%; display:block; }
.cc-hook { font-size:15.5px; font-weight:700; line-height:1.35; color:var(--text); padding-left:22px;
  outline:none; border-radius:6px; }
.cc-insight { font-size:13px; color:var(--text-2); line-height:1.5; margin-top:7px; outline:none; border-radius:6px; }
.cc-insight.ph:empty::before { content:'הוסף תובנה…'; color:var(--text-3); }
.cc-quote { font-size:12.5px; font-style:italic; color:var(--text-2); margin-top:8px; padding-right:9px;
  border-right:3px solid var(--accent-soft); }
.cc-angle { font-size:12px; color:var(--text-3); margin-top:7px; outline:none; border-radius:6px; }
.cc-bodyhint { display:inline-flex; align-items:center; gap:4px; font-size:11.5px; font-weight:600;
  color:var(--accent); margin-top:9px; cursor:pointer; }
.cc-bodyhint .icon { width:14px; height:14px; }
[contenteditable]:focus { background:var(--bg-tint); box-shadow:0 0 0 2px var(--accent-soft); }
.cc-meta { display:flex; flex-wrap:wrap; gap:5px; margin-top:10px; align-items:center; }
.cc-src { display:inline-flex; align-items:center; gap:4px; font-size:11px; color:var(--text-3);
  max-width:100%; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.cc-src .icon { width:13px; height:13px; flex:none; }
.cc-tag { font-size:11px; font-weight:600; padding:2px 8px; border-radius:9px; white-space:nowrap; }
.cc-foot { display:flex; justify-content:space-between; align-items:center; margin-top:11px;
  padding-top:9px; border-top:1px solid var(--hairline); }
.cc-status { font-size:10.5px; font-weight:700; padding:2px 9px; border-radius:8px;
  background:rgba(120,120,128,.15); color:var(--text-2); }
.cc-status.s-new { background:rgba(10,132,255,.15); color:var(--accent); }
.cc-status.s-developed { background:rgba(48,209,88,.18); color:#1f9c44; }
.cc-status.s-published { background:rgba(191,90,242,.18); color:#9b59b6; }
.cc-actions { display:flex; gap:2px; }
.cc-actions button { background:transparent; border:none; cursor:pointer; color:var(--text-3);
  padding:5px; border-radius:8px; line-height:0; transition:.12s; }
.cc-actions button:hover { background:var(--bg-tint); color:var(--text); }
.cc-actions .icon { width:17px; height:17px; }

/* list (רשת) */
.content-row { display:flex; align-items:center; gap:10px; padding:10px 13px; background:var(--surface);
  border:1px solid var(--hairline); border-radius:var(--r-md); transition:.12s; }
.content-row:hover { box-shadow:var(--shadow-1); }
.content-row.dragging { opacity:.5; }
.cr-dot { width:9px; height:9px; border-radius:50%; flex:none; }
.cr-main { flex:1; min-width:0; }
.cr-hook { font-size:14px; font-weight:600; color:var(--text); outline:none; border-radius:6px;
  white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.cr-hook:focus { white-space:normal; }
.cr-sub { display:flex; flex-wrap:wrap; gap:5px; align-items:center; margin-top:3px; }
.cr-thumb { width:42px; height:42px; object-fit:cover; border-radius:8px; flex:none; }

/* color swatches (right-click) */
.csw-row { display:flex; gap:6px; flex-wrap:wrap; padding:6px 4px; }
.csw { width:22px; height:22px; border-radius:50%; border:2px solid; cursor:pointer; padding:0; }
.csw.on { box-shadow:0 0 0 2px var(--accent); }
.row-menu.wide-menu { min-width:210px; }
.rm-label { font-size:11px; font-weight:700; color:var(--text-3); padding:6px 10px 2px; }

/* develop + image dialogs */
.fld-lbl { display:block; font-size:12px; font-weight:700; color:var(--text-2); margin:12px 0 5px; }
.fmt-chips { display:flex; flex-wrap:wrap; gap:6px; }
.fmt-chip { padding:6px 14px; border-radius:18px; border:1px solid var(--hairline); background:var(--surface);
  color:var(--text-2); font-family:var(--font); font-size:13px; font-weight:600; cursor:pointer; }
.fmt-chip.on { background:var(--accent); color:#fff; border-color:var(--accent); }
.eng-grid { display:grid; grid-template-columns:1fr 1fr; gap:8px; }
.eng-card { display:flex; flex-direction:column; align-items:flex-start; gap:2px; text-align:right;
  padding:11px 13px; border-radius:var(--r-md); border:1.5px solid var(--hairline); background:var(--surface);
  cursor:pointer; font-family:var(--font); transition:.12s; }
.eng-card:hover { border-color:var(--accent-soft); }
.eng-card.on { border-color:var(--accent); background:var(--accent-soft); }
.eng-name { font-size:13.5px; font-weight:700; color:var(--text); }
.eng-hint { font-size:11px; color:var(--text-3); }

/* detail modal */
.cd-head { display:flex; align-items:center; gap:10px; justify-content:space-between; }
.cd-head h2 { outline:none; border-radius:6px; flex:1; }
.cd-src { margin:4px 0 10px; }
.cd-fields { margin-bottom:6px; }
.cd-edit { font-size:13.5px; color:var(--text); line-height:1.5; padding:8px 10px; border-radius:var(--r-sm);
  background:var(--bg-tint); border:1px solid var(--hairline); outline:none; min-height:20px; }
.cd-edit:empty::before { content:'—'; color:var(--text-3); }
.cd-quote { font-size:13px; font-style:italic; color:var(--text-2); padding-right:10px; border-right:3px solid var(--accent-soft); }
.cd-section { margin-top:16px; }
.cd-sec-head { display:flex; justify-content:space-between; align-items:center; margin-bottom:7px;
  font-size:13px; font-weight:700; color:var(--text-2); }
.cd-img-btns { display:flex; gap:6px; }
#cd-body { width:100%; font-family:var(--font); font-size:14px; line-height:1.6; padding:11px 13px;
  border-radius:var(--r-md); border:1px solid var(--hairline); background:var(--surface); color:var(--text); resize:vertical; }
.cd-gallery { display:flex; flex-wrap:wrap; gap:10px; }
.cd-img { position:relative; width:120px; height:120px; border-radius:var(--r-md); overflow:hidden;
  border:2px solid transparent; }
.cd-img.cover { border-color:#FFB400; }
.cd-img img { width:100%; height:100%; object-fit:cover; display:block; }
.cd-img-ov { position:absolute; inset:0; display:flex; align-items:flex-end; justify-content:space-between;
  padding:5px; background:linear-gradient(transparent,rgba(0,0,0,.45)); opacity:0; transition:.15s; }
.cd-img:hover .cd-img-ov { opacity:1; }
.cd-img-ov button { background:rgba(255,255,255,.92); border:none; border-radius:7px; padding:4px; cursor:pointer; line-height:0; }
.cd-img-ov .icon { width:15px; height:15px; }

/* sidebar tag = drop target for content cards */
.tagchip.tag-drop { box-shadow:0 0 0 2px var(--accent); transform:scale(1.06); }

/* מובייל: כל ה-inputs ≥16px — מונע zoom אוטומטי של iOS בטפסים (review fix) */
@media (max-width: 700px) {
  input, select, textarea,
  .cf-row input, .cf-row select, table.ttable input, table.ttable select,
  .ap-input textarea { font-size: 16px; }
}

/* ═══════════ request #5 — הסתרת קוביות smart ═══════════ */
[data-hide-smart="1"] .smart-grid { display: none; }

/* ═══════════ לשוניות מותאמות — דיאלוג + הטמעה (request #2) ═══════════ */
.ct-kinds { display: grid; grid-template-columns: 1fr 1fr; gap: 7px; margin: 10px 0; }
.ct-kind { display: flex; align-items: center; gap: 8px; padding: 10px 12px; border-radius: var(--r-sm);
  border: 1.5px solid var(--hairline); background: var(--surface); color: var(--text-2);
  cursor: pointer; font-weight: 600; font-size: 13.5px; font-family: var(--font); }
.ct-kind svg.icon { width: 18px; height: 18px; }
.ct-kind:hover { border-color: var(--accent); color: var(--text); }
.ct-kind.on { border-color: var(--accent); background: var(--accent-soft); color: var(--accent); }
.embed-wrap { height: calc(100dvh - 140px); border-radius: var(--r-md); overflow: hidden;
  box-shadow: var(--shadow-1); border: 1px solid var(--hairline); background: var(--surface); }
.embed-frame { width: 100%; height: 100%; border: none; }
.ctabs-manage { display: flex; flex-direction: column; gap: 4px; }
.ctab-manage-row { display: flex; align-items: center; justify-content: space-between; gap: 8px;
  padding: 6px 10px; border-radius: 8px; background: rgba(120,120,128,.06); font-size: 13px; font-weight: 600; }
.ctab-manage-row svg.icon { width: 15px; height: 15px; vertical-align: -2px; }

/* ═══════════ תצוגת טבלה עם עמודות (request #3) ═══════════ */
.ctable-wrap { overflow-x: auto; border-radius: var(--r-md); border: 1px solid var(--hairline);
  background: var(--surface); box-shadow: var(--shadow-1); }
.ctable { width: 100%; border-collapse: collapse; font-size: 13.5px; }
.ctable th { text-align: right; font-size: 11.5px; font-weight: 700; color: var(--text-3);
  padding: 9px 12px; border-bottom: 1px solid var(--hairline); white-space: nowrap;
  position: sticky; top: 0; background: var(--surface); z-index: 1; }
.ctable th[data-colhdr] { cursor: default; }
.ctable th .col-x { opacity: 0; cursor: pointer; margin-inline-start: 6px; color: var(--text-3);
  font-weight: 800; padding: 0 3px; }
.ctable th[data-colhdr]:hover .col-x { opacity: .7; }
.ctable td { padding: 5px 12px; border-bottom: .5px solid var(--hairline); vertical-align: middle; }
.ctable tbody tr:hover { background: rgba(120,120,128,.04); }
.ctable .tcol-chk { width: 34px; }
.ctable .tcol-title { min-width: 200px; }
.ctable .tcol-must { width: 54px; text-align: center; }
.ctable .tcol-add { width: 40px; }
.t-edit { outline: none; border-radius: 5px; padding: 2px 4px; display: inline-block; min-width: 60px;
  font-weight: 600; }
.t-edit:focus { background: var(--accent-soft); box-shadow: 0 0 0 2px var(--accent-soft); }
.ctable .cell-inp, .ctable td input, .ctable td select {
  border: 1px solid transparent; background: transparent; padding: 3px 6px; border-radius: 6px;
  font-family: var(--font); font-size: 13px; color: var(--text); max-width: 150px; }
.ctable td input:hover, .ctable td select:hover { border-color: var(--hairline); }
.ctable td input:focus, .ctable td select:focus { border-color: var(--accent); background: var(--surface); box-shadow: 0 0 0 2.5px var(--accent-soft); }
.radio.mini { width: 18px; height: 18px; border-width: 1.5px; }
.must-star { cursor: pointer; color: var(--text-3); font-size: 16px; transition: color .15s, transform .15s; }
.must-star:hover { transform: scale(1.15); }
.must-star.on { color: var(--amber); }
.mini-chip { display: inline-flex; align-items: center; gap: 4px; font-size: 12px; font-weight: 600;
  color: var(--text-2); background: color-mix(in srgb, var(--c) 14%, transparent); padding: 2px 8px; border-radius: 20px;
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--c) 30%, transparent); white-space: nowrap; }
.addcol-btn { background: var(--accent-soft); color: var(--accent); border: none; cursor: pointer;
  width: 26px; height: 26px; border-radius: 7px; font-size: 17px; font-weight: 700; line-height: 1;
  display: grid; place-items: center; font-family: var(--font); }
.addcol-btn:hover { background: var(--accent); color: #fff; }

/* ═══════════ מתנות 🎁 (request #4) ═══════════ */
.side-color-row { display: flex; align-items: center; gap: 12px; }
.side-color-row input[type=color] { width: 46px; height: 34px; padding: 0; border: 1px solid var(--hairline);
  border-radius: 9px; cursor: pointer; background: none; }
.side-presets { display: flex; gap: 6px; flex-wrap: wrap; }
.side-preset { width: 26px; height: 26px; border-radius: 8px; border: 2px solid var(--hairline); cursor: pointer; }
.side-preset:hover { transform: scale(1.12); border-color: var(--text); }
.gifts-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 16px 0 6px; flex-wrap: wrap; }
.seg-tabs { display: inline-flex; background: rgba(120,120,128,.1); border-radius: 11px; padding: 3px; gap: 2px; }
.seg-tabs button { border: none; background: none; padding: 6px 14px; border-radius: 8px; cursor: pointer;
  font-weight: 700; font-size: 13px; color: var(--text-2); font-family: var(--font); }
.seg-tabs button.on { background: var(--surface); color: var(--text); box-shadow: var(--shadow-1); }
.gifts-intro { font-size: 13px; color: var(--text-2); margin: 0 0 14px; font-weight: 500; }
.gifts-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 14px; }
.gift-card { border-radius: var(--r-md); overflow: hidden; background: var(--surface);
  box-shadow: var(--shadow-1); border: 1px solid var(--hairline); transition: transform .2s var(--spring), box-shadow .2s; }
.gift-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-2); }
.gift-card.claimed { opacity: .96; }
.gift-media { height: 116px; display: grid; place-items: center; position: relative;
  background: linear-gradient(150deg, color-mix(in srgb, var(--gc) 80%, #fff 0%), color-mix(in srgb, var(--gc) 55%, #000 25%)); overflow: hidden; }
.gift-media img { width: 100%; height: 100%; object-fit: cover; }
.gift-emoji { font-size: 44px; filter: drop-shadow(0 3px 6px rgba(0,0,0,.2)); }
.gift-emoji.big { font-size: 76px; }
.gift-earned-badge { position: absolute; top: 8px; inset-inline-start: 8px; background: rgba(0,0,0,.55);
  color: #fff; font-size: 11px; font-weight: 800; padding: 3px 9px; border-radius: 20px; backdrop-filter: blur(4px); }
.gift-body { padding: 11px 13px 12px; }
.gift-kind { font-size: 11px; font-weight: 700; color: var(--text-3); margin-bottom: 3px; }
.gift-name { font-size: 15px; font-weight: 800; letter-spacing: -.01em; }
.gift-desc { font-size: 12.5px; color: var(--text-2); margin-top: 3px; line-height: 1.45; }
.gift-proj { font-size: 12px; color: var(--green); font-weight: 700; margin-top: 6px; display: flex; align-items: center; gap: 4px; }
.gift-proj svg.icon { width: 14px; height: 14px; }
.gift-actions { display: flex; align-items: center; gap: 6px; margin-top: 11px; }
.gift-link, .gift-act { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 8px;
  border: none; cursor: pointer; background: rgba(120,120,128,.1); color: var(--text-2); font-family: var(--font); font-size: 14px; }
.gift-link:hover, .gift-act:hover { background: rgba(120,120,128,.2); color: var(--text); }
.gift-act[data-ga="claim"]:hover { background: var(--green-soft); color: var(--green); }
.gift-link svg.icon, .gift-act svg.icon { width: 16px; height: 16px; }
.gift-actions .gift-act[data-ga="arch"] { margin-inline-start: auto; }
.g-img-row { display: flex; gap: 12px; align-items: center; margin-top: 8px; }
.g-img-prev { width: 70px; height: 70px; border-radius: 12px; display: grid; place-items: center;
  background: var(--accent-soft); font-size: 30px; overflow: hidden; flex-shrink: 0; }
.g-img-prev img { width: 100%; height: 100%; object-fit: cover; }

/* חגיגת סיום — overlay + קונפטי */
.gift-celebrate { position: fixed; inset: 0; z-index: 120; display: grid; place-items: center;
  background: rgba(0,0,0,.5); backdrop-filter: blur(6px); opacity: 0; transition: opacity .3s; overflow: hidden; }
.gift-celebrate.show { opacity: 1; }
.gc-card { background: var(--surface); border-radius: 24px; padding: 26px 30px 24px; text-align: center;
  max-width: 380px; box-shadow: var(--shadow-2); transform: scale(.85); transition: transform .35s var(--spring); position: relative; z-index: 2; }
.gift-celebrate.show .gc-card { transform: scale(1); }
.gc-title { font-size: 18px; font-weight: 800; margin-bottom: 14px; }
.gc-media { width: 150px; height: 150px; margin: 0 auto 14px; border-radius: 20px; display: grid; place-items: center;
  background: linear-gradient(150deg, color-mix(in srgb, var(--gc) 80%, #fff), color-mix(in srgb, var(--gc) 55%, #000 25%)); overflow: hidden; }
.gc-media img { width: 100%; height: 100%; object-fit: cover; }
.gc-name { font-size: 22px; font-weight: 800; letter-spacing: -.02em; }
.gc-desc { font-size: 14px; color: var(--text-2); margin-top: 6px; }
.gc-btns { display: flex; gap: 10px; justify-content: center; margin-top: 18px; }
.gc-btns a, .gc-btns button { text-decoration: none; padding: 9px 18px; border-radius: 12px; font-weight: 700; font-size: 14px; cursor: pointer; border: none; font-family: var(--font); }
.confetti { position: fixed; top: -20px; z-index: 1; border-radius: 2px;
  animation: confetti-fall var(--d) var(--delay) ease-in forwards; }
@keyframes confetti-fall {
  0% { transform: translateY(0) translateX(0) rotate(0); opacity: 1; }
  100% { transform: translateY(105vh) translateX(var(--x)) rotate(var(--rot)); opacity: .9; }
}

/* ═══════════ עריכה ישירה — שמות (request #3/#6) ═══════════ */
.rlist-ico.clickable { cursor: pointer; }
.editable-name { cursor: text; border-radius: 5px; padding: 1px 4px; margin: -1px -4px; outline: none;
  transition: background .12s, box-shadow .12s; }
.editable-name:hover { background: rgba(120,120,128,.10); }
.editable-name:focus { background: var(--accent-soft); box-shadow: 0 0 0 2px var(--accent-soft); }
.inline-ed input[data-ie="title"] { border: 1px solid var(--hairline); border-radius: 7px; padding: 6px 9px; }
.rm-lbl { font-size: 11px; color: var(--text-3); font-weight: 700; padding: 5px 4px 2px; }
.row-menu select, .row-menu input { width: 100%; margin-bottom: 2px; }

/* ═══════════ פס צדדי צף — התאמות מובייל/מצומצם ═══════════ */
#sidebar.collapsed .nav-grip { display: none; }
@media (max-width: 700px) {
  #sidebar, #sidebar.collapsed { margin: 7px; border-radius: 16px; }
  #sidebar.hidden { margin: 0; }
  .nav-grip { display: none; }
  .gifts-grid { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; }
  .gc-card { max-width: 88vw; }
}

/* ═══════════ v8 — toolbar מינימלי + יצירה inline ═══════════ */
.topbar-actions { display: flex; gap: 7px; }
.icon-action { width: 34px; height: 34px; padding: 0; border-radius: 9px; display: grid; place-items: center;
  background: rgba(120,120,128,.1); color: var(--text-2); border: none; cursor: pointer; }
.icon-action:hover { background: rgba(120,120,128,.18); color: var(--text); }
.icon-action.primary { background: var(--accent); color: #fff; }
.icon-action.primary:hover { background: var(--accent); filter: brightness(1.07); }
.icon-action svg.icon { width: 18px; height: 18px; }
.proj-tools { display: flex; align-items: center; gap: 8px; }
.segmented.icon-seg button { width: 32px; height: 28px; display: grid; place-items: center; }
.segmented.icon-seg svg.icon { width: 16px; height: 16px; }
.icon-toolbtn { width: 30px; height: 28px; border-radius: 8px; border: none; cursor: pointer;
  background: rgba(120,120,128,.1); color: var(--text-2); display: grid; place-items: center; }
.icon-toolbtn:hover { background: var(--accent-soft); color: var(--accent); }
.icon-toolbtn svg.icon { width: 16px; height: 16px; }
.new-proj-row { display: flex; align-items: center; gap: 10px; padding: 10px 16px; color: var(--text-3);
  border-top: .5px solid var(--hairline); }
.new-proj-row .np-plus { display: grid; place-items: center; width: 22px; height: 22px; }
.new-proj-row svg.icon { width: 16px; height: 16px; }
.new-proj-row input { border: none; background: none; flex: 1; font-size: 14px; font-weight: 600;
  color: var(--text); font-family: var(--font); padding: 2px 0; }
.new-proj-row input:focus { outline: none; }
.new-proj-row:focus-within { color: var(--accent); }
.gift-add-card { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px;
  min-height: 200px; border-radius: var(--r-md); border: 2px dashed var(--hairline); background: transparent;
  color: var(--text-3); cursor: pointer; font-family: var(--font); font-weight: 700; font-size: 13.5px; }
.gift-add-card:hover { border-color: var(--accent); color: var(--accent); background: var(--accent-soft); }
.gift-add-card svg.icon { width: 26px; height: 26px; }

/* ═══════════ v8 — תיקיות מקוננות תחת "פרויקטים" (request #3) ═══════════ */
.nav-chev { display: grid; place-items: center; width: 20px; height: 20px; opacity: .55;
  transition: transform .2s var(--spring); cursor: pointer; }
.nav-chev svg.icon { width: 14px; height: 14px; }
.nav-chev.open { transform: rotate(90deg); }
#nav a:hover .nav-chev { opacity: .9; }
.nav-folders { margin: 1px 0 4px; padding-inline-start: 8px; overflow: hidden; }
#folders-list.collapsed, #sidebar.collapsed #folders-list { display: none !important; }
.nav-folders .flist-row { padding: 4px 8px; font-size: 13px; }
.nav-folders .folder-children { padding-inline-start: 14px; }
/* "+" מינימלי להוספת רשימה — מופיע רק ב-hover על התיקייה (request: נדל"ן יקר) */
.flist-act.add { font-size: 16px; font-weight: 700; line-height: 1; }
.add-folder-row { color: var(--side-text-3) !important; cursor: pointer; justify-content: center; opacity: .5; padding: 3px 8px !important; }
.add-folder-row:hover { opacity: 1; color: #fff !important; background: var(--side-hover); }
.add-folder-row:hover, .add-list-row:hover { color: #fff !important; background: var(--side-hover); }
.al-plus { display: grid; place-items: center; width: 18px; height: 18px; }
.al-plus svg.icon { width: 13px; height: 13px; }

/* ═══════════ v8 — עמודות מותאמות בשורות הרשימה (request #4) ═══════════ */
.row-cells { display: flex; align-items: center; gap: 5px; flex-wrap: wrap; justify-content: flex-end; max-width: 340px; }
.cell-mini { border: 1px solid transparent; background: rgba(120,120,128,.08); border-radius: 6px;
  padding: 3px 7px; font-size: 12px; font-family: var(--font); color: var(--text); max-width: 116px; }
.cell-mini:hover { border-color: var(--hairline); }
.cell-mini:focus { border-color: var(--accent); background: var(--surface); outline: none; box-shadow: 0 0 0 2px var(--accent-soft); }
.cell-mini.sel { cursor: pointer; }
.cell-mini-chk { display: inline-flex; align-items: center; gap: 4px; font-size: 11.5px; color: var(--text-3); }

/* ═══════════ v8 — מפת חשיבה (request #7) ═══════════ */
.mm-wrap { display: flex; flex-direction: column; height: calc(100dvh - 120px); }
.mm-toolbar { display: flex; align-items: center; gap: 8px; padding: 0 2px 10px; flex-wrap: wrap; }
.mm-toolbar .icon-toolbtn { width: auto; padding: 0 9px; gap: 3px; height: 30px; }
.mm-toolbar .icon-toolbtn b { font-size: 13px; }
.mm-zoom { display: inline-flex; background: rgba(120,120,128,.1); border-radius: 8px; }
.mm-zoom button { border: none; background: none; width: 30px; height: 30px; cursor: pointer; font-size: 16px;
  color: var(--text-2); font-family: var(--font); }
.mm-zoom button:hover { color: var(--text); }
.mm-hint { font-size: 11px; color: var(--text-3); margin-inline-start: auto; font-weight: 500; }
.mm-viewport { flex: 1; position: relative; overflow: hidden; border-radius: var(--r-lg);
  border: 1px solid var(--hairline); background: var(--surface);
  background-image: radial-gradient(circle, var(--hairline) 1px, transparent 1px); background-size: 22px 22px;
  cursor: grab; touch-action: none; }
.mm-viewport.panning { cursor: grabbing; }
.mm-pan { position: absolute; top: 0; left: 0; transform-origin: 0 0; }
.mm-node { position: absolute; background: var(--surface); border-radius: 13px; box-shadow: var(--shadow-1);
  border: 1px solid var(--hairline); border-top: 3px solid var(--nc); overflow: hidden; }
.mm-node.dragging { box-shadow: var(--shadow-2); z-index: 10; }
.mm-node-head { display: flex; align-items: center; gap: 7px; padding: 9px 11px 5px; cursor: grab; }
.mm-dot { width: 9px; height: 9px; border-radius: 50%; flex-shrink: 0; }
.mm-name { flex: 1; font-weight: 800; font-size: 14px; outline: none; border-radius: 5px; min-width: 30px; }
.mm-name:focus { background: var(--accent-soft); }
.mm-mini { width: 24px; height: 24px; border: none; background: rgba(120,120,128,.12); border-radius: 7px;
  cursor: pointer; display: grid; place-items: center; color: var(--text-2); flex-shrink: 0; }
.mm-mini:hover { background: rgba(120,120,128,.22); color: var(--text); }
.mm-mini svg.icon { width: 14px; height: 14px; }
.mm-meta { display: flex; flex-wrap: wrap; gap: 5px; align-items: center; padding: 0 11px 6px; font-size: 11.5px; }
.mm-meta .pill { font-size: 10.5px; }
.mm-client { color: var(--text-2); font-weight: 600; }
.mm-tasks { padding: 0 11px 6px; max-height: 120px; overflow-y: auto; }
.mm-task { font-size: 12px; color: var(--text-2); padding: 2px 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mm-task.empty, .mm-task.more { color: var(--text-3); font-style: italic; }
.mm-addtask { width: 100%; border: none; border-top: .5px solid var(--hairline); background: transparent;
  padding: 7px; cursor: pointer; color: var(--accent); font-weight: 700; font-size: 12px; font-family: var(--font);
  display: flex; align-items: center; justify-content: center; gap: 4px; }
.mm-addtask:hover { background: var(--accent-soft); }
.mm-addtask svg.icon { width: 13px; height: 13px; }
.mm-note { position: absolute; width: 168px; min-height: 70px; border-radius: 10px; padding: 8px 10px 10px;
  box-shadow: var(--shadow-1); color: #3a3a2a; cursor: grab; }
.mm-note-tools { display: flex; gap: 3px; justify-content: flex-end; margin-bottom: 2px; opacity: 0; transition: opacity .15s; }
.mm-note:hover .mm-note-tools { opacity: 1; }
.mm-note-tools .mm-mini { width: 20px; height: 20px; background: rgba(0,0,0,.07); color: #444; }
.mm-note-tools .mm-mini svg.icon { width: 12px; height: 12px; }
.mm-note-img { width: 100%; border-radius: 6px; margin-bottom: 5px; display: block; }
.mm-note-body { font-size: 13px; font-weight: 600; outline: none; min-height: 24px; line-height: 1.4; }
.mm-note-body:empty::before { content: 'כתוב כאן…'; opacity: .45; }
@media (max-width: 700px) { .mm-hint { display: none; } .mm-wrap { height: calc(100dvh - 150px); } }

/* ═══════════ v8 — ניקיון הרייל הצר במובייל ═══════════ */
@media (max-width: 700px) {
  #sidebar .nav-folders, #sidebar .nav-chev { display: none; }
  #sidebar #tiles-grid { grid-template-columns: 1fr; }
  #sidebar .tile-label, #sidebar .tile-num { display: none; }
  #sidebar .tile { min-height: 40px; padding: 9px; align-items: center; }
  #sidebar .tile-ico { position: static; }
  .proj-tools { flex-wrap: wrap; }
  .mm-toolbar { gap: 5px; }
}

/* ═══════════ סרגל תצוגות שמורות (ClickUp favorites) + פילטרים + scope ═══════════ */
#fav-bar { display: flex; align-items: center; gap: 7px; padding: 0 30px 8px; overflow-x: auto;
  scrollbar-width: thin; }
#fav-bar[hidden] { display: none; }
.fav-pill { display: inline-flex; align-items: center; gap: 6px; padding: 5px 11px; border-radius: 9px;
  border: 1px solid var(--hairline); background: var(--surface); color: var(--text-2); cursor: pointer;
  font-family: var(--font); font-weight: 600; font-size: 13px; white-space: nowrap; flex-shrink: 0;
  transition: background .15s, color .15s, border-color .15s; }
.fav-pill:hover { color: var(--text); border-color: var(--text-3); }
.fav-pill.on { background: var(--accent-soft); color: var(--accent); border-color: transparent; }
.fav-pill svg.icon { width: 15px; height: 15px; }
.fav-emoji { font-size: 14px; line-height: 1; }
.fav-x { opacity: 0; font-size: 11px; color: var(--text-3); margin-inline-start: 2px; }
.fav-pill:hover .fav-x { opacity: .65; }
.fav-x:hover { color: var(--red); opacity: 1; }
.proj-title { display: flex; align-items: center; gap: 10px; }
.scope-chip { display: inline-flex; align-items: center; gap: 7px; }
.scope-chip .fold-ico { font-size: 12px; }
.icon-toolbtn { position: relative; }
.icon-toolbtn b { position: absolute; top: -4px; inset-inline-start: -4px; background: var(--accent); color: #fff;
  font-size: 9.5px; min-width: 14px; height: 14px; border-radius: 8px; display: grid; place-items: center; padding: 0 3px; }
.icon-toolbtn.on { background: var(--accent-soft); color: var(--accent); }
.filter-chips { display: flex; flex-wrap: wrap; gap: 6px; margin: -2px 0 12px; }
.fchip { display: inline-flex; align-items: center; gap: 5px; padding: 3px 10px; border-radius: 20px;
  background: var(--accent-soft); color: var(--accent); font-size: 12px; font-weight: 700; cursor: pointer; border: none; font-family: var(--font); }
.fchip:hover { filter: brightness(.95); }
.fchip.clear { background: rgba(120,120,128,.12); color: var(--text-2); }
@media (max-width: 700px) { #fav-bar { padding: 0 12px 8px; } }

/* ═══════════ בורר אייקונים ═══════════ */
.icon-picker .ip-grid { display: grid; grid-template-columns: repeat(8, 1fr); gap: 2px; padding: 4px; max-height: 210px; overflow-y: auto; }
.ip-btn { border: none; background: none; cursor: pointer; font-size: 18px; width: 28px; height: 28px;
  border-radius: 7px; display: grid; place-items: center; line-height: 1; }
.ip-btn:hover { background: rgba(120,120,128,.16); }
.ip-btn.on { background: var(--accent-soft); outline: 1.5px solid var(--accent); }
.ip-clear { font-size: 14px; color: var(--text-3); }
.ip-custom { width: calc(100% - 8px); margin: 4px; }
.rlist-ico.clickable { cursor: pointer; }
.rlist-ico.clickable:hover { filter: brightness(1.08); outline: 2px solid var(--accent-soft); }
.tile-emoji { font-size: 17px; line-height: 1; }
.tile-ico .tile-emoji { filter: none; }

/* ═══════════ checkbox / toggle אסתטיים ═══════════ */
.chk input[type=checkbox] {
  appearance: none; -webkit-appearance: none; margin: 0; flex-shrink: 0;
  width: 20px; height: 20px; border-radius: 6px; cursor: pointer; position: relative;
  border: 1.8px solid var(--text-3); background: var(--surface);
  transition: background .18s var(--spring), border-color .18s; }
.chk input[type=checkbox]:hover { border-color: var(--accent); }
.chk input[type=checkbox]:checked { background: var(--accent); border-color: var(--accent); }
.chk input[type=checkbox]:checked::after {
  content: ''; position: absolute; inset-inline-start: 6px; top: 2.5px;
  width: 5px; height: 9px; border: solid #fff; border-width: 0 2px 2px 0; transform: rotate(45deg); }
/* מתג iOS לשורות הגדרה בוליאניות (RTL: כבוי=ימין, דלוק=שמאל) */
.toggle-row { display: flex; align-items: center; justify-content: space-between; gap: 14px;
  cursor: pointer; padding: 12px 14px; }
.toggle-row input[type=checkbox] {
  appearance: none; -webkit-appearance: none; margin: 0; flex-shrink: 0; border: none;
  width: 46px; height: 28px; border-radius: 15px; cursor: pointer; position: relative;
  background: rgba(120,120,128,.30); transition: background .26s var(--ease); }
.toggle-row input[type=checkbox]::after {
  content: ''; position: absolute; top: 3px; right: 3px; width: 22px; height: 22px; border-radius: 50%;
  background: #fff; box-shadow: 0 1px 3px rgba(0,0,0,.28); transition: transform .26s var(--spring); }
.toggle-row input[type=checkbox]:checked { background: var(--green); }
.toggle-row input[type=checkbox]:checked::after { transform: translateX(-18px); }
.navvis-grid .chk { padding: 4px 2px; border-radius: 8px; transition: background .12s; }
.navvis-grid .chk:hover { background: rgba(120,120,128,.06); }

.week-card { touch-action: pan-y; }
.week-card.wk-swiping { cursor: grabbing; user-select: none; }

/* ═══════════ ליטוש מובייל — UX ברמת המערכות המובילות ═══════════ */
@keyframes sheetup { from { transform: translateY(100%); } }
html { -webkit-tap-highlight-color: transparent; }
html, body { overscroll-behavior-y: none; }   /* בלי rubber-band מציק */
@media (max-width: 700px) {
  /* בטיחות-שוליים (notch / home-indicator) לאלמנטים צפים */
  #agent-fab { bottom: calc(80px + env(safe-area-inset-bottom)); }
  #btn-side-reopen { top: calc(14px + env(safe-area-inset-top)); }
  #fav-bar { padding-inline: 12px; }
  /* יעדי-מגע נדיבים (≥44px) */
  .radio { width: 26px; height: 26px; }
  #nav a { padding: 11px 0; }
  .flist-row { padding: 9px 8px; }
  .fav-pill { padding: 8px 13px; font-size: 13.5px; }
  .seg-tabs button { padding: 8px 16px; }
  .icon-action { width: 38px; height: 38px; }
  /* מניעת גלישה אופקית של כל הדף */
  #main, #view { max-width: 100%; overflow-x: hidden; }
  /* גלילה חלקה עם מומנטום */
  #view, .modal, .ctable-wrap, .wk-scroll, .wk-drawer-list { -webkit-overflow-scrolling: touch; }
  /* תוויות-משנה לא נחתכות מדי */
  .rem-title { font-size: 15px; }
}
/* רטט-מגע עדין לכפתורים אינטראקטיביים */
button:active, .tile:active, .fav-pill:active, .rem-row:active { transition: transform .05s; }
.tile:active { transform: scale(.97); }

/* ═══════════ מסך התחברות (multi-tenant) ═══════════ */
#auth-gate { position: fixed; inset: 0; z-index: 200; display: grid; place-items: center;
  background: linear-gradient(160deg, var(--side-1, #7C5CFF), var(--side-2, #3B1E8F)); padding: 20px; }
.auth-card { width: 360px; max-width: 92vw; background: var(--surface); border-radius: 22px;
  padding: 28px 26px; box-shadow: 0 24px 70px rgba(0,0,0,.3); display: flex; flex-direction: column; gap: 12px; }
.auth-logo { font-size: 22px; font-weight: 800; text-align: center; margin-bottom: 4px; color: var(--text); }
.auth-tabs { display: flex; background: rgba(120,120,128,.1); border-radius: 11px; padding: 3px; margin-bottom: 4px; }
.auth-tabs button { flex: 1; border: none; background: none; padding: 9px; border-radius: 9px; cursor: pointer;
  font-weight: 700; font-size: 14px; color: var(--text-2); font-family: var(--font); }
.auth-tabs button.on { background: var(--surface); color: var(--text); box-shadow: var(--shadow-1); }
.auth-card input { padding: 12px 14px; border-radius: 12px; border: 1.5px solid var(--hairline);
  background: var(--bg); font-size: 16px; font-family: var(--font); color: var(--text); }
.auth-card input:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.auth-submit { padding: 13px; border-radius: 12px; font-size: 15px; font-weight: 700; border: none; cursor: pointer; margin-top: 2px; }
.auth-err { background: var(--red-soft); color: var(--red); padding: 9px 12px; border-radius: 10px; font-size: 13px; font-weight: 600; text-align: center; }
.auth-foot { text-align: center; font-size: 13px; color: var(--text-2); margin-top: 4px; }
.auth-foot a { color: var(--accent); font-weight: 700; cursor: pointer; }
.auth-sub { text-align: center; font-size: 14px; color: var(--text-2); margin: -2px 0 6px; }
.auth-ok { background: var(--green-soft, #e7f7ee); color: var(--green, #18794e); padding: 9px 12px; border-radius: 10px; font-size: 13px; font-weight: 600; text-align: center; line-height: 1.5; }
.auth-sep { margin: 0 6px; color: var(--text-3, var(--text-2)); }

/* ═══════════ דיאלוגים אלגנטיים ═══════════ */
.ui-dialog { z-index: 120; }
.ui-dialog .modal { max-width: 430px; gap: 10px; }
.ui-dialog.closing { opacity: 0; transition: opacity .15s; }
.ui-d-lbl { font-size: 12px; font-weight: 700; color: var(--text-2); margin-bottom: -4px; }
.ui-dialog .modal input[type=text], .ui-dialog .modal input:not([type]), .ui-dialog .modal input[type=email], .ui-dialog .modal input[type=url] {
  padding: 11px 13px; border-radius: 11px; font-size: 16px; }
button.primary.danger { background: var(--red); }
button.primary.danger:hover { filter: brightness(1.06); }

/* ═══════════ סרגל מועדפים — מועדפי-ישויות + עיצוב ═══════════ */
.fav-dot { width: 18px; height: 18px; border-radius: 6px; display: grid; place-items: center;
  font-size: 11px; color: #fff; flex-shrink: 0; }
.fav-entity .fav-name { max-width: 140px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.fav-pill { scroll-snap-align: start; }
#fav-bar { scroll-snap-type: x proximity; -webkit-overflow-scrolling: touch; }
@media (max-width: 700px) { #fav-bar { gap: 6px; } .fav-entity .fav-name, .fav-pill .fav-name { max-width: 110px; } }
/* swipe על שורות פרויקט (כמו משימות) */
.rlist-item .swipe-wrap { position: relative; overflow: hidden; }

/* ═══════════ Apple-minimalism pass — flatter, tighter, browser-bookmark fav-bar ═══════════ */
/* סרגל מועדפים = שורת bookmarks: שטוח, קטן, צמוד למעלה */
#fav-bar { padding: 1px 26px 4px; gap: 1px; }
.fav-pill { padding: 3px 9px; border-radius: 7px; font-size: 12px; font-weight: 600;
  border: none; background: transparent; gap: 5px; }
.fav-pill:hover { background: rgba(120,120,128,.10); border: none; color: var(--text); }
.fav-pill.on { background: var(--accent-soft); color: var(--accent); }
.fav-pill svg.icon { width: 13px; height: 13px; }
.fav-dot { width: 14px; height: 14px; border-radius: 4px; font-size: 9px; }
.fav-emoji { font-size: 12px; }
.fav-x { font-size: 10px; margin-inline-start: 1px; }
.fav-entity .fav-name, .fav-pill .fav-name { max-width: 118px; }
/* topbar נמוך + כותרות קומפקטיות */
#topbar { padding: 10px 26px 5px; }
#topbar h1 { font-size: 13.5px; font-weight: 600; }
.proj-toolbar { margin: 2px 0 8px; }
.proj-toolbar h2, .proj-title { font-size: 16px; font-weight: 700; letter-spacing: -.01em; }
.tasks-panel-head { margin: 10px 0 8px; }
.tasks-panel-head h2 { font-size: 16px; }
.subhead { margin: 10px 0 5px; }
/* פקדים שטוחים — בלי "קוביות" רקע בולטות */
.segmented { background: transparent; padding: 0; gap: 2px; }
.segmented button { border-radius: 7px; }
.segmented button.on { background: rgba(120,120,128,.15); box-shadow: none; color: var(--text); }
.segmented.icon-seg button { width: 28px; height: 26px; }
.icon-toolbtn { background: transparent; }
.icon-toolbtn:hover { background: rgba(120,120,128,.12); color: var(--text); }
.icon-action { background: transparent; }
.icon-action:hover { background: rgba(120,120,128,.12); }
.icon-action.primary { background: var(--accent); }
.icon-action.primary:hover { background: var(--accent); filter: brightness(1.06); }
/* mindmap hint דק + מוסתר במסכים בינוניים */
.mm-hint { font-size: 10.5px; opacity: .65; }
@media (max-width: 1150px) { .mm-hint { display: none; } }
.mm-toolbar { padding: 0 2px 8px; }
