:root {
    --tl-accent: #ff6b35;
    --tl-gradient-warm: linear-gradient(135deg, #ff6b35 0%, #f7931e 100%);
    --tl-danger: #b04a2a;
    --tl-success: #059669;
    --tl-glass: rgba(255, 255, 255, 0.08);
    --tl-glass-border: rgba(255, 255, 255, 0.18);
    --tl-focus: 0 0 0 3px rgba(102, 201, 243, 0.45);
    --tl-header: 67px;
}

.nk-page {
    padding-top: 6px;
}

.nk-page h2,
.nk-page h3 {
    color: var(--tl-text);
}

.nk-breadcrumb {
    margin-bottom: 0;
}

.nk-breadcrumb .breadcrumb-item.active {
    min-width: 0;
    overflow: hidden;
}

.nk-breadcrumb .breadcrumb-item.active span {
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
}

.nk-hero {
    position: relative;
    margin-top: var(--tl-gap-crumbs);
    padding-left: var(--tl-inset);
}

.nk-hero h1 {
    margin: 0;
    font-size: 1.3rem;
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: -0.02em;
    color: var(--tl-text);
}

.nk-hero-art {
    display: none;
}

.nk-lead {
    max-width: 75ch;
    margin: var(--tl-gap-lead) 0 0;
    font-size: 15px;
    line-height: 1.5;
    color: var(--tl-text-muted);
}

.nk-js .nk-lead {
    display: -webkit-box;
    padding-right: 96px;
    overflow: hidden;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 1;
}

.nk-js .nk-lead.is-open {
    display: block;
    padding-right: 0;
    overflow: visible;
}

.nk-lead-more {
    display: none;
    position: absolute;
    right: 0;
    bottom: -11px;
    height: 44px;
    padding: 0;
    border: 0;
    background: none;
    font-size: 15px;
    font-weight: 600;
    line-height: 22px;
    color: var(--tl-primary-dark);
    cursor: pointer;
}

.nk-js .nk-lead-more {
    display: block;
}

.nk-lead-more span {
    text-decoration: underline;
    text-underline-offset: 3px;
}

.nk-js .nk-lead-more[hidden] {
    display: none;
}

.nk-lead-more:hover,
.nk-lead-more:focus-visible {
    color: var(--tl-primary);
}

.nk-lead-more:focus-visible {
    outline: none;
    box-shadow: var(--tl-focus);
    border-radius: 4px;
}

.nk-tool {
    position: relative;
    margin-top: var(--tl-gap-tool);
    border-radius: var(--tl-radius-lg);
    background: var(--tl-card-bg);
    box-shadow: var(--tl-shadow-card);
    scroll-margin-top: calc(var(--tl-header) + 8px);
}

.nk-head {
    padding: 10px var(--tl-inset) 8px;
    border-radius: var(--tl-radius-lg) var(--tl-radius-lg) 0 0;
    background: var(--tl-gradient-panel);
    color: #fff;
}

.nk-label {
    position: absolute;
    width: 1px;
    height: 1px;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
}

.nk-input-wrap {
    position: relative;
}

.nk-input {
    display: block;
    width: 100%;
    height: 50px;
    padding: 0 50px 0 14px;
    border: 1px solid var(--tl-glass-border);
    border-radius: var(--tl-radius-sm);
    background: rgba(0, 0, 0, 0.18);
    font-size: 22px;
    font-weight: 500;
    color: #fff;
    caret-color: var(--tl-primary-light);
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.nk-input::placeholder {
    color: rgba(255, 255, 255, 0.75);
}

.nk-input:hover {
    border-color: rgba(255, 255, 255, 0.32);
}

.nk-input:focus {
    outline: none;
    border-color: #fff;
    box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.35);
}

.nk-clear {
    position: absolute;
    top: 3px;
    right: 3px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border: 0;
    border-radius: 10px;
    background: transparent;
    font-size: 20px;
    color: rgba(255, 255, 255, 0.9);
    cursor: pointer;
}

.nk-clear[hidden] {
    display: none;
}

.nk-clear:hover,
.nk-clear:focus-visible {
    color: #fff;
    background: var(--tl-glass);
}

.nk-clear:focus-visible {
    outline: none;
    box-shadow: 0 0 0 2px #fff;
}

.nk-input-msg {
    width: fit-content;
    margin: 6px 0 0;
    padding: 3px 10px;
    border-radius: var(--tl-radius-xs);
    background: rgba(0, 0, 0, 0.3);
    font-size: 13px;
    line-height: 1.4;
    color: #ffd8c9;
}

.nk-input-msg:empty {
    display: none;
}

.nk-question {
    margin: 8px 0 5px;
    font-size: 13px;
    font-weight: 600;
    line-height: 1.3;
    color: rgba(255, 255, 255, 0.92);
}

.nk-switch {
    display: grid;
    grid-template-columns: repeat(4, auto);
    gap: 3px;
    padding: 3px;
    border-radius: 14px;
    background: rgba(0, 0, 0, 0.3);
}

.nk-switch-link {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 0;
    min-height: 44px;
    padding: 0 4px;
    border-radius: 11px;
    font-size: 14px;
    font-weight: 600;
    line-height: 1.2;
    color: rgba(255, 255, 255, 0.92);
    text-align: center;
    text-decoration: none;
    transition: background-color 0.2s ease, color 0.2s ease;
}

.nk-switch-link:hover,
.nk-switch-link:focus {
    color: #fff;
    background: var(--tl-glass);
    text-decoration: none;
}

.nk-switch-link:focus-visible {
    outline: none;
    box-shadow: 0 0 0 2px #fff;
}

.nk-switch-link[aria-current="true"]:focus-visible {
    box-shadow: inset 0 0 0 2px var(--tl-primary-dark), 0 0 0 2px #fff;
}

.nk-switch-link[aria-current="true"],
.nk-switch-link[aria-current="true"]:hover {
    background: #fff;
    color: var(--tl-primary-dark);
}

.nk-switch-full {
    display: none;
}

.nk-sticky {
    position: sticky;
    top: var(--tl-header);
    z-index: 20;
    background: var(--tl-card-bg);
    border-bottom: 1px solid var(--tl-bg-alt);
    box-shadow: 0 6px 16px -10px rgba(0, 75, 105, 0.35);
}

.nk-result {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto auto;
    align-items: center;
    gap: 8px;
    padding: 8px 8px 8px 12px;
}

.nk-result-main {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.nk-result-caption {
    overflow: hidden;
    font-size: 12px;
    line-height: 1.35;
    color: var(--tl-text-muted);
    white-space: nowrap;
    text-overflow: ellipsis;
}

.nk-result-caption.is-warn {
    font-weight: 600;
    color: var(--tl-danger);
}

.nk-result-text {
    display: block;
    font-size: calc(20px * var(--nk-fit, 1));
    font-weight: 500;
    line-height: 27px;
    color: var(--tl-text);
}

.nk-result-text.is-example {
    color: var(--tl-text-light);
}

.nk-result.is-manual .nk-result-text {
    border-radius: 4px;
    background: rgba(102, 201, 243, 0.18);
    -webkit-user-select: all;
    user-select: all;
}

.nk-result-meta {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 2px;
}

.nk-result-platform {
    font-size: 11px;
    font-weight: 600;
    line-height: 1.2;
    color: var(--tl-text-muted);
    white-space: nowrap;
}

.nk-result-platform[hidden] {
    display: none;
}

.nk-result-count {
    padding: 0 7px;
    border-radius: 10px;
    background: var(--tl-bg-alt);
    font-size: 12px;
    font-weight: 600;
    line-height: 20px;
    color: var(--tl-primary-dark);
    white-space: nowrap;
}

.nk-result-count.is-warn {
    background: rgba(176, 74, 42, 0.1);
    color: var(--tl-danger);
}

.nk-result-copy {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    min-width: 44px;
    height: 44px;
    padding: 0 12px;
    border: 0;
    border-radius: 30px;
    background: var(--tl-primary-dark);
    font-size: 15px;
    font-weight: 600;
    color: #fff;
    cursor: pointer;
    transition: background-color 0.2s ease;
}

.nk-result-copy i {
    font-size: 17px;
}

.nk-result-copy span {
    display: none;
}

.nk-result-copy:hover {
    background: #005f85;
}

.nk-result-copy:focus-visible {
    outline: none;
    box-shadow: var(--tl-focus);
}

.nk-result-copy.is-done {
    background: var(--tl-success);
}

.nk-hook {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    grid-template-areas:
        "text close"
        "btn btn";
    align-items: center;
    gap: 6px 8px;
    margin: 0 8px 8px;
    padding: 10px 10px 10px 12px;
    border: 1px solid rgba(5, 150, 105, 0.3);
    border-radius: var(--tl-radius-sm);
    background: rgba(5, 150, 105, 0.06);
    transform: translateY(-6px);
    opacity: 0;
    transition: transform 0.25s ease, opacity 0.25s ease;
}

.nk-hook[hidden] {
    display: none;
}

.nk-hook.is-in {
    transform: none;
    opacity: 1;
}

.nk-hook-icon {
    display: none;
}

.nk-hook-text {
    grid-area: text;
    margin: 0;
    font-size: 14px;
    font-weight: 500;
    line-height: 1.4;
    color: var(--tl-text);
}

.nk-hook-btn {
    grid-area: btn;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    justify-self: start;
    min-height: 44px;
    padding: 0 20px;
    border-radius: 30px;
    background: var(--tl-primary-dark);
    font-size: 15px;
    font-weight: 600;
    color: #fff;
    text-decoration: none;
    transition: background-color 0.2s ease;
}

.nk-hook-btn:hover,
.nk-hook-btn:focus {
    color: #fff;
    background: #005f85;
    text-decoration: none;
}

.nk-hook-btn:focus-visible {
    outline: none;
    box-shadow: var(--tl-focus);
}

.nk-hook-close {
    grid-area: close;
    align-self: start;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    margin: -8px -8px 0 0;
    border: 0;
    border-radius: 10px;
    background: transparent;
    font-size: 18px;
    color: var(--tl-text-muted);
    cursor: pointer;
}

.nk-hook-close:hover,
.nk-hook-close:focus-visible {
    color: var(--tl-text);
    background: var(--tl-bg-alt);
}

.nk-hook-close:focus-visible {
    outline: none;
    box-shadow: var(--tl-focus);
}

.nk-modes {
    padding: 10px var(--tl-inset) 16px;
    border-radius: 0 0 var(--tl-radius-lg) var(--tl-radius-lg);
}

.nk-mode + .nk-mode {
    margin-top: 28px;
    padding-top: 20px;
    border-top: 1px solid var(--tl-bg-alt);
}

.nk-js .nk-mode {
    display: none;
}

.nk-js .nk-mode.is-active {
    display: block;
}

.nk-js .nk-mode + .nk-mode {
    margin-top: 0;
    padding-top: 0;
    border-top: 0;
}

html.nk-js {
    scroll-padding-top: 0;
}

.nk-js[data-nk-mode] .nk-mode.is-active {
    display: none;
}

.nk-js[data-nk-mode="fonts"] #fonts,
.nk-js[data-nk-mode="symbols"] #symbols,
.nk-js[data-nk-mode="generator"] #generator,
.nk-js[data-nk-mode="steam"] #steam {
    display: block;
}

.nk-js[data-nk-mode] .nk-switch-link[aria-current="true"] {
    background: none;
    color: rgba(255, 255, 255, 0.92);
}

.nk-js[data-nk-mode="fonts"] .nk-switch-link[data-mode="fonts"],
.nk-js[data-nk-mode="symbols"] .nk-switch-link[data-mode="symbols"],
.nk-js[data-nk-mode="generator"] .nk-switch-link[data-mode="generator"],
.nk-js[data-nk-mode="steam"] .nk-switch-link[data-mode="steam"] {
    background: #fff;
    color: var(--tl-primary-dark);
}

.nk-js .nk-page:not(.nk-ready) .nk-card[data-preset="0"],
.nk-js .nk-page:not(.nk-ready) .nk-sym-grid ~ .nk-sym-grid,
.nk-js .nk-page:not(.nk-ready) [data-nk-fold] > :not(summary) {
    display: none;
}

.nk-js .nk-page:not(.nk-ready) .nk-fold[open] > .nk-fold-summary i,
.nk-js .nk-page:not(.nk-ready) .nk-faq-item[open] summary i {
    transform: none;
}

#fonts,
#symbols,
#generator,
#steam {
    scroll-margin-top: calc(var(--tl-header) + 8px);
}

.nk-page .nk-mode-title {
    margin: 0 0 8px;
    font-size: 1rem;
    font-weight: 700;
    line-height: 1.3;
}

.nk-page .nk-sub-title {
    margin: 20px 0 8px;
    font-size: 1rem;
    font-weight: 700;
    line-height: 1.3;
}

.nk-page .nk-mode-title + .nk-sub-title {
    margin-top: 12px;
}

.nk-mode p {
    max-width: 75ch;
}

.nk-mode-text,
.nk-mode-text p,
.nk-group-text {
    max-width: 75ch;
    margin: 12px 0 0;
    font-size: 14px;
    line-height: 1.6;
    color: var(--tl-text-muted);
}

.nk-mode-text p + p {
    margin-top: 8px;
}

.nk-options {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 8px 6px;
}

.nk-opt {
    position: relative;
    display: flex;
    align-items: center;
    min-width: 0;
    height: 44px;
    margin: 0;
    padding: 0 0 0 8px;
    border: 1px solid rgba(0, 75, 105, 0.18);
    border-radius: var(--tl-radius-sm);
    background: var(--tl-card-bg);
    cursor: pointer;
    transition: border-color 0.2s ease, background-color 0.2s ease;
}

.nk-opt:hover {
    background: var(--tl-bg);
}

.nk-opt:focus-within {
    border-color: var(--tl-primary-light);
    box-shadow: var(--tl-focus);
}

.nk-opt-label {
    flex: 0 0 auto;
    margin-right: 3px;
    font-size: 13px;
    color: var(--tl-text-muted);
}

.nk-opt-select {
    flex: 1 1 auto;
    min-width: 0;
    height: 42px;
    padding: 0 18px 0 0;
    border: 0;
    background: transparent url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5l5 5 5-5' fill='none' stroke='%23004b69' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") no-repeat right 6px center;
    font-size: 14px;
    font-weight: 600;
    color: var(--tl-primary-dark);
    text-overflow: ellipsis;
    cursor: pointer;
    -webkit-appearance: none;
    appearance: none;
}

.nk-opt-select:focus {
    outline: none;
}

.nk-style-tabs {
    display: grid;
    grid-column: 1 / -1;
    grid-template-columns: 1fr 1fr;
    padding: 3px;
    border-radius: 14px;
    background: var(--tl-bg-alt);
}

.nk-style-tab {
    min-height: 38px;
    padding: 0 8px;
    border: 0;
    border-radius: 11px;
    background: transparent;
    font-size: 14px;
    font-weight: 600;
    color: var(--tl-text-muted);
    cursor: pointer;
    transition: background-color 0.2s ease, color 0.2s ease;
}

.nk-style-tab:hover {
    color: var(--tl-text);
}

.nk-style-tab:focus-visible {
    outline: none;
    box-shadow: var(--tl-focus);
}

.nk-style-tab[aria-pressed="true"] {
    background: var(--tl-card-bg);
    color: var(--tl-primary-dark);
    box-shadow: 0 1px 4px rgba(0, 75, 105, 0.12);
}

.nk-note {
    margin: 8px 0 0;
    font-size: 13px;
    line-height: 1.4;
    color: var(--tl-text-muted);
}

.nk-note[hidden] {
    display: none;
}

.nk-page .nk-group-title {
    margin: 14px 0 0;
    font-size: 0.95rem;
    font-weight: 700;
    line-height: 1.3;
}

.nk-group-title[hidden],
.nk-latin[hidden] {
    display: none;
}

.nk-group-text {
    margin-top: 4px;
    font-size: 13px;
    line-height: 1.5;
}

.nk-cards {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-auto-flow: row dense;
    gap: 8px;
    margin-top: 8px;
}

.nk-styles.is-popular .nk-card.is-extra {
    display: none;
}

.nk-card {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    grid-template-areas:
        "name count"
        "text text"
        "flag flag";
    align-content: start;
    gap: 2px 6px;
    min-width: 0;
    padding: 8px 10px 9px;
    border: 1px solid var(--tl-border);
    border-radius: var(--tl-radius-sm);
    background: var(--tl-bg);
    overflow: hidden;
    transition: border-color 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
}

.nk-card[hidden] {
    display: none;
}

.nk-card.is-wide {
    grid-column: 1 / -1;
}

.nk-card:hover {
    border-color: rgba(0, 75, 105, 0.25);
    background: var(--tl-card-bg);
    box-shadow: var(--tl-shadow);
}

.nk-card-name {
    grid-area: name;
    overflow: hidden;
    font-size: 12px;
    line-height: 1.4;
    color: var(--tl-text-muted);
    white-space: nowrap;
    text-overflow: ellipsis;
}

.nk-card-count {
    grid-area: count;
    align-self: start;
    padding: 0 6px;
    border-radius: 10px;
    background: var(--tl-bg-alt);
    font-size: 11px;
    font-weight: 600;
    line-height: 18px;
    color: var(--tl-primary-dark);
    white-space: nowrap;
}

.nk-card-text {
    grid-area: text;
    min-height: 27px;
    margin-right: 22px;
    font-size: calc(18px * var(--nk-fit, 1));
    line-height: 27px;
    color: var(--tl-text);
}

.nk-card-text.is-wrap {
    white-space: break-spaces;
}

.nk-word {
    white-space: pre;
}

.nk-card[data-style="spaced"] .nk-card-text.is-wrap {
    white-space: pre;
}

.nk-card.is-example .nk-card-text {
    color: var(--tl-text-light);
}

.nk-card-flag {
    grid-area: flag;
    font-size: 12px;
    font-weight: 500;
    line-height: 1.35;
    color: var(--tl-danger);
}

.nk-card-flag:empty {
    display: none;
}

.nk-card-copy {
    position: absolute;
    right: 6px;
    bottom: 6px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 26px;
    height: 26px;
    padding: 0;
    border: 0;
    border-radius: 8px;
    background: transparent;
    font-size: 15px;
    color: var(--tl-text-light);
    cursor: pointer;
}

.nk-card-copy::after {
    content: "";
    position: absolute;
    top: -200px;
    right: -200px;
    bottom: -200px;
    left: -200px;
}

.nk-card:hover .nk-card-copy {
    color: var(--tl-primary-dark);
}

.nk-card:focus-within {
    border-color: var(--tl-primary-light);
    box-shadow: var(--tl-focus);
}

.nk-card-copy:focus-visible {
    outline: none;
}

.nk-card.is-selected {
    border-color: var(--tl-primary-dark);
    background: var(--tl-card-bg);
    box-shadow: inset 0 0 0 1px var(--tl-primary-dark);
}

.nk-card.is-bad {
    border-color: rgba(176, 74, 42, 0.35);
}

.nk-card.is-bad .nk-card-count {
    background: rgba(176, 74, 42, 0.1);
    color: var(--tl-danger);
}

.nk-card.is-copied {
    border-color: var(--tl-success);
    box-shadow: inset 0 0 0 1px var(--tl-success);
}

.nk-card.is-copied .nk-card-name {
    font-weight: 600;
    color: var(--tl-success);
}

.nk-card.is-copied .nk-card-copy {
    color: var(--tl-success);
}

.nk-card.is-manual .nk-card-copy::after {
    display: none;
}

.nk-card.is-manual .nk-card-text {
    border-radius: 4px;
    background: rgba(102, 201, 243, 0.18);
    -webkit-user-select: all;
    user-select: all;
}

.nk-card.is-manual .nk-card-flag {
    color: var(--tl-primary-dark);
}

.nk-show-all {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-height: 44px;
    margin-top: 8px;
    border: 1px dashed rgba(0, 75, 105, 0.3);
    border-radius: var(--tl-radius-sm);
    background: transparent;
    font-size: 15px;
    font-weight: 600;
    color: var(--tl-primary-dark);
    cursor: pointer;
    transition: background-color 0.2s ease;
}

.nk-show-all[hidden] {
    display: none;
}

html:not(.nk-js) .nk-show-all {
    display: none;
}

.nk-show-all:hover {
    background: var(--tl-bg);
}

.nk-show-all:focus-visible {
    outline: none;
    box-shadow: var(--tl-focus);
}

.nk-next {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0 14px;
    margin: 12px 0 0;
    font-size: 15px;
    line-height: 1.4;
}

.nk-next-label {
    color: var(--tl-text-muted);
}

.nk-next a {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
    font-weight: 600;
    color: var(--tl-primary-dark);
    text-decoration: underline;
    text-underline-offset: 3px;
}

.nk-next a:hover,
.nk-next a:focus-visible {
    color: var(--tl-primary);
}

.nk-next a:focus-visible {
    outline: none;
    border-radius: 4px;
    box-shadow: var(--tl-focus);
}

.nk-sr {
    position: absolute;
    width: 1px;
    height: 1px;
    margin: -1px;
    padding: 0;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.nk-clip {
    position: fixed;
    top: 0;
    left: 0;
    width: 1px;
    height: 1px;
    opacity: 0;
}

.nk-side,
.nk-gen-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
}

.nk-gen-lang {
    margin-top: 10px;
}

.nk-side-label {
    font-size: 14px;
    font-weight: 600;
    color: var(--tl-text-muted);
}

.nk-seg-group {
    display: inline-flex;
}

.nk-seg + .nk-seg {
    margin-left: -1px;
}

.nk-seg {
    min-height: 44px;
    padding: 0 16px;
    border: 1px solid rgba(0, 75, 105, 0.18);
    background: var(--tl-card-bg);
    font-size: 14px;
    font-weight: 600;
    color: var(--tl-primary-dark);
    cursor: pointer;
}

.nk-seg:first-child {
    border-radius: 12px 0 0 12px;
}

.nk-seg:last-child {
    border-radius: 0 12px 12px 0;
}

.nk-seg:hover {
    background: var(--tl-bg-alt);
}

.nk-seg[aria-pressed="true"] {
    position: relative;
    border-color: var(--tl-primary-dark);
    background: var(--tl-primary-dark);
    color: #fff;
}

.nk-seg:disabled {
    opacity: 0.45;
    cursor: not-allowed;
}

.nk-seg[aria-pressed="true"]:disabled {
    background: var(--tl-text-light);
    border-color: var(--tl-text-light);
}

.nk-cats,
.nk-chips {
    display: flex;
    gap: 6px;
    margin: 10px -12px 0;
    padding: 2px 12px 4px;
    overflow-x: auto;
    scrollbar-width: none;
}

.nk-gen-theme {
    flex-wrap: nowrap;
}

.nk-chips {
    flex: 1 1 auto;
    min-width: 0;
    margin: 0 -12px 0 0;
    padding-left: 0;
}

.nk-cats::-webkit-scrollbar,
.nk-chips::-webkit-scrollbar {
    display: none;
}

.nk-cat,
.nk-chip {
    flex: 0 0 auto;
    min-height: 40px;
    padding: 0 14px;
    border: 1px solid var(--tl-border);
    border-radius: 30px;
    background: var(--tl-bg);
    font-size: 14px;
    font-weight: 500;
    color: var(--tl-text);
    white-space: nowrap;
    cursor: pointer;
    transition: background-color 0.2s ease, color 0.2s ease;
}

.nk-cat:hover,
.nk-chip:hover {
    background: var(--tl-bg-alt);
}

.nk-cat:focus-visible,
.nk-chip:focus-visible,
.nk-seg:focus-visible,
.nk-sym:focus-visible,
.nk-idea-btn:focus-visible,
.nk-btn:focus-visible {
    outline: none;
    box-shadow: var(--tl-focus);
}

.nk-cat[aria-selected="true"],
.nk-chip[aria-pressed="true"] {
    border-color: var(--tl-primary-dark);
    background: var(--tl-primary-dark);
    color: #fff;
}

.nk-sym-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(44px, 1fr));
    gap: 6px;
    margin-top: 10px;
}

.nk-sym-grid[hidden] {
    display: none;
}

.nk-sym {
    height: 46px;
    padding: 0;
    border: 1px solid transparent;
    border-radius: 10px;
    background: var(--tl-bg);
    font-size: 22px;
    line-height: 1;
    color: var(--tl-text);
    cursor: pointer;
    transition: background-color 0.15s ease, transform 0.15s ease;
}

.nk-sym:hover {
    border-color: rgba(0, 75, 105, 0.15);
    background: var(--tl-bg-alt);
}

.nk-sym:active {
    transform: scale(0.94);
}

.nk-page p.nk-status {
    margin: 8px 0 0;
    font-size: 14px;
    font-weight: 500;
    line-height: 1.5;
    color: var(--tl-success);
    overflow-wrap: anywhere;
}

.nk-page p.nk-status:empty {
    display: none;
}

.nk-page p.nk-status.is-warn {
    color: var(--tl-danger);
}

.nk-muted,
.nk-page p.nk-muted {
    margin: 6px 0 0;
    font-size: 13px;
    line-height: 1.45;
    color: var(--tl-text-muted);
}

.nk-invisible-main {
    max-width: 100%;
    white-space: normal;
    text-align: center;
}

.nk-invisible-list {
    margin: 10px 0 0;
    padding: 0;
    list-style: none;
}

.nk-invisible-list li {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 6px 0;
    border-top: 1px solid var(--tl-bg-alt);
    font-size: 15px;
    color: var(--tl-text);
}

.nk-invisible-list li:last-child {
    border-bottom: 1px solid var(--tl-bg-alt);
}

.nk-fold {
    margin-top: 10px;
    border: 1px solid #e6eaf0;
    border-radius: var(--tl-radius-sm);
    background: var(--tl-card-bg);
}

.nk-fold-summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    min-height: 48px;
    padding: 10px 14px;
    list-style: none;
    font-size: 15px;
    font-weight: 600;
    color: var(--tl-text);
    cursor: pointer;
}

.nk-fold-summary::-webkit-details-marker {
    display: none;
}

.nk-fold-summary:hover,
.nk-fold-summary:hover h3,
.nk-fold-summary:hover h2 {
    color: var(--tl-primary-dark);
}

.nk-fold-summary:focus-visible {
    outline: none;
    border-radius: var(--tl-radius-sm);
    box-shadow: var(--tl-focus);
}

.nk-page .nk-fold-summary h3 {
    margin: 0;
    font-size: 15px;
    font-weight: 600;
    line-height: 1.4;
}

.nk-fold-summary i,
.nk-faq-item summary i {
    flex: 0 0 auto;
    font-size: 18px;
    color: var(--tl-text-muted);
    transition: transform 0.25s ease;
}

.nk-fold[open] > .nk-fold-summary i,
.nk-faq-item[open] summary i {
    transform: rotate(180deg);
}

.nk-fold-body {
    padding: 0 14px 12px;
}

.nk-fold-body p,
.nk-fold-body .nk-steps {
    margin: 0 0 8px;
    font-size: 15px;
    line-height: 1.6;
    color: var(--tl-text);
}

.nk-fold-body p:last-child {
    margin-bottom: 0;
}

.nk-fold-body a,
.nk-cta a:not(.nk-btn),
.nk-section p a {
    color: var(--tl-primary-dark);
    font-weight: 500;
    text-decoration: underline;
    text-underline-offset: 3px;
}

.nk-steam-limit {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    margin: 16px 0 0;
    padding: 10px 12px;
    border-radius: var(--tl-radius-sm);
    background: var(--tl-bg);
    font-size: 15px;
    font-weight: 500;
    line-height: 1.45;
    color: var(--tl-text);
}

.nk-steam-limit i {
    flex: 0 0 auto;
    margin-top: 3px;
    color: var(--tl-primary-dark);
}

.nk-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 44px;
    padding: 0 20px;
    border: 1px solid transparent;
    border-radius: 30px;
    font-size: 15px;
    font-weight: 600;
    line-height: 1.2;
    text-decoration: none;
    white-space: nowrap;
    cursor: pointer;
    transition: background-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.nk-btn:hover,
.nk-btn:focus {
    text-decoration: none;
}

.nk-btn-primary {
    background: var(--tl-primary-dark);
    color: #fff;
}

.nk-btn-primary:hover,
.nk-btn-primary:focus {
    background: #005f85;
    color: #fff;
}

.nk-btn-ghost {
    flex: 0 0 auto;
    padding: 0 14px;
    border-color: rgba(0, 75, 105, 0.18);
    background: var(--tl-card-bg);
    font-size: 14px;
    color: var(--tl-primary-dark);
}

.nk-btn-ghost:hover,
.nk-btn-ghost:focus {
    background: var(--tl-bg-alt);
    color: var(--tl-primary-dark);
}

.nk-btn-warm {
    background: var(--tl-gradient-warm);
    color: #fff;
    box-shadow: 0 8px 20px rgba(255, 107, 53, 0.3);
}

.nk-btn-warm:hover,
.nk-btn-warm:focus {
    color: #fff;
    box-shadow: 0 10px 26px rgba(255, 107, 53, 0.42);
    transform: translateY(-1px);
}

.nk-gen-hint {
    width: 100%;
}

.nk-gen-hint[hidden] {
    display: none;
}

.nk-ideas {
    display: grid;
    grid-template-columns: 1fr;
    gap: 6px;
    margin: 12px 0 0;
    padding: 0;
    list-style: none;
}

.nk-ideas:empty {
    display: none;
}

.nk-idea {
    display: flex;
    align-items: center;
    gap: 6px;
    min-width: 0;
    padding: 3px 3px 3px 12px;
    border-radius: var(--tl-radius-sm);
    background: var(--tl-bg);
}

.nk-idea-text {
    flex: 1 1 auto;
    min-width: 0;
    font-size: calc(16px * var(--nk-fit, 1));
    font-weight: 600;
    line-height: 22px;
    color: var(--tl-text);
}

.nk-result-text,
.nk-card-text,
.nk-idea-text {
    white-space: pre;
}

.nk-result-text,
.nk-card-text,
.nk-idea-text {
    overflow-x: auto;
    overflow-y: hidden;
    scrollbar-width: none;
}

.nk-result-text.is-scroll,
.nk-card-text.is-scroll,
.nk-idea-text.is-scroll {
    -webkit-mask-image: linear-gradient(90deg, #000 calc(100% - 28px), transparent);
    mask-image: linear-gradient(90deg, #000 calc(100% - 28px), transparent);
}

.nk-result-text.is-scroll.is-end,
.nk-card-text.is-scroll.is-end,
.nk-idea-text.is-scroll.is-end {
    -webkit-mask-image: none;
    mask-image: none;
}

.nk-card-text.is-scroll {
    position: relative;
    z-index: 1;
    cursor: pointer;
}

.nk-result-text::-webkit-scrollbar,
.nk-card-text::-webkit-scrollbar,
.nk-idea-text::-webkit-scrollbar {
    display: none;
}

.is-fit-1 {
    --nk-fit: 0.9;
}

.is-fit-2 {
    --nk-fit: 0.8;
}

.is-fit-3 {
    --nk-fit: 0.7;
}

.is-fit-4 {
    --nk-fit: 0.6;
}

.nk-idea-btn {
    display: inline-flex;
    flex: 0 0 auto;
    align-items: center;
    justify-content: center;
    gap: 6px;
    min-width: 44px;
    height: 44px;
    padding: 0 10px;
    border: 1px solid rgba(0, 75, 105, 0.14);
    border-radius: 10px;
    background: var(--tl-card-bg);
    font-size: 14px;
    font-weight: 600;
    color: var(--tl-primary-dark);
    cursor: pointer;
    transition: background-color 0.2s ease;
}

.nk-idea-btn i {
    font-size: 16px;
}

.nk-idea-copy span {
    display: none;
}

.nk-idea-btn:hover {
    background: var(--tl-bg-alt);
}

.nk-idea-style {
    padding: 0 14px;
    border-color: var(--tl-primary-dark);
    background: var(--tl-primary-dark);
    color: #fff;
}

.nk-idea-style:hover {
    background: #005f85;
}

.nk-idea-btn.is-done {
    border-color: var(--tl-success);
    color: var(--tl-success);
}

.nk-more {
    margin-top: 10px;
}

.nk-cta {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
    margin-top: 16px;
    padding: 14px;
    border-radius: var(--tl-radius);
    background: var(--tl-bg);
}

.nk-cta p {
    margin: 0;
    font-size: 15px;
    line-height: 1.55;
    color: var(--tl-text);
}

.nk-section {
    margin-top: 16px;
    padding: 20px calc(var(--tl-inset) - 1px);
    border: 1px solid rgba(0, 75, 105, 0.06);
    border-radius: var(--tl-radius-lg);
    background: var(--tl-card-bg);
    box-shadow: var(--tl-shadow);
}

.nk-section h2 {
    position: relative;
    margin: 0 0 12px;
    padding-left: 14px;
    font-size: 1.25rem;
    font-weight: 700;
    line-height: 1.25;
}

.nk-section h2::before {
    content: "";
    position: absolute;
    top: 0.18em;
    bottom: 0.18em;
    left: 0;
    width: 4px;
    border-radius: 2px;
    background: var(--tl-gradient);
}

.nk-section h2:not(:first-child) {
    margin-top: 24px;
}

.nk-section p,
.nk-steps {
    max-width: 75ch;
    margin: 0 0 12px;
    font-size: 16px;
    line-height: 1.65;
    color: var(--tl-text);
}

.nk-steps {
    padding-left: 22px;
}

.nk-steps li + li {
    margin-top: 6px;
}

.nk-section p:last-child {
    margin-bottom: 0;
}

.nk-table-wrap {
    margin-top: 8px;
    overflow-x: auto;
    border: 1px solid var(--tl-bg-alt);
    border-radius: var(--tl-radius-sm);
}

.nk-table {
    display: table;
    width: 100%;
    min-width: 520px;
    margin: 0;
    border-collapse: collapse;
}

.nk-table th {
    padding: 12px 14px;
    background: var(--tl-bg);
    font-size: 13px;
    font-weight: 600;
    color: var(--tl-text-muted);
    text-align: left;
}

.nk-table td {
    padding: 11px 14px;
    border-top: 1px solid var(--tl-bg-alt);
    font-size: 15px;
    line-height: 1.45;
    color: var(--tl-text);
    vertical-align: top;
}

.nk-table td:nth-child(2) {
    font-weight: 700;
    white-space: nowrap;
}

.nk-table tr.is-active td {
    background: rgba(102, 201, 243, 0.14);
}

@media (max-width: 575.98px) {
    .nk-table-wrap {
        overflow: visible;
    }

    .nk-table,
    .nk-table thead,
    .nk-table tbody {
        display: block;
        min-width: 0;
    }

    .nk-table tr {
        display: grid;
        grid-template-columns: minmax(0, 1fr) auto;
        border-top: 1px solid var(--tl-bg-alt);
    }

    .nk-table thead tr {
        border-top: 0;
        background: var(--tl-bg);
    }

    .nk-table th:nth-child(1) {
        padding: 10px 12px 0 14px;
    }

    .nk-table th:nth-child(2) {
        padding: 10px 14px 0 0;
        text-align: right;
    }

    .nk-table th:nth-child(3) {
        grid-column: 1 / -1;
        padding: 2px 14px 10px;
        font-weight: 500;
    }

    .nk-table td {
        border-top: 0;
    }

    .nk-table td:nth-child(1) {
        padding: 10px 12px 2px 14px;
        font-weight: 600;
    }

    .nk-table td:nth-child(2) {
        padding: 10px 14px 2px 0;
        text-align: right;
    }

    .nk-table td:nth-child(3) {
        grid-column: 1 / -1;
        padding: 0 14px 10px;
        font-size: 14px;
        line-height: 1.4;
        color: var(--tl-text-muted);
    }
}

.nk-faq-item {
    border: 1px solid #e6eaf0;
    border-radius: var(--tl-radius-sm);
    background: var(--tl-card-bg);
}

.nk-faq-item + .nk-faq-item {
    margin-top: 8px;
}

.nk-faq-item summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    min-height: 48px;
    padding: 10px 14px;
    list-style: none;
    cursor: pointer;
}

.nk-faq-item summary::-webkit-details-marker {
    display: none;
}

.nk-faq-item summary:focus-visible {
    outline: none;
    border-radius: var(--tl-radius-sm);
    box-shadow: var(--tl-focus);
}

.nk-section .nk-faq-item h3 {
    margin: 0;
    font-size: 15px;
    font-weight: 600;
    line-height: 1.45;
    transition: color 0.2s ease;
}

.nk-faq-item summary:hover h3 {
    color: var(--tl-primary-dark);
}

.nk-section .nk-faq-item p {
    margin: 0;
    padding: 0 14px 12px;
    font-size: 15px;
    color: #495057;
}

.nk-links {
    display: grid;
    grid-template-columns: 1fr;
    gap: 6px;
    margin: 4px 0 0;
    padding: 0;
    list-style: none;
}

.nk-links a {
    display: flex;
    align-items: center;
    min-height: 44px;
    padding: 8px 14px;
    border: 1px solid var(--tl-border);
    border-radius: var(--tl-radius-sm);
    background: var(--tl-bg);
    font-size: 15px;
    font-weight: 600;
    line-height: 1.35;
    color: var(--tl-primary-dark);
    text-decoration: none;
    transition: background-color 0.2s ease;
}

.nk-links a:hover,
.nk-links a:focus-visible {
    background: var(--tl-bg-alt);
    color: var(--tl-primary-dark);
    text-decoration: none;
}

.nk-links a:focus-visible {
    outline: none;
    box-shadow: var(--tl-focus);
}

@media (min-width: 576px) {
    :root {
        --tl-header: 81px;
    }

    .nk-result-copy span,
    .nk-idea-copy span {
        display: inline;
    }

    .nk-result-copy {
        padding: 0 18px;
    }

    .nk-options {
        display: flex;
        flex-wrap: wrap;
        gap: 8px;
    }

    .nk-options .nk-opt {
        flex: 0 1 auto;
        min-width: 180px;
        padding-left: 12px;
    }

    .nk-opt-label {
        font-size: 14px;
    }

    .nk-opt-select {
        font-size: 15px;
    }

    .nk-style-tabs {
        flex: 0 0 auto;
        margin-left: auto;
    }

    .nk-switch-short {
        display: none;
    }

    .nk-switch-full {
        display: inline;
    }
}

@media (min-width: 768px) {
    .nk-page {
        padding-top: 20px;
    }

    .nk-hero h1 {
        font-size: clamp(1.8rem, 3.2vw, 2.3rem);
    }

    .nk-lead,
    .nk-js .nk-lead {
        display: block;
        padding-right: 0;
        font-size: 17px;
        line-height: 1.6;
    }

    .nk-js .nk-lead-more {
        display: none;
    }

    .nk-head {
        padding: 20px var(--tl-inset) 16px;
    }

    .nk-question {
        margin: 14px 0 8px;
        font-size: 15px;
    }

    .nk-switch-link {
        padding: 0 16px;
        font-size: 15px;
    }

    .nk-input {
        height: 60px;
        padding-left: 20px;
        font-size: 28px;
    }

    .nk-clear {
        top: 8px;
        right: 8px;
    }

    .nk-result {
        gap: 14px;
        padding: 10px 14px 10px 24px;
    }

    .nk-result-text {
        font-size: calc(24px * var(--nk-fit, 1));
        line-height: 32px;
    }

    .nk-result-caption {
        font-size: 13px;
    }

    .nk-hook {
        grid-template-columns: auto minmax(0, 1fr) auto auto;
        grid-template-areas: "icon text btn close";
        margin: 0 14px 10px 24px;
        padding: 8px 8px 8px 12px;
    }

    .nk-hook-icon {
        grid-area: icon;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        width: 32px;
        height: 32px;
        border-radius: 50%;
        background: rgba(5, 150, 105, 0.12);
        font-size: 16px;
        color: var(--tl-success);
    }

    .nk-hook-text {
        font-size: 15px;
    }

    .nk-hook-close {
        align-self: center;
        margin: 0;
    }

    .nk-modes {
        padding: 18px var(--tl-inset) 22px;
    }

    .nk-page .nk-mode-title {
        margin-bottom: 14px;
        font-size: 1.2rem;
    }

    .nk-cards {
        gap: 10px;
        margin-top: 14px;
    }

    .nk-card {
        padding: 12px 14px 12px;
    }

    .nk-card-text {
        font-size: calc(21px * var(--nk-fit, 1));
        line-height: 32px;
    }

    .nk-card-name {
        font-size: 13px;
    }

    .nk-show-all {
        width: auto;
        margin-left: auto;
        margin-right: auto;
        padding: 0 28px;
    }

    .nk-cats,
    .nk-chips {
        flex-wrap: wrap;
        margin-left: 0;
        margin-right: 0;
        padding: 0;
        overflow: visible;
    }

    .nk-gen-theme {
        flex-wrap: wrap;
    }

    .nk-chips {
        flex: 1 1 auto;
    }

    .nk-sym-grid {
        grid-template-columns: repeat(auto-fill, minmax(52px, 1fr));
        gap: 8px;
        margin-top: 14px;
    }

    .nk-sym {
        height: 52px;
        font-size: 24px;
    }

    .nk-ideas {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 8px;
    }

    .nk-cta {
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
        gap: 24px;
        padding: 16px 20px;
    }

    .nk-section {
        margin-top: 20px;
        padding: 28px calc(var(--tl-inset) - 1px);
    }

    .nk-section h2 {
        font-size: 1.5rem;
    }

    .nk-links {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .nk-invisible-list {
        max-width: 560px;
    }
}

@media (min-width: 992px) {
    .nk-hero {
        padding-right: 384px;
    }

    .nk-head {
        display: grid;
        grid-template-columns: minmax(max-content, 1fr) auto;
        grid-template-areas:
            "input input"
            "msg msg"
            "question switch";
        align-items: center;
        gap: 0 16px;
    }

    .nk-input-wrap {
        grid-area: input;
    }

    .nk-input-msg {
        grid-area: msg;
    }

    .nk-question {
        grid-area: question;
        margin: 14px 0 0;
    }

    .nk-switch {
        grid-area: switch;
        margin-top: 14px;
    }

    .nk-hero h1 {
        text-wrap: balance;
    }

    .nk-hero-art {
        display: block;
        position: absolute;
        right: 0;
        bottom: 0;
        width: 360px;
        height: 144px;
        background: url("../../img/tools/shrifty-dlya-nika/hero.svg") center / contain no-repeat;
        pointer-events: none;
    }

    .nk-cards {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .nk-ideas {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .nk-links {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (min-width: 1200px) {
    .nk-hero {
        padding-right: 464px;
    }

    .nk-hero-art {
        width: 440px;
        height: 176px;
    }

    .nk-cards {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }

    .nk-idea-copy span {
        display: none;
    }
}

@media (prefers-reduced-motion: reduce) {
    .nk-input,
    .nk-switch-link,
    .nk-opt,
    .nk-style-tab,
    .nk-card,
    .nk-hook,
    .nk-cat,
    .nk-chip,
    .nk-sym,
    .nk-btn,
    .nk-idea-btn,
    .nk-result-copy,
    .nk-show-all,
    .nk-fold-summary i,
    .nk-faq-item summary i,
    .nk-links a {
        transition: none;
    }

    .nk-sym:active,
    .nk-btn-warm:hover,
    .nk-btn-warm:focus {
        transform: none;
    }
}
