        @import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600&display=swap');
        @import url('https://fonts.googleapis.com/css2?family=Orbitron:wght@400;500;700&display=swap');
        :root {
            --primary-color: #4a7ab7;
            --secondary-color: #1e1e1e;
            --background-color: #121212;
            --text-color: #e6e6e6;
            --input-bg-color: #2a2a2a;
            --button-bg-color: #4a7ab7;
            --button-hover-bg-color: #3d669a;
            --input-border-color: #444;
            --user-message-bg: #1f3c32;
            --bot-message-bg: #2d2d2d;
            --system-message-bg: #3a3a3a;
            --font-family: 'Inter', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
            --font-family-headers: 'Orbitron', sans-serif;
        }
        body {
            font-family: var(--font-family);
            background-color: var(--background-color);
            color: var(--text-color);
            margin: 0;
            padding: 10px;
            display: flex;
            justify-content: center;
        }
        h1 {
            text-align: center;
            color: var(--text-color);
            margin-bottom: 15px;
            font-size: 1.5rem;
            font-family: var(--font-family-headers);
        }
        h2, h3, h4, h5, h6 {
            font-family: var(--font-family-headers);
            color: var(--text-color);
            margin-bottom: 15px;
        }
        h2 { font-size: 1.5em; }
        h3 { font-size: 1.17em; }
        h4 { font-size: 1em; }
        h5 { font-size: 0.83em; }
        h6 { font-size: 0.67em; }
        .chat-box {
            width: 100%;
            max-width: 700px;
            background-color: var(--secondary-color);
            padding: 15px;
            border-radius: 10px;
            box-shadow: 0 2px 5px rgba(0, 0, 0, 0.3);
        }
        .chat-window {
            height: 500px;
            overflow-y: auto;
            margin-bottom: 10px;
            padding: 10px;
            border: 1px solid #1e1e1e;
            border-radius: 8px;
            background: linear-gradient(to right, #1e1e1e, #2a2a2a);
            box-shadow: 0 2px 5px rgba(0, 0, 0, 0.4);
            scrollbar-width: thin;
            scrollbar-color: #4a7ab7 #121212;
        }
        .message {
            position: relative;
            margin-bottom: 10px;
            padding: 12px 14px;
            border-radius: 12px;
            max-width: 80%;
            word-wrap: break-word;
            box-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
        }
        .message div {
            padding-right: 15px;
        }
        .message.bot a {
            color: #5ca0f6;
            text-decoration: none;
            font-weight: bold;
        }
        .copy-icon {
            position: absolute;
            bottom: 10px;
            right: 10px;
            cursor: pointer;
        }
        img {
            max-width: 50%;
            margin-top: 8px;
            border-radius: 6px;
            display: block;
            margin-left: auto;
            margin-right: auto;
        }
        i.fas.fa-copy.copy-icon {
            color: #4a7ab7;
            font-size: 20px;
        }
        i.fas.fa-check.copy-icon {
            color: #0ca10b;
        }
        .user {
            background-color: var(--primary-color);
            margin-left: auto;
            border-bottom-right-radius: 5px;
            color: #f1f1f1;
            font-weight: 500;
        }
        .bot {
            background-color: var(--bot-message-bg);
            margin-right: auto;
            border-bottom-left-radius: 5px;
            font-weight: 400;
        }
        .system {
            background: linear-gradient(to right, #1e1e1e, #2a2a2a);
            box-shadow: 0 2px 5px rgba(0, 0, 0, 0.4);
            color: #ccc;
            margin: 10px auto;
            border-radius: 5px;
            font-style: italic;
            position: relative;
            overflow: hidden;
            border: 3px solid #373737;
        }
        .system.collapsed {
            max-height: 70px;
        }
        .system-text {
            display: block;
        }
        .ellipsis {
            display: none;
        }
        .show-more-button {
            color: #d3d3d3;
            background: linear-gradient(to right, #1e1e1e, #2a2a2a);
            box-shadow: 0 2px 5px rgba(0, 0, 0, 0.4);
            border: none;
            border-radius: 6px;
            padding: 5px 8px;
            margin: 0;
            cursor: pointer;
            font-size: 0.8rem;
            transition: background-color 0.3s;
            display: block;
            text-align: center;
            width: fit-content;
            position: absolute;
            bottom: 10px;
            right: 10px;
        }
        .show-more-button:hover {
            background-color: var(--button-hover-bg-color);
        }
        textarea, select, input[type="text"], input[type="file"], input[type="number"] {
            width: 95%;
            padding: 10px;
            margin-top: 8px;
            border-radius: 8px;
            background-color: var(--input-bg-color);
            border: 1px solid var(--input-border-color);
            color: var(--text-color);
            font-size: 0.9rem;
        }
        textarea {
            resize: vertical;
            height: 100px;
        }
        button {
            background-color: var(--button-bg-color);
            color: white;
            border: none;
            border-radius: 18px;
            padding: 10px 15px;
            margin: 8px 3px 0 0;
            cursor: pointer;
            font-size: 0.9rem;
            transition: background-color 0.3s;
        }
        button:hover {
            background-color: var(--button-hover-bg-color);
        }
        button:disabled {
            background-color: #555;
            cursor: not-allowed;
        }
        hr {
            border: 1px solid var(--input-border-color);
            margin: 20px 0;
        }
        label {
            display: block;
            margin-top: 12px;
            font-weight: bold;
        }
        button[type="submit"] {
            width: 100%;
            margin-top: 10px;
        }
        .code-block {
            background-color: #2d2d2d;
            padding: 10px;
            border-radius: 5px;
            margin: 10px 0;
            position: relative;
        }
        .copy-button {
            position: absolute;
            top: 5px;
            right: 5px;
            background-color: var(--button-bg-color);
            color: white;
            border: none;
            border-radius: 3px;
            padding: 3px 7px;
            cursor: pointer;
            font-size: 0.8rem;
        }
        i.fas.fa-info-circle {
            color: #f44336;
        }
        label.role_bot {
            color: #e8c31b;
        }
        select#role_prompt {
            background: #1e1e1e;
            color: #9b9b9b;
            font-weight: bold;
        }
        .spoiler {
            border: 1px solid #444;
            border-radius: 9px;
            box-shadow: 0 0 10px rgba(0, 0, 0, 0.6);
            width: 95%;
            text-align: center;
            margin: 10px auto;
        }
        .spoiler-header {
            background-color: #8a4545;
            padding: 10px;
            border-radius: 8px;
            cursor: pointer;
        }
        .spoiler-content {
            display: none;
            padding: 10px;
            background-color: var(--secondary-color);
            border-radius: 8px;
            margin-top: 5px;
        }
        .spoiler-header {
            display: flex;
            align-items: center;
            cursor: pointer;
        }
        .spoiler-icon {
            margin-right: 8px;
            transition: transform 0.3s;
        }
        .spoiler-header[aria-expanded="true"] .spoiler-icon {
            transform: rotate(45deg);
        }
        .faq-icon {
            margin-left: auto;
        }
        .spoiler-content p {
            display: inline-block;
            padding: 5px 10px;
            background-color: #4a7ab7;
            color: #fff;
            font-weight: bold;
            font-size: 16px;
            text-decoration: none;
            border-radius: 8px;
            text-align: center;
            cursor: pointer;
            transition: background-color 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease;
            border: 2px solid #4a7ab7;
            margin-top: 0px;
        }
        .spoiler-content p:hover {
            background-color: #3d669a;
            box-shadow: 0 4px 12px rgba(74, 122, 183, 0.4);
            transform: scale(1.017);
        }
        button#start-record {
            background: #742828;
        }
        .header-title {
            font-family: var(--font-family-headers);
            font-size: 1.1rem;
            color: #b0b0b0;
            text-align: center;
            margin-bottom: 15px;
            position: relative;
            display: flex;
            justify-content: center;
            align-items: center;
            gap: 20px;
            background: linear-gradient(to right, #1e1e1e, #2a2a2a);
            padding: 8px 20px;
            border-radius: 10px;
            box-shadow: 0 2px 5px rgba(0, 0, 0, 0.4);
        }
        .header-link {
            color: #d0d0d0;
            text-decoration: none;
            padding: 8px 15px;
            transition: color 0.3s ease, background-color 0.3s ease;
            position: relative;
            font-weight: 600;
            border: 1px solid transparent;
            border-radius: 8px;
        }
        .header-link:hover,
        .header-link.active {
            color: #ffffff;
            background-color: rgba(74, 122, 183, 0.2);
            font-weight: 700;
        }
        .header-link.active {
            border-color: #4a7ab7;
        }
        .header-link i {
            margin-right: 8px;
            font-size: 1.1em;
            color: #6b9cd6;
        }
        .drop-zone {
            position: relative;
            padding: 10px;
            border: 2px dashed var(--input-border-color);
            border-radius: 8px;
            text-align: center;
            transition: border-color 0.3s ease, background-color 0.3s ease;
			box-shadow: 0 2px 5px rgba(0, 0, 0, 0.4);
        }
        .drop-zone.dragover {
            border-color: var(--primary-color);
            background-color: rgba(74, 122, 183, 0.1);
        }
        .drop-zone input[type="file"] {
            width: 97%;
            padding: 10px;
            margin-top: 8px;
            border: none;
            background: transparent;
        }
        .param-container {
            display: flex;
            flex-wrap: wrap;
            gap: 10px;
            margin-bottom: 10px;
        }
        .param-field {
            flex: 1;
            min-width: 120px;
            position: relative;
        }
        .param-field input[type="number"] {
            width: 93%;
            padding: 8px;
            border-radius: 8px;
            background-color: var(--input-bg-color);
            border: 1px solid var(--input-border-color);
            color: var(--text-color);
            font-size: 0.9rem;
        }
        .param-field label {
            display: flex;
            align-items: center;
            gap: 5px;
            font-weight: bold;
        }
        .param-field i.fas.fa-question-circle {
            color: #4a7ab7;
            cursor: help;
        }
		p.h_p_text {
			color: #ddd;
			font-weight: 500;
			font-size: 15px;
}
.tooltip {
    display: none;
    position: absolute;
    top: 0;
    left: 100%;
    margin-left: 10px;
    background-color: #2a2a2a;
    color: #e6e6e6;
    padding: 10px;
    border-radius: 8px;
    border: 1px solid #444;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.3);
    z-index: 1000;
    max-width: 355px;
	width: 500px;
    font-size: 0.9rem;
    line-height: 1.4;
}
.tooltip p {
    margin: 0 0 10px 0;
}
.tooltip button {
    background-color: #4a7ab7;
    color: white;
    border: none;
    border-radius: 8px;
    padding: 5px 10px;
    cursor: pointer;
    font-size: 0.8rem;
}
.tooltip button:hover {
    background-color: #3d669a;
}
.param-field {
    position: relative;
}
@media (max-width: 767px) {
    .tooltip {
        left: 0;
        top: 100%;
        margin-left: 0;
        margin-top: 10px;
        max-width: 92%;
    }
}
        @media (min-width: 768px) {
            .chat-box {
                max-width: 700px;
                padding: 20px;
            }
            textarea, input[type="text"], input[type="file"], input[type="number"] {
                font-size: 1rem;
            }
            button.insub {
                width: 91%;
                margin-top: 10px;
            }
        }
        @media (max-width: 767px) {
            .chat-box {
                padding: 10px;
            }
            textarea, input[type="text"], input[type="file"], input[type="number"] {
                font-size: 0.85rem;
            }
            button {
                width: 100%;
                margin-right: 0;
                margin-top: 10px;
            }
            button.insub {
                width: 100%;
                margin-top: 10px;
            }
            .param-field {
                min-width: 100%;
            }
        }