:root {
    --bg: #f3f4f6;
    --panel: #ffffff;
    --line: #d1d5db;
    --primary: #92400e;
    --text: #1f2937;
    --muted: #6b7280;
    --accent: #16a34a;
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: Georgia, "Times New Roman", serif;
    color: var(--text);
    background: var(--bg);
}

.page {
    width: min(1060px, calc(100% - 32px));
    margin: 32px auto;
    display: grid;
    grid-template-columns: 320px 1fr;
    gap: 20px;
}

.panel {
    background: var(--panel);
    border: 1px solid var(--line);
    border-radius: 8px;
    padding: 24px;
}

.eyebrow {
    margin: 0 0 8px;
    color: var(--primary);
    font-family: Arial, sans-serif;
    font-size: 0.78rem;
    font-weight: 700;
    text-transform: uppercase;
}

h1,
h2,
p {
    margin-top: 0;
}

h2 {
    font-size: 2rem;
}

label {
    display: block;
    margin: 14px 0 6px;
    font-family: Arial, sans-serif;
    font-weight: 700;
}

select,
textarea,
button {
    width: 100%;
    border: 1px solid var(--line);
    border-radius: 6px;
    padding: 11px 12px;
    font: inherit;
}

button {
    margin-top: 14px;
    border: 0;
    background: var(--primary);
    color: #fff;
    font-family: Arial, sans-serif;
    font-weight: 700;
    cursor: pointer;
}

button:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.message,
.chapter-position,
.book-title {
    color: var(--muted);
}

.progress-track {
    height: 12px;
    overflow: hidden;
    border-radius: 999px;
    background: #e5e7eb;
    margin-bottom: 24px;
}

.progress-bar {
    width: 0%;
    height: 100%;
    background: var(--accent);
}

.reader-actions {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
}

@media (max-width: 820px) {
    .page {
        grid-template-columns: 1fr;
    }
}
