button, input, select, textarea { font: inherit; color: inherit; }
.noise { position: fixed; inset: 0; opacity: .2; pointer-events: none; z-index: 10; background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.08'/%3E%3C/svg%3E"); }

.nt-wrap { position: relative; z-index: 11; max-width: 1180px; margin: 0 auto; padding: 28px 24px 60px; }
.nt-hero { text-align: center; padding: 22px 0 6px; }
.nt-hero .kicker { color: var(--g-2); text-transform: uppercase; letter-spacing: 1.2px; font-size: 12px; font-weight: 700; }
.nt-hero h1 { font-size: clamp(32px, 5vw, 52px); line-height: 1.05; letter-spacing: -1.6px; margin: 12px 0 10px; font-weight: 600; }
.nt-hero p { color: var(--muted); font-size: 15px; max-width: 620px; margin: 0 auto; line-height: 1.5; }

.nt-app { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 18px; align-items: start; margin-top: 16px; }
@media (max-width: 820px) { .nt-app { grid-template-columns: 1fr; } }

.nt-sidebar { border: 1px solid var(--line); border-radius: 16px; background: var(--surface); box-shadow: var(--shadow); padding: 14px; display: flex; flex-direction: column; gap: 10px; position: sticky; top: 18px; }
@media (max-width: 820px) { .nt-sidebar { position: static; } }
.nt-side-head { display: flex; align-items: center; justify-content: space-between; }
.nt-side-head .kicker { color: var(--g-2); text-transform: uppercase; letter-spacing: 1px; font-size: 11px; font-weight: 700; }
.nt-projects { display: flex; flex-direction: column; gap: 4px; max-height: 360px; overflow-y: auto; }
.nt-proj { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 9px 10px; border: 1px solid transparent; border-radius: 9px; background: var(--surface-2); cursor: pointer; text-align: left; }
.nt-proj.active { border-color: var(--accent); }
.nt-proj-name { font-size: 13px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.nt-proj-count { font: 11px "DM Mono", monospace; color: var(--g-3); flex: none; }

.nt-mini { padding: 6px 10px; border: 1px solid var(--line); border-radius: 8px; background: var(--surface-2); cursor: pointer; font-size: 12px; font-weight: 600; }
.nt-mini.wide { width: 100%; }
.nt-mini.danger { color: var(--danger); }
.nt-mini:hover { border-color: var(--line-2); }

.nt-main { border: 1px solid var(--line); border-radius: 16px; background: var(--surface); box-shadow: var(--shadow); padding: 18px; min-width: 0; }
.nt-proj-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.nt-projname { flex: 1; min-width: 160px; border: 0; background: transparent; font-size: 20px; font-weight: 700; letter-spacing: -.5px; padding: 2px 4px; outline: 0; border-radius: 6px; }
.nt-projname:focus { box-shadow: 0 0 0 2px var(--accent); }
.nt-proj-tools { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.nt-fps { display: inline-flex; align-items: center; gap: 5px; font-size: 11px; text-transform: uppercase; letter-spacing: .5px; color: var(--g-2); font-weight: 700; }
.nt-fps select { padding: 5px 7px; border: 1px solid var(--line); border-radius: 8px; background: var(--surface-2); font-size: 12px; }
.nt-saved { color: var(--green-deep, green); font-size: 12px; font-weight: 700; }

.nt-storage { margin: 12px 0 0; padding: 9px 12px; border-radius: 9px; background: var(--surface-2); color: var(--g-2); font-size: 12px; line-height: 1.5; }

.nt-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 16px 0 12px; flex-wrap: wrap; }
.nt-views { display: inline-flex; border: 1px solid var(--line); border-radius: 10px; overflow: hidden; background: var(--surface-2); }
.nt-view { padding: 8px 14px; border: 0; background: transparent; cursor: pointer; font-size: 13px; font-weight: 700; color: var(--g-2); }
.nt-view.active { background: var(--solid); color: #fff; }
.nt-search { flex: 1; min-width: 140px; max-width: 280px; padding: 8px 12px; border: 1px solid var(--line); border-radius: 9px; background: var(--surface-2); outline: 0; font-size: 13px; }

.nt-export { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-bottom: 16px; }
.nt-export-sep { flex: 1; min-width: 4px; }
.nt-btn { padding: 9px 13px; border: 1px solid var(--line); border-radius: 10px; background: var(--surface); cursor: pointer; font-size: 13px; font-weight: 700; }
.nt-btn:hover { transform: translateY(-1px); }
.nt-btn.primary { background: var(--solid); color: #fff; border-color: var(--solid); }

.nt-empty { color: var(--g-2); font-size: 13px; padding: 14px 2px; }

/* notes */
.nt-note, .nt-check { border: 1px solid var(--line); border-radius: 12px; background: var(--surface-2); padding: 12px; margin-bottom: 10px; }
.nt-note-top { display: flex; align-items: center; gap: 10px; }
.nt-note-title { flex: 1; min-width: 0; border: 0; background: transparent; font-size: 15px; font-weight: 600; outline: 0; padding: 2px 0; }
.nt-note-ctrls { display: flex; align-items: center; gap: 6px; flex: none; }
.nt-note-text { width: 100%; margin-top: 8px; border: 1px solid var(--line); border-radius: 9px; background: var(--surface); padding: 9px 11px; resize: vertical; font-size: 14px; line-height: 1.5; outline: 0; }
.nt-icon { width: 28px; height: 28px; border: 1px solid var(--line); border-radius: 7px; background: var(--surface); cursor: pointer; font-size: 13px; line-height: 1; padding: 0; }
.nt-icon.danger { color: var(--danger); }
.nt-tc { padding: 4px 8px; border: 1px solid var(--accent); border-radius: 7px; background: color-mix(in srgb, var(--accent) 12%, var(--surface)); color: var(--accent-ink, var(--accent)); font: 500 12px "DM Mono", monospace; cursor: pointer; white-space: nowrap; }
.nt-tc.add { border-color: var(--line); background: var(--surface); color: var(--g-2); font-family: inherit; font-weight: 700; }

/* checklist */
.nt-prog { font: 12px "DM Mono", monospace; color: var(--g-2); }
.nt-items { list-style: none; margin: 10px 0; padding: 0; display: flex; flex-direction: column; gap: 4px; }
.nt-item { display: flex; align-items: center; gap: 9px; }
.nt-check-box { flex: none; width: 22px; height: 22px; border: 2px solid var(--line-2, var(--line)); border-radius: 6px; background: var(--surface); cursor: pointer; display: grid; place-items: center; }
.nt-item.done .nt-check-box { background: var(--success, #7ddf64); border-color: var(--success, #7ddf64); }
.nt-item.done .nt-check-box::after { content: "✓"; color: #06280a; font-weight: 800; font-size: 13px; }
.nt-item-text { flex: 1; min-width: 0; border: 0; background: transparent; outline: 0; font-size: 14px; padding: 4px 0; }
.nt-item.done .nt-item-text { text-decoration: line-through; color: var(--g-2); }
.nt-item-ctrls { display: flex; align-items: center; gap: 6px; flex: none; }
.nt-additem { width: 100%; border: 1px dashed var(--line); border-radius: 9px; background: transparent; padding: 8px 11px; outline: 0; font-size: 13px; }
.nt-additem:focus { border-color: var(--accent); border-style: solid; }

/* board */
.nt-board { position: relative; min-height: 420px; border: 1px dashed var(--line); border-radius: 14px; background: var(--surface-2); overflow: hidden; }
.nt-sticky { position: absolute; width: 184px; min-height: 120px; border-radius: 10px; box-shadow: 0 6px 18px rgba(0,0,0,.25); display: flex; flex-direction: column; color: #1b1f24; }
.nt-sticky-bar { display: flex; align-items: center; justify-content: space-between; padding: 6px 8px; cursor: grab; }
.nt-sticky.dragging { z-index: 5; box-shadow: 0 14px 34px rgba(0,0,0,.35); }
.nt-sticky.dragging .nt-sticky-bar { cursor: grabbing; }
.nt-sticky-dots { display: flex; gap: 4px; }
.nt-cdot { width: 13px; height: 13px; border-radius: 50%; border: 1px solid rgba(0,0,0,.25); cursor: pointer; padding: 0; }
.nt-sticky .nt-icon { background: rgba(0,0,0,.08); border-color: rgba(0,0,0,.15); color: #7a1f1a; width: 22px; height: 22px; }
.nt-sticky-text { flex: 1; border: 0; background: transparent; resize: none; outline: 0; padding: 4px 10px 10px; font-size: 13px; line-height: 1.45; color: #1b1f24; }
.nt-sticky-text::placeholder { color: rgba(27,31,36,.5); }
.nt-board-hint { display: none; color: var(--g-3); font-size: 12px; margin: 8px 0 0; }

@media (max-width: 640px) {
  .nt-board { display: flex; flex-wrap: wrap; gap: 12px; padding: 12px; min-height: 0; }
  .nt-sticky { position: static !important; width: 100%; max-width: 220px; }
  .nt-sticky-bar { cursor: default; }
  .nt-board-hint { display: block; }
}

.toast { position: fixed; bottom: 25px; left: 50%; transform: translate(-50%, 30px); opacity: 0; pointer-events: none; z-index: 60; background: var(--solid); color: #fff; border-radius: 12px; padding: 12px 16px; font-size: 13px; display: flex; gap: 9px; align-items: center; transition: .3s; }
.toast span:first-child { color: var(--green); }
.toast.show { transform: translate(-50%, 0); opacity: 1; }
