body {
    font-family: 'SF Mono', Monaco, 'Cascadia Code', 'Roboto Mono', Consolas, 'Courier New', monospace;
    max-width: 800px;
    margin: 0 auto;
    padding: 24px;
    background-color: #f5f5f5;
    color: #2a2a2a;
    line-height: 1.4;
}

.header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 32px;
    padding-bottom: 16px;
    border-bottom: 2px solid #d0d0d0;
}

.header h1 {
    margin: 0;
    color: #2a2a2a;
    font-weight: 600;
    font-style: normal;
    font-size: 18px;
    letter-spacing: -0.02em;
}

.header h1 a {
    color: #666;
    text-decoration: none;
    margin-right: 8px;
}

.header h1 a:hover {
    color: #2a2a2a;
}

.settings-container {
    margin-bottom: 24px;
}

.settings-toggle {
    background-color: #e8e8e8;
    border: 1px solid #b8b8b8;
    border-radius: 3px;
    padding: 6px 10px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    color: #4a4a4a;
    font-family: inherit;
    box-shadow: inset 0 1px 0 #f0f0f0, 0 1px 2px rgba(0,0,0,0.1);
}

.settings-toggle:hover {
    background-color: #ddd;
    border-color: #999;
}

.settings-toggle:active {
    background-color: #ccc;
    box-shadow: inset 0 1px 2px rgba(0,0,0,0.2);
}

.settings-panel {
    display: none;
    background-color: #ebebeb;
    border: 1px solid #ccc;
    border-radius: 3px;
    margin-top: 12px;
    box-shadow: inset 0 1px 3px rgba(0,0,0,0.1);
}

.settings-panel.open {
    display: block;
    padding: 16px;
}

.settings-panel .input-group {
    margin-bottom: 12px;
}

.settings-panel .input-group:first-child {
    margin-top: 0;
}

.input-group {
    margin-bottom: 20px;
}

label {
    display: block;
    margin-bottom: 4px;
    font-weight: 600;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #555;
}

input[type="text"], input[type="password"], textarea, select {
    width: 100%;
    padding: 8px 10px;
    border: 1px solid #aaa;
    border-radius: 2px;
    box-sizing: border-box;
    font-family: inherit;
    font-size: 13px;
    background-color: #fff;
    box-shadow: inset 0 1px 2px rgba(0,0,0,0.1);
}

input[type="text"]:focus, input[type="password"]:focus, textarea:focus, select:focus {
    outline: none;
    border-color: #666;
    box-shadow: inset 0 1px 2px rgba(0,0,0,0.1), 0 0 0 2px rgba(102,102,102,0.2);
}
.input-container {
    position: relative;
    display: flex;
    align-items: flex-end;
}

textarea {
    min-height: 120px;
    max-height: 300px;
    resize: vertical;
    padding-right: 90px;
    border-radius: 2px;
    border: 1px solid #aaa;
    overflow-y: auto;
}

#prompt {
    border: 2px solid #999;
    font-size: 14px;
    line-height: 1.4;
}

#clearBtn {
    position: absolute;
    right: 52px;
    bottom: 10px;
    background-color: #bbb;
    color: #333;
    padding: 8px;
    border: 1px solid #999;
    border-radius: 2px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    box-shadow: inset 0 1px 0 #ddd, 0 1px 2px rgba(0,0,0,0.1);
}

#clearBtn:hover {
    background-color: #aaa;
    border-color: #777;
}

#clearBtn:active {
    background-color: #999;
    box-shadow: inset 0 1px 2px rgba(0,0,0,0.2);
}

#sendBtn {
    position: absolute;
    right: 10px;
    bottom: 10px;
    background-color: #666;
    color: white;
    padding: 8px;
    border: 1px solid #444;
    border-radius: 2px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    box-shadow: inset 0 1px 0 #888, 0 1px 2px rgba(0,0,0,0.2);
}

#sendBtn:hover {
    background-color: #555;
    border-color: #333;
}

#sendBtn:active {
    background-color: #444;
    box-shadow: inset 0 1px 2px rgba(0,0,0,0.3);
}

#sendBtn:disabled {
    background-color: #aaa;
    border-color: #999;
    cursor: not-allowed;
    box-shadow: inset 0 1px 0 #ccc, 0 1px 2px rgba(0,0,0,0.1);
}
#response {
    margin-top: 24px;
    padding: 16px;
    border: 1px solid #ccc;
    border-radius: 2px;
    background-color: #fff;
    min-height: 60px;
    display: none;
    box-shadow: inset 0 1px 3px rgba(0,0,0,0.1);
    font-size: 13px;
    line-height: 1.5;
}

#response.visible {
    display: block;
}

.error {
    color: #aa3333;
    background-color: #f0e0e0;
    border-color: #cc9999;
}

.loading {
    color: #666;
    font-style: italic;
}

#response h1, #response h2, #response h3, #response h4, #response h5, #response h6 {
    margin-top: 1.5em;
    margin-bottom: 0.5em;
    font-weight: 600;
}

#response h1 { font-size: 1.4em; }
#response h2 { font-size: 1.2em; }
#response h3 { font-size: 1.1em; }

#response p {
    margin-bottom: 1em;
}

#response ul, #response ol {
    margin-bottom: 1em;
    padding-left: 2em;
}

#response li {
    margin-bottom: 0.25em;
}

#response code {
    background-color: #e8e8e8;
    padding: 2px 4px;
    border-radius: 2px;
    font-family: inherit;
    font-size: 12px;
    border: 1px solid #d0d0d0;
}

#response pre {
    background-color: #f0f0f0;
    padding: 12px;
    border-radius: 2px;
    overflow-x: auto;
    margin-bottom: 1em;
    border: 1px solid #d0d0d0;
    box-shadow: inset 0 1px 2px rgba(0,0,0,0.05);
}

#response pre code {
    background-color: transparent;
    padding: 0;
    border: none;
}

#response blockquote {
    border-left: 3px solid #999;
    margin: 1em 0;
    padding-left: 1em;
    color: #555;
    background-color: #f8f8f8;
    padding: 8px 16px;
    border-radius: 2px;
}
