:root {
    --paper: #f6f0e4;
    --paper-2: #fdf8ee;
    --wood: #b08a52;
    --success: #6b8b4e;
    --wood-mid: #c19a63;
    --wood-dark: #8b6b43;
    --ink: #4a3a2c;
    --muted: #9a8b76;
    --accent: #cf5139;
    --accent-dark: #b8432e;
    --line: #e7dcc6;
    --shadow: rgba(120, 90, 50, 0.14);
    --radius-lg: 18px;
    --radius-md: 14px;
    --radius-sm: 10px;
}

* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }

body {
    margin: 0;
    font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
    background: var(--paper);
    color: var(--ink);
    line-height: 1.6;
    min-height: 100vh;
    -webkit-font-smoothing: antialiased;
}

/* ---- 页头（木纹条） ---- */
header {
    position: relative;
    padding: 15px 20px 15px;
    background: #b08a52;
}
header h1 {
    margin: 0;
    font-size: 20px;
    line-height: 1.2;
    font-weight: 700;
    letter-spacing: 1px;
    text-align: center;
    color: #fff;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.15);
}
header .icon-btn {
    position: absolute;
    right: 14px;
    top: 50%;
    transform: translateY(-50%);
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    margin: 0;
    background: rgba(255, 255, 255, 0.16);
    border: none;
    border-radius: 50%;
    color: #fff;
    cursor: pointer;
    box-shadow: none;
    letter-spacing: 0;
}
header .icon-btn svg {
    width: 24px;
    height: 24px;
    fill: currentColor;
}
header .icon-btn[hidden] { display: none; }
header .icon-btn:active { transform: translateY(-50%) scale(0.94); }
header .icon-btn.logout-btn { left: 14px; right: auto; }
.header-right {
    position: absolute;
    right: 14px;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    align-items: center;
    gap: 8px;
}
.header-right .icon-btn {
    position: static;
    transform: none;
}
.header-right .icon-btn:active { transform: scale(0.94); }

main {
    max-width: 640px;
    margin: 0 auto;
    padding: 12px 16px 96px;
}
.panel[hidden] { display: none; }

/* ---- 底部导航（与 App 三栏一致） ---- */
.tabbar {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    display: flex;
    background: #fffbf2;
    border-top: 1px solid var(--line);
    box-shadow: 0 -2px 12px var(--shadow);
    z-index: 50;
    padding-bottom: env(safe-area-inset-bottom);
}
.tabbar .tab {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
    padding: 8px 0 7px;
    margin: 0;
    background: none;
    border: none;
    border-radius: 0;
    box-shadow: none;
    color: var(--muted);
    font-size: 11px;
    font-weight: 500;
    letter-spacing: 0;
}
.tabbar .tab .tab-icon {
    width: 24px;
    height: 24px;
    display: block;
}
.tabbar .tab.active { color: var(--accent); }
.tabbar .tab:active { transform: none; }

/* ---- 面板（纸卡片） ---- */
section {
    background: var(--paper-2);
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    padding: 14px;
    margin-bottom: 12px;
    box-shadow: 0 4px 18px var(--shadow);
}
section h2 {
    margin: 0 0 14px;
    font-size: 15px;
    font-weight: 600;
    letter-spacing: 0.5px;
    color: var(--wood-dark);
    display: flex;
    align-items: center;
    gap: 8px;
}
section h2::before {
    content: "";
    width: 4px;
    height: 15px;
    border-radius: 2px;
    background: var(--accent);
    flex: none;
}

label { font-size: 13px; color: var(--muted); }

/* ---- 字段分区标题（对齐 App 的 sectionLabel） ---- */
.field-label {
    display: block;
    margin: 12px 0 5px;
    color: var(--wood-dark);
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.5px;
}
.intro-card {
    display: flex;
    align-items: center;
    gap: 10px;
    background: #fffbf2;
    border: 1px solid var(--line);
    border-radius: var(--radius-md);
    padding: 9px 12px;
    margin-bottom: 10px;
}
.intro-icon {
    flex: none;
    font-size: 20px;
    line-height: 1;
}
.intro-text {
    margin: 0;
    color: var(--ink);
    font-size: 13px;
    line-height: 1.45;
}

/* ---- 输入控件 ---- */
input, textarea, select {
    width: 100%;
    padding: 10px 14px;
    margin: 4px 0 8px;
    background: #fffbf2;
    border: 1px solid var(--line);
    border-radius: var(--radius-sm);
    font-size: 16px;
    color: var(--ink);
    font-family: inherit;
    transition: border-color 0.18s ease, box-shadow 0.18s ease;
}
input::placeholder, textarea::placeholder { color: #b9ab97; }
input:focus, textarea:focus, select:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(207, 81, 57, 0.12);
}
select option { background: #fffbf2; color: var(--ink); }
input[type="checkbox"] { accent-color: var(--accent); }

textarea {
    min-height: 220px;
    resize: vertical;
    line-height: 1.7;
    white-space: pre-wrap;
    word-break: break-word;
}
textarea.short { min-height: 52px; }

/* ---- 按钮体系 ---- */
button {
    background: linear-gradient(180deg, #d65c43, #c14933);
    color: #fff;
    border: none;
    border-radius: var(--radius-sm);
    padding: 12px 18px;
    font-size: 15px;
    font-weight: 600;
    letter-spacing: 0.5px;
    cursor: pointer;
    box-shadow: 0 4px 14px rgba(193, 73, 51, 0.28);
    transition: transform 0.12s ease, box-shadow 0.2s ease, opacity 0.2s ease;
}
button:active { transform: scale(0.97); }
button:disabled { opacity: 0.5; box-shadow: none; }
button.secondary {
    background: #fffbf2;
    color: var(--wood-dark);
    border: 1px solid var(--wood-mid);
    box-shadow: none;
}
button.danger {
    background: #fffbf2;
    color: var(--accent-dark);
    border: 1px solid rgba(184, 67, 46, 0.45);
    box-shadow: none;
}
.text-btn {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 6px 8px;
    border: none;
    background: none;
    color: var(--accent-dark);
    font-size: 14px;
    font-weight: 500;
    border-radius: 8px;
    cursor: pointer;
    text-decoration: none;
    box-shadow: none;
    letter-spacing: 0;
    font-family: inherit;
}
.text-btn svg {
    width: 18px;
    height: 18px;
    fill: currentColor;
    flex: none;
}
.text-btn:disabled {
    color: var(--muted);
    cursor: default;
}
.text-btn:active { transform: scale(0.97); }

#generate-btn { width: 100%; margin-top: 2px; }

.row { display: flex; align-items: center; gap: 10px; }
.row label { white-space: nowrap; flex: none; }
.row select { flex: 1; width: auto; min-width: 0; }
.row input[type="checkbox"] { width: auto; margin: 0; }
.row input[type="time"] { width: auto; margin: 0; flex: 1; }
#workflow-form .row button { flex: 1; }

/* ---- 列表卡片 ---- */
.card {
    background: #fffbf2;
    border: 1px solid var(--line);
    border-radius: var(--radius-md);
    padding: 14px;
    margin-bottom: 10px;
}
.card .name { font-weight: 600; font-size: 16px; color: var(--ink); }
.card .name-row { display: flex; align-items: center; gap: 8px; }
.card .name-row .name { flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.fav-btn {
    flex: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    padding: 0;
    border: none;
    background: none;
    border-radius: 50%;
    cursor: pointer;
    color: var(--muted);
    box-shadow: none;
    transition: color 0.15s ease, background 0.15s ease, transform 0.1s ease;
}
.fav-btn svg {
    width: 22px;
    height: 22px;
    fill: currentColor;
    flex: none;
}
.fav-btn:hover {
    color: var(--accent);
    background: rgba(207, 81, 57, 0.08);
}
.fav-btn.on { color: var(--accent); }
.fav-btn:active { transform: scale(0.85); }
.wf-tag {
    flex: none;
    padding: 3px 8px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 600;
    line-height: 1.4;
    white-space: nowrap;
}
.wf-tag.wood { color: var(--wood-dark); background: rgba(139, 107, 67, 0.12); }
.wf-tag.on { color: var(--success); background: rgba(107, 139, 78, 0.12); }
.wf-tag.off { color: var(--muted); background: rgba(154, 139, 118, 0.12); }
.wf-tag.preset { color: var(--wood-dark); background: transparent; border: 1px solid var(--wood-mid); }
.task-badge {
    flex: none;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 3px 9px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 600;
    white-space: nowrap;
}
.task-badge.pending { color: var(--muted); background: rgba(154, 139, 118, 0.12); }
.task-badge.running { color: var(--wood); background: rgba(176, 138, 82, 0.12); }
.task-badge.done { color: var(--success); background: rgba(107, 139, 78, 0.12); }
.task-badge.failed { color: var(--accent-dark); background: rgba(184, 67, 46, 0.12); }
/* 生成列表里「用了哪个模型」：胶囊标签，按品牌分色 */
.model-tag {
    display: inline-block;
    flex: none;
    padding: 1px 8px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 500;
    line-height: 1.4;
    white-space: nowrap;
}
.model-vendor-gpt { color: var(--success); background: rgba(107, 139, 78, 0.14); }
.model-vendor-claude { color: var(--accent-dark); background: rgba(184, 67, 46, 0.12); }
.model-vendor-deepseek { color: #3d6a8f; background: rgba(61, 106, 143, 0.14); }
.model-vendor-other { color: var(--wood-dark); background: rgba(139, 107, 67, 0.12); }
/* 生成列表里「流派 · 题材」标签：小说/诗歌的创作标记（如「意识流 · 科幻」），暖金色调，与模型胶囊区分 */
.genre-tag {
    display: inline-block;
    flex: none;
    padding: 1px 8px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 600;
    line-height: 1.4;
    white-space: nowrap;
    color: #9a6b2f;
    background: rgba(198, 148, 70, 0.16);
}
/* 生成中/排队中的任务：徽章前显示持续旋转的小圆环，提示仍在生成 */
.task-badge.pending::before,
.task-badge.running::before {
    content: "";
    width: 9px;
    height: 9px;
    border: 2px solid currentColor;
    border-top-color: transparent;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }
/* 通用旋转小圆环：按钮里「推送中…」等需要动态提示时使用 */
.spin-ring {
    display: inline-block;
    width: 13px;
    height: 13px;
    border: 2px solid currentColor;
    border-top-color: transparent;
    border-radius: 50%;
    vertical-align: -2px;
    margin-right: 6px;
    animation: spin 0.8s linear infinite;
    flex: none;
}
.card .meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    font-size: 12px;
    color: var(--muted);
    margin-top: 4px;
}
.meta-text {
    flex: 1;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.owner-tag {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    flex: none;
    padding: 1px 8px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 500;
    line-height: 1.4;
    white-space: nowrap;
    color: var(--wood-dark);
    background: rgba(176, 138, 82, 0.14);
}
.owner-tag svg { width: 11px; height: 11px; fill: currentColor; flex: none; }
.meta-row {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-top: 4px;
    color: var(--ink);
    font-size: 13px;
}
.meta-row svg {
    width: 15px;
    height: 15px;
    flex: none;
    fill: var(--wood-mid);
}
.msg { margin-top: 8px; color: var(--ink); font-size: 13px; }
.msg.published { color: var(--success); }
.card .actions {
    margin-top: 12px;
    padding-top: 10px;
    border-top: 1px solid var(--line);
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    justify-content: flex-end;
}
.card .actions .owner-tag {
    margin-right: auto;
    align-self: center;
}

@keyframes fadeUp {
    from { opacity: 0; transform: translateY(6px); }
    to { opacity: 1; transform: none; }
}

/* ---- 任务状态 ---- */
#task-list .card .status {
    font-size: 12px;
    margin-top: 8px;
    font-weight: 500;
}
.status::before {
    content: "";
    display: inline-block;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: currentColor;
    margin-right: 6px;
    vertical-align: middle;
}
.status.pending { color: var(--muted); }
.status.running { color: var(--wood); }
.status.running::before { animation: pulse 1.2s ease infinite; }
.status.done { color: #6b8b4e; }
.status.failed { color: var(--accent-dark); }

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.3; }
}

.hint { font-size: 12px; color: var(--muted); margin: -4px 0 8px; }
.hint a { color: var(--wood-dark); text-decoration: underline; }

/* ---- 弹窗（底部 sheet → 桌面居中） ---- */
.modal {
    position: fixed;
    inset: 0;
    z-index: 100;
    display: flex;
    align-items: flex-end;
    justify-content: center;
}
.modal[hidden] { display: none; }
.modal-mask {
    position: absolute;
    inset: 0;
    background: rgba(74, 58, 44, 0.45);
}
.modal-box {
    position: relative;
    width: 100%;
    max-width: 640px;
    max-height: 88vh;
    overflow-y: auto;
    background: var(--paper-2);
    border-radius: 20px 20px 0 0;
    padding: 22px 18px calc(22px + env(safe-area-inset-bottom));
    box-shadow: 0 -8px 28px rgba(120, 90, 50, 0.28);
    animation: slideUp 0.28s ease both;
}
.modal-box h2 {
    margin: 0 0 16px;
    font-size: 17px;
    font-weight: 700;
    letter-spacing: 0.5px;
    color: var(--wood-dark);
}
.modal-box h3 {
    margin: 18px 0 8px;
    color: var(--wood-dark);
    font-size: 13px;
    letter-spacing: 0.4px;
}
.modal-box textarea { min-height: 140px; }
#wf-prompt { min-height: 260px; }   /* 写作要求：给足空间 */
#wf-rss { min-height: 56px; }       /* 信息源：紧凑，只放几个地址 */
.prompt-label-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 4px;
}
.prompt-label-row label { margin: 0; }
.expand-btn {
    border: 1px solid var(--line);
    background: #fffbf2;
    color: var(--wood-dark);
    font-size: 12px;
    line-height: 1;
    padding: 4px 8px;
    border-radius: 8px;
    cursor: pointer;
}
.expand-btn:active { transform: scale(0.96); }

/* 写作要求放大弹层：整屏可读/可编辑，不用在小框里滑动 */
.prompt-modal { z-index: 120; align-items: center; padding: 16px; }
.prompt-box {
    position: relative;
    width: 100%;
    max-width: 760px;
    height: 90vh;
    max-height: 90vh;
    display: flex;
    flex-direction: column;
    background: var(--paper-2);
    border-radius: var(--radius-lg);
    box-shadow: 0 18px 44px rgba(120, 90, 50, 0.3);
    padding: 16px 16px calc(14px + env(safe-area-inset-bottom));
    animation: fadeUp 0.25s ease both;
}
.prompt-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 10px;
}
.prompt-title { font-size: 16px; font-weight: 700; color: var(--wood-dark); letter-spacing: 0.5px; }
.prompt-close {
    border: none;
    background: none;
    font-size: 18px;
    color: var(--muted);
    cursor: pointer;
    line-height: 1;
    padding: 4px;
}
.prompt-box textarea {
    flex: 1;
    width: 100%;
    min-height: 0;
    resize: none;
    font-size: 14px;
    line-height: 1.7;
}
.modal-box details {
    margin: 8px 0 16px;
    padding: 0 12px;
    border: 1px solid var(--line);
    border-radius: var(--radius-sm);
    background: #fffbf2;
}
.modal-box summary {
    padding: 12px 0;
    color: var(--ink);
    cursor: pointer;
    font-weight: 600;
}
.modal-box details textarea:last-child { margin-bottom: 2px; }
.check-row {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--ink);
    font-size: 14px;
    margin: 4px 0 8px;
}
.check-row input { width: auto; margin: 0; }
.modal-actions { margin-top: 6px; }
.modal-actions button { flex: 1; }
@keyframes slideUp {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: none; }
}
@media (min-width: 641px) {
    .modal { align-items: center; padding: 24px; }
    .modal-box { border-radius: var(--radius-lg); }
}

/* ---- 轻提示（toast，替代系统 alert） ---- */
.toast {
    position: fixed;
    left: 50%;
    top: 50%;
    transform: translate(-50%, calc(-50% + 12px)) scale(0.96);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: max-content;
    min-width: 220px;
    max-width: min(86vw, 420px);
    padding: 16px 22px;
    background: rgba(255, 253, 248, 0.97);
    color: var(--ink);
    border: 1px solid var(--wood-mid);
    border-top: 3px solid #6b8b4e;
    border-radius: var(--radius-md);
    font-size: 15px;
    font-weight: 600;
    line-height: 1.5;
    text-align: center;
    box-shadow: 0 12px 32px rgba(74, 58, 44, 0.22), 0 2px 8px rgba(120, 90, 50, 0.12);
    backdrop-filter: blur(8px);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.25s ease, transform 0.25s ease;
    z-index: 200;
}
.toast::before {
    content: "✓";
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 24px;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: #eaf0e1;
    color: #6b8b4e;
    font-size: 15px;
    font-weight: 700;
}
.toast.show {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
}
.toast.error { border-top-color: var(--accent-dark); }
.toast.error::before {
    content: "!";
    background: #fbe9e5;
    color: var(--accent-dark);
}

/* ---- 确认弹窗 ---- */
.modal-box-sm { max-width: 360px; }
.confirm-msg { margin: 0 0 18px; font-size: 15px; line-height: 1.6; color: var(--ink); word-break: break-word; }
#confirm-modal { align-items: center; padding: 24px; }
#confirm-modal .modal-box { border-radius: var(--radius-lg); }
#account-modal { align-items: center; padding: 24px; }
#account-modal .modal-box { border-radius: var(--radius-lg); }

@media (max-width: 480px) {
    main { padding: 14px 12px 40px; }
    section { padding: 16px; }
}

@supports (padding: max(0px)) {
    header { padding-top: max(15px, env(safe-area-inset-top)); }
    main {
        padding-left: max(16px, env(safe-area-inset-left));
        padding-right: max(16px, env(safe-area-inset-right));
        padding-bottom: max(96px, env(safe-area-inset-bottom));
    }
}

/* ---- 模型选择：全屏底部弹出面板 ---- */
.model-trigger {
    display: block;
    width: 100%;
    text-align: left;
    padding: 10px 14px;
    margin: 4px 0 8px;
    background: #fffbf2;
    border: 1px solid var(--line);
    border-radius: var(--radius-sm);
    font-size: 16px;
    font-weight: 400;
    letter-spacing: normal;
    color: var(--ink);
    font-family: inherit;
    cursor: pointer;
    box-shadow: none;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
}
.model-trigger:hover { border-color: var(--accent); }
.row .model-trigger { flex: 1; width: auto; min-width: 0; margin: 4px 0 8px; }

.model-sheet { position: fixed; inset: 0; z-index: 1200; }
.model-sheet-mask { position: absolute; inset: 0; background: rgba(0, 0, 0, 0.45); }
.model-sheet-panel {
    position: absolute; left: 0; right: 0; bottom: 0;
    max-height: 82vh;
    background: #fffbf2;
    border-radius: 20px 20px 0 0;
    display: flex; flex-direction: column;
    box-shadow: 0 -8px 30px rgba(0, 0, 0, 0.2);
}
.model-sheet-header {
    display: flex; align-items: center; justify-content: space-between;
    padding: 16px 18px 12px;
    border-bottom: 1px solid var(--line);
}
.model-sheet-title { font-size: 17px; font-weight: 700; color: var(--ink); }
.model-sheet-close {
    background: none; color: var(--muted);
    font-size: 20px; line-height: 1; padding: 4px;
    border: none; cursor: pointer; letter-spacing: normal;
}
.model-sheet-list { overflow-y: auto; padding: 8px 0 24px; -webkit-overflow-scrolling: touch; }
.model-item { display: flex; flex-direction: column; gap: 2px; padding: 12px 18px; cursor: pointer; }
.model-item:active { background: rgba(207, 81, 57, 0.08); }
.model-item.selected { background: rgba(207, 81, 57, 0.06); }
.model-item.disabled { opacity: 0.4; cursor: not-allowed; }
.model-item-name { font-size: 16px; font-weight: 600; color: var(--ink); }
.model-item.selected .model-item-name { color: var(--accent); }
.model-item-analogy { font-size: 13px; color: var(--muted); }

/* ---- 独立登录页（全屏米底 + 居中纸卡片，文艺感） ---- */
#login-page {
    position: fixed;
    inset: 0;
    z-index: 300;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    background:
        radial-gradient(1100px 560px at 50% -8%, rgba(176, 138, 82, 0.12), transparent 60%),
        var(--paper);
}
#login-page[hidden] { display: none; }
.login-card {
    width: 100%;
    max-width: 360px;
    background: var(--paper-2);
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    padding: 42px 28px 34px;
    text-align: center;
    box-shadow: 0 18px 44px var(--shadow);
    animation: fadeUp 0.5s ease both;
}
.login-icon { font-size: 42px; line-height: 1; }
.login-title {
    margin: 14px 0 0;
    font-size: 26px;
    font-weight: 700;
    letter-spacing: 4px;
    color: var(--ink);
}
.login-divider {
    width: 44px;
    height: 2px;
    margin: 18px auto;
    background: linear-gradient(90deg, transparent, var(--wood-mid), transparent);
    border-radius: 1px;
}
.login-subtitle {
    margin: 0 0 28px;
    font-size: 14px;
    letter-spacing: 3px;
    color: var(--wood-dark);
}
.login-input {
    margin: 0 0 14px;
    text-align: center;
    letter-spacing: 1px;
}
.login-btn {
    width: 100%;
    margin: 0 0 18px;
}
.login-foot {
    margin: 0;
    font-size: 12px;
    letter-spacing: 1px;
    color: var(--muted);
}

/* 首屏加载态：默认可见，认证探测完成后再切到登录页/主界面，避免白屏 */
#loading-page {
    position: fixed;
    inset: 0;
    z-index: 290;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 18px;
    background:
        radial-gradient(1100px 560px at 50% -8%, rgba(176, 138, 82, 0.12), transparent 60%),
        var(--paper);
}
#loading-page[hidden] { display: none; }
.loading-icon { font-size: 42px; line-height: 1; }
.loading-title {
    font-size: 26px;
    font-weight: 700;
    letter-spacing: 4px;
    color: var(--ink);
}
.spinner {
    width: 26px;
    height: 26px;
    border: 3px solid rgba(176, 138, 82, 0.22);
    border-top-color: var(--wood);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }
