
* {
    box-sizing: border-box;
}

body {
    margin: 0;
    min-height: 100vh;
    background: #10151e;
    color: #ffffff;
    font-family: "Meiryo", sans-serif;
}

main {
    width: 100%;
    max-width: 850px;
    margin: 30px auto;
    padding: 20px;
}

h1 {
    margin-bottom: 5px;
}

.subtitle {
    color: #9da9bd;
    margin-bottom: 20px;
}

#log {
    height: 430px;
    overflow-y: auto;
    background: #192331;
    border: 1px solid #354256;
    border-radius: 12px;
    padding: 15px;
    margin-bottom: 15px;
}

.message {
    background: #293548;
    border-radius: 10px;
    padding: 14px;
    margin-bottom: 12px;
}

.message strong {
    display: block;
    color: #81adff;
    margin-bottom: 8px;
}

.content {
    font-size: 16px;
    line-height: 1.7;
    white-space: pre-wrap;
    overflow-wrap: anywhere;
}

textarea {
    width: 100%;
    height: 90px;
    padding: 12px;
    resize: vertical;
    background: #192331;
    color: white;
    border: 1px solid #46546a;
    border-radius: 8px;
    font-size: 16px;
}

button {
    border: none;
    border-radius: 8px;
    padding: 12px 18px;
    color: #ffffff;
    font-size: 15px;
    cursor: pointer;
    transition: background 0.15s;
}

button:disabled {
    cursor: default;
    opacity: 0.65;
}

.buttons {
    display: flex;
    gap: 10px;
    margin-top: 10px;
}

.buttons button {
    flex: 1;
    background: #3478e5;
}

.buttons button:hover {
    background: #5592fa;
}

.feedback {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 12px;
}

.feedback button {
    background: #354358;
    padding: 8px 14px;
}

.feedback .good:hover:not(:disabled) {
    background: #247a56;
}

.feedback .bad:hover:not(:disabled) {
    background: #a13d43;
}

.feedback .good.selected {
    background: #237a53;
}

.feedback .bad.selected {
    background: #a13d43;
}

.feedback-status {
    color: #c1cbd9;
    font-size: 12px;
}

#stats {
    margin-top: 18px;
    padding: 12px;
    background: #192331;
    border-radius: 8px;
    color: #b2c0d2;
    font-size: 14px;
}
