/* ═══════════════════════════════════════
   TOKENS
═══════════════════════════════════════ */
:root {
  --code: 'Fira Code', monospace;
  --ui:   'Inter', sans-serif;
  --r:    6px;
  --rl:   10px;
  --ease: 0.18s cubic-bezier(0.4, 0, 0.2, 1);
}

[data-theme="dark"] {
  --bg:       #080f1e;
  --bg2:      #0c1526;
  --bg3:      #101d32;
  --bg4:      #152440;
  --bd:       rgba(99, 153, 255, 0.12);
  --bd2:      rgba(99, 153, 255, 0.22);
  --bd3:      rgba(99, 153, 255, 0.38);
  --tx:       #cdd9f0;
  --tx2:      #6b8db8;
  --tx3:      #334d72;
  --tx4:      #1e3050;
  --blue:     #7aa2f7;
  --blue-d:   rgba(122, 162, 247, 0.10);
  --blue-g:   rgba(122, 162, 247, 0.20);
  --teal:     #2ac3de;
  --teal-d:   rgba(42, 195, 222, 0.10);
  --green:    #9ece6a;
  --green-d:  rgba(158, 206, 106, 0.10);
  --amber:    #e0af68;
  --amber-d:  rgba(224, 175, 104, 0.10);
  --violet:   #bb9af7;
  --violet-d: rgba(187, 154, 247, 0.10);
  --red:      #f7768e;
  --red-d:    rgba(247, 118, 142, 0.10);
  --gbg:      linear-gradient(160deg, #0a1628 0%, #080f1e 60%, #0a0f1c 100%);
  --dot:      rgba(99, 153, 255, 0.07);
}

[data-theme="light"] {
  --bg:       #f4f7fc;
  --bg2:      #ffffff;
  --bg3:      #edf1f8;
  --bg4:      #e1e8f4;
  --bd:       rgba(60, 100, 200, 0.12);
  --bd2:      rgba(60, 100, 200, 0.22);
  --bd3:      rgba(60, 100, 200, 0.38);
  --tx:       #1a2540;
  --tx2:      #3d5a8a;
  --tx3:      #435068;
  --tx4:      #435068;
  --blue:     #3060c0;
  --blue-d:   rgba(48, 96, 192, 0.09);
  --blue-g:   rgba(48, 96, 192, 0.18);
  --teal:     #0e7fa0;
  --teal-d:   rgba(14, 127, 160, 0.09);
  --green:    #3a7a20;
  --green-d:  rgba(58, 122, 32, 0.10);
  --amber:    #a06010;
  --amber-d:  rgba(160, 96, 16, 0.10);
  --violet:   #6030b0;
  --violet-d: rgba(96, 48, 176, 0.10);
  --red:      #c02040;
  --red-d:    rgba(192, 32, 64, 0.10);
  --gbg:      linear-gradient(160deg, #eef2fc 0%, #f4f7fc 60%, #f0f3fa 100%);
  --dot:      rgba(60, 100, 200, 0.06);
}

/* ═══════════════════════════════════════
   RESET & BASE
═══════════════════════════════════════ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
  font-family: var(--ui);
  background: var(--gbg);
  color: var(--tx);
  font-size: 13px;
  line-height: 1.6;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  transition: background 0.3s, color 0.25s;
}

body::after {
  content: '';
  position: fixed; inset: 0;
  background-image: radial-gradient(circle, var(--dot) 1px, transparent 1px);
  background-size: 24px 24px;
  pointer-events: none;
  z-index: 0;
}

::-webkit-scrollbar { width: 4px; height: 4px; }
::-webkit-scrollbar-thumb { background: var(--bd2); border-radius: 2px; }

/* ═══════════════════════════════════════
   NAV
═══════════════════════════════════════ */
nav {
  position: sticky; top: 0; z-index: 100;
  background: var(--bg2);
  border-bottom: 1px solid var(--bd2);
  backdrop-filter: blur(14px);
  display: flex; align-items: center;
  padding: 0 20px; height: 52px;
  transition: background 0.3s, border-color 0.3s;
}

.logo {
  font-family: var(--code);
  font-size: 13px; font-weight: 600;
  color: var(--blue);
  letter-spacing: 0.02em;
  text-decoration: none;
  margin-right: 28px;
  display: flex; align-items: center; gap: 0;
}
.logo-op, .logo-cl { color: var(--tx3); font-weight: 300; }
.logo-cur {
  display: inline-block; width: 2px; height: 14px;
  background: var(--blue); margin-left: 3px;
  animation: blink 1.1s step-end infinite;
  vertical-align: middle;
}
@keyframes blink { 0%, 100% { opacity: 1; } 50% { opacity: 0; } }

.nav-tabs { display: flex; height: 100%; list-style: none; }
.nav-tab {
  display: flex; align-items: center; gap: 7px;
  padding: 0 16px;
  font-family: var(--code); font-size: 11px; font-weight: 400;
  color: var(--tx3); cursor: pointer;
  border-bottom: 2px solid transparent;
  transition: color var(--ease), border-color var(--ease);
  user-select: none;
}
.nav-tab::before {
  content: attr(data-num);
  font-size: 9px; color: var(--tx4);
}
.nav-tab:hover { color: var(--tx2); }
.nav-tab.active { color: var(--blue); border-bottom-color: var(--blue); }

.nav-right { margin-left: auto; display: flex; align-items: center; gap: 8px; }

.theme-btn {
  width: 32px; height: 32px;
  border-radius: var(--r);
  border: 1px solid var(--bd2);
  background: var(--bg3); color: var(--tx2);
  cursor: pointer; font-size: 14px;
  display: flex; align-items: center; justify-content: center;
  transition: all var(--ease);
}
.theme-btn:hover { border-color: var(--blue); background: var(--blue-d); }

.btn-new {
  background: var(--blue-d);
  border: 1px solid var(--blue-g);
  color: var(--blue);
  padding: 0 14px; height: 32px;
  border-radius: var(--r);
  font-family: var(--code); font-size: 11px; font-weight: 500;
  cursor: pointer; display: flex; align-items: center; gap: 5px;
  transition: all var(--ease); white-space: nowrap;
}
.btn-new:hover { background: var(--blue); color: var(--bg); box-shadow: 0 0 14px var(--blue-g); }

/* ═══════════════════════════════════════
   LAYOUT
═══════════════════════════════════════ */
.page {
  display: none; flex: 1;
  padding: 20px; max-width: 1440px;
  margin: 0 auto; width: 100%;
  position: relative; z-index: 1;
}
.page.active { display: flex; gap: 18px; }

#page-projects.active {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 16px; align-content: start;
}

/* 30 / 70 split */
.col-left  { flex: 0 0 30%; display: flex; flex-direction: column; gap: 16px; min-width: 240px; max-width: 340px; }
.col-right { flex: 1; display: flex; flex-direction: column; gap: 16px; min-width: 0; }

/* ═══════════════════════════════════════
   CARD
═══════════════════════════════════════ */
.card {
  background: var(--bg2);
  border: 1px solid var(--bd);
  border-radius: var(--rl);
  padding: 18px;
  transition: background 0.3s, border-color 0.3s;
  position: relative;
}

.log-card {
  flex: 1;
  display: flex;
  flex-direction: column;
  min-height: 0;
}

.clabel {
  font-family: var(--code); font-size: 9px; font-weight: 500;
  letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--tx3); margin-bottom: 14px;
  display: flex; align-items: center; gap: 5px;
}
.clabel::before { content: '//'; color: var(--tx4); letter-spacing: 0; }

/* ═══════════════════════════════════════
   STREAK
═══════════════════════════════════════ */
.streak-card { background: linear-gradient(135deg, var(--bg3) 0%, var(--bg2) 100%); }

.streak-row { display: flex; align-items: flex-end; gap: 10px; margin-bottom: 14px; }
.streak-n {
  font-family: var(--code); font-size: 52px; font-weight: 700;
  color: var(--blue); line-height: 1; letter-spacing: -0.03em;
}
.streak-sub { font-family: var(--code); font-size: 10px; color: var(--tx3); margin-bottom: 6px; line-height: 1.7; }

.stats-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.stat-box { background: var(--bg3); border: 1px solid var(--bd); border-radius: var(--r); padding: 10px; }
.stat-val { font-family: var(--code); font-size: 16px; font-weight: 600; color: var(--tx); display: block; margin-bottom: 3px; }
.stat-lbl { font-family: var(--code); font-size: 9px; color: var(--tx3); }

/* ═══════════════════════════════════════
   TIMER
═══════════════════════════════════════ */
.timer-disp {
  font-family: var(--code); font-size: 32px; font-weight: 600;
  color: var(--tx); letter-spacing: 0.05em;
  margin-bottom: 6px; line-height: 1;
  transition: color 0.3s;
}
.timer-disp.running { color: var(--green); }

.timer-st {
  font-family: var(--code); font-size: 9px; color: var(--tx3);
  letter-spacing: 0.10em; margin-bottom: 12px;
  display: flex; align-items: center; gap: 6px;
}
.led { width: 5px; height: 5px; border-radius: 50%; background: var(--tx4); display: inline-block; flex-shrink: 0; }
.led.on { background: var(--green); box-shadow: 0 0 5px var(--green); animation: blink 1s step-end infinite; }

.timer-row { display: flex; gap: 7px; }

/* ═══════════════════════════════════════
   BUTTONS
═══════════════════════════════════════ */
.btn {
  padding: 7px 12px; border-radius: var(--r);
  border: 1px solid var(--bd2); background: var(--bg3);
  color: var(--tx2); font-family: var(--code); font-size: 10px; font-weight: 500;
  cursor: pointer; transition: all var(--ease); flex: 1;
}
.btn:hover { background: var(--bg4); color: var(--tx); border-color: var(--bd3); }
.btn.go  { background: var(--blue-d); border-color: var(--blue-g); color: var(--blue); font-weight: 600; }
.btn.go:hover { background: var(--blue); color: var(--bg); }
.btn.run { background: var(--green-d); border-color: rgba(158, 206, 106, 0.3); color: var(--green); font-weight: 600; }
.btn.run:hover { background: var(--green); color: var(--bg); }
.btn.sm  { flex: none; padding: 7px 10px; }
.btn-al  { margin-top: 5px; width: fit-content; font-size: 9px; padding: 5px 10px; flex: none; }

/* ═══════════════════════════════════════
   HEATMAP
═══════════════════════════════════════ */
.hm-wrap { overflow-x: auto; padding-bottom: 2px; }
.hm-mrow { display: flex; gap: 3px; margin-bottom: 3px; padding-left: 28px; }
.hm-m    { font-family: var(--code); font-size: 8px; color: var(--tx3); min-width: 13px; }

.hm-grid { display: flex; gap: 3px; }
.hm-dcol { display: flex; flex-direction: column; gap: 3px; margin-right: 2px; }
.hm-dl   { font-family: var(--code); font-size: 8px; color: var(--tx4); height: 11px; line-height: 11px; width: 24px; text-align: right; }

.hm-wks  { display: flex; gap: 3px; }
.hm-wk   { display: flex; flex-direction: column; gap: 3px; }
.hm-c {
  width: 11px; height: 11px; border-radius: 2px;
  background: var(--bg4); cursor: pointer;
  transition: transform 0.1s; border: 1px solid transparent;
}
.hm-c:hover { transform: scale(1.4); z-index: 5; border-color: var(--bd3); }
.hm-c.fut   { background: transparent; cursor: default; border: none; }
.hm-c[data-l="1"] { background: var(--blue-d); }
.hm-c[data-l="2"] { background: rgba(122, 162, 247, 0.32); }
.hm-c[data-l="3"] { background: rgba(122, 162, 247, 0.62); }
.hm-c[data-l="4"] { background: var(--blue); box-shadow: 0 0 4px var(--blue-g); }

.hm-leg { display: flex; align-items: center; gap: 3px; margin-top: 8px; justify-content: flex-end; }
.hm-ll  { font-family: var(--code); font-size: 8px; color: var(--tx3); }
.hm-lc  { width: 10px; height: 10px; border-radius: 2px; }

/* ═══════════════════════════════════════
   LOG ENTRIES
═══════════════════════════════════════ */
.log-top {
  display: flex; align-items: center;
  justify-content: space-between; margin-bottom: 14px;
}

.search-wrap { position: relative; }
.search-ico  { position: absolute; left: 9px; top: 50%; transform: translateY(-50%); font-size: 11px; color: var(--tx3); pointer-events: none; }
.search-in {
  background: var(--bg3); border: 1px solid var(--bd);
  border-radius: var(--r);
  padding: 6px 10px 6px 28px; color: var(--tx);
  font-family: var(--code); font-size: 11px; outline: none;
  width: 190px; transition: border-color var(--ease), width var(--ease);
}
.search-in::placeholder { color: var(--tx4); }
.search-in:focus { border-color: var(--blue); width: 220px; }

.entries {
  display: flex; flex-direction: column; gap: 10px;
  overflow-y: auto; padding-right: 4px;
  flex: 1; min-height: 0;
  max-height: calc(100vh - 160px);
}

.entry {
  background: var(--bg3);
  border: 1px solid var(--bd);
  border-left: 2px solid transparent;
  border-radius: var(--r);
  padding: 14px 16px;
  transition: all var(--ease);
}
.entry:hover { border-color: var(--bd2); border-left-color: var(--blue); background: var(--bg4); }
.entry.today { border-left-color: var(--green); }

.entry-head {
  display: flex; align-items: center;
  justify-content: space-between;
  margin-bottom: 7px; gap: 8px;
}
.entry-date { font-family: var(--code); font-size: 10px; color: var(--tx3); }
.entry-dur  {
  font-family: var(--code); font-size: 9px; font-weight: 600;
  color: var(--blue); background: var(--blue-d);
  border: 1px solid var(--blue-g);
  padding: 2px 8px; border-radius: 3px; white-space: nowrap; flex-shrink: 0;
}

.entry-title {
  font-size: 13px; font-weight: 600; color: var(--tx);
  margin-bottom: 5px;
  display: flex; align-items: center; gap: 7px; flex-wrap: wrap; line-height: 1.4;
}
.entry-note  { font-size: 12px; color: var(--tx2); line-height: 1.6; margin-bottom: 8px; }
.entry-links { display: flex; flex-wrap: wrap; gap: 5px; }

.elink {
  display: inline-flex; align-items: center; gap: 4px;
  font-family: var(--code); font-size: 10px;
  color: var(--violet); background: var(--violet-d);
  border: 1px solid rgba(187, 154, 247, 0.18);
  padding: 2px 8px; border-radius: 3px;
  text-decoration: none; transition: background var(--ease);
}
.elink:hover { background: rgba(187, 154, 247, 0.2); }
.elink-t     { font-size: 9px; opacity: 0.6; }

/* ── Tags ── */
.tag {
  display: inline-flex; align-items: center;
  font-family: var(--code); font-size: 9px; font-weight: 500;
  letter-spacing: 0.06em; text-transform: uppercase;
  padding: 1px 7px; border-radius: 3px;
}
.t-python { background: var(--blue-d);   color: var(--blue);   border: 1px solid var(--blue-g); }
.t-web    { background: var(--amber-d);  color: var(--amber);  border: 1px solid rgba(224, 175, 104, 0.2); }
.t-sql    { background: var(--teal-d);   color: var(--teal);   border: 1px solid rgba(42, 195, 222, 0.2); }
.t-react  { background: var(--red-d);    color: var(--red);    border: 1px solid rgba(247, 118, 142, 0.2); }
.t-other  { background: var(--violet-d); color: var(--violet); border: 1px solid rgba(187, 154, 247, 0.2); }

/* ═══════════════════════════════════════
   MODALS
═══════════════════════════════════════ */
.mbdrop {
  position: fixed; inset: 0;
  background: rgba(8, 15, 30, 0.80);
  backdrop-filter: blur(5px);
  z-index: 200; display: flex;
  align-items: center; justify-content: center;
  opacity: 0; pointer-events: none; transition: opacity 0.2s;
}
.mbdrop.open { opacity: 1; pointer-events: all; }

.modal {
  background: var(--bg2);
  border: 1px solid var(--bd2);
  border-top: 2px solid var(--blue);
  border-radius: var(--rl);
  padding: 26px; width: 540px;
  max-width: calc(100vw - 32px);
  max-height: 90vh; overflow-y: auto; scrollbar-width: thin;
  transform: translateY(12px) scale(0.98);
  transition: transform 0.2s cubic-bezier(0.34, 1.4, 0.64, 1);
}
.mbdrop.open .modal { transform: translateY(0) scale(1); }

.modal-h {
  font-family: var(--code); font-size: 11px; font-weight: 600;
  color: var(--blue); letter-spacing: 0.06em;
  margin-bottom: 20px;
  display: flex; align-items: center; gap: 8px;
}
.modal-h::before { content: '>_'; color: var(--tx3); font-weight: 400; margin-right: 2px; }
.modal-h::after  { content: ''; flex: 1; height: 1px; background: linear-gradient(90deg, var(--bd2), transparent); }

/* ── Form ── */
.fg  { margin-bottom: 13px; }
.fl  { display: block; font-family: var(--code); font-size: 9px; font-weight: 500; letter-spacing: 0.10em; text-transform: uppercase; color: var(--tx3); margin-bottom: 5px; }
.frow { display: flex; gap: 10px; }
.frow .fg { flex: 1; }

.fi, .ft, .fs {
  width: 100%; background: var(--bg3);
  border: 1px solid var(--bd); border-radius: var(--r);
  padding: 8px 11px; color: var(--tx);
  font-family: var(--code); font-size: 11px; outline: none;
  transition: border-color var(--ease), box-shadow var(--ease);
}
.fi:focus, .ft:focus, .fs:focus { border-color: var(--blue); box-shadow: 0 0 0 3px var(--blue-d); }
.fi::placeholder { color: var(--tx4); }
.ft { resize: vertical; min-height: 72px; }
.fs option { background: var(--bg3); color: var(--tx); }

.tinfo {
  background: var(--green-d); border: 1px solid rgba(158, 206, 106, 0.22);
  border-radius: var(--r); padding: 9px 12px;
  font-family: var(--code); font-size: 10px; color: var(--green);
  margin-bottom: 13px; display: none;
}
.tinfo.show { display: block; }

.lbuilder { display: flex; flex-direction: column; gap: 6px; }
.lrow { display: flex; gap: 6px; align-items: center; }
.lrow .fs { flex: 0 0 88px; }
.lrow .fi { flex: 1; }

.xico {
  width: 32px; height: 32px; background: var(--bg4);
  border: 1px solid var(--bd); border-radius: var(--r);
  color: var(--tx3); font-size: 15px; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: all var(--ease); flex-shrink: 0;
}
.xico:hover { border-color: var(--red); color: var(--red); background: var(--red-d); }

.mfooter { display: flex; gap: 8px; justify-content: flex-end; margin-top: 18px; }
.mfooter .btn { flex: none; padding: 8px 20px; }

/* ═══════════════════════════════════════
   PROJECT CARDS
═══════════════════════════════════════ */
.proj-card {
  background: var(--bg2); border: 1px solid var(--bd);
  border-radius: var(--rl); padding: 18px;
  cursor: pointer; transition: all var(--ease);
  position: relative; overflow: hidden;
  display: flex; flex-direction: column; gap: 10px;
}
.proj-card::before {
  content: ''; position: absolute; top: 0; left: 0;
  width: 3px; height: 100%; background: var(--blue);
  transform: scaleY(0); transform-origin: bottom; transition: transform 0.2s;
}
.proj-card:hover { border-color: var(--bd2); transform: translateY(-2px); box-shadow: 0 8px 24px rgba(0,0,0,0.25); }
.proj-card:hover::before { transform: scaleY(1); }

.proj-head { display: flex; align-items: center; justify-content: space-between; }
.proj-lang { font-family: var(--code); font-size: 10px; color: var(--tx3); }
.proj-name { font-family: var(--code); font-size: 12px; font-weight: 600; color: var(--tx); line-height: 1.4; }
.proj-desc { font-size: 12px; color: var(--tx2); line-height: 1.55; flex: 1; }

.sbadge {
  display: inline-flex; align-items: center; gap: 5px;
  font-family: var(--code); font-size: 9px; font-weight: 500;
  letter-spacing: 0.06em; text-transform: uppercase;
  padding: 2px 8px; border-radius: 3px;
}
.s-active { color: var(--green);  background: var(--green-d);  border: 1px solid rgba(158, 206, 106, 0.2); }
.s-pause  { color: var(--amber);  background: var(--amber-d);  border: 1px solid rgba(224, 175, 104, 0.2); }
.s-done   { color: var(--tx3);    background: var(--bg4);      border: 1px solid var(--bd); }
.sdot     { width: 5px; height: 5px; border-radius: 50%; background: currentColor; flex-shrink: 0; }
.s-active .sdot { box-shadow: 0 0 4px currentColor; animation: blink 1.5s ease-in-out infinite; }

.prog-wrap { margin-top: 2px; }
.prog-bg   { background: var(--bg4); height: 3px; border-radius: 2px; overflow: hidden; }
.prog-fill {
  height: 100%; border-radius: 2px;
  background: linear-gradient(90deg, var(--blue), var(--teal));
  transition: width 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}
.prog-lbl {
  display: flex; justify-content: space-between;
  font-family: var(--code); font-size: 9px; color: var(--tx3); margin-top: 4px;
}
.proj-links { display: flex; gap: 10px; }
.proj-ext   { font-family: var(--code); font-size: 10px; color: var(--blue); text-decoration: none; }
.proj-ext:hover { color: var(--teal); }

.proj-add {
  background: var(--bg2); border: 1px dashed var(--bd2);
  border-radius: var(--rl); padding: 20px; cursor: pointer;
  transition: all var(--ease);
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  gap: 8px; min-height: 160px; color: var(--tx3);
}
.proj-add:hover { border-color: var(--blue); color: var(--blue); background: var(--blue-d); }
.proj-add-icon { font-family: var(--code); font-size: 22px; font-weight: 300; }
.proj-add-lbl  { font-family: var(--code); font-size: 10px; }

/* ═══════════════════════════════════════
   TOOLTIP & EMPTY
═══════════════════════════════════════ */
.tooltip {
  position: fixed;
  background: var(--bg4); border: 1px solid var(--bd2);
  border-radius: 5px; padding: 5px 10px;
  font-family: var(--code); font-size: 10px; color: var(--tx);
  pointer-events: none; z-index: 999;
  opacity: 0; transition: opacity 0.1s; white-space: nowrap;
}
.tooltip.show { opacity: 1; }

.empty {
  text-align: center; padding: 48px 20px;
  color: var(--tx3); font-family: var(--code); font-size: 11px; line-height: 2.2;
}
.empty-icon { font-size: 20px; display: block; margin-bottom: 8px; color: var(--tx4); }

/* ═══════════════════════════════════════
   SYNC STATUS BADGE
═══════════════════════════════════════ */
.sync-status {
  font-family: var(--code);
  font-size: 9px;
  font-weight: 500;
  letter-spacing: 0.08em;
  padding: 3px 9px;
  border-radius: 3px;
  border: 1px solid var(--bd);
  background: var(--bg3);
  color: var(--tx3);
  transition: all 0.3s;
  white-space: nowrap;
}
.st-ok    { color: var(--green);  background: var(--green-d);  border-color: rgba(158,206,106,0.25); }
.st-sync  { color: var(--amber);  background: var(--amber-d);  border-color: rgba(224,175,104,0.25); animation: pulse-sync 1s ease-in-out infinite; }
.st-off   { color: var(--tx3);    background: var(--bg3);      border-color: var(--bd); }
.st-err   { color: var(--red);    background: var(--red-d);    border-color: rgba(247,118,142,0.25); }

@keyframes pulse-sync {
  0%, 100% { opacity: 1; }
  50%       { opacity: 0.5; }
}

/* ═══════════════════════════════════════
   ENTRY ACTION BUTTONS (edit / delete)
═══════════════════════════════════════ */
.entry-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: 7px;
  gap: 8px;
}

.entry-right {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

.entry-actions {
  display: flex;
  gap: 4px;
  opacity: 0;
  transition: opacity 0.15s;
}

.entry:hover .entry-actions { opacity: 1; }

.act-btn {
  width: 26px; height: 26px;
  border-radius: 4px;
  border: 1px solid var(--bd);
  background: var(--bg4);
  font-size: 13px;
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: all 0.15s;
  color: var(--tx3);
  line-height: 1;
  font-family: var(--code);
}

.act-edit:hover {
  background: var(--blue-d);
  border-color: var(--blue-g);
  color: var(--blue);
}

.act-del:hover {
  background: var(--red-d);
  border-color: rgba(247, 118, 142, 0.3);
  color: var(--red);
}