.nt-tool { width: 100%; }

.nt-options-row {
    display: flex;
    align-items: flex-end;
    flex-wrap: wrap;
    gap: 14px;
    margin-bottom: 16px;
    padding: 14px 16px;
    background: var(--light);
    border-radius: 10px;
}
.nt-inline-group {
    display: flex;
    flex-direction: column;
    gap: 4px;
}
.nt-inline-group-wide { flex: 1; min-width: 200px; }
.nt-inline-group label {
    font-size: 12.5px;
    font-weight: 600;
    color: var(--navy);
}
.nt-inline-group input[type="number"],
.nt-inline-group input[type="text"] {
    padding: 8px 10px;
    border: 1px solid var(--border);
    border-radius: 8px;
    font-size: 13.5px;
    color: var(--text);
    background: var(--white);
    outline: none;
    font-family: var(--font-main, inherit);
    min-width: 90px;
    width: 100%;
    box-sizing: border-box;
}
.nt-inline-group input:focus { border-color: var(--teal); }

.nt-btn {
    padding: 9px 16px;
    background: var(--light);
    color: var(--navy);
    border: 1px solid var(--border);
    border-radius: 8px;
    font-size: 13.5px;
    font-weight: 600;
    cursor: pointer;
    font-family: var(--font-main, inherit);
    transition: background 0.2s, border-color 0.2s, color 0.2s;
    white-space: nowrap;
}
.nt-btn-primary {
    background: var(--teal);
    color: #fff;
    border-color: var(--teal);
}
.nt-btn-primary:hover { background: #00b090; }

.nt-textarea { font-size: 15px; }
.nt-output-group { margin-top: 4px; }

.nt-label-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}
.nt-label-row-actions {
    display: flex;
    align-items: center;
    gap: 8px;
}
.nt-label-row .text-tool-copy-btn { margin-top: 0; }

.nt-viewfull-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    background: var(--white);
    color: var(--navy);
    border: 1px solid var(--border);
    border-radius: 8px;
    font-size: 12.5px;
    font-weight: 600;
    cursor: pointer;
    font-family: var(--font-main, inherit);
    transition: background 0.2s, border-color 0.2s;
    white-space: nowrap;
}
.nt-viewfull-btn:hover { background: var(--light); border-color: var(--teal); color: var(--teal); }

/* Full View Modal */
.nt-modal-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(15, 23, 42, 0.55);
    z-index: 1000;
    align-items: center;
    justify-content: center;
    padding: 24px;
}
.nt-modal-overlay.open { display: flex; }
.nt-modal-box {
    background: var(--white);
    border-radius: 12px;
    width: 100%;
    max-width: 720px;
    max-height: 80vh;
    display: flex;
    flex-direction: column;
    box-shadow: 0 20px 50px -12px rgba(0,0,0,0.35);
}
.nt-modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 18px;
    font-size: 15px;
    font-weight: 700;
    color: var(--navy);
    border-bottom: 1px solid var(--border);
}
.nt-modal-header-actions {
    display: flex;
    align-items: center;
    gap: 8px;
}
.nt-modal-copy-btn {
    padding: 6px 12px;
    background: var(--teal);
    color: #fff;
    border: none;
    border-radius: 8px;
    font-size: 12.5px;
    font-weight: 600;
    cursor: pointer;
    font-family: var(--font-main, inherit);
    transition: background 0.2s;
    white-space: nowrap;
}
.nt-modal-copy-btn:hover { background: #00b090; }
.nt-modal-close {
    background: none;
    border: none;
    font-size: 22px;
    line-height: 1;
    color: var(--muted);
    cursor: pointer;
    padding: 0 4px;
}
.nt-modal-close:hover { color: var(--navy); }
.nt-modal-body {
    padding: 18px;
    overflow-y: auto;
    font-size: 14px;
    line-height: 1.7;
    color: var(--text);
    white-space: pre-wrap;
    word-break: break-word;
}

@media (max-width: 600px) {
    .nt-options-row { flex-direction: column; align-items: stretch; }
    .nt-inline-group input { width: 100%; }
}