:root {
  color-scheme: dark;
  --bg: #09090b;
  --surface: #111115;
  --surface-2: #17171d;
  --surface-3: #202028;
  --line: #282832;
  --text: #f5f4f7;
  --muted: #91909c;
  --purple: #8b5cf6;
  --purple-soft: rgba(139, 92, 246, .14);
  --danger: #fb7185;
  --radius: 18px;
}
* { box-sizing: border-box; }
html, body { margin: 0; min-height: 100%; background: var(--bg); color: var(--text); font-family: "DM Sans", sans-serif; }
button, input, textarea, select { font: inherit; }
button { cursor: pointer; }
.hidden { display: none !important; }
.eyebrow { margin: 0 0 7px; color: var(--muted); font-size: 11px; font-weight: 700; letter-spacing: .13em; text-transform: uppercase; }
.brand-mark { width: 52px; height: 52px; display: grid; place-items: center; border-radius: 15px; background: linear-gradient(135deg, #a78bfa, #6d28d9); box-shadow: 0 14px 38px rgba(109, 40, 217, .32); font: 800 24px "Manrope"; }
.brand-mark.small { width: 38px; height: 38px; border-radius: 11px; font-size: 18px; }
.login-shell { min-height: 100vh; display: grid; grid-template-columns: minmax(420px, 42%) 1fr; }
.login-card { display: flex; flex-direction: column; justify-content: center; padding: clamp(40px, 8vw, 120px); background: #0d0d10; z-index: 2; }
.login-card h1 { margin: 20px 0 15px; font: 800 clamp(40px, 5vw, 68px)/1.02 "Manrope"; letter-spacing: -.055em; }
.login-card h1 span { color: #a78bfa; }
.login-copy { max-width: 420px; color: var(--muted); line-height: 1.6; margin: 0 0 34px; }
.stack { display: grid; gap: 17px; }
label { display: grid; gap: 8px; color: #bab9c3; font-size: 13px; font-weight: 600; }
input, textarea, select { width: 100%; border: 1px solid var(--line); border-radius: 11px; background: #141419; color: var(--text); padding: 13px 14px; outline: 0; transition: .2s; }
input:focus, textarea:focus, select:focus { border-color: var(--purple); box-shadow: 0 0 0 3px var(--purple-soft); }
textarea { min-height: 110px; resize: vertical; }
.primary, .ghost-button, .danger { border: 0; border-radius: 11px; padding: 11px 16px; color: white; font-weight: 700; }
.primary { background: var(--purple); box-shadow: 0 8px 24px rgba(139,92,246,.2); }
.primary:hover { background: #9d72f7; }
.primary.wide { width: 100%; margin-top: 4px; display: flex; justify-content: space-between; }
.ghost-button { color: #b8b7c0; background: var(--surface-2); border: 1px solid var(--line); }
.danger { background: rgba(251,113,133,.1); color: var(--danger); }
.form-error { min-height: 18px; margin: -4px 0; color: #fb7185; font-size: 13px; }
.login-art { position: relative; overflow: hidden; background: radial-gradient(circle at 60% 42%, #22183e 0, #101015 38%, #09090b 72%); }
.orb { position: absolute; border-radius: 50%; filter: blur(2px); }
.orb-one { width: 420px; height: 420px; left: 26%; top: 18%; background: rgba(112, 65, 220, .12); border: 1px solid rgba(167,139,250,.2); }
.orb-two { width: 200px; height: 200px; right: 8%; bottom: 9%; background: rgba(59,130,246,.08); }
.preview-card { position: absolute; width: min(360px, 54%); padding: 25px; border: 1px solid rgba(255,255,255,.09); border-radius: 18px; background: rgba(24,24,31,.78); box-shadow: 0 30px 80px rgba(0,0,0,.35); backdrop-filter: blur(16px); transform: rotate(-3deg); }
.preview-card b, .preview-card small { display: block; margin-left: 36px; }
.preview-card small { color: var(--muted); margin-top: 7px; }
.preview-top { left: 18%; top: 32%; }
.preview-bottom { right: 14%; top: 55%; transform: rotate(4deg); }
.dot, .check { position: absolute; width: 20px; height: 20px; border-radius: 7px; display: grid; place-items: center; }
.dot.purple { background: var(--purple); }
.check { color: #34d399; background: rgba(52,211,153,.12); }
.app-shell { height: 100vh; display: grid; grid-template-columns: 245px 1fr; overflow: hidden; }
.sidebar { display: flex; flex-direction: column; min-width: 0; padding: 22px 14px 16px; border-right: 1px solid var(--line); background: #0d0d10; }
.brand { display: flex; align-items: center; gap: 12px; padding: 0 8px 28px; }
.brand strong, .brand span { display: block; }
.brand strong { font: 800 16px "Manrope"; }.brand span { color: var(--muted); font-size: 11px; margin-top: 3px; }
.sidebar-heading { display: flex; align-items: center; justify-content: space-between; padding: 0 8px 10px; color: var(--muted); font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .12em; }
.icon-button { width: 34px; height: 34px; border: 0; border-radius: 10px; background: transparent; color: var(--muted); font-size: 20px; }
.icon-button:hover { background: var(--surface-3); color: white; }
.icon-button.accent { background: var(--purple-soft); color: #bda7ff; }
.project-list { display: grid; gap: 4px; overflow: auto; }
.project-row { display: grid; grid-template-columns: 10px 1fr auto; align-items: center; gap: 11px; width: 100%; padding: 11px 12px; border: 0; border-radius: 11px; color: #aaa9b3; background: transparent; text-align: left; }
.project-row:hover, .project-row.active { color: white; background: var(--surface-2); }
.project-row .project-dot { width: 8px; height: 8px; border-radius: 50%; }
.project-row span:last-child { color: #696873; font-size: 11px; }
.sidebar-footer { margin-top: auto; display: flex; justify-content: space-between; align-items: center; border-top: 1px solid var(--line); padding: 16px 8px 0; }
.user-chip { display: flex; align-items: center; gap: 10px; }.user-chip > span { width: 34px; height: 34px; display: grid; place-items: center; border-radius: 10px; background: var(--surface-3); font-weight: 700; }
.user-chip b, .user-chip small { display: block; }.user-chip b { font-size: 12px; }.user-chip small { color: var(--muted); font-size: 10px; margin-top: 2px; }
.workspace { min-width: 0; display: flex; flex-direction: column; }
.topbar { height: 82px; flex: 0 0 82px; display: flex; align-items: center; justify-content: space-between; padding: 0 28px; border-bottom: 1px solid var(--line); background: rgba(13,13,16,.9); }
.topbar h2 { margin: 0; font: 800 20px "Manrope"; }
.board { flex: 1; min-height: 0; display: grid; grid-template-columns: 290px 1fr; }
.section-panel { min-height: 0; display: flex; flex-direction: column; border-right: 1px solid var(--line); background: #0f0f13; }
.panel-title { padding: 24px 20px 16px; display: flex; justify-content: space-between; align-items: center; }
.panel-title h3 { margin: 0; font: 700 15px "Manrope"; }
.section-list { padding: 0 10px 20px; overflow: auto; display: grid; align-content: start; gap: 7px; }
.section-row { width: 100%; padding: 14px; border: 1px solid transparent; border-radius: 13px; background: transparent; color: #aaa9b3; text-align: left; }
.section-row:hover, .section-row.active { background: var(--surface-2); border-color: var(--line); color: white; }
.section-row b { display: block; font-size: 13px; }.section-row small { display: block; color: var(--muted); margin-top: 6px; }
.content-panel { min-width: 0; overflow: auto; padding: clamp(24px, 4vw, 52px); }
.content-header { display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.content-header h1 { margin: 0; font: 800 clamp(25px, 3vw, 38px) "Manrope"; letter-spacing: -.03em; }
.header-actions { display: flex; gap: 9px; }
.stats { display: flex; gap: 8px; margin: 26px 0; }
.stat { padding: 8px 11px; border-radius: 9px; background: var(--surface-2); color: var(--muted); font-size: 11px; font-weight: 700; }
.item-list { display: grid; gap: 10px; }
.item-card { display: grid; grid-template-columns: auto 1fr auto; gap: 14px; padding: 17px; border: 1px solid var(--line); border-radius: 14px; background: var(--surface); transition: .2s; }
.item-card:hover { border-color: #3a3945; transform: translateY(-1px); }
.item-card.note { border-left: 3px solid #f59e0b; }
.todo-check { width: 22px; height: 22px; margin-top: 1px; border: 2px solid #555461; border-radius: 7px; background: transparent; color: white; }
.todo-check.done { border-color: var(--purple); background: var(--purple); }
.item-body b { display: block; font-size: 14px; }.item-body p { margin: 7px 0 0; color: var(--muted); font-size: 13px; line-height: 1.55; white-space: pre-wrap; }
.item-card.completed .item-body b { color: #696873; text-decoration: line-through; }
.item-meta { display: flex; gap: 7px; align-items: flex-start; }
.badge { padding: 5px 8px; border-radius: 7px; background: var(--surface-3); color: var(--muted); font-size: 10px; font-weight: 700; white-space: nowrap; }
.badge.overdue { color: #fb7185; background: rgba(251,113,133,.09); }
.edit-item { border: 0; background: transparent; color: #6f6e79; padding: 2px 5px; font-size: 17px; }
.edit-item:hover { color: white; }
.empty-state, .empty-inline { text-align: center; color: var(--muted); }
.empty-state { margin: auto; max-width: 450px; }.empty-state h2, .empty-inline h3 { color: white; font-family: "Manrope"; }.empty-state p { margin-bottom: 24px; }
.empty-icon, .empty-inline > span { width: 58px; height: 58px; margin: 0 auto 18px; display: grid; place-items: center; border: 1px solid var(--line); border-radius: 17px; background: var(--surface-2); color: #a78bfa; font-size: 25px; }
.empty-inline { padding: 80px 20px; }.empty-inline p { font-size: 13px; }
dialog { width: min(520px, calc(100% - 28px)); border: 1px solid var(--line); border-radius: 18px; background: #121217; color: var(--text); padding: 0; box-shadow: 0 30px 100px rgba(0,0,0,.65); }
dialog::backdrop { background: rgba(0,0,0,.7); backdrop-filter: blur(5px); }
dialog form { padding: 24px; }.dialog-head, .dialog-actions { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.dialog-head { margin-bottom: 23px; }.dialog-head h2 { margin: 0; font: 800 23px "Manrope"; }
.dialog-actions { margin-top: 24px; }.dialog-actions span { flex: 1; }
.color-field { display: flex; gap: 9px; }.color-field input { height: 44px; padding: 4px; }
.toast { position: fixed; right: 24px; bottom: 24px; padding: 12px 16px; border: 1px solid var(--line); border-radius: 11px; background: #1b1b22; color: white; opacity: 0; transform: translateY(12px); pointer-events: none; transition: .25s; box-shadow: 0 15px 40px rgba(0,0,0,.35); }
.toast.show { opacity: 1; transform: translateY(0); }
.mobile-only { display: none; }
@media (max-width: 850px) {
  .login-shell { grid-template-columns: 1fr; }.login-art { display: none; }.login-card { padding: 38px 24px; }
  .app-shell { grid-template-columns: 1fr; }.sidebar { position: fixed; inset: 0 auto 0 0; width: 260px; z-index: 10; transform: translateX(-100%); transition: .25s; box-shadow: 20px 0 60px rgba(0,0,0,.5); }.sidebar.open { transform: none; }
  .mobile-only { display: inline-grid; place-items: center; }.topbar { padding: 0 15px; }.board { grid-template-columns: 220px 1fr; }.content-panel { padding: 24px 18px; }
}
@media (max-width: 620px) {
  .board { grid-template-columns: 1fr; overflow: auto; }.section-panel { min-height: auto; border-right: 0; border-bottom: 1px solid var(--line); }.section-list { display: flex; overflow-x: auto; }.section-row { min-width: 170px; }
  .content-panel { overflow: visible; }.content-header { align-items: flex-start; }.header-actions { flex-direction: column-reverse; }.item-card { grid-template-columns: auto 1fr; }.item-meta { grid-column: 2; }.topbar #editProject { display: none; }
}
