


.nt-card-body { padding-top: 14px; }
.nt-rows { display: flex; flex-direction: column; gap: 2px; }
.nt-row {
    display: flex; align-items: center; gap: 10px; padding: 9px 0; cursor: pointer;
    border-bottom: 1px solid rgba(255, 255, 255, 0.045);
}
.nt-row:last-child { border-bottom: none; }
.nt-row-pin { color: #FFD700; flex-shrink: 0; }
.nt-row-dot { width: 5px; height: 5px; border-radius: 50%; background: rgba(255,255,255,.16); flex-shrink: 0; margin: 0 3px; }
.nt-row-t { flex: 1; font-size: 13.5px; color: #e6edf3; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.nt-row-m { font-size: 11px; color: #8b949e; flex-shrink: 0; font-variant-numeric: tabular-nums; }
.nt-foot {
    margin-top: 14px; padding-top: 13px; border-top: 1px solid rgba(255,255,255,.08);
    display: flex; align-items: center; justify-content: space-between; gap: 10px;
}
.nt-foot-t { font-size: 11.5px; color: #8b949e; }


.nt-wrap { padding: 0 16px 40px; }
.nt-top { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; margin-bottom: 16px; }
.nt-eyebrow {
    font-family: 'Rajdhani', sans-serif; font-size: 11px; font-weight: 600;
    letter-spacing: 1.4px; text-transform: uppercase; color: #8b949e; margin: 0 0 4px;
}
.nt-top-t { flex: 1; min-width: 0; }   
.nt-h { font-family: 'Rajdhani', sans-serif; font-size: 22px; font-weight: 700; margin: 0; letter-spacing: .3px; }
.nt-quota { font-size: 11px; color: #8b949e; font-variant-numeric: tabular-nums; flex-shrink: 0; }

.nt-search-wrap { position: relative; margin-bottom: 14px; }
.nt-mag { position: absolute; left: 13px; top: 50%; transform: translateY(-50%); color: #8b949e; pointer-events: none; }
.nt-mag svg { width: 15px; height: 15px; display: block; }
.nt-search {
    width: 100%; padding: 12px 14px 12px 40px; background: rgba(0,0,0,.30);
    border: 1px solid rgba(255,255,255,.08); color: #e6edf3; border-radius: 12px;
    font-size: 16px; 
    font-family: 'Inter', sans-serif; outline: none; transition: .2s; box-sizing: border-box;
}
.nt-search::placeholder { color: #8b949e; }
.nt-search:focus { border-color: #00FF94; box-shadow: 0 0 10px rgba(0,255,148,.10); }


.nt-item {
    background: rgba(22,27,34,.60); border: 1px solid rgba(255,255,255,.08);
    border-radius: 14px; padding: 15px 16px; margin-bottom: 10px; cursor: pointer;
    backdrop-filter: blur(10px); transition: border-color .18s, transform .1s;
}
.nt-item:active { transform: scale(.995); }
.nt-item.is-pinned { border-left: 2px solid #FFD700; }
.nt-item-h { display: flex; align-items: center; gap: 8px; margin-bottom: 6px; }
.nt-pin { color: #FFD700; flex-shrink: 0; }
.nt-item-t {
    font-family: 'Rajdhani', sans-serif; font-size: 15.5px; font-weight: 600; flex: 1;
    letter-spacing: .3px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; color: #fff;
}
.nt-item-t.is-empty { color: #8b949e; font-style: italic; font-weight: 500; }
.nt-item-p {
    font-size: 12.5px; color: #8b949e; line-height: 1.5; margin: 0 0 9px;
    display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.nt-item-m { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.nt-date {
    font-family: 'Rajdhani', sans-serif; font-size: 10.5px; font-weight: 600;
    color: #8b949e; letter-spacing: .5px; text-transform: uppercase;
}
.nt-tasks { font-size: 10.5px; color: #8b949e; display: inline-flex; align-items: center; gap: 4px; font-variant-numeric: tabular-nums; }
.nt-tasks.is-done { color: #00FF94; }


.nt-chip {
    display: inline-flex; align-items: center; gap: 4px;
    background: rgba(88,166,255,.10); border: 1px solid rgba(88,166,255,.30);
    color: #58a6ff; border-radius: 20px; padding: 3px 8px; font-size: 10.5px; max-width: 100%;
}
.nt-chip-go { display: inline-flex; align-items: center; gap: 5px; cursor: pointer; min-width: 0; }
.nt-chip-l { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 150px; }
.nt-chip-x { background: none; border: none; color: inherit; cursor: pointer; padding: 0 0 0 2px; display: inline-flex; opacity: .65; }
.nt-chip-x:hover { opacity: 1; }
.nt-chip.is-gone { background: rgba(139,148,158,.10); border-color: rgba(255,255,255,.16); color: #8b949e; }

.nt-empty { text-align: center; padding: 46px 20px; color: #8b949e; }
.nt-empty-ic { color: rgba(255,255,255,.16); margin: 0 auto 14px; display: flex; justify-content: center; }
.nt-empty p { margin: 0 0 6px; font-size: 14px; color: #e6edf3; }
.nt-empty small { font-size: 12.5px; line-height: 1.6; }


.nt-bar { display: flex; align-items: center; gap: 10px; margin-bottom: 18px; }
.nt-spacer { flex: 1; }
.nt-icon {
    width: 34px; height: 34px; border-radius: 10px; flex-shrink: 0; padding: 0;
    background: transparent; border: 1px solid rgba(255,255,255,.08); color: #8b949e;
    display: inline-flex; align-items: center; justify-content: center; cursor: pointer; transition: .15s;
}
.nt-icon svg { width: 16px; height: 16px; }
.nt-icon:hover { color: #e6edf3; border-color: rgba(255,255,255,.16); }
.nt-icon.is-on { color: #FFD700; border-color: rgba(255,215,0,.45); }
.nt-icon.nt-danger:hover { color: #ff4444; border-color: rgba(255,68,68,.5); }

.nt-title {
    width: 100%; background: transparent; border: none; outline: none; color: #e6edf3;
    font-family: 'Rajdhani', sans-serif; font-size: 24px; font-weight: 700;
    letter-spacing: .3px; padding: 0 0 6px; border-bottom: 1px solid transparent;
    transition: border-color .2s; box-sizing: border-box;
}
.nt-title::placeholder { color: rgba(139,148,158,.55); }
.nt-title:focus { border-bottom-color: rgba(255,255,255,.16); }

.nt-links { display: flex; flex-wrap: wrap; gap: 6px; margin: 12px 0 4px; }
#nt-link-btn { margin-top: 8px; }

.nt-blocks { margin-top: 10px; }
.nt-b { display: flex; align-items: flex-start; gap: 8px; padding: 2px 0; border-radius: 8px; }
.nt-gutter {
    width: 22px; flex-shrink: 0; display: flex; align-items: center; justify-content: center;
    padding-top: 9px; color: rgba(139,148,158,.32); font-family: 'Rajdhani', sans-serif;
    font-size: 10px; font-weight: 700; user-select: none;
}
.nt-b textarea {
    flex: 1; background: transparent; border: none; outline: none; resize: none; color: #e6edf3;
    font-family: 'Inter', sans-serif; font-size: 16px; 
    line-height: 1.6; padding: 6px 4px; overflow: hidden; min-height: 32px;
    border-radius: 6px; transition: background .15s; box-sizing: border-box;
}
.nt-b textarea::placeholder { color: rgba(139,148,158,.42); }
.nt-b textarea:focus { background: rgba(255,255,255,.022); }
.nt-b[data-t="h"] textarea {
    font-family: 'Rajdhani', sans-serif; font-size: 19px; font-weight: 700;
    letter-spacing: .3px; line-height: 1.35; padding-top: 12px;
}
.nt-b[data-t="c"] textarea { padding-left: 2px; }
.nt-b[data-t="c"].is-done textarea { color: #8b949e; text-decoration: line-through; }

.nt-check {
    width: 19px; height: 19px; border-radius: 5px; border: 1.5px solid rgba(255,255,255,.16);
    background: transparent; cursor: pointer; flex-shrink: 0; margin-top: 10px; padding: 0;
    display: flex; align-items: center; justify-content: center; transition: .15s; color: #051a10;
}
.nt-check:hover { border-color: #00FF94; }
.nt-check.is-on { background: #00FF94; border-color: #00FF94; }
.nt-check svg { opacity: 0; transition: opacity .12s; }
.nt-check.is-on svg { opacity: 1; }

.nt-div { flex: 1; padding: 13px 4px; }
.nt-div hr { border: none; border-top: 1px solid rgba(255,255,255,.16); margin: 0; }

.nt-tools { display: none; gap: 3px; align-items: center; padding-top: 4px; flex-shrink: 0; }
.nt-b.is-active .nt-tools { display: flex; }
.nt-tools button {
    background: transparent; border: none; color: #8b949e; cursor: pointer;
    width: 28px; height: 28px; border-radius: 6px; padding: 0;
    display: flex; align-items: center; justify-content: center;
}
.nt-tools button:hover { background: rgba(255,255,255,.06); color: #e6edf3; }
.nt-tools button.nt-danger:hover { color: #ff4444; }

.nt-add { display: flex; gap: 8px; margin-top: 16px; flex-wrap: wrap; }
.nt-add button {
    flex: 1; min-width: 74px; background: transparent; border: 1px dashed rgba(255,255,255,.16);
    color: #8b949e; border-radius: 10px; padding: 10px 6px; cursor: pointer;
    font-family: 'Rajdhani', sans-serif; font-size: 11px; font-weight: 600;
    letter-spacing: .8px; text-transform: uppercase; transition: .15s;
    display: flex; flex-direction: column; align-items: center; gap: 5px;
}
.nt-add button svg { width: 15px; height: 15px; }
.nt-add button:hover { border-color: #00FF94; color: #00FF94; }

.nt-hint {
    margin-top: 14px; background: rgba(0,0,0,.30); border: 1px solid rgba(255,255,255,.08);
    border-radius: 10px; padding: 11px 13px; font-size: 11.5px; color: #8b949e; line-height: 1.85;
}
.nt-hint kbd {
    background: rgba(255,255,255,.07); border: 1px solid rgba(255,255,255,.16); border-radius: 4px;
    padding: 1px 5px; font-family: ui-monospace, Consolas, monospace; font-size: 10.5px; color: #e6edf3;
}

.nt-foot-ed {
    margin-top: 22px; padding-top: 15px; border-top: 1px solid rgba(255,255,255,.08);
    display: flex; align-items: center; justify-content: space-between; gap: 10px;
}
.nt-count { font-size: 11px; color: #8b949e; font-variant-numeric: tabular-nums; letter-spacing: .3px; }
.nt-count.is-warn { color: #FFD700; }
.nt-count.is-over { color: #ff4444; }


.nt-sheet-bg {
    position: fixed; inset: 0; background: rgba(0,0,0,.72); backdrop-filter: blur(3px);
    z-index: 9000; display: flex; align-items: flex-end; justify-content: center;
    animation: nt-fade .18s ease;
}
@keyframes nt-fade { from { opacity: 0; } }
.nt-sheet {
    width: 100%; max-width: 480px; background: #10161d;
    border: 1px solid rgba(255,255,255,.08); border-bottom: none; border-radius: 20px 20px 0 0;
    padding: 8px 18px calc(22px + env(safe-area-inset-bottom, 0px));
    max-height: 78vh; display: flex; flex-direction: column;
    animation: nt-up .22s cubic-bezier(.22,.8,.3,1);
}
@keyframes nt-up { from { transform: translateY(100%); } }
.nt-grip { width: 38px; height: 4px; border-radius: 4px; background: rgba(255,255,255,.16); margin: 6px auto 14px; }
.nt-sheet h3 { margin: 0 0 3px; font-family: 'Rajdhani', sans-serif; font-size: 17px; font-weight: 700; letter-spacing: .3px; }
.nt-sheet-sub { margin: 0 0 14px; font-size: 12.5px; color: #8b949e; line-height: 1.5; }
.nt-sheet-scroll { overflow-y: auto; margin: 0 -4px; padding: 0 4px; }
.nt-group {
    font-family: 'Rajdhani', sans-serif; font-size: 10px; font-weight: 700; letter-spacing: 1.3px;
    text-transform: uppercase; color: #8b949e; margin: 14px 0 7px;
}
.nt-group:first-child { margin-top: 4px; }
.nt-target {
    display: flex; align-items: center; gap: 11px; width: 100%; text-align: left;
    background: rgba(0,0,0,.30); border: 1px solid rgba(255,255,255,.08); border-radius: 11px;
    padding: 11px 13px; margin-bottom: 7px; cursor: pointer; color: #e6edf3;
    font-family: 'Inter', sans-serif; font-size: 13.5px; transition: .15s;
}
.nt-target:hover { border-color: rgba(88,166,255,.45); }
.nt-target-ic { color: #58a6ff; flex-shrink: 0; display: flex; }
.nt-target-t { flex: 1; min-width: 0; }
.nt-target-t small { display: block; color: #8b949e; font-size: 11px; margin-top: 2px; }
.nt-target[disabled] { opacity: .38; cursor: default; }
.nt-target[disabled]:hover { border-color: rgba(255,255,255,.08); }

@media (prefers-reduced-motion: reduce) {
    .nt-sheet, .nt-sheet-bg { animation: none; }
    .nt-item:active { transform: none; }
}


.mission-card.nt-highlight {
    border-color: #00FF94 !important;
    box-shadow: 0 0 0 1px rgba(0,255,148,.35), 0 0 22px rgba(0,255,148,.18);
    transition: box-shadow .3s ease, border-color .3s ease;
}
@media (prefers-reduced-motion: reduce) {
    .mission-card.nt-highlight { transition: none; }
}


.nt-sheet-busca { margin: 0 0 10px; }
.nt-sheet-busca input {
    width: 100%; padding: 10px 13px; background: rgba(0,0,0,.30);
    border: 1px solid rgba(255,255,255,.08); color: #e6edf3; border-radius: 11px;
    font-size: 16px; 
    font-family: 'Inter', sans-serif; outline: none; box-sizing: border-box; transition: .2s;
}
.nt-sheet-busca input::placeholder { color: #8b949e; }
.nt-sheet-busca input:focus { border-color: #58a6ff; box-shadow: 0 0 10px rgba(88,166,255,.12); }

.nt-mais { margin: 4px 0 2px; font-size: 11px; color: #8b949e; font-style: italic; }



@media (max-width: 768px) {
    #tb-notes:not(.hidden) {
        position: fixed;
        inset: 0;
        z-index: 101;
        background: #0d1117;
        display: flex;
        flex-direction: column;
        overflow: hidden;
        animation: nt-fade .18s ease;
    }

    
    #tb-notes:not(.hidden) .nt-wrap {
        flex: 1;
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
        overscroll-behavior: contain;
        padding-bottom: calc(28px + env(safe-area-inset-bottom, 0px));
    }

    
    #tb-notes:not(.hidden) .nt-top,
    #tb-notes:not(.hidden) .nt-bar {
        position: sticky;
        top: 0;
        z-index: 2;
        background: #0d1117;
        margin-left: -16px;
        margin-right: -16px;
        padding: calc(12px + env(safe-area-inset-top, 0px)) 16px 12px;
    }
}
