/* 1001 Инструменти — стилове. Ползват цветовете на темата 1001неща, ако е активна. */
.nt-tool, .nt-index, .nt-page { --nt-blue: var(--c-blue, #4248E8); --nt-card: var(--card, #fff); --nt-line: var(--line, rgba(36,36,36,.12)); --nt-muted: var(--muted, #5f5f66); }
.nt-page { padding-bottom: 40px; }
.nt-head { text-align: left; margin-bottom: 18px; }
.nt-head-ic { font-size: 54px; line-height: 1; display: block; margin-top: 8px; }
.nt-intro { font-size: 18px !important; }

.nt-tool { background: var(--nt-card); border-radius: 24px; padding: clamp(18px, 4vw, 34px); box-shadow: 0 1px 2px rgba(0,0,0,.04), 0 10px 30px rgba(36,36,36,.07); margin: 10px 0 18px; font-size: 17px; line-height: 1.55; }
.nt-tool * { box-sizing: border-box; }
.nt-loading { color: var(--nt-muted); }
.nt-note, .nt-private { font-size: 14px; color: var(--nt-muted); margin: 8px 0; padding: 10px 14px; border-radius: 12px; background: var(--nt-card); }
.nt-muted { color: var(--nt-muted); font-size: 14px; }
.nt-sub { font-weight: 800; font-size: 13px; letter-spacing: .08em; text-transform: uppercase; margin: 18px 0 10px; }
.nt-big { font-size: clamp(24px, 4vw, 34px); font-weight: 750; line-height: 1.2; letter-spacing: -.02em; margin: 0 0 10px; }
.nt-big small { font-size: .55em; font-weight: 700; }
.nt-center { text-align: center; justify-content: center; }
.nt-tool p { margin: 0 0 10px; }

/* Форми */
.nt-form { display: grid; gap: 14px; margin-bottom: 8px; }
.nt-grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.nt-grid3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
@media (max-width: 560px) { .nt-grid2, .nt-grid3 { grid-template-columns: 1fr; } }
.nt-wide { grid-column: 1 / -1; }
.nt-field { display: flex; flex-direction: column; gap: 6px; font-weight: 600; font-size: 15px; }
.nt-field em { font-style: normal; font-weight: 500; color: var(--nt-muted); }
.nt-tool input[type=text], .nt-tool input[type=number], .nt-tool input[type=date], .nt-tool input[type=time], .nt-tool select, .nt-tool textarea {
	width: 100%; padding: 12px 14px; border-radius: 12px; border: 1.5px solid var(--nt-line); background: var(--bg, #F8F7F2); color: inherit; font: inherit; font-weight: 500; transition: border-color .15s, box-shadow .15s;
}
.nt-tool input:focus, .nt-tool select:focus, .nt-tool textarea:focus { outline: none; border-color: var(--nt-blue); box-shadow: 0 0 0 3px color-mix(in srgb, var(--nt-blue) 20%, transparent); }
.nt-tool input[type=range] { accent-color: var(--nt-blue); width: 100%; }
.nt-inline { display: flex; flex-wrap: wrap; gap: 10px; align-items: flex-end; margin-bottom: 12px; }
.nt-inline input[type=text] { flex: 1; min-width: 200px; }
.nt-inline .nt-field { flex: 1; min-width: 120px; }

/* Бутони */
.nt-btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; padding: 12px 20px; border-radius: 13px; border: 0; background: var(--nt-blue); color: #fff; font: inherit; font-weight: 700; cursor: pointer; text-decoration: none; transition: transform .15s, box-shadow .15s, background .15s; }
.nt-btn:hover { transform: translateY(-2px); box-shadow: 0 6px 16px rgba(66,72,232,.25); color: #fff; }
.nt-btn:disabled { opacity: .5; cursor: default; transform: none; }
.nt-btn-ghost { background: transparent; color: inherit; border: 1.5px solid var(--nt-line); }
.nt-btn-ghost:hover { color: var(--nt-blue); border-color: var(--nt-blue); box-shadow: none; }
.nt-btn-link { background: none; color: var(--nt-muted); padding: 8px 4px; font-weight: 600; text-decoration: underline; }
.nt-btn-link:hover { color: var(--nt-blue); box-shadow: none; }
.nt-btn-yellow { background: var(--c-yellow, #FFE78C); color: #242424; }
.nt-btn-yellow:hover { color: #242424; }
.nt-btn-ok { background: #3a9d5d; }
.nt-actions { display: flex; flex-wrap: wrap; gap: 10px; margin: 14px 0 6px; }
.nt-x { border: 0; background: transparent; color: var(--nt-muted); font-size: 22px; line-height: 1; cursor: pointer; padding: 0 6px; border-radius: 8px; }
.nt-x:hover { color: #e53935; background: rgba(229,57,53,.08); }
.nt-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 16px; }
.nt-chip { padding: 8px 14px; border-radius: 999px; border: 1.5px solid var(--nt-line); background: transparent; color: inherit; font: inherit; font-size: 15px; font-weight: 600; cursor: pointer; transition: all .15s; }
.nt-chip:hover { border-color: var(--nt-blue); }
.nt-chip.is-on { background: var(--nt-blue); color: #fff; border-color: var(--nt-blue); }

/* Резултати */
.nt-out { margin-top: 10px; }
.nt-result { margin-top: 10px; padding: 20px; border-radius: 18px; background: var(--bg, #F8F7F2); animation: ntIn .35s cubic-bezier(.2,.8,.2,1); }
@keyframes ntIn { from { opacity: 0; transform: translateY(8px); } }
.nt-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 10px; margin: 6px 0 14px; }
.nt-stats > div { padding: 14px; border-radius: 14px; background: var(--nt-card); text-align: center; }
.nt-stats strong { display: block; font-size: 22px; font-weight: 800; color: var(--nt-blue); line-height: 1.2; }
.nt-stats span { font-size: 13px; color: var(--nt-muted); }
.nt-stats .nt-neg strong { color: #e53935; }
.nt-stats .nt-pos strong { color: #2e9d57; }
.nt-bar { height: 12px; border-radius: 99px; background: var(--nt-line); overflow: hidden; margin: 6px 0 8px; }
.nt-bar span { display: block; height: 100%; background: var(--nt-blue); border-radius: 99px; transition: width .6s cubic-bezier(.2,.8,.2,1); }
.nt-tbl { width: 100%; border-collapse: collapse; margin: 10px 0; }
.nt-tbl td { padding: 10px 6px; border-bottom: 1px solid var(--nt-line); }
.nt-tbl td:last-child { text-align: right; }
.nt-list { padding-left: 20px; margin: 6px 0; }
.nt-list li { margin: 4px 0; }
.nt-entries { list-style: none; padding: 0; margin: 12px 0; }
.nt-entries li { padding: 10px 0; border-bottom: 1px solid var(--nt-line); font-size: 15px; }
.nt-e-date { display: inline-block; font-size: 12px; font-weight: 700; color: var(--nt-muted); min-width: 80px; }
.nt-card-out { padding: 18px; border-radius: 16px; border: 2px solid var(--nt-line); margin-top: 10px; }

/* Графики */
.nt-chart { width: 100%; height: auto; margin: 6px 0 10px; overflow: visible; }
.nt-chart text { font-size: 12px; fill: var(--nt-muted); font-family: inherit; }
.nt-chart .nt-val { fill: currentColor; font-weight: 700; }
.nt-grid line { stroke: var(--nt-line); }
.nt-donut { display: flex; flex-wrap: wrap; align-items: center; gap: 18px; margin: 10px 0; }
.nt-donut svg { width: 190px; flex: none; }
.nt-donut-c { font-size: 15px; font-weight: 800; fill: currentColor; }
.nt-legend { list-style: none; padding: 0; margin: 0; font-size: 14px; }
.nt-legend li { display: flex; align-items: center; gap: 8px; margin: 4px 0; }
.nt-legend span { width: 12px; height: 12px; border-radius: 4px; flex: none; }

/* Колело на емоциите */
.nt-wheel-wrap { display: grid; gap: 20px; align-items: start; }
@media (min-width: 760px) { .nt-wheel-wrap { grid-template-columns: 340px 1fr; } }
.nt-wheel { width: 100%; max-width: 340px; margin: 0 auto; }
.nt-slice { cursor: pointer; transition: transform .2s; transform-origin: 170px 170px; outline: none; }
.nt-slice path { stroke: var(--nt-card); stroke-width: 3; transition: filter .2s; }
.nt-slice:hover, .nt-slice:focus-visible { transform: scale(1.04); }
.nt-slice.is-on path { filter: brightness(1.05) drop-shadow(0 4px 8px rgba(0,0,0,.2)); }
.nt-slice.is-on { transform: scale(1.06); }
.nt-sl-emo { font-size: 22px; }
.nt-sl-txt { font-size: 12.5px; font-weight: 700; fill: #242424; }
.nt-wheel-c { font-size: 14px; font-weight: 700; fill: currentColor; }
.nt-chips .nt-chip[data-sub] { text-transform: lowercase; }

/* Въпросници */
.nt-progress { height: 8px; border-radius: 99px; background: var(--nt-line); overflow: hidden; margin-bottom: 14px; }
.nt-progress span { display: block; height: 100%; background: var(--nt-blue); transition: width .35s; }
.nt-q-count { font-size: 13px; font-weight: 700; color: var(--nt-muted); }
.nt-q-text { font-size: clamp(21px, 3.4vw, 27px); font-weight: 700; line-height: 1.3; margin: 6px 0 18px !important; letter-spacing: -.01em; }
.nt-scale { display: grid; gap: 8px; }
.nt-scale-btn { display: flex; align-items: center; gap: 12px; padding: 14px 16px; border-radius: 14px; border: 1.5px solid var(--nt-line); background: transparent; color: inherit; font: inherit; font-weight: 600; text-align: left; cursor: pointer; transition: all .15s; }
.nt-scale-btn:hover { border-color: var(--nt-blue); transform: translateX(3px); }
.nt-scale-btn.is-on { border-color: var(--nt-blue); background: color-mix(in srgb, var(--nt-blue) 10%, transparent); }
.nt-dot { width: 18px; height: 18px; border-radius: 50%; flex: none; }
.nt-dot-0 { background: #FF8A65; } .nt-dot-1 { background: #FFB84D; } .nt-dot-2 { background: #E0E0E0; } .nt-dot-3 { background: #9CCC65; } .nt-dot-4 { background: #43A047; }
.nt-trait { margin: 14px 0; }
.nt-trait-head { display: flex; justify-content: space-between; }
.nt-trait p { font-size: 15px; }
.nt-quad { width: 100%; max-width: 340px; display: block; margin: 14px auto; }
.nt-quad text { font-size: 11px; font-weight: 700; fill: #242424; }
.nt-quad .nt-axis-l { fill: var(--nt-muted); font-weight: 600; }

/* Карти с въпроси / генератори */
.nt-qcard, .nt-gen-card { padding: clamp(26px, 5vw, 44px); border-radius: 22px; background: var(--c-lilac, #DCD1F4); color: #242424; min-height: 170px; display: flex; flex-direction: column; justify-content: center; }
.nt-qcard.flip { animation: ntFlip .45s; }
@keyframes ntFlip { 0% { transform: rotateY(90deg); opacity: .3; } 100% { transform: none; opacity: 1; } }
.nt-qcard-cat { font-size: 13px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: #3036c9; }
.nt-qcard-q, .nt-gen-text { font-size: clamp(22px, 3.6vw, 30px); font-weight: 700; line-height: 1.3; margin: 0 !important; letter-spacing: -.01em; }
.nt-gen-card { background: var(--c-yellow, #FFE78C); text-align: center; }
.nt-gen-card.bg-mint { background: var(--c-mint, #D4E8CE); }
.nt-gen-card.bg-blue { background: var(--c-blue, #4248E8); color: #fff; }
.pop { animation: ntPop .35s cubic-bezier(.2,.8,.2,1); }
@keyframes ntPop { from { opacity: 0; transform: scale(.94); } }

/* Дневници */
.nt-moods { display: grid; grid-template-columns: repeat(5, 1fr); gap: 8px; margin-bottom: 14px; }
.nt-mood { display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 12px 4px; border-radius: 16px; border: 2px solid var(--nt-line); background: transparent; color: inherit; font: inherit; cursor: pointer; transition: all .15s; }
.nt-mood span { font-size: 34px; line-height: 1; transition: transform .2s; }
.nt-mood small { font-size: 12px; font-weight: 600; }
.nt-mood:hover span { transform: scale(1.15); }
.nt-mood[aria-pressed="true"] { border-color: var(--nt-blue); background: color-mix(in srgb, var(--nt-blue) 10%, transparent); }
.nt-mood[aria-pressed="true"] span { transform: scale(1.2); }

/* Навици */
.nt-table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; margin: 0 -4px; }
.nt-habits { border-collapse: separate; border-spacing: 4px; width: 100%; font-size: 14px; }
.nt-habits th { font-weight: 600; color: var(--nt-muted); font-size: 12px; white-space: nowrap; }
.nt-habits td:first-child { font-weight: 600; min-width: 130px; }
.nt-check { width: 36px; height: 36px; border-radius: 10px; border: 1.5px solid var(--nt-line); background: transparent; cursor: pointer; font-weight: 800; color: #fff; transition: all .15s; }
.nt-check.is-on { background: #43A047; border-color: #43A047; animation: ntPop .3s; }
.nt-goal { padding: 18px; border-radius: 16px; background: var(--bg, #F8F7F2); margin: 12px 0; }
.nt-goal-head { display: flex; justify-content: space-between; align-items: center; font-size: 19px; }
.nt-steps { list-style: none; padding: 0; margin: 8px 0 0; }
.nt-steps label { display: flex; gap: 8px; align-items: center; padding: 4px 0; cursor: pointer; }
.nt-steps input { width: 18px; height: 18px; accent-color: var(--nt-blue); }

/* Pomodoro */
.nt-pomo-ring { position: relative; width: min(280px, 80vw); margin: 10px auto; }
.nt-pomo-ring svg { width: 100%; }
.nt-ring-bg { fill: none; stroke: var(--nt-line); stroke-width: 12; }
.nt-ring { fill: none; stroke: #FF7043; stroke-width: 12; stroke-linecap: round; transition: stroke-dashoffset .3s linear; }
.nt-pomo-time { position: absolute; inset: 0; display: grid; place-items: center; font-size: clamp(44px, 12vw, 62px); font-weight: 800; letter-spacing: -.03em; font-variant-numeric: tabular-nums; }
.nt-settings { margin-top: 14px; }
.nt-settings summary { cursor: pointer; font-weight: 700; margin-bottom: 10px; }

/* Сън */
.nt-times { display: grid; grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)); gap: 10px; margin: 10px 0; }
.nt-time { padding: 16px; border-radius: 16px; background: var(--bg, #F8F7F2); text-align: center; }
.nt-time strong { display: block; font-size: 28px; font-weight: 800; }
.nt-time span { font-size: 13px; color: var(--nt-muted); }
.nt-time.is-best { background: var(--c-lilac, #DCD1F4); color: #242424; }
.nt-time.is-best span { color: #3d3d46; }
.nt-scalebar { position: relative; display: flex; height: 14px; border-radius: 99px; overflow: visible; margin: 18px 0 4px; }
.nt-scalebar span:first-child { border-radius: 99px 0 0 99px; } .nt-scalebar span:nth-child(4) { border-radius: 0 99px 99px 0; }
.nt-scalebar i { position: absolute; top: -6px; width: 6px; height: 26px; margin-left: -3px; border-radius: 3px; background: #242424; box-shadow: 0 0 0 2px #fff; }
.nt-scale-l { display: flex; justify-content: space-between; font-size: 12px; color: var(--nt-muted); margin-bottom: 12px; }

/* Кулинария */
.nt-menu-t { border-collapse: separate; border-spacing: 4px; width: 100%; min-width: 560px; }
.nt-menu-t th { text-align: left; font-size: 13px; font-weight: 700; color: var(--nt-muted); white-space: nowrap; }
.nt-menu-t input { padding: 9px 10px !important; font-size: 14px !important; }
.nt-oven { margin-top: 20px; padding-top: 16px; border-top: 1px solid var(--nt-line); }
body.nt-print-menu .site-header, body.nt-print-menu .site-footer, body.nt-print-menu .nt-head, body.nt-print-menu .crumbs, body.nt-print-menu .nt-more, body.nt-print-menu .nt-actions, body.nt-print-menu .nt-note { display: none !important; }

/* Бюджет */
.nt-bcols { display: grid; gap: 22px; }
@media (min-width: 760px) { .nt-bcols { grid-template-columns: 1fr 1.3fr; } }
.nt-brow { display: grid; grid-template-columns: 1fr 120px auto; gap: 6px; align-items: center; margin-bottom: 6px; }
.nt-brow input { padding: 9px 11px !important; font-size: 15px !important; }

/* Календар за засаждане */
.nt-cal { border-collapse: collapse; width: 100%; min-width: 560px; font-size: 13px; }
.nt-cal th, .nt-cal td { padding: 6px 3px; text-align: center; border-bottom: 1px solid var(--nt-line); }
.nt-cal tbody th { text-align: left; white-space: nowrap; font-weight: 600; padding-right: 10px; }
.nt-cal .is-now { background: color-mix(in srgb, var(--c-yellow, #FFE78C) 55%, transparent); }
.nt-cal i { display: inline-block; width: 10px; height: 10px; border-radius: 50%; margin: 1px; }
.nt-cal-s, .nt-legend-row .nt-cal-s::before { background: #B69CF0; }
.nt-cal-p, .nt-legend-row .nt-cal-p::before { background: #43A047; }
.nt-cal-h, .nt-legend-row .nt-cal-h::before { background: #FF8A65; }
.nt-legend-row { display: flex; gap: 16px; margin: 14px 0 8px; font-size: 13px; }
.nt-legend-row span { background: none !important; display: inline-flex; align-items: center; gap: 6px; }
.nt-legend-row span::before { content: ""; width: 10px; height: 10px; border-radius: 50%; }

/* Астрология */
.nt-natal { display: grid; gap: 18px; align-items: center; }
@media (min-width: 760px) { .nt-natal { grid-template-columns: 300px 1fr; } }
.nt-zodiac { width: 100%; max-width: 300px; margin: 0 auto; }
.nt-z-out { fill: var(--c-lilac, #DCD1F4); }
.nt-z-in { fill: var(--nt-card); }
.nt-zodiac line { stroke: rgba(36,36,36,.25); }
.nt-zs { font-size: 17px; fill: #242424; }
.nt-zp { font-size: 12px; font-weight: 800; fill: #fff; }
.nt-sign { display: flex; gap: 14px; align-items: flex-start; padding: 12px 0; border-bottom: 1px solid var(--nt-line); }
.nt-sign:last-child { border-bottom: 0; }
.nt-sign-sym { flex: none; width: 52px; height: 52px; border-radius: 16px; display: grid; place-items: center; font-size: 26px; font-weight: 800; background: var(--c-yellow, #FFE78C); color: #242424; }
.nt-sign small { display: block; font-size: 12px; font-weight: 700; color: var(--nt-muted); text-transform: uppercase; letter-spacing: .05em; }
.nt-sign strong { font-size: 20px; }
.nt-sign p { margin: 2px 0 0 !important; font-size: 15px; }
.nt-heart { display: grid; place-items: center; width: 150px; height: 150px; margin: 10px auto; border-radius: 50%; background: radial-gradient(circle at 30% 30%, #F8BBD0, #F06292); color: #fff; font-size: 40px; font-weight: 800; animation: ntBeat 1.2s ease-in-out infinite; }
@keyframes ntBeat { 0%, 100% { transform: scale(1); } 15% { transform: scale(1.08); } 30% { transform: scale(1); } 45% { transform: scale(1.05); } }

/* Викторина и анкета */
.nt-answers, .nt-poll-opts { display: grid; gap: 8px; }
.nt-answer { padding: 14px 16px; border-radius: 14px; border: 1.5px solid var(--nt-line); background: transparent; color: inherit; font: inherit; font-weight: 600; text-align: left; cursor: pointer; transition: all .15s; }
.nt-answer:hover:not(:disabled) { border-color: var(--nt-blue); transform: translateX(3px); }
.nt-answer.is-ok { background: #E8F5E9; border-color: #43A047; color: #1b5e20; }
.nt-answer.is-bad { background: #FFEBEE; border-color: #E53935; color: #b71c1c; animation: ntShake .35s; }
@keyframes ntShake { 25% { transform: translateX(-5px); } 75% { transform: translateX(5px); } }
.nt-explain { margin-top: 14px; }
.nt-poll-r { margin: 10px 0; }
.nt-poll-r.is-mine .nt-bar span { background: #43A047; }
.nt-poll-l { display: flex; justify-content: space-between; font-weight: 600; }

/* Игра на памет */
.nt-board { display: grid; gap: 8px; max-width: 520px; margin: 0 auto; }
.nt-mcard { position: relative; aspect-ratio: 1; border: 0; border-radius: 14px; background: var(--nt-blue); cursor: pointer; font-size: clamp(22px, 6vw, 34px); transition: transform .3s; transform-style: preserve-3d; perspective: 600px; }
.nt-mcard span { position: absolute; inset: 0; display: grid; place-items: center; border-radius: 14px; backface-visibility: hidden; }
.nt-mback { color: #fff; font-weight: 800; }
.nt-mface { background: var(--c-yellow, #FFE78C); transform: rotateY(180deg); }
.nt-mcard.is-open { transform: rotateY(180deg); }
.nt-mcard.is-match .nt-mface { background: var(--c-mint, #D4E8CE); }
.nt-mem-stats { text-align: center; font-weight: 600; }

/* Реакция */
.nt-react { width: 100%; min-height: 240px; border: 0; border-radius: 22px; display: flex; flex-direction: column; justify-content: center; align-items: center; gap: 8px; cursor: pointer; font: inherit; color: #242424; user-select: none; -webkit-user-select: none; touch-action: manipulation; }
.nt-react strong { font-size: clamp(28px, 6vw, 44px); }
.nt-react-wait { background: #FF8A65; }
.nt-react-go { background: #43A047; color: #fff; }

/* Списък с инструменти */
.nt-index { margin-top: 10px; }
.nt-group { margin: 30px 0; scroll-margin-top: 130px; }
.nt-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 14px; }
.nt-card { display: flex; flex-direction: column; gap: 6px; padding: 20px; border-radius: 18px; text-decoration: none; color: #242424; min-height: 150px; transition: transform .2s cubic-bezier(.2,.8,.2,1), box-shadow .2s; }
.nt-card:hover { transform: translateY(-4px) rotate(-.4deg); box-shadow: 0 10px 26px rgba(36,36,36,.1); color: #242424; }
.nt-card-ic { font-size: 32px; line-height: 1; margin-bottom: 4px; }
.nt-card strong { font-size: 18px; line-height: 1.25; }
.nt-card small { font-size: 14px; opacity: .8; }
.nt-more { margin-top: 40px; }
.nt-embed { margin: 1.5em 0; }

[data-theme="dark"] .nt-tool input, [data-theme="dark"] .nt-tool select, [data-theme="dark"] .nt-tool textarea { background: #2a2a31; }
[data-theme="dark"] .nt-result, [data-theme="dark"] .nt-goal, [data-theme="dark"] .nt-time:not(.is-best) { background: #2a2a31; }
[data-theme="dark"] .nt-stats > div { background: #212128; }
[data-theme="dark"] .nt-answer.is-ok { background: #1b3d22; color: #c8e6c9; }
[data-theme="dark"] .nt-answer.is-bad { background: #4a1d1d; color: #ffcdd2; }
@media (prefers-reduced-motion: reduce) { .nt-heart { animation: none; } }
.entry-content .nt-card, .entry-content .nt-card:hover { color: #242424; text-decoration: none; }
.entry-content .nt-chip, .entry-content .chip { text-decoration: none; color: inherit; }
.entry-content .nt-index .sec-title { margin-top: 0; }
