﻿:root {
    font-family: "Segoe UI", Tahoma, sans-serif;
    background-color: #f5f6fa;
    color: #1f1f1f;
}

body {
    margin: 0;
    padding: 0;
}

.page {
    max-width: 960px;
    margin: 0 auto;
    padding: 24px;
}

h1 {
    margin-bottom: 0.25rem;
}

.hint {
    margin-top: 0;
    color: #5a5a5a;
}

.controls {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin: 16px 0 24px;
}

.cabinet-link {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    font-size: 14px;
}

.user-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
    margin: 8px 0;
    font-size: 14px;
}

.user-bar a {
    color: #883dff;
    text-decoration: none;
    margin-left: 12px;
}

.cabinet-link a {
    font-weight: bold;
    color: #883dff;
    text-decoration: none;
}

.cabinet-link span {
    color: #5a5a5a;
}

.star-filter {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    align-items: center;
    font-size: 14px;
}

.star-filter label {
    display: flex;
    align-items: center;
    gap: 4px;
    background-color: #fff;
    border: 1px solid #dcdcdc;
    padding: 4px 8px;
    border-radius: 6px;
}

.control-buttons {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.reply-form {
    background-color: #fff;
    border: 1px solid #e2e2e2;
    border-radius: 10px;
    padding: 16px;
    margin-bottom: 24px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.reply-form textarea {
    width: 100%;
    font-size: 15px;
    font-family: inherit;
    padding: 10px;
    border-radius: 6px;
    border: 1px solid #c9c9c9;
    resize: vertical;
    min-height: 100px;
}

.reply-form__actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
    color: #6f6f6f;
    font-size: 14px;
}

.inline-reply {
    margin-top: 12px;
}

.inline-reply summary {
    cursor: pointer;
    color: #883dff;
}

.inline-reply form {
    margin-top: 8px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.inline-reply textarea {
    width: 100%;
    padding: 8px;
    border: 1px solid #c9c9c9;
    border-radius: 6px;
    font-family: inherit;
}

button {
    border: none;
    border-radius: 6px;
    padding: 10px 20px;
    font-size: 15px;
    cursor: pointer;
    background-color: #883dff;
    color: #fff;
}

button.secondary {
    background-color: #d6d6d6;
    color: #333;
}

button:hover {
    opacity: 0.9;
}

.alert {
    background-color: #fff8d6;
    border: 1px solid #f1d36b;
    padding: 12px 16px;
    border-radius: 6px;
    margin-bottom: 16px;
}

.alert-error {
    background-color: #ffe9e9;
    border-color: #ff6f6f;
}

.alert-success {
    background-color: #e7fff1;
    border-color: #59d092;
}

.review {
    background-color: #fff;
    border: 1px solid #e2e2e2;
    border-radius: 10px;
    padding: 16px;
    margin-bottom: 16px;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.05);
}

.review__header {
    display: flex;
    justify-content: space-between;
    gap: 12px;
}

.rating {
    margin-left: 8px;
    color: #ffaf00;
}

.meta {
    color: #6f6f6f;
    display: flex;
    flex-direction: column;
    text-align: right;
    font-size: 14px;
}

.review__text {
    margin-top: 12px;
    margin-bottom: 12px;
}

.details {
    margin: 0;
}

.details dt {
    font-weight: bold;
    margin-top: 8px;
}

.details dd {
    margin: 0;
    color: #444;
}

.answer {
    margin-top: 12px;
    padding: 10px;
    background-color: #f3f8ff;
    border-radius: 6px;
}

.no-answer {
    margin-top: 12px;
    color: #9a9a9a;
}

.cabinet-section {
    background-color: #fff;
    border: 1px solid #e2e2e2;
    border-radius: 10px;
    padding: 16px;
    margin-bottom: 20px;
}

.token-list {
    list-style: none;
    padding: 0;
    margin: 0 0 12px 0;
}

.token-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 0;
    border-bottom: 1px solid #f0f0f0;
}

.token-item:last-child {
    border-bottom: none;
}

.token-owner {
    margin-left: 8px;
    color: #6f6f6f;
    font-size: 13px;
}

.token-actions {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.badge {
    background-color: #e7fff1;
    color: #1d8127;
    border-radius: 20px;
    padding: 2px 10px;
    font-size: 12px;
    margin-left: 8px;
}

.badge-inactive {
    background-color: #ffe9e9;
    color: #b12c2c;
}

.inline-form {
    margin: 0;
}

.cabinet-form {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.cabinet-form input,
.cabinet-form textarea {
    width: 100%;
    padding: 8px;
    border-radius: 6px;
    border: 1px solid #c9c9c9;
    font-family: inherit;
}

.auth-page {
    max-width: 420px;
}

.auth-form {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.auth-form input {
    width: 100%;
    padding: 8px;
    border-radius: 6px;
    border: 1px solid #c9c9c9;
    font-family: inherit;
}

.auth-form button {
    width: 100%;
}
