:root {
    --bg: #F4F1EA;
    --panel: #FDFAF4;
    --text: #2C2C2C;
    --muted: #8A7560;
    --accent: #2E7D6B;
    --accent-dark: #1F5C4E;
    --warn: #C75B39;
    --border: #E0DDD6;
    --table-border: #B8AFA0;
}

* { box-sizing: border-box; }

body {
    margin: 0;
    background: var(--bg);
    color: var(--text);
    font-family: "Helvetica Neue", "Microsoft JhengHei", "PingFang TC", sans-serif;
}

header.topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 24px;
    border-bottom: 1px solid var(--border);
}

header.topbar h1 {
    font-family: Georgia, serif;
    font-size: 20px;
    margin: 0;
}

header.topbar nav a {
    color: var(--muted);
    text-decoration: none;
    margin-left: 16px;
    font-size: 14px;
}

header.topbar nav a:hover { color: var(--accent); }

main {
    max-width: 720px;
    margin: 0 auto;
    padding: 32px 20px;
}

.card {
    background: var(--panel);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 24px;
    margin-bottom: 16px;
}

.btn {
    display: inline-block;
    background: var(--accent);
    color: #fff;
    border: none;
    border-radius: 6px;
    padding: 10px 20px;
    font-size: 15px;
    cursor: pointer;
    text-decoration: none;
}

.btn:hover { background: var(--accent-dark); }

.btn.warn { background: var(--warn); }
.btn.secondary { background: var(--muted); }
.btn[disabled] { background: #A0A0A0; cursor: not-allowed; }

.level-bar {
    width: 100%;
    height: 18px;
    background: var(--border);
    border-radius: 4px;
    overflow: hidden;
}

.level-bar > div {
    height: 100%;
    width: 0;
    background: var(--accent);
    transition: width 0.1s linear;
}

.log {
    background: var(--panel);
    border: 1px solid var(--border);
    border-radius: 6px;
    padding: 12px;
    height: 260px;
    overflow-y: auto;
    font-family: Consolas, "Courier New", monospace;
    font-size: 13px;
    white-space: pre-wrap;
}

.status { color: var(--muted); font-size: 14px; margin: 8px 0; }
.timer { font-family: Consolas, monospace; font-size: 22px; margin: 8px 0; }

.progress-bar {
    width: 100%;
    height: 18px;
    background: var(--border);
    border-radius: 4px;
    overflow: hidden;
    margin: 12px 0;
}

.progress-bar > div {
    height: 100%;
    width: 0;
    background: var(--accent);
    transition: width 0.2s linear;
}

.progress-bar.indeterminate > div {
    width: 30% !important;
    animation: progress-slide 1.2s ease-in-out infinite;
}

@keyframes progress-slide {
    0% { margin-left: 0; }
    50% { margin-left: 70%; }
    100% { margin-left: 0; }
}

table.history { width: 100%; border-collapse: collapse; }
table.history td, table.history th {
    text-align: left;
    padding: 8px 6px;
    border-bottom: 1px solid var(--border);
    font-size: 14px;
}

/* 會議記錄摘要（render 過的 HTML）用一般排版字體，不是逐字稿那種等寬 log 樣式 */
.doc {
    font-family: "Helvetica Neue", "Microsoft JhengHei", "PingFang TC", sans-serif;
    line-height: 1.75;
    color: var(--text);
}
.doc h1 {
    font-family: Georgia, serif;
    font-size: 24px;
    margin: 0 0 16px;
    padding-bottom: 12px;
    border-bottom: 3px solid var(--accent);
}
.doc h2 {
    font-family: Georgia, serif;
    font-size: 19px;
    margin: 24px 0 10px;
    padding-bottom: 6px;
    border-bottom: 2px solid var(--accent);
}
.doc h2:first-child { margin-top: 0; }
.doc h3 { font-size: 16px; margin: 18px 0 8px; color: var(--accent-dark); }
.doc p { margin: 8px 0; }
.doc ul, .doc ol { margin: 8px 0; padding-left: 22px; }
.doc li { margin: 4px 0; }
.doc strong { color: var(--accent-dark); }
.doc table { border-collapse: collapse; margin: 12px 0; width: 100%; border: 1px solid var(--table-border); }
.doc table td, .doc table th {
    border: 1px solid var(--table-border);
    padding: 8px 12px;
    text-align: left;
    font-size: 14px;
    vertical-align: top;
}
.doc table th { background: var(--border); font-weight: 600; }
.doc table tr:nth-child(even) td { background: rgba(0, 0, 0, 0.02); }
.doc blockquote {
    margin: 12px 0;
    padding: 8px 16px;
    border-left: 3px solid var(--accent);
    background: var(--bg);
    color: var(--muted);
    font-style: italic;
}
.doc blockquote p { margin: 0; }
