:root {
  --bg: #f7f6f3;
  --surface: #ffffff;
  --surface2: #fbfaf8;
  --sunken: #f0eeea;
  --ink: #14131a;
  --muted: #6e6c7d;
  --faint: #9a97a8;
  --line: #e8e5df;
  --accent: #5a4bff;
  --accent-2: #4235e0;
  --soft: #eceaff;
  --mint: #0fa47f;
  --mintbg: #e3f6f0;
  --coral: #f4603e;
  --coralbg: #fdeae5;
  --amber: #e0930a;
  --amberbg: #fdf1da;
  --violet: #8b5cf6;
  --violetbg: #f1eaff;
  --shadow: 0 1px 2px rgba(20, 19, 26, 0.04), 0 12px 30px rgba(20, 19, 26, 0.07);
  --shadow-sm: 0 1px 2px rgba(20, 19, 26, 0.05);
  --lift: 0 18px 40px rgba(20, 19, 26, 0.16);
  --scroll-thumb: #c9c5bc;
  --scroll-thumb-hover: #a8a49c;
  color-scheme: light;
}
[data-theme="dark"] {
  --bg: #0a0a0f;
  --surface: #15151f;
  --surface2: #101018;
  --sunken: #1d1d2a;
  --ink: #eceaf4;
  --muted: #928fa6;
  --faint: #6d6a84;
  --line: #26263a;
  --accent: #7d6fff;
  --accent-2: #9b90ff;
  --soft: #201d3d;
  --mint: #2fd9ab;
  --mintbg: #0f3a2e;
  --coral: #ff7f61;
  --coralbg: #3d1d16;
  --amber: #f2b23f;
  --amberbg: #3a2a10;
  --violet: #a78bfa;
  --violetbg: #2a2048;
  --shadow: 0 1px 2px rgba(0, 0, 0, 0.45), 0 14px 34px rgba(0, 0, 0, 0.4);
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.4);
  --lift: 0 20px 46px rgba(0, 0, 0, 0.55);
  --scroll-thumb: #2c2c40;
  --scroll-thumb-hover: #45455f;
  color-scheme: dark;
}
* { box-sizing: border-box; scrollbar-width: thin; scrollbar-color: var(--scroll-thumb) transparent; }
html, body, #app { margin: 0; min-height: 100vh; overflow-x: hidden; }
body {
  background: var(--bg);
  color: var(--ink);
  font-family: "Plus Jakarta Sans", system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
}
button, input, textarea, select { font: inherit; color: inherit; }
button { cursor: pointer; }
button:focus:not(:focus-visible) { outline: none; }
::-webkit-scrollbar { width: 8px; height: 8px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb {
  background: var(--scroll-thumb);
  border-radius: 99px;
  border: 2px solid transparent;
  background-clip: padding-box;
}
::-webkit-scrollbar-thumb:hover { background: var(--scroll-thumb-hover); background-clip: padding-box; }
::-webkit-scrollbar-corner { background: transparent; }
@keyframes nxin { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
@keyframes nxtoast { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
@keyframes nxpop { 0% { opacity: 0; transform: scale(0.94) translateY(8px); } 60% { transform: scale(1.015); } 100% { opacity: 1; transform: none; } }
@keyframes nxmodal { from { opacity: 0; transform: translateY(16px) scale(0.97); } to { opacity: 1; transform: none; } }
@keyframes nxfade { from { opacity: 0; } to { opacity: 1; } }
@keyframes nxbell { 0%, 100% { transform: rotate(0); } 12% { transform: rotate(13deg); } 25% { transform: rotate(-11deg); } 38% { transform: rotate(8deg); } 52% { transform: rotate(-6deg); } 66% { transform: rotate(3deg); } 80% { transform: rotate(-1deg); } }
@keyframes nxping { 0% { box-shadow: 0 0 0 0 rgba(244, 96, 62, 0.55); } 70% { box-shadow: 0 0 0 9px rgba(244, 96, 62, 0); } 100% { box-shadow: 0 0 0 0 rgba(244, 96, 62, 0); } }
@keyframes nxdrop { from { opacity: 0; transform: translateY(-8px) scale(0.98); } to { opacity: 1; transform: none; } }
.login-page {
  --login-flat: #f7f5f1;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 34px 20px;
  background: radial-gradient(120% 120% at 20% 0%, #ffffff 0%, #efece6 55%, #e4e0d8 100%);
}
[data-theme="dark"] .login-page {
  --login-flat: #14141e;
  background: radial-gradient(120% 120% at 20% 0%, #2b2b36 0%, #12121a 55%, #0a0a0f 100%);
}
.login-shell {
  width: 100%;
  max-width: 1080px;
  border-radius: 28px;
  box-shadow: 0 34px 80px rgba(20, 19, 26, 0.14);
  isolation: isolate;
}
[data-theme="dark"] .login-shell {
  box-shadow: 0 40px 90px rgba(0, 0, 0, 0.55);
}
.login-frame {
  width: 100%;
  border-radius: inherit;
  border: 1px solid rgba(20, 19, 26, 0.09);
  background: var(--login-flat);
  padding: 74px 26px;
  display: flex;
  justify-content: center;
  position: relative;
  overflow: hidden;
  -webkit-mask-image: radial-gradient(#fff, #fff);
  mask-image: radial-gradient(#fff, #fff);
}
[data-theme="dark"] .login-frame {
  border-color: rgba(255, 255, 255, 0.13);
}
.login-glow {
  position: absolute;
  top: -160px;
  right: -100px;
  width: 520px;
  height: 420px;
  border-radius: 50%;
  background: rgba(90, 75, 255, 0.1);
  filter: blur(60px);
  pointer-events: none;
}
[data-theme="dark"] .login-glow { background: rgba(255, 255, 255, 0.1); }
.login-cta {
  width: 100%;
  height: 52px;
  border-radius: 26px;
  border: none;
  background: #14131a;
  color: #fff;
  font-weight: 800;
  font-size: 14.5px;
  box-shadow: 0 14px 30px rgba(20, 19, 26, 0.22);
}
[data-theme="dark"] .login-cta {
  background: #fff;
  color: #14131a;
  box-shadow: 0 14px 30px rgba(0, 0, 0, 0.45);
}
.login-help {
  margin-top: 22px;
  border: none;
  background: transparent;
  font-weight: 700;
  font-size: 12.5px;
}
.login-row {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin: 11px 0 26px;
}
.login-row button {
  border: none;
  background: transparent;
  padding: 0;
  font-weight: 600;
  font-size: 12.5px;
  color: var(--muted);
  display: flex;
  align-items: center;
  gap: 8px;
}
.check {
  width: 17px;
  height: 17px;
  border-radius: 5px;
  border: 1.5px solid rgba(20, 19, 26, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 10px;
  font-weight: 800;
}
.check.on {
  background: #14131a;
  color: #fdfcfa;
  border-color: #14131a;
}
[data-theme="dark"] .check { border-color: rgba(255, 255, 255, 0.35); }
[data-theme="dark"] .check.on { background: #fff; color: #14131a; border-color: #fff; }
.pw-toggle {
  position: absolute;
  right: 8px;
  top: 8px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: none;
  background: transparent;
  color: var(--muted);
  display: flex;
  align-items: center;
  justify-content: center;
}
.mark { width: 212px; height: auto; display: block; margin-bottom: 18px; object-fit: contain; }
.mark-side { width: 150px; height: auto; display: block; flex: none; object-fit: contain; }
.login-muted { margin: 0 0 20px; font-size: 14.5px; color: var(--muted); text-align: center; }
.login-card { width: 100%; max-width: 336px; display: flex; flex-direction: column; align-items: center; position: relative; z-index: 1; }
.login-card h1 {
  margin: 0;
  font-family: "Bricolage Grotesque", sans-serif;
  font-size: 31px;
  letter-spacing: -0.035em;
  font-weight: 800;
  text-align: center;
}
.float-label { width: 100%; position: relative; display: block; margin-bottom: 18px; }
.float-label span {
  position: absolute; top: -8px; left: 15px; z-index: 1; padding: 0 6px;
  background: var(--login-flat); font-size: 11.5px; font-weight: 600; color: var(--muted);
}
.float-label input {
  width: 100%; height: 52px; border-radius: 26px; border: 1px solid rgba(20, 19, 26, 0.18);
  background: transparent; background-color: transparent; padding: 0 18px; font-weight: 500; outline: none;
  color: var(--ink); -webkit-text-fill-color: var(--ink);
  -webkit-appearance: none; appearance: none;
}
.float-label:has(.pw-toggle) input { padding-right: 50px; }
[data-theme="dark"] .float-label input { border-color: rgba(255, 255, 255, 0.22); }
.float-label input:-webkit-autofill,
.float-label input:-webkit-autofill:hover,
.float-label input:-webkit-autofill:focus {
  -webkit-text-fill-color: var(--ink);
  caret-color: var(--ink);
  box-shadow: 0 0 0 1000px var(--login-flat) inset;
  transition: background-color 9999s ease-out;
}
.btn-primary {
  border: none; background: var(--accent); color: #fff; font-weight: 800;
  border-radius: 14px; height: 50px; padding: 0 18px;
  box-shadow: 0 8px 18px rgba(90, 75, 255, 0.25);
  transition: transform 0.16s cubic-bezier(0.2, 0.9, 0.3, 1), box-shadow 0.16s ease, background 0.16s ease;
}
.btn-primary:hover { background: var(--accent-2); transform: translateY(-2px); box-shadow: 0 12px 26px rgba(90, 75, 255, 0.36); }
.btn-primary:active { transform: scale(0.97); }
.shell { display: flex; min-height: 100vh; align-items: stretch; }
.side {
  width: 252px; flex: none; background: var(--surface); border-right: 1px solid var(--line);
  display: flex; flex-direction: column; padding: 16px 14px; gap: 15px; position: sticky; top: 0; height: 100vh;
  overflow: hidden;
}
.side-brand { font-family: "Bricolage Grotesque", sans-serif; font-weight: 800; font-size: 20px; letter-spacing: -0.04em; padding: 4px; }
.nav-group {
  display: block; font-size: 9.5px; font-weight: 800; letter-spacing: 0.13em;
  color: var(--faint); padding: 14px 11px 5px;
}
.nav-item {
  display: flex; align-items: center; gap: 11px; padding: 9.5px 11px; border-radius: 12px;
  border: none; background: transparent; color: var(--ink); width: 100%; text-align: left;
  font-weight: 600; font-size: 13.5px; min-width: 0;
  transition: background 0.16s ease, color 0.16s ease;
}
.nav-item svg { flex: none; }
.nav-item > span { flex: 1; min-width: 0; line-height: 1.25; }
.nav-item:hover { background: var(--soft); color: var(--accent); }
.nav-item.active { background: var(--soft); color: var(--accent); }
.nav-item:focus { outline: none; }
.nav-item:focus-visible { outline: 2px solid var(--accent); outline-offset: -2px; }
.main-col { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.topbar {
  position: sticky; top: 0; z-index: 8; display: flex; align-items: center; justify-content: space-between;
  gap: 16px; padding: 15px 26px; border-bottom: 1px solid var(--line); background: var(--bg);
}
.topbar h1 {
  margin: 0; font-family: "Bricolage Grotesque", sans-serif; font-size: 20px; font-weight: 800; letter-spacing: -0.03em;
}
.crumb { font-size: 11px; font-weight: 800; color: var(--faint); letter-spacing: 0.04em; }
.search {
  height: 38px; border-radius: 12px; border: 1px solid var(--line); background: var(--surface);
  padding: 0 14px; min-width: 220px; outline: none;
}
.view { padding: 22px 26px 44px; display: flex; flex-direction: column; gap: 18px; }
.card {
  background: var(--surface); border: 1px solid var(--line); border-radius: 18px; box-shadow: var(--shadow-sm);
}
.lift { transition: transform 0.18s cubic-bezier(0.2, 0.9, 0.3, 1), box-shadow 0.18s ease, outline-color 0.18s ease; }
.lift:hover {
  transform: translateY(-3px); box-shadow: var(--lift);
  outline: 1.5px solid var(--accent); outline-offset: -1.5px;
}
.chip {
  font-size: 10.5px; font-weight: 800; padding: 3px 9px; border-radius: 999px; white-space: nowrap;
}
.hero {
  border-radius: 22px; padding: 24px 26px; color: #fff;
  background: linear-gradient(120deg, var(--accent) 0%, #3d2fc4 58%, #1d1840 100%);
  box-shadow: 0 18px 40px rgba(90, 75, 255, 0.28);
  display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap; align-items: center;
}
.hero h2 { margin: 0; font-family: "Bricolage Grotesque", sans-serif; font-size: 25px; font-weight: 700; letter-spacing: -0.03em; }
.kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(196px, 1fr)); gap: 13px; }
.kpi { padding: 16px 17px; display: flex; flex-direction: column; gap: 6px; }
.kpi b { font-family: "Bricolage Grotesque", sans-serif; font-size: 27px; font-weight: 700; letter-spacing: -0.03em; }
.grid { display: grid; gap: 13px; }
.grid-co { grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.grid-pr { grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); }
.co-card, .pr-card, .task-card, .dash-add {
  background: var(--surface); border: 1.5px solid var(--line); border-radius: 18px; padding: 17px 18px;
  display: flex; flex-direction: column; gap: 13px; cursor: pointer;
}
.co-card.active { border-color: var(--accent); box-shadow: var(--shadow); }
.avatar {
  border-radius: 50%; display: flex; align-items: center; justify-content: center; font-weight: 800; flex: none;
}
.bar { display: block; height: 6px; border-radius: 99px; background: var(--sunken); overflow: hidden; }
.bar > span { display: block; height: 100%; border-radius: 99px; }
.board { display: flex; gap: 12px; overflow-x: auto; padding-bottom: 8px; align-items: flex-start; }
.col {
  flex: 0 0 274px; background: var(--surface2); border: 1.5px solid var(--line); border-radius: 18px;
  padding: 13px; display: flex; flex-direction: column; gap: 10px; min-height: 250px;
}
.col.over { background: var(--soft); border-color: var(--accent); }
.task-card { border-radius: 14px; padding: 12px 13px; gap: 9px; cursor: grab; }
.task-card.dragging { opacity: 0.5; transform: rotate(1.5deg); }
.tabs { display: flex; gap: 6px; background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 5px; width: fit-content; }
.tab { border: none; border-radius: 10px; padding: 9px 15px; font-weight: 700; font-size: 12.5px; background: transparent; color: var(--muted); }
.tab.on { background: var(--accent); color: #fff; }
.list-head, .list-row {
  display: grid; grid-template-columns: 2.2fr 1.2fr 1.1fr 0.9fr 0.9fr; min-width: 760px; align-items: center;
}
.list-head { padding: 12px 20px; background: var(--surface2); font-size: 11px; font-weight: 700; letter-spacing: 0.06em; color: var(--muted); }
.list-row { padding: 13px 20px; border-top: 1px solid var(--line); cursor: pointer; }
.modal-bg {
  position: fixed; inset: 0; background: rgba(10, 9, 20, 0.55); backdrop-filter: blur(3px); z-index: 50;
  display: flex; align-items: center; justify-content: center; padding: 3vh 18px; overflow: hidden;
  overscroll-behavior: contain;
  animation: nxfade 0.18s ease;
}
.modal-bg.steady { animation: none; }
.modal {
  width: 560px; max-width: 100%; max-height: calc(100dvh - 6vh); background: var(--surface); border: 1px solid var(--line); border-radius: 22px;
  box-shadow: var(--lift); padding: 22px 24px; display: flex; flex-direction: column; gap: 17px;
  overflow: auto; overscroll-behavior: contain; -webkit-overflow-scrolling: touch;
  animation: nxmodal 0.26s cubic-bezier(0.2, 0.9, 0.3, 1);
}
.modal.steady { animation: none; }
.modal.wide { width: 620px; }
.field { display: flex; flex-direction: column; gap: 6px; }
.field span { font-size: 11.5px; font-weight: 700; color: var(--muted); }
.field input, .field textarea {
  border-radius: 12px; border: 1px solid var(--line); background: var(--surface2); color: var(--ink);
  padding: 0 13px; outline: none; width: 100%;
}
.field input { height: 44px; }
.field textarea { min-height: 82px; padding: 11px 13px; resize: vertical; }
.opt { border: 1px solid var(--line); background: var(--surface2); color: var(--muted); border-radius: 999px; padding: 6px 12px; font-weight: 700; font-size: 12px; }
.opt.on { border-color: var(--accent); background: var(--soft); color: var(--accent); }
.toast {
  position: fixed; left: 50%; bottom: 26px; transform: translateX(-50%); z-index: 60;
  background: var(--ink); color: var(--bg); border-radius: 14px; padding: 12px 18px;
  font-size: 13px; font-weight: 700; box-shadow: var(--lift); animation: nxtoast 0.22s ease;
  display: flex; align-items: center; gap: 9px;
}
.soon { padding: 28px 22px; color: var(--muted); font-size: 13.5px; line-height: 1.55; }
.icon-btn {
  width: 38px; height: 38px; border-radius: 12px; border: 1px solid var(--line);
  background: var(--surface); color: var(--ink); display: flex; align-items: center; justify-content: center;
}
.ghost {
  border: 1px solid var(--line); background: var(--surface2); color: var(--muted);
  border-radius: 11px; padding: 8px 12px; font-weight: 700; font-size: 12px;
}
.dash { border: 1.5px dashed var(--line); background: transparent; color: var(--muted); }
.err { color: var(--coral); font-size: 13px; min-height: 18px; margin-top: 8px; }
.theme-abs {
  position: absolute; top: 20px; right: 20px; width: 42px; height: 42px; border-radius: 50%;
  border: 1px solid var(--line); background: transparent;
}
.pr-row {
  display: flex; align-items: center; gap: 14px; flex-wrap: wrap; background: var(--surface2);
  border: 1.5px solid var(--line); border-radius: 16px; padding: 14px 16px; cursor: grab;
}
.pr-row.over { border-color: var(--accent); }
.side-head { display: flex; align-items: center; gap: 9px; padding: 4px; }
.menu-btn, .side-close { display: none; }
.side-scrim { display: none; }
.kbd { margin-left: auto; font-size: 10px; font-weight: 700; color: var(--muted); background: var(--sunken); padding: 3px 7px; border-radius: 7px; }
.side-nav {
  display: flex; flex-direction: column; gap: 2px;
  flex: 1; min-height: 0;
  overflow-x: hidden; overflow-y: auto;
}
.nav-badge { font-size: 10.5px; font-weight: 800; background: var(--coral); color: #fff; border-radius: 999px; padding: 2px 7px; animation: nxping 2.4s ease-out infinite; }
.side-foot { margin-top: auto; display: flex; flex-direction: column; gap: 12px; }
.online-box { background: var(--surface2); border: 1px solid var(--line); border-radius: 14px; padding: 12px; display: flex; flex-direction: column; gap: 9px; }
.online-row { display: flex; }
.online-row .avatar { margin-right: -7px; border: 2px solid var(--surface2); }
.theme-switch, .role-switch { display: flex; background: var(--sunken); border-radius: 12px; padding: 4px; gap: 4px; }
.theme-switch button, .role-switch button {
  flex: 1; border: none; border-radius: 9px; padding: 7px 0; font-weight: 700; font-size: 12px; background: transparent; color: var(--muted);
}
.theme-switch button.on, .role-switch button.on { background: var(--surface); color: var(--ink); box-shadow: var(--shadow-sm); }
.user-row { border-top: 1px solid var(--line); padding-top: 12px; display: flex; align-items: center; gap: 10px; }
.search-wrap { flex: 1 1 140px; min-width: 0; max-width: 380px; margin-left: auto; position: relative; }
.search-box {
  display: flex; align-items: center; gap: 9px; height: 40px; border-radius: 12px;
  background: var(--surface2); border: 1px solid var(--line); padding: 0 13px; color: var(--muted);
}
.search-box input { flex: 1; min-width: 0; height: 38px; border: none; background: transparent; color: var(--ink); outline: none; font-weight: 500; font-size: 13px; }
.search-drop {
  position: absolute; top: 46px; left: 0; right: 0; background: var(--surface); border: 1px solid var(--line);
  border-radius: 16px; box-shadow: var(--lift); padding: 8px; display: flex; flex-direction: column; gap: 3px;
  max-height: 380px; overflow: auto; z-index: 20; animation: nxdrop 0.2s cubic-bezier(0.2, 0.9, 0.3, 1);
}
.search-hit { display: flex; align-items: center; gap: 10px; border: none; background: transparent; border-radius: 11px; padding: 9px 10px; text-align: left; width: 100%; color: var(--ink); }
.search-hit:hover { background: var(--surface2); }
.hero-cta { border: none; background: #fff; color: var(--accent); border-radius: 13px; padding: 12px 17px; font-weight: 700; font-size: 13px; }
.hero-ghost { border: 1px solid rgba(255,255,255,.4); background: rgba(255,255,255,.12); color: #fff; border-radius: 13px; padding: 12px 17px; font-weight: 700; font-size: 13px; }
.fields { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 13px; }
.span2 { grid-column: 1 / -1; }
.modal-head { display: flex; align-items: flex-start; gap: 14px; }
.modal-foot { display: flex; gap: 10px; justify-content: flex-end; border-top: 1px solid var(--line); padding-top: 16px; flex-wrap: wrap; }
.danger { margin-right: auto; border: 1px solid var(--line); background: transparent; color: var(--coral); border-radius: 12px; padding: 10px 15px; font-weight: 700; font-size: 13px; }
.sub-row { display: flex; align-items: center; gap: 10px; border: 1px solid var(--line); background: var(--surface2); border-radius: 12px; padding: 9px 11px; }
.chk { width: 20px; height: 20px; border-radius: 6px; border: 1.5px solid var(--line); background: transparent; color: #fff; display: flex; align-items: center; justify-content: center; font-size: 11px; font-weight: 800; flex: none; }
.chk.on { background: var(--mint); border-color: var(--mint); }
.top-cta { height: 38px; padding: 0 16px; border-radius: 12px; border: none; background: var(--accent); color: #fff; font-weight: 700; font-size: 13px; white-space: nowrap; box-shadow: 0 8px 18px rgba(90,75,255,.25); }
.top-sec { height: 38px; padding: 0 14px; border-radius: 12px; border: 1px solid var(--line); background: var(--surface); color: var(--ink); font-weight: 700; font-size: 13px; white-space: nowrap; }
.notif-dot { position: absolute; top: -5px; right: -5px; min-width: 18px; height: 18px; border-radius: 999px; background: var(--coral); color: #fff; border: 2px solid var(--surface); font-size: 9.5px; font-weight: 800; display: flex; align-items: center; justify-content: center; padding: 0 4px; animation: nxping 2s ease-out infinite; }
.notif-panel {
  position: absolute; top: 46px; right: 0; width: 340px; background: var(--surface); border: 1px solid var(--line);
  border-radius: 18px; box-shadow: var(--lift); z-index: 20; overflow: hidden; animation: nxdrop 0.22s cubic-bezier(0.2, 0.9, 0.3, 1);
}
.clamp2 { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.pill { border-radius: 999px; padding: 6px 12px; font-weight: 700; font-size: 12px; border: 1px solid var(--line); background: var(--surface2); color: var(--muted); }
.pill.on { border-color: var(--accent); background: var(--soft); color: var(--accent); }
.pill.solid { background: var(--accent); color: #fff; border-color: var(--accent); }
.dropzone {
  border: 1.5px dashed var(--line);
  background: transparent;
  border-radius: 16px;
  padding: 18px;
  text-align: center;
  font-size: 12.5px;
  color: var(--muted);
  font-weight: 600;
  transition: all .15s ease;
}
.dropzone.on {
  border-color: var(--accent);
  background: var(--soft);
  color: var(--accent);
}
.map-vp {
  overflow: auto;
  border-radius: 16px;
  border: 1px solid var(--line);
  background: var(--surface2);
  height: 620px;
  overscroll-behavior: contain;
  user-select: none;
}
.map-canvas {
  position: relative;
  height: 1500px;
  width: 2400px;
  transform-origin: top left;
  border-radius: 16px;
  background-image: radial-gradient(var(--line) 1px, transparent 1px);
  background-size: 26px 26px;
}
.map-node {
  position: absolute;
  transform: translate(-50%, -50%);
  width: 204px;
  background: var(--surface);
  border: 1.5px solid var(--line);
  border-radius: 16px;
  padding: 11px 13px;
  display: flex;
  flex-direction: column;
  gap: 9px;
  cursor: grab;
  box-shadow: var(--shadow-sm);
}
.map-node.on {
  border-color: var(--accent);
  box-shadow: var(--lift);
}
.folder-card { padding: 0; overflow: hidden; cursor: pointer; }
.folder-cover {
  height: 74px;
  background: linear-gradient(135deg, var(--amberbg) 0%, var(--soft) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}
.cal-bar { color: #fff; }
@media (max-width: 860px) {
  .menu-btn, .side-close { display: flex; }
  .side-close { margin-left: auto; }
  .side .kbd { display: none; }
  .side {
    position: fixed;
    left: 0;
    top: 0;
    bottom: 0;
    height: 100dvh;
    width: min(292px, 88vw);
    z-index: 40;
    transform: translateX(-105%);
    transition: transform 0.22s cubic-bezier(0.2, 0.9, 0.3, 1);
    box-shadow: var(--lift);
    padding-top: max(16px, env(safe-area-inset-top));
    padding-bottom: max(16px, env(safe-area-inset-bottom));
  }
  .side.open { transform: none; }
  .side-scrim {
    display: block;
    position: fixed;
    inset: 0;
    background: rgba(20, 19, 26, 0.42);
    z-index: 35;
    animation: nxfade 0.18s ease;
  }
  .topbar {
    flex-wrap: wrap;
    gap: 10px 12px;
    padding: 12px 16px;
    align-items: center;
  }
  .topbar-title { flex: 1 1 auto; min-width: 0; }
  .topbar h1 { font-size: 18px; }
  .search-wrap {
    order: 5;
    flex: 1 1 100%;
    max-width: none;
    margin-left: 0;
  }
  .view { padding-left: 16px; padding-right: 16px; }
  .fields { grid-template-columns: 1fr; }
  .top-cta, .top-sec { height: 36px; padding: 0 12px; font-size: 12px; }
  .notif-panel { width: min(340px, calc(100vw - 24px)); right: -4px; }
  .map-vp { height: min(520px, 70vh); }
}
@media (max-width: 720px) {
  .login-page { padding: 18px 16px; }
  .login-shell {
    border-radius: 24px;
    box-shadow: 0 16px 36px rgba(20, 19, 26, 0.12);
  }
  [data-theme="dark"] .login-shell {
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.45);
  }
  .login-frame { padding: 52px 22px 36px; }
  .login-glow { width: 280px; height: 240px; top: -90px; right: -80px; filter: blur(42px); }
  .login-card h1 { font-size: 26px; }
}
